/* ============================================================
   GeoWeb – Main Stylesheet (style.css)
   Colors: Yellow #EED202 | Blue #003566 | BG #F4F1E8 | White #FFFFFF
   ============================================================ */

:root {
    --yellow: #EED202;
    --blue: #003566;
    --blue-dark: #002244;
    --bg: #F4F1E8;
    --white: #FFFFFF;
    --text: #1a1a2e;
    --text-muted: #5a5a6e;
    --border: #e0dcd0;
    --success: #2e7d32;
    --error: #c62828;
    --radius: 10px;
    --shadow: 0 4px 16px rgba(0, 53, 102, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 53, 102, 0.12);
    --transition: 0.25s ease;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
    background: var(--blue);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
}
.logo:hover { color: var(--yellow); }
.logo i { color: var(--yellow); }

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: rgba(255,255,255,0.9);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: background var(--transition), color var(--transition);
}
.nav-link:hover { background: rgba(255,255,255,0.1); color: var(--yellow); }

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

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}
.lang-switch a { color: rgba(255,255,255,0.7); }
.lang-switch a.active, .lang-switch a:hover { color: var(--yellow); }
.lang-switch span { color: rgba(255,255,255,0.4); }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 6px;
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.2;
}

.btn-primary {
    background: var(--yellow);
    color: var(--blue);
}
.btn-primary:hover {
    background: #f5e04a;
    color: var(--blue-dark);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--blue);
    color: var(--blue);
}
.btn-outline:hover { background: var(--blue); color: var(--white); }

.btn-danger {
    background: var(--error);
    color: var(--white);
}
.btn-danger:hover { background: #b71c1c; }

.btn-sm { padding: 6px 12px; font-size: 0.85rem; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}
.hero h1 { font-size: 2.5rem; margin-bottom: 16px; font-weight: 700; }
.hero-subtitle { font-size: 1.2rem; opacity: 0.9; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Features ---------- */
.features { padding: 64px 0; }
.section-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--blue);
    margin-bottom: 40px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: rgba(238, 210, 2, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--blue);
}
.feature-card h3 { color: var(--blue); margin-bottom: 10px; font-size: 1.15rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- About preview ---------- */
.about-preview {
    padding: 48px 0 64px;
    text-align: center;
}
.about-text { max-width: 640px; margin: 0 auto 24px; color: var(--text-muted); }

/* ---------- Page sections ---------- */
.page-header {
    background: var(--blue);
    color: var(--white);
    padding: 40px 0;
}
.page-header h1 { font-size: 1.8rem; }
.page-content { padding: 40px 0 64px; }
.site-main { flex: 1; }

.content-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.content-card h2 { color: var(--blue); margin-bottom: 20px; font-size: 1.3rem; }

.contact-grid, .profile-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--white);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 53, 102, 0.12);
}

.form-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 8px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 12px; margin-top: 8px; }

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
}
.checkbox-label input { width: auto; }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 44px; }
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
}
.toggle-password:hover { color: var(--blue); }

.form-link { font-size: 0.9rem; }

/* ---------- Auth ---------- */
.auth-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    min-height: calc(100vh - 200px);
}
.auth-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 420px;
}
.auth-card-wide { max-width: 560px; }
.auth-card h1 {
    text-align: center;
    color: var(--blue);
    font-size: 1.5rem;
    margin-bottom: 24px;
}
.auth-card h1 i { color: var(--yellow); margin-right: 8px; }
.auth-desc { text-align: center; color: var(--text-muted); margin-bottom: 20px; font-size: 0.95rem; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Alerts ---------- */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin: 16px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
}
.alert-success { background: #e8f5e9; color: var(--success); border: 1px solid #a5d6a7; }
.alert-error { background: #ffebee; color: var(--error); border: 1px solid #ef9a9a; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--blue);
    color: rgba(255,255,255,0.8);
    padding: 32px 0;
    margin-top: auto;
}
.footer-inner { text-align: center; }
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 12px;
}
.footer-brand i { color: var(--yellow); }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: var(--yellow); }
.footer-copy { font-size: 0.85rem; opacity: 0.7; }

/* ---------- Error pages ---------- */
.error-page { padding: 80px 0; text-align: center; }
.error-content h1 { font-size: 5rem; color: var(--blue); line-height: 1; }
.error-content h2 { color: var(--blue); margin-bottom: 12px; }
.error-content p { color: var(--text-muted); margin-bottom: 24px; }

/* ---------- Admin ---------- */
.admin-body { display: flex; min-height: 100vh; background: #f0ece4; }

.admin-sidebar {
    width: 260px;
    background: var(--blue);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-brand i { color: var(--yellow); }

.sidebar-nav { padding: 16px 12px; flex: 1; overflow-y: auto; }
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: rgba(255,255,255,0.8);
    border-radius: 8px;
    margin-bottom: 4px;
    transition: background var(--transition), color var(--transition);
    font-size: 0.95rem;
}
.sidebar-link:hover, .sidebar-link.active {
    background: rgba(238, 210, 2, 0.15);
    color: var(--yellow);
}
.sidebar-link i { width: 20px; text-align: center; }
.sidebar-divider { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 12px 0; }

.admin-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}

.admin-wrapper {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-topbar {
    background: var(--white);
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 50;
}
.admin-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--blue);
    cursor: pointer;
}
.topbar-title { font-weight: 600; color: var(--blue); flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.topbar-actions .lang-switch a { color: var(--text-muted); }
.topbar-actions .lang-switch a.active { color: var(--blue); font-weight: 600; }
.topbar-user { font-size: 0.9rem; color: var(--text-muted); }

.admin-content { padding: 24px; flex: 1; }

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
}
.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(0, 53, 102, 0.1);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.stat-icon.success { background: rgba(46, 125, 50, 0.1); color: var(--success); }
.stat-icon.danger { background: rgba(198, 40, 40, 0.1); color: var(--error); }
.stat-value { display: block; font-size: 1.6rem; font-weight: 700; color: var(--blue); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

.admin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Tables */
.table-responsive { overflow-x: auto; }
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.table th, .table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.table th {
    background: rgba(0, 53, 102, 0.04);
    font-weight: 600;
    color: var(--blue);
    white-space: nowrap;
}
.table tr:hover td { background: rgba(238, 210, 2, 0.05); }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}
.badge-user { background: #e3f2fd; color: #1565c0; }
.badge-admin { background: #fff3e0; color: #e65100; }
.badge-superadmin { background: #fce4ec; color: #c62828; }
.badge-active { background: #e8f5e9; color: #2e7d32; }
.badge-blocked { background: #ffebee; color: #c62828; }

.actions-cell { white-space: nowrap; }
.inline-form { display: inline; }

.card-toolbar { margin-bottom: 16px; }
.search-form { display: flex; gap: 8px; flex-wrap: wrap; }
.search-form input, .search-form select {
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
}
.search-form input { min-width: 200px; }

.pagination {
    display: flex;
    gap: 6px;
    margin-top: 16px;
    justify-content: center;
}
.pagination a {
    padding: 6px 12px;
    border-radius: 6px;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--blue);
    font-size: 0.9rem;
}
.pagination a.active, .pagination a:hover {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

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

/* ========== Minimal Footer – powered by ABRAMA (bottom right) ========== */
.site-footer {
    background: transparent;
    padding: 16px 0;
    margin-top: auto;
    border-top: 1px solid var(--border);
}
.footer-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.footer-powered {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
.footer-powered strong {
    color: var(--blue);
    font-weight: 700;
}

/* ========== Hero Slider (max 1300px, centered, animated) ========== */
.hero-slider-wrap {
    background: linear-gradient(145deg, #001a33 0%, #003566 50%, #002244 100%);
    padding: 48px 20px 64px;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sky decorations – stars & moon outside the box */
.sky-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.star {
    position: absolute;
    color: var(--yellow);
    font-size: 1.1rem;
    opacity: 0.85;
    animation: twinkle 2.5s ease-in-out infinite;
}
.star-1 { top: 8%; left: 6%; animation-delay: 0s; font-size: 1.4rem; }
.star-2 { top: 18%; right: 10%; animation-delay: 0.4s; font-size: 0.9rem; }
.star-3 { top: 55%; left: 4%; animation-delay: 0.8s; font-size: 1.2rem; }
.star-4 { bottom: 20%; right: 8%; animation-delay: 1.2s; font-size: 1rem; }
.star-5 { top: 30%; left: 12%; animation-delay: 0.6s; font-size: 0.75rem; }
.star-6 { bottom: 12%; left: 18%; animation-delay: 1.5s; font-size: 1.3rem; }
.star-7 { top: 12%; right: 20%; animation-delay: 0.2s; font-size: 0.85rem; }

.moon {
    position: absolute;
    top: 10%;
    right: 5%;
    font-size: 2.8rem;
    color: #f5e6a8;
    opacity: 0.9;
    animation: moonFloat 6s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(238, 210, 2, 0.4);
}

@keyframes twinkle {
    0%, 100% { opacity: 0.4; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.15); }
}
@keyframes moonFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-12px) rotate(5deg); }
}

/* Slides */
.hero-slides {
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-slide {
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeSlide 0.6s ease;
}
.hero-slide.active {
    display: flex;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

/* Rotating box */
.slide-box {
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(238, 210, 2, 0.35);
    border-radius: 20px;
    padding: 48px 56px;
    max-width: 640px;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 40px rgba(238, 210, 2, 0.12), 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: boxRotate 12s linear infinite;
    transform-style: preserve-3d;
}

@keyframes boxRotate {
    0%   { transform: perspective(800px) rotateY(0deg) rotateX(2deg); }
    25%  { transform: perspective(800px) rotateY(4deg) rotateX(-2deg); }
    50%  { transform: perspective(800px) rotateY(0deg) rotateX(2deg); }
    75%  { transform: perspective(800px) rotateY(-4deg) rotateX(-2deg); }
    100% { transform: perspective(800px) rotateY(0deg) rotateX(2deg); }
}

.box-face i {
    font-size: 2.8rem;
    color: var(--yellow);
    margin-bottom: 16px;
    display: block;
    animation: iconPulse 3s ease-in-out infinite;
}
@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

.box-face h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 12px;
    font-weight: 700;
}
.box-face p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 28px;
    line-height: 1.5;
}

/* Slider controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(238, 210, 2, 0.5);
    background: rgba(0, 53, 102, 0.6);
    color: var(--yellow);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}
.slider-btn:hover {
    background: var(--yellow);
    color: var(--blue);
    border-color: var(--yellow);
}
.slider-btn.prev { left: 8px; }
.slider-btn.next { right: 8px; }

.slider-dots {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}
.slider-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}
.slider-dots button.active {
    background: var(--yellow);
    transform: scale(1.3);
}

/* Old hero (unused, keep safe) */
.hero { display: none; }

/* ========== Professional Header / Nav ========== */
.site-header {
    background: var(--blue);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 700;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.logo:hover { color: var(--yellow); }
.logo i { color: var(--yellow); font-size: 1.4rem; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: rgba(255,255,255,0.88);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
    background: rgba(238, 210, 2, 0.15);
    color: var(--yellow);
}

.nav-mobile-extra { display: none; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-outline-header {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.45);
    color: #fff;
    padding: 7px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s;
}
.btn-outline-header:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--blue);
}

.btn-auth-link {
    color: rgba(255,255,255,0.85);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 6px 10px;
}
.btn-auth-link:hover { color: var(--yellow); }

/* Language dropdown with flags */
.lang-dropdown {
    position: relative;
}
.lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 6px 10px;
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s;
}
.lang-current:hover,
.lang-dropdown.open .lang-current {
    background: rgba(255,255,255,0.18);
    border-color: var(--yellow);
}
.flag-img {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.lang-chevron {
    font-size: 0.65rem;
    opacity: 0.7;
    transition: transform 0.2s;
}
.lang-dropdown.open .lang-chevron { transform: rotate(180deg); }

.lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
    min-width: 160px;
    padding: 6px;
    z-index: 1100;
    animation: langFade 0.2s ease;
}
.lang-dropdown.open .lang-menu { display: block; }

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

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
    transition: background 0.15s;
    text-align: left;
}
.lang-option:hover { background: rgba(0, 53, 102, 0.06); }
.lang-option.active {
    background: rgba(238, 210, 2, 0.2);
    color: var(--blue);
    font-weight: 700;
}

/* Smooth language transition */
[data-i18n], [data-i18n-html] {
    transition: opacity 0.15s ease;
}
.i18n-fading {
    opacity: 0.35;
}

.about-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text);
}
.about-body p { margin-bottom: 1em; }

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

/* ========== Toast / Popup notifications ========== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    width: calc(100% - 32px);
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    border-left: 5px solid var(--blue);
    animation: toastIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--text);
}
.toast.toast-out {
    animation: toastOut 0.35s ease forwards;
}
.toast-success { border-left-color: #2e7d32; }
.toast-error { border-left-color: #c62828; }
.toast-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.toast-success .toast-icon { background: #e8f5e9; color: #2e7d32; }
.toast-error .toast-icon { background: #ffebee; color: #c62828; }
.toast-body { flex: 1; padding-top: 6px; }
.toast-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    line-height: 1;
}
.toast-close:hover { color: #333; }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px) scale(0.95); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
    to { opacity: 0; transform: translateX(40px) scale(0.95); }
}

/* Slide editor (admin) */
.slide-editor {
    background: rgba(0, 53, 102, 0.03);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}
.slide-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    color: var(--blue);
}

/* Stronger rotating box animation */
.slide-box.rotating-box {
    animation: boxFloatRotate 10s ease-in-out infinite;
}
@keyframes boxFloatRotate {
    0%   { transform: perspective(900px) rotateY(0deg) rotateX(3deg) translateY(0); }
    25%  { transform: perspective(900px) rotateY(6deg) rotateX(-2deg) translateY(-8px); }
    50%  { transform: perspective(900px) rotateY(0deg) rotateX(3deg) translateY(0); }
    75%  { transform: perspective(900px) rotateY(-6deg) rotateX(-2deg) translateY(-8px); }
    100% { transform: perspective(900px) rotateY(0deg) rotateX(3deg) translateY(0); }
}
