/* ============================================================
   AlNakhli - Computer & Network Solutions
   Design: Dark Navy + Cyan/Teal Glow Tech Theme
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* Dark Theme (default) */
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: rgba(15, 20, 40, 0.65);
    --bg-card-hover: rgba(25, 32, 55, 0.75);
    --bg-input: rgba(15, 20, 40, 0.8);
    --bg-navbar: rgba(8, 12, 24, 0.7);

    --text-primary: #e8edf5;
    --text-secondary: #8b97b0;
    --text-muted: #5a6580;

    --accent: #00d4ff;
    --accent-hover: #00b8e6;
    --accent-glow: rgba(0, 212, 255, 0.3);
    --accent-soft: rgba(0, 212, 255, 0.1);
    --accent-gold: #d4a843;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(0, 212, 255, 0.2);

    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.15);

    --gradient-hero: linear-gradient(135deg, #0a0e1a 0%, #0d1b2a 50%, #1b2838 100%);
    --gradient-card: linear-gradient(145deg, rgba(20, 28, 50, 0.6), rgba(15, 22, 40, 0.5));
    --gradient-accent: linear-gradient(135deg, #00d4ff, #0088cc);

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;

    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-ar: 'Segoe UI', 'Tahoma', 'Arial', sans-serif;

    --transition: all 0.3s ease;
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f0f4f8;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-card-hover: rgba(248, 250, 252, 0.85);
    --bg-input: rgba(248, 250, 252, 0.9);
    --bg-navbar: rgba(255, 255, 255, 0.7);

    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #a0aec0;

    --accent: #0077cc;
    --accent-hover: #005fa3;
    --accent-glow: rgba(0, 119, 204, 0.2);
    --accent-soft: rgba(0, 119, 204, 0.08);

    --border-color: rgba(0, 0, 0, 0.08);
    --border-accent: rgba(0, 119, 204, 0.2);

    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 20px rgba(0, 119, 204, 0.1);

    --gradient-hero: linear-gradient(135deg, #e8f4fd 0%, #f0f4f8 50%, #ffffff 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.7), rgba(248,250,252,0.6));
    --gradient-accent: linear-gradient(135deg, #0077cc, #005fa3);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    transition: var(--transition);
    min-height: 100vh;
    position: relative;
}

/* Fixed immersive background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background: url('/assets/images/bana.png') center/cover no-repeat;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(6,10,22,0.80) 0%, rgba(8,14,28,0.85) 50%, rgba(6,10,22,0.90) 100%);
    pointer-events: none;
}

[data-theme="light"] body::after {
    background: linear-gradient(180deg, rgba(240,244,248,0.88) 0%, rgba(240,244,248,0.92) 100%);
}

[dir="rtl"] body { font-family: var(--font-ar); }

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(10, 14, 26, 0.5); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }

/* ---------- Navbar ---------- */
.navbar {
    background: var(--bg-navbar);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary) !important;
}

.navbar-brand img { height: 40px; width: 40px; border-radius: 50%; }

/* brand name is single color, no span split */

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

.nav-links a {
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    background: var(--accent-soft);
}

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

.nav-toggle-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
}

.nav-toggle-btn:hover { border-color: var(--accent); color: var(--accent); }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ---------- Container ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Hero Section ---------- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 60%, rgba(0, 212, 255, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(0, 136, 204, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--accent-soft);
    border: 1px solid var(--border-accent);
    border-radius: 50px;
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-primary);
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-scroll-indicator {
    margin: 2rem auto 1rem;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.9rem;
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.8rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--accent-glow);
    color: #fff;
}

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

.btn-outline:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
}

.btn-ghost:hover { color: var(--accent); }

.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

.btn-danger { background: #dc3545; color: #fff; }
.btn-danger:hover { background: #c82333; color: #fff; }

.btn-success { background: #28a745; color: #fff; }
.btn-success:hover { background: #218838; color: #fff; }

/* ---------- Section ---------- */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-header .accent-line {
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
    margin: 1rem auto 0;
}

.section-alt {
    background: rgba(10, 14, 26, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

[data-theme="light"] .section-alt {
    background: rgba(255, 255, 255, 0.35);
}

/* ---------- Cards ---------- */
.card {
    background: var(--gradient-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.8rem;
    transition: var(--transition);
    height: 100%;
}

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

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.2rem;
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

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

/* ---------- Service Detail Grid ---------- */
.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}
.service-detail-grid .service-sidebar { order: 1; }
.service-detail-grid .service-content { order: 2; }

[dir="rtl"] .service-detail-grid .service-sidebar { order: 2; }
[dir="rtl"] .service-detail-grid .service-content { order: 1; }

@media (max-width: 992px) {
    .service-detail-grid { grid-template-columns: 1fr; }
    .service-detail-grid .service-sidebar { order: 2; }
    .service-detail-grid .service-content { order: 1; }
}

/* ---------- Service Cards ---------- */
/* Diamond cards for home page */
.diamond-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.8rem;
    padding: 2rem 0;
}

.diamond-card {
    width: 270px;
    height: 270px;
    transform: rotate(45deg);
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-top-color: rgba(0, 212, 255, 0.45);
    border-left-color: rgba(0, 212, 255, 0.35);
    border-bottom-color: rgba(0, 80, 140, 0.3);
    border-right-color: rgba(0, 80, 140, 0.2);
    background: linear-gradient(135deg, rgba(15, 25, 50, 0.7) 0%, rgba(8, 14, 30, 0.5) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    box-shadow:
        4px 4px 12px rgba(0, 0, 0, 0.4),
        -2px -2px 8px rgba(0, 212, 255, 0.08),
        inset 1px 1px 0 rgba(255, 255, 255, 0.06),
        inset -1px -1px 0 rgba(0, 0, 0, 0.2);
}

.diamond-card:hover {
    border-color: var(--accent);
    box-shadow:
        6px 6px 20px rgba(0, 0, 0, 0.5),
        -3px -3px 12px rgba(0, 212, 255, 0.15),
        inset 1px 1px 0 rgba(255, 255, 255, 0.1),
        inset -1px -1px 0 rgba(0, 0, 0, 0.2),
        0 0 30px rgba(0, 212, 255, 0.15);
    transform: rotate(45deg) scale(1.05);
}

.diamond-card-inner {
    transform: rotate(-45deg);
    position: absolute;
    inset: -50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.diamond-card-inner .card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.diamond-card-inner h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    line-height: 1.3;
    max-width: 180px;
}

.diamond-card-inner .diamond-btn {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border: 1px solid var(--border-accent);
    border-radius: 4px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    transition: var(--transition);
}

.diamond-card:hover .diamond-btn {
    border-color: var(--accent);
    color: var(--accent);
}

/* Diamond cards - Light theme */
[data-theme="light"] .diamond-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(240,248,255,0.75) 100%);
    border: 1px solid rgba(0, 119, 204, 0.2);
    border-top-color: rgba(255, 255, 255, 0.9);
    border-left-color: rgba(255, 255, 255, 0.7);
    border-bottom-color: rgba(0, 119, 204, 0.25);
    border-right-color: rgba(0, 119, 204, 0.15);
    box-shadow:
        4px 4px 16px rgba(0, 0, 0, 0.1),
        -2px -2px 8px rgba(255, 255, 255, 0.8),
        inset 1px 1px 0 rgba(255, 255, 255, 0.6),
        inset -1px -1px 0 rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .diamond-card:hover {
    border-color: var(--accent);
    box-shadow:
        6px 6px 24px rgba(0, 0, 0, 0.12),
        -3px -3px 12px rgba(255, 255, 255, 0.9),
        inset 1px 1px 0 rgba(255, 255, 255, 0.7),
        inset -1px -1px 0 rgba(0, 0, 0, 0.05),
        0 0 20px rgba(0, 119, 204, 0.12);
}

[data-theme="light"] .diamond-card-inner .card-icon {
    background: rgba(0, 119, 204, 0.1);
    border-color: rgba(0, 119, 204, 0.25);
}

[data-theme="light"] .diamond-card-inner h3 {
    color: #1a202c;
}

[data-theme="light"] .diamond-card-inner .diamond-btn {
    color: #4a5568;
    border-color: rgba(0, 119, 204, 0.25);
}

@media (max-width: 992px) {
    .diamond-card { width: 200px; height: 200px; }
    .diamond-card-inner { inset: -40px; }
    .diamond-card-inner h3 { font-size: 0.88rem; max-width: 140px; }
}

@media (max-width: 768px) {
    .diamond-grid { gap: 1.2rem; }
    .diamond-card { width: 170px; height: 170px; }
    .diamond-card-inner { inset: -35px; }
    .diamond-card-inner .card-icon { width: 44px; height: 44px; font-size: 1.1rem; }
    .diamond-card-inner h3 { font-size: 0.8rem; max-width: 120px; }
    .diamond-card-inner .diamond-btn { font-size: 0.65rem; }
}

@media (max-width: 480px) {
    .diamond-grid { gap: 0.8rem; }
    .diamond-card { width: 140px; height: 140px; }
    .diamond-card-inner { inset: -30px; }
    .diamond-card-inner .card-icon { width: 36px; height: 36px; font-size: 0.9rem; margin-bottom: 0.4rem; }
    .diamond-card-inner h3 { font-size: 0.72rem; max-width: 100px; }
    .diamond-card-inner .diamond-btn { display: none; }
}

.service-card-img {
    position: relative;
    height: 180px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
    background: linear-gradient(135deg, rgba(10,18,35,0.8), rgba(15,25,45,0.6));
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-img-icon {
    position: absolute;
    bottom: 0.8rem;
    right: 0.8rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--accent);
    box-shadow: var(--shadow);
}

.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before { transform: scaleX(1); }

.service-card .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 1rem;
}

.service-card .contact-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-top: 1rem;
}

/* ---------- How It Works ---------- */
.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
    padding: 2rem;
}

.testimonial-card .stars {
    color: #fbbf24;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.testimonial-card .quote {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.testimonial-card .author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-card .author-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.testimonial-card .author-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------- FAQ ---------- */
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 0.8rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover { border-color: var(--border-accent); }

.faq-question {
    width: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    padding: 1.2rem 1.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: inherit;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.faq-question:hover { background: var(--bg-card-hover); }

.faq-question i { color: var(--accent); transition: transform 0.3s ease; font-size: 0.85rem; }
.faq-item.open .faq-question i { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(10, 14, 26, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.faq-item.open .faq-answer { max-height: 500px; }

.faq-answer-inner {
    padding: 1.2rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ---------- CTA Section ---------- */
.cta-section {
    background: rgba(0, 212, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-accent);
    border-bottom: 1px solid var(--border-accent);
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section .container { position: relative; z-index: 2; }

.cta-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

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

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

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

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

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b97b0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

[dir="rtl"] select.form-control {
    background-position: left 1rem center;
    padding-right: 1rem;
    padding-left: 2.5rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

/* ---------- Alerts ---------- */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    animation: slideDown 0.3s ease;
}

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

.alert-success { background: rgba(40, 167, 69, 0.15); border: 1px solid rgba(40, 167, 69, 0.3); color: #28a745; }
.alert-danger { background: rgba(220, 53, 69, 0.15); border: 1px solid rgba(220, 53, 69, 0.3); color: #dc3545; }
.alert-warning { background: rgba(255, 193, 7, 0.15); border: 1px solid rgba(255, 193, 7, 0.3); color: #ffc107; }
.alert-info { background: rgba(0, 212, 255, 0.1); border: 1px solid var(--border-accent); color: var(--accent); }

.alert-close {
    margin-inline-start: auto;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
}

.alert-close:hover { opacity: 1; }

/* ---------- Footer ---------- */
main {
    position: relative;
    z-index: 1;
}

.footer {
    position: relative;
    z-index: 0;
    background: rgba(8, 12, 24, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: 0;
}

[data-theme="light"] .footer {
    background: rgba(255, 255, 255, 0.6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand { margin-bottom: 1rem; }

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-top: 0.8rem;
}

.footer h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 0.6rem; }

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--accent); }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.footer-contact i { color: var(--accent); margin-top: 0.2rem; }

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.social-links { display: flex; gap: 0.8rem; }

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table th, .table td {
    padding: 0.85rem 1rem;
    text-align: inherit;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--bg-card);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.table tbody tr { transition: var(--transition); }
.table tbody tr:hover { background: var(--accent-soft); }

/* ---------- Badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background: rgba(40, 167, 69, 0.15); color: #28a745; }
.badge-danger { background: rgba(220, 53, 69, 0.15); color: #dc3545; }
.badge-warning { background: rgba(255, 193, 7, 0.15); color: #ffc107; }
.badge-info { background: var(--accent-soft); color: var(--accent); }
.badge-secondary { background: rgba(108, 117, 125, 0.15); color: #6c757d; }

/* ---------- Stat Cards (Admin) ---------- */
.stat-card {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* ---------- Page Header ---------- */
.page-header {
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.page-header .container { position: relative; z-index: 2; }

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

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

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.fw-bold { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.w-100 { width: 100%; }
.d-none { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero { min-height: auto; padding: 3rem 0; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--bg-navbar);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
        z-index: 999;
    }
    .mobile-toggle { display: block; }
    .grid-2, .grid-4 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .page-header h1 { font-size: 1.8rem; }
    .section-header h2 { font-size: 1.7rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .btn-lg { padding: 0.8rem 1.5rem; font-size: 0.95rem; }
}

/* ---------- Admin Sidebar ---------- */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: 260px;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-inline-end: 1px solid var(--border-color);
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

[dir="rtl"] .admin-sidebar { right: 0; }
[dir="ltr"] .admin-sidebar { left: 0; }

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.admin-sidebar-brand img { height: 32px; width: 32px; border-radius: 50%; }
.admin-sidebar-brand span { color: var(--accent); }

.admin-nav { list-style: none; padding: 0 0.8rem; }

.admin-nav li a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 0.2rem;
}

.admin-nav li a:hover,
.admin-nav li a.active {
    background: var(--accent-soft);
    color: var(--accent);
}

.admin-nav li a i { width: 20px; text-align: center; }

.admin-content {
    flex: 1;
    margin-inline-start: 260px;
    padding: 2rem;
    min-height: 100vh;
}

.admin-content .card { height: auto; }
.admin-content .grid-2-1 > div,
.admin-content .grid-1-2 > div { align-self: start; }

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-topbar h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

@media (max-width: 992px) {
    .admin-sidebar { display: none; }
    .admin-content { margin-inline-start: 0; }
}
