:root {
  --bg: #0b0c10;
  --bg-soft: #14161b;
  --card: #1a1d24;
  --border: #2a2e37;
  --text: #f1f2f4;
  --muted: #9aa0ab;
  --accent: #7c5cff;
  --accent-2: #ff6b9d;
  --accent-grad: linear-gradient(135deg, #7c5cff, #ff6b9d);
  --radius: 14px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 8px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 800; letter-spacing: 0.04em;
}
.brand-icon { height: 30px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; font-size: 14px; }
.nav-links a:not(.btn) { color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 0; flex: 0 0 auto;
}
.nav-toggle span { display: block; height: 2px; width: 20px; background: var(--text); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.inline-form { display: inline; }
.link-btn {
  background: none; border: none; color: var(--muted); font-size: 14px; cursor: pointer; padding: 0; font-family: inherit;
}
.link-btn:hover { color: var(--text); }

.lottie-icon { display: inline-block; flex: 0 0 auto; vertical-align: middle; }
.lottie-icon-sm { width: 18px; height: 18px; margin-right: 2px; }
.lottie-icon-md { width: 28px; height: 28px; }
.lottie-icon-lg { width: 300px; height: 300px; }
.usecase .lottie-icon { width: 36px; height: 36px; margin-bottom: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent-grad);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { opacity: 0.92; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-block { width: 100%; justify-content: center; margin-top: 8px; }

.hero {
  padding: 90px 24px 70px;
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(124, 92, 255, 0.25), transparent),
    radial-gradient(40% 40% at 80% 20%, rgba(255, 107, 157, 0.15), transparent);
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: 46px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 20px; }
.highlight {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { color: var(--muted); font-size: 18px; max-width: 580px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.how { max-width: 1080px; margin: 0 auto; padding: 60px 24px; text-align: center; }
.how h2 { font-size: 30px; margin-bottom: 36px; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.how-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: left;
}
.how-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 14px;
}
.how-card h3 { margin: 0 0 8px; font-size: 18px; }
.how-card p { color: var(--muted); margin: 0; font-size: 14px; }

.usecases { max-width: 1080px; margin: 0 auto; padding: 20px 24px 60px; text-align: center; }
.usecases h2 { font-size: 26px; margin-bottom: 28px; }
.usecases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.usecase {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-band {
  text-align: center;
  padding: 70px 24px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}
.cta-band h2 { max-width: 560px; margin: 0 auto 26px; font-size: 26px; }

.footer { text-align: center; padding: 28px; color: var(--muted); font-size: 13px; }

/* Auth pages */
.auth-page { display: flex; justify-content: center; padding: 60px 24px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { margin: 0 0 18px; font-size: 24px; }
.auth-card label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.auth-card input {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-size: 16px;
}
.auth-card input:focus { outline: none; border-color: var(--accent); }
.auth-switch { text-align: center; color: var(--muted); font-size: 13px; margin-top: 14px; }
.auth-switch a { color: var(--accent); font-weight: 600; }
.consent-label {
  display: flex !important; align-items: flex-start; gap: 8px;
  font-size: 12px !important; line-height: 1.4; color: var(--muted);
}
.consent-label input[type=checkbox] { width: auto; margin-top: 3px; flex: 0 0 auto; accent-color: var(--accent); }
.consent-label span { flex: 1 1 auto; min-width: 0; }
.consent-label a { color: var(--accent); text-decoration: underline; }

.error { color: #ff6b6b; background: rgba(255, 107, 107, 0.1); padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.notice { color: #4ade80; background: rgba(74, 222, 128, 0.1); padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.billing-banner a { text-decoration: underline; font-weight: 600; }

.detection-banner {
  display: flex; align-items: center; gap: 10px;
  background: rgba(124, 92, 255, 0.12); color: #c9c2ff;
  border: 1px solid rgba(124, 92, 255, 0.3);
  padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 14px;
}
.detection-banner .spinner {
  flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(201, 194, 255, 0.3); border-top-color: #c9c2ff;
  animation: selfie-spin 0.8s linear infinite;
}

/* Honeypot: off-screen (not display:none, which some bots skip), never
   focusable or announced by assistive tech. Real users never see or fill it. */
.hp-field {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Admin dashboard */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; margin-bottom: 20px; }
.admin-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.admin-stat-num { font-size: 28px; font-weight: 800; }
.admin-suspend-form { display: flex; gap: 6px; align-items: center; }
.admin-suspend-form input { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; color: var(--text); font-size: 12px; width: 120px; }
.ledger-table a { color: var(--accent); text-decoration: underline; }

.report-link-row { text-align: center; margin-top: 4px; }
.report-form { margin-top: 10px; }
.report-form label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.report-form select, .report-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-size: 14px; font-family: inherit;
}
.report-form-actions { display: flex; gap: 10px; }

.terms-page { max-width: 760px; }
.terms-page h1 { font-size: 28px; margin-bottom: 8px; }
.terms-page h2 { font-size: 18px; margin: 28px 0 10px; }
.terms-page p, .terms-page li { color: var(--muted); line-height: 1.6; }
.terms-list { padding-left: 20px; }
.terms-list li { margin-bottom: 8px; }

/* App pages */
.page { max-width: 1080px; margin: 0 auto; padding: 40px 24px 80px; }
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0 0 4px; font-size: 28px; }
.muted { color: var(--muted); margin: 0; }
.muted.small { font-size: 13px; }
.label { font-weight: 700; margin: 0 0 14px; font-size: 15px; }

.empty-state { text-align: center; padding: 60px 24px; color: var(--muted); }
.empty-state .btn { margin-top: 16px; }

.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.event-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: block; transition: border-color 0.15s;
}
.event-card:hover { border-color: var(--accent); }
.event-card h3 { margin: 0 0 6px; font-size: 17px; }
.event-card .badge { display: inline-block; margin-top: 10px; font-size: 12px; background: var(--bg-soft); padding: 4px 10px; border-radius: 999px; }

.card { margin-bottom: 24px; }
.share-card .share-row { display: flex; gap: 8px; margin: 8px 0; }
.share-card input[type=text] {
  flex: 1; min-width: 0; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; color: var(--text); font-size: 14px;
}

.dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 36px 20px; text-align: center; transition: border-color 0.15s, background 0.15s;
}
.dropzone.drag-active { border-color: var(--accent); background: rgba(124, 92, 255, 0.06); }
.dropzone p { margin: 0 0 12px; color: var(--muted); }
.dropzone .btn { margin-bottom: 10px; }

.upload-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow-y: auto; }
.upload-item {
  display: flex; justify-content: space-between; gap: 10px; font-size: 13px;
  background: var(--bg-soft); border-radius: 8px; padding: 8px 12px;
}
.upload-name { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-status { color: var(--muted); white-space: nowrap; }

.grid-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.photo-tile { position: relative; border-radius: 10px; overflow: hidden; background: var(--bg-soft); aspect-ratio: 1; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }

.photo-tile .select-check {
  display: none; position: absolute; top: 6px; left: 6px; z-index: 2;
  width: 22px; height: 22px; border-radius: 6px; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.85); background: rgba(0, 0, 0, 0.35);
  align-items: center; justify-content: center;
}
.photo-grid.select-mode .select-check { display: flex; }
.photo-grid.select-mode .fav-btn, .photo-grid.select-mode .delete-btn { display: none; }
.photo-tile.selected .select-check { background: var(--accent); border-color: var(--accent); }
.photo-tile.selected .select-check::after {
  content: ''; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.selection-bar {
  position: sticky; bottom: 16px; z-index: 15; margin-top: 14px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.selection-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.face-badge {
  position: absolute; bottom: 6px; left: 6px; background: rgba(0,0,0,0.65);
  color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 999px;
}
.delete-btn, .fav-btn {
  position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,0.55); color: #fff;
  border: none; border-radius: 50%; width: 26px; height: 26px; cursor: pointer; font-size: 13px;
}
.fav-btn.active { color: #ffd23f; }

.selfie-card { background: linear-gradient(145deg, var(--card), #1f1430); }
.selfie-card-inner { display: flex; align-items: center; gap: 28px; }

.selfie-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  background: #fff;
  border: 3px solid transparent;
  background-image: linear-gradient(#fff, #fff), var(--accent-grad);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  overflow: hidden;
}
.selfie-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.selfie-spinner {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #fff;
  animation: selfie-spin 0.8s linear infinite;
}
@keyframes selfie-spin { to { transform: rotate(360deg); } }

.selfie-copy { flex: 1 1 auto; min-width: 0; }
.selfie-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.selfie-cta { font-size: 15px; }

.selfie-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted); margin: 10px 0 0;
  padding: 6px 12px; border-radius: 999px; background: var(--bg-soft);
}
.selfie-status.state-ready { color: #c9c2ff; background: rgba(124, 92, 255, 0.12); }
.selfie-status.state-busy { color: #ffd27d; background: rgba(255, 178, 61, 0.12); }
.selfie-status.state-success { color: #4ade80; background: rgba(74, 222, 128, 0.12); }
.selfie-status.state-error { color: #ff8585; background: rgba(255, 107, 107, 0.12); }

.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: flex;
  flex-direction: column; align-items: center; justify-content: center; gap: 16px; z-index: 50;
}
.lightbox img { max-width: 90vw; max-height: 75vh; border-radius: 10px; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; background: none; border: none;
  color: #fff; font-size: 24px; cursor: pointer;
}

.camera-modal {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.92); display: flex;
  align-items: center; justify-content: center; z-index: 60; padding: 20px;
}
.camera-modal-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 420px; width: 100%; }
.camera-close {
  position: absolute; top: 20px; right: 24px; background: none; border: none;
  color: #fff; font-size: 24px; cursor: pointer; z-index: 1;
}
.camera-viewport {
  position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 16px;
  overflow: hidden; background: #000;
}
.camera-viewport video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.camera-guide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.camera-guide-oval {
  width: 62%; height: 78%; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.45);
}
.camera-hint { color: var(--muted); font-size: 14px; text-align: center; margin: 0; }
.camera-error { color: #ff8585; font-size: 13px; text-align: center; margin: 0; }
.camera-actions { display: flex; justify-content: center; }
.camera-shutter {
  width: 68px; height: 68px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 4px solid #fff; background: var(--accent-grad);
}
.camera-shutter:active { transform: scale(0.94); }
.camera-upload-instead {
  color: var(--muted); font-size: 13px; text-decoration: underline;
  background: none; border: none; cursor: pointer;
}

@media (max-width: 520px) {
  .camera-modal-inner { max-width: 100%; }
}

/* Pricing page */
.pricing-page { max-width: 1100px; }
.pricing-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.pricing-head h1 { font-size: 32px; margin: 0 0 12px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.plan-card {
  position: relative;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
}
.plan-featured { border-color: var(--accent); background: linear-gradient(160deg, var(--card), #1f1430); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent-grad); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.plan-card h2 { margin: 6px 0 4px; font-size: 20px; }
.plan-price { font-size: 34px; font-weight: 800; margin: 18px 0 2px; }
.plan-price span { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.plan-features { list-style: none; padding: 0; margin: 18px 0; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.plan-features li { font-size: 13px; color: var(--text); padding-left: 20px; position: relative; }
.plan-features li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.pricing-footnote { text-align: center; margin-top: 32px; }

/* Billing page */
.billing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 20px; }
.billing-plan-name { margin: 4px 0; font-size: 22px; }
.plan-switch-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.usage-bar { height: 8px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; margin: 14px 0 8px; }
.usage-bar-fill { height: 100%; background: var(--accent-grad); }
.wallet-balance { font-size: 36px; font-weight: 800; margin: 6px 0; }

.topup-form { margin-top: 18px; }
.topup-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.topup-chip {
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; background: var(--bg-soft);
}
.topup-chip input { accent-color: var(--accent); }
.topup-custom { display: block; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.topup-custom input {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 16px;
}
.fake-card-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.fake-card-row input {
  padding: 10px 12px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-size: 14px; width: 100%;
}

.ledger-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ledger-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.ledger-table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.amount-pos { color: #4ade80; }
.amount-neg { color: #ff8585; }

/* Google Drive sync */
.banner-preview {
  display: block; width: 100%; max-width: 480px; aspect-ratio: 1905 / 893;
  object-fit: cover; border-radius: 10px; margin-bottom: 10px;
}

.event-banner { width: 100%; max-width: 1905px; margin: 0 auto; aspect-ratio: 1905 / 893; overflow: hidden; }
.event-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

.drive-sync-row { display: flex; gap: 8px; margin-top: 10px; }
.drive-sync-row input[type=text] {
  flex: 1; min-width: 0; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; color: var(--text); font-size: 14px;
}

/* ================= Responsive ================= */

@media (max-width: 860px) {
  .hero { padding: 64px 20px 48px; }
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 16px; }
  .how h2, .usecases h2 { font-size: 26px; }
  .cta-band h2 { font-size: 22px; }
  .page-head h1 { font-size: 24px; }
}

@media (max-width: 640px) {
  body { overflow-x: hidden; }

  .nav-inner { padding: 12px 16px; position: relative; }
  .brand { font-size: 16px; gap: 7px; }
  .brand-icon { height: 24px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; font-size: 15px;
    background: var(--bg); border: 1px solid var(--border); border-top: none;
    border-radius: 0 0 12px 12px; padding: 8px 16px 16px; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 10px 2px; }
  .nav-links .btn-sm { margin-top: 6px; justify-content: center; }
  .nav-links .inline-form { width: 100%; }
  .nav-links .link-btn { padding: 10px 2px; width: 100%; text-align: left; font-size: 15px; }

  .hero { padding: 48px 16px 36px; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 15px; margin-bottom: 24px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  .how, .usecases { padding: 40px 16px; }
  .cta-band { padding: 48px 16px; }

  .auth-page { padding: 32px 16px; }
  .page { padding: 28px 16px 60px; }
  .card { padding: 18px; }

  .page-head { gap: 12px; }
  .page-head .btn { width: 100%; justify-content: center; }

  .share-row { flex-direction: column; align-items: stretch; }
  .share-row .btn { width: 100%; justify-content: center; }

  .selfie-card-inner { flex-direction: column; text-align: center; }
  .selfie-avatar { width: 110px; height: 110px; font-size: 34px; }
  .selfie-avatar .lottie-icon-lg { width: 235px; height: 235px; }
  .selfie-actions { justify-content: center; }
  .selfie-cta, .selfie-actions .btn { width: 100%; justify-content: center; }

  .dropzone { padding: 24px 14px; }

  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }

  .lightbox img { max-width: 94vw; max-height: 65vh; }
  .lightbox .btn { width: auto; }

  .delete-btn, .fav-btn { width: 32px; height: 32px; font-size: 15px; }

  .pricing-head h1 { font-size: 26px; }
  .plan-card { padding: 22px; }
  .plan-switch-row { flex-direction: column; align-items: stretch; }
  .plan-switch-row .btn { width: 100%; justify-content: center; }
  .fake-card-row { grid-template-columns: 1fr; }
  .ledger-table { font-size: 12px; }
  .ledger-table th:nth-child(1), .ledger-table td:nth-child(1) { display: none; }
  .drive-sync-row { flex-direction: column; align-items: stretch; }
  .drive-sync-row .btn { width: 100%; justify-content: center; }
}
