/* PlagiTrack — TurniCheckr-inspired theme */
:root, [data-theme="dark"] {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #60a5fa;
  --accent: #10b981;
  --accent-2: #f59e0b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --admin: #dc2626;
  --agent: #0891b2;
  --bg: #090e1a;
  --bg-card: #111827;
  --bg-elevated: #1a2332;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --sidebar-border: rgba(255, 255, 255, 0.06);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.25);
  --gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --gradient-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(59, 130, 246, 0.18), transparent),
    radial-gradient(ellipse 40% 30% at 100% 0%, rgba(16, 185, 129, 0.08), transparent);
  --sidebar-gradient: linear-gradient(180deg, #0c1322 0%, #090e1a 100%);
  --radius: 16px;
  --radius-sm: 12px;
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Inter', system-ui, sans-serif;
  --nav-h: 72px;
  --sidebar-w: 256px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-elevated: #f1f5f9;
  --bg-glass: rgba(15, 23, 42, 0.04);
  --border: rgba(15, 23, 42, 0.1);
  --sidebar-border: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --text-muted: #64748b;
  --shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.1);
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --gradient-hero: radial-gradient(ellipse 90% 70% at 50% -20%, rgba(59, 130, 246, 0.1), transparent);
  --sidebar-gradient: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --primary-light: #2563eb;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.35s, color 0.35s;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.35); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99, 102, 241, 0.55); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Glass card */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.glass:hover { border-color: rgba(99, 102, 241, 0.2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600; font-family: inherit;
  border: none; cursor: pointer; transition: all var(--transition);
  white-space: nowrap; text-align: center; line-height: 1.25;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  min-height: 42px;
}
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 4px 20px rgba(99,102,241,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(99,102,241,0.45); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: var(--bg-glass); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-elevated); border-color: rgba(99,102,241,0.25); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 4px 16px rgba(20,184,166,0.3); }
.btn-accent:hover { transform: translateY(-1px); }
.btn-admin { background: linear-gradient(135deg, #dc2626, #991b1b); color: #fff; box-shadow: 0 4px 16px rgba(220,38,38,0.3); }
.btn-agent { background: linear-gradient(135deg, #0891b2, #0e7490); color: #fff; box-shadow: 0 4px 16px rgba(8,145,178,0.3); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: rgba(239,68,68,0.1); color: var(--danger); border: 1px solid rgba(239,68,68,0.35); }
.btn-danger:hover { background: rgba(239,68,68,0.18); }
.btn-sm { padding: 8px 15px; font-size: 0.8rem; border-radius: 10px; min-height: 38px; }
.btn-lg { padding: 14px 30px; font-size: 1rem; border-radius: 14px; min-height: 48px; }
.btn-block { width: 100%; }
.btn-row {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px;
}
.btn-row .btn { flex: 1 1 140px; min-width: 0; }
.action-btns {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.action-btns .btn { flex: 1 1 auto; min-width: 88px; }
.table-actions { min-width: 116px; vertical-align: middle; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn.is-loading { opacity: 0.9; cursor: wait; pointer-events: none; }
.btn-spinner {
  width: 16px; height: 16px; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff;
  border-radius: 50%; animation: btnSpin 0.65s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }
.report-upload-btn { min-height: 44px; }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 7px; letter-spacing: 0.02em; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 0.9rem; font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); opacity: 0.65; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-primary { background: rgba(99,102,241,0.18); color: var(--primary-light); }
.badge-accent { background: rgba(20,184,166,0.18); color: var(--accent); }
.badge-warn { background: rgba(245,158,11,0.18); color: var(--warning); }
.badge-success { background: rgba(16,185,129,0.18); color: var(--success); }
.badge-academic { background: rgba(99,102,241,0.18); color: var(--primary-light); }
.badge-advanced { background: rgba(20,184,166,0.18); color: var(--accent); }

/* Status pills */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 100px; font-size: 0.74rem; font-weight: 600;
}
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-submitted { background: rgba(148,163,184,0.15); color: var(--text-muted); }
.status-under_review, .status-pending { background: rgba(245,158,11,0.15); color: var(--warning); }
.status-processing, .status-in_progress { background: rgba(6,182,212,0.15); color: #06b6d4; }
.status-report_ready { background: rgba(99,102,241,0.15); color: var(--primary-light); }
.status-completed { background: rgba(16,185,129,0.15); color: var(--success); }
.status-rejected { background: rgba(239,68,68,0.15); color: #ef4444; }

/* Modals */
.payment-modal {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(6px); padding: 24px;
  animation: fadeIn 0.25s ease;
}
.payment-modal.hidden { display: none; }
.payment-modal-card { max-width: 480px; width: 100%; padding: 28px; animation: scaleIn 0.3s ease; }
.upload-zone.mini { padding: 20px; text-align: center; }
.file-input-hidden {
  position: absolute; width: 0; height: 0; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.report-upload-wrap { position: relative; }
.report-upload-icon { font-size: 1.75rem; display: block; margin-bottom: 8px; }
.report-upload-text { margin: 0 0 4px; font-weight: 600; font-size: 0.9rem; }
.report-upload-hint { display: block; color: var(--text-muted); margin-bottom: 12px; }
.report-browse-btn { margin-top: 4px; }
.report-file-preview { margin-top: 10px; }
.report-file-preview.hidden { display: none; }
.report-selected-card {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: rgba(34, 197, 94, 0.08); border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: var(--radius-sm);
}
.report-selected-icon { font-size: 1.4rem; flex-shrink: 0; }
.report-selected-info { flex: 1; min-width: 0; }
.report-selected-info strong { display: block; font-size: 0.9rem; word-break: break-all; }
.report-selected-info small { color: var(--text-muted); font-size: 0.8rem; }
.report-selected-card.is-uploading {
  background: rgba(99, 102, 241, 0.08); border-color: rgba(99, 102, 241, 0.35);
}
.report-selected-card .btn-spinner.report-selected-icon {
  width: 22px; height: 22px; border-width: 2px;
  border-color: rgba(99, 102, 241, 0.25); border-top-color: var(--primary);
}
.report-current-file { margin-top: 8px; font-size: 0.85rem; color: var(--text-muted); }

/* User portal — ready reports */
.ready-report-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding: 16px 18px; margin-bottom: 10px;
  background: rgba(34, 197, 94, 0.06); border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-sm);
}
.ready-report-card:last-child { margin-bottom: 0; }
.ready-report-info { flex: 1; min-width: 200px; }
.ready-report-info strong { display: inline-block; margin-right: 8px; }
.ready-report-info small { display: block; margin-top: 6px; color: var(--text-muted); font-size: 0.82rem; }
.ready-report-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.ready-report-actions .btn { min-width: 120px; }
.report-file-tag { font-size: 0.82rem; color: var(--primary-light); }

/* Your Reports page — full width */
.reports-page-wrap { width: 100%; }
.reports-page-header {
  margin-bottom: 22px; align-items: flex-start;
}
.reports-page-header h3 { font-size: 1.2rem; margin-bottom: 6px; }
.reports-page-intro {
  font-size: 0.88rem; color: var(--text-muted); margin: 0; max-width: 640px;
}
.reports-grid {
  display: flex; flex-direction: column; gap: 16px; width: 100%;
}
.report-full-card {
  width: 100%; padding: 22px 24px;
  display: flex; flex-direction: column; gap: 18px;
  border: 1px solid var(--border); transition: border-color var(--transition), box-shadow var(--transition);
}
.report-full-card:hover { border-color: rgba(99, 102, 241, 0.35); box-shadow: var(--shadow-sm); }
.report-full-body {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px; width: 100%;
}
.report-full-doc {
  display: flex; align-items: flex-start; gap: 14px; flex: 1 1 280px; min-width: 0;
}
.report-full-icon { font-size: 2rem; flex-shrink: 0; line-height: 1; }
.report-full-titles strong { display: block; font-size: 1.05rem; margin-bottom: 6px; word-break: break-word; }
.report-full-titles .badge { margin-bottom: 6px; }
.report-full-titles small { display: block; color: var(--text-muted); font-size: 0.8rem; }
.report-full-meta {
  display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 16px;
  flex: 2 1 480px; width: 100%;
}
.report-meta-item { display: flex; flex-direction: column; gap: 4px; }
.report-meta-label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted);
}
.report-meta-value { font-size: 0.9rem; font-weight: 600; word-break: break-word; }
.report-meta-highlight { color: var(--success); font-size: 1rem; }
.report-full-actions {
  width: 100%; justify-content: flex-end; padding-top: 4px; border-top: 1px solid var(--border);
}
.reports-empty {
  padding: 56px 24px; text-align: center; color: var(--text-muted);
  background: var(--bg-glass); border: 1px dashed var(--border); border-radius: var(--radius);
  width: 100%;
}
.reports-empty-icon { font-size: 2.5rem; margin-bottom: 12px; }
.reports-empty strong { display: block; color: var(--text); margin-bottom: 8px; }
.reports-empty p { max-width: 360px; margin: 0 auto 16px; font-size: 0.9rem; line-height: 1.6; }

/* Report preview modal */
.report-preview-modal { padding: 16px; }
.report-preview-card {
  max-width: 960px; width: 100%; max-height: 92vh;
  display: flex; flex-direction: column; padding: 24px;
}
.report-preview-meta { display: block; margin-top: 4px; color: var(--text-muted); font-size: 0.82rem; }
.report-preview-body {
  flex: 1; min-height: 360px; max-height: calc(92vh - 200px);
  overflow: hidden; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg-elevated);
}
.report-preview-frame {
  width: 100%; height: 100%; min-height: 360px;
  border: none; display: block; background: #fff;
}
.report-preview-fallback {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 280px; padding: 32px 24px; text-align: center; color: var(--text-muted);
}
.report-preview-actions { margin-top: 16px; margin-bottom: 0; }
.payment-modal .card-header { display: flex; justify-content: space-between; align-items: center; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.96) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Settings */
.settings-layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; max-width: 920px; }
.settings-tabs { padding: 14px; display: flex; flex-direction: column; gap: 6px; height: fit-content; }
.settings-tab {
  padding: 13px 16px; border: none; background: none; color: var(--text-muted);
  text-align: left; border-radius: var(--radius-sm); cursor: pointer; font-family: inherit; font-size: 0.88rem;
  transition: all var(--transition);
}
.settings-tab:hover { background: var(--bg-glass); color: var(--text); }
.settings-tab.active { background: rgba(99,102,241,0.16); color: var(--primary-light); font-weight: 600; box-shadow: inset 3px 0 0 var(--primary); }
.settings-panel { padding: 28px; }
.pref-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; font-size: 0.9rem; cursor: pointer; border-bottom: 1px solid var(--border); }
.pref-row:last-child { border-bottom: none; }

/* Helpdesk */
.ticket-row {
  padding: 16px 18px; margin-bottom: 10px; background: var(--bg-glass);
  border-radius: var(--radius-sm); cursor: pointer; border: 1px solid var(--border);
  transition: all var(--transition);
}
.ticket-row:hover { border-color: var(--primary); background: rgba(99,102,241,0.06); transform: translateX(4px); }
.ticket-modal-card { max-width: 640px; max-height: 90vh; overflow-y: auto; }
.ticket-thread { max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding-right: 4px; }
.ticket-msg { padding: 16px; border-radius: var(--radius-sm); background: var(--bg-elevated); border: 1px solid var(--border); }
.ticket-msg.user { border-left: 3px solid var(--primary); }
.ticket-msg.admin, .ticket-msg.agent { border-left: 3px solid var(--accent); }
.ticket-msg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 0.88rem; }
.ticket-msg p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 6px; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text-muted); padding: 14px 18px;
  background: var(--bg-glass); border-bottom: 1px solid var(--border);
}
td { padding: 15px 18px; font-size: 0.875rem; border-bottom: 1px solid var(--border); }
tbody tr { transition: background var(--transition); }
tbody tr:hover td { background: rgba(99,102,241,0.04); }
tbody tr:last-child td { border-bottom: none; }

/* Toast & popup */
.toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm); padding: 16px 22px; font-size: 0.9rem; font-weight: 500;
  box-shadow: var(--shadow); transform: translateY(80px); opacity: 0; transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 380px;
}
.toast.show { transform: translateY(0); opacity: 1; }

.popup-alert {
  position: fixed; top: 88px; right: 24px; z-index: 400;
  background: var(--bg-elevated); border: 1px solid rgba(99,102,241,0.4);
  border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow);
  max-width: 360px; animation: slideIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Login screen — see TurniCheckr-style block below */

/* Dashboard layout */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); background: var(--sidebar-gradient);
  border-right: 1px solid var(--sidebar-border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  transition: transform 0.3s ease;
}
.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); padding: 0 20px;
  border-bottom: 1px solid var(--sidebar-border); flex-shrink: 0;
}
.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.05rem; color: var(--text);
}
.sidebar-logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--gradient); display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}
.sidebar-user {
  padding: 16px; border-bottom: 1px solid var(--sidebar-border); flex-shrink: 0;
}
.sidebar-user-inner {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: var(--radius-sm);
  background: var(--bg-glass); border: 1px solid var(--border);
}
.sidebar-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gradient); display: grid; place-items: center;
  font-weight: 700; font-size: 0.85rem; color: #fff; flex-shrink: 0;
}
.sidebar-user-info strong { display: block; font-size: 0.88rem; font-weight: 600; }
.sidebar-user-info span { font-size: 0.75rem; color: var(--text-muted); }
.sidebar-brand {
  padding: 24px 20px; border-bottom: 1px solid var(--border);
  font-family: var(--font-display); font-weight: 800; font-size: 1.08rem;
  background: linear-gradient(135deg, var(--text), var(--primary-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.sidebar-brand small {
  display: block; font-size: 0.68rem; font-weight: 500; color: var(--text-muted);
  margin-top: 3px; -webkit-text-fill-color: var(--text-muted);
}
.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  width: 100%; padding: 11px 14px; border-radius: 10px;
  font-size: 0.875rem; font-weight: 500; color: var(--text-muted);
  background: none; border: none; cursor: pointer; font-family: inherit;
  text-align: left; transition: all var(--transition); margin-bottom: 2px;
}
.nav-item svg { flex-shrink: 0; opacity: 0.7; }
.nav-item:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.nav-item:hover svg { opacity: 1; }
.nav-item.active {
  background: rgba(59, 130, 246, 0.15); color: var(--primary-light); font-weight: 600;
}
.nav-item.active svg { opacity: 1; color: var(--primary-light); }
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px; background: var(--primary); border-radius: 0 3px 3px 0;
}
.sidebar-nav .nav-item { position: relative; }
.nav-badge {
  margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px;
  background: var(--danger); color: #fff; font-size: 0.68rem; font-weight: 700;
  display: inline-grid; place-items: center;
}
.nav-badge.hidden { display: none; }
.sidebar-footer { padding: 16px 12px; border-top: 1px solid var(--border); }
.sidebar-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99;
  backdrop-filter: blur(2px); animation: fadeIn 0.2s ease;
}

.main { flex: 1; margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.topbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 0 28px; height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  position: sticky; top: 0; z-index: 90;
}
.topbar h1 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-user-name { font-size: 0.85rem; color: var(--text-muted); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-right { flex-wrap: wrap; justify-content: flex-end; }
.content { padding: 28px 32px; flex: 1; max-width: 1400px; width: 100%; }
.page { display: none; }
.page.active { display: block; animation: pageIn 0.35s ease; }

/* Welcome banner */
.welcome-banner {
  padding: 28px 32px; margin-bottom: 24px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(20,184,166,0.08));
  border: 1px solid rgba(99,102,241,0.25); position: relative; overflow: hidden;
}
.welcome-banner::after {
  content: ''; position: absolute; right: -20px; top: -20px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.2), transparent 70%);
}
.welcome-banner h2 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; position: relative; }
.welcome-banner p { color: var(--text-muted); font-size: 0.92rem; position: relative; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat-card {
  padding: 24px; position: relative; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient); opacity: 0.85;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-card .lbl { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px; font-weight: 500; }
.stat-card .val {
  font-family: var(--font-display); font-size: 1.85rem; font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.1;
}
.stat-card .sub { font-size: 0.72rem; color: var(--success); margin-top: 6px; }

.card { padding: 26px; margin-bottom: 22px; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.card-header h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* Quick actions */
.quick-actions { display: flex; flex-direction: column; gap: 10px; }
.quick-actions .btn { justify-content: flex-start; padding: 14px 18px; font-size: 0.88rem; }

/* Empty state */
.empty-state {
  padding: 48px 24px; text-align: center; color: var(--text-muted);
}
.empty-state .icon { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.6; }
.empty-state p { font-size: 0.9rem; max-width: 280px; margin: 0 auto; }

/* Service tabs */
.service-tabs {
  display: flex; gap: 6px; margin-bottom: 24px;
  background: var(--bg-glass); padding: 6px; border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.service-tab {
  flex: 1; padding: 12px 16px; border-radius: 10px; border: none;
  background: transparent; color: var(--text-muted); font-weight: 600;
  font-size: 0.875rem; cursor: pointer; font-family: inherit; transition: all var(--transition);
}
.service-tab:hover { color: var(--text); }
.service-tab.active { color: #fff; }
.service-tab.active:not(.academic):not(.advanced) { background: var(--primary); box-shadow: 0 4px 12px rgba(99,102,241,0.35); }
.service-tab.active.academic { background: linear-gradient(135deg, #6366f1, #8b5cf6); box-shadow: 0 4px 12px rgba(99,102,241,0.35); }
.service-tab.active.advanced { background: linear-gradient(135deg, #14b8a6, #0891b2); box-shadow: 0 4px 12px rgba(20,184,166,0.35); }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 48px 28px; text-align: center; cursor: pointer; transition: all var(--transition);
  background: var(--bg-glass);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--primary); background: rgba(99,102,241,0.06);
  transform: scale(1.01);
}

/* Package cards */
.pkg-card { padding: 30px; position: relative; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); cursor: pointer; }
.pkg-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pkg-card.featured { border-color: rgba(99,102,241,0.5); box-shadow: 0 0 0 1px rgba(99,102,241,0.2), var(--shadow-sm); }
.pkg-card.selected {
  border-color: var(--primary); background: rgba(99, 102, 241, 0.1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22), var(--shadow);
  transform: translateY(-4px);
}
.pkg-card.selected:hover { transform: translateY(-4px); }
.pkg-selected-tag {
  position: absolute; top: -12px; right: 16px;
  background: var(--success); color: #fff; font-size: 0.68rem; font-weight: 700;
  padding: 5px 14px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
.pkg-card .tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: #fff; font-size: 0.68rem; font-weight: 700;
  padding: 5px 16px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.04em;
}
.pkg-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.pkg-price { font-family: var(--font-display); font-size: 2.3rem; font-weight: 800; margin: 14px 0 6px; letter-spacing: -0.03em; }
.pkg-credits { color: var(--accent); font-weight: 700; font-size: 0.95rem; margin-bottom: 16px; }

/* Payment methods */
.pay-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 22px; }
.pay-method {
  padding: 16px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; text-align: center; font-size: 0.85rem; font-weight: 600;
  transition: all var(--transition); background: var(--bg-glass);
}
.pay-method:hover { border-color: rgba(99,102,241,0.3); }
.pay-method.selected { border-color: var(--primary); background: rgba(99,102,241,0.12); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.pay-method .icon { font-size: 1.5rem; margin-bottom: 8px; }

/* Promo banner */
.promo-banner {
  background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(20,184,166,0.08));
  border: 1px solid rgba(16,185,129,0.28); border-radius: var(--radius);
  padding: 22px 26px; margin-top: 22px; text-align: center;
}
.promo-banner strong { color: var(--accent); }
.promo-banner a { color: var(--primary-light); font-weight: 700; }

/* Theme & notif */
.theme-btn, .notif-btn {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: var(--bg-glass); border: 1px solid var(--border);
  cursor: pointer; display: grid; place-items: center; font-size: 1.1rem;
  transition: all var(--transition);
}
.theme-btn:hover, .notif-btn:hover { background: var(--bg-elevated); border-color: rgba(99,102,241,0.3); }
.notif-btn { position: relative; }
.notif-badge {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 50%; background: var(--danger); color: #fff;
  font-size: 0.62rem; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--bg-card);
}

.credit-display { display: flex; gap: 10px; flex-wrap: wrap; }
.credit-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 16px; border-radius: var(--radius-sm); font-size: 0.84rem; font-weight: 600;
  background: var(--bg-glass); border: 1px solid var(--border);
  transition: border-color var(--transition);
}
.credit-pill.academic { border-color: rgba(99,102,241,0.35); background: rgba(99,102,241,0.08); }
.credit-pill.advanced { border-color: rgba(20,184,166,0.35); background: rgba(20,184,166,0.08); }

.logo-mark {
  width: 40px; height: 40px; border-radius: 12px; background: var(--gradient);
  display: grid; place-items: center; font-weight: 800; color: #fff;
}

.mobile-toggle {
  display: none; background: var(--bg-glass); border: 1px solid var(--border);
  color: var(--text); font-size: 1.3rem; cursor: pointer; width: 42px; height: 42px;
  border-radius: var(--radius-sm); transition: background var(--transition);
}
.mobile-toggle:hover { background: var(--bg-elevated); }

/* WhatsApp */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s, box-shadow 0.25s;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 12px 36px rgba(37, 211, 102, 0.55); }
.whatsapp-float svg { width: 30px; height: 30px; fill: currentColor; }

/* Hero auth card */
.auth-card { padding: 32px; border-radius: 20px; }
.auth-card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.auth-card .sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 22px; }
.auth-tabs { display: flex; gap: 4px; background: var(--bg-glass); border-radius: 10px; padding: 4px; margin-bottom: 22px; }
.auth-tab {
  flex: 1; padding: 10px; border: none; border-radius: 8px; background: transparent;
  color: var(--text-muted); font-size: 0.875rem; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: all var(--transition);
}
.auth-tab.active { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(99,102,241,0.35); }
.auth-panel { display: none; }
.auth-panel.active { display: block; }
.auth-footer { text-align: center; margin-top: 16px; font-size: 0.82rem; color: var(--text-muted); }
.auth-footer a { color: var(--primary-light); font-weight: 600; }

/* TurniCheckr-style dashboard */
.dash-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 28px;
}
.dash-header h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.dash-header p { font-size: 0.9rem; color: var(--text-muted); }
.credits-card {
  padding: 24px; margin-bottom: 24px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
}
.credits-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.credits-card-head h3 { font-size: 0.95rem; font-weight: 600; }
.credits-card-head span { font-size: 0.82rem; color: var(--text-muted); }
.credits-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.credit-block label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); display: block; margin-bottom: 8px; }
.credit-block .credit-val { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; }
.credit-block.academic .credit-val { color: var(--primary-light); }
.credit-block.advanced .credit-val { color: var(--accent); }
.credit-progress { height: 6px; background: var(--bg-glass); border-radius: 99px; margin-top: 10px; overflow: hidden; }
.credit-progress-fill { height: 100%; border-radius: 99px; background: var(--gradient); transition: width 0.4s ease; }
.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.status-card {
  padding: 20px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
  transition: border-color var(--transition), transform var(--transition);
}
.status-card:hover { transform: translateY(-2px); border-color: rgba(59,130,246,0.2); }
.status-card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; flex-shrink: 0;
}
.status-card-icon.pending { background: rgba(245,158,11,0.12); color: #f59e0b; }
.status-card-icon.processing { background: rgba(59,130,246,0.12); color: #3b82f6; }
.status-card-icon.ready { background: rgba(99,102,241,0.12); color: #818cf8; }
.status-card-icon.completed { background: rgba(16,185,129,0.12); color: #10b981; }
.status-card-info .val { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.status-card-info .lbl { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.login-screen {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: var(--bg);
}
.login-box {
  width: 100%; max-width: 420px; padding: 40px 36px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow);
}
.login-brand .logo-mark {
  width: 48px; height: 48px; border-radius: 12px; margin: 0 auto 16px;
  font-size: 1.1rem; box-shadow: 0 8px 24px rgba(59,130,246,0.35);
}
.login-brand h2 { font-size: 1.4rem; font-weight: 700; }
.login-brand p { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.glass {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.glass:hover { border-color: rgba(59, 130, 246, 0.2); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(59,130,246,0.35); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 8px 24px rgba(59,130,246,0.4); }
.service-tab.active.academic { background: var(--primary); box-shadow: 0 4px 12px rgba(59,130,246,0.35); }
.welcome-banner {
  padding: 28px 32px; margin-bottom: 24px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(16,185,129,0.06));
  border: 1px solid rgba(59,130,246,0.2);
}
.stat-card::before { background: var(--gradient); }
.nav-icon { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Subscription banner & plans */
.sub-banner {
  padding: 18px 22px; border-radius: var(--radius-sm); margin-bottom: 20px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
}
.sub-banner-none {
  background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.35);
}
.sub-banner-none strong { color: #f59e0b; display: block; font-size: 0.95rem; }
.sub-banner-none p { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.sub-banner-active {
  background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(16,185,129,0.08));
  border: 1px solid rgba(59,130,246,0.25);
}
.sub-active-card {
  padding: 22px 24px; border-radius: var(--radius); margin-bottom: 20px;
  background: var(--bg-card); border: 1px solid var(--border);
}
.sub-active-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.sub-active-head h3 { font-size: 1rem; font-weight: 700; }
.sub-active-meta { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan-card {
  padding: 24px; border-radius: var(--radius); position: relative;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.plan-card:hover { transform: translateY(-4px); border-color: rgba(59,130,246,0.3); box-shadow: var(--shadow-sm); }
.plan-card.popular { border-color: rgba(59,130,246,0.45); box-shadow: 0 0 0 1px rgba(59,130,246,0.15); }
.plan-card.selected { border-color: var(--primary); background: rgba(59,130,246,0.06); }
.plan-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 0.65rem; font-weight: 700;
  padding: 4px 14px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.05em;
}
.plan-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.plan-tag {
  font-size: 0.68rem; font-weight: 600; padding: 3px 10px; border-radius: 100px;
  background: var(--bg-glass); color: var(--text-muted); border: 1px solid var(--border);
}
.plan-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.plan-card .plan-desc { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 14px; min-height: 40px; }
.plan-price { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 4px; }
.plan-price small { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
.plan-per { font-size: 0.78rem; color: var(--primary-light); font-weight: 600; margin-bottom: 14px; }
.plan-features { list-style: none; margin-bottom: 18px; }
.plan-features li { font-size: 0.8rem; color: var(--text-muted); padding: 5px 0; display: flex; gap: 8px; align-items: flex-start; }
.plan-features li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }

/* Support page */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.support-card { padding: 26px; }
.support-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.support-desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 18px; }
.support-links { list-style: none; }
.support-links li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.support-links li:last-child { border-bottom: none; }
.support-icon { font-size: 1.3rem; flex-shrink: 0; }
.support-links a { color: var(--primary-light); font-weight: 600; }
.support-quick-links { display: flex; flex-direction: column; gap: 8px; }
.support-link-btn {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px;
  background: var(--bg-glass); border: 1px solid var(--border); color: var(--text);
  font-size: 0.88rem; font-weight: 500; cursor: pointer; font-family: inherit; text-decoration: none;
  transition: all var(--transition); text-align: left;
}
.support-link-btn:hover { border-color: rgba(59,130,246,0.3); background: rgba(59,130,246,0.06); }
.support-info-full { grid-column: 1 / -1; }
.support-tips { list-style: none; }
.support-tips li { font-size: 0.88rem; color: var(--text-muted); padding: 8px 0 8px 18px; position: relative; line-height: 1.6; }
.support-tips li::before { content: '•'; position: absolute; left: 0; color: var(--primary-light); }

/* Settings profile & sounds */
.profile-upload-wrap { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.profile-avatar-preview {
  width: 80px; height: 80px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--gradient); display: grid; place-items: center;
  font-weight: 700; font-size: 1.4rem; color: #fff; border: 3px solid var(--border);
}
.profile-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.settings-id-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px;
  padding: 14px 16px; background: var(--bg-glass); border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.settings-id-row label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); width: 100%; margin-bottom: 4px; }
.settings-id-value { font-family: monospace; font-size: 0.9rem; font-weight: 600; flex: 1; word-break: break-all; }
.sound-setting-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.sound-setting-row:last-child { border-bottom: none; }
.sound-setting-row label { font-size: 0.88rem; font-weight: 600; flex: 1; min-width: 140px; }
.sound-setting-row select { max-width: 180px; flex: 1; }
.sound-setting-actions { display: flex; gap: 8px; }
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

@media (max-width: 1024px) {
  .stats-grid, .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: 1fr 1fr; }
  .credits-row { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .topbar-right .btn-ghost.btn-sm { padding: 8px 12px; font-size: 0.78rem; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .mobile-toggle { display: grid; place-items: center; }
  .stats-grid, .grid-3, .status-grid, .plan-grid { grid-template-columns: 1fr; }
  .content { padding: 18px 16px; }
  .pay-methods { grid-template-columns: 1fr; }
  .topbar { padding: 14px 16px; gap: 10px; }
  .topbar h1 { font-size: 1.05rem; line-height: 1.3; }
  .welcome-banner { padding: 22px 20px; }
  .settings-tabs { flex-direction: row; flex-wrap: wrap; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
  th, td { padding: 12px 12px; }
  .toast {
    left: 16px; right: 16px; bottom: 16px; max-width: none;
  }
  .popup-alert {
    left: 16px; right: 16px; top: auto; bottom: 88px; max-width: none;
  }
  .card-header .btn { min-height: 42px; }
}
@media (max-width: 640px) {
  .topbar { flex-direction: column; align-items: stretch; }
  .topbar-left, .topbar-right { width: 100%; justify-content: space-between; }
  .topbar-right { justify-content: flex-start; gap: 8px; }
  .topbar-right .btn-ghost.btn-sm { flex: 1 1 calc(50% - 4px); justify-content: center; min-height: 44px; }
  .topbar-right .topbar-link-compact { font-size: 0.72rem; padding: 8px 10px; }
  .credit-display { width: 100%; }
  .credit-pill { flex: 1 1 auto; justify-content: center; font-size: 0.72rem; padding: 8px 10px; min-height: 40px; }
  .col-hide-sm { display: none !important; }
  .action-btns {
    flex-direction: column; align-items: stretch; width: 100%; gap: 8px;
  }
  .action-btns .btn {
    width: 100%; min-height: 44px; white-space: normal;
  }
  .table-wrap td:has(.btn + .btn) {
    display: flex; flex-direction: column; gap: 8px; min-width: 124px;
  }
  .table-wrap td:has(.btn + .btn) .btn {
    width: 100%; min-height: 44px; margin: 0; white-space: normal;
  }
  .table-wrap td:has(.btn:only-child) .btn {
    width: 100%; min-height: 44px; white-space: normal;
  }
  .ready-report-card {
    flex-direction: column; align-items: stretch; text-align: left;
  }
  .ready-report-actions {
    flex-direction: column; width: 100%;
  }
  .ready-report-actions .btn {
    width: 100%; min-height: 48px; justify-content: center;
  }
  .report-full-meta { grid-template-columns: 1fr 1fr; }
  .report-full-actions { flex-direction: column; }
  .report-full-actions .btn { width: 100%; min-height: 48px; }
  .pkg-card.selected { transform: none; }
  .pkg-card.selected:hover { transform: none; }
  .report-browse-btn { width: 100%; min-height: 44px; }
  .report-selected-card {
    flex-direction: column; align-items: stretch; text-align: center; gap: 10px;
  }
  .report-selected-card .btn { width: 100%; min-height: 44px; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; min-height: 48px; flex: 1 1 auto; }
  .quick-actions .btn { min-height: 48px; justify-content: center; }
  .order-detail .btn { width: 100%; min-height: 44px; }
  .claim-btn, .btn-admin.btn-sm, .btn-agent.btn-sm {
    width: 100%; min-height: 44px; white-space: normal;
  }
  th, td { padding: 10px 8px; font-size: 0.8rem; }
  .btn { white-space: normal; }
  .payment-modal { padding: 12px; align-items: flex-end; }
  .payment-modal-card { max-height: 92vh; overflow-y: auto; padding: 20px 16px; }
  .report-preview-modal { padding: 8px; align-items: flex-end; }
  .report-preview-card { padding: 16px; max-height: 96vh; }
  .report-preview-body { min-height: 50vh; max-height: calc(96vh - 210px); }
  .report-preview-frame { min-height: 50vh; }
  .whatsapp-float { bottom: 18px; right: 18px; width: 52px; height: 52px; }
  .theme-btn, .notif-btn, .mobile-toggle { min-width: 44px; min-height: 44px; }
  .topbar-user-name { max-width: 100%; flex: 1 1 100%; }
}
