.account-main { max-width: 1240px; min-height: calc(100vh - 166px); margin: 0 auto; padding: 52px 24px 76px; }
.account-login-layout { display: grid; min-height: 640px; grid-template-columns: .94fr 1.06fr; overflow: hidden; border: 1px solid var(--store-line); border-radius: 20px; background: #fff; box-shadow: 0 18px 55px rgba(24,43,37,.07); }
.account-story { display: flex; flex-direction: column; align-items: flex-start; padding: 42px clamp(28px, 5vw, 62px); color: #fff; background: radial-gradient(circle at 85% 84%, rgba(108,189,132,.25), transparent 30%), linear-gradient(145deg, #103d30, #176744); }
.account-story .store-brand { margin-bottom: auto; color: #fff; }
.account-story .store-brand small { color: rgba(255,255,255,.65); }
.account-story > .eyebrow { margin-top: 62px; color: #bde1c9; }
.account-story h1 { margin: 14px 0 12px; color: #fff; font-size: clamp(33px, 4vw, 48px); line-height: 1.12; letter-spacing: -.04em; }
.account-story h1 em { color: #b9e0c6; font-style: normal; }
.account-story > p { max-width: 390px; margin: 0; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.75; }
.account-story-points { display: grid; gap: 12px; margin: 24px 0 30px; color: rgba(255,255,255,.88); font-size: 11px; }
.account-story-points i { margin-right: 7px; color: #a5dbb6; }
.account-story > a:last-child { margin-top: auto; color: #d6eddd; font-size: 11px; text-decoration: none; }
.account-story > a:last-child:hover { color: #fff; }
.account-form-side { display: grid; place-items: center; padding: 36px; background: #fff; }
.account-form-card { width: min(100%, 410px); }
.account-form-heading h2 { margin: 8px 0 5px; font-size: 24px; }
.account-form-heading p { margin: 0; color: var(--store-muted); font-size: 12px; line-height: 1.6; }
.account-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 22px 0 18px; padding: 4px; border-radius: 10px; background: #f2f6f3; }
.account-tabs button { min-height: 38px; border: 0; border-radius: 8px; color: #68776e; background: transparent; font-size: 11px; font-weight: 700; }
.account-tabs button.active { color: var(--store-green-dark); background: #fff; box-shadow: 0 2px 7px rgba(24,43,37,.08); }
.customer-account-form { display: none; }
.customer-account-form.active { display: grid; gap: 13px; }
.customer-account-form label { display: block; color: #34463d; font-size: 10px; font-weight: 700; }
.customer-account-form label input,
.customer-account-form label textarea { display: block; width: 100%; min-height: 43px; margin-top: 6px; padding: 10px 12px; border: 1px solid #dfe8e2; border-radius: 9px; outline: none; color: var(--store-ink); background: #fff; font-size: 12px; font-weight: 400; }
.customer-account-form label textarea { min-height: 65px; resize: vertical; }
.customer-account-form label input:focus,
.customer-account-form label textarea:focus { border-color: #8ac4a0; box-shadow: 0 0 0 3px rgba(19,122,84,.08); }
.optional-label { margin-left: 5px; color: #9aa49e; font-size: 9px; font-weight: 400; }
.account-submit { display: flex; min-height: 45px; align-items: center; justify-content: center; gap: 8px; margin-top: 3px; border: 0; border-radius: 9px; color: #fff; background: var(--store-green); font-size: 12px; font-weight: 700; }
.account-submit:hover { background: var(--store-green-dark); }
.account-security { display: flex; gap: 7px; align-items: center; margin: 15px 0 0; color: #86928a; font-size: 9px; line-height: 1.5; }
.account-security i { color: var(--store-green); }
.account-message { display: flex; gap: 8px; align-items: flex-start; margin-top: 15px; padding: 10px; border-radius: 8px; font-size: 10px; line-height: 1.5; }
.account-welcome { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 28px 32px; border-radius: 16px; color: #fff; background: linear-gradient(110deg, #123f36, #178b62); }
.account-welcome .eyebrow { color: #c6e5d0; }
.account-welcome h1 { margin: 8px 0 5px; color: #fff; font-size: clamp(22px, 3vw, 32px); }
.account-welcome p { margin: 0; color: rgba(255,255,255,.76); font-size: 12px; }
.account-actions { display: flex; align-items: center; gap: 9px; }
.account-actions form { margin: 0; }
.account-shop-link,
.account-logout { display: inline-flex; min-height: 39px; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid rgba(255,255,255,.33); border-radius: 9px; color: #fff; background: rgba(255,255,255,.11); font-size: 10px; font-weight: 700; text-decoration: none; }
.account-shop-link:hover,
.account-logout:hover { color: #17432f; background: #fff; }
.account-profile { display: flex; gap: 12px; align-items: center; margin: 17px 0 30px; padding: 16px; border: 1px solid var(--store-line); border-radius: 12px; background: #fff; }
.profile-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: var(--store-green); background: #edf6ef; font-size: 16px; }
.account-profile strong { display: block; font-size: 12px; }
.account-profile small { display: block; margin-top: 4px; color: var(--store-muted); font-size: 10px; }
.account-order-section { margin-top: 26px; }
.account-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.account-section-heading h2 { margin: 5px 0 0; font-size: 24px; }
.account-order-count { padding: 7px 10px; border-radius: 20px; color: var(--store-green); background: #edf6ef; font-size: 10px; font-weight: 700; }
.account-order-list { display: grid; gap: 13px; }
.account-order-card { padding: 18px 20px; border: 1px solid var(--store-line); border-radius: 13px; background: #fff; box-shadow: 0 4px 15px rgba(24,43,37,.025); }
.account-order-header { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid #eff3f0; }
.account-order-header strong { display: block; font-size: 13px; }
.account-order-header small { display: block; margin-top: 4px; color: var(--store-muted); font-size: 10px; }
.account-status { padding: 6px 9px; border-radius: 20px; color: #74531b; background: #fff4d8; font-size: 9px; font-weight: 700; }
.account-status.status-confirmed { color: #145c86; background: #e5f4ff; }
.account-status.status-completed { color: #17613b; background: #e7f7eb; }
.account-status.status-cancelled { color: #9b3d34; background: #fff0ed; }
.account-order-branch { margin-top: 12px; color: var(--store-green); font-size: 10px; font-weight: 700; }
.account-order-items { margin: 7px 0 0; padding: 0; list-style: none; }
.account-order-items li { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; color: #516157; font-size: 11px; }
.account-order-items li strong { color: var(--store-ink); }
.account-order-items .order-item-options { display: block; margin-top: 3px; color: var(--store-muted); font-size: 10px; line-height: 1.45; }
.account-order-footer { display: flex; justify-content: space-between; gap: 14px; margin-top: 6px; padding-top: 11px; border-top: 1px solid #eff3f0; color: var(--store-muted); font-size: 10px; }
.account-order-footer strong { color: var(--store-green-dark); font-size: 12px; }
.account-invoice-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 13px; padding: 8px 11px; border: 1px solid #cce5d3; border-radius: 8px; color: var(--store-green); background: #f3f9f4; font-size: 11px; font-weight: 700; text-decoration: none; }
.account-invoice-link:hover { border-color: var(--store-green); color: #fff; background: var(--store-green); }
.account-empty { padding: 50px 20px; border: 1px dashed #d9e6dd; border-radius: 13px; color: var(--store-muted); background: #fff; text-align: center; }
.account-empty > i { color: #83b893; font-size: 28px; }
.account-empty h3 { margin: 12px 0 4px; color: var(--store-ink); font-size: 15px; }
.account-empty p { margin: 0; font-size: 11px; }
.account-empty a { display: inline-block; margin-top: 12px; color: var(--store-green); font-size: 11px; font-weight: 700; text-decoration: none; }
@media (max-width: 760px) {
    .account-main { padding: 25px 14px 50px; }
    .account-login-layout { grid-template-columns: 1fr; }
    .account-story { min-height: 370px; padding: 25px; }
    .account-story > .eyebrow { margin-top: 40px; }
    .account-story h1 { font-size: 36px; }
    .account-story-points { gap: 8px; margin: 17px 0 23px; }
    .account-form-side { padding: 27px 20px; }
    .account-welcome { align-items: flex-start; flex-direction: column; padding: 22px; }
}
@media (max-width: 420px) {
    .account-actions { width: 100%; }
    .account-actions form,
    .account-shop-link,
    .account-logout { flex: 1; }
    .account-shop-link,
    .account-logout { justify-content: center; }
    .account-order-card { padding: 15px; }
}

/* Affiliate & Referral Dashboard */
.account-affiliate-section {
    margin: 24px 0 32px;
    padding: 24px;
    border: 1px solid #dce8e0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(24, 43, 37, 0.03);
}
.affiliate-header-banner {
    padding: 22px 24px;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, #103d30 0%, #178b62 100%);
    box-shadow: 0 6px 18px rgba(18, 63, 54, 0.15);
}
.banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.affiliate-header-banner h2 {
    margin: 10px 0 6px;
    color: #fff;
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 700;
}
.affiliate-header-banner p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}
.affiliate-cta-wrapper {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.btn-affiliate-cta {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 13px 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(243, 192, 107, 0.45);
    border-radius: 12px;
    color: #fff;
    text-align: left;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.btn-affiliate-cta:hover,
.btn-affiliate-cta.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: #f3c06b;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(243, 192, 107, 0.25);
}
.cta-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f7d788, #d89f3a);
    color: #12382c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(216, 159, 58, 0.35);
}
.cta-text-wrap {
    flex-grow: 1;
}
.cta-title {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.2px;
}
.cta-subtitle {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.88);
    margin-top: 3px;
    line-height: 1.4;
}
.cta-action-arrow {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.cta-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    background: #f7d788;
    color: #12382c;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
}
.btn-affiliate-cta:hover .cta-badge {
    background: #ffffff;
    color: #0e5b3f;
}
.cta-action-arrow i {
    font-size: 13px;
    color: #f7d788;
    transition: transform 0.25s;
}
.btn-affiliate-cta.active .cta-action-arrow i {
    transform: rotate(180deg);
}
.btn-close-agreement {
    background: transparent;
    border: none;
    color: #71887c;
    font-size: 16px;
    cursor: pointer;
    padding: 6px 9px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}
.btn-close-agreement:hover {
    background: #f0f5f2;
    color: #c92a2a;
}
@media (max-width: 640px) {
    .btn-affiliate-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .cta-action-arrow {
        width: 100%;
        justify-content: space-between;
    }
}
.affiliate-share-box {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid #e1ebe4;
    background: #f7faf8;
}
.affiliate-share-box label {
    display: block;
    margin-bottom: 8px;
    font-size: 12.5px;
    color: #274033;
}
.referral-input-group {
    display: flex;
    gap: 8px;
}
.referral-input-group input {
    flex: 1;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid #ceded4;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-family: monospace;
    color: #17432f;
    outline: none;
}
.btn-copy-ref {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: #178b62;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.btn-copy-ref:hover {
    background: #106346;
}
.referral-quick-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 11.5px;
    color: #55695e;
}
.ref-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 6px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}
.ref-share-btn:hover {
    opacity: 0.9;
    color: #fff;
}
.ref-share-btn.share-wa { background: #25d366; }
.ref-share-btn.share-fb { background: #1877f2; }
.ref-share-btn.share-tg { background: #229ed9; }

.affiliate-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.stat-card {
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid #e3ece6;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(24, 43, 37, 0.02);
}
.stat-card.balance-card {
    border-color: #bee5cb;
    background: linear-gradient(135deg, #f3faf5 0%, #e9f7ee 100%);
}
.stat-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: #5d7367;
    font-weight: 600;
}
.stat-val {
    display: block;
    margin: 8px 0 4px;
    font-size: 22px;
    font-weight: 800;
    color: #123f36;
}
.stat-sub {
    display: block;
    font-size: 10.5px;
    color: #798c81;
}

.affiliate-payout-box {
    margin-top: 22px;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e1ebe4;
    background: #fbfdfc;
}
.payout-heading h3 {
    margin: 0 0 3px;
    font-size: 15px;
    color: #17432f;
}
.payout-heading small {
    display: block;
    color: #697a70;
    font-size: 11px;
}
.payout-threshold-notice {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fff8e8;
    border: 1px solid #fae1b3;
    color: #8c6312;
    font-size: 12px;
    line-height: 1.5;
}
.payout-request-form {
    margin-top: 16px;
}
.payout-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.payout-form-grid .full-width {
    grid-column: 1 / -1;
}
.payout-form-grid label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #314439;
}
.payout-form-grid input,
.payout-form-grid select,
.payout-form-grid textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d5e0d8;
    border-radius: 8px;
    background: #fff;
    font-size: 12px;
    color: #1a2d23;
    outline: none;
}
.payout-form-grid textarea {
    resize: vertical;
}
.btn-submit-payout {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: #178b62;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-submit-payout:hover {
    background: #106346;
}

.affiliate-history-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    margin-bottom: 14px;
    padding: 12px 18px;
    background: #f7faf8;
    border: 1px solid #e1ece5;
    border-radius: 12px;
    flex-wrap: wrap;
}
.history-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.history-header-title .history-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #eaf5ee;
    color: #178b62;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.history-header-title h3 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    color: #123f36;
}
.history-header-title p {
    margin: 2px 0 0;
    font-size: 11.5px;
    color: #5d7568;
}
.btn-toggle-history-all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border: 1px solid #c7dcd0;
    border-radius: 8px;
    background: #ffffff;
    color: #1a4d3a;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-toggle-history-all:hover {
    background: #eef6f1;
    border-color: #178b62;
    color: #178b62;
}

.affiliate-logs-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
    margin-top: 10px;
    transition: all 0.25s ease-in-out;
}
.affiliate-log-card {
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #e4ede7;
    background: #ffffff;
    overflow: hidden;
}
.log-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf4ef;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s;
}
.log-heading:hover {
    opacity: 0.85;
}
.log-heading h4 {
    margin: 0;
    font-size: 14px;
    color: #17432f;
}
.log-heading-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-log-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 0;
    background: transparent;
    color: #5a7366;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, color 0.2s;
    font-size: 11px;
}
.log-heading:hover .btn-log-toggle {
    color: #178b62;
    background: #eef6f1;
}
.log-body {
    transition: all 0.25s ease-in-out;
}
.affiliate-empty-log {
    padding: 24px 10px;
    text-align: center;
    color: #7b8e83;
    font-size: 11.5px;
}
.affiliate-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}
.affiliate-table th {
    text-align: left;
    padding: 8px 10px;
    color: #63776c;
    font-weight: 700;
    border-bottom: 1px solid #edf2ee;
    background: #fafcfb;
}
.affiliate-table td {
    padding: 9px 10px;
    border-bottom: 1px solid #f2f7f4;
    color: #3b4e43;
}
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 10px;
    font-size: 9.5px;
    font-weight: 700;
}
.status-badge.badge-credited {
    background: #e7f7ec;
    color: #17713d;
}
.status-badge.badge-pending {
    background: #fff4dc;
    color: #7e5616;
}
.status-badge.badge-cancelled {
    background: #fde8e6;
    color: #a82e22;
}

@media (max-width: 760px) {
    .affiliate-logs-grid {
        grid-template-columns: 1fr;
    }
    .payout-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Store Navigation Button in Account Header */
.store-nav > a.store-nav-btn,
.store-nav > .store-nav-btn,
.store-nav > a.cart-trigger {
    min-height: 40px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 11px;
    color: #ffffff !important;
    background: linear-gradient(135deg, #16845b, #0d6445) !important;
    box-shadow: 0 4px 14px rgba(19, 122, 84, 0.25);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.store-nav > a.store-nav-btn i,
.store-nav > .store-nav-btn i,
.store-nav > a.cart-trigger i {
    color: #ffffff !important;
    font-size: 13.5px;
    margin: 0;
    line-height: 1;
}
.store-nav > a.store-nav-btn span,
.store-nav > .store-nav-btn span,
.store-nav > a.cart-trigger span {
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-weight: 700;
    min-width: auto !important;
    height: auto !important;
    display: inline !important;
    padding: 0 !important;
}
.store-nav > a.store-nav-btn:hover,
.store-nav > .store-nav-btn:hover,
.store-nav > a.cart-trigger:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #137450, #0a4f36) !important;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 18px rgba(19, 122, 84, 0.35);
    transform: translateY(-1px);
}

/* Affiliate Agreement & Application System */
.affiliate-agreement-card {
    background: #ffffff;
    border: 1px solid #d9e6de;
    border-radius: 14px;
    padding: 24px;
    margin-top: 18px;
    box-shadow: 0 4px 18px rgba(18, 63, 54, 0.04);
}
.agreement-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf4ef;
}
.agreement-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eef7f2;
    color: #178b62;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.agreement-card-header h3 {
    margin: 0 0 6px;
    font-size: 17px;
    color: #123f36;
    font-weight: 700;
}
.agreement-card-header p {
    margin: 0;
    font-size: 12px;
    color: #556c60;
    line-height: 1.5;
}
.affiliate-agreement-body {
    margin-top: 10px;
}
.agreement-terms-scroll {
    max-height: 320px;
    overflow-y: auto;
    background: #fbfdfc;
    border: 1px solid #e1ece5;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: #cbdcd1 #fbfdfc;
}
.agreement-terms-scroll::-webkit-scrollbar {
    width: 6px;
}
.agreement-terms-scroll::-webkit-scrollbar-thumb {
    background-color: #cbdcd1;
    border-radius: 6px;
}
.agreement-rule-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}
.rule-num {
    display: inline-flex;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #178b62;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.agreement-rule-item strong {
    display: block;
    font-size: 13px;
    color: #1a3328;
    margin-bottom: 4px;
}
.agreement-rule-item p,
.agreement-rule-item ul {
    margin: 0;
    font-size: 12px;
    color: #4b6055;
    line-height: 1.55;
}
.agreement-rule-item ul {
    padding-left: 18px;
    margin-top: 6px;
}
.rule-divider {
    height: 1px;
    background: #edf3ef;
    margin: 12px 0;
}
.agreement-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f4faf6;
    border: 1px solid #cce8d7;
    cursor: pointer;
    margin-bottom: 16px;
    font-size: 12.5px;
    color: #17382a;
    line-height: 1.5;
}
.agreement-checkbox-container input[type="checkbox"] {
    width: 19px;
    height: 19px;
    accent-color: #178b62;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}
.agreement-submit-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.btn-agree-apply {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 9px;
    border: none;
    background: linear-gradient(135deg, #178b62, #0e5b3f);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(23, 139, 98, 0.28);
    transition: transform 0.18s, box-shadow 0.18s;
}
.btn-agree-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(23, 139, 98, 0.38);
}
.agreement-submit-bar small {
    color: #63776b;
    font-size: 11px;
}

/* Status Banners */
.affiliate-status-box {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    border-radius: 14px;
    margin-top: 18px;
}
.status-box-pending {
    background: #fffcf4;
    border: 1px solid #fde0a5;
    color: #7c4b05;
}
.status-box-pending .status-box-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #fff0cf;
    color: #b45309;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.status-box-content h3 {
    margin: 6px 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: #8c5208;
}
.status-box-content p {
    margin: 0 0 10px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #6b430e;
}
.status-box-notice {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #fbe2b5;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 11.5px;
    color: #6b4513;
    line-height: 1.5;
}
.status-box-rejected {
    background: #fef7f7;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.status-box-rejected .status-box-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #fee2e2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.status-box-rejected h3 {
    margin: 6px 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: #991b1b;
}
.admin-note-alert {
    background: #fff;
    border: 1px solid #fca5a5;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    color: #7f1d1d;
    margin-bottom: 12px;
}
.status-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 700;
}
.status-pill-badge.pill-pending {
    background: #fed7aa;
    color: #7c2d12;
}
.status-pill-badge.pill-rejected {
    background: #fecaca;
    color: #991b1b;
}

/* Approved Partner Strip */
.affiliate-partner-approved-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    padding: 12px 18px;
    margin-top: 18px;
}
.partner-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #065f46;
}
.partner-verified-badge i {
    font-size: 16px;
    color: #10b981;
}
.partner-since-tag {
    font-size: 11px;
    font-weight: 600;
    color: #047857;
}



