/* ── Partners / Affiliate Program ── */

/* Hero */
.ptn-hero {
    text-align: center;
    padding: 48px 24px;
    background: rgba(255,255,255,0.06);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 40px;
}

.ptn-hero__badge {
    display: inline-block;
    background: linear-gradient(135deg, #7A95F8, #6453CA);
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.ptn-hero__title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.2;
}

.ptn-hero__sub {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    margin: 0 0 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.ptn-hero__stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 28px;
}

.ptn-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ptn-hero__stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #7A95F8;
}

.ptn-hero__stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ptn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: linear-gradient(135deg, #41b618, #2d8a11);
    color: #fff;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}
.ptn-cta:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(65,182,24,0.35);
}

/* Section Title */
.ptn-section-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px;
}

.ptn-section-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin: -12px 0 20px;
}

/* Steps */
.ptn-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.ptn-step {
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 24px 18px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.06);
}

.ptn-step__num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7A95F8, #6453CA);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.ptn-step__title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
}

.ptn-step__text {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin: 0;
    line-height: 1.5;
}

/* Benefits */
.ptn-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.ptn-benefit {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: border-color 0.2s;
}
.ptn-benefit:hover {
    border-color: rgba(255,255,255,0.12);
}

.ptn-benefit__icon {
    font-size: 24px;
    color: #7A95F8;
    margin-bottom: 10px;
}

.ptn-benefit__title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
}

.ptn-benefit__text {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin: 0;
    line-height: 1.5;
}

/* Who Can Join */
.ptn-who-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}

.ptn-who-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.06);
}

.ptn-who-card i {
    font-size: 20px;
    color: #7A95F8;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.ptn-who-card span {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}

/* Form Section */
.ptn-form-section {
    background: rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 40px;
    border: 1px solid rgba(255,255,255,0.08);
}

.ptn-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.ptn-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.ptn-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    margin-bottom: 6px;
}

.ptn-required {
    color: #e74c3c;
}

.ptn-input,
.ptn-select,
.ptn-textarea {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    padding: 10px 14px;
    transition: border-color 0.2s ease;
    width: 100%;
}

.ptn-input:focus,
.ptn-select:focus,
.ptn-textarea:focus {
    outline: none;
    border-color: rgba(122,149,248,0.5);
    box-shadow: 0 0 0 3px rgba(122,149,248,0.1);
}

.ptn-input::placeholder,
.ptn-textarea::placeholder {
    color: rgba(255,255,255,0.25);
}

.ptn-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.ptn-select option {
    background: #1a1a2e;
    color: #fff;
}

.ptn-textarea {
    resize: vertical;
    min-height: 80px;
}

.ptn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: linear-gradient(135deg, #7A95F8, #6453CA);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}
.ptn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100,83,202,0.35);
}

/* Alerts */
.ptn-alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ptn-alert--success {
    background: rgba(65,182,24,0.1);
    border: 1px solid rgba(65,182,24,0.2);
    color: #41b618;
}

.ptn-alert--error {
    background: rgba(231,76,60,0.1);
    border: 1px solid rgba(231,76,60,0.2);
    color: #e74c3c;
}

.ptn-alert--info {
    background: rgba(122,149,248,0.1);
    border: 1px solid rgba(122,149,248,0.2);
    color: #7A95F8;
}

/* FAQ */
.ptn-faq {
    margin-bottom: 40px;
}

.ptn-faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ptn-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 0;
    background: none;
    border: none;
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.ptn-faq-q i {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    transition: transform 0.2s;
}

.ptn-faq-item.open .ptn-faq-q i {
    transform: rotate(180deg);
}

.ptn-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.ptn-faq-item.open .ptn-faq-a {
    max-height: 200px;
}

.ptn-faq-a p {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    margin: 0;
    padding: 0 0 16px;
}

/* Existing Affiliate Link */
.ptn-existing {
    text-align: center;
    padding: 20px;
    margin-bottom: 40px;
}

.ptn-existing p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

.ptn-link {
    color: #7A95F8;
    font-weight: 600;
    text-decoration: none;
}
.ptn-link:hover {
    color: #fff;
}

/* ── Affiliate Dashboard ── */

.afd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.afd-header__title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.afd-header__sub {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin: 2px 0 0;
}

.afd-header__badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.afd-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.afd-badge--approved { background: rgba(65,182,24,0.15); color: #41b618; }
.afd-badge--pending { background: rgba(245,158,11,0.15); color: #f59e0b; }
.afd-badge--rejected { background: rgba(231,76,60,0.15); color: #e74c3c; }
.afd-badge--suspended { background: rgba(120,120,140,0.15); color: rgba(255,255,255,0.5); }

.afd-commission {
    font-size: 13px;
    font-weight: 600;
    color: #7A95F8;
}

/* Stats */
.afd-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.afd-stat {
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.06);
}

.afd-stat__value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.afd-stat__label {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Referral Link */
.afd-reflink {
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.08);
}

.afd-reflink__label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    margin-bottom: 8px;
    display: block;
}

.afd-reflink__row {
    display: flex;
    gap: 8px;
}

.afd-reflink__input {
    flex: 1;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    padding: 10px 14px;
    font-family: monospace;
}

.afd-reflink__copy {
    padding: 10px 20px;
    background: linear-gradient(135deg, #7A95F8, #6453CA);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.afd-reflink__copy:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(100,83,202,0.3);
}

.afd-reflink__hint {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    margin: 8px 0 0;
}

.afd-reflink__hint code {
    background: rgba(255,255,255,0.08);
    padding: 2px 6px;
    border-radius: 4px;
    color: #7A95F8;
    font-size: 12px;
}

/* Cards */
.afd-card {
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.06);
}

.afd-card__title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
}

/* Table */
.afd-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.afd-table {
    width: 100%;
    border-collapse: collapse;
}

.afd-table th {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: left;
}

.afd-table td {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.afd-table code {
    background: rgba(255,255,255,0.06);
    padding: 2px 6px;
    border-radius: 4px;
    color: #7A95F8;
    font-size: 12px;
}

.afd-truncate {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.afd-empty-text {
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    text-align: center;
    padding: 20px;
}

/* Quick Links */
.afd-quicklinks {
    margin-bottom: 40px;
}

.afd-quicklinks__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.afd-quicklink {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    text-decoration: none;
    transition: border-color 0.2s;
}
.afd-quicklink:hover {
    border-color: rgba(255,255,255,0.15);
}

.afd-quicklink i {
    font-size: 18px;
    color: #7A95F8;
}

.afd-quicklink span {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}

.afd-quicklink code {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    word-break: break-all;
}

/* Mobile */
@media (max-width: 768px) {
    .ptn-hero {
        padding: 32px 18px;
    }
    .ptn-hero__title {
        font-size: 24px;
    }
    .ptn-hero__stats {
        flex-direction: column;
        gap: 16px;
    }
    .ptn-steps {
        grid-template-columns: 1fr;
    }
    .ptn-benefits {
        grid-template-columns: 1fr;
    }
    .ptn-who-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ptn-form-section {
        padding: 20px;
    }
    .ptn-form-row {
        grid-template-columns: 1fr;
    }
    .afd-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .afd-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .afd-reflink__row {
        flex-direction: column;
    }
    .afd-quicklinks__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ptn-who-grid {
        grid-template-columns: 1fr;
    }
    .afd-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .afd-stat__value {
        font-size: 22px;
    }
}
