/* Reseller Page - Modern Professional Design */
:root {
    /* Modern Color Palette */
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --secondary-color: #7209b7;
    --accent-color: #f72585;
    --success-color: #4cc9f0;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    --gradient-secondary: linear-gradient(135deg, #7209b7 0%, #3a0ca3 100%);
    --gradient-accent: linear-gradient(135deg, #f72585 0%, #b5179e 100%);
    
    /* Neutral Colors */
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --dark-border: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* Reset & Base Styles */
.reseller-page {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.reseller-page * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.reseller-page .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
.reseller-page h1, 
.reseller-page h2, 
.reseller-page h3, 
.reseller-page h4 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.reseller-page h1 {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reseller-page h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.reseller-page h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.reseller-page h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.reseller-page p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Styles */
.reseller-page section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Premium Card */
.premium-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.premium-card:hover::before {
    opacity: 1;
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top, rgba(67, 97, 238, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: var(--gradient-accent);
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-content h1 {
    margin-bottom: 25px;
    font-size: 3.5rem;
}

.hero-content .subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--text-secondary);
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-preview {
    width: 100%;
    max-width: 500px;
    background: linear-gradient(135deg, #1a1f3a 0%, #0f1429 100%);
    border-radius: var(--radius-xl);
    padding: 30px;
    border: 1px solid rgba(67, 97, 238, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.dashboard-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(67, 97, 238, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-dots {
    display: flex;
    gap: 8px;
}

.dashboard-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f57;
}

.dashboard-dots span:nth-child(2) {
    background: #ffbd2e;
}

.dashboard-dots span:nth-child(3) {
    background: #28ca42;
}

.metric {
    background: rgba(30, 41, 59, 0.8);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    border: 1px solid var(--dark-border);
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
    gap: 10px;
}

.primary-btn {
    background: var(--gradient-primary);
    color: white;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.secondary-btn {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--dark-border);
}

.secondary-btn:hover {
    border-color: var(--primary-color);
    background: rgba(67, 97, 238, 0.1);
}

/* Tabs */
.tabs-container {
    margin-top: 40px;
}

.tabs-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.tabs-content {
    position: relative;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-icon {
    width: 60px;
    height: 60px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.tab-features {
    list-style: none;
    margin-top: 20px;
}

.tab-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.tab-features li i {
    color: var(--success-color);
}

/* Why Us Section */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-card {
    text-align: center;
    padding: 40px 30px;
}

.card-icon {
    margin-bottom: 25px;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: white;
}

.card-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--dark-border);
}

.tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

/* How It Works */
.how-it-works {
    background: linear-gradient(180deg, var(--dark-bg) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.steps-container {
    max-width: 800px;
    margin: 60px auto 0;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    bottom: 40px;
    right: 40px;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
}

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
}

.step-number {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    position: relative;
    z-index: 1;
}

.step-content {
    flex: 1;
    text-align: right;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.step-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Pricing Tiers */
.tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.tier-card {
    text-align: center;
    position: relative;
}

.tier-card.featured {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-accent);
    color: white;
    padding: 8px 24px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 2;
}

.tier-header {
    margin-bottom: 25px;
}

.tier-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 10px;
}

.tier-badge.starter {
    background: rgba(76, 201, 240, 0.1);
    color: var(--success-color);
}

.tier-badge.popular {
    background: rgba(247, 37, 133, 0.1);
    color: var(--accent-color);
}

.tier-badge.premium {
    background: rgba(114, 9, 183, 0.1);
    color: var(--secondary-color);
}

.tier-users {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.tier-price {
    margin-bottom: 25px;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.price-period {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.tier-discount {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 30px;
}

.discount-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1.25rem;
}

.discount-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.tier-features {
    list-style: none;
    margin: 30px 0;
    text-align: right;
}

.tier-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--dark-border);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.tier-features li i {
    color: var(--success-color);
}

.tier-features li:last-child {
    border-bottom: none;
}

.tier-button {
    display: block;
    width: 100%;
    padding: 18px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-fast);
    margin-top: 20px;
}

.tier-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.featured-btn {
    background: var(--gradient-accent);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    padding: 30px;
    text-align: right;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

/* FAQ */
.faq-grid {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    margin-bottom: 15px;
    cursor: pointer;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.faq-toggle {
    color: var(--primary-color);
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
    padding: 0 30px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 25px;
}

.faq-answer p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Final CTA */
.final-cta {
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.cta-button.large {
    padding: 20px 40px;
    font-size: 1.125rem;
}

.cta-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.cta-note i {
    color: var(--success-color);
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .reseller-page h1 {
        font-size: 3rem;
    }
    
    .tiers-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .tier-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .steps-container::before {
        display: none;
    }
    
    .step-card {
        flex-direction: column;
        text-align: center;
    }
    
    .step-content {
        text-align: center;
    }
    
    .step-header {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .reseller-page section {
        padding: 80px 0;
    }
    
    .reseller-page h1 {
        font-size: 2.5rem;
    }
    
    .reseller-page h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .tabs-nav {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .info-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-cta,
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-button {
        width: 100%;
    }
    
    .dashboard-preview {
        padding: 20px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .reseller-page .container {
        padding: 0 15px;
    }
    
    .reseller-page h1 {
        font-size: 2rem;
    }
    
    .reseller-page h2 {
        font-size: 1.75rem;
    }
    
    .premium-card {
        padding: 30px 20px;
    }
    
    .tier-price .price-amount {
        font-size: 2.5rem;
    }
}

/* Print Styles */
@media print {
    .reseller-page {
        background: white !important;
        color: black !important;
    }
    
    .premium-card {
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
    
    .cta-button,
    .hero-visual,
    .faq-toggle {
        display: none !important;
    }
}