/* ============================================================
   BuLumina — Mobile Overrides
   Loaded LAST on every page. Responsive breakpoints:
     - Tablet:  ≤ 900px
     - Mobile:  ≤ 720px  (primary)
     - Small:   ≤ 420px
   ============================================================ */

/* ============================================================
   GLOBAL SAFETY
   ============================================================ */
@media (max-width: 720px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
    font-size: 14.5px;
  }
  img, svg, video, canvas {
    max-width: 100%;
    height: auto;
  }
  input, textarea, select, button {
    font-size: 16px; /* iOS auto-zoom engeli */
  }
  /* Prevent long words from breaking layout */
  p, h1, h2, h3, h4, h5, h6, a, li, span, div {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* ============================================================
   NAV
   ============================================================ */
@media (max-width: 720px) {
  .nav {
    padding: 12px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .brand {
    font-size: 15px;
    gap: 8px;
    justify-content: center;
    width: 100%;
  }
  .brand-mark { width: 20px; height: 20px; }
  .brand-name { font-size: 15.5px; }

  .nav-links {
    gap: 6px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid var(--border-soft);
  }
  .nav-link {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
  }
  .nav-user {
    display: none;
  }
  .balance-pill {
    font-size: 12px;
    padding: 5px 11px;
  }
  .nav-links .btn-sm {
    padding: 6px 14px;
    font-size: 12.5px;
  }
}

@media (max-width: 420px) {
  .nav-link { font-size: 12.5px; padding: 5px 8px; }
  .nav-links { gap: 5px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
@media (max-width: 720px) {
  .footer { padding: 24px 16px; }
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .footer-brand { justify-content: center; }
  .footer-links {
    gap: 12px 18px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .footer-link { font-size: 13px; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
@media (max-width: 720px) {
  .btn-lg {
    padding: 13px 22px;
    font-size: 14.5px;
  }
  .btn-full { width: 100%; }
}

/* ============================================================
   CONTAINERS / SECTIONS
   ============================================================ */
@media (max-width: 720px) {
  .section {
    padding: 64px 18px;
    max-width: 100%;
  }
  .section-header { margin-bottom: 40px; }
  .section-title {
    font-size: clamp(24px, 7vw, 30px);
    letter-spacing: -0.025em;
  }
  .section-sub { font-size: 15px; line-height: 1.6; }
  .section-badge { font-size: 10.5px; padding: 5px 12px; margin-bottom: 16px; }
  .page-wrap { padding: 36px 16px 60px; }
  .page-title { font-size: 24px; margin-bottom: 20px; }
}

/* ============================================================
   LANDING
   ============================================================ */
@media (max-width: 720px) {
  /* Hero */
  .hero { padding: 60px 18px 50px; }
  .hero-logo { width: 76px; height: 76px; margin-bottom: 24px; }
  .hero-badge {
    font-size: 11px;
    padding: 6px 13px;
    margin-bottom: 26px;
  }
  .hero-title {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
  }
  .hero-tagline {
    font-size: 16px;
    margin-bottom: 14px;
  }
  .hero-sub {
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 30px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 22px;
  }
  .hero-actions > * {
    width: 100%;
    justify-content: center;
  }
  .hero-note { font-size: 12px; }

  /* Feature grid */
  .features {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .features .feature-card {
    padding: 24px 22px;
    border-radius: 16px;
  }
  .feature-card-head { margin-bottom: 16px; }
  .feature-icon {
    width: 42px;
    height: 42px;
    font-size: 20px;
    border-radius: 12px;
  }
  .features .feature-card h3 { font-size: 17px; }
  .features .feature-card p { font-size: 14px; }

  /* How it works */
  .how-steps {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .how-step { padding: 26px 22px; border-radius: 16px; }
  .how-number { font-size: 38px; margin-bottom: 16px; }
  .how-step h3 { font-size: 16.5px; }
  .how-step p { font-size: 14px; }

  /* Pricing */
  .pricing-card {
    padding: 32px 24px;
    border-radius: 20px;
  }
  .pricing-name { font-size: 11px; margin-bottom: 14px; }
  .rate-num { font-size: 38px; }
  .rate-equal { font-size: 22px; }
  .rate-unit { font-size: 13px; }
  .pricing-features { gap: 12px; margin-bottom: 26px; }
  .pricing-row { font-size: 13.5px; gap: 10px; }
  .pricing-row-icon { width: 18px; height: 18px; font-size: 10px; }

  /* Capabilities / showcase */
  .showcase-grid { grid-template-columns: 1fr; gap: 12px; }
  .showcase-card { padding: 24px 22px; border-radius: 16px; }
  .showcase-icon { font-size: 24px; }
  .showcase-card h3 { font-size: 16px; }
  .showcase-card p { font-size: 13.5px; margin-bottom: 14px; }

  /* Discord CTA */
  .discord-cta-section { padding: 20px 16px 80px; }
  .discord-cta-card {
    padding: 38px 22px;
    border-radius: 20px;
  }
  .discord-cta-icon {
    width: 68px; height: 68px;
    font-size: 30px;
    margin-bottom: 20px;
  }
  .discord-cta-title { font-size: 22px; margin-bottom: 10px; }
  .discord-cta-sub {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
  }
  .discord-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 14px;
  }

  /* FAQ */
  .faq-list { gap: 10px; }
  .faq-item { border-radius: 14px; }
  .faq-item summary {
    padding: 18px 18px;
    font-size: 14.5px;
    gap: 12px;
  }
  .faq-body {
    padding: 0 18px 18px;
    font-size: 14px;
    line-height: 1.65;
  }

  /* Final CTA */
  .final-cta { padding: 70px 18px 90px; }
  .final-cta-logo { width: 62px; height: 62px; margin-bottom: 20px; }
  .final-cta-title { font-size: 26px; margin-bottom: 12px; }
  .final-cta-sub { font-size: 15px; margin-bottom: 26px; }
  .final-cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .final-cta-actions > * {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   CHAT PAGE
   ============================================================ */
@media (max-width: 820px) {
  body.chat-page {
    height: 100dvh; /* dynamic viewport — mobile klavye uyumu */
    min-height: 100dvh;
  }
  body.chat-page .chat-wrap {
    grid-template-columns: 1fr;
  }
  body.chat-page .chat-sidebar { display: none; }
}

@media (max-width: 720px) {
  body.chat-page .chat-messages {
    padding: 20px 14px 16px;
    gap: 16px;
  }

  /* Empty state */
  .chat-empty { padding: 16px; max-width: 100%; }
  .chat-empty-orb { width: 76px; height: 76px; margin-bottom: 18px; }
  .orb-inner { width: 56px; height: 56px; }
  .orb-inner svg { width: 28px; height: 28px; }
  .chat-empty-title { font-size: 20px; }
  .chat-empty-sub { font-size: 14px; margin-bottom: 22px; }
  .chat-suggestions { gap: 8px; }
  .suggestion {
    min-width: 0;
    width: 100%;
    padding: 12px 14px;
    font-size: 13px;
  }
  .sug-icon { font-size: 14px; }

  /* Bubbles */
  .bubble-inner { max-width: 100%; }
  .bubble-avatar {
    width: 30px; height: 30px;
    font-size: 13px;
  }
  .bubble-content {
    padding: 11px 14px;
    font-size: 14px;
    border-radius: 14px;
  }
  .bubble-meta { font-size: 10.5px; padding: 0 2px; }
  .bubble-images { gap: 6px; }
  .bubble-image {
    max-width: 160px;
    max-height: 160px;
    border-radius: 10px;
  }

  /* Code blocks in messages */
  .bubble-content pre {
    padding: 12px 14px;
    font-size: 12px;
    border-radius: 10px;
    margin: 8px 0;
  }
  .bubble-content code { font-size: 12px; padding: 2px 5px; }
  .code-block .code-copy {
    padding: 4px 9px;
    font-size: 10.5px;
  }
  .code-block .code-lang { font-size: 10px; top: 8px; left: 12px; }

  /* Thinking panel */
  .thinking-panel,
  .search-panel { border-radius: 10px; }
  .thinking-toggle,
  .search-toggle {
    padding: 10px 12px;
    font-size: 12px;
  }
  .thinking-content,
  .search-content {
    padding: 10px 12px 14px;
    font-size: 12px;
    line-height: 1.6;
    max-height: 260px;
  }

  /* Input area */
  .chat-input-wrap { padding: 10px 14px 14px; }
  .chat-input-shell {
    padding: 5px;
    gap: 4px;
    border-radius: 14px;
    flex-wrap: wrap;
  }
  .attach-btn { width: 38px; height: 38px; flex-shrink: 0; }
  .attach-icon { font-size: 20px; }
  .websearch-btn {
    height: 38px;
    padding: 0 10px;
    font-size: 11.5px;
    gap: 5px;
  }
  .websearch-label { display: none; }
  .websearch-icon { font-size: 15px; }
  #chat-input {
    font-size: 15.5px;
    padding: 10px 8px;
    min-height: 24px;
    max-height: 140px;
  }
  .chat-send {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
  }
  .send-icon { font-size: 15px; }
  .send-label { display: none; }
  .chat-input-hint { display: none; }

  /* Attachments preview */
  .attach-preview { padding: 8px 10px; gap: 8px; margin-bottom: 8px; }
  .attach-item { max-width: 100%; }
  .attach-thumb { width: 38px; height: 38px; }
  .attach-name { font-size: 11.5px; }
  .attach-size { font-size: 10px; }

  /* Toast */
  .chat-toast {
    bottom: 100px;
    font-size: 12.5px;
    padding: 10px 16px;
    max-width: calc(100vw - 32px);
  }
}

/* ============================================================
   AUTH — LOGIN / REGISTER / PENDING
   ============================================================ */
@media (max-width: 720px) {
  .auth-wrap {
    padding: 40px 16px;
    min-height: calc(100dvh - 140px);
  }
  .auth-card {
    padding: 32px 22px 30px;
    border-radius: 20px;
    max-width: 100%;
  }
  .auth-logo { width: 46px; height: 46px; margin-bottom: 18px; }
  .auth-title { font-size: 24px; }
  .auth-title-accent { display: inline; }
  .auth-sub { font-size: 13.5px; margin-bottom: 24px; }
  .auth-form { gap: 16px; }
  .field label { font-size: 12px; }
  .field input[type="text"],
  .field input[type="email"],
  .field input[type="password"] {
    padding: 12px 14px;
    font-size: 15.5px;
    border-radius: 10px;
  }
  .field-hint { font-size: 11.5px; }
  .field-row { grid-template-columns: 1fr; gap: 14px; }

  .auth-submit,
  .auth-form button[type="submit"] {
    padding: 14px 20px;
    font-size: 15px;
  }

  .tos-box { padding: 12px 14px; }
  .tos-label { font-size: 12.5px; }
  .tos-link { font-size: 12.5px; }

  .auth-alt {
    font-size: 13.5px;
    margin-top: 20px;
  }
}

/* Modal (TOS) */
@media (max-width: 720px) {
  .modal-backdrop { padding: 12px; }
  .modal {
    max-width: 100%;
    max-height: 92dvh;
    border-radius: 18px;
  }
  .modal-header {
    padding: 18px 20px;
  }
  .modal-header h2 { font-size: 15.5px; line-height: 1.35; }
  .modal-close { font-size: 24px; padding: 4px 6px; }
  .modal-body {
    padding: 18px 20px;
    font-size: 13.5px;
    line-height: 1.7;
  }
  .modal-body h3 { font-size: 14px; margin: 20px 0 6px; }
  .modal-footer {
    padding: 14px 20px;
    flex-direction: column-reverse;
  }
  .modal-footer > * { width: 100%; }
}

/* Pending */
@media (max-width: 720px) {
  .pending-wrap {
    padding: 32px 16px;
    min-height: calc(100dvh - 140px);
  }
  .pending-card {
    padding: 32px 22px 26px;
    border-radius: 20px;
  }
  .pending-status {
    width: 78px;
    height: 78px;
    margin-bottom: 22px;
  }
  .pending-icon { font-size: 30px; }
  .pending-icon-disabled { font-size: 32px; }
  .pending-title { font-size: 22px; }
  .pending-sub { font-size: 14px; margin-bottom: 20px; }

  .pending-identity {
    padding: 12px 14px;
    gap: 10px;
  }
  .identity-avatar { width: 38px; height: 38px; font-size: 15px; }
  .identity-name { font-size: 13.5px; }
  .identity-email { font-size: 11px; }

  .pending-body { padding: 16px 18px; }
  .pending-body p { font-size: 13px; }
  .pending-note { font-size: 12.5px !important; }

  .check-item { padding: 10px 12px; font-size: 13px; }
  .check-mark { width: 22px; height: 22px; font-size: 11px; }

  .pending-actions { gap: 9px; }
  .pending-logout-form button,
  .pending-discord {
    padding: 13px 18px;
    font-size: 14px;
  }

  .pending-footer {
    font-size: 11.5px;
    padding-top: 16px;
  }
}

/* ============================================================
   BALANCE
   ============================================================ */
@media (max-width: 720px) {
  .balance-hero {
    padding: 34px 20px 28px;
    border-radius: 20px;
    margin-bottom: 20px;
  }
  .balance-hero-label { font-size: 10.5px; margin-bottom: 12px; }
  .balance-hero-value-row { gap: 10px; }
  .balance-hero-value { font-size: clamp(48px, 14vw, 64px); }
  .balance-hero-gem { font-size: 26px; }
  .balance-hero-unit { font-size: 14px; margin-bottom: 14px; }
  .balance-hero-note {
    font-size: 12px;
    padding: 5px 12px;
  }

  /* Stats mini grid */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
  }
  .stat-mini { padding: 14px 14px; border-radius: 12px; }
  .stat-mini-label { font-size: 9.5px; margin-bottom: 8px; letter-spacing: 0.1em; }
  .stat-mini-value { font-size: 20px; }
  .stat-mini-sub { font-size: 10.5px; }

  /* Main grid */
  .balance-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Panels */
  .balance-panel { border-radius: 16px; }
  .balance-panel-header {
    padding: 16px 18px;
    font-size: 13.5px;
  }
  .balance-panel-title { font-size: 14px; }
  .balance-panel-body { padding: 18px 18px; }

  /* Top Up */
  .topup-panel .balance-panel-body { padding: 22px 18px; }
  .topup-section .topup-title { font-size: 17px; }
  .topup-section .topup-text { font-size: 13px; }

  .topup-rate-box {
    padding: 12px 14px;
    gap: 8px;
  }
  .topup-rate-num { font-size: 19px; }
  .topup-rate-eq { font-size: 13px; }

  .topup-redeem-btn,
  .topup-shopier-btn {
    padding: 13px 18px;
    font-size: 14px;
  }

  .topup-divider { margin: 22px 0 20px; }
  .topup-help { font-size: 12px; padding-top: 16px; margin-top: 20px; }

  /* Transactions */
  .txn-controls { gap: 8px; }
  .txn-filter { padding: 3px; }
  .txn-filter-btn { padding: 6px 11px; font-size: 11.5px; }

  .txn-row {
    grid-template-columns: 34px 1fr auto;
    padding: 12px 14px;
    gap: 10px;
  }
  .txn-icon { width: 34px; height: 34px; font-size: 14px; }
  .txn-reason { font-size: 12.5px; line-height: 1.4; }
  .txn-meta { font-size: 10.5px; gap: 6px; }
  .txn-source { font-size: 9px; padding: 1px 5px; }
  .txn-amount { font-size: 13.5px; }
  .txn-amount-meta { font-size: 10px; }
}

/* ============================================================
   REDEEM
   ============================================================ */
@media (max-width: 720px) {
  .redeem-wrap { padding: 40px 16px 70px; }
  .redeem-header { margin-bottom: 28px; }
  .redeem-eyebrow { font-size: 10.5px; padding: 5px 12px; margin-bottom: 16px; }
  .redeem-title { font-size: clamp(24px, 7vw, 30px); margin-bottom: 12px; }
  .redeem-sub { font-size: 14px; line-height: 1.6; }

  .redeem-card {
    padding: 26px 20px 28px;
    border-radius: 20px;
    margin-bottom: 20px;
  }

  .redeem-balance-chip {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 22px;
  }
  .redeem-balance-label { font-size: 10px; }
  .redeem-balance-value { font-size: 19px; }

  .redeem-input-shell {
    padding: 5px 5px 5px 14px;
    flex-wrap: wrap;
    border-radius: 14px;
  }
  .redeem-input {
    width: 100%;
    font-size: 14px;
    letter-spacing: 0.02em;
    padding: 10px 0;
    flex: 1 1 100%;
  }
  .redeem-clear { width: 24px; height: 24px; font-size: 15px; }
  .redeem-submit {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 14px;
    margin-top: 4px;
  }
  .redeem-input-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .redeem-hint { font-size: 11.5px; }
  .redeem-counter { font-size: 11px; }

  .redeem-error,
  .redeem-success { font-size: 12.5px; padding: 12px 14px; }
  .redeem-success-amount { font-size: 14px; }
  .redeem-success-body { padding-left: 0; }

  .redeem-history-title { font-size: 11px; margin-bottom: 12px; }
  .redeem-history-item {
    padding: 12px 14px;
    gap: 10px;
  }
  .redeem-history-icon { width: 30px; height: 30px; font-size: 12px; }
  .redeem-history-reason { font-size: 12px; }
  .redeem-history-meta { font-size: 10.5px; }
  .redeem-history-amount { font-size: 13px; }

  .redeem-help {
    padding: 14px 16px;
    gap: 12px;
    flex-direction: column;
    text-align: center;
  }
  .redeem-help-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   LEGAL — TERMS / PRIVACY
   ============================================================ */
@media (max-width: 720px) {
  .legal-wrap { padding: 40px 16px 70px; }
  .legal-header { margin-bottom: 32px; }
  .legal-eyebrow { font-size: 10.5px; margin-bottom: 16px; }
  .legal-title { font-size: clamp(24px, 7vw, 30px); }
  .legal-sub { font-size: 14px; line-height: 1.6; }
  .legal-meta { gap: 6px; }
  .legal-meta-chip {
    font-size: 11px;
    padding: 5px 10px;
  }

  .legal-grid { grid-template-columns: 1fr; gap: 20px; }

  /* TOC becomes collapsible top block */
  .legal-toc {
    position: relative;
    top: 0;
    max-height: none;
    padding: 16px 16px;
    margin-bottom: 4px;
  }
  .legal-toc-title { font-size: 10px; margin-bottom: 12px; }
  .legal-toc-list {
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
  }
  .legal-toc-link {
    padding: 8px 10px;
    font-size: 12.5px;
  }
  .legal-toc-num { font-size: 10px; min-width: 16px; }

  .legal-section {
    padding: 22px 18px;
    border-radius: 14px;
    scroll-margin-top: 80px;
  }
  .legal-section-header {
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
  }
  .legal-section-num {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .legal-section-title {
    font-size: 16.5px;
    padding-top: 4px;
    line-height: 1.35;
  }
  .legal-section-body {
    font-size: 13.5px;
    line-height: 1.7;
  }
  .legal-section-body p { margin-bottom: 12px; }
  .legal-section-body ul { gap: 8px; margin-bottom: 14px; }
  .legal-section-body ul li { gap: 10px; }

  .legal-callout {
    padding: 14px 16px;
    gap: 10px;
    margin: 14px 0;
    font-size: 13px;
  }
  .legal-callout-icon { font-size: 18px; }
  .legal-callout-content strong { font-size: 11.5px; }

  .legal-footer {
    padding: 24px 18px;
    margin-top: 32px;
    border-radius: 16px;
  }
  .legal-footer-title { font-size: 15.5px; }
  .legal-footer-text { font-size: 12.5px; margin-bottom: 18px; }
  .legal-footer-actions {
    flex-direction: column;
    gap: 10px;
  }
  .legal-footer-actions > * {
    width: 100%;
    justify-content: center;
  }

  .legal-backtop {
    bottom: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* ============================================================
   ABOUT
   ============================================================ */
@media (max-width: 720px) {
  .about-wrap { padding: 50px 16px 80px; }
  .about-hero { margin-bottom: 40px; }
  .about-eyebrow { font-size: 10.5px; padding: 5px 12px; margin-bottom: 18px; }
  .about-title { font-size: clamp(26px, 8vw, 34px); margin-bottom: 14px; }
  .about-sub { font-size: 14.5px; line-height: 1.6; }

  .creator-card {
    padding: 26px 20px 24px;
    border-radius: 20px;
    margin-bottom: 24px;
  }
  .creator-header {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    margin-bottom: 24px;
  }
  .creator-avatar {
    width: 82px;
    height: 82px;
    font-size: 34px;
  }
  .creator-name { font-size: 21px; }
  .creator-role {
    justify-content: center;
    font-size: 12.5px;
    gap: 6px;
    flex-wrap: wrap;
  }
  .creator-role-chip { font-size: 11px; padding: 4px 9px; }
  .creator-role-sep { display: none; }
  .creator-tags { justify-content: center; }
  .creator-tag { font-size: 10.5px; padding: 4px 10px; }

  .creator-bio {
    font-size: 14px;
    line-height: 1.7;
    padding-top: 22px;
  }

  .social-section { margin-bottom: 24px; }
  .social-title { font-size: 10.5px; margin-bottom: 14px; }
  .social-grid { grid-template-columns: 1fr; gap: 10px; }
  .social-card {
    padding: 14px 16px;
    gap: 12px;
  }
  .social-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }
  .social-icon svg { width: 19px; height: 19px; }
  .social-name { font-size: 13.5px; }
  .social-handle { font-size: 11px; }
  .social-arrow { font-size: 14px; }

  .projects-section { margin-bottom: 24px; }
  .projects-grid { grid-template-columns: 1fr; gap: 12px; }
  .project-card { padding: 20px 20px 18px; border-radius: 14px; }
  .project-icon { font-size: 22px; margin-bottom: 12px; }
  .project-name { font-size: 14.5px; }
  .project-desc { font-size: 12.5px; margin-bottom: 10px; }
  .project-tag { font-size: 10px; padding: 3px 8px; }

  .mission-card {
    padding: 28px 22px 24px;
    border-radius: 20px;
    margin-bottom: 24px;
  }
  .mission-card::before { font-size: 76px; top: 0; left: 16px; }
  .mission-text { font-size: 16px; line-height: 1.55; margin-bottom: 16px; }
  .mission-author { font-size: 12px; }
  .mission-author-line { width: 24px; }

  .about-cta {
    padding: 30px 20px;
    border-radius: 20px;
  }
  .about-cta-title { font-size: 21px; }
  .about-cta-sub { font-size: 13.5px; margin-bottom: 22px; }
  .about-cta-actions {
    flex-direction: column;
    gap: 10px;
  }
  .about-cta-actions > * {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   ERROR PAGES
   ============================================================ */
@media (max-width: 720px) {
  .error-wrap {
    padding: 60px 20px;
    min-height: calc(100dvh - 140px);
  }
  .error-emoji-badge {
    width: 64px;
    height: 64px;
    font-size: 28px;
    margin-bottom: 20px;
  }
  .error-code {
    font-size: clamp(72px, 22vw, 96px);
    letter-spacing: -0.05em;
  }
  .error-title { font-size: 22px; margin-bottom: 12px; }
  .error-message { font-size: 14px; line-height: 1.6; margin-bottom: 28px; }
  .error-actions {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
  }
  .error-actions > * {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }
  .error-hints {
    flex-direction: column;
    gap: 8px;
  }
  .error-hint {
    font-size: 11.5px;
    padding: 6px 12px;
    justify-content: center;
  }
  .error-detail { font-size: 11.5px; padding: 14px 16px; margin-top: 24px; }
}

/* ============================================================
   EXTRA SMALL — iPhone SE, older Androids
   ============================================================ */
@media (max-width: 380px) {
  .hero-title { font-size: 28px; }
  .section-title { font-size: 22px; }
  .balance-hero-value { font-size: 44px; }
  .stats-grid { grid-template-columns: 1fr; }
  .faq-item summary { font-size: 13.5px; padding: 16px 16px; }
  .faq-body { font-size: 13px; padding: 0 16px 16px; }
  .suggestion { padding: 11px 13px; font-size: 12.5px; }
}