/* ===================================================================
   ARES v3.0 — Dashboard Neo-Glass / Cyber-Dark (clon de la foto)
   Palette: #050505 cyber-darker · #0a0e14 panels · #00b4ff cyan electric
            #ffffff white · #ff0000 red accents
   Fonts:   Montserrat · Plus Jakarta Sans
=================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-deep:       #02050a;
    --bg-panel:      #0a0e16;
    --bg-panel-2:    #0d1320;
    --line:          rgba(0, 180, 255, 0.12);
    --line-strong:   rgba(0, 180, 255, 0.30);
    --cyan:          #00b4ff;
    --cyan-soft:     #4cd0ff;
    --red:           #ff2a2a;
    --white:         #ffffff;
    --txt-dim:       rgba(255, 255, 255, 0.55);
    --txt-mute:      rgba(255, 255, 255, 0.35);
    --shadow-cyan:   0 0 32px rgba(0, 180, 255, 0.35);
    --glass:         rgba(255, 255, 255, 0.025);
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    background: var(--bg-deep);
    color: var(--white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

/* =============== AMBIENT BACKGROUND =============== */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 180, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 180, 255, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
}

.orb-blue {
    background: var(--cyan);
    width: 60vmin;
    height: 60vmin;
    bottom: -20vmin;
    left: 50%;
    transform: translateX(-50%);
    animation: pulseBlue 8s ease-in-out infinite;
}

.orb-red { display: none; }

@keyframes pulseBlue {
    0%, 100% { opacity: 0.30; transform: translateX(-50%) scale(1); }
    50%      { opacity: 0.45; transform: translateX(-50%) scale(1.10); }
}

.scanline {
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    top: 0;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    box-shadow: 0 0 10px var(--cyan);
    animation: scan 9s linear infinite;
    opacity: 0.4;
}

@keyframes scan {
    0%   { transform: translateY(-2px); }
    100% { transform: translateY(100vh); }
}

/* =============== TOPBAR =============== */
.topbar {
    position: relative;
    z-index: 5;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    background: rgba(8, 12, 22, 0.7);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-letter {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 16px;
    color: var(--cyan);
    letter-spacing: 4px;
    text-shadow: 0 0 12px rgba(0, 180, 255, 0.6);
}

.online-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    background: rgba(0, 220, 90, 0.10);
    border: 1px solid rgba(0, 220, 90, 0.40);
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #4ee78a;
}

.online-pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ee78a;
    box-shadow: 0 0 8px #4ee78a;
    animation: dotBlink 1.4s ease-in-out infinite;
}

@keyframes dotBlink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}

.topbar-clock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--txt-dim);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
}

.topbar-clock svg { color: var(--cyan); }
.topbar-clock .bar { color: rgba(255,255,255,0.18); }

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-btn {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.35);
    color: #ff5a5a;
    padding: 6px 13px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, transform 0.15s;
}

.topbar-btn:hover {
    background: rgba(255, 0, 0, 0.18);
    transform: translateY(-1px);
}

.weather-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(0, 180, 255, 0.06);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
}

.weather-pill .city {
    color: var(--cyan);
    font-size: 11px;
    letter-spacing: 0.5px;
}

.user-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px 4px 12px;
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
}

.logout-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(255, 0, 0, 0.08);
    border: 0;
    color: #ff7373;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.logout-btn:hover {
    background: rgba(255, 0, 0, 0.18);
}

/* =============== DASHBOARD GRID =============== */
.dashboard-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 290px 1fr 320px;
    gap: 14px;
    padding: 14px;
    height: calc(100vh - 52px);
    overflow: hidden;
}

.dash-col-left,
.dash-col-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    padding-right: 4px;
}

.dash-col-left::-webkit-scrollbar,
.dash-col-right::-webkit-scrollbar { width: 4px; }
.dash-col-left::-webkit-scrollbar-thumb,
.dash-col-right::-webkit-scrollbar-thumb {
    background: var(--line); border-radius: 2px;
}

.dash-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* =============== WIDGETS =============== */
.widget {
    background: rgba(10, 14, 22, 0.78);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(8px);
    transition: border-color 0.2s;
}

.widget:hover { border-color: var(--line-strong); }

.widget-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(0, 180, 255, 0.04);
}

.widget-header h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--cyan);
    flex: 1;
    letter-spacing: 0.4px;
}

.w-icon { font-size: 14px; opacity: 0.85; }

.w-refresh,
.w-mini {
    background: transparent;
    border: 0;
    color: var(--txt-dim);
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s, transform 0.3s;
}

.w-refresh:hover {
    color: var(--cyan);
    transform: rotate(180deg);
}

.w-mini {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    color: var(--cyan);
    font-weight: 700;
}

.widget-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.widget-footer {
    padding: 8px 14px;
    border-top: 1px solid var(--line);
    font-size: 10.5px;
    color: var(--txt-mute);
    text-align: center;
    letter-spacing: 0.3px;
}

/* Bars */
.bar-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--txt-dim);
    font-weight: 500;
}

.bar-label > span:last-child {
    color: var(--white);
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
}

.bar-track {
    height: 6px;
    background: rgba(0, 180, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan-soft), var(--cyan));
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 180, 255, 0.5);
}

/* Stat grid */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.stat-grid-2 { grid-template-columns: repeat(2, 1fr); }

.stat-cell {
    background: rgba(0, 180, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
    text-align: center;
}

.cell-label {
    font-size: 9.5px;
    letter-spacing: 1.2px;
    color: var(--txt-mute);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.cell-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
}

/* Weather */
.weather-body {
    flex-direction: row !important;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 4px !important;
}

.weather-temp {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.weather-loc {
    font-size: 11.5px;
    color: var(--txt-dim);
    margin-top: 4px;
    font-weight: 600;
}

.weather-desc {
    font-size: 10.5px;
    color: var(--txt-mute);
    text-transform: lowercase;
}

.weather-icon {
    font-size: 36px;
    color: var(--cyan);
    opacity: 0.8;
}

.weather-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px 14px 12px;
}

/* Camera */
.cam-body {
    position: relative;
    height: 160px;
    padding: 0 !important;
    overflow: hidden;
    background: #000;
}

.cam-body img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cam-overlay {
    position: absolute;
    inset: 0;
    display: none; /* visible cuando no hay stream */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--txt-dim);
    font-size: 12px;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.5),
        rgba(0, 180, 255, 0.05));
}

.cam-overlay.show { display: flex; }

.cam-icon {
    font-size: 28px;
    color: var(--cyan);
}

.cam-tags {
    position: absolute;
    bottom: 6px;
    left: 6px;
    right: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    pointer-events: none;
}

.cam-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 9.5px;
    padding: 2px 7px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    color: var(--cyan-soft);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cam-footer {
    color: var(--txt-mute);
    font-size: 10px;
}

/* Uptime */
.uptime-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--txt-dim);
    font-size: 11px;
}

.uptime-big {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1.2px;
}

/* =============== CENTER CORE =============== */
.core-container {
    position: relative;
    width: 420px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-rings {
    position: relative;
    width: 100%;
    height: 100%;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid var(--cyan);
    opacity: 0.55;
    box-shadow: inset 0 0 28px rgba(0, 180, 255, 0.12),
                0 0 24px rgba(0, 180, 255, 0.08);
}

.ring.outer {
    width: 100%;
    height: 100%;
    margin: -50% 0 0 -50%;
    animation: spin 36s linear infinite;
    border-style: dashed;
    opacity: 0.35;
}

.ring.middle {
    width: 78%;
    height: 78%;
    margin: -39% 0 0 -39%;
    animation: spin 22s linear infinite reverse;
}

.ring.inner {
    width: 56%;
    height: 56%;
    margin: -28% 0 0 -28%;
    border-color: rgba(0, 180, 255, 0.7);
    box-shadow:
        inset 0 0 36px rgba(0, 180, 255, 0.18),
        0 0 24px rgba(0, 180, 255, 0.20);
    animation: spin 14s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Tick marks (4-cardinal points like in photo) */
.ring-tick {
    position: absolute;
    top: 50%; left: 50%;
    width: 78%;
    height: 78%;
    margin: -39% 0 0 -39%;
    pointer-events: none;
}

.ring-tick::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--cyan), 0 0 24px var(--cyan);
}

.tick-1::before { top: -4px;  left: 50%; transform: translateX(-50%); }
.tick-2::before { right: -4px; top: 50%;  transform: translateY(-50%); }
.tick-3::before { bottom: -4px; left: 50%; transform: translateX(-50%); }
.tick-4::before { left: -4px;   top: 50%;  transform: translateY(-50%); }

/* Center core sphere */
.core-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 38%;
    height: 38%;
    margin: -19% 0 0 -19%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%,
            rgba(0, 180, 255, 0.55),
            rgba(0, 50, 100, 0.45) 60%,
            rgba(0, 0, 0, 0.85) 100%);
    box-shadow:
        inset 0 0 38px rgba(0, 0, 0, 0.6),
        inset 0 0 18px rgba(0, 180, 255, 0.4),
        0 0 50px rgba(0, 180, 255, 0.45),
        0 0 110px rgba(0, 180, 255, 0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.4s, transform 0.3s;
}

.core-center.listening {
    box-shadow:
        inset 0 0 38px rgba(0, 0, 0, 0.6),
        inset 0 0 22px rgba(0, 180, 255, 0.65),
        0 0 70px rgba(0, 180, 255, 0.65),
        0 0 130px rgba(0, 180, 255, 0.35);
}

.core-center.processing {
    box-shadow:
        inset 0 0 38px rgba(0, 0, 0, 0.6),
        inset 0 0 22px rgba(255, 200, 0, 0.5),
        0 0 70px rgba(255, 200, 0, 0.45),
        0 0 130px rgba(255, 200, 0, 0.25);
}

.core-center.responding {
    box-shadow:
        inset 0 0 38px rgba(0, 0, 0, 0.6),
        inset 0 0 22px rgba(255, 0, 0, 0.5),
        0 0 70px rgba(255, 0, 0, 0.55),
        0 0 130px rgba(255, 0, 0, 0.30);
}

.freq-bars {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 24px;
}

.freq-bars span {
    display: block;
    width: 4px;
    background: var(--cyan);
    border-radius: 2px;
    box-shadow: 0 0 6px var(--cyan);
    animation: freqWave 1s ease-in-out infinite;
}

.freq-bars span:nth-child(1) { animation-delay: 0.0s; height: 30%; }
.freq-bars span:nth-child(2) { animation-delay: 0.15s; height: 60%; }
.freq-bars span:nth-child(3) { animation-delay: 0.3s; height: 100%; }
.freq-bars span:nth-child(4) { animation-delay: 0.45s; height: 60%; }
.freq-bars span:nth-child(5) { animation-delay: 0.6s; height: 30%; }

@keyframes freqWave {
    0%, 100% { transform: scaleY(0.4); }
    50%      { transform: scaleY(1.2); }
}

.core-center.responding .freq-bars span {
    background: #ff6b6b;
    box-shadow: 0 0 6px #ff6b6b;
}

.core-label {
    margin-top: 4px;
    text-align: center;
}

.core-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 8px;
    text-shadow: 0 0 18px rgba(0, 180, 255, 0.45);
}

.core-status {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: rgba(0, 220, 90, 0.10);
    border: 1px solid rgba(0, 220, 90, 0.30);
    border-radius: 16px;
    font-size: 11.5px;
    color: #4ee78a;
    font-weight: 600;
}

.dot-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ee78a;
    box-shadow: 0 0 8px #4ee78a;
    animation: dotBlink 1.6s ease-in-out infinite;
}

/* Bottom toolbar */
.core-toolbar {
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.tool-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(10, 14, 22, 0.7);
    border: 1px solid var(--line);
    color: var(--cyan);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.tool-btn:hover {
    border-color: var(--cyan);
    background: rgba(0, 180, 255, 0.10);
    box-shadow: 0 0 14px rgba(0, 180, 255, 0.4);
}

.tool-btn-mic {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--cyan), #006bb8);
    color: #fff;
    border: 0;
    box-shadow: 0 0 24px rgba(0, 180, 255, 0.5);
}

.tool-btn-mic.active {
    background: linear-gradient(135deg, #ff2a2a, #b80000);
    box-shadow: 0 0 24px rgba(255, 0, 0, 0.6);
}

.tool-btn-mic:hover {
    transform: scale(1.05);
}

/* =============== RIGHT — CONVERSATION =============== */
.convo-card {
    background: rgba(10, 14, 22, 0.78);
    border: 1px solid var(--line);
    border-radius: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.convo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(0, 180, 255, 0.04);
}

.convo-header h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--cyan);
}

.convo-actions { display: flex; gap: 6px; }

.convo-btn {
    background: rgba(0, 180, 255, 0.06);
    border: 1px solid var(--line);
    color: var(--txt-dim);
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.convo-btn:hover { color: var(--cyan); border-color: var(--line-strong); }

.convo-stream {
    flex: 1;
    padding: 12px 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}

.convo-stream::-webkit-scrollbar { width: 4px; }
.convo-stream::-webkit-scrollbar-thumb {
    background: var(--line); border-radius: 2px;
}

.msg {
    max-width: 95%;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.5;
    animation: msgIn 0.3s ease-out;
}

@keyframes msgIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.msg p { color: rgba(255, 255, 255, 0.92); }

.msg-time {
    display: block;
    margin-top: 4px;
    font-size: 9.5px;
    color: var(--txt-mute);
    letter-spacing: 0.5px;
}

.msg-ares {
    background: rgba(0, 180, 255, 0.07);
    border: 1px solid rgba(0, 180, 255, 0.20);
    align-self: flex-start;
}

.msg-user {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    align-self: flex-end;
}

.msg.thinking p::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    margin-right: 6px;
    animation: dotBlink 1s ease-in-out infinite;
}

.convo-input {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.20);
}

.convo-input input {
    flex: 1;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 12px;
    color: var(--white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    outline: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.convo-input input::placeholder { color: var(--txt-mute); }

.convo-input input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 2px rgba(0, 180, 255, 0.15);
}

.convo-input button {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 0;
    background: linear-gradient(135deg, var(--cyan), #007ec0);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(0, 180, 255, 0.4);
    transition: transform 0.15s;
}

.convo-input button:hover { transform: translateX(2px); }
.convo-input button:disabled { opacity: 0.5; cursor: not-allowed; }

/* =============== DONATION MODAL =============== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.80);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.show { display: flex; }

.modal-card {
    background: var(--bg-panel);
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 0 60px rgba(0, 180, 255, 0.25);
    animation: msgIn 0.25s ease-out;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.modal-head h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
}

.modal-close {
    background: transparent;
    border: 0;
    color: var(--txt-dim);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover { color: var(--white); }

.modal-sub {
    color: var(--txt-dim);
    font-size: 12px;
    margin-bottom: 16px;
}

.donate-amounts {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.amt-chip {
    flex: 1 0 auto;
    background: rgba(0, 180, 255, 0.06);
    border: 1px solid var(--line);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.amt-chip:hover, .amt-chip.active {
    background: rgba(0, 180, 255, 0.18);
    border-color: var(--cyan);
    color: var(--cyan);
}

.donate-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.donate-grid label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 10.5px;
    color: var(--txt-dim);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.donate-grid input,
.donate-grid select {
    background: rgba(0, 0, 0, 0.40);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--white);
    font-size: 13px;
    outline: 0;
}

.donate-grid input:focus, .donate-grid select:focus {
    border-color: var(--cyan);
}

.modal-go {
    width: 100%;
    background: linear-gradient(135deg, var(--cyan), #006bb8);
    box-shadow: 0 0 18px rgba(0, 180, 255, 0.4);
}

.donate-note {
    margin-top: 10px;
    font-size: 11px;
    color: var(--txt-dim);
    text-align: center;
}

.donate-note.error { color: #ff6464; }

/* Auth-btn shared */
.auth-btn {
    padding: 12px 18px;
    border: 0;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
}

.auth-btn-primary { color: #fff; }
.auth-btn-primary:hover { transform: translateY(-1px); }

/* =============== RESPONSIVE =============== */
@media (max-width: 1280px) {
    .dashboard-grid { grid-template-columns: 270px 1fr 290px; }
    .core-container { width: 360px; height: 360px; }
}

@media (max-width: 1080px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
        overflow-y: auto;
    }
    .dash-col-left  { max-height: none; }
    .dash-col-right { min-height: 360px; }
    body { overflow: auto; }
}
