/* =========================================================================
   DMK STRATEGIC BRIEFING - STYLE SYSTEM
   Vanilla CSS Styling | Dark Mode & Glassmorphism Aesthetic
   ========================================================================= */

:root {
    /* Color Palette */
    --bg-base: #0a0a0a;
    --bg-surface: #121212;
    --bg-card: rgba(20, 20, 20, 0.4);
    --bg-card-hover: rgba(40, 20, 20, 0.65);
    
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(230, 46, 46, 0.35);
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-primary: #e62e2e;
    --accent-primary-rgb: 230, 46, 46;
    --accent-hover: #b30000;
    
    --error-color: #ef4444;
    --success-color: #10b981;
    
    /* Layout Variables */
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --border-radius-lg: 16px;
    --border-radius-md: 10px;
    --border-radius-sm: 6px;
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.15s ease;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(230, 46, 46, 0.08) 0%, transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.008) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.008) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    color: var(--text-primary);
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Common UI Elements & Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-hover) 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(230, 46, 46, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

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

/* =========================================================================
   1. PASSWORD LOCK SCREEN
   ========================================================================= */
.overlay-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-base);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.overlay-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.login-glow-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    pointer-events: none;
}

.login-glow-1 {
    background: var(--accent-primary);
    top: 15%;
    left: 20%;
    animation: floatGlow 12s infinite ease-in-out;
}

.login-glow-2 {
    background: #b30000;
    bottom: 15%;
    right: 20%;
    animation: floatGlow 12s infinite ease-in-out reverse;
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -40px) scale(1.1); }
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 90%;
    max-width: 440px;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.lock-icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(230, 46, 46, 0.1);
    border: 1px solid rgba(230, 46, 46, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(230, 46, 46, 0.2);
}

.lock-svg {
    width: 28px;
    height: 28px;
}

.login-card h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

#password-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 14px 16px;
    font-size: 16px;
    color: var(--text-primary);
    outline: none;
    text-align: center;
    letter-spacing: 4px;
    transition: var(--transition-fast);
}

#password-input:focus {
    border-color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.5);
}

.btn-login {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.error-message {
    color: var(--error-color);
    font-size: 13px;
    margin-top: 14px;
    display: none;
}

/* Shake Animation for incorrect password */
.shake {
    animation: shakeAnim 0.4s ease-in-out;
}

@keyframes shakeAnim {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.login-footer {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

/* =========================================================================
   2. MAIN DASHBOARD WRAPPER
   ========================================================================= */
#dashboard-wrapper {
    max-width: 1500px;
    margin: 0 auto;
    padding: 30px 20px;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    gap: 30px;
}

.dashboard-sidebar {
    width: 250px;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px 20px;
    backdrop-filter: blur(12px);
    height: fit-content;
    position: sticky;
    top: 30px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-brand h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
}

.menu-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    padding-left: 8px;
}

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

.nav-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.nav-item.active .nav-btn {
    background: rgba(230, 46, 46, 0.1);
    color: var(--accent-primary);
    border-left: 3px solid var(--accent-primary);
}

.nav-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.dashboard-main-content {
    flex-grow: 1;
    min-width: 0;
}

.dashboard-hidden {
    display: none;
    opacity: 0;
}

/* Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

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

.logo-indicator {
    position: relative;
    width: 14px;
    height: 14px;
}

.ping-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    top: 2px;
    left: 2px;
    background-color: var(--success-color);
    border-radius: 50%;
}

.ping-ring {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid var(--success-color);
    border-radius: 50%;
    animation: ping 1.5s infinite ease-out;
}

@keyframes ping {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.logo-text h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.logo-text span {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Views Switcher */
.toggle-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: var(--border-radius-md);
    display: inline-flex;
    align-items: center;
}

.toggle-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.toggle-btn:hover {
    color: var(--text-primary);
}

.toggle-btn.active {
    background: var(--bg-surface);
    color: var(--accent-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.last-updated {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.lock-portal-btn {
    padding: 10px;
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
}

.lock-portal-btn:hover {
    color: var(--error-color);
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

/* Stats Overview */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.policy-stat { background: rgba(168, 85, 247, 0.15); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.25); }
.judicial-stat { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.25); }
.infrastructure-stat { background: rgba(20, 184, 166, 0.15); color: #14b8a6; border: 1px solid rgba(20, 184, 166, 0.25); }
.agriculture-stat { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.25); }

.stat-icon svg {
    width: 22px;
    height: 22px;
}

.stat-data h3 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
}

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

/* Filters & Search Control Bar */
.filter-controls-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 16px 20px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.search-box-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

#search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 12px 16px 12px 48px;
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-fast);
}

#search-input:focus {
    border-color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

.filters-pills-scroll {
    overflow-x: auto;
    width: 100%;
    scrollbar-width: thin;
}

.filters-pills-scroll::-webkit-scrollbar {
    height: 4px;
}

.filters-container {
    display: flex;
    gap: 8px;
    padding-bottom: 4px;
    width: max-content;
}

.filter-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.filter-pill.active {
    background: var(--pill-color, var(--accent-primary));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* =========================================================================
   A. TILE GRID VIEW
   ========================================================================= */
.view-panel {
    display: none;
}

.view-panel.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

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

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Issue Card Grid Tile */
.issue-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card-thumbnail-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: var(--bg-surface);
}

.card-thumbnail {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.issue-card:hover .card-thumbnail {
    transform: scale(1.08);
}

.card-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-category {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 12px;
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.badge-sno {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3px 8px;
    border-radius: var(--border-radius-sm);
    backdrop-filter: blur(4px);
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-date {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-read-more {
    font-size: 12px;
    color: var(--accent-primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-read-more svg {
    transition: transform 0.2s ease;
}

.issue-card:hover .card-read-more svg {
    transform: translateX(4px);
}

/* Issue Card Hover State */
.issue-card:hover {
    transform: translateY(-6px);
    background-color: var(--bg-card-hover);
    border-color: var(--border-glow-color, var(--border-hover));
    box-shadow: 0 10px 25px rgba(var(--accent-primary-rgb), 0.15);
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    display: none;
}

.no-results svg {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.no-results p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* =========================================================================
   B. CAROUSEL SLIDER VIEW
   ========================================================================= */
.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 30px;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.carousel-btn:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
    max-width: 700px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 400px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
}

.carousel-slide:hover {
    border-color: var(--accent-primary);
}

.carousel-slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.carousel-slide-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(6, 9, 19, 0.98) 0%, rgba(6, 9, 19, 0.6) 50%, transparent 100%);
    z-index: 2;
}

.carousel-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 3;
    display: flex;
    flex-direction: column;
}

.carousel-slide-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.4;
}

.carousel-slide-category {
    font-size: 13px;
    color: var(--accent-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.swipe-btn:hover {
    transform: scale(1.1);
}

.btn-skip {
    color: var(--error-color);
}
.btn-skip:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-detail {
    color: var(--success-color);
}
.btn-detail:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.btn-rewind {
    width: 48px;
    height: 48px;
    color: var(--text-secondary);
}
.btn-rewind:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.swipe-counter {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Deck Empty Screen state */
.deck-empty {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
}

.deck-empty svg {
    color: var(--success-color);
    margin-bottom: 16px;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.2));
}

.deck-empty h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 8px;
}

.deck-empty p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* =========================================================================
   3. DETAILED VIEW MODAL
   ========================================================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

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

.modal-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 680px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

.modal-hero-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: var(--border-radius-lg);
    margin-bottom: 20px;
}

.modal-hero-image::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--bg-surface) 0%, transparent 100%);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

.modal-category-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 20px;
    color: #ffffff;
    z-index: 5;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.modal-id-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    z-index: 5;
}

.modal-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

@media (max-width: 768px) {
    .modal-content-grid {
        grid-template-columns: 1fr;
    }
}

.modal-dates {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--border-radius-md);
}

.date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.date-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.modal-section {
    margin-bottom: 24px;
}

.section-heading {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-primary);
    margin-bottom: 12px;
}

.modal-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.modal-action-row {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    justify-content: flex-end;
}

.btn-source-link {
    width: 100%;
    justify-content: center;
}

/* Modal Navigation Buttons */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 200;
}

.modal-nav-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.modal-prev {
    left: 40px;
}

.modal-next {
    right: 40px;
}

@media (max-width: 1000px) {
    .modal-prev { left: 10px; }
    .modal-next { right: 10px; }
}

@media (max-width: 768px) {
    .modal-nav-btn {
        width: 40px;
        height: 40px;
    }
    .modal-nav-btn svg {
        width: 20px;
        height: 20px;
    }
}

.btn-source-link {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.btn-source-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

/* =========================================================================
   4. RESPONSIVE MEDIA QUERIES
   ========================================================================= */
@media (max-width: 768px) {
    #dashboard-wrapper {
        padding: 20px 12px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toggle-container {
        justify-content: center;
        width: 100%;
    }
    
    .header-actions {
        justify-content: space-between;
        width: 100%;
    }
    
    .stats-overview {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .filter-controls-container {
        padding: 14px;
    }
    
    .grid-layout {
        gap: 16px;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .deck-container {
        height: 480px;
    }
    
    .modal-hero-image {
        height: 200px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-dates {
        gap: 16px;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .stats-overview {
        grid-template-columns: 1fr;
    }
    
    .login-card {
        padding: 24px;
    }
/* =========================================================================
   7. TOAST NOTIFICATION
   ========================================================================= */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--accent-primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

@media (max-width: 768px) {
    #dashboard-wrapper {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
        position: static;
    }
}
