/* ═══════════════════════════════════════════
   OHZI-STYLE REDESIGN — Freelance Web Development
   Dark minimal, Unbounded font, golden accent
   ═══════════════════════════════════════════ */

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

:root {
  --bg: #111111;
  --text: #ffffff;
  --text-muted: #949494;
  --accent: #F7CF48;
  --accent-glow: drop-shadow(0 0 0.625rem #F7CF48) drop-shadow(0 0 1.25rem #F7CF48) drop-shadow(0 0 1.875rem #F7CF48);
  --border: rgba(255,255,255,0.08);
  --card-bg: rgba(255,255,255,0.04);
  --card-hover: rgba(255,255,255,0.08);
  --radius: 10px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Unbounded', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(247, 207, 72, 0.3); color: #fff; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

a { color: var(--text); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

/* ═══ 3D CANVAS ═══ */
.canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.canvas-container canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ═══ NAVIGATION ═══ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
}
#navbar .nav-logo {
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#navbar.nav-hidden .nav-logo {
  opacity: 0;
  pointer-events: none;
}
@media (min-width: 820px) {
  #navbar { padding: 1.5rem 2.5rem; }
}

.nav-logo {
  font-weight: 300;
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted) !important;
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
}
.nav-logo .logo-big {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0;
  color: #fff;
}
.nav-logo .logo-accent {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
}

/* Navbar hamburger uses .page-hamburger and .page-menu defined below */

/* ═══ SECTIONS ═══ */
.section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
}
@media (min-width: 820px) {
  .section { padding: 6rem 2.5rem 4rem; }
}

.section-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.section-label {
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 3rem;
  color: #fff;
}

/* ═══ HERO ═══ */
.section-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-badge {
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-title span {
  display: block;
}

.hero-accent {
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(0.8125rem, 1.5vw, 1.0625rem);
  font-weight: 250;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}
.scroll-hint span {
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

@media (max-width: 819px), (max-height: 720px) {
  .scroll-hint { display: none; }
}

/* ═══ BUTTONS ═══ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9375rem 1.375rem;
  background: #fff;
  color: #111;
  border: none;
  border-radius: var(--radius);
  font-family: 'Unbounded', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.125em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
@media (min-width: 820px) {
  .btn-primary { padding: 1.25rem 1.875rem; }
}
.btn-primary:hover { opacity: 0.8; }
.btn-primary:active { opacity: 1; transform: scale(0.95); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9375rem 1.375rem;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  font-family: 'Unbounded', sans-serif;
  font-size: 0.6875rem;
  font-weight: 300;
  letter-spacing: 0.125em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
@media (min-width: 820px) {
  .btn-secondary { padding: 1.25rem 1.875rem; }
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.5); }
.btn-secondary:active { transform: scale(0.95); }

.btn-full { width: 100%; justify-content: center; }

/* ���══ WORK GRID ═══ */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 568px) { .work-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .work-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }

.work-item {
  cursor: pointer;
  transition: transform 0.3s;
}
.work-item:hover { transform: translateY(-4px); }
.work-item:hover .work-overlay { opacity: 1; }

.work-image {
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
}
.work-image:hover {
  box-shadow: 0 0 1.875rem rgba(255,255,255,0.15);
}

.work-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s;
}

.work-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.work-item p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 250;
}

/* ═══ SERVICES LIST ═══ */
.services-list {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s;
}
.service-row:first-child { border-top: 1px solid var(--border); }
.service-row:hover { padding-left: 1rem; }
.service-row:hover .service-arrow { color: var(--accent); transform: translateX(4px); }
.service-row:hover .service-num { color: var(--accent); }

.service-num {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  min-width: 2rem;
  transition: color 0.3s;
}

.service-info { flex: 1; }
.service-info h3 {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.service-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 250;
  line-height: 1.7;
  display: none;
}
@media (min-width: 820px) {
  .service-info p { display: block; }
}

.service-arrow {
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: all 0.3s;
}

/* ═══ PRICING ═══ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 568px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .pricing-grid { grid-template-columns: repeat(4, 1fr); } }

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  position: relative;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.pricing-card:hover {
  background: var(--card-hover);
  box-shadow: 0 0 1.875rem rgba(255,255,255,0.06);
  transform: translateY(-2px);
}

.pricing-featured {
  border-color: var(--accent);
}
.pricing-featured:hover {
  box-shadow: 0 0 1.875rem rgba(247, 207, 72, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -0.625rem;
  left: 1.5rem;
  background: var(--accent);
  color: #111;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

.pricing-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.pricing-amount span {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-muted);
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
  flex: 1;
}
.pricing-card li {
  font-size: 0.6875rem;
  font-weight: 300;
  color: var(--text-muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  line-height: 1.6;
}
.pricing-card li:last-child { border: none; }

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* ═══ CONTACT ═══ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 820px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.contact-info p {
  font-size: 0.875rem;
  font-weight: 250;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-email-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent) !important;
  transition: filter 0.3s;
}
.contact-email-link:hover {
  filter: var(--accent-glow);
  opacity: 1;
}

.contact-links { margin-bottom: 2rem; }
.contact-actions { margin-bottom: 2rem; }

/* FAQ */
.faq-compact {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item summary {
  padding: 1.25rem 0;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-muted);
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  font-size: 0.75rem;
  font-weight: 250;
  color: var(--text-muted);
  line-height: 1.8;
  padding-bottom: 1.25rem;
}

/* ═══ FOOTER ═══ */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 4rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  font-size: 0.625rem;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  order: -1;
}
.social-glow {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--text-muted) !important;
  transition: all 0.3s;
}
.social-glow:hover {
  color: var(--accent) !important;
  filter: var(--accent-glow);
  opacity: 1;
}

/* ═══ SCROLL REVEAL ═══ */
.reveal-text, .reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-text.visible, .reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Stagger children */
.reveal-up:nth-child(1) { transition-delay: 0s; }
.reveal-up:nth-child(2) { transition-delay: 0.1s; }
.reveal-up:nth-child(3) { transition-delay: 0.2s; }
.reveal-up:nth-child(4) { transition-delay: 0.3s; }

/* ═══ BLOG ═══ */
.blog-card {
  background: rgba(17,17,17,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
.blog-card:hover {
  background: rgba(17,17,17,0.9);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}
.blog-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}
.blog-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.6;
}
.blog-card-category {
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.blog-card-meta {
  font-size: 0.5625rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.blog-post-body {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255,255,255,0.8);
}
.blog-post-body h1, .blog-post-body h2, .blog-post-body h3 {
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
  color: #fff;
}
.blog-post-body p { margin-bottom: 1rem; }
.blog-post-body strong { color: #fff; }
.blog-post-body ul, .blog-post-body ol { margin: 0.75rem 0 0.75rem 1.5rem; }
.blog-post-body li { margin-bottom: 0.375rem; }

/* ═══ AUTH OVERLAY ═══ */
.screen-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}
.screen-overlay.active { display: flex; }

.auth-container {
  background: rgba(17,17,17,0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  position: relative;
}

/* ═══ FULL PAGES (Dashboard, Admin) ═══ */
.screen-page {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(17,17,17,0.92);
  overflow-y: auto;
}
.screen-page.active { display: block; }

.page-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 12;
}
.page-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  transition: all 0.3s;
}

.page-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(17,17,17,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 0.5rem 0;
  min-width: 160px;
  z-index: 11;
}
.page-menu.open { display: block; }
.page-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted) !important;
  transition: all 0.15s;
  cursor: pointer;
}
.page-menu a:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.06);
  opacity: 1;
}

.page-content {
  padding: 5rem 2rem 4rem;
}
.page-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.page-inner h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 2rem 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Glass cards for pages with canvas background */
.page-inner .stats-grid .stat-card {
  background: rgba(17,17,17,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.1);
}
.page-inner .stats-grid .stat-card:hover {
  background: rgba(17,17,17,0.9);
  border-color: rgba(255,255,255,0.15);
}
.page-inner .stats-grid .stat-card-highlight {
  border-color: rgba(247,207,72,0.3);
}
.page-inner .empty-state {
  background: rgba(17,17,17,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 3rem 2rem;
}
.page-inner .admin-table {
  background: rgba(17,17,17,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.1);
}
.page-inner .admin-chat-wrap {
  background: rgba(17,17,17,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.1);
}
.page-inner .admin-chat-sidebar {
  background: rgba(255,255,255,0.02);
}


.auth-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}
.auth-close:hover { color: #fff; }

.auth-container h2, .dashboard-container h2, .admin-container h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.form-group { margin-bottom: 1rem; }
.form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: #fff;
  font-family: 'Unbounded', sans-serif;
  font-size: 0.8125rem;
  font-weight: 300;
  transition: border-color 0.2s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group input::placeholder { color: var(--text-muted); }
.form-group input[readonly] {
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  cursor: default;
}
.form-group input[readonly]:focus { border-color: var(--border); }
.form-group input:disabled,
.form-group textarea:disabled {
  opacity: 0.55;
  color: var(--text-muted);
  cursor: not-allowed;
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: #fff;
  font-family: 'Unbounded', sans-serif;
  font-size: 0.8125rem;
  font-weight: 300;
  line-height: 1.5;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.2s;
}
.form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea::placeholder { color: var(--text-muted); }

.sales-status { margin-top: 1rem; font-size: 0.75rem; text-align: center; line-height: 1.5; }
.sales-status.ok { color: var(--accent); }
.sales-status.err { color: #ef4444; }

.auth-divider {
  text-align: center;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.6875rem;
  position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-toggle {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.6875rem;
  color: var(--text-muted);
}
.auth-toggle a { color: var(--accent); font-weight: 500; }

#google-signin-btn { display: flex; justify-content: center; }

/* ═══ DASHBOARD ═══ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 820px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all 0.2s;
}
.stat-card:hover { background: var(--card-hover); }
.stat-card-num { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.stat-card-label { font-size: 0.625rem; color: var(--text-muted); margin-top: 0.25rem; font-weight: 400; }
.stat-card-highlight { border-color: var(--accent); }
.stat-card-highlight .stat-card-num { color: var(--accent); }

.dashboard-plan {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}
.empty-state .btn-primary { margin-top: 1rem; }

/* ═══ ADMIN ═══ */
.admin-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}
.admin-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'Unbounded', sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.625rem 1rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.admin-tab:hover { color: #fff; background: var(--card-bg); }
.admin-tab.active { color: #fff; background: var(--card-hover); border: 1px solid var(--border); }

.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.6875rem;
}
.admin-table th {
  text-align: left;
  padding: 0.75rem;
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.7);
}
.admin-table tr:hover { background: var(--card-bg); }

.plan-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Admin Chat */
.admin-chat-wrap {
  display: flex;
  height: 400px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.admin-chat-sidebar {
  width: 220px;
  min-width: 220px;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  background: rgba(255,255,255,0.02);
}
.admin-convo-item {
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  font-size: 0.6875rem;
}
.admin-convo-item:hover { background: var(--card-bg); }
.admin-convo-item.active { background: var(--card-hover); border-left: 2px solid var(--accent); }
.admin-convo-name { font-weight: 600; font-size: 0.6875rem; }
.admin-convo-preview { font-size: 0.5625rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 0.125rem; }
.admin-convo-time { font-size: 0.5rem; color: var(--text-muted); margin-top: 0.25rem; }
.admin-chat-empty-list { padding: 1.5rem; text-align: center; color: var(--text-muted); font-size: 0.6875rem; }

.admin-chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.admin-chat-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: var(--text-muted);
  font-size: 0.6875rem;
}
.admin-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.6875rem;
  font-weight: 600;
}
.admin-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.admin-msg {
  max-width: 75%;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius);
  font-size: 0.6875rem;
  line-height: 1.5;
}
.admin-msg.visitor { background: var(--card-hover); align-self: flex-start; }
.admin-msg.admin { background: rgba(247,207,72,0.15); color: #fff; align-self: flex-end; }
.admin-msg.bot { background: var(--card-bg); align-self: flex-start; }
.admin-msg-sender { font-size: 0.5rem; font-weight: 600; opacity: 0.5; margin-bottom: 0.125rem; }
.admin-msg-time { font-size: 0.5rem; color: var(--text-muted); margin-top: 0.125rem; }
.admin-msg-meta { display: flex; gap: 0.375rem; align-items: center; margin-top: 0.125rem; }
.admin-msg-read { font-size: 0.5rem; color: var(--accent); }
.admin-msg-delete { background: none; border: none; color: var(--text-muted); font-size: 0.75rem; cursor: pointer; opacity: 0; transition: opacity 0.2s; }
.admin-msg:hover .admin-msg-delete { opacity: 0.6; }

.admin-chat-input-area {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
}
.admin-chat-input-area input {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-family: 'Unbounded', sans-serif;
  font-size: 0.6875rem;
  outline: none;
}

.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.5625rem; }
.btn-danger-outline { color: #ef4444 !important; border-color: #ef4444 !important; }

.convo-delete {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.75rem;
  transition: color 0.15s;
}
.convo-delete:hover { color: #ef4444; }
.admin-convo-info { flex: 1; min-width: 0; }

@media (max-width: 820px) {
  .admin-chat-wrap { flex-direction: column; height: 500px; }
  .admin-chat-sidebar { width: 100%; min-width: unset; max-height: 150px; border-right: none; border-bottom: 1px solid var(--border); }
}

/* ═══ CHAT WIDGET ═══ */
.chat-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
}
.chat-widget.chat-expanded { bottom: 0; right: 0; }

.chat-toggle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(17,17,17,0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.chat-toggle:hover {
  transform: scale(1.08);
  border-color: var(--accent);
  box-shadow: 0 0 1.25rem rgba(247,207,72,0.15);
}

.chat-window {
  display: none;
  flex-direction: column;
  width: 360px;
  height: 520px;
  background: rgba(17,17,17,0.85);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: none;
  border-radius: 1rem 1rem 0 0;
  overflow: hidden;
  animation: chatUp 0.25s ease-out;
}
@keyframes chatUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes chatDown {
  from { opacity: 1; }
  to { opacity: 0; transform: translateY(16px); }
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.chat-header-info { display: flex; align-items: center; gap: 0.625rem; }
.chat-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
}
.chat-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid rgba(17,17,17,0.85);
}
.chat-header-title { font-size: 0.8125rem; font-weight: 600; }
.chat-header-sub { font-size: 0.5625rem; color: var(--text-muted); }
.chat-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  padding: 0.375rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.chat-close:hover { background: rgba(255,255,255,0.12); }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.chat-body::-webkit-scrollbar { width: 2px; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }

.chat-msg {
  max-width: 82%;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  line-height: 1.6;
  word-wrap: break-word;
  animation: msgIn 0.2s ease-out;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; }
}
.chat-msg.bot { background: rgba(255,255,255,0.06); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.admin { background: rgba(255,255,255,0.06); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg-label { font-size: 0.5rem; color: var(--accent); font-weight: 700; margin-bottom: 0.25rem; letter-spacing: 0.05em; text-transform: uppercase; }
.chat-msg.user { background: var(--accent); color: #111; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg-time { font-size: 0.5rem; color: rgba(255,255,255,0.3); margin-top: 0.25rem; }
.chat-msg.user .chat-msg-time { color: rgba(17,17,17,0.5); text-align: right; }

.chat-suggestions-wrap {
  display: none;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  flex-shrink: 0;
  max-height: 3rem;
}

.chat-sug-arrow {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.4);
  font-size: 1.25rem;
  padding: 0 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: color 0.15s;
  line-height: 1;
}
.chat-sug-arrow:hover { color: #fff; }

.chat-suggestions {
  display: none;
  gap: 0.5rem;
  padding: 0.5rem 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  flex: 1;
  min-width: 0;
}
.chat-suggestions::-webkit-scrollbar { display: none; }
.chat-suggestion-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  padding: 0.5rem 0.875rem;
  border-radius: 1.25rem;
  font-family: 'Unbounded', sans-serif;
  font-size: 0.625rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.chat-suggestion-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.15); }

.chat-input-area {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.chat-input-area input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  font-family: 'Unbounded', sans-serif;
  font-size: 0.6875rem;
  font-weight: 300;
  outline: none;
}
.chat-input-area input:focus { border-color: rgba(255,255,255,0.2); }
.chat-input-area input::placeholder { color: rgba(255,255,255,0.3); }
.chat-input-area button {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.chat-input-area button:hover { background: rgba(255,255,255,0.15); }

.chat-typing { background: rgba(255,255,255,0.06) !important; }
.typing-dots { display: flex; gap: 4px; padding: 2px 0; }
.typing-dots span { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.3); animation: bounce 1.2s infinite; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-feedback { display: flex; gap: 4px; margin-top: 4px; }
.chat-fb-btn { background: none; border: none; font-size: 0.75rem; cursor: pointer; opacity: 0.4; transition: opacity 0.15s; }
.chat-fb-btn:hover { opacity: 1; }
.chat-fb-done { font-size: 0.5625rem; color: var(--text-muted); }

@media (max-width: 820px) {
  .chat-window { width: calc(100vw - 2rem); height: 65vh; }
}
