:root {
    color-scheme: dark;
    font-family: Arial, Helvetica, sans-serif;
    background: #020817;
    color: #fff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, #082f49 0%, #020817 55%, #000 100%);
    color: #fff;
}
a, button, input { font: inherit; }
a { color: #67e8f9; }
a:focus, button:focus, input:focus {
    outline: 3px solid #67e8f9;
    outline-offset: 3px;
}
.page {
    width: min(100% - 32px, 1000px);
    margin: 0 auto;
    padding: 28px 0 48px;
}
.card {
    width: min(100%, 560px);
    margin: 24px auto;
    padding: 28px;
    background: #071426;
    border: 1px solid #155e75;
    border-radius: 16px;
}
.card.wide { width: min(100%, 1000px); }
h1, h2, h3 { color: #67e8f9; }
h1 { margin-top: 0; }
p { line-height: 1.6; }
.notice, .error, .success, .promo {
    padding: 16px;
    border-radius: 10px;
    margin: 16px 0;
    line-height: 1.5;
}
.notice { background: #172554; border: 1px solid #3b82f6; }
.error { background: #451a03; border: 1px solid #f59e0b; color: #fef3c7; }
.success { background: #052e2b; border: 1px solid #10b981; color: #d1fae5; }
.promo { background: #0c2340; border: 1px solid #38bdf8; }
.price {
    font-size: 30px;
    font-weight: 700;
    color: #67e8f9;
}
form { margin: 0; }
label {
    display: block;
    margin: 16px 0 7px;
    font-weight: 700;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"] {
    width: 100%;
    padding: 13px 14px;
    border-radius: 9px;
    border: 1px solid #155e75;
    background: #020617;
    color: #fff;
}
.check {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 18px 0;
}
.check label { margin: 0; font-weight: 400; }
.button, button {
    display: inline-block;
    border: 0;
    border-radius: 9px;
    padding: 13px 18px;
    background: #075985;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
}
.button.secondary { background: #1f2937; }
.button.google { background: #fff; color: #111827; }
.button.confirm { background: #047857; border: 0; }
.button.danger { background: #991b1b; }
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.stack {
    display: grid;
    gap: 12px;
}
.item {
    display: block;
    width: 100%;
    padding: 16px;
    border: 1px solid #334155;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    text-decoration: none;
    text-align: left;
}
button.item { cursor: pointer; }
.item:hover, .item:focus { background: #1f2937; }
.header {
    margin-bottom: 24px;
}
.muted { color: #cbd5e1; }
.small { font-size: 14px; color: #94a3b8; }
.separator {
    margin: 20px 0;
    text-align: center;
    color: #94a3b8;
}
.footer {
    margin-top: 32px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.player-panel,
.text-panel {
    display: none;
    margin-top: 24px;
    padding: 22px;
    border: 1px solid #334155;
    border-radius: 12px;
    background: #0f172a;
}
.player-panel.active,
.text-panel.active { display: block; }
audio { width: 100%; margin: 14px 0; }
.text-content {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.6;
    background: #020617;
    border-radius: 9px;
    padding: 18px;
}
.mini {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: min(390px, calc(100% - 32px));
    padding: 15px;
    border-radius: 12px;
    background: #111827;
    border: 1px solid #475569;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.mini strong, .mini span { display: block; }
.progress {
    height: 6px;
    margin-top: 10px;
    background: #334155;
    border-radius: 999px;
    overflow: hidden;
}
.progress > span {
    height: 100%;
    display: block;
    background: #ef4444;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
}
th, td {
    border: 1px solid #334155;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}
th { background: #0f172a; }
.inline-form { display: inline; }
.admin-grid {
    display: grid;
    gap: 18px;
}
@media (max-width: 700px) {
    .page { width: min(100% - 20px, 1000px); padding-top: 14px; }
    .card { padding: 20px; }
    .actions { flex-direction: column; }
    .button, button { width: 100%; text-align: center; }
    table, thead, tbody, tr, th, td { display: block; }
    thead { position: absolute; left: -9999px; }
    tr { border: 1px solid #334155; margin-bottom: 12px; border-radius: 10px; overflow: hidden; }
    td { border: 0; border-bottom: 1px solid #334155; }
}
