* {
    box-sizing: border-box;
}

:root {
    --bg: #080712;
    --card: rgba(255, 255, 255, 0.08);
    --card-strong: rgba(255, 255, 255, 0.13);
    --border: rgba(255, 255, 255, 0.14);
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.68);
    --pink: #ff3ea5;
    --purple: #7c4dff;
    --danger: #ff5c7a;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 62, 165, 0.25), transparent 30%),
        radial-gradient(circle at top right, rgba(124, 77, 255, 0.24), transparent 35%),
        var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

.mobile-shell {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.app-shell {
    padding: 18px 16px 0;
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.glass-card,
.mini-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
}

.login-card {
    width: 100%;
    padding: 28px;
    text-align: center;
}

.login-logo {
    width: 110px;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 14px;
}

.login-card h1,
.page-header h1,
.profile-card h1 {
    margin: 0;
    font-size: 28px;
}

.muted {
    color: var(--muted);
}

.login-form {
    margin-top: 24px;
    text-align: left;
}

.login-form label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin: 14px 0 8px;
}

.login-form input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 15px 16px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    outline: none;
    font-size: 16px;
}

.login-form input:focus {
    border-color: var(--pink);
}

.login-form button,
.primary-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    border: 0;
    border-radius: 18px;
    padding: 15px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 12px 30px rgba(255, 62, 165, 0.28);
}

.admin-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
}

.alert {
    margin-top: 18px;
    padding: 12px;
    border-radius: 14px;
    font-size: 14px;
}

.alert.error {
    background: rgba(255, 92, 122, 0.16);
    border: 1px solid rgba(255, 92, 122, 0.32);
    color: #ffd6de;
}

.hero-card {
    min-height: 230px;
    border-radius: 30px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    margin-bottom: 16px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
}

.hero-overlay {
    min-height: 230px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(8,7,18,0.92));
}

.top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: auto;
}

.app-logo {
    width: 92px;
    max-height: 58px;
    object-fit: contain;
}

.avatar-small {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.5);
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--pink);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 12px;
}

.hero-card h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
}

.hero-card p {
    margin: 6px 0 0;
    color: var(--muted);
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.mini-card {
    padding: 16px;
}

.mini-card span,
.info-list span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 5px;
}

.mini-card strong {
    font-size: 18px;
}

.glass-card {
    padding: 18px;
    margin-bottom: 14px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.section-head h2,
.featured-section h2 {
    margin: 0;
    font-size: 19px;
}

.section-head a {
    color: var(--pink);
    font-size: 13px;
    font-weight: 700;
}

.glass-card h3,
.glass-card h2 {
    margin: 6px 0;
}

.glass-card p {
    color: var(--muted);
    line-height: 1.5;
}

.glass-card small {
    color: var(--pink);
}

.info-list {
    display: grid;
    gap: 12px;
}

.info-list div {
    padding: 13px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-list strong {
    display: block;
    line-height: 1.35;
}

.featured-section {
    margin-bottom: 14px;
}

.featured-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 12px 0 4px;
}

.featured-scroll img {
    width: 170px;
    height: 105px;
    object-fit: cover;
    flex: 0 0 auto;
    border-radius: 22px;
    background: var(--card-strong);
}

.page-header {
    padding: 12px 4px 18px;
}

.page-header p {
    margin: 6px 0 0;
    color: var(--muted);
}

.schedule-hero h2 {
    margin-top: 0;
}

.card-image {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 12px;
}

.profile-card {
    text-align: center;
    padding-top: 26px;
}

.profile-avatar {
    width: 118px;
    height: 118px;
    border-radius: 36px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.42);
    margin-bottom: 14px;
}

.profile-card p {
    color: var(--pink);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.logout-btn {
    display: block;
    text-align: center;
    padding: 15px;
    border-radius: 18px;
    background: rgba(255, 92, 122, 0.12);
    border: 1px solid rgba(255, 92, 122, 0.28);
    color: #ffd6de;
    font-weight: 700;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: calc(100% - 28px);
    max-width: 452px;
    height: 68px;
    border-radius: 24px;
    background: rgba(17, 14, 31, 0.92);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    box-shadow: 0 18px 45px rgba(0,0,0,0.45);
    z-index: 20;
}

.bottom-nav a {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}

.bottom-nav a.active {
    color: white;
}

.bottom-nav a.active::before {
    content: "";
    display: block;
    width: 26px;
    height: 4px;
    border-radius: 99px;
    margin: 0 auto 7px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.bottom-spacer {
    height: 96px;
}

/* ================================
   DASHBOARD UI UPGRADE v2
================================ */

.home-v2 {
    padding-top: 14px;
}

.hero-v2 {
    min-height: 325px;
    border-radius: 34px;
    margin-bottom: 14px;
    position: relative;
}

.hero-overlay-v2 {
    min-height: 325px;
    padding: 18px;
    justify-content: space-between;
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.10), rgba(8,7,18,0.35) 42%, rgba(8,7,18,0.96)),
        radial-gradient(circle at bottom left, rgba(255, 62, 165, 0.35), transparent 45%);
}

.student-badge {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: white;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(14px);
}

.hero-student {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.hero-avatar {
    width: 86px;
    height: 86px;
    border-radius: 28px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
    flex: 0 0 auto;
}

.hero-student h1 {
    font-size: 30px;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-student p:last-child {
    font-size: 13px;
    font-weight: 700;
}

.status-grid-v2 {
    margin-top: -4px;
}

.status-pill-card {
    padding: 15px;
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.13), rgba(255,255,255,0.055));
}

.status-pill-card strong {
    font-size: 15px;
    word-break: break-word;
}

.section-kicker {
    margin: 0 0 3px;
    color: var(--pink);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.workshop-card-v2,
.announcement-v2,
.event-v2 {
    border-radius: 28px;
}

.schedule-highlight {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.schedule-date-box,
.schedule-time-box,
.announcement-box,
.event-box {
    padding: 16px;
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 62, 165, 0.13), rgba(124, 77, 255, 0.10)),
        rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.schedule-date-box span,
.schedule-time-box span,
.compact-info span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.schedule-date-box strong,
.schedule-time-box strong {
    display: block;
    font-size: 18px;
    line-height: 1.25;
}

.compact-info {
    display: grid;
    gap: 10px;
}

.compact-info div {
    padding: 13px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.compact-info strong {
    display: block;
    line-height: 1.35;
}

.tag-label,
.event-date-chip {
    display: inline-flex;
    width: fit-content;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 62, 165, 0.18);
    border: 1px solid rgba(255, 62, 165, 0.28);
    color: #ffd7ef;
    font-size: 11px;
    font-weight: 900;
    margin-bottom: 9px;
}

.announcement-box h3,
.event-box h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.announcement-box p,
.event-box p {
    margin-bottom: 0;
}

.event-box small {
    display: block;
    margin-top: 10px;
    color: var(--pink);
    font-weight: 800;
}

.featured-v2 .featured-scroll {
    padding-top: 10px;
}

.featured-card {
    width: 175px;
    flex: 0 0 auto;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
    box-shadow: 0 16px 30px rgba(0,0,0,0.30);
}

.featured-card img {
    width: 100%;
    height: 112px;
    border-radius: 0;
    display: block;
}

.featured-card span {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(8, 7, 18, 0.76);
    border: 1px solid rgba(255,255,255,0.16);
    color: white;
    font-size: 11px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.quick-actions-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.quick-actions-v2 a {
    padding: 14px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    text-align: center;
    color: white;
    font-size: 13px;
    font-weight: 900;
}

@media (min-width: 700px) {
    body {
        background-color: #05050c;
    }

    .mobile-shell {
        max-width: 430px;
    }
}