/* 
========================================================================
   AuditoAI - Premium Enterprise Multi-Tenant Dashboard Stylesheet
   Designed with Cyberpunk Glassmorphic Theme & Glow Micro-interactions
========================================================================
*/

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

:root {
    /* Color Tokens */
    --bg-dark: #07090e;
    --bg-card: rgba(13, 19, 33, 0.75);
    --bg-card-hover: rgba(22, 31, 54, 0.9);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(0, 242, 254, 0.2);
    
    --primary: #00f2fe;
    --primary-glow: rgba(0, 242, 254, 0.2);
    --secondary: #8b5cf6;
    --secondary-glow: rgba(139, 92, 246, 0.2);
    
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.15);
    --warning: #f59e0b;
    --warning-glow: rgba(245, 158, 11, 0.15);
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.15);
    
    --text-main: #e2e8f0;
    --text-muted: #64748b;
    --text-bright: #ffffff;
    
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Globals */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 5% 10%, rgba(0, 242, 254, 0.04) 0%, transparent 30%),
        radial-gradient(circle at 95% 90%, rgba(139, 92, 246, 0.04) 0%, transparent 30%),
        linear-gradient(180deg, #07090e 0%, #0d121f 100%);
    background-attachment: fixed;
    line-height: 1.5;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

/* Application Shell Structure */
#app-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

/* Sidebar Drawer Panel */
aside.sidebar {
    background: rgba(8, 11, 18, 0.95);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(20px);
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.brand-logo svg {
    width: 22px;
    height: 22px;
    stroke: var(--text-bright);
    fill: none;
    stroke-width: 2.5;
}

.brand h1 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, var(--text-bright), #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 1px solid transparent;
}

.nav-item svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.nav-item:hover {
    color: var(--primary);
    background: rgba(0, 242, 254, 0.03);
}

.nav-item.active {
    color: var(--text-bright);
    background: linear-gradient(90deg, rgba(0, 242, 254, 0.12) 0%, rgba(139, 92, 246, 0.03) 100%);
    border-color: rgba(0, 242, 254, 0.2);
    box-shadow: inset 0 0 8px rgba(0, 242, 254, 0.05);
}

.nav-item.active svg {
    color: var(--primary);
    filter: drop-shadow(0 0 5px var(--primary));
}

.sidebar-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--secondary), #ec4899);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.user-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-bright);
}

.user-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Main Area Layout Content */
main.main-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    padding: 2rem;
}

header.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-shrink: 0;
}

.page-title h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-bright);
    letter-spacing: -0.5px;
}

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

.top-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ai-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 242, 254, 0.06);
    border: 1px solid rgba(0, 242, 254, 0.25);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.ai-pulse {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--primary);
    animation: pulse 1.8s infinite;
}

/* Glass Panels Containers styling */
.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transition: var(--transition-smooth);
}

.glass-panel:hover::before {
    left: 100%;
    transition: all 1.2s ease-in-out;
}

/* Analytical Metrics Cards */
.metrics-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.metric-circle-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem;
}

.svg-dial-container {
    width: 84px;
    height: 84px;
    position: relative;
    margin-bottom: 0.75rem;
}

.svg-dial-container svg {
    width: 84px;
    height: 84px;
    transform: rotate(-90deg);
}

.svg-dial-container circle {
    fill: none;
    stroke-width: 6;
}

.svg-dial-container .bg {
    stroke: rgba(255, 255, 255, 0.04);
}

.svg-dial-container .fill {
    stroke: var(--primary);
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s ease-in-out;
}

.svg-dial-container .score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-bright);
}

.metric-circle-card[data-metric="greeting"] .fill { stroke: var(--primary); }
.metric-circle-card[data-metric="verification"] .fill { stroke: var(--secondary); }
.metric-circle-card[data-metric="compliance"] .fill { stroke: var(--success); }
.metric-circle-card[data-metric="closing"] .fill { stroke: var(--warning); }

.metric-circle-card h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.15rem;
}

.metric-circle-card p {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Audio Player and dynamic waveforms */
.waveform-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.visualizer-container {
    height: 80px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    position: relative;
}

.visualizer-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.custom-audio-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.btn-play-pause {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: var(--text-bright);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(0, 242, 254, 0.2);
}

.btn-play-pause:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 242, 254, 0.3);
}

.btn-play-pause svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    stroke: none;
}

.timeline-progress-slider {
    flex-grow: 1;
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.timeline-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    width: 0%;
}

.playback-time {
    font-size: 0.8rem;
    font-family: 'Fira Code', monospace;
    color: var(--text-muted);
}

/* Transcripts Scrollers Flow Layout */
.auditor-analysis-workspace {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
}

.transcript-panel {
    display: flex;
    flex-direction: column;
    height: 500px;
}

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

.transcript-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-bright);
}

.transcript-scroller {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transcript-bubble {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 85%;
    padding: 0.85rem 1.15rem;
    border-radius: var(--border-radius-sm);
    position: relative;
    animation: fadeIn 0.4s ease-out;
    cursor: pointer;
}

.transcript-bubble.agent {
    align-self: flex-start;
    background: rgba(0, 242, 254, 0.04);
    border: 1px solid rgba(0, 242, 254, 0.12);
    border-left-width: 4px;
    border-left-color: var(--primary);
}

.transcript-bubble.customer {
    align-self: flex-end;
    background: rgba(139, 92, 246, 0.04);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-right-width: 4px;
    border-right-color: var(--secondary);
}

.bubble-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agent .bubble-meta { color: var(--primary); }
.customer .bubble-meta { color: var(--secondary); }

.bubble-text {
    font-size: 0.88rem;
    color: var(--text-main);
    word-break: break-word;
}

.bubble-text mark {
    background: rgba(16, 185, 129, 0.2);
    border-bottom: 2px solid var(--success);
    color: var(--text-bright);
    padding: 1px 4px;
    border-radius: 2px;
}

/* Dynamic Forms & Input Styling */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.85rem 1rem;
    color: var(--text-bright);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.input-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

/* Custom Table grids */
.table-responsive {
    overflow-x: auto;
    width: 100%;
    margin-bottom: 1rem;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

table.data-table th {
    padding: 1rem;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

table.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

table.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

/* Badges Status Labels */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success { background: var(--success-glow); color: var(--success); }
.badge-warning { background: var(--warning-glow); color: var(--warning); }
.badge-danger { background: var(--danger-glow); color: var(--danger); }
.badge-primary { background: var(--primary-glow); color: var(--primary); }

/* Scorecard Parameter detailed lists */
.compliance-scorecard-panel {
    display: flex;
    flex-direction: column;
    height: 500px;
}

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

.scorecard-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-bright);
}

.scorecard-list {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.parameter-card {
    background: rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.parameter-card.passed { border-left: 4px solid var(--success); }
.parameter-card.failed { border-left: 4px solid var(--danger); }
.parameter-card.warning { border-left: 4px solid var(--warning); }

.parameter-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.parameter-card.passed .parameter-icon { background: var(--success-glow); color: var(--success); }
.parameter-card.failed .parameter-icon { background: var(--danger-glow); color: var(--danger); }
.parameter-card.warning .parameter-icon { background: var(--warning-glow); color: var(--warning); }

.parameter-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
}

.parameter-details {
    flex-grow: 1;
}

.parameter-details h5 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 0.15rem;
}

.parameter-details p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.parameter-score-pill {
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.parameter-card.passed .parameter-score-pill { background: var(--success-glow); color: var(--success); }
.parameter-card.failed .parameter-score-pill { background: var(--danger-glow); color: var(--danger); }
.parameter-card.warning .parameter-score-pill { background: var(--warning-glow); color: var(--warning); }

/* File Uploader drag deck */
.audio-uploader {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    background: rgba(0,0,0,0.2);
    border-radius: var(--border-radius-sm);
    padding: 2rem 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    margin-bottom: 1rem;
}

.audio-uploader:hover, .audio-uploader.dragover {
    border-color: var(--primary);
    background: rgba(0, 242, 254, 0.02);
}

.audio-uploader svg {
    width: 42px;
    height: 42px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 1.5;
    margin-bottom: 0.85rem;
    transition: var(--transition-smooth);
}

.audio-uploader:hover svg {
    stroke: var(--primary);
    filter: drop-shadow(0 0 6px var(--primary));
}

.audio-uploader p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.audio-uploader span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.audio-uploader input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* SaaS holographic loader overlay */
.processing-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 9, 14, 0.96);
    z-index: 100;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
    animation: fadeIn 0.3s ease-out;
}

.processing-radar {
    width: 100px;
    height: 100px;
    border: 2px solid rgba(0, 242, 254, 0.1);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.processing-radar::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: rotate 1.2s linear infinite;
}

.processing-radar svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary);
    fill: none;
    animation: pulse 1.2s infinite;
}

.processing-log {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--primary);
    text-shadow: 0 0 5px rgba(0, 242, 254, 0.3);
    min-height: 20px;
    max-width: 80%;
}

/* Fatal Breach Banners */
.fatal-alert-banner {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left: 4px solid var(--danger);
    color: var(--text-bright);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    animation: pulse 2.4s infinite;
}

/* Button Controls */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: var(--text-bright);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.85rem 1.5rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.35);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #ec4899);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Enterprise Layout dynamic structure columns */
.saas-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.saas-metric-box {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.saas-metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.saas-metric-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-bright);
    margin: 0.5rem 0;
    line-height: 1;
}

/* CSS Keyframes animations */
@keyframes pulse {
    0% { transform: scale(0.98); opacity: 0.7; }
    50% { transform: scale(1.02); opacity: 1; }
    100% { transform: scale(0.98); opacity: 0.7; }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Auto-Fail indicators border highlights */
.fail-border-glow {
    border-color: rgba(239, 68, 68, 0.4) !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.15) !important;
}

/* Printable PDF stylesheet rules */
@media print {
    body { background: white; color: black; }
    aside.sidebar, header.top-bar, .controls-panel, .waveform-panel, .custom-audio-controls, .btn {
        display: none !important;
    }
    main.main-content { padding: 0; }
    .glass-panel { background: white; border: 1px solid #ccc; box-shadow: none; color: #111; backdrop-filter: none; }
    .transcript-bubble { border: 1px solid #ddd; background: #fafafa; color: #111; }
    .parameter-card { border: 1px solid #ccc; background: #fff; color: #111; }
    .svg-dial-container circle.bg { stroke: #eee; }
}

/* Mobile screens scaling overrides */
@media (max-width: 1024px) {
    #app-shell { grid-template-columns: 1fr; }
    aside.sidebar { display: none; }
    .auditor-analysis-workspace { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .saas-dashboard-grid { grid-template-columns: 1fr; }
    .metrics-summary-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================================================
   Premium Dynamic Modals & Onboarding Success Animations
   ======================================================================== */
.premium-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 6, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: modalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.premium-modal-card {
    background: linear-gradient(135deg, rgba(13, 19, 33, 0.95), rgba(7, 9, 14, 0.98));
    border: 1px solid var(--border-glow);
    border-radius: var(--border-radius);
    width: 92%;
    max-width: 480px;
    padding: 2.5rem 2.25rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 242, 254, 0.05);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.premium-modal-overlay.active {
    display: flex;
}

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

/* Premium Round Close Button */
.premium-modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
}

.premium-modal-close-btn:hover {
    transform: rotate(90deg) scale(1.1);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.premium-modal-close-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}

/* Onboarding Success Loader Screen */
.modal-success-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0d1321;
    z-index: 500;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
    animation: modalFadeIn 0.3s ease-out forwards;
}

.success-check-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    animation: successPulse 1.2s infinite ease-in-out;
}

.success-check-circle svg {
    width: 36px;
    height: 36px;
    stroke: currentColor;
    stroke-width: 3;
    fill: none;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes successPulse {
    0% { transform: scale(1); box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }
    50% { transform: scale(1.08); box-shadow: 0 0 35px rgba(16, 185, 129, 0.5); }
    100% { transform: scale(1); box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }
}
