/* ==========================================================================
   GRENDRAGON PORTAL - CYBERPUNK / GAMER NEON GREEN THEME
   Domain: greendragon.space
   ========================================================================== */

:root {
    --gd-bg-abyss: #070c09;
    --gd-bg-surface: #0c1510;
    --gd-bg-card: #111d17;
    --gd-bg-card-hover: #16261e;
    --gd-bg-card-elevated: #1a2d23;
    
    --gd-green-neon: #00ff88;
    --gd-green-glow: rgba(0, 255, 136, 0.4);
    --gd-green-glow-subtle: rgba(0, 255, 136, 0.12);
    --gd-green-emerald: #10b981;
    --gd-green-mint: #54ffa9;
    --gd-green-dark: #054f2c;
    
    --gd-border-subtle: rgba(0, 255, 136, 0.2);
    --gd-border-neon: rgba(0, 255, 136, 0.55);
    --gd-border-bright: #00ff88;
    
    --gd-text-bright: #ffffff;
    --gd-text-primary: #ecfdf5;
    --gd-text-secondary: #94a3b8;
    --gd-text-muted: #64748b;
    
    --gd-danger: #ef4444;
    --gd-danger-glow: rgba(239, 68, 68, 0.4);
    --gd-warning: #f59e0b;
    --gd-warning-glow: rgba(245, 158, 11, 0.4);
    
    --gd-font-cyber: 'Orbitron', -apple-system, sans-serif;
    --gd-font-hud: 'Rajdhani', -apple-system, sans-serif;
    --gd-font-body: 'Space Grotesk', -apple-system, sans-serif;
    --gd-font-mono: 'JetBrains Mono', monospace;
}

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

html, body {
    background-color: var(--gd-bg-abyss);
    color: var(--gd-text-primary);
    font-family: var(--gd-font-body);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Cyber Grid with Ambient Dragon Green Glow */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(0, 255, 136, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 90% 85%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
        linear-gradient(rgba(0, 255, 136, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    z-index: 0;
}

/* Cyber Scanline effect (subtle) */
body::after {
    content: " ";
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.25;
}

#app-root, .app-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, .gd-title {
    font-family: var(--gd-font-cyber);
    letter-spacing: 1px;
    color: var(--gd-text-bright);
}

.gd-glow-text {
    color: var(--gd-green-neon);
    text-shadow: 0 0 10px var(--gd-green-glow), 0 0 20px rgba(0, 255, 136, 0.2);
}

.gd-hud-sub {
    font-family: var(--gd-font-hud);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--gd-green-emerald);
}

/* ==========================================================================
   CYBER NAVIGATION BAR
   ========================================================================== */

.gd-navbar {
    background: rgba(12, 21, 16, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gd-border-subtle);
    padding: 0.85rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.gd-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--gd-text-bright);
}

.gd-brand-logo {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 0 8px var(--gd-green-neon));
    transition: transform 0.3s ease;
}

.gd-brand:hover .gd-brand-logo {
    transform: scale(1.08) rotate(3deg);
}

.gd-brand-text {
    display: flex;
    flex-direction: column;
}

.gd-brand-title {
    font-family: var(--gd-font-cyber);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 2px;
    color: #ffffff;
}

.gd-brand-title span {
    color: var(--gd-green-neon);
    text-shadow: 0 0 8px var(--gd-green-neon);
}

.gd-brand-domain {
    font-family: var(--gd-font-mono);
    font-size: 0.68rem;
    color: var(--gd-green-emerald);
    letter-spacing: 1px;
}

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

.gd-nav-link {
    color: var(--gd-text-secondary);
    text-decoration: none;
    font-family: var(--gd-font-hud);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.gd-nav-link:hover, .gd-nav-link.active {
    color: var(--gd-green-neon);
    background: var(--gd-green-glow-subtle);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.15);
}

.gd-nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ==========================================================================
   CARDS & CONTAINERS (CYBERPUNK GAMER)
   ========================================================================== */

.gd-card {
    background: var(--gd-bg-card);
    border: 1px solid var(--gd-border-subtle);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Cyber cut-corner accent */
.gd-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 3px;
    background: var(--gd-green-neon);
    box-shadow: 0 0 8px var(--gd-green-neon);
}

.gd-card:hover {
    border-color: var(--gd-border-neon);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 18px var(--gd-green-glow-subtle);
}

.gd-card-glow {
    border-color: var(--gd-border-neon);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.12), 0 10px 40px rgba(0, 0, 0, 0.6);
}

.gd-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 255, 136, 0.12);
}

.gd-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--gd-text-bright);
}

/* ==========================================================================
   BUTTONS (GAMER NEON GLOW)
   ========================================================================== */

.gd-btn {
    font-family: var(--gd-font-hud);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.75rem 1.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    border: 1px solid transparent;
}

.gd-btn-neon {
    background: linear-gradient(135deg, #00ff88 0%, #059669 100%);
    color: #05140b;
    border-color: #00ff88;
    font-weight: 800;
    box-shadow: 0 0 18px rgba(0, 255, 136, 0.4);
}

.gd-btn-neon:hover {
    background: linear-gradient(135deg, #38ff9f 0%, #10b981 100%);
    box-shadow: 0 0 26px rgba(0, 255, 136, 0.7);
    transform: translateY(-2px);
    color: #000;
}

.gd-btn-neon:active {
    transform: translateY(0);
}

.gd-btn-outline {
    background: rgba(0, 255, 136, 0.05);
    color: var(--gd-green-neon);
    border: 1px solid var(--gd-border-neon);
}

.gd-btn-outline:hover {
    background: rgba(0, 255, 136, 0.15);
    border-color: var(--gd-green-neon);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.gd-btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.gd-btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: var(--gd-danger);
    color: #fff;
    box-shadow: 0 0 15px var(--gd-danger-glow);
}

.gd-btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.gd-btn-block {
    width: 100%;
}

/* ==========================================================================
   INPUTS & FORM CONTROLS
   ========================================================================== */

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

.gd-label {
    display: block;
    font-family: var(--gd-font-hud);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--gd-green-mint);
    margin-bottom: 0.4rem;
}

.gd-input {
    width: 100%;
    background: #09120c;
    border: 1px solid var(--gd-border-subtle);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-family: var(--gd-font-body);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    outline: none;
}

.gd-input:focus {
    border-color: var(--gd-green-neon);
    background: #0e1c14;
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.3);
}

.gd-input::placeholder {
    color: var(--gd-text-muted);
}

.gd-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gd-text-secondary);
    cursor: pointer;
    user-select: none;
}

.gd-checkbox {
    appearance: none;
    width: 18px;
    height: 18px;
    background: #09120c;
    border: 1px solid var(--gd-border-subtle);
    border-radius: 4px;
    cursor: pointer;
    display: grid;
    place-content: center;
    transition: all 0.2s ease;
}

.gd-checkbox:checked {
    background: var(--gd-green-neon);
    border-color: var(--gd-green-neon);
    box-shadow: 0 0 10px var(--gd-green-glow);
}

.gd-checkbox:checked::before {
    content: "✔";
    font-size: 11px;
    color: #05140b;
    font-weight: 900;
}

/* ==========================================================================
   ALERTS & NOTICES
   ========================================================================== */

.gd-alert {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-left: 4px solid;
    animation: fadeIn 0.3s ease;
}

.gd-alert-danger {
    background: rgba(239, 68, 68, 0.12);
    border-color: var(--gd-danger);
    color: #fca5a5;
}

.gd-alert-warning {
    background: rgba(245, 158, 11, 0.12);
    border-color: var(--gd-warning);
    color: #fde68a;
}

.gd-alert-success {
    background: rgba(0, 255, 136, 0.12);
    border-color: var(--gd-green-neon);
    color: #a7f3d0;
}

/* ==========================================================================
   BADGES & STATUS PILLS
   ========================================================================== */

.gd-badge {
    font-family: var(--gd-font-hud);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.gd-badge-neon {
    background: rgba(0, 255, 136, 0.15);
    color: var(--gd-green-neon);
    border: 1px solid rgba(0, 255, 136, 0.35);
}

.gd-badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.gd-badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.gd-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gd-green-neon);
    box-shadow: 0 0 8px var(--gd-green-neon);
    animation: pulseGlow 2s infinite ease-in-out;
}

.gd-pulse-dot.danger {
    background: var(--gd-danger);
    box-shadow: 0 0 8px var(--gd-danger);
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

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

/* ==========================================================================
   TABLES (CYBER STYLE)
   ========================================================================== */

.gd-table-container {
    overflow-x: auto;
    border: 1px solid var(--gd-border-subtle);
    border-radius: 6px;
    background: #0a110d;
}

.gd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.gd-table th {
    font-family: var(--gd-font-hud);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.75rem;
    background: #0d1712;
    color: var(--gd-green-mint);
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--gd-border-subtle);
}

.gd-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(0, 255, 136, 0.08);
    color: var(--gd-text-primary);
}

.gd-table tr:hover td {
    background: rgba(0, 255, 136, 0.03);
}

/* ==========================================================================
   LOGIN VIEW WRAPPER
   ========================================================================== */

.gd-auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.gd-auth-container {
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 10;
}

.gd-auth-brand-header {
    text-align: center;
    margin-bottom: 2rem;
}

.gd-auth-brand-header img,
.gd-auth-brand-header svg {
    width: 64px;
    height: 64px;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 0 15px var(--gd-green-neon));
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.gd-footer {
    margin-top: auto;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--gd-border-subtle);
    background: rgba(9, 15, 11, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--gd-text-muted);
}

.gd-footer-domain {
    font-family: var(--gd-font-mono);
    color: var(--gd-green-emerald);
}

/* Responsive */
@media (max-width: 768px) {
    .gd-navbar {
        padding: 0.75rem 1rem;
    }
    .gd-nav-links {
        display: none;
    }
    .gd-footer {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}


/* ==========================================================================
   EXTRA UTILITIES & COMPONENT EXTENSIONS
   ========================================================================== */

.gd-stat-widget {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
}

.gd-code-block {
    background: #050a07;
    border: 1px solid var(--gd-border-subtle);
    border-radius: 6px;
    padding: 0.85rem 1rem;
    font-family: var(--gd-font-mono);
    font-size: 0.85rem;
    overflow-x: auto;
}

.gd-badge-outline {
    background: transparent;
    color: var(--gd-text-secondary);
    border: 1px solid var(--gd-border-subtle);
}

/* ==========================================================================
   ALTCHA & BOT VERIFICATION
   ========================================================================== */

@keyframes altcha-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   BLAZOR SYSTEM STYLES
   ========================================================================== */

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

#blazor-error-ui {
    background: #1a0808;
    color: #fca5a5;
    bottom: 0;
    box-shadow: 0 -1px 10px rgba(239, 68, 68, 0.4);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-family: var(--gd-font-mono);
    border-top: 1px solid var(--gd-danger);
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
    color: #fca5a5;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* ==========================================================================
   PROMETHEUS TELEMETRY & SYSTEM METRICS (CYBER HUD ADDITIONS)
   Additive styles for hardware monitoring cards & gauges
   ========================================================================== */

.gd-telemetry-card {
    background: linear-gradient(135deg, rgba(17, 29, 23, 0.85) 0%, rgba(12, 21, 16, 0.95) 100%);
    border: 1px solid var(--gd-border-subtle);
    border-radius: 8px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gd-telemetry-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gd-green-neon);
    box-shadow: 0 0 10px var(--gd-green-glow);
}

.gd-telemetry-card:hover {
    border-color: var(--gd-border-neon);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.12);
}

.gd-telemetry-card-offline::before {
    background: var(--gd-warning);
    box-shadow: 0 0 10px var(--gd-warning-glow);
}

.gd-progress-track {
    width: 100%;
    height: 8px;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin: 0.75rem 0;
    position: relative;
}

.gd-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #054f2c 0%, #00ff88 100%);
    box-shadow: 0 0 8px var(--gd-green-glow);
    border-radius: 3px;
    transition: width 0.5s ease-out;
}

.gd-progress-fill.warning {
    background: linear-gradient(90deg, #b45309 0%, #f59e0b 100%);
    box-shadow: 0 0 8px var(--gd-warning-glow);
}

.gd-progress-fill.danger {
    background: linear-gradient(90deg, #991b1b 0%, #ef4444 100%);
    box-shadow: 0 0 8px var(--gd-danger-glow);
}

.gd-telemetry-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-family: var(--gd-font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid var(--gd-border-neon);
    color: var(--gd-green-mint);
}

.gd-telemetry-status-pill.offline {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.gd-metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--gd-font-mono);
    font-size: 0.8rem;
    color: var(--gd-text-secondary);
    margin-top: 0.35rem;
}

/* ==========================================================================
   USER MANAGEMENT & PERMISSIONS (ADMIN MODULE ADDITIONS)
   Additive styles for admin modals, permission checkboxes & chips
   ========================================================================== */

.gd-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 8, 6, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.5rem;
    animation: fadeIn 0.2s ease-out;
}

.gd-modal-dialog {
    background: linear-gradient(145deg, #0d1712 0%, #070e0a 100%);
    border: 1px solid var(--gd-green-neon);
    border-radius: 8px;
    box-shadow: 0 0 35px rgba(0, 255, 136, 0.15), 0 20px 40px rgba(0, 0, 0, 0.8);
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.75rem;
    position: relative;
}

.gd-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gd-border-subtle);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}

.gd-modal-title {
    font-family: var(--gd-font-cyber);
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gd-close-btn {
    background: transparent;
    border: none;
    color: var(--gd-text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.gd-close-btn:hover {
    color: var(--gd-green-neon);
}

.gd-perm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.85rem;
    margin: 1rem 0;
}

.gd-perm-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(0, 255, 136, 0.03);
    border: 1px solid var(--gd-border-subtle);
    border-radius: 6px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gd-perm-item:hover {
    border-color: var(--gd-green-emerald);
    background: rgba(0, 255, 136, 0.06);
}

.gd-perm-item.selected {
    border-color: var(--gd-green-neon);
    background: rgba(0, 255, 136, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.1);
}

.gd-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-family: var(--gd-font-mono);
    border: 1px solid var(--gd-border-subtle);
    background: rgba(255, 255, 255, 0.04);
    color: var(--gd-text-secondary);
}

.gd-chip.granted {
    border-color: rgba(0, 255, 136, 0.4);
    background: rgba(0, 255, 136, 0.08);
    color: var(--gd-green-mint);
}
