/* =====================================================
   GoldenServ — Reseller Page Styles
   Extracted from reseller/index.php inline <style>
   FIX C-04: Moved to external cacheable file
   ===================================================== */

/* ── Pricing Table Wrapper ── */
.reseller-pricing-wrapper {
    width: 100%;
    -webkit-overflow-scrolling: touch;
    margin-top: 60px;
    margin-bottom: 60px;
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: var(--card-bg);
    border: 1px solid var(--border);
}

.reseller-pricing-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    text-align: left;
}

.reseller-pricing-table th {
    background: var(--navy);
    color: white;
    padding: 18px 24px;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}

.reseller-pricing-table th:first-child      { background: #0f172a; }
.reseller-pricing-table th:nth-child(2)     { background: #1e293b; color: #cbd5e1; }
.reseller-pricing-table th:nth-child(3)     { background: linear-gradient(135deg, #475569, #334155); color: #fff; }
.reseller-pricing-table th:nth-child(4)     { background: linear-gradient(135deg, #fbbf24, #d97706); color: #fff; }
.reseller-pricing-table th:nth-child(5)     { background: linear-gradient(135deg, #818cf8, #4f46e5); color: #fff; }

.reseller-pricing-table td {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-color);
    font-size: 15px;
    transition: background 0.2s ease;
}

.reseller-pricing-table tr:hover td      { background: rgba(134, 102, 223, 0.05); }
.reseller-pricing-table tr:last-child td { border-bottom: none; }

.reseller-pricing-table td strong {
    color: var(--heading-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reseller-pricing-table td strong img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.reseller-pricing-table td:not(:first-child) { font-weight: 500; }
.reseller-pricing-table td:nth-child(2)       { color: #94a3b8; text-decoration: line-through; opacity: 0.7; }
.reseller-pricing-table td:nth-child(3)       { color: #cbd5e1; }
.reseller-pricing-table td:nth-child(4)       { color: #fbbf24; font-weight: 600; }
.reseller-pricing-table td:nth-child(5)       { color: #818cf8; font-weight: 700; }

/* Light mode overrides */
[data-theme="light"] .reseller-pricing-table td              { border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
[data-theme="light"] .reseller-pricing-table th:nth-child(2) { background: #f8fafc; color: #475569; }
[data-theme="light"] .reseller-pricing-table th:nth-child(3) { background: linear-gradient(135deg, #94a3b8, #64748b); color: #fff; }
[data-theme="light"] .reseller-pricing-table td:nth-child(2) { color: #64748b; }
[data-theme="light"] .reseller-pricing-table td:nth-child(3) { color: #475569; }
[data-theme="light"] .reseller-pricing-table td:nth-child(4) { color: #d97706; }
[data-theme="light"] .reseller-pricing-table td:nth-child(5) { color: #4f46e5; }

/* ── Reseller Feature Grid ── */
.reseller-all-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
    margin-top: 40px;
}

.raf-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.raf-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: var(--border-gold);
}

.raf-icon {
    color: #10b981;
    font-weight: 900;
    font-size: 1.2rem;
    margin-top: -2px;
}

.raf-text {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.4;
}

.raf-text strong {
    display: block;
    color: var(--heading-color);
    margin-bottom: 4px;
    font-weight: 700;
}

/* ── Tier Cards ── */
.reseller-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.tier-card {
    background: var(--navy-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    text-align: center;
    position: relative;
    transition: all var(--transition);
}

.tier-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-gold);
    box-shadow: var(--shadow-gold);
}

.tier-card.popular {
    border-color: var(--border-gold);
    background: linear-gradient(145deg, var(--navy-soft), rgba(245, 166, 35, 0.04));
}

.tier-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--navy);
    border-radius: 20px;
    padding: 4px 16px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.tier-name           { font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--heading-color); margin-bottom: 8px; }
.tier-discount       { font-family: 'Outfit', sans-serif; font-size: 3rem; font-weight: 900; color: var(--gold); line-height: 1; margin: 16px 0 4px; }
.tier-discount-label { font-size: .8rem; color: var(--text-dim); margin-bottom: 20px; }
.tier-min            { font-size: .82rem; color: var(--text-muted); padding: 10px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 16px 0; }
.tier-features-list  { text-align: left; margin-bottom: 24px; }
.tier-features-list li { font-size: .85rem; color: var(--text-muted); padding: 6px 0; display: flex; align-items: center; gap: 8px; }

/* ── How-It-Works Grid ── */
.reseller-how {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.how-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.how-step {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--navy);
    margin: 0 auto 16px;
    font-size: 1.1rem;
}

.how-card h3 { font-size: .95rem; font-weight: 700; color: var(--heading-color); margin-bottom: 8px; }
.how-card p  { font-size: .82rem; color: var(--text-muted); line-height: 1.6; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .reseller-tiers         { grid-template-columns: 1fr; }
    .reseller-how           { grid-template-columns: 1fr 1fr; }
    .reseller-all-features  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .reseller-all-features { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .reseller-how { grid-template-columns: 1fr; }
}
