/* ZaMineX - Main Stylesheet */

/* CSS Variables */
:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #3B82F6;
    --secondary: #0F172A;
    --accent: #F59E0B;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    
    --white: #FFFFFF;
    --black: #000000;
    
    --gradient-primary: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    --gradient-dark: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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);
    
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--gradient-dark);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-dashboard {
    background: var(--gradient-dark);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white);
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
}

/* Navigation */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: var(--gray-300);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
    transition: color var(--transition-fast);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--white);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-fast);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.23);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--gray-600);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--secondary);
    border-color: var(--white);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-full);
    color: var(--white);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.user-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-menu-toggle .avatar {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    overflow: hidden;
}

.user-menu-toggle .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 100;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--gray-700);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.user-dropdown a:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.user-dropdown a.logout {
    color: var(--danger);
}

.user-dropdown a.logout:hover {
    background: #FEF2F2;
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 8px 0;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition-fast);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--secondary);
    z-index: 999;
    padding: 30px 20px;
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu nav ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu nav a {
    color: var(--gray-300);
    font-size: 1.1rem;
    font-weight: 500;
}

.mobile-menu nav a:hover {
    color: var(--white);
}

.mobile-actions {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Flash Messages */
.flash-message {
    padding: 15px 0;
    font-weight: 500;
}

.flash-message .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.flash-success {
    background: #D1FAE5;
    color: #065F46;
}

.flash-error {
    background: #FEE2E2;
    color: #991B1B;
}

.flash-warning {
    background: #FEF3C7;
    color: #92400E;
}

.flash-info {
    background: #DBEAFE;
    color: #1E40AF;
}

.flash-message button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    background: var(--gradient-dark);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-bg.png') center/cover;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 span {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray-400);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
}

.hero-stat-label {
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-top: 5px;
}

/* Section Styles */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 15px;
}

.section-title span {
    color: var(--primary);
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray-500);
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.plan-card {
    background: var(--gradient-dark);
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-normal);
}

.plan-card:hover {
    transform: translateY(-5px);
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--plan-color, var(--primary));
}

.plan-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.plan-image {
    width: 100%;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.plan-image img {
    max-height: 120px;
    object-fit: contain;
}

.plan-icon {
    width: 80px;
    height: 80px;
    background: var(--plan-color, var(--primary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 5px;
}

.plan-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-400);
}

.plan-btn {
    width: 100%;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 14px;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: 20px;
}

.plan-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.plan-features {
    list-style: none;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-400);
    font-size: 0.9rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li i {
    color: var(--plan-color, var(--primary));
}

/* Calculator Section */
.calculator-section {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 60px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.calculator-form h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--gray-900);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 10px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--gray-700);
    transition: border-color var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.range-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}

.calculator-result {
    background: var(--gradient-dark);
    border-radius: var(--radius-lg);
    padding: 40px;
    color: var(--white);
}

.result-label {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-bottom: 5px;
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 25px;
}

.result-value.success {
    color: var(--success);
}

/* Stats Section */
.stats-section {
    background: var(--gradient-dark);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-card {
    text-align: center;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0 auto 20px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray-400);
}

/* Recent Withdrawals */
.recent-withdrawals {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.recent-withdrawals h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--gray-900);
}

.withdrawal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-100);
}

.withdrawal-item:last-child {
    border-bottom: none;
}

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

.withdrawal-avatar {
    width: 40px;
    height: 40px;
    background: var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--gray-600);
}

.withdrawal-info h4 {
    font-size: 0.95rem;
    color: var(--gray-700);
}

.withdrawal-info span {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.withdrawal-amount {
    font-weight: 700;
    color: var(--success);
}

/* Auth Pages */
.auth-section {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 50px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-xl);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header .logo {
    justify-content: center;
    color: var(--secondary);
    margin-bottom: 20px;
}

.auth-header h1 {
    font-size: 1.75rem;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--gray-500);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-control {
    padding: 16px 20px;
}

.auth-form .btn {
    width: 100%;
    padding: 16px;
    margin-top: 10px;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-200);
}

.auth-footer p {
    color: var(--gray-500);
}

.auth-footer a {
    font-weight: 600;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.forgot-link {
    font-size: 0.9rem;
}

.error-message {
    background: #FEE2E2;
    color: #991B1B;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background: var(--gradient-dark);
    padding: 80px 0 30px;
    color: var(--gray-300);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: var(--gray-400);
}

.footer-contact a,
.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-300);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-contact i {
    color: var(--primary);
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--gray-400);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--gray-500);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
}

/* Chat Button */
.chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
    transition: all var(--transition-fast);
}

.chat-toggle:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .calculator-section {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav,
    .header-actions .btn-outline {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .auth-card {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .calculator-section {
        padding: 30px;
    }
}

/* Premium Crypto SaaS Theme Overrides */
:root {
    --primary: #2f7cff;
    --primary-dark: #1d5dde;
    --primary-light: #55a6ff;
    --secondary: #07122b;
    --accent: #10d4b2;
    --success: #24d38a;
    --warning: #f7b84b;
    --danger: #ff5d78;
    --info: #54a7ff;

    --gray-50: #f4f8ff;
    --gray-100: #e8f0ff;
    --gray-200: #cfdbf4;
    --gray-300: #adc0e3;
    --gray-400: #7f97c0;
    --gray-500: #55709a;
    --gray-600: #324d78;
    --gray-700: #1c3153;
    --gray-800: #10233f;
    --gray-900: #09162e;

    --gradient-primary: linear-gradient(135deg, #2f7cff 0%, #36c4ff 100%);
    --gradient-dark: linear-gradient(140deg, #07122b 0%, #0c2347 60%, #0f2a55 100%);

    --font-family: 'Manrope', 'Segoe UI', sans-serif;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 6px 16px rgba(5, 13, 32, 0.07);
    --shadow-md: 0 14px 30px rgba(6, 16, 40, 0.12);
    --shadow-lg: 0 26px 60px rgba(6, 16, 40, 0.15);
    --shadow-xl: 0 34px 80px rgba(7, 19, 45, 0.2);
}

body {
    font-family: var(--font-family);
    color: var(--gray-700);
    background:
        radial-gradient(circle at 5% -10%, rgba(62, 140, 255, 0.2), transparent 35%),
        radial-gradient(circle at 95% 0%, rgba(20, 212, 178, 0.14), transparent 30%),
        var(--gray-50);
}

h1, h2, h3, h4, h5, h6,
.logo-text,
.section-title,
.hero h1 {
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1320px;
    padding: 0 24px;
}

.header {
    padding: 12px 0;
    background: rgba(8, 20, 44, 0.86);
    border-bottom: 1px solid rgba(109, 147, 207, 0.22);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 32px rgba(2, 9, 28, 0.34);
}

.header-dashboard {
    background: rgba(8, 20, 44, 0.9);
}

.logo {
    gap: 12px;
    font-size: 1.35rem;
    font-weight: 700;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(117, 171, 255, 0.5);
    box-shadow: 0 12px 26px rgba(23, 103, 255, 0.35);
}

.main-nav a {
    color: #d4e5ff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.main-nav a::after {
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2f7cff, #36c4ff);
}

.btn {
    min-height: 44px;
    padding: 11px 22px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    box-shadow: 0 14px 28px rgba(26, 119, 255, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1f69ea 0%, #25b3ee 100%);
    box-shadow: 0 20px 34px rgba(25, 103, 214, 0.4);
}

.btn-outline {
    border: 1px solid rgba(185, 207, 244, 0.55);
    color: #e4efff;
    background: rgba(255, 255, 255, 0.02);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(214, 230, 255, 0.85);
    color: #ffffff;
}

.card,
.auth-card,
.calculator-section,
.section .card {
    border: 1px solid rgba(151, 178, 224, 0.28);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
}

.card {
    overflow: hidden;
}

.form-control {
    border-radius: 12px;
    border: 1px solid #b8cdef;
    background: #f9fbff;
    min-height: 46px;
    font-size: 0.96rem;
    color: var(--gray-800);
}

.form-control:focus {
    border-color: #2f7cff;
    box-shadow: 0 0 0 4px rgba(47, 124, 255, 0.16);
    background: #ffffff;
}

.hero,
.section {
    position: relative;
}

.hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    line-height: 1.08;
}

.hero p {
    font-size: 1.05rem;
    color: #d4e6ff;
}

.section {
    padding: 84px 0;
}

.section-title {
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    margin-bottom: 10px;
}

.plan-card,
.plan-card-large {
    border: 1px solid rgba(122, 167, 238, 0.28);
    border-radius: 22px;
    box-shadow: 0 24px 48px rgba(4, 16, 40, 0.3);
}

.plan-card {
    background:
        radial-gradient(circle at 50% 0%, rgba(71, 139, 255, 0.22), transparent 45%),
        linear-gradient(165deg, #071a37 0%, #0a2146 60%, #0b2650 100%);
}

.plan-card-large {
    background: linear-gradient(165deg, #ffffff 0%, #f6f9ff 100%);
}

.plans-grid,
.plans-page-grid {
    gap: 24px;
}

.plan-image {
    height: 170px;
    border: 1px solid rgba(140, 180, 244, 0.24);
    background: radial-gradient(circle at center, rgba(47, 124, 255, 0.2), rgba(11, 33, 70, 0.04));
}

.plan-card .btn,
.plan-card-large .btn {
    border-radius: 999px;
}

.footer {
    background: linear-gradient(150deg, #081736 0%, #0d2a56 100%);
    border-top: 1px solid rgba(130, 175, 245, 0.2);
}

.footer .logo-icon {
    box-shadow: 0 10px 22px rgba(34, 107, 235, 0.35);
}

.footer-column h4,
.footer-description,
.footer-contact,
.footer-bottom {
    color: #ccddf8;
}

.footer-column a,
.social-links a {
    color: #e9f2ff;
}

.chat-toggle {
    background: linear-gradient(135deg, #2f7cff 0%, #31c3ff 100%);
    box-shadow: 0 20px 34px rgba(17, 103, 237, 0.35);
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header-content {
        gap: 16px;
    }

    .hero {
        padding: 48px 0;
    }

    .card,
    .auth-card {
        border-radius: 16px;
    }
}
