/* =====================================================
   Riyal Life Services India - Premium Custom Styles
   ===================================================== */

:root {
    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --primary-dark: #1e40af;
    --secondary: #f59e0b;
    --accent: #10b981;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --info: #06b6d4;
    --dark: #111827;
    --gray: #6b7280;
    --light-bg: #f8fafc;
    --border: #e5e7eb;
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.05);
    --shadow-xl: 0 25px 50px rgba(0,0,0,0.15);
}

* { box-sizing: border-box; }

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: #fff;
    overflow-x: hidden;
}

/* =========================  TOP BAR  ========================= */
.top-bar {
    background: var(--gradient-primary);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
}
.top-bar .social-links a {
    color: white;
    margin-left: 12px;
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s;
}
.top-bar .social-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* =========================  NAVBAR  ========================= */
.main-navbar {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}
.main-navbar.scrolled { padding: 10px 0; box-shadow: var(--shadow-lg); }

.logo-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
}
.logo-circle.logo-light { background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.3); }

.brand-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
    line-height: 1;
}
.brand-tag { font-size: 0.7rem; color: var(--gray); font-weight: 500; }

.navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
    background: rgba(59,130,246,0.08);
}

/* =========================  BUTTONS  ========================= */
.btn-gradient {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}
.btn-gradient:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59,130,246,0.4);
}

.btn-outline-primary {
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 8px 22px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* =========================  HERO  ========================= */
.hero-section {
    background: var(--gradient-hero);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}
.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}
.hero-section h1 span {
    background: linear-gradient(90deg, #fbbf24, #fca5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-section p {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}
.hero-buttons { position: relative; z-index: 2; }
.hero-buttons .btn {
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 12px;
    font-weight: 600;
}
.hero-buttons .btn-light {
    background: white;
    color: var(--primary);
    border: none;
}
.hero-buttons .btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.hero-buttons .btn-outline-light { border: 2px solid rgba(255,255,255,0.8); }

.hero-stats {
    position: relative;
    z-index: 2;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}
.hero-stat h3 { font-size: 2.5rem; font-weight: 800; margin-bottom: 0; }
.hero-stat p { opacity: 0.8; font-size: 0.9rem; margin-bottom: 0; }

.hero-image {
    position: relative;
    z-index: 2;
}
.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-5deg);
}

/* =========================  PHOTOS BUNCH / CAROUSEL  ========================= */
.photos-bunch {
    padding: 60px 0 40px;
    background: var(--light-bg);
}
.carousel-photo {
    height: 450px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}
.carousel-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
}
.carousel-caption { text-align: left; left: 5%; bottom: 30px; right: 5%; }
.carousel-caption h3 { font-weight: 700; font-size: 2rem; }

/* =========================  SECTION TITLES  ========================= */
.section {
    padding: 80px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title .subtitle {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(59,130,246,0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
}
.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* =========================  UPDATES TICKER  ========================= */
.updates-ticker {
    background: var(--gradient-secondary);
    color: white;
    padding: 15px 0;
    overflow: hidden;
}
.updates-ticker .ticker-label {
    background: white;
    color: var(--secondary);
    padding: 4px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-right: 20px;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.ticker-wrap { display: flex; align-items: center; overflow: hidden; }
.ticker-content {
    display: flex;
    gap: 50px;
    animation: scroll-left 30s linear infinite;
    white-space: nowrap;
}
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-content a { color: white; text-decoration: none; font-weight: 500; }
.ticker-content a:hover { text-decoration: underline; }

/* =========================  SERVICES  ========================= */
.service-card {
    background: white;
    border-radius: 16px;
    padding: 30px 25px;
    height: 100%;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}
.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.service-card:nth-child(2n) .service-icon { background: var(--gradient-secondary); }
.service-card:nth-child(3n) .service-icon { background: linear-gradient(135deg, #10b981, #06b6d4); }
.service-card h5 { font-weight: 700; margin-bottom: 12px; color: var(--dark); }
.service-card p { color: var(--gray); font-size: 0.95rem; margin-bottom: 0; }

/* =========================  BENEFITS / VISION / MISSION  ========================= */
.feature-box {
    background: white;
    padding: 35px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    height: 100%;
    text-align: center;
}
.feature-box:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.feature-box .icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(59,130,246,0.1);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
}
.feature-box:nth-child(2) .icon-wrap { background: rgba(245,158,11,0.1); color: var(--secondary); }
.feature-box:nth-child(3) .icon-wrap { background: rgba(16,185,129,0.1); color: var(--success); }
.feature-box:nth-child(4) .icon-wrap { background: rgba(239,68,68,0.1); color: var(--danger); }
.feature-box h5 { font-weight: 700; margin-bottom: 12px; }
.feature-box p { color: var(--gray); font-size: 0.95rem; }

/* =========================  PHOTO GALLERY  ========================= */
.gallery-bg { background: var(--light-bg); }
.gallery-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item::after {
    content: '\F52A';
    font-family: 'bootstrap-icons';
    position: absolute;
    inset: 0;
    background: rgba(30,58,138,0.7);
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-item:hover::after { opacity: 1; }

/* =========================  VIDEO  ========================= */
.video-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 16/9;
    background: var(--dark);
}
.video-wrapper iframe { width: 100%; height: 100%; border: none; }

/* =========================  VACANCY  ========================= */
.vacancy-card {
    background: white;
    border-radius: 14px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border-left: 4px solid var(--primary);
}
.vacancy-card:hover { transform: translateX(5px); box-shadow: var(--shadow-lg); }
.vacancy-card h5 { font-weight: 700; color: var(--dark); }
.vacancy-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(16,185,129,0.1);
    color: var(--success);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* =========================  INSTRUCTIONS  ========================= */
.instruction-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}
.instruction-list li {
    counter-increment: step-counter;
    padding: 15px 15px 15px 60px;
    position: relative;
    margin-bottom: 12px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--primary);
}
.instruction-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* =========================  CONTACT  ========================= */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}
.form-control, .form-select {
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.form-label { font-weight: 600; color: var(--dark); margin-bottom: 6px; }

/* =========================  PUNCHLINE  ========================= */
.punchline-section {
    background: var(--gradient-primary);
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.punchline-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.punchline-text {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    position: relative;
    z-index: 2;
}
.punchline-text .devnagari {
    display: inline-block;
    margin: 0 10px;
}
.punchline-text .accent {
    background: linear-gradient(90deg, #fbbf24, #fca5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================  FOOTER  ========================= */
.main-footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}
.footer-title {
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}
.footer-links a:hover { color: white; padding-left: 5px; }
.footer-contact { list-style: none; padding: 0; }
.footer-contact li {
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
    font-size: 0.9rem;
}
.footer-contact i {
    color: var(--primary-light);
    margin-right: 10px;
    width: 20px;
}
.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 30px 0 20px;
}
.social-links-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    margin-right: 8px;
    text-decoration: none;
    transition: all 0.3s;
}
.social-links-footer a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* =========================  BACK TO TOP  ========================= */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-back-to-top:hover { transform: translateY(-5px); }
.btn-back-to-top.show { display: flex; }

/* =========================  AUTH PAGES  ========================= */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.auth-wrapper::before,
.auth-wrapper::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.auth-wrapper::before { width: 500px; height: 500px; top: -200px; left: -200px; }
.auth-wrapper::after  { width: 400px; height: 400px; bottom: -150px; right: -150px; }

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
    z-index: 2;
}
.auth-header {
    background: var(--gradient-primary);
    color: white;
    padding: 30px;
    text-align: center;
}
.auth-header h2 { font-weight: 700; margin-bottom: 6px; }
.auth-body { padding: 40px 35px; }

.input-group-text {
    background: var(--light-bg);
    border: 2px solid var(--border);
    border-right: none;
    color: var(--primary);
}
.input-group .form-control { border-left: none; }

/* =========================  DASHBOARD  ========================= */
.dashboard-wrapper { background: var(--light-bg); min-height: 100vh; }
.sidebar {
    background: var(--dark);
    height: 100vh;
    width: 260px;
    padding: 20px 0 40px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: transform 0.3s;
    overflow-y: auto;
    overflow-x: hidden;
    /* Custom scrollbar for dark sidebar */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
}
.sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }
.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 15px;
}
.sidebar-menu { list-style: none; padding: 0; margin: 0; }
.sidebar-menu li.sidebar-section {
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    font-weight: 700;
    padding: 14px 20px 6px;
}
.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}
.sidebar-menu li a i { margin-right: 12px; font-size: 1.1rem; }
.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    color: white;
    background: rgba(59,130,246,0.15);
    border-left-color: var(--primary-light);
}

.main-content { margin-left: 260px; padding: 25px; transition: all 0.3s; }

.dashboard-header {
    background: white;
    padding: 20px 25px;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.stat-card {
    background: white;
    border-radius: 14px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
    transition: all 0.3s;
}
.stat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.stat-card .stat-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    background: rgba(59,130,246,0.1);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 15px;
}
.stat-card h3 { font-size: 2rem; font-weight: 700; margin-bottom: 0; }
.stat-card p { color: var(--gray); font-size: 0.9rem; margin-bottom: 0; }

.content-card {
    background: white;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    padding: 25px;
}
.content-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}
.content-card-header h5 { font-weight: 700; margin: 0; }

.table thead th {
    background: var(--light-bg);
    color: var(--dark);
    font-weight: 600;
    border: none;
    padding: 14px 15px;
}
.table tbody td { padding: 14px 15px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.badge-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-active { background: rgba(16,185,129,0.1); color: var(--success); }
.badge-inactive { background: rgba(239,68,68,0.1); color: var(--danger); }
.badge-pending { background: rgba(245,158,11,0.1); color: var(--warning); }

/* =========================  RESPONSIVE  ========================= */
@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .hero-section h1 { font-size: 2.2rem; }
    .punchline-text { font-size: 1.8rem; }
    .section { padding: 60px 0; }
}
@media (max-width: 576px) {
    .hero-section { padding: 60px 0 40px; }
    .hero-section h1 { font-size: 1.8rem; }
    .section-title h2 { font-size: 1.8rem; }
    .punchline-text { font-size: 1.4rem; }
    .auth-body { padding: 30px 20px; }
}

/* =========================  ANIMATIONS  ========================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeInUp 0.6s ease forwards; }

/* =========================  UTILITIES  ========================= */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.bg-light-custom { background: var(--light-bg); }
.cursor-pointer { cursor: pointer; }

/* ============================================================
   SOFT TOAST NOTIFICATIONS
   ============================================================ */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}
.soft-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: white;
    padding: 14px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08);
    min-width: 300px;
    pointer-events: auto;
    transform: translateX(420px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid var(--primary, #3b82f6);
}
.soft-toast.show { transform: translateX(0); opacity: 1; }
.soft-toast-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 700;
}
.soft-toast-body {
    flex: 1;
    color: var(--dark, #0f172a);
    font-size: 0.92rem;
    line-height: 1.45;
    padding-top: 2px;
}
.soft-toast-close {
    background: none;
    border: none;
    font-size: 1.35rem;
    line-height: 1;
    color: var(--gray, #6b7280);
    cursor: pointer;
    padding: 0;
    margin-left: 6px;
    align-self: flex-start;
    transition: color 0.2s;
}
.soft-toast-close:hover { color: var(--dark, #0f172a); }
.soft-toast-success { border-left-color: #10b981; }
.soft-toast-success .soft-toast-icon { background: #10b981; }
.soft-toast-error   { border-left-color: #ef4444; }
.soft-toast-error   .soft-toast-icon { background: #ef4444; }
.soft-toast-warning { border-left-color: #f59e0b; }
.soft-toast-warning .soft-toast-icon { background: #f59e0b; }
.soft-toast-info    { border-left-color: #3b82f6; }
.soft-toast-info    .soft-toast-icon { background: #3b82f6; }

@media (max-width: 576px) {
    #toast-container { left: 10px; right: 10px; max-width: none; }
    .soft-toast { min-width: 0; transform: translateY(-100px); }
    .soft-toast.show { transform: translateY(0); }
}

/* ============================================================
   SOFT MODAL (replaces window.confirm)
   ============================================================ */
.soft-modal-overlay {
    position: fixed;
    inset: 0;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s;
}
.soft-modal-overlay.show { opacity: 1; }
.soft-modal {
    background: white;
    border-radius: 16px;
    max-width: 450px;
    width: 100%;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}
.soft-modal-overlay.show .soft-modal { transform: scale(1); }
.soft-modal-header {
    padding: 20px 24px 8px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--dark, #0f172a);
}
.soft-modal-body {
    padding: 8px 24px 20px;
    color: var(--gray, #6b7280);
    line-height: 1.6;
}
.soft-modal-actions {
    padding: 16px 24px;
    background: var(--light-bg, #f9fafb);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 600px;
    margin: 0 auto;
    background: var(--dark, #0f172a);
    color: white;
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    z-index: 9999;
    transform: translateY(200px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
}
.cookie-icon {
    font-size: 2rem;
    flex-shrink: 0;
    color: var(--secondary, #f59e0b);
}
.cookie-text { flex: 1; }
.cookie-text strong { display: block; margin-bottom: 4px; }
.cookie-text p { margin: 0; font-size: 0.85rem; opacity: 0.85; line-height: 1.4; }
.cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
@media (max-width: 576px) {
    .cookie-banner-content { flex-direction: column; text-align: center; }
    .cookie-actions { width: 100%; justify-content: center; }
}

/* ============================================================
   UPDATES MODAL LIST
   ============================================================ */
.update-list-item {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--border, #e5e7eb);
    margin-bottom: 10px;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--dark, #0f172a);
    display: block;
}
.update-list-item:hover {
    border-color: var(--primary, #3b82f6);
    background: rgba(59,130,246,0.03);
    color: var(--dark, #0f172a);
}
.update-list-item small {
    color: var(--gray, #6b7280);
    display: block;
    margin-top: 4px;
}

/* ============================================================
   EXAM ANTI-CHEAT BANNER
   ============================================================ */
.exam-anticheat-warning {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.exam-anticheat-warning .warning-icon {
    font-size: 1.8rem;
    color: #f59e0b;
    flex-shrink: 0;
}
