/* =============================================
   MODERN & MINIMAL REDESIGN
   ============================================= */

/* CSS Custom Properties */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-subtle: rgba(99, 102, 241, 0.08);
    --accent: #10b981;
    --accent-light: #34d399;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --surface-3: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 50px -12px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-theme {
    --primary: #818cf8;
    --primary-dark: #6366f1;
    --primary-light: #a5b4fc;
    --primary-subtle: rgba(129, 140, 248, 0.1);
    --surface: #0f172a;
    --surface-2: #1e293b;
    --surface-3: #334155;
    --border: #334155;
    --border-light: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 50px -12px rgba(0, 0, 0, 0.6);
}

/* =============================================
   GLOBAL OVERRIDES
   ============================================= */
body {
    background: var(--surface) !important;
    color: var(--text-primary) !important;
    font-family: 'Inter', sofia pro, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Section common styles */
.section-header {
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    background: var(--primary-subtle);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-heading {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    background: none !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
}

.rounded-modern {
    border-radius: var(--radius-lg);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    line-height: 1.5;
    white-space: nowrap;
}

.btn-modern i {
    font-size: 14px;
}

.btn-modern .btn-arrow {
    transition: transform 0.2s ease;
}

.btn-modern:hover .btn-arrow {
    transform: translateX(3px);
}

.btn-primary-modern {
    background: var(--primary);
    color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.3);
}

.btn-primary-modern:hover {
    background: var(--primary-dark);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.btn-outline-modern {
    background: transparent;
    color: var(--text-primary) !important;
    border: 1.5px solid var(--border);
}

.btn-outline-modern:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
    background: var(--primary-subtle);
}

.btn-ghost-modern {
    background: transparent;
    color: var(--text-primary) !important;
    padding: 12px 20px;
}

.btn-ghost-modern:hover {
    background: var(--surface-2);
    color: var(--primary) !important;
}

.btn-sm-modern {
    padding: 8px 20px;
    font-size: 13px;
}

/* =============================================
   HEADER
   ============================================= */
.header-modern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.dark-theme .header-modern {
    background: rgba(15, 23, 42, 0.85);
    border-bottom-color: var(--border);
}

.header-modern .navbar {
    padding: 14px 0;
}

.header-modern .navbar-brand img {
    height: 36px;
}

.header-modern .navbar-toggler {
    border: none;
    padding: 6px;
    background: transparent;
    box-shadow: none !important;
}

.header-modern .navbar-toggler:focus {
    box-shadow: none;
}

.toggler-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition);
}

.nav-modern .nav-item {
    margin: 0 4px;
}

.nav-modern .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 14px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    letter-spacing: -0.2px;
}

.nav-modern .nav-link:hover {
    color: var(--primary) !important;
    background: var(--primary-subtle);
}

.nav-modern .nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-subtle);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-switcher {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.color-switcher:hover {
    background: var(--surface-2);
    color: var(--primary);
}

.color-switcher svg {
    height: 18px;
}

.color-switcher svg.dark-icon {
    display: inline-block;
}

.color-switcher svg.light-icon {
    display: none;
}

.dark-theme .color-switcher svg.dark-icon {
    display: none;
}

.dark-theme .color-switcher svg.light-icon {
    display: inline-block;
}

@media (max-width: 991px) {
    .header-modern {
        background: var(--surface);
    }
    .nav-modern .nav-item {
        margin: 2px 0;
    }
    .nav-actions {
        padding: 12px 0;
        flex-wrap: wrap;
    }
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    padding: 160px 0 100px 0;
    position: relative;
    overflow: hidden;
    background: var(--surface);
}

.hero-bg-gradient {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.dark-theme .hero-bg-gradient {
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
}

.min-vh-hero {
    min-height: 520px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-subtle);
    color: var(--primary);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-badge i {
    font-size: 12px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-avatars {
    display: flex;
}

.trust-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-subtle);
    border: 2px solid var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 12px;
    margin-left: -8px;
}

.trust-avatar:first-child {
    margin-left: 0;
}

.trust-text {
    font-size: 14px;
    color: var(--text-muted);
}

.trust-text strong {
    color: var(--text-primary);
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
}

.hero-main-img {
    width: 100%;
    border-radius: var(--radius-xl);
}

.hero-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.hero-float-card.card-1 {
    bottom: 20%;
    left: -20px;
}

.hero-float-card.card-2 {
    top: 15%;
    right: -10px;
}

.float-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.float-icon.green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.float-icon.blue {
    background: var(--primary-subtle);
    color: var(--primary);
}

.float-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.float-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

@media (max-width: 991px) {
    .hero-section {
        padding: 130px 0 60px 0;
    }
    .hero-title {
        font-size: 38px;
    }
    .hero-description {
        font-size: 16px;
    }
    .hero-visual {
        margin-top: 40px;
    }
    .hero-float-card {
        display: none;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 32px;
        letter-spacing: -1px;
    }
}

/* =============================================
   PLANS SECTION
   ============================================= */
.plans-section {
    padding: 100px 0;
    background: var(--surface-2);
}

.plan-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.plan-featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.plan-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.plan-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-icon {
    margin-bottom: 16px;
}

.plan-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.plan-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.plan-rate {
    margin-bottom: 24px;
}

.rate-value {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.rate-period {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-details {
    flex: 1;
    margin-bottom: 20px;
}

.plan-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.plan-detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 13px;
    color: var(--text-muted);
}

.detail-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.detail-value.highlight {
    color: var(--primary);
    font-weight: 700;
}

.detail-value i {
    font-size: 14px;
    margin-right: 4px;
}

.plan-holidays {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding: 8px;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
}

/* =============================================
   STATS SECTION
   ============================================= */
.stats-section {
    padding: 80px 0;
    background: var(--surface);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 24px;
    background: var(--surface-2);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.stat-icon {
    flex-shrink: 0;
}

.stat-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =============================================
   FAQ SECTION
   ============================================= */
.faq-section {
    padding: 100px 0;
    background: var(--surface);
}

.faq-modern .faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-modern .faq-item:hover {
    border-color: var(--primary);
}

.faq-header {
    margin-bottom: 0;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    color: var(--text-primary);
    box-shadow: none !important;
}

.faq-question::after {
    display: none !important;
}

.faq-question:not(.collapsed) {
    background: var(--primary-subtle);
}

.faq-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
}

.faq-question:not(.collapsed) .faq-number {
    background: var(--primary);
    color: #fff;
}

.faq-title {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-toggle {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: var(--transition);
}

.faq-toggle .vertical {
    transition: var(--transition);
}

.faq-question:not(.collapsed) .faq-toggle .vertical {
    opacity: 0;
    transform: rotate(90deg);
}

.faq-answer {
    padding: 0 24px 20px 72px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

@media (max-width: 575px) {
    .faq-answer {
        padding-left: 24px;
    }
}

/* =============================================
   FEATURES / WHY CHOOSE US
   ============================================= */
.features-section {
    padding: 100px 0;
    background: var(--surface-2);
}

.features-image img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.features-content .section-header {
    text-align: left;
}

.feature-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    margin-bottom: 8px;
}

.feature-item:hover {
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-subtle);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 20px;
}

.feature-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.feature-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

/* =============================================
   HOW IT WORKS
   ============================================= */
.howitworks-section {
    padding: 100px 0;
    background: var(--surface);
}

.step-card {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    height: 100%;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.step-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 12px;
}

.step-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-bottom: 16px;
}

.step-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
    padding: 60px 0;
    background: var(--surface-2);
}

.cta-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 56px 48px;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 50%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0;
    line-height: 1.3;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cta-actions .btn-primary-modern {
    background: #fff;
    color: var(--primary-dark) !important;
    box-shadow: none;
}

.cta-actions .btn-primary-modern:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-1px);
}

.cta-actions .btn-outline-modern {
    border-color: rgba(255,255,255,0.3);
    color: #fff !important;
}

.cta-actions .btn-outline-modern:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

@media (max-width: 991px) {
    .cta-card {
        padding: 40px 28px;
        text-align: center;
    }
    .cta-title {
        font-size: 24px;
        margin-bottom: 24px;
    }
    .cta-actions {
        justify-content: center;
    }
}

/* =============================================
   GATEWAY / PAYMENT LOGOS
   ============================================= */
.gateway-section {
    padding: 80px 0;
    background: var(--surface);
}

.gateway-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.gateway-logo-item {
    flex: 0 0 auto;
    padding: 16px 24px;
    background: var(--surface-2);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.gateway-logo-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.gateway-logo-item img {
    height: 36px;
    object-fit: contain;
    filter: grayscale(0.3);
    transition: var(--transition);
}

.gateway-logo-item:hover img {
    filter: grayscale(0);
}

/* =============================================
   NEWSLETTER
   ============================================= */
.newsletter-section {
    padding: 80px 0;
    background: var(--surface-2);
}

.newsletter-card {
    text-align: center;
    padding: 56px 40px;
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
}

.newsletter-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.newsletter-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.newsletter-input-group {
    display: flex;
    gap: 8px;
    max-width: 460px;
    margin: 0 auto;
}

.newsletter-input-group input {
    flex: 1;
    padding: 12px 20px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

.newsletter-input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

@media (max-width: 575px) {
    .newsletter-input-group {
        flex-direction: column;
    }
}

/* =============================================
   RECENT TRANSACTIONS
   ============================================= */
.recent-section {
    padding: 100px 0;
    background: var(--surface-2);
}

.modern-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
}

.modern-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

.modern-card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0;
}

.modern-card-body {
    padding: 8px 24px;
}

.txn-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.txn-row:last-child {
    border-bottom: none;
}

.txn-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.txn-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--primary-subtle);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.txn-avatar.withdraw {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.txn-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.txn-date {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.txn-amount {
    text-align: right;
}

.txn-profit {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.txn-invested, .txn-status {
    display: block;
    font-size: 12px;
}

.txn-invested {
    color: var(--text-muted);
}

.badge-success {
    color: #10b981;
}

.badge-failed {
    color: #ef4444;
}

.badge-pending {
    color: #f59e0b;
}

/* =============================================
   CALCULATOR
   ============================================= */
.calculator-section {
    padding: 100px 0;
    background: var(--surface);
}

.calculator-visual {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.calculator-visual img {
    width: 100%;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    color: #fff;
    background: var(--primary-dark);
}

.calculator-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.calc-field {
    margin-bottom: 20px;
}

.calc-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calc-field .form-control {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 10px 16px;
    font-size: 14px;
    transition: var(--transition);
}

.calc-field .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

.calc-field .input-group-text {
    background: var(--surface-3);
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    font-weight: 600;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* =============================================
   BLOG
   ============================================= */
.blog-section {
    padding: 100px 0;
    background: var(--surface-2);
}

.blog-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.blog-thumb {
    position: relative;
    overflow: hidden;
}

.blog-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-thumb img {
    transform: scale(1.05);
}

.blog-date {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--surface);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.blog-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.blog-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.blog-title a:hover {
    color: var(--primary);
}

.blog-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.blog-read-more:hover {
    color: var(--primary-dark);
    gap: 10px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer-modern {
    background: var(--surface-2);
    border-top: 1px solid var(--border);
}

.dark-theme .footer-modern {
    background: #0b1120;
}

.footer-top {
    padding: 64px 0 40px;
}

.footer-logo img {
    height: 36px;
    margin-bottom: 16px;
}

.footer-about {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 8px;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-3);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    color: #fff;
}

.footer-widget-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid var(--border);
}

.copyright {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 0;
    text-align: center;
}

/* =============================================
   PAGE HEAD OVERRIDE
   ============================================= */
.page-head {
    padding: 160px 0 60px 0;
    background: var(--surface-2);
}

.page-head h2 {
    color: var(--text-primary);
    font-size: 32px;
    font-weight: 700;
}

/* =============================================
   UTILITY OVERRIDES
   ============================================= */
.text-success { color: #10b981 !important; }
.text-danger { color: #ef4444 !important; }
.text-muted { color: var(--text-muted) !important; }

/* Nice select override */
.site-nice-select, .nice-select {
    background: var(--surface) !important;
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-primary) !important;
    font-size: 14px !important;
    height: auto !important;
    padding: 10px 16px !important;
    width: 100% !important;
}

.nice-select .list {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--shadow-lg) !important;
}

.nice-select .list li {
    color: var(--text-primary) !important;
}

.nice-select .list li:hover {
    background: var(--primary-subtle) !important;
    color: var(--primary) !important;
}

/* =============================================
   RESPONSIVE FINE-TUNING
   ============================================= */
@media (max-width: 767px) {
    .section-heading {
        font-size: 28px;
    }
    .section-header {
        margin-bottom: 40px;
    }
    .plans-section, .faq-section, .features-section, .howitworks-section,
    .recent-section, .calculator-section, .blog-section {
        padding: 60px 0;
    }
}
