/* ==========================================================================
   HostingGateway Lightweight & Modern Multi-Theme Design System (Pure CSS)
   ========================================================================== */

/* 1. MIDNIGHT (Varsayılan - Koyu Gece / Siber Mavi) */
:root, [data-theme="midnight"] {
    --bg-body: #0b0f19;
    --bg-card: #131b2e;
    --bg-card-hover: #19233c;
    --bg-surface: #1e2942;
    --border-color: #273554;
    --border-focus: #3b82f6;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: rgba(59, 130, 246, 0.15);
    --primary-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);

    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.15);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.15);
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.15);

    --hero-glow: radial-gradient(circle at 50% 20%, rgba(59, 130, 246, 0.18), transparent 70%);
}

/* 2. EMERALD (Zümrüt / Yeşil Bulut) */
[data-theme="emerald"] {
    --bg-body: #061412;
    --bg-card: #0c2420;
    --bg-card-hover: #11332e;
    --bg-surface: #17423c;
    --border-color: #1e544d;
    --border-focus: #10b981;

    --text-main: #f0fdf4;
    --text-muted: #86efac;
    --text-dim: #4ade80;

    --primary: #10b981;
    --primary-hover: #059669;
    --primary-light: rgba(16, 185, 129, 0.18);
    --primary-gradient: linear-gradient(135deg, #10b981, #06b6d4);

    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.15);
    --warning: #fbbf24;
    --warning-light: rgba(251, 191, 36, 0.15);
    --danger: #f87171;
    --danger-light: rgba(248, 113, 113, 0.15);

    --hero-glow: radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.2), transparent 70%);
}

/* 3. CRIMSON (Kızıl / Cyberpunk Ateşi) */
[data-theme="crimson"] {
    --bg-body: #140a0e;
    --bg-card: #201118;
    --bg-card-hover: #2d1822;
    --bg-surface: #3b202d;
    --border-color: #4f2b3c;
    --border-focus: #f43f5e;

    --text-main: #fff1f2;
    --text-muted: #fda4af;
    --text-dim: #fb7185;

    --primary: #f43f5e;
    --primary-hover: #e11d48;
    --primary-light: rgba(244, 63, 94, 0.18);
    --primary-gradient: linear-gradient(135deg, #f43f5e, #fb923c);

    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.15);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.15);
    --danger: #e11d48;
    --danger-light: rgba(225, 29, 72, 0.15);

    --hero-glow: radial-gradient(circle at 50% 20%, rgba(244, 63, 94, 0.22), transparent 70%);
}

/* 4. VIOLET (Asil Mor / Neon Nebula) */
[data-theme="violet"] {
    --bg-body: #0d0b1a;
    --bg-card: #17132e;
    --bg-card-hover: #211c42;
    --bg-surface: #2b2457;
    --border-color: #3d3477;
    --border-focus: #8b5cf6;

    --text-main: #f5f3ff;
    --text-muted: #c4b5fd;
    --text-dim: #a78bfa;

    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --primary-light: rgba(139, 92, 246, 0.18);
    --primary-gradient: linear-gradient(135deg, #8b5cf6, #ec4899);

    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.15);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.15);
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.15);

    --hero-glow: radial-gradient(circle at 50% 20%, rgba(139, 92, 246, 0.22), transparent 70%);
}

/* 5. LIGHT (Modern Aydınlık / Temiz Bulut) */
[data-theme="light"] {
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-surface: #e2e8f0;
    --border-color: #cbd5e1;
    --border-focus: #2563eb;

    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dim: #64748b;

    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: rgba(37, 99, 235, 0.12);
    --primary-gradient: linear-gradient(135deg, #2563eb, #7c3aed);

    --success: #16a34a;
    --success-light: rgba(22, 163, 74, 0.12);
    --warning: #d97706;
    --warning-light: rgba(217, 119, 6, 0.12);
    --danger: #dc2626;
    --danger-light: rgba(220, 38, 38, 0.12);

    --hero-glow: radial-gradient(circle at 50% 20%, rgba(37, 99, 235, 0.08), transparent 70%);
}

/* Light Theme Contrast & Readability Rules */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6,
[data-theme="light"] .page-title,
[data-theme="light"] .card-title,
[data-theme="light"] .stat-value {
    color: #0f172a !important;
}

[data-theme="light"] .text-white:not(.btn):not(.badge):not(.badge-primary):not(.badge-success):not(.badge-danger):not(.badge-warning):not(.btn-primary):not(.btn-success):not(.btn-danger):not(.btn-software-buy):not(.badge-custom) {
    color: #0f172a !important;
}

[data-theme="light"] .brand,
[data-theme="light"] .brand span {
    color: #0f172a !important;
}

[data-theme="light"] .navbar,
[data-theme="light"] .client-nav {
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .header-topbar,
[data-theme="light"] .client-topbar {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #64748b !important;
}

[data-theme="light"] .header-topbar a,
[data-theme="light"] .client-topbar a {
    color: #475569 !important;
}

[data-theme="light"] .header-topbar a:hover,
[data-theme="light"] .client-topbar a:hover {
    color: #2563eb !important;
}

[data-theme="light"] .nav-link-btn,
[data-theme="light"] .client-nav-link {
    color: #334155 !important;
}

[data-theme="light"] .nav-link-btn:hover,
[data-theme="light"] .client-nav-link:hover,
[data-theme="light"] .nav-item-rel:hover .nav-link-btn,
[data-theme="light"] .nav-item-mega:hover .nav-link-btn,
[data-theme="light"] .client-nav-item:hover .client-nav-link {
    color: #0f172a !important;
    background: #f1f5f9 !important;
}

/* Light Theme Dropdowns */
[data-theme="light"] .mega-dropdown-menu,
[data-theme="light"] .std-dropdown-menu,
[data-theme="light"] .user-dropdown-menu,
[data-theme="light"] .client-sub-menu {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .mega-item-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

[data-theme="light"] .mega-item-card:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

[data-theme="light"] .mega-item-title {
    color: #0f172a !important;
}

[data-theme="light"] .mega-item-desc {
    color: #64748b !important;
}

[data-theme="light"] .mega-item-icon {
    background: #eff6ff !important;
    border: 1px solid #dbeafe !important;
    color: #2563eb !important;
}

[data-theme="light"] .mega-promo-box {
    background: linear-gradient(145deg, #eff6ff, #f0fdf4) !important;
    border: 1px solid #bfdbfe !important;
}

[data-theme="light"] .mega-top-alert {
    background: #fef9c3 !important;
    border: 1px solid #fde047 !important;
    color: #854d0e !important;
    font-weight: 700 !important;
}

[data-theme="light"] .mega-promo-title {
    color: #1e3a8a !important;
}

[data-theme="light"] .mega-promo-desc {
    color: #334155 !important;
}

[data-theme="light"] .user-dropdown-menu li a,
[data-theme="light"] .user-dropdown-menu li button,
[data-theme="light"] .client-sub-menu li a {
    color: #334155 !important;
}

[data-theme="light"] .user-dropdown-menu li a:hover,
[data-theme="light"] .user-dropdown-menu li button:hover,
[data-theme="light"] .client-sub-menu li a:hover {
    background: #f1f5f9 !important;
    color: #2563eb !important;
}

[data-theme="light"] .user-dropdown-menu .divider {
    background: #e2e8f0 !important;
}

[data-theme="light"] .text-slate-100,
[data-theme="light"] .text-slate-200 {
    color: #1e293b !important;
}

[data-theme="light"] .text-slate-300 {
    color: #334155 !important;
}

[data-theme="light"] .text-slate-400 {
    color: #475569 !important;
}

[data-theme="light"] .text-slate-500 {
    color: #64748b !important;
}

[data-theme="light"] .text-muted {
    color: #64748b !important;
}

/* Light Theme Form Elements & Cards */
[data-theme="light"] .card {
    background-color: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] input.form-control,
[data-theme="light"] select.form-control,
[data-theme="light"] textarea.form-control {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] input.form-control::placeholder,
[data-theme="light"] textarea.form-control::placeholder {
    color: #94a3b8 !important;
}

[data-theme="light"] .table {
    color: #1e293b;
}

[data-theme="light"] .table th {
    color: #475569;
    background-color: #f8fafc;
    border-bottom-color: #e2e8f0;
}

[data-theme="light"] .table td {
    border-bottom-color: #f1f5f9;
    color: #1e293b;
}

[data-theme="light"] .table-hover tbody tr:hover {
    background-color: #f8fafc;
}

[data-theme="light"] .form-label {
    color: #0f172a !important;
}

[data-theme="light"] .page-title {
    color: #0f172a !important;
}

[data-theme="light"] .tab-nav {
    border-bottom-color: #cbd5e1 !important;
}

[data-theme="light"] .tab-btn {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

[data-theme="light"] .tab-btn:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

[data-theme="light"] .tab-btn.active {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
}

[data-theme="light"] .sidebar {
    background-color: #ffffff !important;
    border-right-color: #e2e8f0 !important;
}

[data-theme="light"] .sidebar-title {
    color: #64748b !important;
}

[data-theme="light"] .sidebar-link {
    color: #334155 !important;
}

[data-theme="light"] .sidebar-link:hover,
[data-theme="light"] .sidebar-link.active {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

[data-theme="light"] .sidebar-link.active {
    border-left-color: var(--primary) !important;
}

[data-theme="light"] .badge-secondary {
    background-color: #e2e8f0;
    color: #334155;
}

/* Override hardcoded inline white colors in light mode */
[data-theme="light"] [style*="color: #fff"]:not(.btn):not(.badge):not(.nav-title-badge-top):not(.header-topbar *):not(.mega-promo-box *),
[data-theme="light"] [style*="color:#fff"]:not(.btn):not(.badge):not(.nav-title-badge-top):not(.header-topbar *):not(.mega-promo-box *),
[data-theme="light"] [style*="color: #ffffff"]:not(.btn):not(.badge):not(.nav-title-badge-top):not(.header-topbar *):not(.mega-promo-box *),
[data-theme="light"] [style*="color:#ffffff"]:not(.btn):not(.badge):not(.nav-title-badge-top):not(.header-topbar *):not(.mega-promo-box *) {
    color: #0f172a !important;
}

[data-theme="light"] [style*="color: #cbd5e1"],
[data-theme="light"] [style*="color:#cbd5e1"] {
    color: #334155 !important;
}

[data-theme="light"] [style*="color: #94a3b8"],
[data-theme="light"] [style*="color:#94a3b8"] {
    color: #64748b !important;
}

/* Ortak Sabitler */
:root {
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.25), 0 4px 6px -4px rgba(0, 0, 0, 0.15);

    --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --bottom-nav-height: 64px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.55;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    touch-action: manipulation;
}

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

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

/* Containers */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.container-fluid {
    width: 100%;
    padding: 0 1.5rem;
}

/* Top Navigation Bar */
.navbar {
    background-color: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.4px;
}

.brand-badge {
    background: var(--primary-gradient);
    color: #fff;
    padding: 2px 8px;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1rem;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
    background-color: var(--bg-surface);
}

/* Theme Switcher */
.theme-selector {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

/* Buttons with Native Touch Feel */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    text-align: center;
    text-decoration: none;
    user-select: none;
    transition: transform 0.1s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-light);
}

.btn-success {
    background-color: var(--success);
    color: #fff;
}
.btn-success:hover {
    background-color: #059669;
    color: #fff;
}

.btn-danger {
    background-color: var(--danger);
    color: #fff;
}
.btn-danger:hover {
    background-color: #dc2626;
    color: #fff;
}

.btn-secondary {
    background-color: var(--bg-surface);
    color: var(--text-main);
    border-color: var(--border-color);
}
.btn-secondary:hover {
    background-color: var(--border-color);
    color: var(--text-main);
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

/* Cards with Native Feel */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.35rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.card-touch:active {
    transform: scale(0.98);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Stats / Metrics */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 0.2rem;
}

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.table th {
    background-color: var(--bg-surface);
    color: var(--text-muted);
    padding: 0.85rem 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.table td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    vertical-align: middle;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.badge-success { background-color: var(--success-light); color: var(--success); }
.badge-warning { background-color: var(--warning-light); color: var(--warning); }
.badge-danger { background-color: var(--danger-light); color: var(--danger); }
.badge-primary { background-color: var(--primary-light); color: var(--primary); }
.badge-secondary { background-color: var(--bg-surface); color: var(--text-muted); }

/* Tabs */
.tab-nav {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    background-color: var(--bg-surface);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.tab-btn:hover {
    background-color: var(--bg-card);
    color: var(--text-main);
    border-color: var(--primary);
}

.tab-btn.active {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 12px var(--primary-light);
}

/* Forms */
.form-group {
    margin-bottom: 1.15rem;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
    color: var(--text-main);
}

.form-control, .form-select {
    width: 100%;
    padding: 0.75rem 0.95rem;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Hero Section */
.hero-section {
    padding: 3.5rem 0 2.5rem;
    text-align: center;
    background: var(--hero-glow);
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 0.85rem;
    line-height: 1.15;
}

.hero-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Domain Search Bar */
.domain-search-box {
    max-width: 750px;
    margin: 0 auto;
    background-color: var(--bg-card);
    padding: 0.4rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    display: flex;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.domain-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-size: 1.05rem;
    outline: none;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.pricing-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--primary-light);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--primary-gradient);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

.pricing-price {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 1rem 0;
}

.pricing-price span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin: 1.25rem 0 1.75rem;
    flex: 1;
}

.pricing-features li {
    padding: 0.45rem 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
}

.pricing-features li strong {
    color: var(--text-main);
}

/* Sidebar Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 64px);
}

.sidebar {
    width: 260px;
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.5rem 0.75rem;
    margin-top: 0.75rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.sidebar-link:hover, .sidebar-link.active {
    background-color: var(--bg-surface);
    color: var(--text-main);
}

.sidebar-link.active {
    border-left: 3px solid var(--primary);
}

.main-content {
    flex: 1;
    padding: 1.75rem;
    background-color: var(--bg-body);
}

.full-width-layout {
    width: 100%;
    min-height: calc(100vh - 64px);
}

.full-width-layout .main-content {
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    padding: 1.75rem 2rem;
}

/* ==========================================================================
   Admin Horizontal Top Navbar Dropdown Navigation
   ========================================================================== */
.admin-navbar {
    z-index: 1000;
}

.admin-nav-desktop {
    display: flex;
    align-items: center;
}

.admin-nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-nav-item {
    position: relative;
    padding-bottom: 8px;
    margin-bottom: -8px;
}

.admin-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
}

.admin-nav-link .arrow-down {
    font-size: 0.7rem;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.admin-nav-link:hover, 
.admin-nav-item:hover .admin-nav-link,
.admin-nav-link.active {
    color: var(--text-main);
    background-color: var(--bg-surface);
}

.admin-nav-item:hover .admin-nav-link .arrow-down {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.admin-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    min-width: 230px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm, 8px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    padding: 0.45rem 0;
    list-style: none;
    margin: 0;
    z-index: 1050;
    animation: navFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-dropdown-menu.admin-dropdown-right {
    left: auto;
    right: 0;
}

/* Invisible bridge so mouse hover doesn't break */
.admin-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}

.admin-nav-item:hover .admin-dropdown-menu {
    display: block;
}

.admin-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    transition: all 0.12s ease;
}

.admin-dropdown-menu li a:hover,
.admin-dropdown-menu li a.active {
    background-color: var(--bg-surface);
    color: var(--text-main);
    padding-left: 1.2rem;
}

.admin-dropdown-menu li a.active {
    color: var(--primary);
    font-weight: 600;
}

.admin-dropdown-menu .divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.4rem 0;
}

/* Light Theme Adjustments for Admin Dropdown */
[data-theme="light"] .admin-dropdown-menu {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .admin-dropdown-menu li a {
    color: #475569 !important;
}

[data-theme="light"] .admin-dropdown-menu li a:hover,
[data-theme="light"] .admin-dropdown-menu li a.active {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

[data-theme="light"] .admin-nav-link:hover,
[data-theme="light"] .admin-nav-item:hover .admin-nav-link,
[data-theme="light"] .admin-nav-link.active {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

/* ==========================================================================
   Site Footer Styles (Adaptive for All Themes & Mobile)
   ========================================================================== */
.site-footer {
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-card);
    padding: 3.5rem 0 2rem;
    margin-top: 4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-brand-heading {
    font-size: 1.25rem;
    color: var(--text-main);
}

.footer-company-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.footer-address {
    font-size: 0.84rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.footer-section-title {
    font-size: 0.98rem;
    color: var(--text-main);
    letter-spacing: -0.2px;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.88rem;
    line-height: 2.2;
}

.footer-nav-list li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-nav-list li a:hover {
    color: var(--primary);
}

.footer-contact-info {
    font-size: 0.88rem;
    line-height: 2;
    color: var(--text-main);
}

.footer-contact-info a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-contact-info a:hover {
    color: var(--primary);
}

.footer-bottom-bar {
    border-top: 1px solid var(--border-color);
    color: var(--text-dim);
    margin-top: 1rem;
}

.footer-tax-note {
    color: var(--text-muted);
}

/* Light Theme Footer Adjustments */
[data-theme="light"] .site-footer {
    background-color: #f8fafc !important;
    border-top-color: #e2e8f0 !important;
    color: #475569 !important;
}

[data-theme="light"] .footer-brand-heading,
[data-theme="light"] .footer-section-title {
    color: #0f172a !important;
}

[data-theme="light"] .footer-company-desc,
[data-theme="light"] .footer-nav-list li a {
    color: #475569 !important;
}

[data-theme="light"] .footer-nav-list li a:hover {
    color: #2563eb !important;
}

[data-theme="light"] .footer-address,
[data-theme="light"] .footer-bottom-bar {
    color: #64748b !important;
}

[data-theme="light"] .footer-contact-info {
    color: #1e293b !important;
}

[data-theme="light"] .footer-contact-info a:hover {
    color: #2563eb !important;
}

[data-theme="light"] .footer-bottom-bar {
    border-top-color: #e2e8f0 !important;
}

[data-theme="light"] .footer-tax-note {
    color: #334155 !important;
}

/* Alerts */
.alert {
    padding: 0.95rem 1.15rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
    font-size: 0.95rem;
}

.alert-success { background-color: var(--success-light); border-color: var(--success); color: var(--success); }
.alert-danger { background-color: var(--danger-light); border-color: var(--danger); color: var(--danger); }
.alert-info { background-color: var(--primary-light); border-color: var(--primary); color: var(--primary); }

/* Utilities */
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-grid { display: grid; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }

.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-1 { flex: 1 1 0%; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 0.75rem; }
.gap-3 { gap: 1.25rem; }
.gap-4 { gap: 1.75rem; }
.gap-5 { gap: 2.25rem; }

.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1.25rem; }
.p-5 { padding: 2rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-5 { padding-top: 2.25rem; padding-bottom: 2.25rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-5 { padding-left: 2rem; padding-right: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2.5rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2.5rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.my-auto { margin-top: auto; margin-bottom: auto; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.85rem; }
.text-md { font-size: 0.95rem; }
.text-lg { font-size: 1.15rem; }
.text-xl { font-size: 1.35rem; }
.text-2xl { font-size: 1.75rem; }
.text-3xl { font-size: 2.25rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

.text-white { color: #ffffff !important; }
.text-slate-200 { color: #e2e8f0 !important; }
.text-slate-300 { color: #cbd5e1 !important; }
.text-slate-400 { color: #94a3b8 !important; }
.text-slate-500 { color: #64748b !important; }
.text-indigo-400 { color: #818cf8 !important; }
.text-emerald-400 { color: #34d399 !important; }
.text-amber-400 { color: #fbbf24 !important; }
.text-rose-400 { color: #fb7185 !important; }

.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

.grid { display: grid; }
.grid-1 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 1.5rem; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }

/* ==========================================================================
   MOBILE APP EXPERIENCE & BOTTOM NAVIGATION BAR
   ========================================================================== */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background-color: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    z-index: 999;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    gap: 3px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    user-select: none;
    transition: color 0.15s ease, transform 0.1s ease;
}

.mobile-tab-item svg, .mobile-tab-item span.icon {
    font-size: 1.35rem;
    line-height: 1;
}

.mobile-tab-item:active {
    transform: scale(0.9);
}

.mobile-tab-item.active {
    color: var(--primary);
}

/* Horizontal Scrollable Filter Chips for Mobile */
.touch-chips {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.touch-chips::-webkit-scrollbar {
    display: none;
}

.touch-chip {
    flex-shrink: 0;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.touch-chip.active, .touch-chip:hover {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Mobile Drawer / Offcanvas */
.mobile-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -280px;
    width: 280px;
    background-color: var(--bg-card);
    border-left: 1px solid var(--border-color);
    padding: 1.5rem 1.25rem;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: right 0.25s ease;
    overflow-y: auto;
}

.mobile-drawer.open {
    right: 0;
}

/* Mobile Media Queries */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.flex-wrap {
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    body {
        padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 12px) + 1rem);
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    .dashboard-layout {
        flex-direction: column;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .sidebar {
        display: none; /* Mobile tab bar kullanılır */
    }

    .main-content {
        padding: 0.85rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .nav-container {
        padding: 0 0.85rem;
        height: 56px;
    }

    .brand {
        font-size: 1.05rem;
    }

    .nav-actions {
        gap: 0.35rem;
    }

    .nav-actions .btn {
        padding: 0.35rem 0.55rem;
        font-size: 0.78rem;
    }

    .theme-selector {
        padding: 0.35rem 0.45rem;
        font-size: 0.78rem;
        max-width: 95px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .stat-card {
        padding: 1rem 1.15rem;
    }

    .card {
        overflow: hidden;
        border-radius: var(--radius-sm);
    }

    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .hero-section {
        padding: 2rem 0 1.5rem;
    }

    .domain-search-box {
        flex-direction: column;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .domain-input {
        background-color: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        margin-bottom: 0.5rem;
        padding: 0.85rem 1rem;
    }

    .grid-2, .grid-3, .grid-4, .grid-1-2, .grid-2-1 {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .nav-menu {
        display: none;
    }

    .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
}