:root {
    --bg: #eef3f8;
    --card: #ffffff;
    --text: #233149;
    --muted: #6b7a92;
    --line: #dfe8f2;
    --blue: #215bff;
    --blue-dark: #1148da;
    --navy: #0f1729;
    --green: #2fb057;
    --pink: #c452a8;
    --red: #d65a5a;
    --shadow: 0 18px 40px rgba(39, 76, 119, 0.08);
    --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #f7faff 0%, var(--bg) 100%);
    color: var(--text);
}

a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    width: min(1240px, calc(100% - 32px));
    margin: 20px auto 48px;
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    border: 1px solid rgba(223,232,242,0.7);
}

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

.section-space { margin-top: 24px; }
.page-title { font-size: 42px; font-weight: 300; margin: 10px 0 4px; }
.page-subtitle { color: var(--muted); margin: 0 0 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; color: var(--muted); }

button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    padding: 0 18px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(33, 91, 255, 0.2);
}
button.secondary,
.btn.secondary {
    background: #0f1729;
    box-shadow: 0 10px 22px rgba(15, 23, 41, 0.18);
}
button.ghost,
.btn.ghost {
    background: #eef4ff;
    color: var(--blue-dark);
    box-shadow: none;
    border: 1px solid #dbe7ff;
}

input, select, textarea {
    width: 100%;
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid #d8e2ee;
    padding: 10px 14px;
    font: inherit;
    color: var(--text);
    background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
label { display: inline-block; margin-bottom: 8px; font-weight: 700; }

.table-wrap { overflow-x: auto; }
.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.table th,
.table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.table thead th,
.table tr:first-child th {
    color: #5b6b82;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #f7fbff;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #edf5ff;
    color: var(--blue-dark);
}
.badge.success { background: #e8f8ee; color: #22884a; }
.badge.warning { background: #fff4e7; color: #b76d11; }
.badge.danger { background: #ffeded; color: #c73b3b; }

.alert-success,
.alert-error {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
}
.alert-success { background: #eaf8ef; color: #1f8b45; border: 1px solid #ccebd7; }
.alert-error { background: #fff0f0; color: #c03939; border: 1px solid #f2cbcb; }

.inline-form { display: inline-block; margin-right: 10px; }
.logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
}
.logo-mark {
    background: linear-gradient(135deg, #d81d1d 0%, #7d1111 100%);
    color: #fff;
    padding: 9px 14px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(125, 17, 17, 0.25);
}
.logo-tail {
    background: rgba(255,255,255,0.18);
    padding: 9px 12px;
    border-radius: 8px;
}

/* Admin theme */
.admin-shell .container { margin-top: 16px; }
.admin-header {
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg, #1f49ff 0%, #2f6dff 58%, #366cff 100%);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #fff;
    box-shadow: var(--shadow);
}
.admin-userbar {
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-userchip {
    background: rgba(255,255,255,0.14);
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
    color: #fff;
}
.admin-avatar-chip {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.2);
    font-weight: 800;
    color: #fff;
}
.admin-toolbar {
    background: rgba(255,255,255,0.9);
    border-radius: 0 0 18px 18px;
    padding: 24px 18px 20px;
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 16px;
    box-shadow: var(--shadow);
}
.admin-tool {
    text-align: center;
    color: #53627a;
    font-weight: 700;
}
.admin-tool-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 10px;
    border: 2px solid #cad8f3;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 24px;
    color: #5f74af;
    background: #f7fbff;
}
.admin-main {
    margin-top: 18px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    gap: 22px;
}
.stat-card {
    background: #fff;
    padding: 28px 18px;
    border-radius: 14px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(223,232,242,0.8);
}
.stat-value {
    font-size: 62px;
    line-height: 1;
    font-weight: 300;
    margin-bottom: 12px;
}
.stat-value.green { color: var(--green); }
.stat-value.pink { color: var(--pink); }
.stat-value.red { color: var(--red); }
.stat-value.blue { color: #4963ff; }
.admin-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
    margin-top: 28px;
}
.action-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}
.action-link {
    background: #f5f9ff;
    border: 1px solid #dce7f5;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    font-weight: 700;
}

/* DJ theme */
.dj-shell {
    background: linear-gradient(180deg, #f4f9ff 0%, #eef3f8 100%);
}
.dj-hero {
    position: relative;
    background: #0c1730 url('hero-mountains.svg') center/cover no-repeat;
    border-radius: 26px 26px 0 0;
    min-height: 260px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.dj-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,9,25,0.16) 0%, rgba(5,9,25,0.48) 100%);
}
.dj-brand {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.dj-curve {
    position: absolute;
    left: -3%;
    right: -3%;
    bottom: -58px;
    height: 128px;
    background: #eef6fb;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.dj-avatar {
    position: relative;
    z-index: 3;
    width: 132px;
    height: 132px;
    margin: -66px auto 0;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #d9eef8;
    box-shadow: 0 18px 32px rgba(25, 39, 84, 0.16);
    background: #fff;
}
.dj-avatar img { width: 100%; height: 100%; display: block; }
.dj-tabs {
    background: #0f1729;
    padding: 0;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(8, minmax(90px, 1fr));
    overflow: hidden;
    margin: 26px auto 0;
    box-shadow: 0 16px 35px rgba(15, 23, 41, 0.18);
}
.dj-tabs a {
    color: #fff;
    text-align: center;
    padding: 18px 10px;
    font-weight: 700;
    border-right: 1px solid rgba(255,255,255,0.08);
}
.dj-tabs a:last-child { border-right: 0; }
.dj-tabs a:hover { text-decoration: none; background: rgba(255,255,255,0.06); }
.dj-content-wrap {
    background: linear-gradient(180deg, #eef6fb 0%, #f6fbff 100%);
    border-radius: 0 0 26px 26px;
    padding: 24px 0 32px;
    box-shadow: var(--shadow);
}
.vip-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 22px;
    margin-top: 24px;
}
.vip-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 18px;
}
.vip-image {
    border-radius: 24px;
    background: linear-gradient(135deg, #2bc2ff, #0e60e5);
    display: block;
    width: 100%;
    height: 240px;
    object-fit: contain;
    padding: 18px;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-top: 24px;
}
.feature-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}
.feature-list li {
    list-style: none;
    background: #f6faff;
    border: 1px solid #dde8f5;
    border-radius: 14px;
    padding: 14px 16px;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #10214d 0%, #1f49ff 55%, #7a466a 100%);
}
.login-shell {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(10, 20, 53, 0.32);
}
.login-visual {
    position: relative;
    min-height: 650px;
    background: #0c1730 url('hero-mountains.svg') center/cover no-repeat;
    color: #fff;
    padding: 40px;
}
.login-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 10, 24, 0.12) 0%, rgba(6, 10, 24, 0.55) 100%);
}
.login-visual-content { position: relative; z-index: 1; max-width: 480px; }
.login-form-card { background: #f8fbff; padding: 46px; }
.login-form-card h1 { margin-top: 0; }
.login-points { margin-top: 22px; padding-left: 18px; color: #e6f1ff; }
.lock-card {
    background: linear-gradient(180deg, #fffaf1 0%, #fff 100%);
    border: 1px solid #f4deaf;
}
.top-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 1100px) {
    .admin-toolbar { grid-template-columns: repeat(3, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dj-tabs { grid-template-columns: repeat(4, 1fr); }
    .vip-grid { grid-template-columns: 1fr; }
    .login-shell { grid-template-columns: 1fr; }
    .login-visual { min-height: 360px; }
}

@media (max-width: 760px) {
    .container { width: min(100% - 20px, 1240px); margin: 10px auto 28px; }
    .admin-header,
    .admin-toolbar,
    .top-actions { display: block; }
    .admin-userbar { margin-top: 16px; }
    .stats-grid { grid-template-columns: 1fr; }
    .admin-toolbar { padding: 16px; }
    .admin-tool { margin-bottom: 16px; }
    .dj-tabs { grid-template-columns: repeat(2, 1fr); }
    .page-title { font-size: 34px; }
    .login-form-card { padding: 28px; }
}

.dj-tabs a.is-active {
    background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.03) 100%);
    box-shadow: inset 0 -3px 0 #4a7dff;
}
.downloads-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 0 34px;
    margin-top: 18px;
}
.download-item {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 18px;
    align-items: start;
    padding: 22px 0;
    border-bottom: 1px solid #e6edf6;
}
.download-icon {
    width: 86px;
    height: 86px;
    border-radius: 10px;
    background: linear-gradient(135deg, #d9035f 0%, #a1024b 100%);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 34px;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(217, 3, 95, 0.2);
}
.download-item h3 {
    margin: 0 0 6px;
    font-size: 18px;
}
.download-item p {
    margin: 4px 0;
    color: var(--muted);
}
@media (max-width: 900px) {
    .downloads-list { grid-template-columns: 1fr; }
}

/* Refined user theme based on provided screenshots */
.refined-user-theme {
    background: linear-gradient(180deg, #edf3f8 0%, #eaf1f7 100%);
}
.user-dashboard-shell {
    width: min(1180px, calc(100% - 40px));
}
.refined-hero {
    position: relative;
    height: 270px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    background:
        linear-gradient(rgba(17,22,42,0.20), rgba(17,22,42,0.20)),
        url('hero-mountains.svg') center/cover no-repeat;
    box-shadow: none;
}
.hero-centered-brand {
    position: absolute;
    left: 50%;
    top: 88px;
    transform: translateX(-50%);
    z-index: 2;
}
.refined-hero .logo-tail {
    display: none;
}
.refined-hero .logo-mark {
    padding: 8px 16px;
}
.refined-avatar {
    width: 124px;
    height: 124px;
    margin: -62px auto 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: none;
    border: 4px solid rgba(255,255,255,0.85);
    position: relative;
    z-index: 3;
}
.refined-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.user-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 18px 0 10px;
}
.preview-note {
    margin-bottom: 14px;
    box-shadow: none;
}
.refined-tabs {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 1px;
    background: #0b0f18;
    border-radius: 6px;
    overflow: hidden;
    margin: 12px 0 26px;
    box-shadow: none;
}
.refined-tabs a {
    display: block;
    padding: 14px 10px;
    text-align: center;
    color: #fff;
    background: #0b0f18;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
}
.refined-tabs a.is-active,
.refined-tabs a:hover {
    background: #141b2a;
    text-decoration: none;
}
.user-main-content {
    min-height: 420px;
}
.section-card,
.profile-card {
    background: rgba(255,255,255,0.96);
    border-radius: 4px;
    padding: 36px 38px;
    box-shadow: none;
    border: 1px solid #dde5ed;
}
.section-title {
    margin: 0 0 24px;
    font-size: 22px;
    color: #111827;
}
.profile-avatar-wrap {
    text-align: center;
    margin-bottom: 26px;
}
.profile-avatar-wrap img {
    width: 138px;
    height: 138px;
    object-fit: cover;
    border: 1px solid #cfd8e3;
    border-radius: 4px;
    background: #fff;
}
.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 28px;
}
.compact-grid {
    gap: 18px 24px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 800;
    color: #303846;
    letter-spacing: 0.01em;
}
.form-group .required {
    color: #d15b5b;
}
.profile-form-grid input[type="text"],
.profile-form-grid input[type="email"],
.profile-form-grid input[type="password"] {
    border: 1px solid #d8e0e8;
    min-height: 48px;
    border-radius: 4px;
    box-shadow: none;
    background: #fff;
}
.profile-form-grid input[disabled] {
    background: #fff;
    color: #555;
}
.full-width {
    grid-column: 1 / -1;
}
.membership-line p {
    margin: 6px 0 0;
    color: #434c58;
    font-size: 26px;
}
.membership-line .membership-date {
    font-size: 18px;
    color: #6a7480;
}
.newsletter-row {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}
.newsletter-row label {
    margin: 0;
}
.radio-inline {
    display: inline-flex;
    align-items: center;
    gap: 24px;
}
.radio-choice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    font-size: 15px;
}
.radio-choice input {
    width: 20px;
    height: 20px;
    min-height: 20px;
    margin: 0;
    accent-color: #2f63ff;
}
.action-row {
    margin-top: 8px;
}
.action-row .secondary {
    border-radius: 4px;
    padding: 0 24px;
}
.downloads-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 28px;
}
.download-row {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 0;
    border-top: 1px solid #e3e8ee;
}
.download-row:nth-child(-n+2) {
    border-top: none;
}
.download-icon-box {
    width: 86px;
    height: 86px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 34px;
    background: linear-gradient(180deg, #e91f63 0%, #c20046 100%);
    flex: 0 0 86px;
}
.download-meta h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: #1f2734;
}
.download-meta p {
    margin: 6px 0;
    color: #66717f;
    font-size: 15px;
}
.user-table-wrap {
    border: 1px solid #e0e6ed;
    border-radius: 4px;
}
.inner-card {
    box-shadow: none;
    border-radius: 4px;
}
.user-footer {
    text-align: center;
    color: #8a93a0;
    font-size: 14px;
    padding: 28px 0 10px;
}

@media (max-width: 900px) {
    .refined-tabs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .profile-form-grid,
    .downloads-two-col {
        grid-template-columns: 1fr;
    }
    .membership-line p {
        font-size: 18px;
    }
}

@media (max-width: 640px) {
    .user-dashboard-shell {
        width: min(100%, calc(100% - 16px));
    }
    .section-card,
    .profile-card {
        padding: 22px 18px;
    }
    .refined-hero {
        height: 220px;
    }
    .refined-tabs a {
        font-size: 13px;
        padding: 12px 6px;
    }
}
