/* ===== RESET & VARIABLES ===== */
:root {
    /* Ana Renkler - Modern Tema */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    
    /* Arka Plan Renkleri */
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #2d3a4f;
    --bg-sidebar: #151f2f;
    --bg-input: #334155;
    
    /* Metin Renkleri */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-inverse: #0f172a;
    
    /* Durum Renkleri */
    --success: #22c55e;
    --success-light: #86efac;
    --warning: #f59e0b;
    --warning-light: #fcd34d;
    --error: #ef4444;
    --error-light: #fca5a5;
    --info: #3b82f6;
    
    /* Gradyanlar */
    --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
    --gradient-secondary: linear-gradient(135deg, #10b981, #34d399);
    --gradient-accent: linear-gradient(135deg, #f59e0b, #fbbf24);
    --gradient-dark: linear-gradient(135deg, #1e293b, #0f172a);
    
    /* Kenarlıklar */
    --border-light: 1px solid rgba(255, 255, 255, 0.1);
    --border-hover: 1px solid rgba(255, 255, 255, 0.2);
    --border-focus: 2px solid var(--primary-light);
    
    /* Gölgeler */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.7);
    
    /* Animasyonlar (SADECE HOVER'DA) */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    /* Fontlar */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Monaco', 'Menlo', monospace;
    
    /* Boyutlar */
    --container-max: 1280px;
    --header-height: 70px;
    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-full: 9999px;
}

/* Light Mode */
@media (prefers-color-scheme: light) {
    :root {
        --bg-dark: #f8fafc;
        --bg-card: #ffffff;
        --bg-card-hover: #f1f5f9;
        --bg-sidebar: #f1f5f9;
        --bg-input: #ffffff;
        --text-primary: #0f172a;
        --text-secondary: #334155;
        --text-muted: #64748b;
        --border-light: 1px solid rgba(0, 0, 0, 0.1);
        --border-hover: 1px solid rgba(0, 0, 0, 0.2);
    }
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-full);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: var(--border-radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--border-radius-full);
    border: 3px solid var(--bg-card);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding: 0.5rem 0;
    transition: all var(--transition-fast);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--primary-light);
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-outline, .btn-ghost {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid transparent;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-light);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: var(--border-radius-sm);
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-input);
    border: var(--border-light);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: all var(--transition-fast);
}

.form-input:hover, .form-select:hover, .form-textarea:hover {
    border-color: var(--primary-light);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* ===== AUTH PAGES ===== */
.auth-body {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-2xl);
    border: var(--border-light);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.auth-header h1 {
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-header p {
    color: var(--text-muted);
}

/* Password Strength */
.password-strength {
    height: 6px;
    background: var(--bg-input);
    border-radius: var(--border-radius-full);
    margin-top: 0.75rem;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s;
    border-radius: var(--border-radius-full);
}

.password-requirements {
    list-style: none;
    margin-top: 0.75rem;
    font-size: 0.875rem;
}

.password-requirements li {
    color: var(--text-muted);
    margin-bottom: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.password-requirements li::before {
    content: '❌';
    font-size: 0.75rem;
}

.password-requirements li.valid {
    color: var(--success);
}

.password-requirements li.valid::before {
    content: '✅';
}

/* ===== TOAST MESSAGES ===== */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-md);
    color: white;
    font-weight: 500;
    z-index: 9999;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 350px;
}

.toast.success {
    background: linear-gradient(135deg, var(--success), #16a34a);
}

.toast.error {
    background: linear-gradient(135deg, var(--error), #dc2626);
}

.toast.warning {
    background: linear-gradient(135deg, var(--warning), #d97706);
}

.toast.info {
    background: linear-gradient(135deg, var(--info), #2563eb);
}

.toast.success::before {
    content: '✅';
}

.toast.error::before {
    content: '❌';
}

/* ===== HERO SECTION ===== */
.hero {
    text-align: center;
    padding: 6rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 6rem 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    border: var(--border-light);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.feature-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap var(--transition-fast);
}

.feature-link:hover {
    gap: 1rem;
}

.coming-soon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-accent);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: var(--border-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===== PRICING SECTION ===== */
.pricing {
    padding: 6rem 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
    background: linear-gradient(180deg, transparent 0%, var(--bg-card) 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    position: relative;
    transition: all var(--transition-fast);
    border: var(--border-light);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 1.5rem;
    border-radius: var(--border-radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}

.pricing-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 1rem 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    -webkit-text-fill-color: var(--text-muted);
}

.pricing-card ul {
    list-style: none;
    margin: 2rem 0;
    flex: 1;
}

.pricing-card li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-card li::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
    font-size: 1.1rem;
}

/* ===== DASHBOARD ===== */
.dashboard {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2rem;
}

.credit-widget {
    background: var(--bg-card);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: var(--border-light);
}

.credit-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.credit-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.credit-add {
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.25rem;
    transition: transform var(--transition-fast);
}

.credit-add:hover {
    transform: scale(1.1);
}

/* Stats Cards */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: var(--border-light);
    transition: all var(--transition-fast);
}

.stat-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-info {
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.dashboard-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: var(--border-light);
}

.dashboard-card h3 {
    margin-bottom: 1rem;
}

/* Tool Buttons */
.tool-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--bg-card-hover);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    border: var(--border-light);
}

.tool-btn span {
    font-size: 2rem;
}

.tool-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Content List */
.content-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.content-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-card-hover);
    border-radius: 8px;
    border: var(--border-light);
}

/* Transaction List */
.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-card-hover);
    border-radius: 8px;
    border: var(--border-light);
}

.transaction-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.transaction-type {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.transaction-type.purchase {
    background: var(--success);
}

.transaction-type.usage {
    background: var(--primary);
}

.transaction-amount {
    font-weight: 600;
}

.transaction-amount.positive {
    color: var(--success);
}

.transaction-amount.negative {
    color: var(--error);
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-sidebar);
    margin-top: auto;
    padding: 4rem 2rem 2rem;
    border-top: var(--border-light);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-section p {
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-section a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: var(--border-light);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .credit-info {
        flex-direction: column;
        gap: 1rem;
        border-radius: var(--border-radius-lg);
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .tool-page {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
}