:root {
    --bg: #090909;
    --bg-soft: #131313;
    --panel: rgba(17, 17, 17, 0.9);
    --gold: #d6b166;
    --gold-soft: #f4dfb1;
    --gold-deep: #8a6732;
    --muted: #a8a39a;
    --muted-soft: rgba(249, 244, 234, 0.68);
    --white: #f9f4ea;
    --border: rgba(214, 177, 102, 0.2);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
    --radius-lg: 22px;
    --font-body: 1rem;
    --font-sm: 0.875rem;
    --font-xs: 0.78rem;
    --font-title: 1.08rem;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Manrope", sans-serif;
    font-size: var(--font-body);
    line-height: 1.65;
    letter-spacing: 0.01em;
    background:
        radial-gradient(circle at top left, rgba(214, 177, 102, 0.12), transparent 30%),
        radial-gradient(circle at bottom right, rgba(214, 177, 102, 0.1), transparent 25%),
        linear-gradient(180deg, #060606 0%, #111 60%, #090909 100%);
    color: var(--white);
    min-height: 100vh;
}

a {
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--white);
    line-height: 1.08;
}

p {
    margin-bottom: 0;
}

small,
.small {
    font-size: var(--font-sm);
    color: var(--muted-soft);
}

.app-body,
.login-body {
    position: relative;
    overflow-x: hidden;
}

.gold-noise,
.login-orbit {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.gold-noise {
    inset: 0;
    background-image: radial-gradient(rgba(214, 177, 102, 0.07) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.18;
}

.login-orbit {
    border-radius: 999px;
    filter: blur(16px);
    opacity: 0.25;
    animation: floatGlow 10s ease-in-out infinite;
}

.login-orbit-one {
    width: 320px;
    height: 320px;
    background: rgba(214, 177, 102, 0.25);
    top: 8%;
    right: -90px;
}

.login-orbit-two {
    width: 260px;
    height: 260px;
    background: rgba(214, 177, 102, 0.18);
    bottom: 6%;
    left: -80px;
    animation-delay: -4s;
}

.app-shell,
.login-body main {
    position: relative;
    z-index: 1;
}

.premium-navbar {
    background: rgba(10, 10, 10, 0.72);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
}

.brand-mark,
.brand-title,
.premium-nav-link,
.nav-user-name,
.template-title,
.table-title {
    color: var(--white);
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-mark {
    display: flex;
    flex-direction: column;
}

.brand-kicker,
.eyebrow {
    color: var(--gold);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.brand-title,
.display-title,
.hero-title,
.page-heading h1,
.card-topper h2,
.section-intro h2 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.brand-title {
    font-size: 1.4rem;
}

.premium-nav-link {
    border-radius: 999px;
    padding: 0.42rem 1rem;
    transition: all 0.25s ease;
}

.premium-nav-link:hover,
.premium-nav-link.active {
    color: #111;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
}

.navbar-toggler {
    border-color: rgba(214, 177, 102, 0.25);
}

.navbar-toggler-icon {
    filter: invert(84%) sepia(24%) saturate(472%) hue-rotate(339deg) brightness(104%) contrast(93%);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

.profile-toggle {
    min-width: 220px;
    justify-content: space-between;
    text-align: left;
}

.profile-toggle::after {
    margin-left: 1rem;
}

.profile-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.profile-avatar {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    color: #111;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.profile-avatar.large {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.05rem;
}

.profile-dropdown {
    min-width: 260px;
    padding: 0.4rem;
}

.dropdown-user-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.4rem 0.25rem;
}

.profile-dropdown .dropdown-item {
    border-radius: 12px;
    padding: 0.05rem 0.85rem;
}

.premium-modal {
    background: linear-gradient(180deg, rgba(25, 25, 25, 0.98) 0%, rgba(10, 10, 10, 0.98) 100%);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    color: var(--white);
}

.premium-modal-title {
    margin: 0.35rem 0 0;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.modal-content .btn-close {
    box-shadow: none;
}

.nav-user-role,
.lead-copy,
.hero-copy,
.page-heading p,
.section-intro p,
.metric-copy,
.template-description,
.task-description,
.table-note {
    color: var(--muted-soft);
}

.lead-copy,
.hero-copy,
.page-heading p,
.section-intro p {
    font-size: clamp(0.98rem, 1.2vw, 1.05rem);
    max-width: 62ch;
}

.glass-card,
.metric-card,
.hero-side-card,
.hero-panel,
.template-card,
.task-card,
.mini-stat-card {
    background: linear-gradient(180deg, rgba(25, 25, 25, 0.95) 0%, rgba(10, 10, 10, 0.95) 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
}

.glass-card,
.hero-panel {
    padding: 1.5rem;
}

.login-card {
    padding: 2rem;
}

.hero-panel,
.hero-banner {
    animation: riseIn 0.7s ease both;
}

.display-title,
.hero-title {
    font-size: clamp(2.15rem, 4vw, 3.65rem);
    line-height: 1;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.mini-stat-card,
.metric-card,
.hero-side-card,
.template-card,
.task-card {
    padding: 1.2rem;
}

.mini-stat-card span,
.metric-card span,
.metric-label,
.task-meta-grid span,
.template-meta span {
    display: block;
    color: var(--muted);
    font-size: var(--font-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mini-stat-card strong,
.metric-card strong,
.metric-value {
    display: block;
    margin-top: 0.25rem;
    color: var(--white);
}

.compact-metric {
    text-align: center;
}

.metric-card strong,
.metric-value {
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    line-height: 1.05;
}

.metric-card small {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted-soft);
    line-height: 1.45;
}

.page-heading h1,
.card-topper h2 {
    margin: 0.35rem 0 0.75rem;
}

.page-heading h1 {
    font-size: clamp(1.95rem, 3.8vw, 3rem);
}

.card-topper h2,
.section-intro h2 {
    font-size: clamp(1.55rem, 2.5vw, 2.15rem);
}

.sticky-card {
    position: sticky;
    top: 100px;
}

.card-topper,
.task-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.premium-btn {
    border: 0;
    color: #111;
    font-weight: 800;
    border-radius: 14px;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
}

.premium-btn:hover {
    color: #111;
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.premium-outline-btn {
    border-color: rgba(214, 177, 102, 0.45);
    color: var(--gold-soft);
    background: rgba(214, 177, 102, 0.06);
    border-radius: 14px;
}

.premium-outline-btn:hover {
    border-color: var(--gold);
    color: #111;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
}

.premium-icon-btn {
    border: 1px solid var(--border);
    color: var(--gold-soft);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.premium-input,
.premium-input:focus,
.form-select.premium-input,
.form-select.premium-input:focus {
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
    border-color: rgba(214, 177, 102, 0.18);
    border-radius: 16px;
    box-shadow: none;
}

.premium-input::placeholder {
    color: rgba(249, 244, 234, 0.35);
}

.form-control,
.form-select,
.form-check-label {
    color: var(--white);
}

.form-select option {
    background: #111;
    color: var(--white);
}

.form-label {
    color: var(--gold-soft);
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 0.55rem;
}

.premium-switch .form-check-input {
    width: 3rem;
    height: 1.6rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--border);
}

.premium-switch .form-check-input:checked {
    background-color: var(--gold);
    border-color: var(--gold);
}

.checklist-builder,
.employee-picker,
.assignment-note,
.demo-credentials,
.task-complete-note,
.activity-item,
.progress-shell,
.template-checklist,
.checklist-row {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 18px;
}

.checklist-builder,
.assignment-note,
.demo-credentials,
.task-complete-note,
.activity-item,
.progress-shell,
.template-checklist {
    padding: 1rem;
}

.checklist-item-input {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.employee-picker {
    max-height: 260px;
    overflow-y: auto;
    padding: 0.75rem;
}

.employee-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.8rem;
    border-radius: 16px;
    transition: background 0.2s ease;
    cursor: pointer;
}

.employee-option:hover {
    background: rgba(214, 177, 102, 0.08);
}

.employee-option small,
.activity-item p,
.empty-state p {
    color: var(--muted);
}

.text-secondary {
    color: var(--muted-soft) !important;
}

.premium-table-wrap {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.premium-table {
    margin-bottom: 0;
    color: var(--white);
}

.premium-table thead th {
    background: rgba(214, 177, 102, 0.1);
    color: var(--gold-soft);
    border-bottom: 1px solid var(--border);
    font-size: var(--font-xs);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.premium-table tbody td {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(214, 177, 102, 0.08);
    font-size: 0.95rem;
    vertical-align: middle;
    color: white;
}

.premium-table tbody td::before {
    content: none;
}

.activity-feed,
.template-checklist,
.checklist-stack {
    display: grid;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
}

.activity-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    margin-top: 0.35rem;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    box-shadow: 0 0 18px rgba(214, 177, 102, 0.6);
}

.empty-state {
    padding: 3rem 1.5rem;
    border-radius: 22px;
    border: 1px dashed rgba(214, 177, 102, 0.35);
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
}

.empty-state.compact {
    padding: 1.75rem 1rem;
}

.empty-state h3 {
    font-size: 1.35rem;
    margin-bottom: 0.55rem;
}

.template-card,
.task-card {
    /* height: 100%; */
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.employee-card {
    min-height: 100%;
}

.template-card:hover,
.task-card:hover {
    transform: translateY(-4px);
    border-color: rgba(214, 177, 102, 0.38);
}

.template-checklist span {
    padding: 0.65rem 0.8rem;
    border-radius: 14px;
    background: rgba(214, 177, 102, 0.08);
    color: var(--gold-soft);
    font-size: 0.92rem;
    line-height: 1.45;
}

.template-meta,
.task-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.priority-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.48rem 0.8rem;
    border-radius: 999px;
    font-size: var(--font-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.status-pill,
.type-pill,
.meta-pill,
.count-pill {
    border: 1px solid rgba(214, 177, 102, 0.18);
}

.status-pending {
    background: rgba(214, 177, 102, 0.14);
    color: var(--gold-soft);
}

.status-completed {
    background: rgba(25, 135, 84, 0.16);
    color: #9ae7c1;
    border-color: rgba(25, 135, 84, 0.32);
}

.status-neutral {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.type-permanent {
    background: rgba(214, 177, 102, 0.12);
    color: var(--gold-soft);
}

.type-temporary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.meta-pill {
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
}

.count-pill {
    background: rgba(214, 177, 102, 0.15);
    color: var(--gold-soft);
}

.priority-high {
    background: rgba(220, 53, 69, 0.15);
    color: #ff8796;
}

.priority-medium {
    background: rgba(255, 193, 7, 0.18);
    color: #ffd978;
}

.priority-low {
    background: rgba(25, 135, 84, 0.18);
    color: #88d6b2;
}

.checklist-row {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
}

.checklist-row span {
    font-size: 0.95rem;
    line-height: 1.5;
}

.premium-progress {
    height: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.premium-progress .progress-bar {
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft));
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-pill {
    color: rgba(249, 244, 234, 0.75);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
}

.filter-pill.active,
.filter-pill:hover {
    color: #111;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
}

.task-search-wrap {
    width: 100%;
    max-width: 320px;
}

.template-title,
.table-title {
    font-size: var(--font-title);
    line-height: 1.35;
    font-weight: 700;
}

.activity-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
}

.task-description,
.template-description,
.assignment-note,
.task-complete-note {
    font-size: 0.95rem;
    line-height: 1.6;
}

.premium-dropdown {
    border-radius: 16px;
    overflow: hidden;
    border-color: var(--border);
    background: rgba(18, 18, 18, 0.98);
}

.premium-dropdown .dropdown-item {
    color: var(--white);
}

.premium-dropdown .dropdown-item:hover {
    background: rgba(214, 177, 102, 0.12);
}

.task-card.is-complete {
    opacity: 0.94;
    border-color: rgba(25, 135, 84, 0.25);
}

.toast {
    border-radius: 16px;
    border-color: var(--border);
    background: rgba(18, 18, 18, 0.96);
    color: var(--white);
}

.toast .toast-header {
    background: rgba(214, 177, 102, 0.12);
    color: var(--gold-soft);
    border-bottom: 1px solid var(--border);
}

@keyframes floatGlow {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-14px) scale(1.04);
    }
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .sticky-card {
        position: static;
    }

    .nav-user {
        margin-top: 1rem;
        justify-content: space-between;
    }

    .profile-toggle {
        width: 100%;
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    .glass-card,
    .hero-panel,
    .login-card,
    .template-card,
    .task-card {
        padding: 1.2rem;
    }

    .hero-grid,
    .template-meta,
    .task-meta-grid {
        grid-template-columns: 1fr;
    }

    .card-topper,
    .task-card-top {
        flex-direction: column;
    }

    .task-search-wrap {
        max-width: none;
    }

    .premium-table-wrap {
        border: none;
        background: transparent;
        overflow: visible;
    }

    .premium-table,
    .premium-table tbody,
    .premium-table tr,
    .premium-table td {
        display: block;
        width: 100%;
    }

    .premium-table thead {
        display: none;
    }

    .premium-table tbody {
        display: grid;
        gap: 1rem;
    }

    .premium-table tbody tr {
        border: 1px solid var(--border);
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(25, 25, 25, 0.95) 0%, rgba(10, 10, 10, 0.95) 100%);
        box-shadow: var(--shadow);
        overflow: hidden;
    }

    .premium-table tbody td {
        display: grid;
        grid-template-columns: minmax(92px, 108px) minmax(0, 1fr);
        gap: 0.9rem;
        padding: 0.9rem 1rem;
        border-bottom: 1px solid rgba(214, 177, 102, 0.08);
        background: transparent;
    }

    .premium-table tbody td:last-child {
        border-bottom: 0;
    }

    .premium-table tbody td::before {
        content: attr(data-label);
        display: block;
        color: var(--gold-soft);
        font-size: var(--font-xs);
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .premium-table tbody td[colspan] {
        display: block;
    }

    .premium-table tbody td[colspan]::before {
        content: none;
    }
}
