/* ============================================
   SAAS APPLICATION - MAIN STYLESHEET
   Dark Theme with Purple Accents
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --bg-input: #252525;
    --bg-hover: #2a2a2a;

    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;

    --accent-primary: #a855f7;
    --accent-secondary: #6366f1;
    --accent-gradient: linear-gradient(135deg, #a855f7, #6366f1);

    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    --border-color: #333333;
    --border-light: #444444;

    /* Sizing */
    --header-height: 64px;
    --sidebar-width: 260px;
    --container-max: 1200px;
    --border-radius: 12px;
    --border-radius-sm: 8px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(168, 85, 247, 0.3);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-secondary);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    height: var(--header-height);
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 1.5rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-link-primary {
    background: var(--accent-gradient);
    color: white !important;
}

.nav-link-primary:hover {
    opacity: 0.9;
    box-shadow: var(--shadow-glow);
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    color: var(--text-primary);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    min-width: 200px;
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    border-radius: var(--border-radius-sm);
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.dropdown-item-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.dropdown-item-admin {
    color: var(--accent-primary);
}

.dropdown-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0.5rem 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    margin-top: auto;
    padding: 2rem 1.5rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-copyright {
    width: 100%;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    flex: 1;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: var(--shadow-glow);
    color: white;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.btn-full {
    width: 100%;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-link {
    background: none;
    color: var(--accent-primary);
    padding: 0.5rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.813rem;
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.form-link {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.form-terms {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
}

.alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-container {
    min-height: calc(100vh - var(--header-height) - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.auth-switch {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.auth-switch a {
    margin-left: 0.25rem;
    font-weight: 500;
}

/* Result Cards */
.auth-card-result {
    text-align: center;
}

.result-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
}

.result-success {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.result-error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.result-pending {
    background: rgba(59, 130, 246, 0.2);
}

/* ============================================
   ADMIN LAYOUT
   ============================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    position: fixed;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 90;
    height: 100vh;
}

.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    width: 100%;
}

.admin-nav .active {
    background: rgba(168, 85, 247, 0.2);
    color: var(--accent-primary);
    border-radius: var(--border-radius-sm);
}

.admin-nav a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.25rem;
    transition: all var(--transition-fast);
}

.admin-nav a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - var(--header-height));
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    overflow-y: auto;
    z-index: 90;
    padding: 1.5rem 1rem;
}

.sidebar-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
    font-weight: 600;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: var(--text-secondary);
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.25rem;
    transition: all var(--transition-fast);
}

.sidebar-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.sidebar-link.active {
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent-primary);
    font-weight: 500;
}

.sidebar-link-primary {
    background: var(--accent-gradient);
    color: white !important;
    margin-top: 0.5rem;
}

.sidebar-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0.5rem 0;
}

.dashboard-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    width: 100%;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.stat-icon {
    font-size: 2rem;
}

.stat-content h3 {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

.stat-sub {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.text-error {
    color: var(--error);
}

/* Upgrade Banner */
.upgrade-banner {
    background: var(--accent-gradient);
    border-radius: var(--border-radius);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.upgrade-content h2 {
    margin-bottom: 0.25rem;
}

.upgrade-content p {
    margin-bottom: 0;
    opacity: 0.9;
}

/* ============================================
   TABLES
   ============================================ */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.875rem;
}

.data-table tbody tr:hover {
    background: var(--bg-hover);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 50px;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.badge-failure,
.badge-error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.badge-pending {
    background: rgba(59, 130, 246, 0.2);
    color: var(--info);
}

.badge-trial {
    background: rgba(168, 85, 247, 0.2);
    color: var(--accent-primary);
}

.badge-subscribed {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.pagination-info {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-message {
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================
   PROFILE
   ============================================ */
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.profile-info h2 {
    margin-bottom: 0.25rem;
}

.profile-info p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.info-list {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item dt {
    color: var(--text-muted);
}

/* ============================================
   PAYMENT
   ============================================ */
.payment-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.payment-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.payment-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-details {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.plan-price {
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-price .price {
    font-size: 3rem;
    font-weight: 700;
}

.plan-price .currency {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.plan-price .period {
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
}

.plan-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.plan-features .check {
    color: var(--success);
    font-weight: bold;
}

.checkout-form h3 {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.payment-secure {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

.iyzico-form {
    margin-top: 1rem;
}

/* ============================================
   RESULT PAGES
   ============================================ */
.result-container {
    min-height: calc(100vh - var(--header-height) - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    max-width: 500px;
}

.result-card .result-icon {
    width: 100px;
    height: 100px;
    font-size: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.result-success-card .result-icon {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.result-error-card .result-icon {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.result-details {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: left;
}

.result-details ul {
    margin-left: 1rem;
    color: var(--text-secondary);
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* ============================================
   HOME PAGE
   ============================================ */
.home-hero {
    text-align: center;
    padding: 6rem 1.5rem;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Features */
.features {
    padding: 5rem 1.5rem;
    background: var(--bg-secondary);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: transform var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Pricing */
.pricing {
    padding: 5rem 1.5rem;
}

.pricing h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: transform 0.2s, border-color 0.2s;
}

.pricing-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.pricing-card.popular {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-header h3 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.pricing-price {
    margin-bottom: 2rem;
}

.pricing-price .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pricing-price .currency {
    color: var(--text-muted);
}

.pricing-price .period {
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

/* Blog Section */
.blog-section {
    padding: 4rem 0;
    background-color: var(--bg-secondary);
}

.blog-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}

.blog-slide {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s;
    display: block;
}

.blog-slide:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.blog-slide h3 {
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    line-height: 1.4;
}

.blog-slide p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.blog-placeholder {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.blog-slider::-webkit-scrollbar {
    height: 8px;
}

.blog-slider::-webkit-scrollbar-track {
    background: var(--bg-input);
    border-radius: 4px;
}

.blog-slider::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.legal-content h1 {
    margin-bottom: 0.5rem;
}

.legal-updated {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.legal-content section {
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.legal-content ul {
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* ============================================
   PAYWALL
   ============================================ */
.paywall-container {
    min-height: calc(100vh - var(--header-height) - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.paywall-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    max-width: 500px;
}

.paywall-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.paywall-info {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    margin: 1.5rem 0;
}

.paywall-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.paywall-features {
    text-align: left;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    margin-top: 1.5rem;
}

.paywall-features h3 {
    margin-bottom: 1rem;
}

.paywall-features ul {
    list-style: none;
}

.paywall-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

/* ============================================
   CHARTS & WIDGETS
   ============================================ */
.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.chart-card h3 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.search-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-input {
    flex: 1;
    max-width: 300px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 10px 12px;
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: var(--accent-primary);
    outline: none;
}

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.admin-sidebar h2 {
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.admin-nav a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.25rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.admin-nav a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.admin-nav a.active {
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent-primary);
}

.admin-main {
    flex: 1;
    margin-left: 250px;
    padding: 2rem;
    background: var(--bg-primary);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* Admin Stats & Charts */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.stat-box h3 {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.stat-box .value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-box .value.success {
    color: var(--success);
}

.stat-box .value.warning {
    color: var(--warning);
}

.stat-box .value.info {
    color: var(--info);
}

.stat-box .value.purple {
    color: var(--accent-primary);
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

/* Admin Settings */
.settings-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.settings-tabs button {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.settings-tabs button.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.settings-tabs button:hover:not(.active) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.settings-section {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.settings-section.active {
    display: block;
}

.settings-section h3 {
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 40px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.code-badge {
    background: rgba(168, 85, 247, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--accent-primary);
    font-family: monospace;
    font-size: 0.9em;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   PRICING PLANS
   ============================================ */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.plan-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    position: relative;
    color: var(--text-primary);
}

.plan-card:hover {
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.15);
}

.plan-card.popular {
    border-color: var(--accent-primary);
}

.plan-card.popular::before {
    content: 'Popüler';
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #ec4899 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-card h3 {
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.plan-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.plan-card .price .currency {
    font-size: 1.25rem;
    opacity: 0.8;
}

.plan-card .period {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.plan-card .description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.plan-card .features {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
}

.plan-card .features li {
    padding: 0.4rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-card .features li::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
}

.plan-card .btn-subscribe {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #9333ea 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
}

.plan-card .btn-subscribe:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

/* ============================================
   ERROR PAGE
   ============================================ */
.error-container {
    min-height: calc(100vh - var(--header-height) - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.error-card {
    text-align: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.error-details {
    margin-top: 2rem;
    text-align: left;
}

.error-details summary {
    cursor: pointer;
    color: var(--text-muted);
}

.error-details pre {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    overflow-x: auto;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* ============================================
   CHARTS
   ============================================ */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    position: relative;
    height: 350px;
    display: flex;
    flex-direction: column;
}

.chart-card h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.chart-wrapper {
    flex: 1;
    position: relative;
    width: 100%;
    min-height: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }

    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 0.5rem;
        background: none;
        border: none;
        cursor: pointer;
    }

    .mobile-menu-btn span {
        width: 24px;
        height: 2px;
        background: var(--text-primary);
    }

    .dashboard-container {
        flex-direction: column;
    }

    .sidebar,
    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        position: relative;
        top: 0;
        height: auto;
    }

    .admin-main,
    .dashboard-main {
        margin-left: 0;
        padding: 1rem;
    }

    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 0.25rem;
    }

    .sidebar-link span:last-child {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .upgrade-banner {
        flex-direction: column;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
}