:root {
  --bg: #070913;
  --bg-gradient: radial-gradient(circle at 50% 0%, #151b38 0%, #070913 70%);
  --card-bg: rgba(16, 22, 44, 0.75);
  --card-border: rgba(0, 212, 255, 0.2);
  --card-hover-border: rgba(0, 212, 255, 0.5);
  --primary: #00d4ff;
  --primary-glow: rgba(0, 212, 255, 0.35);
  --accent: #25ff99;
  --accent-glow: rgba(37, 255, 153, 0.3);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --input-bg: rgba(10, 14, 28, 0.8);
  --radius: 12px;
  --transition: all 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  background: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.nav-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #fff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  padding: 6px 12px;
  border-radius: 6px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(0, 212, 255, 0.1);
}

/* Main Container */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  flex: 1;
  width: 100%;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 48px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  box-shadow: 0 0 16px var(--primary-glow);
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 40%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* Glass Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 36px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.card:hover {
  border-color: var(--card-hover-border);
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.card-title .icon {
  color: var(--primary);
}

/* Form Controls */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--input-bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  background: rgba(14, 20, 38, 0.95);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

select.form-control option {
  background: #0d1224;
  color: var(--text-main);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #00b4d8, #00d4ff);
  color: #070913;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #00d4ff, #25ff99);
  box-shadow: 0 6px 24px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Alert Toasts */
.alert {
  padding: 16px 20px;
  border-radius: 8px;
  margin-top: 20px;
  display: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.alert-success {
  background: rgba(37, 255, 153, 0.15);
  border: 1px solid var(--accent);
  color: #a7f3d0;
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(10, 14, 28, 0.5);
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(0, 212, 255, 0.3);
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0 20px;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 20px 18px;
}

/* Legal Document Styles */
.legal-content h1,
.legal-content h2,
.legal-content h3 {
  color: #fff;
  margin-top: 24px;
  margin-bottom: 12px;
}

.legal-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.legal-content ul,
.legal-content ol {
  margin-left: 24px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.legal-content li {
  margin-bottom: 8px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 32px 20px;
  background: rgba(5, 7, 15, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

/* Status Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-new {
  background: rgba(234, 179, 8, 0.2);
  border: 1px solid #eab308;
  color: #fef08a;
}
.badge-in_progress {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid #3b82f6;
  color: #bfdbfe;
}
.badge-answered {
  background: rgba(37, 255, 153, 0.2);
  border: 1px solid var(--accent);
  color: #a7f3d0;
}
.badge-resolved {
  background: rgba(148, 163, 184, 0.2);
  border: 1px solid #94a3b8;
  color: #e2e8f0;
}

/* Ticket Search & Result Card */
.search-group {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
.search-group .form-control {
  flex: 1;
}
.search-group .btn {
  white-space: nowrap;
  padding: 12px 24px;
}
@media (max-width: 640px) {
  .search-group {
    flex-direction: column;
    align-items: stretch;
  }
}
.ticket-result-box {
  margin-top: 24px;
  padding: 24px;
  background: rgba(10, 14, 28, 0.85);
  border: 1px solid var(--primary);
  border-radius: 10px;
  box-shadow: 0 0 20px var(--primary-glow);
  display: none;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.ticket-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 10px;
}
.ticket-reply-card {
  margin-top: 20px;
  padding: 18px 20px;
  background: rgba(0, 212, 255, 0.08);
  border-left: 4px solid var(--primary);
  border-radius: 6px;
}
.ticket-reply-author {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.ticket-reply-body {
  color: #f1f5f9;
  font-size: 0.95rem;
  white-space: pre-wrap;
}

/* Admin Dashboard Specific */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: rgba(14, 20, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 4px;
}
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tab-btn {
  padding: 8px 16px;
  background: rgba(14, 20, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}
.tab-btn:hover,
.tab-btn.active {
  background: var(--primary);
  color: #070913;
  border-color: var(--primary);
}
.admin-ticket-item {
  background: rgba(10, 14, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition);
}
.admin-ticket-item:hover {
  border-color: var(--primary);
  background: rgba(14, 20, 42, 0.9);
}

/* Responsive */
@media (max-width: 640px) {
  .navbar {
    padding: 14px 20px;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
  .card {
    padding: 20px;
  }
}

