/* =========================================
           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: 860px;
      }

      .section-padding {
        padding: 80px 0;
      }

      .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;
      }

      /* =========================================
           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 (AGENT PAGE)
           ========================================= */
      .agent-hero {
        position: relative;
        padding: 160px 0 100px;
        min-height: 80vh;
        display: flex;
        align-items: center;
        /* Upward diagonal gold gradient wash */
        background:
          linear-gradient(
            to top right,
            #0a0a0a 40%,
            rgba(240, 180, 41, 0.08) 100%
          ),
          var(--bg);
        overflow: hidden;
      }

      .agent-hero-container {
        display: flex;
        align-items: center;
        position: relative;
        z-index: 2;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 24px;
        gap: 5%;
      }

      .agent-hero-content {
        width: 55%;
      }

      .agent-hero-title {
        font-family: var(--font-display);
        font-size: 58px;
        font-weight: 800;
        line-height: 1.1;
        margin-bottom: 24px;
        color: #ffffff;
      }

      /* Stat Pills */
      .stat-pills {
        display: flex;
        gap: 12px;
        margin-bottom: 32px;
        flex-wrap: wrap;
      }

      .stat-pill {
        background: var(--surface-raised);
        border: 1px solid var(--primary);
        border-radius: 24px;
        padding: 8px 20px;
        font-family: var(--font-ui);
        font-size: 14px;
        font-weight: 500;
        color: var(--primary);
      }

      .agent-hero-image {
        width: 45%;
        perspective: 1000px;
      }

      .agent-hero-image img {
        width: 100%;
        height: auto;
        border-radius: 12px;
        box-shadow:
          0 20px 40px rgba(0, 0, 0, 0.6),
          0 0 40px rgba(240, 180, 41, 0.1);
        transform: rotate(2deg); /* Dynamic tilt spec */
      }

      /* =========================================
           SECTION 2: WHY BECOME AN AGENT
           ========================================= */
      .reasons-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
      }

      .adv-card {
        background: var(--surface-raised);
        border-radius: 4px;
        border-top: 3px solid var(--primary);
        padding: 32px;
        display: flex;
        flex-direction: column;
      }

      .adv-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 20px;
      }

      .adv-title {
        font-family: var(--font-display);
        font-size: 20px;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 12px;
      }

      /* Special callout for 100 PHP */
      .adv-amount {
        font-family: var(--font-ui);
        font-size: 28px;
        font-weight: 800;
        color: var(--primary);
        margin-bottom: 12px;
        line-height: 1;
      }

      .adv-desc {
        font-size: 15px;
        color: var(--text-secondary);
        line-height: 1.6;
      }

      /* =========================================
           SECTION 3: COMMISSION STRUCTURE
           ========================================= */
      .comm-block {
        margin-bottom: 32px;
        border-top: 1px solid var(--border);
        padding-top: 24px;
      }

      .comm-block:first-of-type {
        border-top: none;
        padding-top: 0;
      }

      .comm-title {
        font-family: var(--font-display);
        font-size: 22px;
        font-weight: 700;
        color: var(--primary);
        margin-bottom: 12px;
      }

      .comm-desc {
        font-size: 16px;
        color: var(--text-secondary);
        line-height: 1.6;
      }

      /* Table */
      .table-responsive {
        width: 100%;
        overflow-x: auto;
        margin-top: 40px;
        border-radius: 4px;
        border: 1px solid var(--border);
      }

      .comm-table {
        width: 100%;
        border-collapse: collapse;
        text-align: left;
      }

      .comm-table th,
      .comm-table td {
        padding: 14px 20px;
        border: 1px solid var(--border);
      }

      .comm-table th {
        background: var(--surface-raised);
        font-family: var(--font-display);
        font-size: 16px;
        font-weight: 700;
        color: var(--primary);
        text-transform: uppercase;
        letter-spacing: 0.06em;
      }

      .comm-table tr:nth-child(odd) {
        background-color: #1a1a1a;
      }

      .comm-table tr:nth-child(even) {
        background-color: #141414;
      }

      .comm-table td {
        font-size: 15px;
        color: var(--text-primary);
      }

      .comm-table tr:last-child td {
        background: rgba(240, 180, 41, 0.04);
      }

      .comm-table tr:last-child td:first-child {
        border-left: 3px solid var(--primary);
      }

      .table-note {
        text-align: center;
        font-style: italic;
        font-size: 13px;
        color: var(--text-secondary);
        margin-top: 16px;
      }

      /* =========================================
           SECTION 4: HOW TO BECOME AN AGENT
           ========================================= */
      .step-list {
        display: flex;
        flex-direction: column;
        position: relative;
      }

      .step-row {
        display: flex;
        position: relative;
        padding: 24px 0;
      }

      /* Vertical dashed line */
      .step-row::before {
        content: "";
        position: absolute;
        left: 40px; /* Center of 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;
      }

      .step-row:first-child::before {
        top: 40px;
      }
      .step-row:last-child::before {
        display: none;
      } /* End line at last item per spec */

      .step-num-col {
        width: 80px;
        flex-shrink: 0;
        text-align: right;
        position: relative;
        z-index: 1;
      }

      .step-num-text {
        font-family: var(--font-ui);
        font-weight: 800;
        font-size: 48px; /* Specifically 48px for agent page */
        color: var(--primary);
        background: var(--surface); /* Match bg */
        line-height: 1;
        padding: 8px 0;
        display: inline-block;
      }

      .step-content-col {
        flex-grow: 1;
        padding-left: 32px;
        padding-top: 4px;
      }

      .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;
      }

      /* Referral Link Preview Box */
      .link-preview {
        display: inline-flex;
        align-items: center;
        background: var(--bg);
        border: 1px solid var(--border);
        border-radius: 4px;
        padding: 10px 16px;
        margin-top: 16px;
        max-width: 320px;
        gap: 10px;
      }

      .link-preview svg {
        width: 14px;
        height: 14px;
        fill: var(--primary);
        flex-shrink: 0;
      }

      .link-preview span {
        font-family: var(--font-ui);
        font-size: 13px;
        color: var(--primary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

      /* =========================================
           SECTION 5: PROMOTIONAL TOOLS
           ========================================= */
      .tools-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        margin-bottom: 24px;
      }

      .tool-card {
        background: #141414;
        border-radius: 4px;
        border-left: 3px solid var(--primary);
        padding: 32px 24px;
      }

      .tool-icon {
        width: 28px;
        height: 28px;
        margin-bottom: 16px;
      }

      .tool-title {
        font-family: var(--font-display);
        font-size: 18px;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 12px;
      }

      .tool-desc {
        font-size: 14px;
        color: var(--text-secondary);
        line-height: 1.6;
      }

      .support-card {
        background: #141414;
        border-radius: 4px;
        border-top: 3px solid var(--primary);
        padding: 32px;
        display: flex;
        align-items: center;
        gap: 24px;
      }

      .support-card .tool-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 0;
        flex-shrink: 0;
      }

      .support-content {
        flex-grow: 1;
      }

      .support-stat {
        font-family: var(--font-ui);
        font-size: 24px;
        font-weight: 800;
        color: var(--primary);
        margin-bottom: 4px;
        display: block;
      }

      /* =========================================
           SECTION 6: WHO IS THIS FOR
           ========================================= */
      .audience-block {
        padding-top: 24px;
        margin-bottom: 24px;
        border-top: 1px solid var(--border);
      }

      .audience-block:first-child {
        border-top: none;
        padding-top: 0;
      }

      .aud-title {
        font-family: var(--font-display);
        font-size: 20px;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 12px;
      }

      .aud-desc {
        font-size: 16px;
        color: var(--text-secondary);
        line-height: 1.75;
      }

      /* =========================================
           SECTION 7: PAYOUT DETAILS
           ========================================= */
      .payout-split {
        display: flex;
        align-items: flex-start;
        gap: 40px;
      }

      .payout-methods-col {
        width: 50%;
      }

      .payout-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 0;
        border-bottom: 1px solid var(--border);
      }

      .payout-name {
        font-family: var(--font-body);
        font-weight: 500;
        font-size: 15px;
        color: var(--text-primary);
      }

      .payout-time {
        font-family: var(--font-ui);
        font-size: 14px;
        color: var(--primary);
        text-align: right;
      }

      .payout-info-col {
        width: 50%;
        display: flex;
        flex-direction: column;
        gap: 24px;
      }

      .payout-callout {
        background: var(--surface-raised);
        border-radius: 4px;
        border-left: 3px solid var(--primary);
        padding: 32px 24px;
      }

      .callout-val {
        font-family: var(--font-display);
        font-size: 28px;
        font-weight: 800;
        color: var(--primary);
        margin-bottom: 8px;
      }

      .tax-note {
        background: var(--surface-raised);
        border-radius: 4px;
        border-left: 3px solid var(--primary);
        padding: 16px 20px;
        font-family: var(--font-body);
        font-style: italic;
        font-size: 14px;
        color: var(--text-secondary);
        line-height: 1.6;
      }

      /* =========================================
           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;
      }

      .license-badge {
        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;
      }

      .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 */
        .agent-hero-title {
          font-size: 48px;
        }
        .agent-hero-container {
          flex-direction: column;
          text-align: center;
          gap: 40px;
        }
        .agent-hero-content,
        .agent-hero-image {
          width: 100%;
        }
        .stat-pills {
          justify-content: center;
        }
        .agent-hero-image img {
          transform: none;
          max-width: 500px;
          margin: 0 auto;
        }

        .tools-grid {
          grid-template-columns: repeat(2, 1fr);
        }
        .tools-grid .tool-card:nth-child(3) {
          grid-column: span 2;
        }

        .payout-split {
          flex-direction: column;
        }
        .payout-methods-col,
        .payout-info-col {
          width: 100%;
        }

        .footer-grid {
          grid-template-columns: repeat(2, 1fr);
        }
      }

      @media (max-width: 767px) {
        /* Mobile */
        .nav-links,
        .nav-actions {
          display: none;
        }
        .mobile-menu-btn {
          display: block;
        }

        .agent-hero {
          padding-top: 120px;
        }
        .agent-hero-title {
          font-size: 36px;
        }
        .agent-hero-image {
          display: none;
        } /* Hide image per spec */
        .stat-pills {
          display: grid;
          grid-template-columns: 1fr 1fr;
          gap: 8px;
        }
        .stat-pill {
          text-align: center;
          padding: 10px 4px;
        }
        .agent-hero-content .btn {
          width: 100%;
        }

        .reasons-grid {
          grid-template-columns: 1fr;
        }

        .step-row::before {
          left: 24px;
        }
        .step-num-col {
          width: 48px;
          text-align: left;
        }
        .step-content-col {
          padding-left: 20px;
        }

        .step-row:last-child .step-content-col .btn {
          width: 100%;
        }

        .tools-grid {
          grid-template-columns: 1fr;
        }
        .tools-grid .tool-card:nth-child(3) {
          grid-column: span 1;
        }

        .support-card {
          flex-direction: column;
          text-align: center;
        }

        .footer-grid {
          grid-template-columns: 1fr;
          gap: 32px;
        }
        .footer-bottom {
          flex-direction: column;
          gap: 16px;
          text-align: center;
        }
      }
