:root {
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --surface-2: #f1f5f9;
  --surface-hover: #e2e8f0;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-secondary: #334155;
  --muted: #64748b;
  --primary: #10b981;
  --primary-2: #059669;
  --primary-soft: #ecfdf5;
  --primary-glow: rgba(16, 185, 129, 0.22);
  --accent: #059669;
  --success: #16a34a;
  --success-bg: #dcfce7;
  --warning: #d97706;
  --warning-bg: #fef3c7;
  --danger: #ef4444;
  --danger-bg: #fee2e2;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 4px 16px rgba(15, 23, 42, 0.03);
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

/* Topbar */
.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: sticky;
  top: 14px;
  z-index: 20;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.24);
  flex-shrink: 0;
}

.brand h1 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.brand p {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 2px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.clock-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.clock-pill strong {
  font-family: var(--font-mono);
  color: var(--text);
  font-weight: 600;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.card h2 {
  font-size: 1.06rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  color: var(--text);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 22px;
}

/* Forms */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.93rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.form-group input::placeholder {
  color: #94a3b8;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.89rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.16s ease, background 0.16s ease, opacity 0.16s ease;
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.24);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-2);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.34);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-secondary);
  border-color: var(--border-strong);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--surface-2);
  color: var(--text);
}

.btn-success {
  background: #16a34a;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.22);
}

.btn-success:hover:not(:disabled) {
  background: #15803d;
}

.btn-danger {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.btn-danger:hover:not(:disabled) {
  background: #fee2e2;
  color: #991b1b;
}

.btn-sm {
  padding: 6px 11px;
  font-size: 0.8rem;
  border-radius: 8px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-active {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-upcoming {
  background: #ede9fe;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.badge-closed {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.badge-danger {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Banners */
.banner {
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.banner-info {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #3730a3;
}

.banner-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.banner-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.banner-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* QR Stage */
.qr-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #f8fafc;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  min-height: 320px;
  text-align: center;
}

.qr-box {
  background: #ffffff;
  padding: 16px;
  border-radius: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #ffffff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr {
  transition: background 0.14s ease;
}

tbody tr:hover {
  background: #f8fafc;
}

th {
  background: #f8fafc;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  word-break: break-all;
  color: var(--text-secondary);
}

.hidden {
  display: none !important;
}

#qr-reader {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #f8fafc;
  box-shadow: var(--shadow);
}

.muted {
  color: var(--muted);
  font-size: 0.84rem;
}

/* ============================================================================
   Premium Professional Light Auth Page (Split Hero + Elevated Auth Card)
   ============================================================================ */
body.auth-page {
  background-color: #f8fafc;
  background-image:
    radial-gradient(ellipse 70% 55% at 10% 10%, rgba(16, 185, 129, 0.09), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 15%, rgba(5, 150, 105, 0.07), transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero-nav {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero-brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.hero-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.025em;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.hero-links a {
  color: #475569;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

.hero-login-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.hero-login-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(125, 42, 232, 0.12);
}

.auth-stage {
  flex: 1;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding: 12px 28px 40px;
}

.auth-hero-copy {
  padding-right: 12px;
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.auth-hero-title {
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 14px;
}

.auth-hero-title span {
  background: linear-gradient(135deg, #10b981, #059669);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-hero-sub {
  font-size: 1rem;
  color: #475569;
  max-width: 480px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.auth-feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.auth-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ecfdf5;
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.auth-feature-item strong {
  display: block;
  font-size: 0.9rem;
  color: #0f172a;
  margin-bottom: 2px;
}

.auth-feature-item span {
  font-size: 0.82rem;
  color: #64748b;
}

.auth-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  justify-self: end;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 28px 28px 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.09), 0 4px 16px rgba(15, 23, 42, 0.04);
}

.auth-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.auth-seg-btn {
  padding: 9px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.auth-seg-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.auth-modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.auth-modal-sub {
  font-size: 0.84rem;
  color: #64748b;
  margin-bottom: 20px;
}

.input-box {
  display: flex;
  align-items: center;
  border: 1.5px solid #e2e8f0;
  border-radius: 11px;
  background: #f8fafc;
  padding: 0 13px;
  margin-bottom: 14px;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.input-box:focus-within {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.input-box svg {
  width: 17px;
  height: 17px;
  color: #94a3b8;
  flex-shrink: 0;
  margin-right: 10px;
  transition: color 0.16s ease;
}

.input-box:focus-within svg {
  color: var(--primary);
}

.input-box input,
.input-box select {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #0f172a;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  padding: 11px 0;
}

.input-box input::placeholder {
  color: #94a3b8;
}

.auth-row-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #475569;
  margin: 2px 0 18px;
}

.auth-row-meta label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.auth-row-meta input[type="checkbox"] {
  accent-color: var(--primary);
}

.auth-link {
  color: var(--primary-2);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-switch-text {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 16px;
}

.btn-purple {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.16s ease, opacity 0.16s ease;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.28);
}

.btn-purple:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.38);
}

.btn-purple:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-device-note {
  margin-top: 18px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.74rem;
  color: #64748b;
}

.auth-device-note .mono {
  color: #334155;
  font-size: 0.72rem;
}

@media (max-width: 920px) {
  .auth-stage {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 8px;
  }

  .auth-hero-copy {
    display: none;
  }

  .auth-modal {
    justify-self: center;
  }
}

@media (max-width: 680px) {
  .hero-links {
    display: none;
  }
}

/* ============================================================================
   Dashboard Sidebar / Slide-Out Drawer Navigation
   ============================================================================ */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #ffffff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
  transition: transform 0.24s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 8px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.sidebar-brand h1 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sidebar-brand span {
  font-size: 0.75rem;
  color: var(--muted);
  display: block;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-item.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.24);
}

.nav-item.active svg {
  color: #ffffff;
}

/* KPI Stat Cards & Progress Bars (EduAttend style) */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 10px;
}

.kpi-value {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 4px;
}

.kpi-value.green {
  color: var(--primary-2);
}

.kpi-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

.progress-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-top: 10px;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.system-status-box {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f1f5f9;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.system-status-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.sidebar-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-user {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 0.8rem;
  color: var(--text-secondary);
  word-break: break-word;
}

.main-content {
  flex: 1;
  min-width: 0;
  padding: 20px 26px 48px;
}

.main-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.menu-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 35;
}

.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
}

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  }

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

  .sidebar-backdrop.open {
    display: block;
  }

  .menu-toggle-btn {
    display: inline-flex;
  }

  .main-content {
    padding: 16px 14px 40px;
  }
}

/* Fullscreen Premium QR-Only Overlay */
.qr-fullscreen-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: #f8fafc;
  background-image:
    radial-gradient(ellipse 65% 55% at 20% 15%, rgba(16, 185, 129, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 85%, rgba(5, 150, 105, 0.08), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.qr-fullscreen-close {
  position: fixed;
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: #475569;
  font-size: 1.5rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.qr-fullscreen-close:hover {
  background: #ffffff;
  color: #0f172a;
  transform: scale(1.06);
}

.qr-premium-frame {
  position: relative;
  background: #ffffff;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid #e2e8f0;
  box-shadow:
    0 30px 70px rgba(15, 23, 42, 0.10),
    0 0 0 10px rgba(16, 185, 129, 0.07);
}

.qr-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: var(--primary);
  border-style: solid;
  pointer-events: none;
}

.qr-corner-tl { top: 14px; left: 14px; border-width: 3px 0 0 3px; border-top-left-radius: 12px; }
.qr-corner-tr { top: 14px; right: 14px; border-width: 3px 3px 0 0; border-top-right-radius: 12px; }
.qr-corner-bl { bottom: 14px; left: 14px; border-width: 0 0 3px 3px; border-bottom-left-radius: 12px; }
.qr-corner-br { bottom: 14px; right: 14px; border-width: 0 3px 3px 0; border-bottom-right-radius: 12px; }

.qr-fullscreen-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
}

.qr-fullscreen-box img,
.qr-fullscreen-box canvas {
  display: block;
  max-width: 72vmin;
  max-height: 72vmin;
}
