/* 
=========================================
 Machine Learning Portal Design System
 Theme: Cyberpunk Glassmorphism
=========================================
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Orbitron:wght@400;600;700;800;900&display=swap');

:root {
 --bg-base: #03030e;
 --bg-gradient: radial-gradient(circle at 50% 50%, #0c0828 0%, #03030e 100%);
 --bg-panel: rgba(10, 10, 26, 0.75);
 --bg-panel-light: rgba(255, 255, 255, 0.03);
 --border-glow: rgba(139, 92, 246, 0.3);
 --border-muted: rgba(255, 255, 255, 0.08);
 
 --text-main: #f8fafc;
 --text-muted: #94a3b8;
 --text-dark: #0f172a;
 
 --accent-purple: #8b5cf6;
 --accent-teal: #00ffcc;
 --accent-pink: #ff0055;
 --accent-gold: #f59e0b;
 
 --success: #10b981;
 --danger: #ef4444;
 --info: #0ea5e9;
 
 --font-display: 'Orbitron', sans-serif;
 --font-sans: 'Inter', sans-serif;
 
 --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
 --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
 --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.2);
}

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

body {
 font-family: var(--font-sans);
 background: var(--bg-base);
 background-image: var(--bg-gradient);
 background-attachment: fixed;
 color: var(--text-main);
 line-height: 1.6;
 min-height: 100vh;
 overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
 width: 8px;
 height: 8px;
}
::-webkit-scrollbar-track {
 background: rgba(3, 3, 14, 0.5);
}
::-webkit-scrollbar-thumb {
 background: rgba(139, 92, 246, 0.3);
 border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
 background: rgba(0, 255, 204, 0.5);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
 font-family: var(--font-display);
 letter-spacing: 1px;
}

.text-gradient {
 background: linear-gradient(90deg, #ffffff 0%, var(--accent-teal) 50%, var(--accent-purple) 100%);
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
 background: linear-gradient(90deg, #ffe57f 0%, var(--accent-gold) 100%);
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
}

/* Glassmorphism Panel */
.glass-panel {
 background: var(--bg-panel);
 backdrop-filter: blur(20px);
 -webkit-backdrop-filter: blur(20px);
 border: 1px solid var(--border-muted);
 border-radius: 20px;
 box-shadow: var(--shadow-premium);
 padding: 2rem;
 position: relative;
 overflow: hidden;
}

.glass-panel::before {
 content: '';
 position: absolute;
 top: 0; left: 0; right: 0; height: 1px;
 background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

/* Glowing Border Utilities */
.glow-border-purple { border: 1px solid rgba(139, 92, 246, 0.4); box-shadow: 0 0 15px rgba(139, 92, 246, 0.1); }
.glow-border-teal { border: 1px solid rgba(0, 255, 204, 0.4); box-shadow: 0 0 15px rgba(0, 255, 204, 0.1); }

/* Navigation Bar */
.navbar {
 position: sticky;
 top: 0;
 z-index: 100;
 background: rgba(3, 3, 14, 0.7);
 backdrop-filter: blur(15px);
 -webkit-backdrop-filter: blur(15px);
 border-bottom: 1px solid var(--border-muted);
 padding: 1rem 2rem;
 display: flex;
 justify-content: space-between;
 align-items: center;
}

.nav-brand {
 display: flex;
 align-items: center;
 gap: 10px;
 text-decoration: none;
 font-family: var(--font-display);
 font-weight: 800;
 font-size: 1.3rem;
 color: var(--text-main);
}

.nav-brand .brand-logo {
 width: 32px;
 height: 32px;
 border-radius: 8px;
 background: linear-gradient(135deg, var(--accent-purple), var(--accent-teal));
 display: flex;
 align-items: center;
 justify-content: center;
 color: #fff;
 font-weight: bold;
 box-shadow: 0 0 10px rgba(0, 255, 204, 0.4);
}

.nav-links {
 display: flex;
 gap: 1.5rem;
 list-style: none;
}

.nav-links a {
 color: var(--text-muted);
 text-decoration: none;
 font-weight: 500;
 font-size: 0.95rem;
 font-family: var(--font-display);
 transition: var(--transition-smooth);
 padding: 0.5rem 1rem;
 border-radius: 8px;
}

.nav-links a:hover, .nav-links a.active {
 color: var(--accent-teal);
 background: rgba(0, 255, 204, 0.05);
 box-shadow: inset 0 0 5px rgba(0, 255, 204, 0.1);
}

/* Layout Containers */
.container {
 max-width: 1200px;
 margin: 2.5rem auto;
 padding: 0 1.5rem;
}

/* Premium Cards Grid */
.cards-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 2rem;
 margin-top: 2rem;
}

.premium-card {
 background: var(--bg-panel);
 backdrop-filter: blur(15px);
 -webkit-backdrop-filter: blur(15px);
 border: 1px solid var(--border-muted);
 border-radius: 16px;
 padding: 2rem;
 cursor: pointer;
 transition: var(--transition-smooth);
 display: flex;
 flex-direction: column;
 justify-content: space-between;
 text-decoration: none;
 color: inherit;
 position: relative;
 overflow: hidden;
}

.premium-card::after {
 content: '';
 position: absolute;
 bottom: 0; left: 0; width: 100%; height: 3px;
 background: linear-gradient(90deg, var(--accent-purple), var(--accent-teal));
 transform: scaleX(0);
 transform-origin: left;
 transition: var(--transition-smooth);
}

.premium-card:hover {
 transform: translateY(-8px);
 border-color: rgba(0, 255, 204, 0.3);
 box-shadow: 0 12px 30px rgba(0, 255, 204, 0.08), 0 0 15px rgba(139, 92, 246, 0.05);
}

.premium-card:hover::after {
 transform: scaleX(1);
}

.premium-card h3 {
 font-size: 1.3rem;
 margin-bottom: 0.75rem;
 color: #fff;
 transition: var(--transition-smooth);
}

.premium-card:hover h3 {
 color: var(--accent-teal);
}

.premium-card p {
 font-size: 0.95rem;
 color: var(--text-muted);
 margin-bottom: 1.5rem;
 flex-grow: 1;
}

.card-meta {
 display: flex;
 justify-content: space-between;
 align-items: center;
 font-size: 0.8rem;
 font-family: var(--font-display);
 color: var(--text-muted);
 border-top: 1px solid rgba(255, 255, 255, 0.05);
 padding-top: 1rem;
}

.card-meta span {
 display: flex;
 align-items: center;
 gap: 5px;
}

/* Buttons */
.btn-cyber {
 background: linear-gradient(135deg, var(--accent-purple), #7c3aed);
 color: #fff;
 border: none;
 padding: 0.75rem 1.75rem;
 font-size: 0.9rem;
 font-family: var(--font-display);
 font-weight: 700;
 text-transform: uppercase;
 letter-spacing: 1px;
 border-radius: 8px;
 cursor: pointer;
 transition: var(--transition-smooth);
 box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 8px;
 text-decoration: none;
}

.btn-cyber:hover {
 background: linear-gradient(135deg, #7c3aed, var(--accent-purple));
 box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
 transform: translateY(-2px);
}

.btn-cyber-outline {
 background: transparent;
 color: var(--accent-teal);
 border: 2px solid var(--accent-teal);
 padding: 0.65rem 1.65rem;
 font-size: 0.9rem;
 font-family: var(--font-display);
 font-weight: 700;
 text-transform: uppercase;
 letter-spacing: 1px;
 border-radius: 8px;
 cursor: pointer;
 transition: var(--transition-smooth);
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 8px;
 text-decoration: none;
}

.btn-cyber-outline:hover {
 background: rgba(0, 255, 204, 0.1);
 box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
 transform: translateY(-2px);
}

/* LMS/Video Player Layout */
.lms-layout {
 display: grid;
 grid-template-columns: 1fr 340px;
 gap: 2rem;
}

@media (max-width: 992px) {
 .lms-layout {
 grid-template-columns: 1fr;
 }
}

.video-section {
 display: flex;
 flex-direction: column;
 gap: 1.5rem;
}

.video-container {
 position: relative;
 width: 100%;
 padding-top: 56.25%; /* 16:9 Aspect Ratio */
 background: #000;
 border-radius: 16px;
 overflow: hidden;
 border: 1px solid var(--border-muted);
 box-shadow: var(--shadow-premium);
}

.mock-player {
 position: absolute;
 top: 0; left: 0; width: 100%; height: 100%;
 display: flex;
 flex-direction: column;
 justify-content: space-between;
 background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.8) 100%);
 padding: 1.5rem;
 color: #fff;
}

.player-screen {
 flex-grow: 1;
 display: flex;
 align-items: center;
 justify-content: center;
}

.play-btn-large {
 width: 80px;
 height: 80px;
 border-radius: 50%;
 background: rgba(139, 92, 246, 0.85);
 display: flex;
 align-items: center;
 justify-content: center;
 cursor: pointer;
 transition: var(--transition-smooth);
 border: 3px solid #fff;
 box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
}

.play-btn-large:hover {
 transform: scale(1.1);
 background: var(--accent-teal);
 border-color: var(--accent-teal);
 box-shadow: 0 0 35px rgba(0, 255, 204, 0.8);
}

.play-icon {
 width: 0; height: 0;
 border-top: 15px solid transparent;
 border-bottom: 15px solid transparent;
 border-left: 25px solid #fff;
 margin-left: 8px;
}

.mock-player:hover .play-btn-large {
 transform: scale(1.05);
}

.player-controls {
 display: flex;
 flex-direction: column;
 gap: 10px;
}

.progress-bar-wrapper {
 width: 100%;
 height: 6px;
 background: rgba(255, 255, 255, 0.2);
 border-radius: 3px;
 cursor: pointer;
 position: relative;
}

.player-progress {
 height: 100%;
 width: 0%;
 background: linear-gradient(90deg, var(--accent-purple), var(--accent-teal));
 border-radius: 3px;
 position: absolute;
 top: 0; left: 0;
}

.controls-row {
 display: flex;
 justify-content: space-between;
 align-items: center;
}

.left-controls, .right-controls {
 display: flex;
 align-items: center;
 gap: 15px;
}

.control-btn {
 background: transparent;
 border: none;
 color: #fff;
 cursor: pointer;
 font-size: 0.9rem;
 transition: var(--transition-smooth);
}

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

/* Sidebar Playlist */
.playlist-panel {
 display: flex;
 flex-direction: column;
 gap: 1rem;
}

.playlist-header {
 border-bottom: 1px solid var(--border-muted);
 padding-bottom: 1rem;
}

.playlist-items {
 display: flex;
 flex-direction: column;
 gap: 0.75rem;
 max-height: 480px;
 overflow-y: auto;
 padding-right: 5px;
}

.playlist-item {
 background: rgba(255, 255, 255, 0.02);
 border: 1px solid var(--border-muted);
 border-radius: 12px;
 padding: 1rem;
 cursor: pointer;
 transition: var(--transition-smooth);
 display: flex;
 align-items: flex-start;
 gap: 12px;
 position: relative;
}

.playlist-item:hover {
 background: rgba(255, 255, 255, 0.05);
 border-color: rgba(139, 92, 246, 0.3);
}

.playlist-item.active {
 background: rgba(139, 92, 246, 0.1);
 border-color: var(--accent-purple);
}

.playlist-item.completed {
 border-color: rgba(16, 185, 129, 0.3);
}

.playlist-item .item-index {
 font-family: var(--font-display);
 font-size: 0.8rem;
 background: rgba(255, 255, 255, 0.05);
 padding: 2px 6px;
 border-radius: 4px;
 color: var(--text-muted);
}

.playlist-item.active .item-index {
 background: var(--accent-purple);
 color: #fff;
}

.playlist-item .item-details {
 flex-grow: 1;
}

.playlist-item .item-title {
 font-size: 0.9rem;
 font-weight: 600;
 color: #fff;
 margin-bottom: 4px;
}

.playlist-item .item-meta {
 font-size: 0.75rem;
 color: var(--text-muted);
}

.playlist-item .check-wrapper {
 display: flex;
 align-items: center;
 justify-content: center;
}

.check-circle {
 width: 18px;
 height: 18px;
 border-radius: 50%;
 border: 2px solid var(--text-muted);
 display: flex;
 align-items: center;
 justify-content: center;
 transition: var(--transition-smooth);
}

.playlist-item.completed .check-circle {
 background: var(--success);
 border-color: var(--success);
}

.playlist-item.completed .check-circle::after {
 content: '';
 color: #fff;
 font-size: 10px;
 font-weight: bold;
}

/* Quiz Interface Styles */
.quiz-header {
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin-bottom: 2rem;
 padding-bottom: 1rem;
 border-bottom: 1px solid var(--border-muted);
 flex-wrap: wrap;
 gap: 1rem;
}

.quiz-meta-item {
 font-family: var(--font-display);
 font-size: 0.9rem;
 background: rgba(255, 255, 255, 0.03);
 padding: 0.5rem 1rem;
 border-radius: 8px;
 border: 1px solid var(--border-muted);
}

.quiz-layout {
 display: grid;
 grid-template-columns: 1fr 300px;
 gap: 2rem;
}

@media (max-width: 992px) {
 .quiz-layout {
 grid-template-columns: 1fr;
 }
}

.question-box {
 background: var(--bg-panel);
 border: 1px solid var(--border-muted);
 border-radius: 16px;
 padding: 2rem;
 margin-bottom: 2rem;
 transition: var(--transition-smooth);
}

.question-box.active-focus {
 border-color: var(--accent-purple);
 box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.question-text {
 font-size: 1.1rem;
 font-weight: 500;
 margin-bottom: 1.5rem;
}

.options-group {
 display: flex;
 flex-direction: column;
 gap: 10px;
}

.option-label {
 display: flex;
 align-items: center;
 gap: 12px;
 padding: 1rem;
 background: rgba(255, 255, 255, 0.02);
 border: 1px solid var(--border-muted);
 border-radius: 10px;
 cursor: pointer;
 transition: var(--transition-smooth);
 user-select: none;
}

.option-label:hover {
 background: rgba(255, 255, 255, 0.05);
 border-color: rgba(0, 255, 204, 0.3);
}

.option-label.selected {
 background: rgba(139, 92, 246, 0.1);
 border-color: var(--accent-purple);
}

.option-label input[type="radio"] {
 accent-color: var(--accent-purple);
 width: 18px;
 height: 18px;
}

.option-label.correct {
 background: rgba(16, 185, 129, 0.15) !important;
 border-color: var(--success) !important;
}

.option-label.wrong {
 background: rgba(239, 68, 68, 0.15) !important;
 border-color: var(--danger) !important;
}

.explanation-box {
 margin-top: 1.5rem;
 padding: 1.25rem;
 background: rgba(139, 92, 246, 0.05);
 border-left: 4px solid var(--accent-purple);
 border-radius: 0 12px 12px 0;
 font-size: 0.95rem;
}

/* Sidebar Analytics telemetry */
.sidebar-telemetry {
 display: flex;
 flex-direction: column;
 gap: 1.5rem;
 position: sticky;
 top: 100px;
}

.telemetry-card {
 background: var(--bg-panel);
 border: 1px solid var(--border-muted);
 border-radius: 16px;
 padding: 1.5rem;
}

.telemetry-card h3 {
 font-size: 1rem;
 margin-bottom: 1rem;
 color: var(--text-muted);
 border-bottom: 1px solid rgba(255, 255, 255, 0.05);
 padding-bottom: 0.5rem;
}

.telemetry-stat {
 font-size: 2.2rem;
 font-weight: 800;
 color: var(--accent-teal);
 font-family: var(--font-display);
 margin-bottom: 5px;
}

.telemetry-progress-bg {
 width: 100%;
 height: 6px;
 background: rgba(255, 255, 255, 0.1);
 border-radius: 3px;
 overflow: hidden;
}

.telemetry-progress-fill {
 height: 100%;
 width: 0%;
 background: var(--accent-teal);
 transition: var(--transition-smooth);
}

.topic-selector {
 width: 100%;
 background: var(--bg-base);
 border: 1px solid var(--border-muted);
 border-radius: 8px;
 color: var(--text-main);
 padding: 0.75rem;
 font-family: var(--font-sans);
 margin-bottom: 1.5rem;
 outline: none;
}

.topic-selector:focus {
 border-color: var(--accent-purple);
}

/* Modals */
.cyber-modal {
 position: fixed;
 top: 0; left: 0; width: 100%; height: 100%;
 z-index: 1000;
 display: flex;
 align-items: center;
 justify-content: center;
 background: rgba(3, 3, 14, 0.85);
 backdrop-filter: blur(10px);
 opacity: 0;
 pointer-events: none;
 transition: var(--transition-smooth);
}

.cyber-modal.active {
 opacity: 1;
 pointer-events: auto;
}

.cyber-modal-content {
 background: var(--bg-panel);
 border: 2px solid var(--accent-purple);
 border-radius: 24px;
 width: 90%;
 max-width: 850px;
 max-height: 90vh;
 overflow-y: auto;
 box-shadow: 0 0 50px rgba(139, 92, 246, 0.25);
 padding: 2.5rem;
 position: relative;
 transform: scale(0.9);
 transition: var(--transition-smooth);
}

.cyber-modal.active .cyber-modal-content {
 transform: scale(1);
}

.modal-close-btn {
 position: absolute;
 top: 1.5rem; right: 1.5rem;
 background: transparent;
 border: none;
 color: var(--text-muted);
 font-size: 1.5rem;
 cursor: pointer;
 transition: var(--transition-smooth);
}

.modal-close-btn:hover {
 color: var(--accent-pink);
}

.tabs-nav {
 display: flex;
 gap: 10px;
 border-bottom: 1px solid var(--border-muted);
 margin-bottom: 1.5rem;
 overflow-x: auto;
 padding-bottom: 5px;
}

.tab-trigger {
 background: transparent;
 border: none;
 color: var(--text-muted);
 font-family: var(--font-display);
 font-size: 0.8rem;
 font-weight: 700;
 padding: 0.75rem 1.25rem;
 cursor: pointer;
 border-radius: 8px;
 transition: var(--transition-smooth);
 white-space: nowrap;
}

.tab-trigger:hover, .tab-trigger.active {
 color: var(--accent-teal);
 background: rgba(0, 255, 204, 0.05);
}

.tab-content {
 display: none;
}

.tab-content.active {
 display: block;
 animation: fadeIn 0.4s ease-out;
}

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

.grid-analytics {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
 gap: 1rem;
 margin-bottom: 1.5rem;
}

.ana-card {
 background: rgba(255, 255, 255, 0.02);
 border: 1px solid var(--border-muted);
 border-radius: 12px;
 padding: 1.25rem;
 text-align: center;
}

.ana-card h3 {
 font-size: 0.75rem;
 color: var(--text-muted);
 text-transform: uppercase;
 margin-bottom: 8px;
}

.ana-card .val {
 font-size: 1.75rem;
 font-weight: 800;
 font-family: var(--font-display);
 color: var(--accent-teal);
}

/* Projects and Prediction Sandbox */
.sandbox-layout {
 display: grid;
 grid-template-columns: 1.2fr 1fr;
 gap: 2rem;
}

@media (max-width: 992px) {
 .sandbox-layout {
 grid-template-columns: 1fr;
 }
}

.form-group {
 margin-bottom: 1.25rem;
}

.form-group label {
 display: block;
 font-size: 0.85rem;
 font-family: var(--font-display);
 color: var(--accent-teal);
 margin-bottom: 6px;
 text-transform: uppercase;
}

.form-input {
 width: 100%;
 background: rgba(0, 0, 0, 0.4);
 border: 1px solid var(--border-muted);
 border-radius: 8px;
 color: var(--text-main);
 padding: 0.75rem;
 font-size: 1rem;
 outline: none;
 transition: var(--transition-smooth);
}

.form-input:focus {
 border-color: var(--accent-purple);
 box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.form-select {
 width: 100%;
 background: rgba(0, 0, 0, 0.4);
 border: 1px solid var(--border-muted);
 border-radius: 8px;
 color: var(--text-main);
 padding: 0.75rem;
 font-size: 1rem;
 outline: none;
 transition: var(--transition-smooth);
}

.form-select:focus {
 border-color: var(--accent-purple);
}

.prediction-panel {
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
 background: rgba(139, 92, 246, 0.03);
 border: 2px dashed var(--border-glow);
 border-radius: 20px;
 padding: 2.5rem;
 text-align: center;
 min-height: 350px;
}

.prediction-score {
 font-size: 3.5rem;
 font-weight: 900;
 font-family: var(--font-display);
 color: var(--accent-teal);
 margin: 1.5rem 0;
 text-shadow: 0 0 20px rgba(0, 255, 204, 0.4);
}

.prediction-gauge {
 width: 100%;
 height: 12px;
 background: rgba(255, 255, 255, 0.05);
 border-radius: 6px;
 overflow: hidden;
 margin-bottom: 1.5rem;
}

.prediction-gauge-bar {
 height: 100%;
 width: 0%;
 background: linear-gradient(90deg, var(--accent-purple), var(--accent-teal));
 transition: var(--transition-smooth);
}

.badge {
 display: inline-block;
 padding: 4px 10px;
 border-radius: 4px;
 font-size: 0.75rem;
 font-weight: bold;
 text-transform: uppercase;
}

.badge-purple { background: rgba(139, 92, 246, 0.15); color: var(--accent-purple); border: 1px solid rgba(139, 92, 246, 0.3); }
.badge-teal { background: rgba(0, 255, 204, 0.15); color: var(--accent-teal); border: 1px solid rgba(0, 255, 204, 0.3); }
.badge-success { background: rgba(16, 185, 129, 0.15); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }

/* History Records */
.archive-list {
 display: flex;
 flex-direction: column;
 gap: 0.75rem;
 max-height: 350px;
 overflow-y: auto;
}

.archive-item {
 background: rgba(255, 255, 255, 0.01);
 border: 1px solid var(--border-muted);
 border-radius: 8px;
 padding: 0.75rem 1.25rem;
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
 gap: 10px;
 text-align: center;
 align-items: center;
}

.archive-item .label {
 font-size: 0.7rem;
 color: var(--text-muted);
 text-transform: uppercase;
}

.archive-item .val {
 font-weight: bold;
 font-size: 0.95rem;
}

/* VIP Access Control Modal Styles */
.access-modal-overlay {
 position: fixed;
 top: 0;
 left: 0;
 width: 100vw;
 height: 100vh;
 background: rgba(5, 7, 15, 0.85);
 backdrop-filter: blur(12px);
 -webkit-backdrop-filter: blur(12px);
 z-index: 10000;
 display: flex;
 justify-content: center;
 align-items: center;
 opacity: 0;
 pointer-events: none;
 transition: opacity 0.4s ease;
}

.access-modal-overlay.active {
 opacity: 1;
 pointer-events: auto;
}

.access-modal-card {
 background: linear-gradient(135deg, rgba(20, 26, 46, 0.95), rgba(10, 14, 26, 0.98));
 border: 1px solid rgba(139, 92, 246, 0.4);
 box-shadow: 0 0 40px rgba(139, 92, 246, 0.25), 0 0 80px rgba(0, 255, 204, 0.1);
 border-radius: 20px;
 padding: 2.5rem;
 max-width: 480px;
 width: 90%;
 text-align: center;
 transform: scale(0.9);
 transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.access-modal-icon {
 font-size: 3rem;
 margin-bottom: 1rem;
 display: inline-block;
 animation: pulseLock 2s infinite ease-in-out;
}

@keyframes pulseLock {
 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5)); }
 50% { transform: scale(1.1); filter: drop-shadow(0 0 20px rgba(0, 255, 204, 0.8)); }
}

.access-modal-title {
 font-family: var(--font-display);
 font-size: 1.5rem;
 font-weight: 800;
 margin-bottom: 0.75rem;
 background: linear-gradient(135deg, #fff 0%, var(--accent-purple) 100%);
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
}

.access-modal-desc {
 color: var(--text-muted);
 font-size: 0.9rem;
 line-height: 1.5;
 margin-bottom: 1.5rem;
}

.access-input-group {
 display: flex;
 gap: 0.5rem;
 margin-bottom: 1rem;
}

.access-input {
 flex: 1;
 background: rgba(0, 0, 0, 0.4);
 border: 1px solid var(--border-muted);
 border-radius: 10px;
 padding: 0.75rem 1rem;
 color: #fff;
 font-family: var(--font-display);
 font-size: 1rem;
 text-align: center;
 letter-spacing: 2px;
 text-transform: uppercase;
 transition: border-color 0.3s;
}

.access-input:focus {
 outline: none;
 border-color: var(--accent-teal);
 box-shadow: 0 0 15px rgba(0, 255, 204, 0.2);
}

.access-btn-unlock {
 background: linear-gradient(135deg, var(--accent-purple), #6366f1);
 color: #fff;
 border: none;
 border-radius: 10px;
 padding: 0.75rem 1.5rem;
 font-family: var(--font-display);
 font-weight: 700;
 font-size: 0.95rem;
 cursor: pointer;
 transition: transform 0.2s, box-shadow 0.2s;
}

.access-btn-unlock:hover {
 transform: translateY(-2px);
 box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.access-modal-error {
 color: #ef4444;
 font-size: 0.85rem;
 min-height: 1.25rem;
 margin-top: 0.5rem;
 font-weight: bold;
}
