:root {
    color-scheme: dark;
    --bg: #080e19;
    --surface: #111c2e;
    --sidebar: #0c1525;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --border: #26364c;
    --primary: #2563eb;
    --accent: #60a5fa;
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f1f5f9;
    --surface: #ffffff;
    --sidebar: #ffffff;
    --text: #172033;
    --muted: #64748b;
    --border: #dbe3ed;
    --primary: #2563eb;
    --accent: #2563eb;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
}

.gca-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: 100vh;
}

.gca-sidebar {
    background: var(--sidebar);
    border-right: 1px solid var(--border);
    padding: 25px 18px;
}

.gca-brand {
    font-size: 25px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 2px;
}

.gca-subtitle {
    color: var(--muted);
    font-size: 12px;
    margin: 8px 0 35px;
}

.gca-nav-label {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 1.5px;
    margin: 25px 12px 12px;
}

.gca-sidebar a,
.gca-sidebar button {
    display: block;
    width: 100%;
    padding: 13px;
    margin: 5px 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    text-align: left;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.gca-sidebar a:hover,
.gca-sidebar button:hover {
    background: var(--surface);
    color: var(--accent);
}

.gca-content { min-width: 0; }

.gca-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border);
    background: var(--sidebar);
}

.gca-content main {
    width: 100%;
    max-width: 1500px;
    margin: auto;
    padding: 32px;
}

section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px #0000000a;
}

h1 { font-size: 30px; color: var(--text); }
h2 { font-size: 20px; }
h3 { font-size: 16px; }

.gca-content a,
button {
    border-radius: 8px;
}

button, .gca-button {
    background: var(--primary);
    color: white;
    border: 0;
    padding: 12px 18px;
    cursor: pointer;
}

input, select, textarea {
    width: 100%;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    margin: 6px 0 16px;
}

label {
    display: block;
    color: var(--muted);
    font-weight: 600;
}

.grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
}

footer {
    color: var(--muted);
    text-align: center;
    padding: 25px;
    font-size: 12px;
}

.gca-role {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 7px 14px;
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 760px) {
    .gca-shell { grid-template-columns: 1fr; }
    .gca-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }
    .gca-content main { padding: 18px; }
    .gca-topbar { padding: 15px; }
}

.page-heading {
    margin: 10px 0 28px;
}

.page-heading h1 {
    margin: 8px 0;
}

.page-heading p {
    color: var(--muted);
}

.eyebrow {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.gca-button,
.secondary-button {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    padding: 12px 16px;
    border-radius: 8px;
}

.secondary-button {
    border: 1px solid var(--border);
    color: var(--text);
    margin-top: 10px;
}

.download-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.download-card p {
    color: var(--muted);
    flex: 0;
    margin: 6px 0;
}

.download-card {
    justify-content: flex-start;
    gap: 12px;
}

.download-card .secondary-button:last-child {
    margin-top: auto;
}

.platform-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    font-size: 24px;
    font-weight: 700;
}

.profile-qr {
    display: block;
    width: 240px;
    max-width: 100%;
    height: auto;
    padding: 12px;
    background: white;
    border-radius: 12px;
    margin: 20px auto;
}

.error {
    color: #ef4444;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

a:hover, button:hover {
    filter: brightness(1.1);
}


.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(ellipse at top,
        #2563eb20, transparent 65%),
        var(--bg);
}

.login-container {
    width: 100%;
    max-width: 440px;
    text-align: center;
}

.login-brand {
    font-size: 52px;
    font-weight: 900;
    letter-spacing: 8px;
    color: var(--accent);
}

.login-panel {
    margin-top: 28px;
    padding: 34px;
    text-align: left;
}

.login-panel h1 {
    margin: 0 0 8px;
}

.login-description {
    color: var(--muted);
    margin-bottom: 30px;
}

.login-submit {
    width: 100%;
    font-size: 15px;
    font-weight: 600;
    margin-top: 10px;
}

.login-divider {
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

.theme-button {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}


.stat-value {
    font-size: 38px;
    font-weight: 750;
    color: var(--accent);
    margin: 12px 0;
    font-variant-numeric: tabular-nums;
}

.stats-grid section {
    border-top: 3px solid var(--primary);
}

.stats-grid section > span:last-child {
    color: var(--muted);
    font-size: 13px;
}


.copy-field {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.copy-field input {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.copy-field button {
    flex-shrink: 0;
    margin: 0;
}

@media (max-width: 600px) {
    .copy-field {
        flex-direction: column;
        align-items: stretch;
    }
}

