:root {
        --bg: #0a0f0d;
        --surface: #111a15;
        --surface2: #172110;
        --border: #1e3024;
        --green: #22c55e;
        --green-dim: #16a34a;
        --amber: #f59e0b;
        --red: #ef4444;
        --text: #e8f5e9;
        --text-dim: #6b8f72;
        --font-disp: "Space Grotesk", sans-serif;
        --font-body: "Inter", sans-serif;
        --radius: 12px;
        --radius-lg: 20px;
      }
      *,
      *::before,
      *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
      }
      html {
        scroll-behavior: smooth;
      }
      body {
        font-family: var(--font-body);
        background: var(--bg);
        color: var(--text);
        min-height: 100vh;
        line-height: 1.6;
      }
      .app {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
      }
      nav {
        position: sticky;
        top: 0;
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 2rem;
        background: rgba(10, 15, 13, 0.9);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        gap: 0.5rem;
      }
      .nav-logo {
        font-family: var(--font-disp);
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--green);
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
      }
      .nav-logo span {
        color: var(--text);
      }
      .nav-tabs {
        display: flex;
        gap: 0.25rem;
        flex-wrap: wrap;
      }
      .nav-tab {
        padding: 0.4rem 0.75rem;
        border: none;
        background: none;
        color: var(--text-dim);
        cursor: pointer;
        font-family: var(--font-body);
        font-size: 0.8rem;
        border-radius: var(--radius);
        transition: all 0.2s;
      }
      .nav-tab:hover,
      .nav-tab.active {
        background: var(--surface2);
        color: var(--green);
      }
      .nav-tab:focus-visible,
      .btn-primary:focus-visible,
      .btn-secondary:focus-visible,
      .hamburger:focus-visible {
        outline: 2px solid var(--green);
        outline-offset: 2px;
      }
      /* Hamburger */
      .hamburger {
        display: none;
        flex-direction: column;
        justify-content: space-between;
        width: 2rem;
        height: 1.5rem;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 200;
        flex-shrink: 0;
      }
      .ham-line {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--green);
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
      }
      .hamburger.open .ham-line:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
      }
      .hamburger.open .ham-line:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
      }
      .hamburger.open .ham-line:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
      }
      .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 98;
        backdrop-filter: blur(2px);
      }
      @media (max-width: 768px) {
        .hamburger {
          display: flex;
          order: 2;
        }
        #auth-status {
          order: 3;
        }
        .nav-tabs {
          display: none;
          position: fixed;
          top: 0;
          left: 0;
          right: 0;
          background: var(--surface);
          border-bottom: 1px solid var(--border);
          padding: 5rem 1.5rem 1.5rem;
          flex-direction: column;
          gap: 0.25rem;
          z-index: 99;
          box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
          animation: slideDown 0.25s ease;
        }
        .nav-tabs.mobile-open {
          display: flex;
        }
        .nav-tab {
          width: 100%;
          text-align: left;
          padding: 0.75rem 1rem;
          font-size: 0.95rem;
        }
      }
      @keyframes slideDown {
        from {
          opacity: 0;
          transform: translateY(-10px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }
      main {
        flex: 1;
        padding: 2rem;
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
      }
      .hero {
        text-align: center;
        padding: 3rem 1rem 2rem;
      }
      .hero-eyebrow {
        font-size: 0.75rem;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--green);
        margin-bottom: 1rem;
      }
      .hero-title {
        font-family: var(--font-disp);
        font-size: clamp(2.5rem, 6vw, 4rem);
        font-weight: 700;
        line-height: 1.1;
        margin-bottom: 1rem;
      }
      .hero-title .accent {
        color: var(--green);
      }
      .hero-sub {
        color: var(--text-dim);
        font-size: 1.1rem;
        max-width: 500px;
        margin: 0 auto 2rem;
      }
      .btn-primary {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 2rem;
        background: var(--green);
        color: #000;
        font-family: var(--font-disp);
        font-weight: 600;
        font-size: 1rem;
        border: none;
        border-radius: var(--radius);
        cursor: pointer;
        transition: all 0.2s;
        text-decoration: none;
      }
      .btn-primary:hover {
        background: var(--green-dim);
        transform: translateY(-1px);
      }
      .btn-secondary {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 2rem;
        background: transparent;
        color: var(--text);
        font-family: var(--font-disp);
        font-weight: 500;
        font-size: 1rem;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        cursor: pointer;
        transition: all 0.2s;
        margin-left: 1rem;
      }
      .btn-secondary:hover {
        border-color: var(--green);
        color: var(--green);
      }
      .card {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        padding: 1.5rem;
      }
      .card-title {
        font-family: var(--font-disp);
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-dim);
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-bottom: 1rem;
      }
      .grid-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
      }
      .grid-3 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
      }
      .grid-4 {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
      }
      @media (max-width: 900px) {
        .grid-2 {
          grid-template-columns: 1fr;
        }
        .grid-4 {
          grid-template-columns: 1fr 1fr;
        }
      }
      @media (max-width: 600px) {
        .grid-3,
        .grid-4 {
          grid-template-columns: 1fr;
        }
      }
      .form-section {
        margin-bottom: 2rem;
      }
      .form-section-title {
        font-family: var(--font-disp);
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
      }
      .form-section-title .icon {
        width: 2rem;
        height: 2rem;
        background: var(--surface2);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
      }
      .form-group {
        margin-bottom: 1.25rem;
      }
      label {
        display: block;
        font-size: 0.875rem;
        color: var(--text-dim);
        margin-bottom: 0.4rem;
      }
      input[type="number"],
      input[type="text"],
      input[type="email"],
      input[type="password"],
      select {
        width: 100%;
        padding: 0.65rem 1rem;
        background: var(--surface2);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        color: var(--text);
        font-family: var(--font-body);
        font-size: 0.9rem;
        outline: none;
        transition: border-color 0.2s;
        -webkit-appearance: none;
      }
      input:focus,
      select:focus {
        border-color: var(--green);
      }
      select option {
        background: var(--surface);
      }
      .steps {
        display: flex;
        gap: 0;
        margin-bottom: 2.5rem;
      }
      .step {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
        cursor: pointer;
        opacity: 0.5;
        transition: opacity 0.2s;
      }
      .step.active,
      .step.done {
        opacity: 1;
      }
      .step-dot {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 50%;
        background: var(--surface2);
        border: 2px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        transition: all 0.2s;
        position: relative;
        z-index: 1;
      }
      .step.active .step-dot {
        border-color: var(--green);
      }
      .step.done .step-dot {
        border-color: var(--green);
        background: var(--green);
        color: #000;
      }
      .step-label {
        font-size: 0.75rem;
        color: var(--text-dim);
        text-align: center;
      }
      .step.active .step-label {
        color: var(--green);
      }
      .step-line {
        flex: 1;
        height: 2px;
        background: var(--border);
        margin-top: 1.25rem;
        transition: background 0.3s;
      }
      .step-line.done {
        background: var(--green);
      }
      .result-hero {
        text-align: center;
        padding: 2rem;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        margin-bottom: 1.5rem;
        position: relative;
        overflow: hidden;
      }
      .result-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(
          ellipse at 50% 0%,
          rgba(34, 197, 94, 0.08) 0%,
          transparent 70%
        );
        pointer-events: none;
      }
      .result-number {
        font-family: var(--font-disp);
        font-size: clamp(3rem, 10vw, 6rem);
        font-weight: 700;
        line-height: 1;
        position: relative;
      }
      .result-unit {
        font-size: 1.5rem;
        color: var(--text-dim);
        font-weight: 400;
      }
      .result-label {
        font-size: 0.9rem;
        color: var(--text-dim);
        margin-top: 0.5rem;
      }
      .result-badge {
        display: inline-block;
        padding: 0.25rem 1rem;
        border-radius: 999px;
        font-size: 0.875rem;
        font-weight: 600;
        margin-top: 0.75rem;
        text-transform: capitalize;
      }
      .badge-excellent {
        background: rgba(34, 197, 94, 0.15);
        color: #22c55e;
        border: 1px solid rgba(34, 197, 94, 0.3);
      }
      .badge-good {
        background: rgba(34, 197, 94, 0.1);
        color: #86efac;
        border: 1px solid rgba(34, 197, 94, 0.2);
      }
      .badge-average {
        background: rgba(245, 158, 11, 0.1);
        color: #f59e0b;
        border: 1px solid rgba(245, 158, 11, 0.3);
      }
      .badge-high {
        background: rgba(239, 68, 68, 0.1);
        color: #ef4444;
        border: 1px solid rgba(239, 68, 68, 0.3);
      }
      .badge-critical {
        background: rgba(239, 68, 68, 0.2);
        color: #f87171;
        border: 1px solid rgba(239, 68, 68, 0.4);
      }
      .stat-card {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 1.25rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
      }
      .stat-label {
        font-size: 0.75rem;
        color: var(--text-dim);
        text-transform: uppercase;
        letter-spacing: 0.1em;
      }
      .stat-value {
        font-family: var(--font-disp);
        font-size: 1.75rem;
        font-weight: 700;
      }
      .stat-sub {
        font-size: 0.8rem;
        color: var(--text-dim);
      }
      .progress-row {
        margin-bottom: 1rem;
      }
      .progress-header {
        display: flex;
        justify-content: space-between;
        font-size: 0.875rem;
        margin-bottom: 0.4rem;
      }
      .progress-track {
        height: 8px;
        background: var(--surface2);
        border-radius: 4px;
        overflow: hidden;
      }
      .progress-fill {
        height: 100%;
        border-radius: 4px;
        transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
      }
      .tip-card {
        display: flex;
        gap: 1rem;
        padding: 1.25rem;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        margin-bottom: 0.75rem;
        transition: border-color 0.2s;
      }
      .tip-card:hover {
        border-color: var(--green);
      }
      .tip-icon {
        width: 2.5rem;
        height: 2.5rem;
        flex-shrink: 0;
        background: rgba(34, 197, 94, 0.1);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
      }
      .tip-title {
        font-weight: 600;
        margin-bottom: 0.25rem;
      }
      .tip-desc {
        font-size: 0.875rem;
        color: var(--text-dim);
      }
      .tip-impact {
        font-size: 0.8rem;
        color: var(--green);
        margin-top: 0.5rem;
        font-weight: 500;
      }
      .tip-diff {
        display: inline-block;
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
        border-radius: 999px;
        margin-left: 0.5rem;
        background: var(--surface2);
        color: var(--text-dim);
      }
      .compare-bar {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
      }
      .compare-bar-label {
        width: 120px;
        font-size: 0.875rem;
        text-align: right;
        flex-shrink: 0;
      }
      .compare-bar-track {
        flex: 1;
        height: 10px;
        background: var(--surface2);
        border-radius: 5px;
        overflow: hidden;
      }
      .compare-bar-fill {
        height: 100%;
        border-radius: 5px;
        transition: width 1s;
      }
      .compare-bar-value {
        width: 70px;
        font-size: 0.875rem;
        font-weight: 500;
      }
      .auth-wrapper {
        max-width: 400px;
        margin: 3rem auto;
        padding: 2rem;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
      }
      .auth-title {
        font-family: var(--font-disp);
        font-size: 1.75rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
      }
      .auth-sub {
        color: var(--text-dim);
        font-size: 0.9rem;
        margin-bottom: 2rem;
      }
      .auth-switch {
        text-align: center;
        margin-top: 1.5rem;
        font-size: 0.875rem;
        color: var(--text-dim);
      }
      .auth-switch a {
        color: var(--green);
        cursor: pointer;
        text-decoration: none;
      }
      .error-msg {
        color: var(--red);
        font-size: 0.875rem;
        margin-bottom: 1rem;
        padding: 0.75rem;
        background: rgba(239, 68, 68, 0.1);
        border-radius: var(--radius);
        border: 1px solid rgba(239, 68, 68, 0.2);
      }
      .chart-container {
        position: relative;
        width: 100%;
      }
      /* Scanner */
      .scanner-history-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 0.75rem;
        background: var(--surface2);
        border-radius: var(--radius);
        border: 1px solid var(--border);
      }
      @keyframes scanLine {
        0% {
          top: 0;
        }
        100% {
          top: 100%;
        }
      }
      /* Gamification */
      .badge-card {
        background: var(--surface2);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 1.25rem;
        text-align: center;
        transition: all 0.2s;
        position: relative;
        overflow: hidden;
      }
      .badge-card.earned {
        border-color: var(--green);
        background: linear-gradient(
          135deg,
          var(--surface2),
          rgba(34, 197, 94, 0.05)
        );
      }
      .badge-card.locked {
        opacity: 0.45;
        filter: grayscale(0.8);
      }
      .badge-card.earned:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(34, 197, 94, 0.2);
      }
      .badge-icon {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
        display: block;
      }
      .badge-name {
        font-family: var(--font-disp);
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
      }
      .badge-req {
        font-size: 0.72rem;
        color: var(--text-dim);
        line-height: 1.4;
      }
      .badge-xp {
        font-size: 0.72rem;
        color: var(--green);
        font-weight: 600;
        margin-top: 0.5rem;
      }
      .badge-earned-tick {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        width: 1.25rem;
        height: 1.25rem;
        background: var(--green);
        color: #000;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.65rem;
        font-weight: 700;
      }
      .challenge-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 0.875rem;
        background: var(--surface2);
        border-radius: var(--radius);
        border: 1px solid var(--border);
      }
      .challenge-item.completed {
        border-color: var(--green);
      }
      .challenge-progress-track {
        flex: 1;
        height: 6px;
        background: var(--surface);
        border-radius: 3px;
        overflow: hidden;
      }
      .challenge-progress-fill {
        height: 100%;
        background: var(--green);
        border-radius: 3px;
        transition: width 0.8s ease;
      }
      @keyframes fadeIn {
        from {
          opacity: 0;
          transform: translateY(16px);
        }
        to {
          opacity: 1;
          transform: none;
        }
      }
      .fade-in {
        animation: fadeIn 0.4s ease both;
      }
      @keyframes pulse {
        0%,
        100% {
          opacity: 1;
        }
        50% {
          opacity: 0.5;
        }
      }
      .pulse {
        animation: pulse 1.5s infinite;
      }
      @keyframes badgePop {
        from {
          opacity: 0;
          transform: scale(0.5) rotate(-10deg);
        }
        to {
          opacity: 1;
          transform: scale(1) rotate(0);
        }
      }
      @keyframes confettiAnim {
        0% {
          transform: translateY(-10px) rotate(0deg);
          opacity: 1;
        }
        100% {
          transform: translateY(100vh) rotate(720deg);
          opacity: 0;
        }
      }
      .text-green {
        color: var(--green);
      }
      .text-dim {
        color: var(--text-dim);
      }
      .text-center {
        text-align: center;
      }
      .mt-1 {
        margin-top: 0.5rem;
      }
      .mt-2 {
        margin-top: 1rem;
      }
      .mt-3 {
        margin-top: 1.5rem;
      }
      .mt-4 {
        margin-top: 2rem;
      }
      .hidden {
        display: none !important;
      }
      @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
          animation: none !important;
          transition: none !important;
        }
      }

      /* ═══════════════════════════════════════════════════
         RESPONSIVE — Mobile, Tablet, Desktop
         Tested for: Android Chrome, iOS Safari, Desktop
      ═══════════════════════════════════════════════════ */

      /* iOS Safari fix — prevents tap highlight */
      * {
        -webkit-tap-highlight-color: transparent;
      }

      /* iOS Safari fix — prevents auto-zoom on input focus */
      input,
      select,
      textarea {
        font-size: 16px !important; /* 16px prevents iOS auto-zoom */
      }

      /* Touch-friendly tap targets — min 44x44px (Apple HIG) */
      .nav-tab,
      .btn-primary,
      .btn-secondary,
      .hamburger {
        min-height: 44px;
        min-width: 44px;
      }

      /* Prevent horizontal overflow on mobile */
      html,
      body {
        max-width: 100%;
        overflow-x: hidden;
      }

      /* ── Small Mobile (< 480px) ──────────────────────── */
      @media (max-width: 480px) {
        main {
          padding: 1rem;
        }

        nav {
          padding: 0.75rem 1rem;
        }

        .hero {
          padding: 2rem 0.5rem 1.5rem;
        }
        .hero-title {
          font-size: 2rem;
        }
        .hero-sub {
          font-size: 0.95rem;
        }

        .btn-primary,
        .btn-secondary {
          padding: 0.65rem 1.25rem;
          font-size: 0.9rem;
          width: 100%;
          justify-content: center;
          margin-left: 0;
          margin-top: 0.5rem;
        }

        .card {
          padding: 1rem;
          border-radius: var(--radius);
        }

        .result-number {
          font-size: 3.5rem;
        }

        .grid-2,
        .grid-3,
        .grid-4 {
          grid-template-columns: 1fr !important;
        }

        .steps {
          gap: 0;
        }
        .step-label {
          font-size: 0.65rem;
        }
        .step-dot {
          width: 2rem;
          height: 2rem;
          font-size: 0.85rem;
        }

        .stat-value {
          font-size: 1.4rem;
        }

        /* Scanner full width */
        #page-scanner > div {
          max-width: 100%;
        }
        #page-chat > div {
          max-width: 100%;
        }

        /* Chat input row stack on tiny screens */
        #page-chat > div > div:last-of-type {
          flex-direction: column;
        }

        /* Badges grid 2 columns on mobile */
        #badges-grid {
          grid-template-columns: repeat(2, 1fr) !important;
        }

        /* Anomaly z-scores 2 columns */
        #anomaly-zscores {
          grid-template-columns: repeat(2, 1fr) !important;
        }

        /* Compare bars label shorter */
        .compare-bar-label {
          width: 70px;
          font-size: 0.75rem;
        }
        .compare-bar-value {
          width: 50px;
          font-size: 0.75rem;
        }

        /* Auth wrapper full width */
        .auth-wrapper {
          margin: 1rem auto;
          padding: 1.25rem;
        }

        /* XP bar full width on mobile */
        #xp-bar {
          width: 100% !important;
        }
        #page-badges .card > div {
          flex-direction: column !important;
          align-items: flex-start !important;
        }
        #xp-next {
          text-align: left !important;
        }
      }

      /* ── Tablet (481px - 768px) ──────────────────────── */
      @media (min-width: 481px) and (max-width: 768px) {
        main {
          padding: 1.25rem;
        }

        .hero-title {
          font-size: 2.5rem;
        }

        .grid-3 {
          grid-template-columns: 1fr 1fr !important;
        }
        .grid-4 {
          grid-template-columns: 1fr 1fr !important;
        }

        #badges-grid {
          grid-template-columns: repeat(3, 1fr) !important;
        }

        .btn-secondary {
          margin-left: 0.5rem;
        }
      }

      /* ── Large Mobile / Small Tablet hamburger ───────── */
      @media (max-width: 900px) {
        /* Stack hero buttons vertically */
        .hero .btn-secondary {
          margin-left: 0;
          margin-top: 0.75rem;
          display: flex;
        }

        /* Result hero smaller padding */
        .result-hero {
          padding: 1.5rem 1rem;
        }

        /* Forecast chart shorter on mobile */
        .chart-container[style*="220px"] {
          height: 180px !important;
        }
      }

      /* ── iOS Safari specific fixes ───────────────────── */
      @supports (-webkit-touch-callout: none) {
        /* iOS Safari bottom safe area */
        main {
          padding-bottom: max(2rem, env(safe-area-inset-bottom));
        }
        nav {
          padding-top: max(1rem, env(safe-area-inset-top));
        }

        /* iOS smooth scrolling */
        #chat-messages {
          -webkit-overflow-scrolling: touch;
        }

        /* iOS button appearance reset */
        button {
          -webkit-appearance: none;
          appearance: none;
        }
      }

      /* ── Android Chrome specific fixes ──────────────── */
      @media screen and (-webkit-min-device-pixel-ratio: 0) {
        select {
          background-image: none;
        }
      }

      /* ── Touch device hover removal ─────────────────── */
      @media (hover: none) and (pointer: coarse) {
        /* Remove hover states that don't make sense on touch */
        .btn-primary:hover {
          transform: none;
        }
        .tip-card:hover {
          border-color: var(--border);
        }
        .badge-card.earned:hover {
          transform: none;
          box-shadow: none;
        }

        /* Larger touch targets for tip cards */
        .tip-card {
          padding: 1rem;
        }

        /* Larger step dots for touch */
        .step-dot {
          width: 3rem;
          height: 3rem;
        }

        /* Scanner buttons bigger on touch */
        #start-scan-btn,
        #stop-scan-btn {
          padding: 1rem !important;
          font-size: 1rem !important;
        }
      }

      /* ── Desktop (> 1200px) ──────────────────────────── */
      @media (min-width: 1200px) {
        #badges-grid {
          grid-template-columns: repeat(6, 1fr) !important;
        }

        .nav-tabs {
          flex-wrap: nowrap;
        }
      }

      /* ── Print media ─────────────────────────────────── */
      @media print {
        nav,
        .hamburger,
        #auth-status,
        .btn-primary,
        .btn-secondary {
          display: none !important;
        }
        main {
          padding: 0;
        }
        .card {
          break-inside: avoid;
        }
      }
