/* ===================================================
   BouD Portfolio - Admin Dashboard Stylesheet
   =================================================== */

:root, [data-theme="dark"] {
    --bg-dark: #050811;
    --bg-surface: #0a0f1d;
    --bg-card: rgba(13, 19, 36, 0.75);
    --bg-card-hover: rgba(20, 29, 54, 0.9);
    --bg-sidebar: rgba(10, 15, 29, 0.85);

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

    --accent-cyan: #38bdf8;
    --accent-blue: #2563eb;
    --accent-indigo: #6366f1;
    --accent-purple: #a855f7;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;

    --gradient-primary: linear-gradient(135deg, #38bdf8 0%, #6366f1 50%, #a855f7 100%);
    --gradient-glow: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(99, 102, 241, 0.35));

    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(56, 189, 248, 0.4);
    --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(56, 189, 248, 0.2);
    --input-bg: rgba(6, 9, 18, 0.85);
    --btn-glass-bg: rgba(255, 255, 255, 0.06);

    --font-ar: 'Cairo', system-ui, sans-serif;
    --font-en: 'Plus Jakarta Sans', system-ui, sans-serif;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --radius-pill: 9999px;
}

[data-theme="light"] {
    --bg-dark: #f1f5f9;
    --bg-surface: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    --bg-sidebar: rgba(255, 255, 255, 0.85);

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

    --accent-cyan: #0284c7;
    --accent-blue: #2563eb;
    --accent-indigo: #4f46e5;
    --accent-purple: #9333ea;
    --accent-emerald: #059669;
    --accent-amber: #d97706;
    --accent-rose: #e11d48;

    --gradient-primary: linear-gradient(135deg, #0284c7 0%, #4f46e5 50%, #9333ea 100%);
    --gradient-glow: linear-gradient(135deg, rgba(2, 132, 199, 0.2), rgba(79, 70, 229, 0.2));

    --border-glass: rgba(15, 23, 42, 0.09);
    --border-glass-hover: rgba(2, 132, 199, 0.4);
    --shadow-card: 0 20px 45px rgba(15, 23, 42, 0.06);
    --shadow-glow: 0 0 30px rgba(2, 132, 199, 0.15);
    --input-bg: rgba(248, 250, 252, 0.95);
    --btn-glass-bg: rgba(15, 23, 42, 0.06);
}

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

body {
    font-family: var(--font-ar);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Ambient Glow Background */
.ambient-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.28;
}

.orb-top-left {
    top: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
}

.orb-top-right {
    top: 5%;
    right: -5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--accent-purple), transparent 70%);
}

.orb-center {
    top: 40%;
    left: 30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-indigo), transparent 70%);
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Warning Banner */
.warning-banner {
    background: rgba(245, 158, 11, 0.15);
    border-bottom: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.warning-banner code {
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 8px;
    border-radius: 4px;
    color: #fff;
    font-family: monospace;
}

/* Glass Panels & Cards */
.glass-panel {
    background: var(--bg-sidebar);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Brand Logo */
.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-main);
}

.logo-symbol {
    font-family: var(--font-en);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.logo-accent {
    color: var(--accent-cyan);
}

.admin-tag {
    font-size: 0.75rem;
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-cyan);
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(56, 189, 248, 0.3);
    margin-right: 8px;
}

/* ========================================== */
/* AUTHENTICATION VIEW                        */
/* ========================================== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    max-width: 440px;
    width: 100%;
    padding: 40px;
}

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

.auth-header h2 {
    font-size: 1.4rem;
    margin-top: 16px;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--input-bg);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.form-group select option {
    background: var(--bg-surface);
    color: var(--text-main);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--btn-glass-bg);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    background: rgba(56, 189, 248, 0.18);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: rotate(20deg) scale(1.08);
}

.auth-footer {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.back-link:hover {
    color: var(--accent-cyan);
}

.auth-help-box {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    gap: 8px;
    text-align: right;
    line-height: 1.5;
}

.auth-help-box i {
    color: var(--accent-cyan);
    margin-top: 3px;
}

/* Alert Boxes */
.alert-box {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.alert-danger {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #fda4af;
}

/* ========================================== */
/* DASHBOARD LAYOUT                           */
/* ========================================== */
.dashboard-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-header {
    height: 70px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-glass);
}

.admin-user-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-badge {
    background: rgba(255, 255, 255, 0.06);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-glass);
}

.admin-layout {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 70px);
}

/* Sidebar */
.admin-sidebar {
    width: 280px;
    padding: 24px 16px;
    border-left: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tab-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-tab-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: right;
    transition: all 0.2s ease;
}

.nav-tab-btn i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.nav-tab-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

.nav-tab-btn.active {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
    color: var(--accent-cyan);
}

.nav-tab-btn.active i {
    color: var(--accent-cyan);
}

.badge-count {
    margin-right: auto;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    font-size: 0.78rem;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.badge-count.alert {
    background: var(--accent-rose);
    color: #fff;
}

.sidebar-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border-glass);
}

.firestore-status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    box-shadow: 0 0 10px var(--accent-emerald);
}

/* Main Content Area */
.admin-content {
    flex: 1;
    padding: 32px;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

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

.page-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-title-row h2 {
    font-size: 1.6rem;
    font-weight: 700;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.text-muted {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.icon-purple { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); border: 1px solid rgba(168, 85, 247, 0.3); }
.icon-blue { background: rgba(56, 189, 248, 0.15); color: var(--accent-cyan); border: 1px solid rgba(56, 189, 248, 0.3); }
.icon-green { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); border: 1px solid rgba(16, 185, 129, 0.3); }
.icon-amber { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); border: 1px solid rgba(245, 158, 11, 0.3); }

.stat-data h3 {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
}

.stat-data p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* Seeder Box */
.seeder-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border: 1px dashed rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.05);
    margin-bottom: 28px;
    gap: 20px;
    flex-wrap: wrap;
}

.seeder-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.seeder-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.seeder-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 650px;
}

.text-accent {
    color: var(--accent-cyan);
}

/* Projects Management UI */
.projects-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.search-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    flex: 1;
    max-width: 380px;
}

.search-input-group input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    width: 100%;
    font-family: inherit;
    font-size: 0.9rem;
}

.filter-buttons {
    display: flex;
    gap: 8px;
}

.filter-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-chip.active {
    background: rgba(56, 189, 248, 0.2);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.admin-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.admin-project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.admin-card-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.admin-project-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
}

.admin-card-meta {
    flex: 1;
}

.admin-card-meta h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.admin-card-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.admin-card-tech span {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--text-secondary);
}

.admin-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-glass);
    padding-top: 14px;
}

.order-badge {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.action-btns {
    display: flex;
    gap: 8px;
}

/* Category Pills */
.category-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
}

.pill-app { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.pill-pos { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.pill-game { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.pill-heritage { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.pill-p2p { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.pill-action { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); }

/* Messages / Inbox UI */
.messages-list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message-item-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.2s;
}

.message-item-card.unread {
    border-right: 4px solid var(--accent-cyan);
    background: rgba(56, 189, 248, 0.03);
}

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

.msg-sender {
    display: flex;
    align-items: center;
    gap: 12px;
}

.msg-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}

.msg-sender-info h4 {
    font-size: 1.05rem;
}

.msg-sender-info a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 0.85rem;
}

.msg-time {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.msg-body {
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.7;
    white-space: pre-wrap;
}

.msg-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

/* Settings Form Grid */
.settings-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 24px;
}

.form-card-title {
    font-size: 1.15rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-cyan);
}

/* Buttons */
button {
    cursor: pointer;
    font-family: inherit;
}

.btn-primary-glow {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.45);
}

.btn-secondary-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-secondary-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary-glow {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: var(--accent-cyan);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-secondary-glow:hover {
    background: rgba(56, 189, 248, 0.25);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.btn-secondary-sm {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.btn-secondary-sm:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-danger-sm {
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #fb7185;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.btn-danger-sm:hover {
    background: rgba(244, 63, 94, 0.25);
}

.btn-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-main);
}

.btn-icon.danger:hover {
    background: rgba(244, 63, 94, 0.2);
    border-color: rgba(244, 63, 94, 0.4);
    color: #fb7185;
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--accent-cyan);
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.w-100 {
    width: 100%;
}

.mt-4 { margin-top: 16px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-5 { padding-top: 24px; padding-bottom: 24px; }
.text-center { text-align: center; }

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    max-width: 850px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 32px;
}

.modal-header {
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-glass);
}

.modal-close-btn {
    position: absolute;
    top: 24px;
    left: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.2s, color 0.2s;
}

.modal-close-btn:hover {
    background: rgba(244, 63, 94, 0.25);
    color: #fb7185;
}

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

.checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 6px;
}

.checkbox-row label {
    font-size: 0.88rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.modal-actions-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-glass);
}

/* Toast */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(10, 15, 29, 0.95);
    border: 1px solid var(--accent-emerald);
    color: var(--text-main);
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    z-index: 2000;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-notification i {
    color: var(--accent-emerald);
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 900px) {
    .admin-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        border-left: none;
        border-bottom: 1px solid var(--border-glass);
    }
    .form-row-2 {
        grid-template-columns: 1fr;
    }
    .settings-form-grid {
        grid-template-columns: 1fr;
    }
}
