/* Components — Corner Frames, Angled Headers, Glow Separators, Badges, Code Blocks, Pills */

/* ===== Corner Frame Panels ===== */
/* Uses 4 absolute-positioned corner divs (.tl, .tr, .bl, .br) inside the element.
   Markup: <div class="corner-frame"><div class="tl"></div><div class="tr"></div><div class="bl"></div><div class="br"></div> ... content ... </div> */
.corner-frame,
.corner-frame-green,
.corner-frame-orange,
.corner-frame-warn {
    position: relative;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.015);
    backdrop-filter: blur(2px);
}

/* Corner bracket divs — shared positioning and sizing */
.corner-frame > .tl, .corner-frame > .tr, .corner-frame > .bl, .corner-frame > .br,
.corner-frame-green > .tl, .corner-frame-green > .tr, .corner-frame-green > .bl, .corner-frame-green > .br,
.corner-frame-orange > .tl, .corner-frame-orange > .tr, .corner-frame-orange > .bl, .corner-frame-orange > .br,
.corner-frame-warn > .tl, .corner-frame-warn > .tr, .corner-frame-warn > .bl, .corner-frame-warn > .br {
    position: absolute;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

/* Corner positions */
.corner-frame > .tl, .corner-frame-green > .tl, .corner-frame-orange > .tl, .corner-frame-warn > .tl { top: 0; left: 0; }
.corner-frame > .tr, .corner-frame-green > .tr, .corner-frame-orange > .tr, .corner-frame-warn > .tr { top: 0; right: 0; }
.corner-frame > .bl, .corner-frame-green > .bl, .corner-frame-orange > .bl, .corner-frame-warn > .bl { bottom: 0; left: 0; }
.corner-frame > .br, .corner-frame-green > .br, .corner-frame-orange > .br, .corner-frame-warn > .br { bottom: 0; right: 0; }

/* Cyan (default) — corner brackets */
.corner-frame > .tl { border-top: 1px solid rgba(0, 212, 255, 0.35); border-left: 1px solid rgba(0, 212, 255, 0.35); }
.corner-frame > .tr { border-top: 1px solid rgba(0, 212, 255, 0.35); border-right: 1px solid rgba(0, 212, 255, 0.35); }
.corner-frame > .bl { border-bottom: 1px solid rgba(0, 212, 255, 0.35); border-left: 1px solid rgba(0, 212, 255, 0.35); }
.corner-frame > .br { border-bottom: 1px solid rgba(0, 212, 255, 0.35); border-right: 1px solid rgba(0, 212, 255, 0.35); }

/* Cyan (default) — faint connecting lines */
.corner-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(0, 212, 255, 0.06);
}

/* Green variant — corner brackets */
.corner-frame-green > .tl { border-top: 1px solid rgba(0, 255, 136, 0.35); border-left: 1px solid rgba(0, 255, 136, 0.35); }
.corner-frame-green > .tr { border-top: 1px solid rgba(0, 255, 136, 0.35); border-right: 1px solid rgba(0, 255, 136, 0.35); }
.corner-frame-green > .bl { border-bottom: 1px solid rgba(0, 255, 136, 0.35); border-left: 1px solid rgba(0, 255, 136, 0.35); }
.corner-frame-green > .br { border-bottom: 1px solid rgba(0, 255, 136, 0.35); border-right: 1px solid rgba(0, 255, 136, 0.35); }

/* Green variant — faint connecting lines */
.corner-frame-green::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(0, 255, 136, 0.04);
}

/* Orange variant — corner brackets */
.corner-frame-orange > .tl { border-top: 1px solid rgba(255, 167, 38, 0.35); border-left: 1px solid rgba(255, 167, 38, 0.35); }
.corner-frame-orange > .tr { border-top: 1px solid rgba(255, 167, 38, 0.35); border-right: 1px solid rgba(255, 167, 38, 0.35); }
.corner-frame-orange > .bl { border-bottom: 1px solid rgba(255, 167, 38, 0.35); border-left: 1px solid rgba(255, 167, 38, 0.35); }
.corner-frame-orange > .br { border-bottom: 1px solid rgba(255, 167, 38, 0.35); border-right: 1px solid rgba(255, 167, 38, 0.35); }

/* Orange variant — faint connecting lines */
.corner-frame-orange::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(255, 167, 38, 0.04);
}

/* Warn variant (legacy alias for orange) — corner brackets */
.corner-frame-warn > .tl { border-top: 1px solid rgba(255, 167, 38, 0.35); border-left: 1px solid rgba(255, 167, 38, 0.35); }
.corner-frame-warn > .tr { border-top: 1px solid rgba(255, 167, 38, 0.35); border-right: 1px solid rgba(255, 167, 38, 0.35); }
.corner-frame-warn > .bl { border-bottom: 1px solid rgba(255, 167, 38, 0.35); border-left: 1px solid rgba(255, 167, 38, 0.35); }
.corner-frame-warn > .br { border-bottom: 1px solid rgba(255, 167, 38, 0.35); border-right: 1px solid rgba(255, 167, 38, 0.35); }

/* Warn variant — faint connecting lines */
.corner-frame-warn::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(255, 167, 38, 0.04);
}

/* ===== Legacy feature-card (maps to corner-frame) ===== */
/* Markup: <a class="feature-card"><div class="tl"></div><div class="tr"></div><div class="bl"></div><div class="br"></div> ... </a> */
.feature-card {
    position: relative;
    padding: 1.25rem;
    background: rgba(0, 212, 255, 0.015);
    backdrop-filter: blur(2px);
    text-decoration: none;
    color: var(--text);
    display: block;
}

/* Feature card corner divs */
.feature-card > .tl, .feature-card > .tr, .feature-card > .bl, .feature-card > .br {
    position: absolute;
    width: 16px;
    height: 16px;
    pointer-events: none;
}
.feature-card > .tl { top: 0; left: 0; border-top: 1px solid rgba(0, 212, 255, 0.35); border-left: 1px solid rgba(0, 212, 255, 0.35); transition: border-color var(--transition); }
.feature-card > .tr { top: 0; right: 0; border-top: 1px solid rgba(0, 212, 255, 0.35); border-right: 1px solid rgba(0, 212, 255, 0.35); transition: border-color var(--transition); }
.feature-card > .bl { bottom: 0; left: 0; border-bottom: 1px solid rgba(0, 212, 255, 0.35); border-left: 1px solid rgba(0, 212, 255, 0.35); transition: border-color var(--transition); }
.feature-card > .br { bottom: 0; right: 0; border-bottom: 1px solid rgba(0, 212, 255, 0.35); border-right: 1px solid rgba(0, 212, 255, 0.35); transition: border-color var(--transition); }

/* Feature card faint connecting lines */
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(0, 212, 255, 0.06);
    transition: border-color var(--transition);
}

/* Feature card hover — brighter corners and connecting lines */
.feature-card:hover > .tl { border-top-color: rgba(0, 229, 255, 0.5); border-left-color: rgba(0, 229, 255, 0.5); }
.feature-card:hover > .tr { border-top-color: rgba(0, 229, 255, 0.5); border-right-color: rgba(0, 229, 255, 0.5); }
.feature-card:hover > .bl { border-bottom-color: rgba(0, 229, 255, 0.5); border-left-color: rgba(0, 229, 255, 0.5); }
.feature-card:hover > .br { border-bottom-color: rgba(0, 229, 255, 0.5); border-right-color: rgba(0, 229, 255, 0.5); }
.feature-card:hover::before { border-color: rgba(0, 229, 255, 0.1); }

.feature-card h3 {
    color: var(--cyan);
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0;
}

.feature-card:hover {
    color: var(--text);
}

.feature-card:hover h3 {
    color: var(--cyan-bright);
}

/* ===== Angled Section Headers ===== */
.angled-header {
    display: inline-block;
    background: linear-gradient(135deg, transparent 8px, rgba(0, 212, 255, 0.1) 8px);
    padding: 0.3rem 1.2rem 0.3rem 1rem;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    border-bottom: 2px solid var(--cyan);
    margin-bottom: 0.75rem;
}

.angled-header span,
.angled-header {
    color: var(--cyan);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.angled-header-sm {
    display: inline-block;
    background: linear-gradient(135deg, transparent 5px, rgba(0, 212, 255, 0.1) 5px);
    padding: 0.15rem 0.6rem 0.15rem 0.45rem;
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    border-bottom: 1px solid var(--cyan);
    margin-bottom: 0.5rem;
}

.angled-header-sm span,
.angled-header-sm {
    color: var(--cyan);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ===== Glow Line Separators ===== */
.glow-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan) 20%, var(--cyan) 80%, transparent);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

.glow-separator-diamond {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.glow-separator-diamond::before,
.glow-separator-diamond::after {
    content: '';
    flex: 1;
    height: 1px;
}

.glow-separator-diamond::before {
    background: linear-gradient(90deg, transparent, var(--cyan));
}

.glow-separator-diamond::after {
    background: linear-gradient(90deg, var(--cyan), transparent);
}

.glow-separator-diamond .diamond {
    width: 5px;
    height: 5px;
    background: var(--cyan);
    transform: rotate(45deg);
    box-shadow: 0 0 4px rgba(0, 212, 255, 0.4);
    flex-shrink: 0;
}

/* Left-fade variant for article underlines */
.glow-separator-left {
    height: 1px;
    background: linear-gradient(90deg, var(--cyan) 30%, transparent);
    box-shadow: 0 0 6px rgba(0, 212, 255, 0.2);
}

/* ===== HUD Badges ===== */
.hud-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.5rem;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
    color: var(--cyan);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hud-badge-orange {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.5rem;
    background: rgba(255, 167, 38, 0.05);
    border: 1px solid rgba(255, 167, 38, 0.2);
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
    color: var(--orange);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hud-badge-green {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.5rem;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
    color: #00ff88;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Legacy badge classes (keep for backward compat) */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.5rem;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
    color: var(--cyan);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-mcp {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
    color: var(--cyan);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.badge-universal {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    background: rgba(255, 167, 38, 0.05);
    border: 1px solid rgba(255, 167, 38, 0.2);
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
    color: var(--orange);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

/* ===== Terminal-Style Code Blocks ===== */
.code-block {
    position: relative;
    background: rgba(0, 8, 20, 0.85);
    border-left: 2px solid var(--cyan);
    border-top: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0;
    padding: 0.6rem 0.8rem 0.6rem 2rem;
    overflow-x: auto;
    margin: 0.75rem 0;
}

.code-block::before {
    content: '>';
    position: absolute;
    top: 0.45rem;
    left: 0.6rem;
    color: rgba(0, 212, 255, 0.4);
    font-size: 0.65rem;
    font-family: 'Consolas', 'Monaco', monospace;
}

.code-block code {
    background: transparent;
    color: var(--orange);
    display: block;
    padding: 0;
    font-size: 0.85rem;
    line-height: 1.6;
    word-break: normal;
}

/* Multi-line code variant (no prompt) */
.code-block-multi {
    position: relative;
    background: rgba(0, 8, 20, 0.85);
    border-left: 2px solid var(--cyan);
    padding: 0.75rem 1rem;
    overflow-x: auto;
    margin: 0.75rem 0;
}

.code-block-multi code {
    background: transparent;
    color: var(--text);
    display: block;
    padding: 0;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ===== Copy Button ===== */
.btn-copy {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 3px;
    color: rgba(0, 212, 255, 0.6);
    font-size: 0.6rem;
    font-family: inherit;
    transition: all var(--transition);
}

.btn-copy:hover {
    background: rgba(0, 212, 255, 0.15);
    color: var(--cyan);
    border-color: var(--cyan-glow);
}

/* ===== Section Headers (legacy support) ===== */
.section-header {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
    color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan-glow), 0 0 20px var(--cyan-dim);
}

.section-header::after {
    content: '';
    display: block;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    box-shadow: 0 0 6px rgba(0, 212, 255, 0.3);
    margin: 0.75rem auto 0;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* ===== Platform Pills ===== */
.pill-bar {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--cyan-hairline);
    position: sticky;
    top: 0;
    background: rgba(10, 10, 20, 0.8);
    backdrop-filter: blur(4px);
    z-index: 10;
}

.pill {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-surface);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.pill:hover {
    color: var(--cyan);
    border-color: var(--cyan-glow);
}

.pill.active {
    background: var(--cyan);
    color: var(--bg-deep);
    border-color: var(--cyan);
    font-weight: 600;
}

@media (max-width: 768px) {
    .pill-bar {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .pill-bar::-webkit-scrollbar {
        display: none;
    }
}

/* ===== Platform Sections (Get Started) ===== */
.platform-section {
    padding: 2rem 0;
    border-bottom: 1px solid var(--cyan-hairline);
}

.platform-section:last-child {
    border-bottom: none;
}

.platform-section h2 {
    color: var(--cyan);
    font-size: 1.3rem;
    margin: 0 0 0.5rem;
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.platform-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 1.2rem;
}

.badge-fastest {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 10px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    background: var(--cyan-dim);
    color: var(--cyan);
}

.badge-plan {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 10px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    background: var(--orange-dim);
    color: var(--orange);
}

/* Setup steps */
.setup-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.setup-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    min-width: 2rem;
    height: 2rem;
    background: var(--cyan-dim);
    color: var(--cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content { flex: 1; }

.step-content .step-title {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.step-content .step-sub {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.step-content .step-sub a { color: var(--cyan); }

/* Config blocks (inline code with orange text) */
.config-block {
    background: rgba(0, 8, 20, 0.85);
    border-left: 2px solid var(--cyan);
    padding: 0.5rem 0.75rem;
    margin-top: 0.4rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    color: var(--orange);
    overflow-x: auto;
}

/* Done callout */
.done-callout {
    margin-top: 1.2rem;
    padding: 0.75rem 1rem;
    background: var(--cyan-subtle);
    border: 1px solid var(--cyan-glow);
    border-radius: var(--radius-sm);
    color: var(--cyan);
    font-size: 0.9rem;
}

/* Direct access cards */
.direct-access-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.direct-access-card {
    flex: 1;
    min-width: 200px;
    position: relative;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.015);
}

.direct-access-card > .tl, .direct-access-card > .tr, .direct-access-card > .bl, .direct-access-card > .br {
    position: absolute;
    width: 16px;
    height: 16px;
    pointer-events: none;
}
.direct-access-card > .tl { top: 0; left: 0; border-top: 1px solid rgba(0, 212, 255, 0.35); border-left: 1px solid rgba(0, 212, 255, 0.35); }
.direct-access-card > .tr { top: 0; right: 0; border-top: 1px solid rgba(0, 212, 255, 0.35); border-right: 1px solid rgba(0, 212, 255, 0.35); }
.direct-access-card > .bl { bottom: 0; left: 0; border-bottom: 1px solid rgba(0, 212, 255, 0.35); border-left: 1px solid rgba(0, 212, 255, 0.35); }
.direct-access-card > .br { bottom: 0; right: 0; border-bottom: 1px solid rgba(0, 212, 255, 0.35); border-right: 1px solid rgba(0, 212, 255, 0.35); }

.direct-access-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(0, 212, 255, 0.06);
}

.direct-access-card h3 {
    color: var(--orange);
    font-size: 0.9rem;
    margin: 0 0 0.5rem;
}

.direct-access-card p {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin: 0 0 0.5rem;
    line-height: 1.5;
}

.direct-access-card a {
    color: var(--cyan);
    font-size: 0.82rem;
    text-decoration: none;
}

.direct-access-card a:hover { color: var(--cyan-bright); }

/* ===== Collapsible sections ===== */
.collapsible {
    border: 1px solid var(--cyan-dim);
    border-radius: var(--radius);
    margin: 0.75rem 0;
    overflow: hidden;
}

.collapsible-toggle { display: none; }

.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    background: rgba(0, 212, 255, 0.015);
    transition: background var(--transition);
    color: var(--text);
}

.collapsible-header:hover { background: var(--bg-alt); }

.collapsible-icon {
    color: var(--cyan);
    transition: transform var(--transition);
    font-size: 0.9rem;
}

.collapsible-toggle:checked + .collapsible-header .collapsible-icon {
    transform: rotate(90deg);
}

.collapsible-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.25rem;
}

.collapsible-toggle:checked ~ .collapsible-body {
    max-height: 2000px;
    padding: 1rem 1.25rem;
}

/* Template actions */
.template-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

/* Back link */
.back-link {
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transition: color var(--transition);
}

.back-link:hover { color: var(--cyan); }

/* ===== Diamond bullet list ===== */
.diamond-list {
    list-style: none;
    padding: 0;
}

.diamond-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.diamond-list li::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--cyan);
    transform: rotate(45deg);
    flex-shrink: 0;
    margin-top: 0.5rem;
}

/* ===== Alerts ===== */
.alert {
    padding: 0.75rem 1rem;
    background: var(--cyan-subtle);
    border-left: 2px solid var(--cyan);
    color: var(--cyan);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.alert-error {
    padding: 0.75rem 1rem;
    background: var(--danger-dim);
    border-left: 2px solid var(--danger);
    color: var(--danger);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* ===== Dashboard grid (Account Index) ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.card {
    position: relative;
    padding: 1.25rem;
    background: rgba(0, 212, 255, 0.015);
    backdrop-filter: blur(2px);
}

.card > .tl, .card > .tr, .card > .bl, .card > .br {
    position: absolute;
    width: 16px;
    height: 16px;
    pointer-events: none;
}
.card > .tl { top: 0; left: 0; border-top: 1px solid rgba(0, 212, 255, 0.35); border-left: 1px solid rgba(0, 212, 255, 0.35); }
.card > .tr { top: 0; right: 0; border-top: 1px solid rgba(0, 212, 255, 0.35); border-right: 1px solid rgba(0, 212, 255, 0.35); }
.card > .bl { bottom: 0; left: 0; border-bottom: 1px solid rgba(0, 212, 255, 0.35); border-left: 1px solid rgba(0, 212, 255, 0.35); }
.card > .br { bottom: 0; right: 0; border-bottom: 1px solid rgba(0, 212, 255, 0.35); border-right: 1px solid rgba(0, 212, 255, 0.35); }

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(0, 212, 255, 0.06);
}

.card h2 {
    color: var(--cyan);
    font-size: 1rem;
    margin: 0 0 0.5rem;
}

.card .stat {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.25rem 0;
}

.card a {
    color: var(--cyan);
    font-size: 0.85rem;
}

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