﻿/* ========================================
   SYNAPSE DESIGN SYSTEM - Blazor Edition
   Attendance & Task Management Platform
   ======================================== */


/* ===== CSS Variables ===== */
:root {
    --background: oklch(0.97 0.005 250);
    --foreground: oklch(0.15 0.01 250);
    --card: oklch(0.99 0.002 250 / 0.7);
    --card-foreground: oklch(0.15 0.01 250);
    --popover: oklch(0.99 0.002 250 / 0.9);
    --popover-foreground: oklch(0.15 0.01 250);
    --primary: #000000;
    --primary-foreground: #ffffff;
    --secondary: oklch(0.95 0.005 250 / 0.6);
    --secondary-foreground: oklch(0.18 0.01 250);
    --muted: oklch(0.93 0.005 250);
    --muted-foreground: oklch(0.45 0.01 250);
    --accent: #000000;
    --accent-foreground: #ffffff;
    --border: oklch(0.88 0.005 250 / 0.5);
    --glass: oklch(0.99 0.002 250 / 0.5);
    --glass-border: oklch(0.95 0.005 250 / 0.6);
    --legacy-radius: 1rem;
}

.dark {
    --background: oklch(0.12 0.015 250);
    --foreground: oklch(0.95 0.005 250);
    --card: oklch(0.18 0.01 250 / 0.6);
    --card-foreground: oklch(0.95 0.005 250);
    --popover: oklch(0.18 0.01 250 / 0.9);
    --popover-foreground: oklch(0.95 0.005 250);
    --primary: oklch(0.95 0.005 250);
    --primary-foreground: oklch(0.12 0.015 250);
    --secondary: oklch(0.22 0.01 250 / 0.5);
    --secondary-foreground: oklch(0.95 0.005 250);
    --muted: oklch(0.22 0.01 250);
    --muted-foreground: oklch(0.65 0.01 250);
    --accent: oklch(0.65 0.15 280);
    --accent-foreground: oklch(0.12 0.015 250);
    --border: oklch(0.28 0.01 250 / 0.5);
    --glass: oklch(0.18 0.01 250 / 0.4);
    --glass-border: oklch(0.28 0.01 250 / 0.5);
}

/* A light island (.theme-light, tokens.css) keeps these older tokens light too: in the dark theme <html> carries
   .dark, and without this the pages not built from the kit yet drew their labels in near-white on white cards. */
.theme-light {
    --background: oklch(0.97 0.005 250);
    --foreground: oklch(0.15 0.01 250);
    --card: oklch(0.99 0.002 250 / 0.7);
    --card-foreground: oklch(0.15 0.01 250);
    --popover: oklch(0.99 0.002 250 / 0.9);
    --popover-foreground: oklch(0.15 0.01 250);
    --primary: #000000;
    --primary-foreground: #ffffff;
    --secondary: oklch(0.95 0.005 250 / 0.6);
    --secondary-foreground: oklch(0.18 0.01 250);
    --muted: oklch(0.93 0.005 250);
    --muted-foreground: oklch(0.45 0.01 250);
    --accent: #000000;
    --accent-foreground: #ffffff;
    --border: oklch(0.88 0.005 250 / 0.5);
    --glass: oklch(0.99 0.002 250 / 0.5);
    --glass-border: oklch(0.95 0.005 250 / 0.6);
}

/* ===== Base Reset & Styles ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* ===== Animations ===== */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

@keyframes float-delayed {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(-2deg);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out forwards;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animation-delay-100 {
    animation-delay: 100ms;
}

.animation-delay-200 {
    animation-delay: 200ms;
}

.animation-delay-300 {
    animation-delay: 300ms;
}

.animation-delay-400 {
    animation-delay: 400ms;
}

.animation-delay-500 {
    animation-delay: 500ms;
}

.animation-delay-1000 {
    animation-delay: 1000ms;
}

.animation-delay-2000 {
    animation-delay: 2000ms;
}

/* ===== Layout Container ===== */
.synapse-main {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background-color: var(--background);
}

.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ===== Background Orbs ===== */
.bg-orbs {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.bg-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(64px);
}

.bg-orb-1 {
    top: -10rem;
    left: -10rem;
    width: 20rem;
    height: 20rem;
    background-color: oklch(0.55 0.12 280 / 0.2);
    animation: pulse-glow 3s ease-in-out infinite;
}

.bg-orb-2 {
    bottom: -10rem;
    right: -10rem;
    width: 24rem;
    height: 24rem;
    background-color: oklch(0.55 0.12 280 / 0.1);
    animation: pulse-glow 3s ease-in-out infinite;
    animation-delay: 1s;
}

.bg-orb-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16rem;
    height: 16rem;
    background-color: oklch(0.18 0.01 250 / 0.05);
    animation: pulse-glow 3s ease-in-out infinite;
    animation-delay: 2s;
}

.bg-orb-4 {
    top: 25%;
    right: 25%;
    width: 12rem;
    height: 12rem;
    background-color: oklch(0.55 0.12 280 / 0.1);
    animation: float 4s ease-in-out infinite;
}

.bg-orb-5 {
    bottom: 25%;
    left: 33%;
    width: 14rem;
    height: 14rem;
    background-color: oklch(0.18 0.01 250 / 0.1);
    animation: float-delayed 5s ease-in-out infinite;
}

.bg-orb-6 {
    top: 10%;
    left: 20%;
    width: 10rem;
    height: 10rem;
    background: radial-gradient(circle, oklch(0.7 0.15 300 / 0.15), transparent);
    animation: float 6s ease-in-out infinite;
    animation-delay: 0.5s;
}

.bg-orb-7 {
    top: 60%;
    right: 15%;
    width: 18rem;
    height: 18rem;
    background: radial-gradient(circle, oklch(0.6 0.12 260 / 0.12), transparent);
    animation: pulse-glow 4s ease-in-out infinite;
    animation-delay: 1.5s;
}

.bg-orb-8 {
    bottom: 40%;
    left: 10%;
    width: 8rem;
    height: 8rem;
    background: radial-gradient(circle, oklch(0.65 0.14 290 / 0.2), transparent);
    animation: float-delayed 4s ease-in-out infinite;
    animation-delay: 0.8s;
}

.bg-orb-9 {
    top: 35%;
    left: 60%;
    width: 22rem;
    height: 22rem;
    background: radial-gradient(circle, oklch(0.5 0.1 270 / 0.08), transparent);
    animation: pulse-glow 5s ease-in-out infinite;
    animation-delay: 2.5s;
}

.bg-orb-10 {
    bottom: 15%;
    right: 30%;
    width: 6rem;
    height: 6rem;
    background: radial-gradient(circle, oklch(0.75 0.18 310 / 0.25), transparent);
    animation: float 3s ease-in-out infinite;
    animation-delay: 1s;
}

.bg-orb-11 {
    top: 75%;
    left: 45%;
    width: 12rem;
    height: 12rem;
    background: radial-gradient(circle, oklch(0.55 0.12 280 / 0.1), transparent);
    animation: float-delayed 7s ease-in-out infinite;
    animation-delay: 3s;
}

.bg-orb-12 {
    top: 5%;
    right: 40%;
    width: 16rem;
    height: 16rem;
    background: radial-gradient(circle, oklch(0.6 0.1 250 / 0.1), transparent);
    animation: pulse-glow 6s ease-in-out infinite;
    animation-delay: 2s;
}

/* ===== Premium Glass Effect ===== */
.glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 4px 24px -4px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.glass-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 1.25rem;
    box-shadow:
        0 4px 20px -4px rgba(0, 0, 0, 0.08),
        0 16px 40px -8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 8px 30px -4px rgba(0, 0, 0, 0.1),
        0 24px 50px -8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px -4px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%) !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
}

.btn-outline {
    background-color: var(--glass);
    backdrop-filter: blur(12px);
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background-color: var(--card);
    transform: scale(1.05);
}

.btn-ghost {
    background-color: transparent;
    color: var(--foreground);
}

.btn-ghost:hover {
    background-color: var(--secondary);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ===== Header ===== */
/* ===== Logged-in Header (for light backgrounds) ===== */
.header-authenticated {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 1rem 0;
}

.header-authenticated .header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 4px 20px -4px rgba(0, 0, 0, 0.08),
        0 16px 40px -8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.header-authenticated .nav-link {
    color: var(--muted-foreground);
}

.header-authenticated .nav-link:hover,
.header-authenticated .nav-link.active {
    color: var(--foreground);
}

.header-authenticated .user-greeting {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    font-weight: 500;
}

.header-authenticated .btn-ghost {
    color: var(--foreground);
}

.header-authenticated .btn-ghost:hover {
    background-color: var(--secondary);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 1rem 0;
    transition: all 0.5s ease;
}

.header.scrolled {
    padding: 0.5rem 0;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid transparent;
    transition: all 0.5s ease;
}

.header.scrolled .header-nav {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 4px 20px -4px rgba(0, 0, 0, 0.08),
        0 16px 40px -8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    border-radius: 0.5rem;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    font-size: 0.875rem;
    font-weight: 700;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--foreground);
}

.nav-links {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--foreground);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.nav-link.active::after {
    width: 1rem;
}

.nav-cta {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .nav-cta {
        display: flex;
    }
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--foreground);
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu {
    margin-top: 0.5rem;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid transparent;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.08);
}

.mobile-menu.open {
    max-height: 24rem;
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.9);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
}

.mobile-nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--foreground);
}

.mobile-menu-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0.5rem 0;
}

@media (min-width: 768px) {
    .mobile-menu {
        display: none;
    }
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    padding: 8rem 1rem 6rem;
    z-index: 1;
}

@media (min-width: 640px) {
    .hero {
        padding: 10rem 1.5rem 8rem;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 12rem 2rem 10rem;
    }
}

.hero-content {
    max-width: 80rem;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin-bottom: 2rem;
    border-radius: 9999px;
    border: 1px solid var(--glass-border);
    background-color: var(--glass);
    backdrop-filter: blur(12px);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    transition: all 0.3s ease;
}

.hero-badge:hover {
    transform: scale(1.05);
    border-color: var(--accent);
}

.hero-badge-icon {
    width: 1rem;
    height: 1rem;
    color: var(--accent);
}

.hero-title {
    max-width: 56rem;
    margin: 0 auto;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--foreground);
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.25rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 5rem;
    }
}

.hero-title-accent {
    position: relative;
    display: inline-block;
}

.hero-title-accent-text {
    position: relative;
    z-index: 10;
    background: linear-gradient(to right, #333333, #555555, #777777);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-title-accent-glow {
    position: absolute;
    inset: -4px;
    z-index: -1;
    border-radius: 0.5rem;
    background-color: rgba(0, 0, 0, 0.1);
    filter: blur(24px);
    animation: pulse 2s ease-in-out infinite;
}

.hero-subtitle {
    max-width: 42rem;
    margin: 1.5rem auto 0;
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--muted-foreground);
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
    }
}

.hero-preview {
    margin-top: 5rem;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.hero-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 48rem;
}

.hero-card {
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--glass-border);
    background-color: var(--glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-card {
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    background-color: oklch(0.99 0.002 250 / 0.5);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    transform: translateZ(20px);
}

.stat-card:hover {
    transform: translateZ(20px) translateY(-4px);
    border-color: rgba(0, 0, 0, 0.2);
    background-color: oklch(0.99 0.002 250 / 0.7);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--foreground);
    transition: color 0.3s ease;
}

.stat-card:hover .stat-value {
    color: #000000;
}

.stat-label {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.floating-decoration {
    position: absolute;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    background-color: var(--glass);
    backdrop-filter: blur(12px);
}

.floating-decoration-1 {
    top: -1rem;
    right: -1rem;
    width: 5rem;
    height: 5rem;
    animation: float 4s ease-in-out infinite;
}

.floating-decoration-2 {
    bottom: -1rem;
    left: -1rem;
    width: 4rem;
    height: 4rem;
    animation: float-delayed 5s ease-in-out infinite;
}

.floating-decoration-3 {
    bottom: 2rem;
    right: -2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background-color: oklch(0.55 0.12 280 / 0.2);
    animation: float 4s ease-in-out infinite;
}

/* ===== Features Section ===== */
.features {
    position: relative;
    padding: 6rem 1rem;
    z-index: 1;
}

@media (min-width: 640px) {
    .features {
        padding: 6rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .features {
        padding: 6rem 2rem;
    }
}

.features-header {
    text-align: center;
    opacity: 0;
    transform: translateY(2rem);
    transition: all 0.7s ease;
}

.features-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.features-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--foreground);
}

@media (min-width: 640px) {
    .features-title {
        font-size: 2.75rem;
    }
}

.features-subtitle {
    max-width: 42rem;
    margin: 1rem auto 0;
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

.features-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 4rem;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    padding: 2rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    box-shadow:
        0 4px 20px -4px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(2rem);
    transform-style: preserve-3d;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 1);
    background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.9));
    box-shadow:
        0 8px 30px -4px rgba(0, 0, 0, 0.1),
        0 24px 50px -8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-8px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--glass-border);
    background-color: oklch(0.95 0.005 250 / 0.5);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    border-color: rgba(0, 0, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.05);
}

.feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--foreground);
    transition: color 0.3s ease;
}

.feature-card:hover .feature-icon svg {
    color: #000000;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
}

.feature-description {
    margin-top: 0.5rem;
    line-height: 1.625;
    color: var(--muted-foreground);
}

/* ===== Stats Section ===== */
.stats-section {
    position: relative;
    padding: 6rem 1rem;
    z-index: 1;
}

@media (min-width: 640px) {
    .stats-section {
        padding: 6rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .stats-section {
        padding: 6rem 2rem;
    }
}

.stats-card {
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    box-shadow:
        0 4px 24px -4px rgba(0, 0, 0, 0.06),
        0 16px 40px -8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

@media (min-width: 640px) {
    .stats-card {
        padding: 3rem;
    }
}

@media (min-width: 1024px) {
    .stats-card {
        padding: 4rem;
    }
}

.stats-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stats-item {
    position: relative;
    text-align: center;
}

.stats-divider {
    display: none;
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 3rem;
    background-color: var(--border);
}

@media (min-width: 1024px) {
    .stats-divider {
        display: block;
    }
}

.stats-value {
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--foreground);
}

@media (min-width: 640px) {
    .stats-value {
        font-size: 3rem;
    }
}

.stats-label {
    margin-top: 0.5rem;
    color: var(--muted-foreground);
}

/* ===== CTA Section ===== */
.cta-section {
    position: relative;
    padding: 6rem 1rem;
    z-index: 1;
}

@media (min-width: 640px) {
    .cta-section {
        padding: 6rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .cta-section {
        padding: 6rem 2rem;
    }
}

.cta-card {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    box-shadow:
        0 4px 24px -4px rgba(0, 0, 0, 0.06),
        0 16px 40px -8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

@media (min-width: 640px) {
    .cta-card {
        padding: 3rem;
    }
}

@media (min-width: 1024px) {
    .cta-card {
        padding: 4rem;
    }
}

.cta-decoration-1 {
    position: absolute;
    top: -5rem;
    right: -5rem;
    width: 15rem;
    height: 15rem;
    border-radius: 9999px;
    background-color: oklch(0.55 0.12 280 / 0.1);
    filter: blur(48px);
}

.cta-decoration-2 {
    position: absolute;
    bottom: -5rem;
    left: -5rem;
    width: 15rem;
    height: 15rem;
    border-radius: 9999px;
    background-color: oklch(0.18 0.01 250 / 0.05);
    filter: blur(48px);
}

.cta-content {
    position: relative;
    text-align: center;
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--foreground);
}

@media (min-width: 640px) {
    .cta-title {
        font-size: 2.75rem;
    }
}

@media (min-width: 1024px) {
    .cta-title {
        font-size: 3.5rem;
    }
}

.cta-subtitle {
    max-width: 36rem;
    margin: 1rem auto 0;
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

.cta-note {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ===== Footer ===== */
.footer {
    position: relative;
    padding: 0;
    z-index: 1;
    background-color: var(--foreground);
    color: var(--background);
}

.footer-card {
    padding: 4rem 2rem;
    border-radius: 0;
    border: none;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    max-width: 80rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .footer-card {
        padding: 5rem 3rem;
    }
}

.footer-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 3fr;
    }
}

.footer-brand-description {
    max-width: 20rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer .logo-icon {
    background-color: #ffffff;
    color: #000000;
}

.footer .logo-text {
    color: #ffffff;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-links-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
}

.footer-links-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
}

.footer-links-list a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links-list a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #ffffff;
}

/* ===== Utility Classes ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========================================
   AUTHENTICATION PAGES
   Premium & Elegant Design
   ======================================== */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    background: linear-gradient(135deg, var(--background) 0%, oklch(0.95 0.01 280 / 0.3) 50%, var(--background) 100%);
}

.auth-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 24rem;
    padding: 2rem 2rem 1.75rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.88));
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 1.5rem;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.03),
        0 20px 40px -10px rgba(0, 0, 0, 0.08),
        0 40px 80px -20px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.02);
    animation: auth-card-entrance 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes auth-card-entrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #000000, transparent);
    border-radius: 2rem 2rem 0 0;
    opacity: 0.1;
}

.auth-card-sm {
    max-width: 22rem;
    padding: 2rem 1.75rem 1.5rem;
}

/* Auth Logo */
.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.auth-logo-icon {
    width: 2.25rem;
    height: 2.25rem;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.auth-logo-img {
    width: 2.25rem;
    height: 2.25rem;
    object-fit: contain;
    border-radius: 0.5rem;
}

.auth-logo-text {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--foreground);
    letter-spacing: -0.04em;
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    letter-spacing: -0.03em;
    margin-bottom: 0.375rem;
    background: linear-gradient(135deg, #000000 0%, #444444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-link {
    font-size: 0.8rem;
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.form-link:hover {
    opacity: 0.7;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 0.875rem;
    color: var(--muted-foreground);
    pointer-events: none;
    z-index: 1;
    transition: color 0.2s ease;
}

.input-icon svg {
    width: 16px;
    height: 16px;
}

.input-wrapper:focus-within .input-icon {
    color: #000000;
}

.form-input {
    width: 100%;
    padding: 0.75rem 0.875rem 0.75rem 2.5rem;
    font-size: 0.875rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.8);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    color: var(--foreground);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

.form-input:focus {
    outline: none;
    border-color: #000000;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-input::placeholder {
    color: var(--muted-foreground);
    font-weight: 400;
}

.input-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
}

.input-toggle:hover {
    color: var(--foreground);
    background: rgba(0, 0, 0, 0.05);
}

.validation-message {
    font-size: 0.75rem;
    color: #dc2626;
    font-weight: 500;
}

/* Form Actions */
.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.25rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #000000;
}

.checkbox-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.forgot-link {
    font-size: 0.875rem;
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.forgot-link:hover {
    opacity: 0.7;
}

/* Auth Buttons */
.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: 0.75rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-full:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-full svg {
    margin-left: 0.5rem;
}

.spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Social Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.auth-divider-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider-text {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-social:hover {
    background: var(--secondary);
    border-color: var(--muted-foreground);
}

.btn-social svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1rem;
}

.auth-footer-text {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.auth-footer-link {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    position: relative;
}

.auth-footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #000000;
    transition: width 0.3s ease;
}

.auth-footer-link:hover::after {
    width: 100%;
}

.auth-terms {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.7rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}

.auth-terms a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.auth-terms a:hover {
    opacity: 0.7;
}

/* Elegant Ornament Divider */
.auth-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.auth-ornament-line {
    width: 2.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.15), transparent);
}

.auth-ornament-dot {
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #000000, #333333);
    border-radius: 50%;
}

/* Back Link */
.auth-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-back-link:hover {
    color: var(--foreground);
    gap: 0.5rem;
}

.auth-back-link svg {
    width: 14px;
    height: 14px;
}

/* OTP Input */
.otp-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.otp-input {
    width: 2.75rem;
    height: 3rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.8);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    color: var(--foreground);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.otp-input:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

.otp-input:focus {
    outline: none;
    border-color: #000000;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* Resend Section */
.resend-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.resend-text {
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.resend-btn {
    background: none;
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    position: relative;
}

.resend-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #000000;
    transition: width 0.3s ease;
}

.resend-btn:hover::after {
    width: 100%;
}

.resend-countdown {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

/* ===== Email Verification Animations ===== */

/* Email verification card - Green themed */
.email-verification-card {
    animation: email-card-entrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-top: 4px solid #10b981;
}

@keyframes email-card-entrance {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(40px);
    }

    60% {
        transform: scale(1.03) translateY(-8px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Animated email icon container */
.email-sent-animation {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
}

.email-icon-container {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: email-glow-pulse 2s ease-in-out infinite;
}

@keyframes email-glow-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.email-icon {
    width: 64px;
    height: 64px;
    color: #10b981;
    z-index: 1;
    animation: email-icon-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

@keyframes email-icon-bounce {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.email-check-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 2;
    animation: badge-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

@keyframes badge-pop {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Floating particles */
.email-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    opacity: 0;
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation: particle-float 2s ease-out 0.8s forwards;
}

.particle:nth-child(2) {
    top: 20%;
    right: 20%;
    animation: particle-float 2s ease-out 0.9s forwards;
}

.particle:nth-child(3) {
    bottom: 30%;
    left: 15%;
    animation: particle-float 2s ease-out 1s forwards;
}

.particle:nth-child(4) {
    bottom: 30%;
    right: 15%;
    animation: particle-float 2s ease-out 1.1s forwards;
}

@keyframes particle-float {
    0% {
        opacity: 0;
        transform: scale(0) translateY(0);
    }

    20% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.5) translateY(-30px);
    }
}

/* Email verification content */
.email-verification-content {
    text-align: center;
    margin-bottom: 1.5rem;
    animation: content-fade-up 0.5s ease-out 0.4s both;
}

@keyframes content-fade-up {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.email-verification-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.email-verification-subtitle {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
}

.email-address-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #059669;
}

.email-address-badge svg {
    color: #10b981;
}

/* Verification info box */
.verification-info-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    animation: info-box-fade 0.5s ease-out 0.5s both;
}

@keyframes info-box-fade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.verification-info-box svg {
    color: #10b981;
    flex-shrink: 0;
    margin-top: 2px;
}

.verification-info-box p {
    font-size: 0.85rem;
    color: var(--muted-foreground);
    line-height: 1.5;
    margin: 0;
}

/* Success button (green) */
.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-success:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.spinner-light {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: white;
}

/* Resend feedback messages */
.resend-feedback {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    text-align: center;
    animation: feedback-pop 0.3s ease-out;
}

@keyframes feedback-pop {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.resend-feedback.success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.resend-feedback.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Animated verification card after registration (legacy support) */
.verification-card-animated {
    animation: verification-card-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Success card animation */
.verification-success-card {
    animation: success-card-entrance 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes success-card-entrance {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Verification loading state */
.verification-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 0;
}

.verification-spinner-container {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.verification-spinner {
    width: 100%;
    height: 100%;
    animation: rotate 2s linear infinite;
}

.spinner-track {
    stroke: rgba(0, 0, 0, 0.1);
}

.spinner-progress {
    stroke: #000000;
    stroke-linecap: round;
    stroke-dasharray: 126;
    stroke-dashoffset: 80;
    animation: spinner-dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinner-dash {
    0% {
        stroke-dashoffset: 126;
    }

    50% {
        stroke-dashoffset: 30;
    }

    100% {
        stroke-dashoffset: 126;
    }
}

.verification-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.verification-subtitle {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Success state animations */
.verification-success-animated {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 0;
    animation: success-content-fade 0.5s ease-out 0.3s both;
}

@keyframes success-content-fade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.success-icon-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border-radius: 50%;
    animation: success-bg-pulse 2s ease-in-out infinite;
}

@keyframes success-bg-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

.success-checkmark {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #10b981;
    fill: none;
    animation: checkmark-circle-draw 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #10b981;
    stroke-width: 3;
    stroke-linecap: round;
    animation: checkmark-check-draw 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

@keyframes checkmark-circle-draw {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes checkmark-check-draw {
    100% {
        stroke-dashoffset: 0;
    }
}

.verification-success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.verification-success-text {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

/* Redirect countdown container */
.redirect-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.redirect-progress-ring {
    position: relative;
    width: 48px;
    height: 48px;
}

.redirect-progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.redirect-progress-bg {
    stroke: rgba(16, 185, 129, 0.2);
}

.redirect-progress-bar {
    stroke: #10b981;
    stroke-linecap: round;
    stroke-dasharray: 100.5;
    transition: stroke-dashoffset 1s linear;
}

.redirect-countdown {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #10b981;
}

.redirect-text {
    font-size: 0.85rem;
    color: var(--muted-foreground);
}

.redirect-text strong {
    color: #10b981;
    font-weight: 600;
}

.redirect-btn {
    margin-top: 0;
    animation: btn-pulse 2s ease-in-out infinite;
}

@keyframes btn-pulse {

    0%,
    100% {
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    50% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

/* Error state animations */
.verification-error-animated {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 0;
    animation: error-shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes error-shake {

    10%,
    90% {
        transform: translateX(-1px);
    }

    20%,
    80% {
        transform: translateX(2px);
    }

    30%,
    50%,
    70% {
        transform: translateX(-3px);
    }

    40%,
    60% {
        transform: translateX(3px);
    }

    100% {
        transform: translateX(0);
    }
}

.error-icon-container {
    margin-bottom: 1.5rem;
    animation: error-pulse 0.6s ease-out;
}

@keyframes error-pulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.verification-error-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 0.5rem;
}

.verification-error-text {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

/* ===== Dashboard Layout ===== */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background-color: #F9FAFB;
    overflow-x: hidden;
    max-width: 100vw;
}

.sidebar {
    width: 240px;
    background: #111827;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 40;
}

.sidebar-header {
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.sidebar-logo img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    flex-shrink: 0;
}

.sidebar-logo span {
    font-size: 15px;
    font-weight: 600;
    color: #F9FAFB;
    letter-spacing: -0.01em;
}

/* Wrapper provides the clipping context for the fade gradient */
.sidebar-nav-wrapper {
    flex: 1;
    position: relative;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Fade-out gradient at the bottom hints that content is scrollable */
.sidebar-nav-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(to bottom, transparent, rgba(17, 24, 39, 0.95));
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.2s ease;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem;
    padding-bottom: 2rem; /* extra space so last item isn't hidden under the fade */
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar-nav::-webkit-scrollbar {
    display: none;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 8px 12px;
    border-radius: 6px;
    color: #D1D5DB;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #F9FAFB;
}

.sidebar-link.active {
    background: rgba(99, 102, 241, 0.15);
    border-left: 3px solid #6366F1;
    color: #FFFFFF;
    font-weight: 600;
    padding-left: 9px;
}

.sidebar-link svg {
    flex-shrink: 0;
    color: inherit;
}

.sidebar-link.active svg {
    color: #6366F1;
}

/* Placeholder rows while the sidebar waits for the signed-in role */
.sidebar-skeleton {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-skeleton-line {
    display: block;
    height: 36px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    animation: pulse 1.6s ease-in-out infinite;
}

.sidebar-skeleton-line:nth-child(3n + 2) {
    width: 80%;
}

.sidebar-skeleton-line:nth-child(3n) {
    width: 65%;
}

/* Settings sub-links - indented slightly, slightly smaller icon */
.sidebar-link-sub {
    padding-left: 1.125rem;
    font-size: 0.84rem;
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366F1 0%, #8b5cf6 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    overflow: hidden;
    flex-shrink: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
}

img.user-avatar {
    object-fit: cover;
    display: block !important;
    flex-shrink: 0;
}

.user-name {
    font-size: 13px;
    font-weight: 500;
    color: #F9FAFB;
}

/* User Menu */
.user-menu-wrapper {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.5rem;
    border-radius: 0.75rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: inherit;
    text-align: left;
}

.user-menu-trigger:hover {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.user-menu-name {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.user-email {
    font-size: 12px;
    color: rgba(249, 250, 251, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-chevron {
    color: rgba(249, 250, 251, 0.5);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.user-menu-chevron.rotated {
    transform: rotate(180deg);
}

.user-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99;
}

.user-menu-dropdown {
    position: fixed;
    bottom: 0.75rem;
    left: 248px;
    width: 260px;
    background: #1F2937;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 100;
    animation: menuPopIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: bottom left;
}

@keyframes menuPopIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateX(-8px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

.user-menu-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.25rem;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
}

.user-menu-header-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}

.user-menu-header-info {
    flex: 1;
    min-width: 0;
}

.user-menu-header-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.user-menu-header-email {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #F9FAFB;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
    font-family: inherit;
    text-decoration: none;
}

.user-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.user-menu-item svg {
    opacity: 0.75;
    transition: opacity 0.15s ease;
    flex-shrink: 0;
}

.user-menu-item:hover svg {
    opacity: 1;
}

.user-menu-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0.375rem 0;
}

.user-menu-logout {
    color: #F87171;
}

.user-menu-logout:hover {
    background: rgba(248, 113, 113, 0.12);
    color: #F87171;
}

.user-menu-logout:hover svg {
    opacity: 1;
}

.main-content {
    flex: 1;
    margin-left: 240px;
    padding: 32px;
    min-height: 100vh;
    background: #F9FAFB;
}

/* Mobile responsive */
@media (max-width: 1023px) {
    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .user-menu-dropdown {
        left: 50%;
        bottom: 5rem;
        width: 260px;
    }
}

/* ========================================
   TWO-STEP REGISTRATION STYLES
   Add this to your existing CSS file
   ======================================== */

/* Wider auth card for registration */
.auth-card-wide {
    max-width: 26rem;
    padding: 2.5rem 2rem 2rem;
}

/* ===== Auth Form Spacing Override ===== */
.auth-card-wide .auth-form {
    gap: 1.25rem;
}

.auth-card-wide .form-group {
    margin-bottom: 0.25rem;
}

.auth-card-wide .form-row {
    gap: 1rem;
    margin-bottom: 0.25rem;
}

/* ===== Step Indicator ===== */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: transparent;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted-foreground);
    transition: all 0.3s ease;
}

.step.active {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
}

.step.completed {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
}

.step-line {
    width: 4rem;
    height: 2px;
    background: var(--border);
    border-radius: 9999px;
    transition: all 0.5s ease;
}

.step-line.active {
    background: #000000;
}

/* ===== Step Content Animation ===== */
.step-content {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-content.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    position: relative;
}

.step-content.hidden-left {
    opacity: 0;
    transform: translateX(-2rem);
    pointer-events: none;
    position: absolute;
    width: 100%;
}

.step-content.hidden-right {
    opacity: 0;
    transform: translateX(2rem);
    pointer-events: none;
    position: absolute;
    width: 100%;
}

/* ===== Password Requirements ===== */
.password-requirements {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-top: 0.75rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.password-requirements.visible {
    max-height: 10rem;
    opacity: 1;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    transition: color 0.2s ease;
}

.requirement.passed {
    color: #16a34a;
}

.requirement-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 1.5px solid var(--muted-foreground);
    transition: all 0.2s ease;
}

.requirement.passed .requirement-icon {
    border-color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
}

/* ===== Account Type Selection ===== */
.account-type-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.account-type-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 0.875rem;
    border: 2px solid var(--border);
    background: var(--glass);
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.account-type-card:hover {
    border-color: rgba(0, 0, 0, 0.3);
    background: var(--secondary);
}

.account-type-card.selected {
    border-color: #000000;
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.account-type-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: var(--secondary);
    color: var(--foreground);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.account-type-card.selected .account-type-icon {
    background: #000000;
    color: #ffffff;
}

.account-type-card:hover:not(.selected) .account-type-icon {
    background: rgba(0, 0, 0, 0.1);
}

.account-type-content {
    flex: 1;
}

.account-type-content h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.account-type-content p {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    line-height: 1.4;
}

.account-type-check {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.account-type-card.selected .account-type-check {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
}

/* ===== Conditional Field Animation ===== */
.conditional-field {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.conditional-field.visible {
    max-height: 30rem;
    /* Large enough for any content */
    opacity: 1;
    margin-bottom: 1rem;
}

/* ===== Fix input border overflow ===== */
.conditional-field .form-input,
.conditional-field .input-wrapper {
    box-sizing: border-box;
}

.conditional-field .form-input:valid,
.conditional-field .form-input:focus {
    border-color: rgba(0, 0, 0, 0.15);
    outline: none;
    box-shadow: none;
}

.conditional-field .form-input:focus {
    border-color: #000000;
}

/* === Subdomain Section === */
.subdomain-section {
    margin-top: 0.75rem;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subdomain-preview-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    margin-top: 0.375rem;
}

.subdomain-url {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
}

.subdomain-protocol {
    color: var(--muted-foreground);
    font-weight: 400;
    flex-shrink: 0;
}

.subdomain-value {
    color: var(--foreground);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subdomain-domain {
    color: var(--muted-foreground);
    font-weight: 400;
    flex-shrink: 0;
}

.subdomain-edit-input {
    border: none;
    outline: none;
    background: rgba(0, 0, 0, 0.04);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    min-width: 60px;
    max-width: 160px;
    width: auto;
}

.subdomain-edit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.subdomain-edit-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--foreground);
}

.subdomain-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.375rem;
    font-size: 0.75rem;
    min-height: 18px;
}

.status-checking {
    color: var(--muted-foreground);
}

.status-available {
    color: #16a34a;
    font-weight: 500;
}

.status-taken {
    color: #dc2626;
    font-weight: 500;
}

.status-separator {
    color: var(--muted-foreground);
}

.subdomain-suggestion-btn {
    border: none;
    background: none;
    color: var(--muted-foreground);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0;
    font-family: inherit;
    transition: color 0.2s;
}

.subdomain-suggestion-btn:hover {
    color: var(--foreground);
}

.subdomain-suggestion-btn strong {
    color: var(--foreground);
    font-weight: 600;
}

/* Remove default validation styles */
.form-input:valid {
    border-color: rgba(0, 0, 0, 0.08);
}

.form-input:focus:valid {
    border-color: #000000;
}

/* Override any green validation border */
input:valid,
.form-input:valid,
.valid.modified {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

input:focus,
.form-input:focus {
    border-color: #000000 !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05) !important;
}

/* ===== Invite Code Input ===== */
.invite-code-input {
    font-family: 'SF Mono', 'Fira Code', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* ===== Button Row ===== */
.button-row {
    display: flex;
    gap: 0.75rem;
}

.btn-back {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ===== Continue Button Spacing ===== */
.step-content .btn-full {
    margin-top: 0.75rem;
}

/* ===== Error Alert ===== */
.error-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.75rem;
    color: #dc2626;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.error-alert svg {
    flex-shrink: 0;
    color: #dc2626;
}

/* ===== Terms & Footer Spacing ===== */
.auth-card-wide .auth-terms {
    margin-top: 1.75rem;
}

.auth-card-wide .auth-footer {
    margin-top: 1rem;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .auth-card-wide {
        max-width: 100%;
        margin: 0 1rem;
        padding: 2rem 1.5rem 1.75rem;
    }

    .step-indicator {
        margin-bottom: 1.5rem;
    }

    .step-line {
        width: 3rem;
    }

    .account-type-card {
        padding: 1rem;
    }

    .account-type-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .account-type-content h3 {
        font-size: 0.875rem;
    }

    .account-type-content p {
        font-size: 0.75rem;
    }

    .button-row {
        flex-direction: column;
    }

    .btn-back,
    .btn-submit {
        flex: none;
        width: 100%;
    }
}

/* ========================================
   DASHBOARD PAGES STYLES
   ======================================== */

/* ===== Dashboard Page Layout ===== */
.dashboard-page {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.dashboard-subtitle {
    font-size: 0.9rem;
    color: var(--muted-foreground);
}

.dashboard-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

/* ===== Stats Row ===== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
}

.dash-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 12px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.dash-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.1);
}

.dash-stat-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-stat-icon-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.dash-stat-icon-green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.dash-stat-icon-amber {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.dash-stat-icon-purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.dash-stat-icon-red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.dash-stat-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.dash-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--foreground);
    line-height: 1.2;
}

.dash-stat-label {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

.dash-stat-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    white-space: nowrap;
}

.dash-stat-trend-up {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.dash-stat-trend-down {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.dash-stat-trend-neutral {
    background: rgba(0, 0, 0, 0.04);
    color: var(--muted-foreground);
}

/* ===== Dashboard Grid ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

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

/* ===== Dashboard Cards ===== */
.dash-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 12px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.dash-card-full {
    grid-column: 1 / -1;
}

.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dash-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    letter-spacing: -0.01em;
}

.dash-card-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s ease;
}

.dash-card-link:hover {
    color: var(--foreground);
}

.dash-card-body {
    padding: 1.25rem 1.5rem;
}

/* ===== Task List (Dashboard) ===== */
.task-list {
    display: flex;
    flex-direction: column;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.task-item:last-child {
    border-bottom: none;
}

.task-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.task-status-progress {
    background-color: #3b82f6;
}

.task-status-pending {
    background-color: #94a3b8;
}

.task-status-completed {
    background-color: #10b981;
}

.task-status-blocked {
    background-color: #ef4444;
}

.task-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.task-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-meta {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.task-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.task-badge-high {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.task-badge-normal {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.task-badge-low {
    background: rgba(0, 0, 0, 0.04);
    color: var(--muted-foreground);
}

.task-badge-urgent {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.task-badge-done {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

/* ===== Attendance Summary (Dashboard) ===== */
.attendance-summary {
    display: flex;
    align-items: center;
    gap: 2rem;
}

@media (max-width: 480px) {
    .attendance-summary {
        flex-direction: column;
    }
}

.attendance-ring-container {
    flex-shrink: 0;
}

.attendance-ring {
    width: 130px;
    height: 130px;
}

.attendance-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.attendance-detail-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.attendance-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.attendance-dot-green {
    background-color: #10b981;
}

.attendance-dot-amber {
    background-color: #f59e0b;
}

.attendance-dot-red {
    background-color: #ef4444;
}

.attendance-dot-blue {
    background-color: #3b82f6;
}

.attendance-detail-label {
    flex: 1;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.attendance-detail-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
}

/* ===== Activity Feed ===== */
.activity-feed {
    display: flex;
    flex-direction: column;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    flex-shrink: 0;
}

.activity-avatar-green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.activity-avatar-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.activity-avatar-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.activity-avatar-amber {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-content p {
    font-size: 0.875rem;
    color: var(--foreground);
    line-height: 1.4;
    margin: 0;
}

.activity-content p strong {
    font-weight: 600;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* ===== Filter Bar ===== */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-tabs {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 0.75rem;
    padding: 0.25rem;
    overflow-x: auto;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.filter-tab:hover {
    color: var(--foreground);
}

.filter-tab.active {
    background: #ffffff;
    color: var(--foreground);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.filter-count {
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.06);
    padding: 0.1rem 0.375rem;
    border-radius: 0.375rem;
    font-weight: 600;
}

.filter-tab.active .filter-count {
    background: rgba(0, 0, 0, 0.08);
}

.filter-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    color: var(--muted-foreground);
    transition: all 0.2s ease;
}

.filter-search:focus-within {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.filter-search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.8rem;
    font-family: inherit;
    color: var(--foreground);
    width: 180px;
}

.filter-search-input::placeholder {
    color: var(--muted-foreground);
}

/* ===== Data Table ===== */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    padding: 0.75rem 1.25rem;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.data-table td {
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    color: var(--foreground);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.table-row {
    transition: background 0.15s ease;
}

.table-row:hover {
    background: rgba(0, 0, 0, 0.02);
}

.table-row:last-child td {
    border-bottom: none;
}

.table-task-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.table-task-name {
    font-weight: 500;
    color: var(--foreground);
}

.table-task-name.completed {
    text-decoration: line-through;
    color: var(--muted-foreground);
}

.table-task-desc {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.table-date {
    color: var(--muted-foreground);
    font-size: 0.8rem;
}

.table-date.overdue {
    color: #dc2626;
    font-weight: 500;
}

.table-assignee {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-assignee-avatar {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.375rem;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.task-check {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.375rem;
    border: 2px solid rgba(0, 0, 0, 0.15);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.task-check:hover {
    border-color: rgba(0, 0, 0, 0.3);
}

.task-check.checked {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

/* ===== Status Pills ===== */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-pill .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-pill-inprogress {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.status-pill-inprogress .status-dot {
    background: #3b82f6;
}

.status-pill-notstarted {
    background: rgba(0, 0, 0, 0.04);
    color: var(--muted-foreground);
}

.status-pill-notstarted .status-dot {
    background: #94a3b8;
}

.status-pill-completed {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-pill-completed .status-dot {
    background: #10b981;
}

.status-pill-blocked {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.status-pill-blocked .status-dot {
    background: #ef4444;
}

.status-pill-canceled {
    background: rgba(0, 0, 0, 0.04);
    color: var(--muted-foreground);
}

.status-pill-canceled .status-dot {
    background: #94a3b8;
}

.status-pill-present {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-pill-present .status-dot {
    background: #10b981;
}

.status-pill-late {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.status-pill-late .status-dot {
    background: #f59e0b;
}

.status-pill-absent {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.status-pill-absent .status-dot {
    background: #ef4444;
}

.status-pill-early {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

.status-pill-early .status-dot {
    background: #8b5cf6;
}

/* ===== Method Badges ===== */
.method-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.method-badge-nfc {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.method-badge-qr {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

.method-badge-pin {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.method-badge-biometric {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.method-badge--- {
    background: rgba(0, 0, 0, 0.04);
    color: var(--muted-foreground);
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1rem;
    animation: modal-fade-in 0.2s ease;
}

@keyframes modal-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 1.25rem;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 32rem;
    animation: modal-slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
}

.modal-close {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--foreground);
}

.modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ===== Form Extras ===== */
.form-textarea {
    min-height: 80px;
    resize: vertical;
    padding: 0.75rem 0.875rem !important;
    line-height: 1.5;
}

.form-select {
    padding: 0.75rem 0.875rem !important;
    appearance: auto;
}

/* ===== Team Grid ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.team-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 12px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.2s ease;
}

.team-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.1);
}

.team-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.25rem 1.25rem 0;
}

.team-member-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
}

.team-avatar-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.team-avatar-green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.team-avatar-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.team-avatar-amber {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.team-role-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.team-role-admin {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.team-role-manager {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

.team-role-employee {
    background: rgba(0, 0, 0, 0.04);
    color: var(--muted-foreground);
}

.team-role-owner {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.team-card-body {
    padding: 1rem 1.25rem;
}

.team-member-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.125rem;
}

.team-member-title {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    margin-bottom: 0.875rem;
}

.team-member-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.team-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.team-detail svg {
    flex-shrink: 0;
    color: var(--muted-foreground);
}

.team-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    background: rgba(0, 0, 0, 0.01);
}

.team-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.team-status .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.team-status-active {
    color: #059669;
}

.team-status-active .status-dot {
    background: #10b981;
}

.team-status-inactive {
    color: var(--muted-foreground);
}

.team-status-inactive .status-dot {
    background: #94a3b8;
}

.team-joined {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* ===== Member Actions ===== */
.member-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.member-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
    background: transparent;
}

.member-action-deactivate {
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.2);
}

.member-action-deactivate:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.4);
}

.member-action-reactivate {
    color: #059669;
    border-color: rgba(16, 185, 129, 0.2);
}

.member-action-reactivate:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.4);
}

.member-action-remove {
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.2);
    margin-left: auto;
}

.member-action-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
}

.member-inactive {
    opacity: 0.65;
}

.member-inactive .team-card-header::after {
    content: "DEACTIVATED";
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.member-inactive .team-card-header {
    position: relative;
}

/* ===== Confirmation Modal ===== */
.confirm-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 420px;
    animation: modalFadeIn 0.2s ease;
}

.confirm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem 0;
}

.confirm-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--foreground);
}

.confirm-modal-message {
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

.confirm-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0 1.5rem 1.25rem;
}

/* ===== btn-warning ===== */
.btn-warning {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.btn-warning:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.5);
}

/* ===== Slide-in animation ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ===== Directory Filters ===== */
.directory-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.directory-filter-group {
    display: flex;
    align-items: center;
}

.directory-filter-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: white;
    font-size: 0.8rem;
    color: var(--foreground);
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.directory-filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.directory-clear-filters {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    color: var(--muted-foreground);
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s ease;
}

.directory-clear-filters:hover {
    color: var(--foreground);
}

.directory-card {
    cursor: pointer;
}

.directory-card-selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), 0 4px 20px -4px rgba(0, 0, 0, 0.1);
}

.directory-job-title {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
}

.directory-emp-code {
    font-size: 0.7rem;
    font-family: monospace;
    color: var(--muted-foreground);
    background: rgba(0, 0, 0, 0.04);
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
}

.directory-avatar-img {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    object-fit: cover;
}

/* ===== Directory Detail Panel ===== */
.directory-detail-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    animation: fadeIn 0.2s ease;
}

.directory-detail-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    max-width: 90vw;
    max-height: 85vh;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1.25rem;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.08),
        0 24px 48px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    animation: detailPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow-y: auto;
}

@keyframes detailPopIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.85);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.directory-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.directory-detail-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
}

.directory-detail-close {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.directory-detail-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--foreground);
}

.directory-detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.directory-detail-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.directory-detail-avatar-img {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    object-fit: cover;
}

.directory-detail-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    flex-shrink: 0;
}

.directory-detail-identity h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.125rem;
}

.directory-detail-jobtitle {
    font-size: 0.85rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.directory-detail-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.directory-detail-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.directory-detail-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.directory-detail-value {
    font-size: 0.875rem;
    color: var(--foreground);
    padding-left: 1.5rem;
}


.settings-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
}

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

.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

@media (max-width: 768px) {
    .settings-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-align: left;
    white-space: nowrap;
}

.settings-nav-item:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--foreground);
}

.settings-nav-item.active {
    background: var(--primary);
    color: var(--primary-foreground);
}

.settings-content {
    min-width: 0;
}

.settings-avatar-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.settings-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.settings-avatar-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.125rem;
}

.settings-avatar-info p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.5rem;
}

.settings-toggle-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.75rem 0;
}

.settings-toggle-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.settings-toggle-info p {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    line-height: 1.5;
    margin: 0;
}

.settings-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    transition: 0.3s;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle-switch input:checked+.toggle-slider {
    background: #000000;
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(20px);
}

/* Danger card */
.danger-card {
    border-color: rgba(239, 68, 68, 0.2);
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.sidebar-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0.5rem 0;
}

/* ===== Sidebar Section Labels ===== */
.sidebar-section-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(249, 250, 251, 0.4);
    padding: 20px 12px 4px;
    margin-top: 0;
}

.sidebar-section-label:first-child {
    padding-top: 8px;
}

/* ========================================
   PROJECTS PAGE STYLES
   ======================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}

.project-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 12px -2px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.1);
}

.project-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.project-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.project-description {
    font-size: 0.85rem;
    color: var(--muted-foreground);
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-progress {
    margin-bottom: 1rem;
}

.progress-bar-bg {
    height: 6px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #000000, #333333);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-bar-fill.green {
    background: linear-gradient(90deg, #10b981, #059669);
}

.progress-bar-fill.blue {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.progress-bar-fill.amber {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.progress-text {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.project-team {
    display: flex;
    align-items: center;
}

.project-team-avatar {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: #ffffff;
    margin-left: -0.5rem;
    border: 2px solid #ffffff;
}

.project-team-avatar:first-child {
    margin-left: 0;
}

.project-due {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.project-status-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.project-status-active {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.project-status-completed {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.project-status-onhold {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}


/* ========================================
   REPORTS PAGE STYLES
   ======================================== */

.reports-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
    .reports-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .reports-summary {
        grid-template-columns: 1fr;
    }
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.chart-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 12px -2px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.chart-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1.25rem;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 160px;
    gap: 0.75rem;
    padding-top: 1rem;
}

.bar-chart-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.bar-chart-bar {
    width: 100%;
    max-width: 40px;
    background: linear-gradient(180deg, #000000 0%, #333333 100%);
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
}

.bar-chart-label {
    margin-top: 0.5rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--muted-foreground);
}

.bar-chart-value {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.progress-circle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
}

.progress-circle {
    position: relative;
    width: 140px;
    height: 140px;
}

.progress-circle svg {
    transform: rotate(-90deg);
}

.progress-circle-bg {
    fill: none;
    stroke: rgba(0, 0, 0, 0.06);
    stroke-width: 10;
}

.progress-circle-fill {
    fill: none;
    stroke: #000000;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-circle-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--foreground);
    display: block;
}

.progress-circle-label {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.performers-list {
    display: flex;
    flex-direction: column;
}

.performer-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.performer-item:last-child {
    border-bottom: none;
}

.performer-rank {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted-foreground);
}

.performer-rank.gold {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.performer-rank.silver {
    background: rgba(148, 163, 184, 0.2);
    color: #64748b;
}

.performer-rank.bronze {
    background: rgba(180, 83, 9, 0.15);
    color: #b45309;
}

.performer-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
}

.performer-info {
    flex: 1;
}

.performer-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--foreground);
}

.performer-role {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.performer-stats {
    text-align: right;
}

.performer-stat-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--foreground);
}

.performer-stat-label {
    font-size: 0.7rem;
    color: var(--muted-foreground);
}

/* ========================================
   SETTINGS PAGE ADDITIONS
   ======================================== */

/* Theme Options */
.theme-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.theme-option {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.theme-option input {
    display: none;
}

.theme-preview {
    width: 120px;
    height: 80px;
    border-radius: 0.75rem;
    border: 2px solid var(--border);
    overflow: hidden;
    display: flex;
    transition: all 0.2s ease;
}

.theme-option.selected .theme-preview,
.theme-option:hover .theme-preview {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.theme-preview-light {
    background: #f5f5f5;
}

.theme-preview-light .theme-preview-sidebar {
    background: #ffffff;
    border-right: 1px solid #e5e5e5;
}

.theme-preview-light .theme-preview-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
}

.theme-preview-dark {
    background: #1a1a1a;
}

.theme-preview-dark .theme-preview-sidebar {
    background: #0a0a0a;
    border-right: 1px solid #333;
}

.theme-preview-dark .theme-preview-card {
    background: #262626;
    border: 1px solid #333;
}

.theme-preview-system {
    background: linear-gradient(135deg, #f5f5f5 50%, #1a1a1a 50%);
}

.theme-preview-system .theme-preview-sidebar {
    background: linear-gradient(180deg, #ffffff 50%, #0a0a0a 50%);
    border-right: 1px solid #999;
}

.theme-preview-system .theme-preview-card {
    background: linear-gradient(180deg, #ffffff 50%, #262626 50%);
    border: 1px solid #999;
}

.theme-preview-sidebar {
    width: 30%;
    height: 100%;
}

.theme-preview-content {
    flex: 1;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.theme-preview-card {
    flex: 1;
    border-radius: 4px;
}

.theme-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--foreground);
}

/* Integration Items */
.integration-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
}

.integration-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.integration-info {
    flex: 1;
    min-width: 0;
}

.integration-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.125rem;
}

.integration-info p {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    margin: 0;
}

/* API Key Row */
.api-key-row {
    display: flex;
    gap: 0.5rem;
}

.api-key-row .form-input {
    flex: 1;
}

/* Settings Nav Labels */
.settings-nav-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--muted-foreground);
    letter-spacing: 0.05em;
    padding: 1rem 0.75rem 0.5rem;
    display: block;
}

/* Verification Grid */
.verification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.verification-card {
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background: var(--background);
    opacity: 0.6;
    transition: all 0.2s ease;
}

.verification-card.enabled {
    opacity: 1;
    border-color: #000;
}

.verification-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.verification-icon {
    font-size: 1.5rem;
}

.verification-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.verification-card p {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin: 0;
}

.verification-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.verification-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0.25rem;
    font-weight: 500;
}

/* Role Badges */
.role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.role-owner {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #000;
}

.role-admin {
    background: #000;
    color: #fff;
}

.role-manager {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
}

.role-employee {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

/* Weekday Selector */
.weekday-selector {
    display: flex;
    gap: 0.5rem;
}

.weekday-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--background);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.weekday-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Plan/Subscription Styles */
.plan-current {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.05));
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.plan-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #000;
    color: #fff;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--muted-foreground);
}

.plan-current p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.plan-usage {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.plan-usage-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
}

.plan-usage-item>span:first-child {
    width: 80px;
    color: var(--muted-foreground);
}

.plan-usage-bar {
    flex: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.plan-usage-fill {
    height: 100%;
    background: #000;
    border-radius: 3px;
}

/* Payment Card */
.payment-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
}

.payment-card-icon {
    font-size: 1.5rem;
}

.payment-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.payment-card-exp {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* Form Hint */
.form-hint {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0.375rem;
}

/* Input with Suffix */
.input-with-suffix {
    display: flex;
    align-items: center;
}

.input-with-suffix .form-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-suffix {
    padding: 0.625rem 0.875rem;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    border-left: none;
    border-radius: 0 0.5rem 0.5rem 0;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Quick Actions Row */
.quick-actions-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #000;
}

.quick-action-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-action-icon.qr-icon {
    background: linear-gradient(135deg, #000, #333);
    color: #fff;
}

.quick-action-icon.reports-icon {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: #fff;
}

.quick-action-icon.team-icon {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: #fff;
}

.quick-action-icon.tasks-icon {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: #fff;
}

.quick-action-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.quick-action-info p {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin: 0;
}

/* View Toggle */
.view-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.view-toggle-btn {
    padding: 0.5rem;
    border: none;
    background: transparent;
    border-radius: 0.375rem;
    cursor: pointer;
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.view-toggle-btn.active {
    background: #000;
    color: #fff;
}

/* Kanban Board */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    min-height: 500px;
}

.kanban-column {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0.75rem;
    padding: 1rem;
}

.kanban-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.kanban-column-title {
    font-weight: 600;
    font-size: 0.875rem;
}

.kanban-column-count {
    background: rgba(0, 0, 0, 0.08);
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.kanban-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kanban-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.625rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kanban-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.kanban-card.completed {
    opacity: 0.6;
}

.kanban-card h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.kanban-card p {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.kanban-card-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.kanban-card-progress .progress-bar-bg {
    flex: 1;
    height: 4px;
}

.kanban-card-progress span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted-foreground);
}

.kanban-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-due {
    font-size: 0.7rem;
    color: var(--muted-foreground);
}

/* File Upload Zone */
.file-upload-zone {
    border: 2px dashed var(--border);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.file-upload-zone:hover {
    border-color: #000;
    background: rgba(0, 0, 0, 0.02);
}

.file-upload-zone svg {
    color: var(--muted-foreground);
    margin-bottom: 0.75rem;
}

.file-upload-zone p {
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0 0 0.25rem 0;
}

.file-upload-zone span {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.file-input-hidden {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .quick-actions-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .kanban-board {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .quick-actions-row {
        grid-template-columns: 1fr;
    }
}

/* ── Employee Directory ── */

.directory-filters {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.directory-filter-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--card);
    color: var(--foreground);
    font-size: 0.85rem;
    cursor: pointer;
    min-width: 160px;
    appearance: auto;
}

.directory-filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px oklch(0.15 0.01 250 / 0.1);
}

.directory-clear-filters {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.directory-clear-filters:hover {
    background: oklch(0.95 0.005 250);
    color: var(--foreground);
}

.directory-card {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.directory-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px oklch(0 0 0 / 0.08);
}

.directory-avatar-img {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    object-fit: cover;
}

.directory-job-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
}

.directory-emp-code {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: monospace;
}

.directory-card-selected {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
    box-shadow: 0 8px 24px oklch(0 0 0 / 0.1);
}

/* ── Detail Panel (popup card) ── */

.directory-detail-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 900;
    animation: fadeIn 0.2s ease;
}

.directory-detail-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    max-width: 90vw;
    max-height: 85vh;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1.25rem;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.08),
        0 24px 48px rgba(0, 0, 0, 0.12);
    z-index: 950;
    display: flex;
    flex-direction: column;
    animation: detailPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow-y: auto;
}

@keyframes detailPopIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.85);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.directory-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.directory-detail-header h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.directory-detail-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    border-radius: 0.5rem;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.15s ease;
}

.directory-detail-close:hover {
    background: var(--secondary);
    color: var(--foreground);
}

.directory-detail-body {
    padding: 1.5rem;
    flex: 1;
}

.directory-detail-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.directory-detail-avatar-img {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.directory-detail-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
    flex-shrink: 0;
    color: white;
}

.directory-detail-identity h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.directory-detail-jobtitle {
    font-size: 0.85rem;
    color: var(--muted-foreground);
    margin: 0 0 0.5rem 0;
}

.directory-detail-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.directory-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}

.directory-detail-row:last-child {
    border-bottom: none;
}

.directory-detail-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--muted-foreground);
    font-weight: 500;
    min-width: 130px;
}

.directory-detail-value {
    font-size: 0.85rem;
    color: var(--foreground);
    text-align: right;
    word-break: break-word;
}

@media (max-width: 640px) {
    .directory-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .directory-filter-select {
        min-width: unset;
        width: 100%;
    }

    .directory-detail-panel {
        width: 100vw;
        max-width: 100vw;
    }

    .directory-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .directory-detail-value {
        text-align: left;
    }
}

/* =====================================================
   PREMIUM MODAL REDESIGN
   ===================================================== */

/* Stronger, more dramatic overlay */
.modal-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Upgraded modal card */
.modal-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1.5rem;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.03),
        0 8px 24px -4px rgba(0, 0, 0, 0.08),
        0 32px 64px -16px rgba(0, 0, 0, 0.18),
        0 64px 120px -32px rgba(0, 0, 0, 0.12);
}

/* Upgraded animation */
@keyframes modal-slide-up {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal header with icon support */
.modal-header {
    padding: 1.5rem 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.modal-header-left {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    flex: 1;
    min-width: 0;
}

.modal-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--foreground);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--foreground);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.modal-subtitle {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    font-weight: 400;
    margin-top: 0.2rem;
    line-height: 1.4;
}

.modal-close {
    width: 2rem;
    height: 2rem;
    border-radius: 0.625rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.02);
    color: var(--muted-foreground);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--foreground);
}

/* Modal error banner */
.modal-error-banner {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    background: rgba(220, 38, 38, 0.06);
    border: 1px solid rgba(220, 38, 38, 0.12);
    border-radius: 0.75rem;
    color: #dc2626;
    font-size: 0.825rem;
    font-weight: 500;
}

/* Modal input with icon */
.modal-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.modal-input-icon {
    position: absolute;
    left: 0.875rem;
    color: var(--muted-foreground);
    pointer-events: none;
    z-index: 1;
    flex-shrink: 0;
}

.modal-form-input {
    padding-left: 2.625rem !important;
}

/* Modal footer */
.modal-footer {
    padding: 1.125rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(0, 0, 0, 0.01);
    border-radius: 0 0 1.5rem 1.5rem;
}

/* Bulk modal wider card */
.bulk-modal-card {
    max-width: 42rem;
}

/* =====================================================
   PREMIUM CUSTOM SELECT DROPDOWN
   ===================================================== */

.custom-select-wrapper {
    position: relative;
    z-index: 50;
}

.custom-select-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 0.875rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    color: var(--foreground);
    font-size: 0.875rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.custom-select-trigger:hover {
    border-color: rgba(0, 0, 0, 0.15);
    background: #ffffff;
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: #000000;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.custom-select-value {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex: 1;
}

.custom-select-chevron {
    color: var(--muted-foreground);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.custom-select-chevron.rotated {
    transform: rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 0.375rem);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    padding: 0.375rem;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.03),
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 16px 40px rgba(0, 0, 0, 0.12),
        0 32px 60px rgba(0, 0, 0, 0.08);
    z-index: 200;
    animation: dropdownFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top center;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.custom-select-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: none;
    background: transparent;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: background 0.15s ease;
    font-family: inherit;
    text-align: left;
}

.custom-select-option:hover {
    background: rgba(0, 0, 0, 0.04);
}

.custom-select-option.selected {
    background: rgba(0, 0, 0, 0.04);
}

.custom-select-option-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.custom-select-option-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    line-height: 1.2;
}

.custom-select-option-desc {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    font-weight: 400;
}

.custom-select-option svg {
    color: var(--foreground);
    flex-shrink: 0;
    opacity: 0.7;
}

/* Invisible backdrop to close dropdown when clicking outside */
.custom-select-backdrop {
    position: fixed;
    inset: 0;
    z-index: 49;
}

/* Role color dots */
.role-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

.role-dot-employee {
    background: #3b82f6;
}

.role-dot-manager {
    background: #8b5cf6;
}

.role-dot-admin {
    background: #f59e0b;
}

.role-dot-owner {
    background: #ef4444;
}

/* =====================================================
   BULK INVITE ROW STYLES
   ===================================================== */

.bulk-rows-container {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    max-height: 360px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

.bulk-rows-container::-webkit-scrollbar {
    width: 4px;
}

.bulk-rows-container::-webkit-scrollbar-track {
    background: transparent;
}

.bulk-rows-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

.bulk-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: border-color 0.15s ease;
}

.bulk-row:hover {
    border-color: rgba(0, 0, 0, 0.1);
}

.bulk-row-sent {
    background: rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.15);
}

.bulk-row-failed {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.15);
}

.bulk-row-status {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
}

.bulk-status-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bulk-status-ok {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.bulk-status-err {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.bulk-row-num {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted-foreground);
    width: 20px;
    text-align: center;
}

.bulk-row-email {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--foreground);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.bulk-email-input {
    flex: 1;
    min-width: 0;
    padding: 0.35rem 0.625rem !important;
    font-size: 0.85rem !important;
    border-radius: 0.5rem !important;
    border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
    background: #ffffff !important;
    font-family: inherit;
    color: var(--foreground);
    outline: none;
    transition: border-color 0.2s ease;
}

.bulk-email-input:focus {
    border-color: #000000 !important;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04) !important;
}

/* Compact role select inside bulk rows */
.bulk-role-select {
    position: relative;
    flex-shrink: 0;
    z-index: 60;
}

.bulk-role-trigger {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3rem 0.5rem;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    background: #ffffff;
    font-size: 0.78rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--foreground);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.bulk-role-trigger:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

.bulk-role-select.open .bulk-role-trigger {
    border-color: #000000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04);
}

.bulk-role-chevron {
    color: var(--muted-foreground);
    transition: transform 0.15s ease;
}

.bulk-role-chevron.rotated {
    transform: rotate(180deg);
}

.bulk-role-dropdown {
    position: absolute;
    top: calc(100% + 0.25rem);
    right: 0;
    min-width: 140px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    padding: 0.25rem;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 16px 32px rgba(0, 0, 0, 0.1);
    z-index: 200;
    animation: dropdownFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top right;
}

.bulk-role-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.45rem 0.625rem;
    border: none;
    background: transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--foreground);
    transition: background 0.12s ease;
    text-align: left;
}

.bulk-role-option:hover {
    background: rgba(0, 0, 0, 0.04);
}

.bulk-role-option.selected {
    background: rgba(0, 0, 0, 0.04);
}

.bulk-role-option span:last-of-type {
    flex: 1;
}

.bulk-role-option svg {
    margin-left: auto;
    opacity: 0.6;
}

.bulk-role-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0.375rem;
    color: var(--muted-foreground);
    flex-shrink: 0;
}

.bulk-remove-btn {
    width: 24px;
    height: 24px;
    border-radius: 0.375rem;
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.bulk-remove-btn:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}

.bulk-row-error {
    font-size: 0.7rem;
    color: #dc2626;
    flex-shrink: 0;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.bulk-textarea {
    min-height: 140px;
    padding: 0.875rem 1rem !important;
    font-size: 0.875rem;
    line-height: 1.6;
}

.bulk-textarea-sm {
    min-height: 70px;
    padding: 0.75rem 0.875rem !important;
    font-size: 0.85rem;
}

.bulk-hint {
    font-size: 0.72rem;
    color: var(--muted-foreground);
    font-weight: 400;
}

.bulk-add-more-area {
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bulk-add-more-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* =====================================================
   SETTINGS LAYOUT FIX (full-height two-column layout)
   ===================================================== */
/* The settings-layout uses margin: -2rem to negate main-content padding.
   No global overrides needed - self-contained. */
/* Which zone the page's times are in (the workspace's, whatever the browser's). Small and quiet. */
.ws-zone-label {
    margin: -16px 0 12px;
    text-align: right;
    font-size: 0.72rem;
    color: var(--muted-foreground);
    letter-spacing: 0.01em;
}

/* ── Two-step verification (sign-in step, enrolment, security settings) ── */
.tfa-sub { max-width: 34ch; }
.tfa-code-input { letter-spacing: 0.25em; font-variant-numeric: tabular-nums; }
.tfa-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin-top: 1rem; }
.tfa-link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
/* Link-styled buttons ("Email me a code"): the brand colour, a size below the text around them. */
.tfa-link { color: var(--brand); font-size: 13px; text-decoration: none; }
.tfa-link:hover { color: var(--brand-hover); text-decoration: underline; }
.tfa-recovery-used { border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.tfa-recovery-count { font-weight: 600; color: var(--foreground); }
.tfa-warning { border-color: #f59e0b; background: rgba(245, 158, 11, 0.08); }
.tfa-setup { display: flex; flex-direction: column; gap: 0.75rem; }
.tfa-step { font-size: 0.9rem; color: var(--muted-foreground); margin: 0; }
.tfa-qr { width: 180px; min-height: 180px; }
.tfa-secret code { font-family: Consolas, Menlo, monospace; letter-spacing: 0.08em; color: var(--foreground); user-select: all; }
.tfa-error { margin: 0; }
.tfa-codes-intro { font-size: 0.9rem; color: var(--muted-foreground); }
.tfa-codes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1rem; padding: 1rem; margin: 0.75rem 0;
    border: 1px dashed var(--border); border-radius: 10px; list-style: none; }
.tfa-code { font-family: Consolas, Menlo, monospace; font-size: 0.95rem; color: var(--foreground); }
.tfa-codes-actions, .tfa-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.tfa-status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.tfa-status { font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 999px; }
.tfa-status--on { background: rgba(16, 185, 129, 0.12); color: #047857; }
.tfa-status--off { background: rgba(107, 114, 128, 0.12); color: var(--muted-foreground); }
.tfa-method, .tfa-required { font-size: 0.85rem; color: var(--muted-foreground); }
.tfa-recovery-left { font-size: 0.9rem; border-radius: 8px; padding: 0.25rem 0; }
.tfa-proof { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); max-width: 26rem; }
.tfa-browsers { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem;
    margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.9rem; }
.tfa-stepup { max-width: 26rem; }
.tfa-stepup .modal-body { display: flex; flex-direction: column; gap: 0.5rem; }
.tfa-reset-signin { display: inline-flex; justify-content: center; text-decoration: none; }
.et-2fa-badge { margin-left: 0.4rem; font-size: 0.68rem; font-weight: 600; padding: 0.1rem 0.4rem; border-radius: 999px; }
.et-2fa-badge.on { background: rgba(16, 185, 129, 0.12); color: #047857; }
.et-2fa-badge.off { background: rgba(107, 114, 128, 0.12); color: var(--muted-foreground); }
@media (max-width: 480px) { .tfa-codes-grid { grid-template-columns: 1fr; } }

/* Language choice (profile, workspace settings): one button per language, named in itself. */
.lang-choice {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

/* ===== Work from home override editor (department modal, person panel) ===== */
.wfh-editor {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.wfh-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.wfh-choice,
.wfh-days {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.wfh-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.wfh-number {
    max-width: 6rem;
}

