:root {
    color-scheme: dark;
    --member-bg: #0c0c0d;
    --member-panel: #151516;
    --member-line: rgba(255, 255, 255, 0.1);
    --member-text: #f5f1e8;
    --member-muted: #aaa69d;
    --member-gold: #f1d58f;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    padding: 98px 18px 36px;
    color: var(--member-text);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(181, 145, 71, 0.12), transparent 40rem),
        var(--member-bg);
    font-family: "Segoe UI", Tahoma, sans-serif;
}

.hidden {
    display: none !important;
}

.member-main {
    width: min(760px, 100%);
    margin: 0 auto;
}

.member-page-heading {
    margin-bottom: 22px;
}

.eyebrow {
    margin: 0 0 7px;
    color: var(--member-gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.17em;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 6px;
    font-size: clamp(26px, 5vw, 36px);
}

.member-page-heading > p:last-child,
.member-hint {
    color: var(--member-muted);
    font-size: 13px;
    line-height: 1.65;
}

.member-panel {
    padding: clamp(18px, 4vw, 28px);
    border: 1px solid var(--member-line);
    border-radius: 18px;
    background: rgba(21, 21, 22, 0.96);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.auth-panel {
    max-width: 500px;
}

.member-panel h2 {
    margin-bottom: 6px;
    font-size: 20px;
}

form,
.member-fields {
    display: grid;
    gap: 13px;
}

label {
    display: grid;
    gap: 7px;
    color: #e1ddd3;
    font-size: 13px;
    font-weight: 600;
}

input {
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid var(--member-line);
    border-radius: 9px;
    outline: none;
    color: var(--member-text);
    background: #0c0c0d;
    font: inherit;
}

input:focus {
    border-color: rgba(241, 213, 143, 0.7);
}

.member-button {
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 9px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.member-button:disabled {
    cursor: wait;
    opacity: 0.6;
}

.member-button-primary {
    color: #171307;
    background: var(--member-gold);
}

.member-button-secondary {
    width: 100%;
    margin-top: 5px;
    border-color: rgba(241, 213, 143, 0.24);
    color: var(--member-gold);
    background: transparent;
}

.text-button {
    display: inline-flex;
    margin-top: 12px;
    padding: 8px 0;
    border: 0;
    color: var(--member-gold);
    background: transparent;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.member-message {
    min-height: 20px;
    margin: 12px 0 0;
    color: #a7e4c4;
    font-size: 13px;
}

.member-message.error {
    color: #f0b3a5;
}

.profile-heading,
.history-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.points-badge {
    display: grid;
    min-width: 76px;
    min-height: 76px;
    align-content: center;
    justify-items: center;
    border: 1px solid rgba(241, 213, 143, 0.3);
    border-radius: 16px;
    color: var(--member-gold);
    background: rgba(241, 213, 143, 0.07);
    font-size: 25px;
    font-weight: 800;
}

.points-badge small {
    font-size: 11px;
    font-weight: 600;
}

.member-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 20px 0 12px;
}

.booking-history-section {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--member-line);
}

.history-heading {
    margin-bottom: 14px;
}

.history-heading h2 {
    margin-bottom: 0;
}

.history-heading > a {
    color: var(--member-gold);
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
}

.booking-history {
    display: grid;
    gap: 10px;
}

.booking-item {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--member-line);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.16);
}

.booking-item > span {
    color: var(--member-muted);
    font-size: 12px;
}

.booking-concert-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.booking-concert {
    display: grid;
    gap: 6px;
    padding: 11px;
    border: 1px solid var(--member-line);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
}

.booking-concert > strong {
    font-size: 13px;
    line-height: 1.5;
}

.booking-concert > span {
    color: var(--member-muted);
    font-size: 12px;
}

.watch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.watch-actions a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 7px 10px;
    border: 1px solid rgba(241, 213, 143, 0.3);
    border-radius: 8px;
    color: var(--member-gold);
    font-size: 11px;
    text-decoration: none;
}

.watch-actions a:hover {
    background: rgba(241, 213, 143, 0.08);
}

.empty-history {
    padding: 22px;
    border: 1px dashed var(--member-line);
    border-radius: 12px;
    color: var(--member-muted);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 520px) {
    body {
        padding: 82px 12px 24px;
    }

    .member-fields {
        grid-template-columns: 1fr;
    }

    .profile-heading {
        align-items: flex-start;
    }
}
