/* =========================================
           CSS VARIABLES & RESET
           ========================================= */
      :root {
        --primary: #f0b429;
        --accent: #d42b2b;
        --bg: #0a0a0a;
        --surface: #141414;
        --surface-raised: #1e1e1e;
        --text-primary: #f5f5f5;
        --text-secondary: #9a9a9a;
        --success: #22c55e;
        --border: #2a2a2a;
        --gradient-wash: linear-gradient(135deg, #f0b429 0%, #d42b2b 100%);

        --font-display: "Barlow Condensed", sans-serif;
        --font-body: "DM Sans", sans-serif;
        --font-ui: "DM Mono", monospace;
      }

      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      html {
        scroll-behavior: smooth;
      }

      body {
        font-family: var(--font-body);
        background-color: var(--bg);
        color: var(--text-primary);
        line-height: 1.5;
        overflow-x: hidden;
        -webkit-font-smoothing: antialiased;
      }

      a {
        text-decoration: none;
        color: inherit;
      }

      ul {
        list-style: none;
      }

      img {
        max-width: 100%;
        height: auto;
        display: block;
      }

      /* =========================================
           TYPOGRAPHY & UTILITIES
           ========================================= */
      h1,
      h2,
      h3,
      h4,
      h5,
      h6 {
        font-family: var(--font-display);
        text-transform: uppercase;
      }

      .text-gradient {
        background: var(--gradient-wash);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        display: inline-block;
      }

      .container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 24px;
      }

      .container-narrow {
        max-width: 800px;
      }

      .section-padding {
        padding: 96px 0; /* More generous padding for conversion page */
      }

      .bg-surface {
        background-color: var(--surface);
      }

      .section-header {
        margin-bottom: 48px;
      }

      .section-title {
        font-size: 40px;
        font-weight: 800;
        margin-bottom: 16px;
        position: relative;
      }

      .section-title.centered {
        text-align: center;
      }

      .section-title:not(.centered)::after {
        content: "";
        display: block;
        width: 60px;
        height: 3px;
        background-color: var(--primary);
        margin-top: 12px;
      }

      .section-title.centered::after {
        content: "";
        display: block;
        width: 60px;
        height: 3px;
        background-color: var(--primary);
        margin: 12px auto 0;
      }

      .body-text {
        font-size: 17px;
        color: var(--text-primary);
        margin-bottom: 24px;
        line-height: 1.6;
      }

      /* =========================================
           COMPONENTS
           ========================================= */
      .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 18px;
        text-transform: uppercase;
        padding: 14px 32px;
        cursor: pointer;
        transition: all 0.3s ease;
        letter-spacing: 0.5px;
        border: none;
      }

      .btn-type-a {
        background: var(--gradient-wash);
        color: #111;
        border-radius: 50px;
        box-shadow: 0 4px 15px rgba(240, 180, 41, 0.2);
      }

      .btn-type-a:hover {
        box-shadow: 0 6px 20px rgba(240, 180, 41, 0.4);
        transform: translateY(-2px);
      }

      .btn-type-b {
        background: transparent;
        color: var(--primary);
        border: 2px solid var(--primary);
        border-radius: 6px;
      }

      .btn-type-b:hover {
        background: rgba(240, 180, 41, 0.1);
      }

      .btn-type-b.capsule {
        border-radius: 50px;
      }

      .center-btn-wrap {
        text-align: center;
        margin-top: 48px;
      }

      .icon-gold {
        fill: none;
        stroke: var(--primary);
        stroke-width: 1.5;
        stroke-linecap: round;
        stroke-linejoin: round;
      }

      .license-badge {
        display: inline-block;
        background: var(--surface-raised);
        border: 1px solid var(--border);
        border-radius: 50px;
        padding: 6px 12px;
        font-family: var(--font-ui);
        font-size: 12px;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.08em;
      }

      /* =========================================
           NAVBAR
           ========================================= */
      .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 80px;
        background: rgba(30, 30, 30, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 100;
        border-bottom: 1px solid var(--border);
      }

      .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 24px;
      }

      .logo {
        font-family: var(--font-display);
        font-size: 28px;
        font-weight: 800;
        color: var(--text-primary);
        letter-spacing: 1px;
      }

      .nav-links {
        display: flex;
        gap: 32px;
      }

      .nav-link {
        font-family: var(--font-body);
        font-weight: 500;
        font-size: 15px;
        color: var(--text-primary);
        transition: color 0.2s;
      }

      .nav-link:hover {
        color: var(--primary);
      }

      .nav-actions {
        display: flex;
        gap: 16px;
      }

      .nav-btn {
        padding: 8px 20px;
        font-size: 16px;
        border-radius: 50px;
      }

      .mobile-menu-btn {
        display: none;
        background: none;
        border: none;
        cursor: pointer;
      }

      .hamburger-line {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--text-primary);
        margin: 5px 0;
        transition: 0.3s;
      }

      .mobile-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--surface-raised);
        padding: 24px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 99;
        overflow-y: auto;
      }

      .mobile-menu.active {
        transform: translateX(0);
      }

      .mobile-menu .nav-links {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 32px;
      }

      .mobile-menu .nav-link {
        font-size: 18px;
        display: block;
      }

      .mobile-menu .nav-actions {
        flex-direction: column;
      }

      .mobile-menu .btn {
        width: 100%;
      }

      /* =========================================
           SECTION 1: HERO (REGISTER PAGE)
           ========================================= */
      .register-hero {
        position: relative;
        padding: 160px 0 100px;
        min-height: 80vh;
        display: flex;
        align-items: center;
        /* Dense gold radial glow for urgency */
        background:
          radial-gradient(
            circle at 25% 50%,
            rgba(240, 180, 41, 0.15) 0%,
            transparent 60%
          ),
          var(--bg);
        overflow: hidden;
      }

      .register-hero-container {
        display: flex;
        align-items: center;
        position: relative;
        z-index: 2;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 24px;
      }

      .register-hero-content {
        width: 50%;
        padding-right: 40px;
      }

      .register-hero-title {
        font-size: 58px;
        font-weight: 800;
        line-height: 1.1;
        margin-bottom: 24px;
        color: #ffffff;
      }

      .hero-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 32px;
      }

      .register-hero-actions {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
      }

      .link-secondary {
        font-family: var(--font-body);
        font-size: 14px;
        color: var(--text-secondary);
        text-decoration: none;
        transition: color 0.3s;
        position: relative;
        margin-left: 20px; /* Align visually under the button text center */
      }

      .link-secondary::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 1px;
        bottom: -2px;
        left: 0;
        background-color: transparent;
        transition: background-color 0.3s;
      }

      .link-secondary:hover {
        color: var(--primary);
      }

      .link-secondary:hover::after {
        background-color: var(--primary);
      }

      .register-hero-image {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%) rotate(-2deg);
        width: 45%;
        height: 120%;
        z-index: 0;
      }

      .register-hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: left center;
        mask-image: linear-gradient(to right, transparent 0%, black 20%);
        -webkit-mask-image: linear-gradient(
          to right,
          transparent 0%,
          black 20%
        );
      }

      /* =========================================
           SECTION 2: WHY REGISTER NOW
           ========================================= */
      .reasons-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
      }

      .reason-card {
        background: var(--surface-raised);
        border-radius: 4px;
        padding: 32px;
        display: flex;
        flex-direction: column;
        transition: all 0.3s ease;
        height: 100%;
      }

      .reason-card:hover {
        background: #252525;
      }

      .reason-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 20px;
        transition: stroke 0.3s;
      }

      .reason-card:hover .icon-gold {
        stroke: #ffc947;
      }

      .reason-title {
        font-family: var(--font-display);
        font-size: 20px;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 12px;
      }

      .reason-desc {
        font-size: 15px;
        color: var(--text-secondary);
        line-height: 1.6;
      }

      /* =========================================
           SECTION 3: HOW TO REGISTER
           ========================================= */
      .step-list {
        display: flex;
        flex-direction: column;
        position: relative;
      }

      .step-row {
        display: flex;
        position: relative;
        padding: 24px 0;
      }

      /* The vertical dashed line */
      .step-row::before {
        content: "";
        position: absolute;
        left: 40px; /* Center of the 80px column */
        top: 0;
        bottom: 0;
        width: 2px;
        background-image: linear-gradient(
          to bottom,
          var(--primary) 40%,
          transparent 40%
        );
        background-size: 2px 10px;
        background-repeat: repeat-y;
        opacity: 0.4;
        z-index: 0;
      }

      /* Remove line from top half of first item and bottom half of last item */
      .step-row:first-child::before {
        top: 40px;
      }
      .step-row:last-child::before {
        bottom: calc(100% - 40px);
      }

      .step-num-col {
        width: 80px;
        flex-shrink: 0;
        text-align: right;
        position: relative;
        z-index: 1; /* Above the line */
      }

      .step-num-text {
        font-family: var(--font-ui);
        font-weight: 800;
        font-size: 64px;
        color: var(--primary);
        background: var(--bg); /* To clip the dashed line cleanly */
        line-height: 1;
        padding: 8px 0;
        display: inline-block;
      }

      .step-content-col {
        flex-grow: 1;
        padding-left: 32px;
        padding-top: 12px; /* Align text nicely with the big number */
      }

      /* Step 4 Special Treatment */
      .step-row.step-legal {
        border-left: 3px solid var(--accent);
        background: linear-gradient(
          90deg,
          rgba(212, 43, 43, 0.05) 0%,
          transparent 100%
        );
        margin: 16px -24px;
        padding: 24px;
      }

      /* Adjust pseudo-line position when padding is added for Step 4 */
      .step-row.step-legal::before {
        left: 64px; /* 40px + 24px padding */
      }

      .step-row-title {
        font-family: var(--font-display);
        font-size: 22px;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 8px;
      }

      .step-row-desc {
        font-size: 16px;
        color: var(--text-secondary);
        line-height: 1.6;
      }

      /* =========================================
           SECTION 4: FIRST DEPOSIT GUIDE (TABS/ACCORDION)
           ========================================= */
      .deposit-system {
        display: flex;
        gap: 40px;
        align-items: flex-start;
      }

      /* Desktop Tabs */
      .deposit-sidebar {
        width: 200px;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
      }

      .dep-tab {
        text-align: left;
        padding: 16px 20px;
        background: var(--surface-raised);
        border: none;
        border-left: 3px solid transparent;
        color: var(--text-secondary);
        font-family: var(--font-display);
        font-size: 18px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s ease;
      }

      .dep-tab:hover {
        background: #252525;
      }

      .dep-tab.active {
        border-left-color: var(--primary);
        color: var(--primary);
        background: #252525;
      }

      /* Content Area */
      .deposit-content-area {
        flex-grow: 1;
      }

      .dep-panel {
        display: none;
      }

      .dep-panel.active {
        display: block;
        animation: fadeIn 0.4s ease;
      }

      @keyframes fadeIn {
        from {
          opacity: 0;
          transform: translateY(5px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      /* Mobile Accordion Header (Hidden on Desktop) */
      .dep-acc-header {
        display: none;
        width: 100%;
        text-align: left;
        padding: 20px 24px;
        background: var(--surface-raised);
        border: none;
        border-left: 3px solid transparent;
        color: var(--text-secondary);
        font-family: var(--font-display);
        font-size: 20px;
        font-weight: 700;
        cursor: pointer;
        justify-content: space-between;
        align-items: center;
      }

      .dep-acc-icon {
        width: 20px;
        height: 20px;
        stroke: currentColor;
        transition: transform 0.3s;
      }

      .dep-acc-content {
        padding: 24px 0;
      }

      .dep-instruction {
        font-size: 16px;
        color: var(--text-primary);
        line-height: 1.6;
      }

      .dep-num-badge {
        display: inline-block;
        font-family: var(--font-ui);
        font-size: 14px;
        color: var(--primary);
        margin-right: 8px;
      }

      /* Stat Strip Bottom */
      .deposit-stats-strip {
        display: flex;
        justify-content: center;
        gap: 48px;
        margin-top: 48px;
        padding-top: 32px;
        border-top: 1px solid var(--border);
      }

      .dep-stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
      }

      .dep-stat-val {
        font-family: var(--font-ui);
        font-weight: 500;
        font-size: 16px;
        color: var(--primary);
        margin-bottom: 4px;
      }

      .dep-stat-label {
        font-size: 13px;
        color: var(--text-secondary);
      }

      /* =========================================
           SECTION 5: ACCOUNT SECURITY
           ========================================= */
      .security-wrapper {
        max-width: 960px;
        margin: 0 auto;
      }

      .security-grid-top {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        margin-bottom: 24px;
      }

      .security-grid-bottom {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        max-width: 632px; /* Roughly 2 columns worth */
        margin: 0 auto;
      }

      .security-card {
        background: var(--surface-raised);
        border-radius: 4px;
        padding: 32px 24px;
        text-align: center;
        transition: all 0.3s ease;
      }

      .security-card:hover {
        border-bottom: 3px solid var(--primary); /* Subtle accent */
        transform: translateY(-2px);
      }

      .sec-icon {
        width: 38px; /* Larger as per spec */
        height: 38px;
        margin: 0 auto 20px;
      }

      .sec-title {
        font-family: var(--font-display);
        font-size: 18px;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 12px;
      }

      .sec-desc {
        font-size: 14px;
        color: var(--text-secondary);
        line-height: 1.6;
      }

      /* =========================================
           SECTION 6: NEW MEMBER OFFERS
           ========================================= */
      .offers-list {
        display: flex;
        flex-direction: column;
        max-width: 900px;
        margin: 0 auto;
      }

      .offer-row {
        display: flex;
        align-items: center;
        height: 64px;
        border-bottom: 1px solid var(--border);
        padding: 0 16px;
      }

      .offer-row.featured {
        height: 80px;
        background: rgba(240, 180, 41, 0.06);
        border-left: 3px solid var(--primary);
        border-bottom: 1px solid var(--border);
      }

      .offer-tag-wrap {
        width: 160px;
        flex-shrink: 0;
      }

      .offer-tag {
        display: inline-block;
        background: var(--surface-raised);
        border-radius: 4px;
        padding: 4px 10px;
        font-family: var(--font-ui);
        font-size: 12px;
        color: var(--primary);
        text-transform: uppercase;
      }

      .offer-title {
        font-family: var(--font-display);
        font-weight: 700;
        font-size: 18px;
        color: var(--text-primary);
        width: 300px;
        flex-shrink: 0;
        padding-right: 16px;
      }

      .offer-desc {
        font-size: 14px;
        color: var(--text-secondary);
        flex-grow: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis; /* Keeps layout clean on smaller desktop screens */
      }

      /* =========================================
           FAQ
           ========================================= */
      .faq-list {
        max-width: 800px;
        margin: 0 auto;
      }

      .faq-item {
        border-bottom: 1px solid var(--border);
      }

      .faq-question {
        width: 100%;
        text-align: left;
        background: none;
        border: none;
        padding: 24px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-family: var(--font-body);
        font-weight: 500;
        font-size: 16px;
        color: var(--text-primary);
        cursor: pointer;
      }

      .faq-icon {
        width: 20px;
        height: 20px;
        stroke: var(--primary);
        transition: transform 0.3s ease;
      }

      .faq-item.active .faq-icon {
        transform: rotate(180deg);
      }

      .faq-answer {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
      }

      .faq-answer-inner {
        padding-bottom: 24px;
        font-size: 16px;
        color: var(--text-secondary);
        padding-right: 40px;
        line-height: 1.6;
      }

      /* =========================================
           FOOTER
           ========================================= */
      footer {
        background: #050505;
        padding: 64px 0 32px;
        border-top: 1px solid var(--border);
      }

      .footer-grid {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: 48px;
        margin-bottom: 48px;
      }

      .footer-logo {
        font-family: var(--font-display);
        font-size: 32px;
        font-weight: 800;
        margin-bottom: 16px;
      }

      .footer-desc {
        font-size: 14px;
        color: var(--text-secondary);
        margin-bottom: 24px;
      }

      .footer-heading {
        font-family: var(--font-display);
        font-size: 18px;
        margin-bottom: 24px;
        color: var(--text-primary);
      }

      .footer-links {
        display: flex;
        flex-direction: column;
        gap: 12px;
      }

      .footer-link {
        font-size: 14px;
        color: var(--text-secondary);
        transition: color 0.2s;
      }

      .footer-link:hover {
        color: var(--primary);
      }

      .social-links {
        display: flex;
        gap: 16px;
      }

      .social-link {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--surface-raised);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
      }

      .social-link:hover {
        background: var(--primary);
      }

      .social-link svg {
        width: 20px;
        height: 20px;
        fill: var(--text-primary);
      }

      .badges-container {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 24px;
      }

      .footer-bottom {
        border-top: 1px solid var(--border);
        padding-top: 24px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 13px;
        color: var(--text-secondary);
      }

      /* =========================================
           FLOATING CTA
           ========================================= */
      .floating-cta {
        position: fixed;
        bottom: 24px;
        right: 24px;
        background: var(--gradient-wash);
        color: #111;
        font-family: var(--font-display);
        font-weight: 800;
        font-size: 16px;
        text-transform: uppercase;
        padding: 16px 24px;
        border-radius: 50px;
        z-index: 90;
        box-shadow: 0 0 20px rgba(240, 180, 41, 0.4);
        animation: pulse-glow 2s infinite;
        transition:
          opacity 0.3s,
          visibility 0.3s;
      }

      .floating-cta.hidden {
        opacity: 0;
        visibility: hidden;
      }

      @keyframes pulse-glow {
        0% {
          box-shadow: 0 0 0 0 rgba(240, 180, 41, 0.7);
        }
        70% {
          box-shadow: 0 0 0 15px rgba(240, 180, 41, 0);
        }
        100% {
          box-shadow: 0 0 0 0 rgba(240, 180, 41, 0);
        }
      }

      /* =========================================
           RESPONSIVE BREAKPOINTS
           ========================================= */
      @media (max-width: 1023px) {
        /* Tablet */
        .register-hero-title {
          font-size: 48px;
        }
        .register-hero-content {
          width: 60%;
        }
        .register-hero-image {
          width: 40%;
        }

        .security-grid-top {
          grid-template-columns: repeat(2, 1fr);
        }
        .security-grid-bottom {
          grid-template-columns: 1fr;
          max-width: none;
        }
        /* Make the 5th item span full width or center it */
        .security-grid-top .security-card:nth-child(3) {
          grid-column: span 2;
        }

        .offer-row {
          flex-wrap: wrap;
          height: auto !important;
          padding: 16px;
          gap: 8px;
        }
        .offer-tag-wrap {
          width: 100%;
        }
        .offer-title {
          width: 100%;
          padding-right: 0;
        }
        .offer-desc {
          white-space: normal;
        }

        .footer-grid {
          grid-template-columns: repeat(2, 1fr);
        }
      }

      @media (max-width: 767px) {
        /* Mobile */
        .nav-links,
        .nav-actions {
          display: none;
        }
        .mobile-menu-btn {
          display: block;
        }

        .register-hero-image {
          display: none;
        }
        .register-hero-content {
          width: 100%;
          padding-right: 0;
        }
        .register-hero-title {
          font-size: 36px;
        }

        .hero-badges {
          display: grid;
          grid-template-columns: 1fr 1fr;
          gap: 8px;
        }
        .hero-badges .license-badge {
          text-align: center;
          padding: 8px 4px;
        }

        .register-hero-actions {
          width: 100%;
          align-items: center;
        }
        .register-hero-actions .btn {
          width: 100%;
        }
        .link-secondary {
          margin-left: 0;
        }

        .reasons-grid {
          grid-template-columns: 1fr;
        }

        .step-row::before {
          left: 32px;
        }
        .step-row.step-legal::before {
          left: 32px;
          display: none; /* Hide line in legal box on mobile for cleaner look */
        }
        .step-row.step-legal {
          margin: 16px 0;
          border-left: none;
          border-top: 3px solid var(--accent);
        }
        .step-num-col {
          width: 64px;
          text-align: left;
        }
        .step-content-col {
          padding-left: 16px;
        }

        /* Turn Deposit Tabs into Accordion */
        .deposit-system {
          flex-direction: column;
          gap: 0;
        }
        .deposit-sidebar {
          display: none;
        }
        .dep-panel {
          display: block;
        } /* Show all panels, hide content inside */
        .dep-acc-header {
          display: flex;
        }
        .dep-acc-content {
          display: none;
          padding: 16px 24px;
        }
        .dep-panel.active .dep-acc-content {
          display: block;
        }
        .dep-panel.active .dep-acc-header {
          border-left-color: var(--primary);
          color: var(--primary);
          background: #252525;
        }
        .dep-panel.active .dep-acc-icon {
          transform: rotate(180deg);
          stroke: var(--primary);
        }

        .deposit-stats-strip {
          flex-direction: column;
          gap: 24px;
        }

        .security-grid-top {
          grid-template-columns: 1fr;
        }
        .security-grid-top .security-card:nth-child(3) {
          grid-column: span 1;
        }

        .footer-grid {
          grid-template-columns: 1fr;
          gap: 32px;
        }
        .footer-bottom {
          flex-direction: column;
          gap: 16px;
          text-align: center;
        }
      }
