/* =============================================
   QRIS Dynamic - Global Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary:    #080c1a;
  --bg-card:       #0f1629;
  --bg-card2:      #141c35;
  --border:        rgba(99,116,255,0.18);
  --accent:        #6374ff;
  --accent2:       #06b6d4;
  --accent-glow:   rgba(99,116,255,0.35);
  --success:       #22c55e;
  --warning:       #f59e0b;
  --danger:        #ef4444;
  --text:          #e2e8f0;
  --text-muted:    #7c8db0;
  --text-dim:      #4a5568;
  --radius:        14px;
  --radius-sm:     8px;
  --shadow:        0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow:   0 0 40px rgba(99,116,255,0.15);
  --transition:    all 0.25s cubic-bezier(0.4,0,0.2,1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Links ── */
a { color: var(--accent2); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

/* ── Gradient Text ── */
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Card ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.card:hover { border-color: rgba(99,116,255,0.35); box-shadow: var(--shadow-glow); }
.card-sm { padding: 18px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,116,255,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,116,255,0.55);
  color: #fff;
}
.btn-secondary {
  background: var(--bg-card2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 4px 20px rgba(34,197,94,0.35);
}
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(34,197,94,0.5); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; transform: translateY(-1px); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: rgba(99,116,255,0.12); }

/* ── Form Elements ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--accent);
  background: rgba(99,116,255,0.07);
  box-shadow: 0 0 0 3px rgba(99,116,255,0.18);
}
.form-control::placeholder { color: var(--text-dim); }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ── Alerts ── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid transparent;
}
.alert-success { background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.3); color: #86efac; }
.alert-error   { background: rgba(239,68,68,0.12);  border-color: rgba(239,68,68,0.3);  color: #fca5a5; }
.alert-warning { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.3); color: #fcd34d; }
.alert-info    { background: rgba(6,182,212,0.12);  border-color: rgba(6,182,212,0.3);  color: #67e8f9; }

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-premium { background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; }
.badge-free    { background: rgba(124,141,176,0.2); color: var(--text-muted); border: 1px solid rgba(124,141,176,0.3); }
.badge-active  { background: rgba(34,197,94,0.15); color: #86efac; border: 1px solid rgba(34,197,94,0.3); }
.badge-suspended { background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }

/* ── Tables ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--text-muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; background: rgba(255,255,255,0.02); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Stat Cards ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  border-radius: 50%;
}
.stat-icon { font-size: 1.8rem; margin-bottom: 10px; }
.stat-value { font-size: 1.8rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

/* ── Sidebar Layout ── */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0;
  z-index: 100;
  transition: var(--transition);
}
.sidebar-logo {
  padding: 24px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.sidebar-logo-text { font-weight: 800; font-size: 1.05rem; }
.sidebar-logo-sub  { font-size: 0.7rem; color: var(--text-muted); }
.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.nav-section-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  padding: 12px 10px 5px;
  font-weight: 600;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 3px;
  transition: var(--transition);
  text-decoration: none;
}
.nav-item:hover, .nav-item.active {
  background: rgba(99,116,255,0.12);
  color: var(--text);
}
.nav-item.active { border-left: 3px solid var(--accent); padding-left: 11px; }
.nav-item-icon { font-size: 1.1rem; width: 22px; text-align: center; }
.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}
.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
}
.user-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.user-name  { font-size: 0.88rem; font-weight: 600; }
.user-email { font-size: 0.72rem; color: var(--text-muted); }

/* ── Main Content ── */
.main-content {
  margin-left: 260px;
  flex: 1;
  min-height: 100vh;
  background: var(--bg-primary);
}
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(15,22,41,0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.page-title { font-size: 1.25rem; font-weight: 700; }
.page-sub   { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.content-area { padding: 32px; }

/* ── Progress Bar ── */
.progress-bar-wrap {
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.5s ease;
}

/* ── QR Box ── */
.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius);
  display: inline-block;
}
.qr-container img { display: block; max-width: 280px; border-radius: 8px; }

/* ── Payment Page ── */
.pay-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at top, #0d1240 0%, var(--bg-primary) 70%);
  padding: 24px;
}
.pay-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), var(--shadow-glow);
}
.pay-amount {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 8px 0 20px;
}
.qr-wrapper {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  display: inline-block;
  margin: 0 auto 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.qr-wrapper img { display: block; width: 240px; height: 240px; object-fit: contain; }

/* ── Auth Pages ── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-hero {
  background: radial-gradient(ellipse at 30% 50%, #1a1f5e 0%, var(--bg-primary) 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 50px;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.auth-hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99,116,255,0.12), transparent 60%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.auth-form-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 50px;
  background: var(--bg-card);
  overflow-y: auto;
}
.auth-form-inner { width: 100%; max-width: 420px; }
.auth-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.auth-subtitle { color: var(--text-muted); margin-bottom: 32px; font-size: 0.9rem; }

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.row { display: flex; flex-wrap: wrap; margin: -10px; }
.col-md-4 { width: 33.333333%; padding: 10px; box-sizing: border-box; }

/* ── Section Header ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title { font-size: 1rem; font-weight: 700; }
.section-sub   { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* ── Divider ── */
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.divider-text {
  text-align: center;
  position: relative;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 20px 0;
}
.divider-text::before, .divider-text::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 30px);
  height: 1px;
  background: var(--border);
}
.divider-text::before { left: 0; }
.divider-text::after  { right: 0; }

/* ── Upload Zone ── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--accent);
  background: rgba(99,116,255,0.06);
}
.upload-zone input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-icon { font-size: 2.5rem; margin-bottom: 10px; }
.upload-text { font-size: 0.9rem; color: var(--text-muted); }
.upload-text strong { color: var(--text); }

/* ── Responsive: Tablet (≤1024px) ── */
@media screen and (max-width: 1024px) {
  .col-md-4 { width: 50%; }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Mobile Menu Toggle ── */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition);
  z-index: 1001;
}
.mobile-menu-toggle:hover { background: rgba(255,255,255,0.08); }

.sidebar.mobile-open {
  transform: translateX(0);
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  display: none;
}

/* ── Responsive: Tablet (≤1024px) ── */
@media screen and (max-width: 1024px) {
  .sidebar {
    width: 240px;
  }
  .main-content {
    margin-left: 240px;
  }
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .content-area {
    padding: 24px;
  }
  .top-bar {
    padding: 16px 24px;
  }
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-hero {
    display: none;
  }
  .auth-form-wrap {
    padding: 40px 24px;
  }
  .pay-card {
    padding: 32px 24px;
  }
}

/* ── Responsive: Mobile (≤768px) ── */
@media screen and (max-width: 768px) {
  /* Layout adjustments */
  .app-layout {
    flex-direction: column;
  }
  
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 80vw;
    max-width: 260px;
    transform: translateX(-100%);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 999;
  }
  
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
    width: 100%;
  }
  
  /* Header/Top Bar */
  .top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    gap: 12px;
  }
  
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1001;
  }
  
  .page-title {
    font-size: 1rem;
    min-width: 0;
    flex: 1;
  }
  
  .page-sub {
    display: none;
  }
  
  .content-area {
    padding: 14px;
  }
  
  /* Forms */
  .form-group {
    margin-bottom: 16px;
  }
  
  .form-control {
    padding: 11px 14px;
  }
  
  /* Buttons */
  .btn {
    padding: 10px 18px;
    font-size: 0.88rem;
  }
  
  .btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  
  /* Cards */
  .card {
    padding: 14px;
    border-radius: var(--radius-sm);
  }
  
  .card-sm {
    padding: 12px;
  }
  
  /* Mobile card adjustments */
  .card i {
    font-size: 2rem !important;
  }
  
  .card > div:first-child {
    font-size: 2rem !important;
    margin-bottom: 8px !important;
  }
  
  /* Row and columns */
  .row {
    margin: 0 !important;
    gap: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
  }
  
  .col-md-4 {
    width: 100% !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
  }
  
  .row .col-md-4 .card {
    padding: 14px !important;
    height: auto !important;
    margin-bottom: 0 !important;
  }
  
  /* Grid layouts */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
  }
  
  .stat-card {
    padding: 16px;
  }
  
  .stat-value {
    font-size: 1.4rem;
  }
  
  /* Tables */
  .table-wrap {
    font-size: 0.8rem;
  }
  
  table {
    font-size: 0.8rem;
  }
  
  th,
  td {
    padding: 10px 12px;
  }
  
  /* Auth pages */
  .auth-page {
    grid-template-columns: 1fr;
  }
  
  .auth-hero {
    display: none;
  }
  
  .auth-form-wrap {
    padding: 24px 18px;
    min-height: 100vh;
  }
  
  .auth-form-inner {
    width: 100%;
  }
  
  .auth-title {
    font-size: 1.3rem;
  }
  
  /* Payment page */
  .pay-page {
    padding: 16px;
  }
  
  .pay-card {
    max-width: 100%;
    padding: 24px 18px;
    border-radius: 16px;
  }
  
  .pay-amount {
    font-size: 1.8rem;
  }
  
  .qr-wrapper {
    padding: 16px;
  }
  
  .qr-wrapper img {
    width: 200px;
    height: 200px;
  }
  
  .qr-container img {
    max-width: 100%;
  }
  
  /* Upload zone */
  .upload-zone {
    padding: 24px 18px;
  }
  
  .upload-icon {
    font-size: 2rem;
  }
  
  /* Sidebar styling */
  .sidebar-logo {
    padding: 20px 18px;
  }
  
  .sidebar-logo-text {
    font-size: 0.95rem;
  }
  
  .sidebar-nav {
    padding: 12px 8px;
  }
  
  .nav-item {
    padding: 10px 12px;
    font-size: 0.88rem;
  }
  
  /* Feature items in hero */
  .feature-item {
    gap: 12px;
    margin-bottom: 18px;
  }
  
  .feature-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .feature-text h4 {
    font-size: 0.85rem;
  }
  
  .feature-text p {
    font-size: 0.75rem;
  }
  
  /* Hero QR */
  .hero-qr {
    width: 120px;
    height: 120px;
    font-size: 3rem;
  }
  
  /* Dividers and separators */
  .divider-text {
    font-size: 0.75rem;
  }
  
  /* Section headers */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .section-title {
    font-size: 0.95rem;
  }
}

/* ── Responsive: Small Mobile (≤480px) ── */
@media screen and (max-width: 480px) {
  :root {
    --radius: 12px;
    --radius-sm: 6px;
  }
  
  body {
    font-size: 0.9rem;
  }
  
  /* Sidebar */
  .sidebar {
    width: 100vw;
    max-width: 100%;
  }
  
  .sidebar-logo {
    padding: 16px 14px;
  }
  
  .sidebar-logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .sidebar-logo-text {
    font-size: 0.9rem;
  }
  
  /* Top bar */
  .top-bar {
    padding: 12px 14px;
  }
  
  .page-title {
    font-size: 0.95rem;
  }
  
  .page-sub {
    display: none;
  }
  
  /* Content */
  .content-area {
    padding: 14px;
  }
  
  /* Forms & inputs */
  .form-control {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  
  .form-label {
    font-size: 0.8rem;
  }
  
  /* Buttons - make them tall for easier touch */
  .btn {
    padding: 12px 16px;
    font-size: 0.85rem;
    min-height: 44px;
    border-radius: var(--radius-sm);
  }
  
  .btn-full {
    width: 100%;
  }
  
  .btn-sm {
    padding: 8px 10px;
    font-size: 0.75rem;
  }
  
  /* Cards */
  .card {
    padding: 16px;
    border-radius: var(--radius);
  }
  
  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .stat-card {
    padding: 14px;
  }
  
  .stat-value {
    font-size: 1.2rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  /* Auth form */
  .auth-form-wrap {
    padding: 20px 14px;
  }
  
  .auth-form-inner {
    max-width: 100%;
  }
  
  .auth-title {
    font-size: 1.1rem;
  }
  
  .auth-subtitle {
    font-size: 0.8rem;
  }
  
  /* Payment card */
  .pay-card {
    padding: 20px 14px;
    border-radius: 14px;
  }
  
  .pay-amount {
    font-size: 1.6rem;
    margin: 6px 0 16px;
  }
  
  .qr-wrapper {
    padding: 12px;
    margin: 0 auto 18px;
  }
  
  .qr-wrapper img {
    width: 160px;
    height: 160px;
  }
  
  /* Tables */
  .table-wrap {
    font-size: 0.75rem;
  }
  
  th,
  td {
    padding: 8px 10px;
  }
  
  /* Upload */
  .upload-zone {
    padding: 20px 14px;
  }
  
  .upload-icon {
    font-size: 1.8rem;
  }
  
  /* Feature items */
  .feature-item {
    gap: 10px;
    margin-bottom: 14px;
  }
  
  .feature-icon {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }
  
  .feature-text h4 {
    font-size: 0.8rem;
  }
  
  .feature-text p {
    font-size: 0.7rem;
  }
  
  /* Hero QR */
  .hero-qr {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }
  
  /* Alert */
  .alert {
    padding: 12px 14px;
    font-size: 0.85rem;
    gap: 8px;
  }
  
  /* Badge */
  .badge {
    padding: 2px 8px;
    font-size: 0.65rem;
  }
  
  /* Grid */
  .grid-2,
  .grid-3 {
    gap: 12px;
  }
  
  .user-info {
    gap: 10px;
    padding: 10px;
  }
  
  .user-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
  
  .user-name {
    font-size: 0.8rem;
  }
  
  .user-email {
    font-size: 0.65rem;
  }
}

/* ── Landscape Mode (Small height) ── */
@media screen and (max-height: 600px) {
  .sidebar {
    height: 100%;
    overflow-y: auto;
  }
  
  .auth-form-wrap {
    min-height: auto;
  }
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(99,116,255,0.3); }
  50%       { box-shadow: 0 0 40px rgba(99,116,255,0.6); }
}
.fade-in-up  { animation: fadeInUp 0.5s ease both; }
.fadeIn { animation: fadeIn 0.2s ease; }
.fadeOut { animation: fadeOut 0.2s ease; }
.pulse-glow  { animation: pulse-glow 2.5s ease-in-out infinite; }
