/* JS Engineering Suite - Web Portal CSS
   Dark Futuristic Theme with Cyan Glow - Matching Main Website */

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

:root {
    /* Core palette */
    --bg-deep: #0a0e14;
    --bg-surface: #0d1219;
    --bg-elevated: #131a24;
    --bg-card: #161e2a;

    /* Cyan glow */
    --cyan-glow: #00d4ff;
    --cyan-bright: #4ae3ff;
    --cyan-dim: #0099cc;
    --cyan-dark: #006688;

    /* Metallic */
    --steel-light: #8899aa;
    --steel-mid: #556677;
    --steel-dark: #334455;

    /* Text */
    --text-primary: #e8eef4;
    --text-secondary: #9aabbf;
    --text-muted: #5a6a7a;

    /* Status colors */
    --success-color: #00ff88;
    --warning-color: #ffaa00;
    --danger-color: #ff4466;

    /* Glow effects */
    --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.4), 0 0 40px rgba(0, 212, 255, 0.2);
    --glow-cyan-intense: 0 0 30px rgba(0, 212, 255, 0.6), 0 0 60px rgba(0, 212, 255, 0.3), 0 0 100px rgba(0, 212, 255, 0.1);

    --radius: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background grid */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background-image:
        linear-gradient(var(--cyan-glow) 1px, transparent 1px),
        linear-gradient(90deg, var(--cyan-glow) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Radial glow */
.bg-glow {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 212, 255, 0.08) 0%, transparent 60%);
}

/* Custom scrollbar - improved visibility */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-elevated);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--steel-mid);
    border-radius: 5px;
    border: 2px solid var(--bg-elevated);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--steel-light);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--steel-mid) var(--bg-elevated);
}

/* Header */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
    border-bottom: 1px solid var(--steel-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    gap: 0;
}

.logo-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 2px;
    line-height: 1;
    transition: all 0.3s;
}

.logo-delta {
    color: var(--cyan-glow);
    text-shadow: var(--glow-cyan);
}

.logo-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 4px;
    margin-top: 2px;
}

.logo:hover .logo-text {
    color: var(--cyan-bright);
}

.logo:hover .logo-delta {
    text-shadow: var(--glow-cyan-intense);
}

/* Background Logo Image */
.bg-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 700px;
    height: auto;
    aspect-ratio: 1;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
    background-image: url('/static/Logo_Ani.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0.8) saturate(1.2);
}

.back-btn {
    color: var(--cyan-glow);
    text-decoration: none;
    font-size: 24px;
    padding: 4px 8px;
    transition: text-shadow 0.3s;
}

.back-btn:hover {
    text-shadow: var(--glow-cyan);
}

.header-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--text-primary);
}

.header-nav {
    display: flex;
    gap: 8px;
}

.header-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    transition: all 0.3s;
}

.header-nav a:hover {
    color: var(--cyan-glow);
    background: rgba(0, 212, 255, 0.1);
}

.header-nav a.active {
    color: var(--cyan-glow);
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid var(--cyan-dim);
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 1;
    margin-top: 64px;
    padding: 32px 24px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    min-height: calc(100vh - 64px);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border: 1px solid var(--steel-dark);
    border-radius: 12px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-glow), transparent);
}

.hero h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--cyan-glow);
    text-shadow: var(--glow-cyan);
}

.hero p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid var(--cyan-dim);
    border-radius: var(--radius);
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    background: transparent;
    color: var(--cyan-glow);
}

.btn:hover {
    background: rgba(0, 212, 255, 0.15);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan-dim) 0%, var(--cyan-dark) 100%);
    color: var(--bg-deep);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--cyan-glow) 0%, var(--cyan-dim) 100%);
    box-shadow: var(--glow-cyan-intense);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border-color: var(--steel-dark);
}

.btn-secondary:hover {
    border-color: var(--cyan-dim);
    color: var(--cyan-glow);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
    width: 100%;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-icon {
    font-size: 20px;
    font-weight: 700;
}

.action-buttons {
    margin-bottom: 32px;
}

/* Project Cards */
.projects-section, .features-section {
    margin-bottom: 40px;
}

.projects-section h2, .features-section h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.projects-section h2::before, .features-section h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--cyan-glow);
    border-radius: 2px;
    box-shadow: var(--glow-cyan);
}

.project-list {
    display: grid;
    gap: 16px;
}

.project-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border: 1px solid var(--steel-dark);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan-glow), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover {
    border-color: var(--cyan-dim);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15);
}

.project-card:hover::before {
    opacity: 1;
}

.project-info h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.project-client {
    color: var(--cyan-glow);
    font-size: 14px;
}

.project-address {
    font-size: 13px;
    color: var(--text-muted);
}

.project-stats {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--steel-dark);
}

.project-stats .stat {
    font-size: 13px;
    color: var(--text-muted);
}

.project-stats .stat strong {
    color: var(--cyan-glow);
    font-size: 18px;
    display: block;
    font-family: 'JetBrains Mono', monospace;
}

.project-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
    font-family: 'JetBrains Mono', monospace;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border: 1px solid var(--steel-dark);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--cyan-dim);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 64px 24px;
    background: var(--bg-card);
    border: 1px solid var(--steel-dark);
    border-radius: 12px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.text-muted {
    color: var(--text-muted);
    font-size: 14px;
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--steel-dark);
    border-radius: var(--radius);
    padding: 4px;
    margin-bottom: 24px;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-secondary);
}

.tab-btn.active {
    background: rgba(0, 212, 255, 0.15);
    color: var(--cyan-glow);
    border: 1px solid var(--cyan-dim);
}

/* Item Cards */
.item-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.item-card {
    background: var(--bg-card);
    border: 1px solid var(--steel-dark);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.3s;
}

.item-card:hover {
    border-color: var(--cyan-dim);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.item-details p {
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.badge-excellent, .badge-good, .badge-pass {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success-color);
    border: 1px solid rgba(0, 255, 136, 0.3);
}
.badge-fair, .badge-medium, .badge-pending {
    background: rgba(255, 170, 0, 0.15);
    color: var(--warning-color);
    border: 1px solid rgba(255, 170, 0, 0.3);
}
.badge-poor, .badge-high {
    background: rgba(255, 68, 102, 0.15);
    color: var(--danger-color);
    border: 1px solid rgba(255, 68, 102, 0.3);
}
.badge-failed, .badge-critical, .badge-fail {
    background: rgba(255, 68, 102, 0.25);
    color: var(--danger-color);
    border: 1px solid rgba(255, 68, 102, 0.5);
}
.badge-low {
    background: rgba(0, 212, 255, 0.15);
    color: var(--cyan-glow);
    border: 1px solid rgba(0, 212, 255, 0.3);
}
.badge-open {
    background: rgba(255, 170, 0, 0.15);
    color: var(--warning-color);
    border: 1px solid rgba(255, 170, 0, 0.3);
}
.badge-closed {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success-color);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 20, 0.9);
    backdrop-filter: blur(8px);
    z-index: 2000;
    padding: 24px;
    overflow-y: auto;
}

.modal.show {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--steel-dark);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    padding: 24px;
    animation: slideUp 0.3s ease;
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan-glow), transparent);
    border-radius: 12px 12px 0 0;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--steel-dark);
}

.modal-header h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--cyan-glow);
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--danger-color);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--steel-dark);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: inherit;
    color: var(--text-primary);
    transition: all 0.3s;
}

/* Select dropdown styling */
.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 8px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan-dim);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group input[type="file"] {
    padding: 10px;
    background: var(--bg-elevated);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.form-actions .btn {
    flex: 1;
}

/* Alerts / Flash Messages */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--success-color);
}

.alert-error, .alert-danger {
    background: rgba(255, 68, 102, 0.1);
    border: 1px solid rgba(255, 68, 102, 0.3);
    color: var(--danger-color);
}

.alert-warning {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.3);
    color: var(--warning-color);
}

.alert-info {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--cyan-glow);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--steel-dark);
    color: var(--text-primary);
    border-radius: var(--radius);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 3000;
}

.toast.show {
    opacity: 1;
}

.toast.success {
    border-color: rgba(0, 255, 136, 0.5);
    color: var(--success-color);
}

.toast.error {
    border-color: rgba(255, 68, 102, 0.5);
    color: var(--danger-color);
}

/* Auth Pages */
.auth-container {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--steel-dark);
    border-radius: 12px;
    padding: 40px;
    max-width: 420px;
    width: 100%;
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan-glow), transparent);
    border-radius: 12px 12px 0 0;
}

.auth-card h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: var(--cyan-glow);
    text-shadow: var(--glow-cyan);
}

.auth-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.auth-card .auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--steel-dark);
    color: var(--text-secondary);
}

.auth-card .auth-footer p {
    color: var(--text-secondary);
}

.auth-card .auth-footer a {
    color: var(--cyan-glow);
    text-decoration: none;
    transition: text-shadow 0.3s;
}

.auth-card .auth-footer a:hover {
    text-shadow: var(--glow-cyan);
}

/* Responsive */
@media (min-width: 768px) {
    .main-content {
        padding: 40px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .project-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .app-header {
        padding: 0 16px;
    }

    .main-content {
        padding: 20px 16px;
    }

    .hero {
        padding: 32px 16px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .auth-card {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Links */
a {
    color: var(--cyan-glow);
    text-decoration: none;
    transition: all 0.3s;
}

a:hover {
    text-shadow: var(--glow-cyan);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--steel-dark);
    border-radius: var(--radius);
    overflow: hidden;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--steel-dark);
}

th {
    background: var(--bg-elevated);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

tr:hover {
    background: rgba(0, 212, 255, 0.05);
}

/* License key display */
.license-key {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-surface);
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--steel-dark);
    color: var(--cyan-glow);
    display: inline-block;
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 64px);
    gap: 0;
}

/* Sidebar */
.dashboard-sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
    border-right: 1px solid var(--steel-dark);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-item:hover {
    background: rgba(0, 212, 255, 0.08);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(0, 212, 255, 0.15);
    color: var(--cyan-glow);
    border: 1px solid var(--cyan-dim);
}

.nav-icon {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px;
    max-height: 20px;
    flex-shrink: 0;
}

/* License Card in Sidebar */
.license-card {
    background: var(--bg-card);
    border: 1px solid var(--steel-dark);
    border-radius: 12px;
    padding: 20px;
    margin-top: auto;
}

.license-header {
    margin-bottom: 16px;
}

.license-badge {
    display: inline-block;
    padding: 4px 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.license-badge.enterprise {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.2) 100%);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.license-badge.professional {
    background: rgba(0, 212, 255, 0.15);
    color: var(--cyan-glow);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.license-badge.standard {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success-color);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.license-badge.alpha, .license-badge.beta {
    background: rgba(138, 43, 226, 0.2);
    color: #aa77ff;
    border: 1px solid rgba(138, 43, 226, 0.4);
}

.license-badge.none {
    background: rgba(255, 68, 102, 0.15);
    color: var(--danger-color);
    border: 1px solid rgba(255, 68, 102, 0.3);
}

.license-details {
    margin-bottom: 16px;
}

.license-user {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.license-email {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.license-expires {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

.license-manage-btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--steel-dark);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
}

.license-manage-btn:hover {
    border-color: var(--cyan-dim);
    color: var(--cyan-glow);
    background: rgba(0, 212, 255, 0.08);
}

/* Dashboard Main Content */
.dashboard-main {
    flex: 1;
    padding: 32px 40px;
    max-width: calc(100% - 280px);
    overflow-x: hidden;
}

.dashboard-header {
    margin-bottom: 32px;
}

.dashboard-header h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.header-subtitle {
    color: var(--text-muted);
    font-size: 15px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border: 1px solid var(--steel-dark);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan-glow), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    border-color: var(--cyan-dim);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px;
    max-height: 24px;
    flex-shrink: 0;
}

.stat-icon.projects {
    background: rgba(0, 212, 255, 0.15);
    color: var(--cyan-glow);
}

.stat-icon.synced {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success-color);
}

.stat-icon.certs {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
}

.stat-icon.tickets {
    background: rgba(255, 170, 0, 0.15);
    color: var(--warning-color);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Quick Actions Section */
.quick-actions-section {
    margin-bottom: 40px;
}

.quick-actions-section h2,
.recent-projects-section h2,
.storage-section h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.quick-actions-section h2::before,
.recent-projects-section h2::before,
.storage-section h2::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--cyan-glow);
    border-radius: 2px;
    box-shadow: var(--glow-cyan);
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.action-card {
    background: var(--bg-card);
    border: 1px solid var(--steel-dark);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.action-card:hover {
    border-color: var(--cyan-dim);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
}

.action-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-icon svg {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px;
    max-height: 28px;
    flex-shrink: 0;
}

.action-icon.new-project {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 153, 204, 0.2) 100%);
    color: var(--cyan-glow);
}

.action-icon.download {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 200, 100, 0.2) 100%);
    color: var(--success-color);
}

.action-icon.training {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2) 0%, rgba(100, 30, 180, 0.2) 100%);
    color: #aa77ff;
}

.action-icon.support {
    background: linear-gradient(135deg, rgba(255, 170, 0, 0.2) 0%, rgba(200, 130, 0, 0.2) 100%);
    color: var(--warning-color);
}

.action-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.action-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* Recent Projects Section */
.recent-projects-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    margin-bottom: 0;
}

.view-all-link {
    font-size: 14px;
    color: var(--cyan-glow);
    text-decoration: none;
    transition: all 0.3s;
}

.view-all-link:hover {
    text-shadow: var(--glow-cyan);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.projects-grid .project-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.project-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.project-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

.project-status.synced {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success-color);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.project-status.local {
    background: rgba(255, 170, 0, 0.15);
    color: var(--warning-color);
    border: 1px solid rgba(255, 170, 0, 0.3);
}

.projects-grid .project-client {
    font-size: 14px;
    color: var(--cyan-glow);
    margin: 0;
}

.projects-grid .project-address {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.project-meta {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--steel-dark);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.meta-item svg {
    opacity: 0.6;
}

/* Empty State for Dashboard */
.empty-state {
    text-align: center;
    padding: 64px 32px;
    background: var(--bg-card);
    border: 1px solid var(--steel-dark);
    border-radius: 12px;
}

.empty-state .empty-icon {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

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

.empty-state .btn {
    display: inline-flex;
}

/* Storage Section */
.storage-section {
    margin-bottom: 40px;
}

.storage-card {
    background: var(--bg-card);
    border: 1px solid var(--steel-dark);
    border-radius: 12px;
    padding: 24px;
}

.storage-info {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.storage-used {
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.storage-total {
    font-size: 14px;
    color: var(--text-muted);
}

.storage-bar {
    height: 8px;
    background: var(--bg-surface);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.storage-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan-dim), var(--cyan-glow));
    border-radius: 4px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px var(--cyan-dim);
}

.storage-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Dashboard Responsive */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .dashboard-layout {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 1px solid var(--steel-dark);
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .license-card {
        margin-top: 0;
        width: auto;
    }

    .dashboard-main {
        max-width: 100%;
        padding: 24px;
    }
}

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

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-main {
        padding: 20px 16px;
    }

    .dashboard-header h1 {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .sidebar-nav {
        width: 100%;
    }

    .nav-item {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
        font-size: 13px;
    }

    .license-card {
        width: 100%;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 24px;
    }

    .action-card {
        padding: 16px;
    }

    .action-icon {
        width: 48px;
        height: 48px;
    }
}

/* ===== PAGE CONTAINER LAYOUT ===== */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

.page-header {
    margin-bottom: 40px;
}

.page-header h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.page-header .header-subtitle {
    color: var(--text-muted);
    font-size: 16px;
}

/* ===== DOWNLOADS PAGE ===== */
.downloads-section {
    margin-bottom: 48px;
}

.downloads-section h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.downloads-section h2::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--cyan-glow);
    border-radius: 2px;
    box-shadow: var(--glow-cyan);
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--steel-dark);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s;
}

.download-card:hover {
    border-color: var(--cyan-dim);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
}

.download-card.featured {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border-color: var(--cyan-dim);
}

.download-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-icon svg {
    width: 32px;
    height: 32px;
}

.download-icon.desktop {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 153, 204, 0.2) 100%);
    color: var(--cyan-glow);
}

.download-icon.revit {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 200, 100, 0.2) 100%);
    color: var(--success-color);
}

.download-icon.autocad {
    background: linear-gradient(135deg, rgba(255, 170, 0, 0.2) 0%, rgba(200, 130, 0, 0.2) 100%);
    color: var(--warning-color);
}

.download-icon.samples {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2) 0%, rgba(100, 30, 180, 0.2) 100%);
    color: #aa77ff;
}

.download-icon.docs {
    background: linear-gradient(135deg, rgba(255, 68, 102, 0.2) 0%, rgba(200, 50, 80, 0.2) 100%);
    color: var(--danger-color);
}

.download-info {
    flex: 1;
}

.download-info h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.download-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.download-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.meta-badge {
    padding: 4px 10px;
    background: var(--bg-surface);
    border: 1px solid var(--steel-dark);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.meta-badge.version {
    color: var(--cyan-glow);
    border-color: var(--cyan-dim);
}

.download-features {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.download-features span {
    padding: 4px 10px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 4px;
    font-size: 12px;
    color: var(--cyan-glow);
}

.btn-download {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Requirements */
.requirements-card {
    background: var(--bg-card);
    border: 1px solid var(--steel-dark);
    border-radius: 12px;
    padding: 24px;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.requirement-item h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--cyan-glow);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.requirement-item p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== TRAINING PAGE ===== */
.training-section {
    margin-bottom: 48px;
}

.training-section h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.training-section h2::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--cyan-glow);
    border-radius: 2px;
    box-shadow: var(--glow-cyan);
}

.section-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    margin-top: -12px;
}

.quick-start-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border: 1px solid var(--cyan-dim);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.quick-start-content h2 {
    margin-bottom: 12px;
}

.quick-start-content h2::before {
    display: none;
}

.quick-start-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.quick-start-stats {
    display: flex;
    gap: 32px;
}

.quick-start-stats .stat {
    text-align: center;
}

.quick-start-stats .stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 32px;
    font-weight: 600;
    color: var(--cyan-glow);
    display: block;
}

.quick-start-stats .stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.course-card {
    background: var(--bg-card);
    border: 1px solid var(--steel-dark);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s;
}

.course-card:hover {
    border-color: var(--cyan-dim);
    transform: translateY(-4px);
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.course-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.15);
    color: var(--cyan-glow);
}

.course-icon svg {
    width: 24px;
    height: 24px;
}

.course-badges {
    display: flex;
    gap: 8px;
}

.badge-level {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-level.beginner {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success-color);
}

.badge-level.intermediate {
    background: rgba(255, 170, 0, 0.15);
    color: var(--warning-color);
}

.badge-level.advanced {
    background: rgba(255, 68, 102, 0.15);
    color: var(--danger-color);
}

.badge-duration {
    padding: 4px 10px;
    background: var(--bg-surface);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.course-content h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.course-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.course-modules h4 {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.course-modules ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.course-modules li {
    padding: 4px 10px;
    background: var(--bg-surface);
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.course-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--steel-dark);
}

.projects-practice-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.practice-card {
    background: var(--bg-card);
    border: 1px solid var(--steel-dark);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
}

.practice-card:hover {
    border-color: var(--cyan-dim);
    transform: translateY(-4px);
}

.practice-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    background: rgba(0, 212, 255, 0.15);
    color: var(--cyan-glow);
}

.practice-icon svg {
    width: 28px;
    height: 28px;
}

.practice-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.practice-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.practice-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-surface);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-secondary);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.resource-card {
    background: var(--bg-card);
    border: 1px solid var(--steel-dark);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: all 0.3s;
}

.resource-card:hover {
    border-color: var(--cyan-dim);
    transform: translateY(-4px);
}

.resource-card svg {
    width: 24px;
    height: 24px;
    color: var(--cyan-glow);
    flex-shrink: 0;
}

.resource-card span {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ===== SUPPORT PAGE ===== */
.support-section {
    margin-bottom: 48px;
}

.support-section h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.support-section h2::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--cyan-glow);
    border-radius: 2px;
    box-shadow: var(--glow-cyan);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--steel-dark);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
}

.contact-card:hover {
    border-color: var(--cyan-dim);
}

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.contact-icon svg {
    width: 28px;
    height: 28px;
}

.contact-icon.email {
    background: rgba(0, 212, 255, 0.15);
    color: var(--cyan-glow);
}

.contact-icon.github {
    background: rgba(138, 43, 226, 0.2);
    color: #aa77ff;
}

.contact-icon.docs {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success-color);
}

.contact-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.contact-link {
    color: var(--cyan-glow);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.contact-link:hover {
    text-shadow: var(--glow-cyan);
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--steel-dark);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--steel-mid);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.faq-toggle {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.faq-item.open .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item.open .faq-answer {
    padding: 0 24px 20px;
    max-height: 200px;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.faq-answer a {
    color: var(--cyan-glow);
}

/* Status */
.status-card {
    background: var(--bg-card);
    border: 1px solid var(--steel-dark);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-indicator.online {
    background: var(--success-color);
    box-shadow: 0 0 8px var(--success-color);
}

.status-indicator.offline {
    background: var(--danger-color);
    box-shadow: 0 0 8px var(--danger-color);
}

.status-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}

.status-text {
    font-size: 13px;
    color: var(--text-muted);
}

/* Page Responsive */
@media (max-width: 1200px) {
    .downloads-grid {
        grid-template-columns: 1fr;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .projects-practice-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .requirements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-container {
        padding: 24px 16px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .download-card.featured {
        flex-direction: column;
        align-items: flex-start;
    }

    .quick-start-card {
        flex-direction: column;
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .projects-practice-grid {
        grid-template-columns: 1fr;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== GLOBAL TEXT COLOR FIXES ===== */
/* Ensure all text elements have proper colors */
p {
    color: var(--text-secondary);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
}

li {
    color: var(--text-secondary);
}

/* Profile page fixes */
.profile-section {
    background: var(--bg-card);
    border: 1px solid var(--steel-dark);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.profile-section h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--cyan-glow);
    margin-bottom: 16px;
}

.profile-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.profile-field {
    margin-bottom: 12px;
}

.profile-field label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.profile-field span {
    color: var(--text-primary);
    font-size: 15px;
}

/* Admin pages */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-header h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-table {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--steel-dark);
    border-radius: 12px;
    overflow: hidden;
}

.admin-table th {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    padding: 16px;
    text-align: left;
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid var(--steel-dark);
    color: var(--text-primary);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: rgba(0, 212, 255, 0.05);
}

/* License status badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success-color);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.status-badge.pending {
    background: rgba(255, 170, 0, 0.15);
    color: var(--warning-color);
    border: 1px solid rgba(255, 170, 0, 0.3);
}

.status-badge.suspended {
    background: rgba(255, 68, 102, 0.15);
    color: var(--danger-color);
    border: 1px solid rgba(255, 68, 102, 0.3);
}

.status-badge.revoked, .status-badge.expired {
    background: rgba(100, 100, 100, 0.15);
    color: var(--text-muted);
    border: 1px solid rgba(100, 100, 100, 0.3);
}

/* Action buttons in tables */
.action-btn {
    padding: 6px 12px;
    border: 1px solid var(--steel-dark);
    border-radius: var(--radius);
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    margin-right: 4px;
}

.action-btn:hover {
    border-color: var(--cyan-dim);
    color: var(--cyan-glow);
}

.action-btn.danger {
    border-color: rgba(255, 68, 102, 0.3);
    color: var(--danger-color);
}

.action-btn.danger:hover {
    background: rgba(255, 68, 102, 0.1);
    border-color: var(--danger-color);
}

.action-btn.success {
    border-color: rgba(0, 255, 136, 0.3);
    color: var(--success-color);
}

.action-btn.success:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--success-color);
}

/* Email input styling */
input[type="email"] {
    background: var(--bg-surface);
    border: 1px solid var(--steel-dark);
    color: var(--text-primary);
}

/* ===== MOBILE RESPONSIVE STYLES ===== */

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--steel-dark);
    border-radius: var(--radius);
    padding: 8px 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-menu-toggle:hover {
    border-color: var(--cyan-dim);
    color: var(--cyan-glow);
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Tablet breakpoint (768px) */
@media (max-width: 768px) {
    /* Header adjustments */
    .app-header {
        padding: 0 16px;
        height: 56px;
    }

    .logo-text {
        font-size: 22px;
    }

    .logo-subtitle {
        font-size: 8px;
        letter-spacing: 3px;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-nav {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--steel-dark);
        flex-direction: column;
        padding: 16px;
        gap: 8px;
        z-index: 999;
        animation: slideDown 0.3s ease;
    }

    .header-nav.show {
        display: flex;
    }

    .header-nav a {
        padding: 12px 16px;
        text-align: center;
        font-size: 16px;
    }

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

    /* Main content */
    .main-content {
        margin-top: 56px;
        padding: 24px 16px;
    }

    /* Hero section */
    .hero {
        padding: 32px 20px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 14px;
    }

    /* Feature grid */
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Project list */
    .project-list {
        grid-template-columns: 1fr;
    }

    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Tables - horizontal scroll */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 600px;
    }

    /* Auth card */
    .auth-card {
        padding: 24px 20px;
        margin: 16px;
    }

    .auth-card h1 {
        font-size: 24px;
    }

    /* Modal */
    .modal.show {
        padding-top: 60px;
        padding: 16px;
    }

    .modal-content {
        padding: 20px;
        margin: 16px;
    }

    /* Buttons - larger touch targets */
    .btn {
        padding: 14px 24px;
        font-size: 15px;
        min-height: 48px;
    }

    .btn-small {
        padding: 10px 16px;
        font-size: 13px;
        min-height: 40px;
    }

    /* Page container */
    .page-container {
        padding: 24px 16px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    /* Downloads grid */
    .downloads-grid {
        grid-template-columns: 1fr;
    }

    .download-card.featured {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Training/courses grid */
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .projects-practice-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
    }

    /* Quick start card */
    .quick-start-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
        gap: 24px;
    }

    .quick-start-stats {
        justify-content: center;
        gap: 24px;
    }

    /* Contact grid */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Reference tables */
    .reference-grid {
        grid-template-columns: 1fr;
    }

    /* Tab navigation - scrollable */
    .tab-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }

    .tab-btn {
        flex: 0 0 auto;
        min-width: 100px;
    }
}

/* Phone breakpoint (480px) */
@media (max-width: 480px) {
    /* Header */
    .app-header {
        padding: 0 12px;
    }

    .logo-text {
        font-size: 20px;
    }

    .logo-subtitle {
        display: none;
    }

    /* Main content */
    .main-content {
        padding: 16px 12px;
    }

    /* Hero */
    .hero {
        padding: 24px 16px;
    }

    .hero h1 {
        font-size: 24px;
    }

    /* Feature grid */
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-icon {
        font-size: 28px;
    }

    .feature-card h3 {
        font-size: 15px;
    }

    /* Project cards */
    .project-card {
        padding: 16px;
    }

    .project-info h3 {
        font-size: 18px;
    }

    .project-stats {
        flex-direction: column;
        gap: 12px;
    }

    /* Buttons - full width on phone */
    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    /* Page header */
    .page-header h1 {
        font-size: 24px;
    }

    .page-header .header-subtitle {
        font-size: 14px;
    }

    /* Cards */
    .download-card {
        padding: 20px;
    }

    .download-icon {
        width: 52px;
        height: 52px;
    }

    .download-info h3 {
        font-size: 18px;
    }

    .course-card {
        padding: 20px;
    }

    .course-content h3 {
        font-size: 18px;
    }

    /* Practice grid */
    .projects-practice-grid {
        grid-template-columns: 1fr;
    }

    .practice-card {
        padding: 20px;
    }

    /* Section headers */
    .downloads-section h2,
    .training-section h2,
    .support-section h2 {
        font-size: 20px;
    }

    /* Quick start stats */
    .quick-start-stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .quick-start-stats .stat-value {
        font-size: 24px;
    }

    /* Auth card */
    .auth-card {
        padding: 20px 16px;
    }

    /* Modal */
    .modal-content {
        padding: 16px;
    }

    .modal-header h3 {
        font-size: 18px;
    }

    /* Form inputs - larger for touch */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    /* Alert boxes */
    .alert {
        padding: 14px 16px;
        font-size: 13px;
    }

    /* Toast */
    .toast {
        left: 16px;
        right: 16px;
        transform: none;
        max-width: none;
    }

    /* Tables on mobile - card layout alternative */
    .mobile-table-card {
        display: block;
    }

    .mobile-table-card thead {
        display: none;
    }

    .mobile-table-card tbody tr {
        display: block;
        background: var(--bg-card);
        border: 1px solid var(--steel-dark);
        border-radius: var(--radius);
        padding: 16px;
        margin-bottom: 12px;
    }

    .mobile-table-card tbody td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid var(--steel-dark);
    }

    .mobile-table-card tbody td:last-child {
        border-bottom: none;
    }

    .mobile-table-card tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        font-size: 11px;
    }

    /* Badge sizing */
    .badge {
        padding: 3px 8px;
        font-size: 10px;
    }

    /* License key */
    .license-key {
        font-size: 12px;
        word-break: break-all;
    }
}

/* Touch-friendly interactive elements */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects that don't work on touch */
    .btn:hover {
        transform: none;
    }

    .project-card:hover {
        transform: none;
    }

    .feature-card:hover {
        transform: none;
    }

    .download-card:hover {
        transform: none;
    }

    .course-card:hover {
        transform: none;
    }

    .action-card:hover {
        transform: none;
    }

    .stat-card:hover {
        transform: none;
    }

    /* Add active states instead */
    .btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .project-card:active,
    .feature-card:active,
    .download-card:active,
    .course-card:active,
    .action-card:active {
        transform: scale(0.99);
        border-color: var(--cyan-dim);
    }
}

/* Landscape phone orientation */
@media (max-width: 812px) and (orientation: landscape) {
    .hero {
        padding: 24px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .modal.show {
        padding-top: 20px;
    }

    .auth-container {
        min-height: auto;
        padding: 16px;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure sharp lines */
    .project-card,
    .feature-card,
    .download-card,
    .course-card,
    .auth-card,
    .modal-content {
        border-width: 0.5px;
    }
}

/* ==========================================================================
   Admin Utilities & Consolidated Styles
   ========================================================================== */

/* Admin Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--steel-dark);
}

.admin-table th {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: rgba(0, 212, 255, 0.05);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Action Buttons (standardized) */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--steel-dark);
    color: var(--text-primary);
}

.action-btn:hover {
    background: var(--steel-mid);
}

.action-btn.success {
    background: var(--success-color);
    color: var(--bg-deep);
}

.action-btn.success:hover {
    filter: brightness(1.1);
}

.action-btn.warning {
    background: var(--warning-color);
    color: var(--bg-deep);
}

.action-btn.warning:hover {
    filter: brightness(1.1);
}

.action-btn.danger {
    background: var(--danger-color);
    color: white;
}

.action-btn.danger:hover {
    filter: brightness(1.1);
}

.action-btn svg {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active,
.status-badge.success {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success-color);
}

.status-badge.pending,
.status-badge.warning {
    background: rgba(255, 170, 0, 0.15);
    color: var(--warning-color);
}

.status-badge.suspended,
.status-badge.error,
.status-badge.danger {
    background: rgba(255, 68, 102, 0.15);
    color: var(--danger-color);
}

.status-badge.inactive {
    background: rgba(90, 106, 122, 0.15);
    color: var(--text-muted);
}

/* User Avatar */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan-dim), var(--cyan-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

/* Role Badge */
.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.role-badge.admin {
    background: rgba(0, 212, 255, 0.2);
    color: var(--cyan-bright);
}

.role-badge.user {
    background: rgba(136, 153, 170, 0.2);
    color: var(--steel-light);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 20px;
    border: 1px solid var(--steel-dark);
    border-radius: var(--radius);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-size: 14px;
}

.filter-tab:hover {
    border-color: var(--cyan-dim);
    color: var(--text-primary);
}

.filter-tab.active {
    background: var(--cyan-dim);
    border-color: var(--cyan-dim);
    color: white;
}

.filter-tab .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 11px;
    margin-left: 8px;
}

/* Admin Page Header */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-header h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Admin Stats Row */
.admin-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.admin-stat-card {
    flex: 1;
    min-width: 150px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--steel-dark);
    text-align: center;
}

.admin-stat-card h3 {
    font-size: 36px;
    font-weight: 700;
    color: var(--cyan-bright);
    margin-bottom: 8px;
}

.admin-stat-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Accessibility: Focus visible */
:focus-visible {
    outline: 2px solid var(--cyan-glow);
    outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--cyan-glow);
    color: var(--bg-deep);
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Mobile admin table improvements */
@media (max-width: 768px) {
    .admin-table th,
    .admin-table td {
        padding: 12px 8px;
        font-size: 13px;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-tabs {
        width: 100%;
    }

    .filter-tab {
        flex: 1;
        text-align: center;
    }

    .admin-stat-card {
        min-width: 100%;
    }

    .action-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}
