/* ===============================================================
   Hookah Payments — admin styles
   Тёмная тема + фиолетовый glow, JetBrains Mono для чисел/кода.
   Минималистичная, мобильная не приоритет.
=============================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
    background: #0a0a0c;
    color: #e7e7ec;
    font-family: 'Inter', -apple-system, sans-serif;
    min-height: 100vh;
}
code, .mono { font-family: 'JetBrains Mono', monospace; font-size: 0.92em; color: #c8b3ff; }

.bg-glow {
    position: fixed; inset: 0; pointer-events: none; z-index: -1;
    background:
        radial-gradient(ellipse 800px 600px at 25% 20%, rgba(139,92,246,0.15), transparent),
        radial-gradient(ellipse 600px 800px at 80% 70%, rgba(168,85,247,0.10), transparent);
    filter: blur(70px);
}

a { color: #b388ff; text-decoration: none; }
a:hover { color: #d4baff; }

/* ─── Login page ─── */
.login-body { display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card {
    background: rgba(20, 20, 25, 0.7);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 40px 36px;
    width: 100%; max-width: 360px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    text-align: center;
}
.login-logo { font-size: 48px; margin-bottom: 12px; }
.login-card h1 { font-size: 22px; margin-bottom: 6px; font-weight: 600; }
.login-card .muted { color: #888; font-size: 13px; margin-bottom: 28px; }
.login-card form { display: flex; flex-direction: column; gap: 12px; }
.login-card input {
    padding: 12px 14px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #fff; font-size: 15px;
    outline: none; transition: border-color 0.15s;
}
.login-card input:focus { border-color: #b388ff; }
.login-card button {
    padding: 12px;
    background: linear-gradient(135deg, #8b5cf6, #b388ff);
    border: none; border-radius: 10px;
    color: white; font-weight: 600; font-size: 15px;
    cursor: pointer; transition: transform 0.1s, box-shadow 0.2s;
}
.login-card button:hover { box-shadow: 0 8px 24px rgba(139,92,246,0.4); }
.login-card button:active { transform: scale(0.98); }
.login-error { color: #ff6b6b; font-size: 13px; margin-top: 12px; min-height: 18px; }
.login-footer { margin-top: 24px; color: #555; font-size: 11px; }

/* ─── Dashboard layout ─── */
.topbar {
    display: flex; align-items: center; gap: 24px;
    padding: 14px 32px;
    background: rgba(15, 15, 20, 0.8);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);
    position: sticky; top: 0; z-index: 10;
}
.brand { font-weight: 700; font-size: 17px; }
.topbar nav { display: flex; gap: 6px; flex: 1; }
.tab-link {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px; color: #aaa;
    transition: background 0.15s, color 0.15s;
}
.tab-link:hover { color: #e7e7ec; background: rgba(255,255,255,0.04); }
.tab-link.active { color: #fff; background: rgba(139,92,246,0.18); }

main { padding: 28px 32px 60px; max-width: 1400px; margin: 0 auto; }
.tab { display: none; }
.tab.active { display: block; }

/* ─── Cards ─── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card {
    background: rgba(20, 20, 25, 0.6);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 20px;
    backdrop-filter: blur(20px);
    transition: border-color 0.2s;
}
.card:hover { border-color: rgba(139,92,246,0.3); }
.card.highlight { background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(20,20,25,0.6)); border-color: rgba(139,92,246,0.4); }
.card-label { color: #888; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.card-value { font-family: 'JetBrains Mono', monospace; font-size: 28px; font-weight: 600; color: #fff; }
.card-sub { color: #888; font-size: 13px; margin-top: 4px; font-family: 'JetBrains Mono', monospace; }

/* ─── Toolbar / forms ─── */
.toolbar { display: flex; gap: 12px; margin-bottom: 16px; align-items: center; }
.toolbar input, .toolbar select {
    padding: 9px 12px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px; color: #fff; outline: none;
    font-size: 13px; min-width: 280px;
}
.toolbar input:focus, .toolbar select:focus { border-color: #b388ff; }
button {
    padding: 9px 14px;
    background: rgba(139,92,246,0.18);
    border: 1px solid rgba(139,92,246,0.3);
    border-radius: 8px; color: #fff;
    cursor: pointer; font-size: 13px; font-weight: 500;
    transition: background 0.15s;
}
button:hover { background: rgba(139,92,246,0.28); }
button.ghost { background: transparent; border-color: rgba(255,255,255,0.1); color: #aaa; }
button.ghost:hover { background: rgba(255,255,255,0.04); color: #fff; }
button.mini { padding: 4px 10px; font-size: 12px; }

/* ─── Tables ─── */
.data-table {
    width: 100%; border-collapse: collapse;
    background: rgba(20, 20, 25, 0.5);
    border-radius: 10px; overflow: hidden;
    backdrop-filter: blur(20px);
}
.data-table th, .data-table td {
    padding: 11px 14px; text-align: left; font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.data-table th { background: rgba(255,255,255,0.03); color: #888; font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; }
.data-table tbody tr:hover { background: rgba(139,92,246,0.04); }
.data-table .small { font-size: 11px; }
.data-table .center { text-align: center; padding: 28px; }

/* ─── Pills ─── */
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.pill.green  { background: rgba(34,197,94,0.18); color: #4ade80; }
.pill.red    { background: rgba(239,68,68,0.18); color: #ff6b6b; }
.pill.yellow { background: rgba(234,179,8,0.18); color: #fbbf24; }
.pill.gray   { background: rgba(255,255,255,0.06); color: #888; }

/* ─── Modal ─── */
.modal {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
}
.modal.hidden { display: none; }
.modal-card {
    background: rgba(20, 20, 25, 0.95);
    border: 1px solid rgba(139,92,246,0.3);
    border-radius: 14px; padding: 28px;
    min-width: 360px; max-width: 460px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}
.modal-card h3 { margin-bottom: 12px; }
.modal-card p { margin-bottom: 16px; color: #aaa; font-size: 13px; }
.modal-card input {
    width: 100%; padding: 10px 12px; margin-bottom: 12px;
    background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px; color: #fff; outline: none; font-size: 14px;
}
.modal-card input:focus { border-color: #b388ff; }
.modal-card .row { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.modal-card .row.right { justify-content: flex-end; }
.modal-card label { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }

.muted { color: #888; }
.center { text-align: center; }
.small { font-size: 12px; }
