:root {
    --bg: #eef1f7;
    --panel: #ffffff;
    --panel-soft: rgba(255,255,255,0.74);
    --text: #16181d;
    --muted: #6e7585;
    --line: #e7eaf1;
    --nav: #18191d;
    --nav-2: #252830;
    --primary: #2f52ff;
    --primary-2: #6a5cff;
    --shadow-lg: 0 25px 60px rgba(16, 24, 40, 0.16);
    --shadow-md: 0 10px 30px rgba(16, 24, 40, 0.08);
    --radius-xl: 22px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Inter, Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(130, 92, 255, 0.14), transparent 32%),
        radial-gradient(circle at top right, rgba(47, 82, 255, 0.12), transparent 30%),
        var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* HERO */
.hero {
    position: relative;
    min-height: 320px;
    padding: 0 34px 90px;
    background:
        radial-gradient(circle at 15% 0%, rgba(255, 170, 220, 0.95), transparent 22%),
        radial-gradient(circle at 28% 8%, rgba(160, 190, 255, 0.55), transparent 20%),
        radial-gradient(circle at 45% 20%, rgba(91, 124, 255, 0.55), transparent 28%),
        linear-gradient(90deg, #6a79ff 0%, #284dff 55%, #2d42f0 100%);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: auto auto -120px -140px;
    width: 520px;
    height: 260px;
    background: radial-gradient(circle, rgba(255,255,255,0.42), transparent 60%);
    filter: blur(12px);
    animation: floatBlob 8s ease-in-out infinite;
}

.hero::after {
    content: "";
    position: absolute;
    top: -60px;
    left: 12%;
    width: 500px;
    height: 220px;
    background: radial-gradient(circle, rgba(255,255,255,0.20), transparent 65%);
    filter: blur(20px);
    animation: floatBlob 10s ease-in-out infinite reverse;
}

.hero-topbar {
    position: relative;
    z-index: 2;
    margin: 24px auto 0;
    max-width: 1320px;
    min-height: 64px;
    background: rgba(21, 23, 29, 0.94);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    box-shadow: 0 10px 34px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    backdrop-filter: blur(12px);
    animation: slideDown 0.7s ease;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 185px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-text {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.top-nav a {
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    transition: 0.25s ease;
}

.top-nav a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.top-nav a.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1320px;
    margin: 50px auto 0;
    display: flex;
    justify-content: flex-end;
    animation: fadeUp 0.9s ease;
}

.hero-content > div {
    text-align: right;
    color: #fff;
}

.eyebrow {
    margin: 0 0 10px;
    opacity: 0.82;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 600;
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 300;
    letter-spacing: 2px;
    line-height: 1;
}

.hero-sub {
    margin: 12px 0 0;
    font-size: 16px;
    opacity: 0.88;
}

/* MAIN SHELL */
.app-shell {
    max-width: 1320px;
    margin: -70px auto 36px;
    padding: 0 24px;
    position: relative;
    z-index: 3;
}

.floating-card,
.grid-card,
.message-banner {
    animation: fadeUp 0.75s ease;
}

.toolbar-card {
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(255,255,255,0.65);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: 26px;
}

.toolbar-left h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #151821;
}

.toolbar-sub {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.roster-form {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1.3fr 1.2fr 0.85fr 0.85fr 0.85fr auto;
    gap: 14px;
    align-items: end;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-group.small {
    min-width: 0;
}

.field-group label {
    font-size: 12px;
    font-weight: 700;
    color: #535b6b;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

input,
select {
    width: 100%;
    height: 46px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 14px;
    color: #1a1f2c;
    outline: none;
    transition: 0.24s ease;
    box-shadow: 0 1px 0 rgba(0,0,0,0.01);
}

input:focus,
select:focus {
    border-color: rgba(47, 82, 255, 0.45);
    box-shadow: 0 0 0 4px rgba(47, 82, 255, 0.10);
    transform: translateY(-1px);
}

.form-actions {
    display: flex;
    align-items: end;
    justify-content: flex-end;
}

/* BUTTONS */
.primary-btn,
.primary-link-btn,
.ghost-btn {
    height: 46px;
    border-radius: 12px;
    border: none;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease, background 0.22s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.primary-btn,
.primary-link-btn {
    background: linear-gradient(135deg, #2f52ff, #6b5cff);
    color: #fff;
    box-shadow: 0 14px 24px rgba(47, 82, 255, 0.22);
}

.primary-btn:hover,
.primary-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(47, 82, 255, 0.28);
}

.ghost-btn {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
}

.ghost-btn:hover {
    background: rgba(255,255,255,0.13);
    transform: translateY(-1px);
}

/* MESSAGE */
.message-banner {
    margin-top: 18px;
    background: linear-gradient(135deg, #ffffff, #f8faff);
    border: 1px solid #e8edf8;
    color: #25418a;
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: var(--shadow-md);
    font-size: 14px;
    font-weight: 600;
}

/* GRID CARD */
.grid-card {
    margin-top: 22px;
    background: var(--panel);
    border-radius: 24px;
    border: 1px solid #eef1f6;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid #edf1f6;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.grid-header h3 {
    margin: 0;
    font-size: 22px;
    color: #141822;
}

.grid-header p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.grid-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.legend-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid transparent;
}

.legend-chip.shift1 { background: #e8f7ea; color: #276738; }
.legend-chip.shift2 { background: #e7f0ff; color: #2552a7; }
.legend-chip.shift3 { background: #fff7da; color: #866100; }
.legend-chip.shift4 { background: #f0eaff; color: #6240aa; }
.legend-chip.leave-chip { background: #ffe5ea; color: #b42338; }
.legend-chip.off-chip { background: #eff1f5; color: #596273; }

/* TABLE */
.table-wrap {
    overflow: auto;
    max-height: 72vh;
    background: #fff;
}

.roster-table {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.roster-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #111317;
    color: #fff;
    text-align: center;
    padding: 16px 14px;
    border-bottom: 1px solid #1f2430;
    white-space: nowrap;
    font-size: 12px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.roster-table tbody td {
    text-align: center;
    padding: 0;
    border-bottom: 1px solid #edf1f5;
    border-right: 1px solid #f3f5f8;
    min-width: 118px;
    height: 58px;
    background: #fff;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.roster-table tbody tr:hover td {
    background: #fafcff;
}

.day-cell,
.date-cell {
    font-weight: 700;
    color: #202532;
    background: #fbfcff !important;
    min-width: 120px !important;
    padding: 16px 14px !important;
}

.date-cell {
    min-width: 136px !important;
    color: #4f5668;
}

.sticky-col {
    position: sticky;
    z-index: 8;
    background: #fff;
}

.sticky-col-1 {
    left: 0;
}

.sticky-col-2 {
    left: 120px;
}

.roster-table thead .sticky-col {
    z-index: 12;
    background: #111317;
}

.roster-table tbody .sticky-col {
    background: #fbfcff;
    box-shadow: 1px 0 0 #f0f2f6;
}

/* CELL PILLS */
.roster-cell {
    vertical-align: middle;
}

.cell-pill {
    width: calc(100% - 12px);
    height: 40px;
    margin: 9px auto;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.roster-cell:hover .cell-pill {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(26, 31, 44, 0.08);
}

.shift-1 .cell-pill {
    background: linear-gradient(180deg, #e7f8e8, #d9f2dd);
    color: #256d36;
    border: 1px solid #cbe9d2;
}

.shift-2 .cell-pill {
    background: linear-gradient(180deg, #e7f1ff, #d7e8ff);
    color: #2953aa;
    border: 1px solid #cadeff;
}

.shift-3 .cell-pill {
    background: linear-gradient(180deg, #fff7dc, #ffefc0);
    color: #8a6300;
    border: 1px solid #f4df97;
}

.shift-4 .cell-pill {
    background: linear-gradient(180deg, #f1ebff, #e6dcff);
    color: #6545a8;
    border: 1px solid #d7c8ff;
}

.leave .cell-pill {
    background: linear-gradient(180deg, #ffe8ec, #ffd9df);
    color: #b42338;
    border: 1px solid #ffc4ce;
}

.weekoff .cell-pill {
    background: linear-gradient(180deg, #f2f4f7, #e8ecf1);
    color: #58606f;
    border: 1px solid #dde3ea;
}

.shortage .cell-pill {
    background: linear-gradient(180deg, #fff0df, #ffdcb8);
    color: #a45f00;
    border: 1px solid #ffc98c;
}

/* ANIMATIONS */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatBlob {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(12px) translateX(8px);
    }
}

/* ===== ADMIN PAGE EXTENSIONS ===== */

.admin-hero {
    min-height: 280px;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 198, 226, 0.95), transparent 23%),
        radial-gradient(circle at 35% 10%, rgba(170, 190, 255, 0.45), transparent 18%),
        linear-gradient(90deg, #7a84ff 0%, #4463ff 50%, #2c41ef 100%);
}

.hero-content-left {
    justify-content: flex-start;
}

.hero-content-left > div {
    text-align: left;
}

.ghost-link-btn {
    height: 42px;
    border-radius: 12px;
    padding: 0 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 13px;
    font-weight: 600;
    transition: 0.22s ease;
}

.ghost-link-btn:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-1px);
}

.admin-toolbar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.admin-head-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ghost-dark-btn {
    height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #dfe5ef;
    color: #31384a;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.22s ease;
}

.ghost-dark-btn:hover,
.table-tool-btn:hover {
    background: #f6f8fc;
    transform: translateY(-1px);
}

.admin-form {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    gap: 14px;
    align-items: end;
}



.admin-grid-header {
    align-items: center;
}

.admin-table-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box input {
    width: 240px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #e2e7f0;
    background: #fff;
    padding: 0 14px;
    font-size: 13px;
    transition: 0.22s ease;
}

.search-box input:focus {
    border-color: rgba(47, 82, 255, 0.45);
    box-shadow: 0 0 0 4px rgba(47, 82, 255, 0.08);
    outline: none;
}

.table-tool-btn {
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid #dfe5ef;
    background: #fff;
    color: #31384a;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.22s ease;
}

.admin-table thead th {
    background: #f7f9fc;
    color: #667085;
    border-bottom: 1px solid #e9edf5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: none;
}

.admin-table tbody td {
    min-width: 140px;
    height: 74px;
    padding: 14px;
    border-bottom: 1px solid #edf1f5;
    background: #fff;
}

.admin-table tbody tr {
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.admin-table tbody tr:hover {
    transform: translateY(-1px);
}

.admin-table tbody tr:hover td {
    background: #fcfdff;
}

.id-cell {
    min-width: 80px !important;
    font-weight: 700;
    color: #475067;
    background: #fbfcff !important;
}

.admin-name-col {
    min-width: 290px !important;
}

.employee-name-cell {
    background: #fff !important;
}

.employee-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5f7cff, #7c5cff);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(95, 124, 255, 0.2);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.employee-cell:hover .avatar-circle {
    transform: scale(1.05);
}

.employee-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.employee-name {
    font-size: 14px;
    font-weight: 700;
    color: #161b26;
}

.employee-sub {
    font-size: 12px;
    color: #7a8395;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid transparent;
}

.active-badge {
    background: #e8f7ea;
    color: #217a35;
    border-color: #cae9d2;
}

.action-col {
    min-width: 130px !important;
    text-align: center;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    height: 36px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: 0.22s ease;
}

.delete-btn {
    background: #fff1f3;
    color: #c01048;
    border: 1px solid #ffd1dc;
}

.delete-btn:hover {
    background: #ffe6eb;
    transform: translateY(-1px);
}

.admin-table .sticky-col {
    background: #fff;
}

.admin-table tbody .sticky-col-1 {
    left: 0;
    z-index: 7;
}

.admin-table tbody .sticky-col-2 {
    left: 80px;
    z-index: 7;
}

.admin-table thead .sticky-col {
    z-index: 11;
    background: #f7f9fc;
}

.admin-table tbody .sticky-col {
    box-shadow: 1px 0 0 #f0f2f6;
}

@media (max-width: 980px) {
    .admin-form {
        grid-template-columns: 1fr;
    }

    .admin-head-actions,
    .admin-table-tools {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .search-box input {
        width: 100%;
        min-width: 220px;
    }

    .admin-toolbar-head,
    .admin-grid-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== HOME PAGE ===== */

.home-hero {
    min-height: 360px;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 194, 223, 0.95), transparent 22%),
        radial-gradient(circle at 28% 12%, rgba(160, 188, 255, 0.55), transparent 20%),
        radial-gradient(circle at 42% 18%, rgba(101, 131, 255, 0.45), transparent 26%),
        linear-gradient(90deg, #7182ff 0%, #3656ff 52%, #253fe9 100%);
}

.hero-home-content {
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
}

.hero-copy {
    max-width: 640px;
    color: #fff;
    text-align: left;
    animation: fadeUp 0.8s ease;
}

.hero-home-content .hero-copy h1 {
    margin: 0;
    font-size: clamp(44px, 6vw, 72px);
    font-weight: 300;
    letter-spacing: 2px;
    line-height: 1;
}

.hero-cta-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.hero-mini-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    min-width: 300px;
    animation: fadeUp 1s ease;
}

.mini-stat-card {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 18px;
    padding: 16px 18px;
    color: #fff;
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.mini-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 30px rgba(0,0,0,0.16);
}

.mini-stat-card strong {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
}

.mini-stat-card p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}

.mini-label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    opacity: 0.78;
    font-weight: 700;
}

.floating-delay-1 {
    animation: fadeUp 0.7s ease;
}
.floating-delay-2 {
    animation: fadeUp 0.95s ease;
}
.floating-delay-3 {
    animation: fadeUp 1.15s ease;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 8px;
}

.home-card {
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    animation: fadeUp 0.75s ease;
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.home-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 50px rgba(16, 24, 40, 0.14);
    border-color: #dfe7ff;
}

.featured-home-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
}

.home-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.home-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 24px;
    box-shadow: 0 12px 24px rgba(31, 41, 55, 0.08);
}

.icon-purple {
    background: linear-gradient(135deg, #efe8ff, #dccfff);
}

.icon-blue {
    background: linear-gradient(135deg, #e4efff, #cfe1ff);
}

.icon-gradient {
    background: linear-gradient(135deg, #5d7cff, #7a5cff);
    color: #fff;
}

.home-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f2f4f8;
    color: #5b6474;
    font-size: 12px;
    font-weight: 700;
}

.home-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    color: #141822;
}

.home-card p {
    margin: 0;
    color: #697286;
    line-height: 1.6;
    font-size: 14px;
}

.home-link-text {
    display: inline-block;
    margin-top: 18px;
    color: #3052ff;
    font-size: 13px;
    font-weight: 700;
}

.home-info-card {
    margin-top: 22px;
}

.home-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 0 24px 24px;
}

.step-box {
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    border: 1px solid #edf1f7;
    border-radius: 18px;
    padding: 20px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.step-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 26px rgba(16, 24, 40, 0.08);
}

.step-no {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2f52ff, #6b5cff);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    margin-bottom: 14px;
    box-shadow: 0 10px 18px rgba(47, 82, 255, 0.18);
}

.step-box h4 {
    margin: 0 0 8px;
    font-size: 17px;
    color: #151821;
}

.step-box p {
    margin: 0;
    color: #6b7385;
    font-size: 14px;
    line-height: 1.55;
}



@media (max-width: 1100px) {
    .home-grid {
        grid-template-columns: 1fr;
    }

    .home-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-home-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-mini-panel {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .home-steps {
        grid-template-columns: 1fr;
    }

    .hero-cta-row {
        width: 100%;
    }

    .hero-cta-row a {
        flex: 1;
    }
}

/* ===== LEAVES PAGE ===== */

.leave-hero {
    min-height: 280px;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 204, 220, 0.92), transparent 22%),
        radial-gradient(circle at 35% 10%, rgba(176, 198, 255, 0.42), transparent 18%),
        linear-gradient(90deg, #7e86ff 0%, #4a62ff 50%, #2f42ec 100%);
}

.leave-badge {
    background: #ffe8ec;
    color: #b42338;
    border-color: #ffcfd8;
}

.danger-link-btn {
    height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    background: #fff1f3;
    border: 1px solid #ffd1dc;
    color: #c01048;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.22s ease;
}

.danger-link-btn:hover {
    background: #ffe5eb;
    transform: translateY(-1px);
}

/* ===== AUTH PAGES ===== */

.auth-hero {
    min-height: 300px;
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 204, 220, 0.92), transparent 22%),
        radial-gradient(circle at 38% 12%, rgba(176, 198, 255, 0.42), transparent 18%),
        linear-gradient(90deg, #7d86ff 0%, #4d64ff 50%, #3247ec 100%);
}

.auth-shell {
    max-width: 1180px;
}

.auth-card {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(255,255,255,0.72);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: fadeUp 0.75s ease;
}

.auth-card-left {
    padding: 42px 38px;
    background:
        radial-gradient(circle at top left, rgba(106, 92, 255, 0.10), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    border-right: 1px solid #edf1f7;
}

.auth-card-left h2 {
    margin: 16px 0 10px;
    font-size: 34px;
    color: #171b25;
}

.auth-card-left p {
    margin: 0;
    color: #687286;
    line-height: 1.6;
    font-size: 15px;
    max-width: 460px;
}

.auth-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4057d8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.auth-points {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-point {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #202634;
    font-size: 14px;
    font-weight: 600;
}

.auth-point-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2f52ff, #6b5cff);
    color: #fff;
    box-shadow: 0 10px 18px rgba(47, 82, 255, 0.16);
    flex-shrink: 0;
}

.auth-card-right {
    padding: 42px 38px;
    background: #fff;
}

.auth-card-right h3 {
    margin: 0 0 18px;
    font-size: 28px;
    color: #161b26;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-submit-btn {
    width: 100%;
    margin-top: 4px;
}

.auth-alert {
    margin-bottom: 16px;
    background: #fff1f3;
    color: #c01048;
    border: 1px solid #ffd5df;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
}

.auth-switch-text {
    margin-top: 18px;
    color: #6c7486;
    font-size: 14px;
}

.auth-switch-text a {
    color: #3153ff;
    font-weight: 700;
    text-decoration: none;
}

.auth-switch-text a:hover {
    text-decoration: underline;
}

.legend-chip.reserve-chip {
    background: #eef2f7;
    color: #4f5b6b;
}

.reserve .cell-pill {
    background: linear-gradient(180deg, #eef2f7, #e3e8ef);
    color: #4f5b6b;
    border: 1px solid #d6dde7;
}

.legend-chip.reserve-chip {
    background: #eef2f7;
    color: #4f5b6b;
}

.legend-chip.shortage-chip {
    background: #fff0df;
    color: #a45f00;
}

.reserve .cell-pill {
    background: linear-gradient(180deg, #eef2f7, #e3e8ef);
    color: #4f5b6b;
    border: 1px solid #d6dde7;
}

/* Google Sign-In Button */
.google-btn {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #d9e1ec;
    color: #1f2937;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    transition: all 0.22s ease;
    margin-top: 12px;
}

.google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10);
    border-color: #c6d2e1;
    background: #fcfdff;
}

.google-btn:active {
    transform: translateY(0);
}

.google-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4285F4 0%, #34A853 35%, #FBBC05 70%, #EA4335 100%);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 6px;
    color: #8a94a6;
    font-size: 13px;
    font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e4e9f2;
}

.welcome-banner {
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    padding: 18px 22px;
    color: #ffffff;
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.10);
    animation: fadeUp 0.7s ease;
    max-width: 520px;
}

.welcome-banner h3 {
    margin: 0 0 6px;
    font-size: 22px;
    color: #ffffff;
}

.welcome-banner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    line-height: 1.6;
}

.hero-overlay {
    pointer-events: none;
}

@media (max-width: 920px) {
    .auth-card {
        grid-template-columns: 1fr;
    }

    .auth-card-left {
        border-right: none;
        border-bottom: 1px solid #edf1f7;
    }
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .roster-form {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .form-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .primary-btn {
        width: 100%;
    }

    .hero-content {
        justify-content: center;
        text-align: center;
    }

    .hero-content > div {
        text-align: center;
    }

    .hero-topbar {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 0 16px 72px;
    }

    .app-shell {
        padding: 0 14px;
    }

    .toolbar-card,
    .grid-card {
        border-radius: 18px;
    }

    .grid-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .roster-form {
        grid-template-columns: 1fr;
    }

    .sticky-col-2 {
        left: 100px;
    }

    .day-cell {
        min-width: 100px !important;
    }

    .date-cell {
        min-width: 120px !important;
    }
}