/* ===================================
   LICENSE PORTAL - Premium Dark Theme
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
    --bg-primary: #0a0b14;
    --bg-secondary: #0f1117;
    --bg-card: #151724;
    --bg-card-hover: #1a1d30;
    --bg-input: #12141f;
    --border-color: rgba(99, 102, 241, 0.15);
    --border-hover: rgba(99, 102, 241, 0.35);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    --success: #34d399;
    --success-bg: rgba(52, 211, 153, 0.1);
    --warning: #fbbf24;
    --warning-bg: rgba(251, 191, 36, 0.1);
    --error: #f87171;
    --error-bg: rgba(248, 113, 113, 0.1);
    --info: #60a5fa;
    --info-bg: rgba(96, 165, 250, 0.1);
    --glass-bg: rgba(21, 23, 36, 0.8);
    --glass-border: rgba(99, 102, 241, 0.12);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Variables - Saflaştırılmış, göz yormayan soft palette */
:root[data-theme="light"] {
    --bg-primary: #fcfdfe;
    --bg-secondary: #f4f7fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-input: #ffffff;
    --border-color: rgba(99, 102, 241, 0.08);
    --border-hover: rgba(99, 102, 241, 0.2);
    --text-primary: #334155;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(99, 102, 241, 0.05);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.02);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.06);
    --shadow-glow: 0 0 15px rgba(99, 102, 241, 0.03);
}

/* Theme Transition */
*, *::before, *::after {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.1s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(99, 102, 241, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

a { color: var(--accent-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-secondary); }
img { max-width: 100%; }

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 11, 20, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    padding: 0 24px;
}

.navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.navbar-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.navbar-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.navbar-nav a:hover, .navbar-nav a.active {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}

.navbar-nav .nav-credit {
    background: var(--success-bg);
    border: 1px solid rgba(52, 211, 153, 0.2);
    color: var(--success);
    font-weight: 600;
}

.navbar-nav .btn-nav {
    background: var(--accent-gradient);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.navbar-nav .btn-nav:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

/* Theme Toggle Button */
.theme-btn {
    font-size: 18px !important;
    padding: 8px !important;
}

:root[data-theme="dark"] .light-icon { display: none; }
:root[data-theme="light"] .dark-icon { display: none; }
:root[data-theme="light"] .theme-btn { color: #f59e0b; }
:root[data-theme="dark"] .theme-btn { color: #818cf8; }

/* Mobile menu */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .navbar-toggle { display: block; }
    .navbar-nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10, 11, 20, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--glass-border);
        display: none;
    }
    .navbar-nav.open { display: flex; }
    .navbar-nav a { width: 100%; justify-content: center; }
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.page-wrapper {
    min-height: calc(100vh - 64px);
    padding: 40px 0 60px;
}

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--text-secondary);
    margin-top: 8px;
    font-size: 15px;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.card-header h2, .card-header h3 {
    font-size: 18px;
    font-weight: 700;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

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

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-icon.purple { background: rgba(99,102,241,0.15); color: #818cf8; }
.stat-icon.green { background: rgba(52,211,153,0.15); color: #34d399; }
.stat-icon.blue { background: rgba(96,165,250,0.15); color: #60a5fa; }
.stat-icon.orange { background: rgba(251,191,36,0.15); color: #fbbf24; }
.stat-icon.red { background: rgba(248,113,113,0.15); color: #f87171; }

.stat-info h3 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.stat-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
    color: #fff;
}

.btn-success {
    background: linear-gradient(135deg, #059669, #34d399);
    color: #fff;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(52, 211, 153, 0.3);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #f87171);
    color: #fff;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(248, 113, 113, 0.3);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.05);
}

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

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

.btn-block {
    width: 100%;
}

/* ===== TABLES ===== */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

table td {
    padding: 14px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

table tbody tr {
    transition: var(--transition);
}

table tbody tr:hover {
    background: rgba(99, 102, 241, 0.03);
}

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(52,211,153,0.2); }
.badge-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(251,191,36,0.2); }
.badge-error { background: var(--error-bg); color: var(--error); border: 1px solid rgba(248,113,113,0.2); }
.badge-info { background: var(--info-bg); color: var(--info); border: 1px solid rgba(96,165,250,0.2); }
.badge-purple { background: rgba(139,92,246,0.1); color: #a78bfa; border: 1px solid rgba(139,92,246,0.2); }

/* ===== ALERTS ===== */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    animation: alertSlideIn 0.3s ease;
}

@keyframes alertSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(52,211,153,0.2); }
.alert-error { background: var(--error-bg); color: var(--error); border: 1px solid rgba(248,113,113,0.2); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(251,191,36,0.2); }
.alert-info { background: var(--info-bg); color: var(--info); border: 1px solid rgba(96,165,250,0.2); }

/* ===== AUTH PAGES ===== */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

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

.auth-card .auth-header .auth-logo {
    width: 56px;
    height: 56px;
    background: var(--accent-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    margin: 0 auto 16px;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.auth-card .auth-header h1 {
    font-size: 24px;
    font-weight: 800;
}

.auth-card .auth-header p {
    color: var(--text-secondary);
    margin-top: 6px;
    font-size: 14px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

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

/* ===== HERO SECTION ===== */
.hero {
    text-align: center;
    padding: 80px 0 60px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 .gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

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

@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
}

/* ===== PRICING GRID ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
}

.price-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.price-card:hover::before {
    opacity: 1;
}

.price-card.featured {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.price-card.featured::before {
    opacity: 1;
}

.price-card .price-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 20px;
    color: var(--accent-primary);
}

.price-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.price-card .price-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.price-card .price-amount {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 4px;
}

.price-card .price-amount span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
}

.price-card .price-period {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.price-card .price-features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}

.price-card .price-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-card .price-features li i {
    color: var(--success);
    font-size: 12px;
}

/* ===== SIDEBAR LAYOUT (Client/Admin) ===== */
.dashboard-layout {
    display: flex;
    gap: 24px;
    min-height: calc(100vh - 64px);
}

.sidebar {
    width: 260px;
    flex-shrink: 0;
    padding: 24px 0;
}

.sidebar-nav {
    list-style: none;
    position: sticky;
    top: 88px;
}

.sidebar-nav .nav-section {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 16px 16px 8px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    margin: 2px 0;
}

.sidebar-nav a:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.08);
}

.sidebar-nav a.active {
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.12);
    font-weight: 600;
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
    font-size: 15px;
}

.main-content {
    flex: 1;
    padding: 24px 0;
    min-width: 0;
}

@media (max-width: 900px) {
    .dashboard-layout { flex-direction: column; }
    .sidebar { width: 100%; }
    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        gap: 4px;
        position: static;
    }
    .sidebar-nav .nav-section { display: none; }
    .sidebar-nav a { white-space: nowrap; }
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 24px;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.page-btn:hover, .page-btn.active {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--border-color);
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

@media (max-width: 640px) {
    .grid-2 { grid-template-columns: 1fr; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.5s ease backwards;
}

.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.2s; }
.animate-in:nth-child(5) { animation-delay: 0.25s; }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 20px;
}

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: fadeInUp 0.3s ease;
}

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

.modal-header h3 { font-size: 18px; font-weight: 700; }

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover { color: var(--error); }

/* ===== ACTION BAR ===== */
.action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

/* ===== LOADING SPINNER ===== */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== LICENSE DETAIL CARD ===== */
.license-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.info-item {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.info-item label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.info-item .value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.info-item .value.mono {
    font-family: 'SFMono-Regular', 'Consolas', monospace;
}

/* ===== CREDIT AMOUNT PICKER ===== */
.credit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.credit-option {
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.credit-option:hover, .credit-option.selected {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.05);
}

.credit-option .amount {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.credit-option .label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== NOTIFICATIONS ===== */
.nav-notif {
    position: relative;
}

.notif-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    background: var(--error);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-primary);
}

.notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.notif-dropdown.show {
    display: flex;
}

.notif-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
}

.notif-item {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    text-decoration: none;
    transition: var(--transition);
}

.notif-item:hover {
    background: rgba(255,255,255,0.02);
}

.notif-item.unread {
    background: rgba(99,102,241,0.05);
}

.notif-item .notif-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.notif-item .notif-time {
    font-size: 11px;
    color: var(--text-muted);
}

.notif-footer {
    padding: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-primary);
    background: rgba(255,255,255,0.02);
}

.notif-empty {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.notif-empty i {
    display: block;
    font-size: 24px;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* ===== PREMIUM HOME COMPONENTS ===== */
.home-hero {
    padding: 180px 0 120px;
    background: radial-gradient(circle at 50% -20%, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    color: var(--accent-primary);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInUp 0.5s ease;
}

.home-hero h1 {
    font-size: 80px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -4px;
    margin-bottom: 24px;
    color: var(--text-primary);
    animation: fadeInUp 0.6s ease;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-secondary);
    margin: 0 auto 48px;
    max-width: 700px;
    line-height: 1.6;
    animation: fadeInUp 0.7s ease;
}

.trust-section {
    padding: 80px 0;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

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

.trust-item {
    text-align: center;
    transition: var(--transition);
}

.trust-item:hover { transform: translateY(-5px); }

.trust-icon {
    width: 48px; height: 48px;
    background: rgba(99,102,241,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 20px;
    color: var(--accent-primary);
    border: 1px solid rgba(99,102,241,0.2);
}

.trust-item h4 {
    font-size: 44px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -1px;
}

.trust-item p {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.home-features {
    padding: 120px 0;
}

.feature-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card-v2 {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 48px;
    border-radius: 32px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.feature-card-v2:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.feature-card-v2 .icon-box {
    width: 72px; height: 72px;
    background: var(--accent-gradient);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #fff;
    margin-bottom: 32px;
    box-shadow: 0 8px 16px rgba(99,102,241,0.3);
}

.feature-card-v2 h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-card-v2 p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 16px;
}

.home-pricing {
    padding: 120px 0;
    background: radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
}

.section-header {
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.section-header p {
    font-size: 20px;
    color: var(--text-secondary);
}

.home-faq {
    padding: 120px 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 50px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 24px;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--border-hover);
    transform: scale(1.02);
}

.faq-item h4 {
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-item h4::before {
    content: '?';
    width: 28px; height: 28px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

@media (max-width: 992px) {
    .feature-grid-v2 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .home-hero { padding: 120px 0 80px; }
    .home-hero h1 { font-size: 56px; letter-spacing: -2px; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .feature-grid-v2 { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 40px; }
    .hero-subtitle { font-size: 18px; }
}

