/* =========================================================
   KindTrack Design System — Production Edition
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap');

:root {
    /* Brand Colors */
    --primary: #22C55E;
    --primary-dark: #16a34a;
    --primary-soft: #dcfce7;
    --secondary: #3B82F6;
    --secondary-soft: #dbeafe;
    --accent: #F59E0B;

    /* Neutrals */
    --bg: #F8FAFC;
    --bg-2: #F1F5F9;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --border-light: #F1F5F9;

    /* Text */
    --text: #0F172A;
    --text-muted: #64748B;
    --text-light: #94A3B8;

    /* Sidebar */
    --sidebar-bg: #0F172A;
    --sidebar-text: #94A3B8;
    --sidebar-active: rgba(34, 197, 94, 0.12);
    --sidebar-hover: rgba(255, 255, 255, 0.05);

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --shadow-premium: 0 30px 60px -12px rgba(50, 50, 93, 0.12), 0 18px 36px -18px rgba(0, 0, 0, 0.12);

    /* Radius */
    --r-sm: 0.5rem;
    --r-md: 0.75rem;
    --r-lg: 1rem;
    --r-xl: 1.5rem;
    --r-2xl: 2rem;
    --r-full: 9999px;

    /* Typography */
    --font-body: 'Mulish', -apple-system, sans-serif;
    --font-heading: 'Mulish', sans-serif;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Reset ──────────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s var(--ease);
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

textarea {
    resize: vertical;
}

/* ─── Utilities ──────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

.gap-4 {
    gap: 2rem;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.font-semibold {
    font-weight: 600;
}

.w-full {
    width: 100%;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.py-4 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-8 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--r-full);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    transition: all 0.2s var(--ease);
    white-space: nowrap;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--primary-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--secondary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-outline {
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
}

.btn-ghost:hover {
    background: var(--bg-2);
    color: var(--text);
}

.btn-danger {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
}

.btn-danger:hover {
    background: #ef4444;
    color: white;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* ─── Badges ─────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--r-full);
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.badge-green {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.badge-blue {
    background: var(--secondary-soft);
    color: #1d4ed8;
}

.badge-yellow {
    background: #fef3c7;
    color: #92400e;
}

.badge-pink {
    background: #fce7f3;
    color: #be185d;
}

.badge-purple {
    background: #ede9fe;
    color: #6d28d9;
}

/* ─── Cards ──────────────────────────────────────────────── */
.card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-md);
}

/* ─── Forms ──────────────────────────────────────────────── */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    font-family: var(--font-body);
    font-size: 0.925rem;
    color: var(--text);
    background: var(--white);
    transition: all 0.2s var(--ease);
    -webkit-appearance: none;
    appearance: none;
}

.form-control::placeholder {
    color: var(--text-light);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* Validation Styles */
.form-control.is-invalid {
    border-color: #ef4444 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ef4444' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: #ef4444;
    font-weight: 500;
}

.was-validated .form-control:invalid~.invalid-feedback,
.was-validated .form-control.is-invalid~.invalid-feedback {
    display: block;
}

/* ─── Toggle Switch ────────────────────────────────────────── */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--primary);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* ─── Animations ─────────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-16px) rotate(1.5deg);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 var(--primary-glow);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px transparent;
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 transparent;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-fade-up {
    animation: fadeUp 0.6s var(--ease) both;
}

.stagger-1 {
    animation-delay: 0.08s;
}

.stagger-2 {
    animation-delay: 0.16s;
}

.stagger-3 {
    animation-delay: 0.24s;
}

.stagger-4 {
    animation-delay: 0.32s;
}

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.35s var(--ease);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.04em;
}

.logo .logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: -0.01em;
}

.nav-link:hover {
    color: var(--text);
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    padding-top: 6rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(34, 197, 94, 0.07) 0%, transparent 65%),
        radial-gradient(ellipse 60% 50% at 90% 10%, rgba(59, 130, 246, 0.07) 0%, transparent 65%),
        var(--white);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--primary-soft);
    color: var(--primary-dark);
    border-radius: var(--r-full);
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.0;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #059669 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 2.5rem;
    font-weight: 450;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.avatar-stack {
    display: flex;
}

.avatar-stack img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -8px;
    object-fit: cover;
}

.avatar-stack img:first-child {
    margin-left: 0;
}

.social-proof-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.social-proof-text strong {
    color: var(--text);
}

/* Hero visual */
.hero-visual {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-app-preview {
    position: relative;
    width: 340px;
    animation: float 7s ease-in-out infinite;
}

.hero-app-preview img {
    width: 100%;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.14));
    border-radius: var(--r-xl);
}

.hero-badge {
    position: absolute;
    background: white;
    border-radius: var(--r-lg);
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid var(--border-light);
}

.hero-badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.hero-badge-1 {
    top: 12%;
    left: -20%;
}

.hero-badge-2 {
    bottom: 18%;
    right: -20%;
}

/* Floating blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* ─── Dashboard Preview (Landing) ────────────────────────── */
.app-preview-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 5rem auto 0;
    padding: 0 1.5rem;
}

.app-preview-frame {
    background: white;
    border-radius: var(--r-2xl);
    box-shadow: var(--shadow-premium), 0 0 0 1px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transform: perspective(1200px) rotateX(4deg);
    transition: transform 0.5s var(--ease);
}

.app-preview-frame:hover {
    transform: perspective(1200px) rotateX(0deg) translateY(-8px);
}

.frame-bar {
    height: 40px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.4rem;
    border-bottom: 1px solid var(--border-light);
}

.frame-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.frame-dot.red {
    background: #ff5f56;
}

.frame-dot.yellow {
    background: #ffbd2e;
}

.frame-dot.green {
    background: #27c93f;
}

.frame-url {
    margin: 0 auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    padding: 0.2rem 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    min-width: 200px;
    text-align: center;
}

.frame-body {
    height: 480px;
    background: var(--bg);
    display: grid;
    grid-template-columns: 200px 1fr;
    overflow: hidden;
}

.frame-sidebar {
    background: var(--sidebar-bg);
    padding: 1.5rem 1rem;
}

.frame-sidebar-logo {
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 2rem;
}

.frame-nav-item {
    height: 32px;
    border-radius: var(--r-md);
    margin-bottom: 0.3rem;
    background: rgba(255, 255, 255, 0.06);
}

.frame-nav-item.active {
    background: rgba(34, 197, 94, 0.15);
}

.frame-main {
    padding: 1.5rem;
}

.frame-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.frame-stat {
    background: white;
    border-radius: var(--r-md);
    height: 70px;
    padding: 0.75rem;
}

.frame-chart {
    background: white;
    border-radius: var(--r-lg);
    height: 200px;
    padding: 1rem;
}

.frame-chart-line {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(34, 197, 94, 0.12), transparent);
    border-radius: var(--r-md);
    position: relative;
    overflow: hidden;
}

/* ─── Sections ───────────────────────────────────────────── */
.section {
    padding: 7rem 0;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-soft);
    color: var(--primary-dark);
    padding: 0.35rem 0.9rem;
    border-radius: var(--r-full);
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.7;
}

/* ─── Feature Grid ───────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
    border-radius: var(--r-xl);
    background: var(--white);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
    background: radial-gradient(ellipse at top left, var(--primary-soft), transparent 60%);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    position: relative;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ─── Stats Banner ───────────────────────────────────────── */
.stats-banner {
    background: var(--text);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.stats-banner .blob {
    opacity: 0.15;
}

.banner-number {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
    background: linear-gradient(90deg, var(--primary), #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-desc {
    font-size: 1.1rem;
    opacity: 0.6;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
    background: var(--white);
    border-top: 1px solid var(--border-light);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-light);
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 1rem;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.footer-col li {
    margin-bottom: 0.65rem;
}

.footer-col a {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.footer-socials a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ─── Auth ───────────────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-left {
    background: linear-gradient(135deg, var(--text) 0%, #1e293b 100%);
    display: flex;
    flex-direction: column;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.auth-left-content {
    margin-top: auto;
    margin-bottom: auto;
    position: relative;
    z-index: 1;
}

.auth-left h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.auth-left p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    font-size: 1rem;
}

.auth-left .logo {
    color: white;
}

.auth-left .logo .logo-icon {
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-testimonial {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--r-lg);
    padding: 1.5rem;
    margin-top: 3rem;
}

.auth-testimonial p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-bottom: 1rem;
}

.auth-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-testimonial-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
}

.auth-testimonial span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

.auth-right {
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.auth-box {
    width: 100%;
    max-width: 400px;
}

.auth-box h3 {
    font-size: 1.75rem;
    margin-bottom: 0.4rem;
}

.auth-box .auth-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--primary);
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* ─── Dashboard Layout ───────────────────────────────────── */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 240px;
    min-height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
    transition: transform 0.3s var(--ease);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.03em;
    padding: 0.25rem 0.5rem;
    margin-bottom: 2rem;
}

.sidebar-logo .logo-icon {
    flex-shrink: 0;
}

.sidebar-section-label {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 600;
    padding: 0 0.5rem;
    margin: 1rem 0 0.4rem;
}

.sidebar-nav {
    flex: 1;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--r-md);
    color: var(--sidebar-text);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 0.15rem;
    transition: all 0.15s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-body);
}

.sidebar-item i {
    width: 16px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

.sidebar-item:hover {
    background: var(--sidebar-hover);
    color: white;
}

.sidebar-item:hover i {
    opacity: 1;
}

.sidebar-item.active {
    background: var(--sidebar-active);
    color: var(--primary);
}

.sidebar-item.active i {
    opacity: 1;
    color: var(--primary);
}

.sidebar-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 1rem;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.sidebar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.sidebar-user-info {
    overflow: hidden;
}

.sidebar-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
}

/* Main App Area */
.app-main {
    flex: 1;
    margin-left: 240px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.app-header h1 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.app-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.app-body {
    padding: 1.5rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
    /* Adjust based on header height */
    overflow: hidden;
}

@media (max-width: 1200px) {
    .app-body {
        height: auto;
        overflow: visible;
    }
}

/* ─── Dashboard Components ───────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--r-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: all 0.2s;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text);
    letter-spacing: -0.04em;
    line-height: 1;
    margin: 0.25rem 0;
}

.stat-trend {
    font-size: 0.78rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
}

.trend-up {
    color: var(--primary);
}

.trend-down {
    color: #ef4444;
}

/* Dashbord Grid Refined for No-Scroll */
.content-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 1.5rem;
    flex: 1;
    min-height: 0;
    /* Important for flex-child scrolling */
}

@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
}

.dashboard-left-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 0;
}

.dashboard-right-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow-y: auto;
    padding-right: 4px;
}

.analytics-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.25rem;
    flex-shrink: 0;
}

.content-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--r-xl);
    padding: 1.25rem;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.card-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* Activity Items */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    flex: 1;
}

.activity-list::-webkit-scrollbar {
    width: 4px;
}

.activity-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border-radius: var(--r-lg);
    background: var(--bg);
    border: 1px solid var(--border-light);
    transition: all 0.2s;
}

.activity-item:hover {
    background: var(--bg-2);
}

.activity-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.activity-details {
    flex: 1;
    min-width: 0;
}

.activity-name {
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

/* Futuristic AI Card */
.ai-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: white;
    border: 1px solid rgba(99, 102, 241, 0.2) !important;
    box-shadow: 0 10px 30px -10px rgba(79, 70, 229, 0.4);
    position: relative;
    overflow: hidden;
}

.ai-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    animation: pulseGlow 8s infinite alternate;
}

@keyframes pulseGlow {
    from {
        opacity: 0.3;
        transform: scale(1);
    }

    to {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.ai-card .card-title {
    color: #e0e7ff;
    font-family: 'Mulish', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
}

.ai-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.ai-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #cbd5e1;
    margin: 1.25rem 0;
    font-weight: 500;
    min-height: 80px;
    position: relative;
    z-index: 1;
}

.ai-text-loading {
    color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    -webkit-background-clip: text;
    background-clip: text;
}

.ai-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a5b4fc;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.ai-refresh-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    color: white;
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

/* Daily Idea */
.daily-idea-card {
    background: linear-gradient(135deg, var(--primary-soft), #eff6ff);
    border: 1px dashed var(--primary);
    border-radius: var(--r-lg);
    padding: 1.25rem;
    margin-top: 1rem;
}

.daily-idea-card p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.6;
}

/* Mayar Card */
.mayar-card {
    background: linear-gradient(135deg, var(--primary-soft) 0%, #ffffff 100%);
    border: 1px solid var(--primary-soft);
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--ease);
}

.mayar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.1);
    border-color: var(--primary);
}

.mayar-bg-icon {
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 5rem;
    color: rgba(34, 197, 94, 0.08);
    transform: rotate(-15deg);
    z-index: 0;
}

/* Heatmap */
.heatmap {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.heatmap-cell {
    width: 11px;
    height: 11px;
    border-radius: 2px;
    background: #e2e8f0;
    cursor: pointer;
    transition: transform 0.1s;
}

.heatmap-cell:hover {
    transform: scale(1.3);
}

.heatmap-cell.level-1 {
    background: #86efac;
}

.heatmap-cell.level-2 {
    background: #4ade80;
}

.heatmap-cell.level-3 {
    background: #22c55e;
}

.heatmap-cell.level-4 {
    background: #15803d;
}

/* Activity Grid Page */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.activity-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--r-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-xs);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.activity-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.activity-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.activity-card-body {
    flex: 1;
}

.activity-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.activity-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.activity-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.delete-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fef2f2;
    color: #ef4444;
    font-size: 0.8rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.delete-btn:hover {
    background: #ef4444;
    color: white;
}

/* Add Kindness Form */
.add-kindness-page .form-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--r-2xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    max-width: 640px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
}

.category-option {
    display: none;
}

.category-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.875rem 0.5rem;
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.category-label .cat-emoji {
    font-size: 1.5rem;
}

.category-label .cat-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.category-option:checked+.category-label {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.category-option:checked+.category-label .cat-name {
    color: var(--primary-dark);
}

.category-label:hover {
    border-color: var(--primary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.empty-state h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.empty-state p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--r-md);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Page header */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Filter bar */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.5rem 0.875rem;
    border: 1.5px solid var(--border);
    border-radius: var(--r-full);
    font-size: 0.85rem;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ─── Toast ──────────────────────────────────────────────── */
#kt-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    border-radius: var(--r-lg);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
    font-weight: 500;
    box-shadow: var(--shadow-xl);
    max-width: 380px;
    animation: slideIn 0.3s var(--ease-spring);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ─── Mobile Hamburger ───────────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
    display: block;
}

/* ─── Mobile Bottom Nav ──────────────────────────────────── */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-light);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.mobile-nav-list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 700;
    gap: 0.25rem;
    transition: all 0.2s;
    width: 20%;
}

.mobile-nav-item i {
    font-size: 1.25rem;
}

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item.active i {
    transform: translateY(-2px);
}

.mobile-fab {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-15px);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.mobile-fab i {
    font-size: 1.25rem !important;
    transform: none !important;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .auth-left {
        display: none;
    }

    .auth-page {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none !important;
    }

    .app-main {
        margin-left: 0;
        padding-bottom: 80px;
    }

    .hamburger {
        display: none !important;
    }

    .app-header .btn-primary {
        display: none !important;
    }

    .mobile-only-logout {
        display: block !important;
    }

    .mobile-nav {
        display: block;
    }

    .hero {
        padding-top: 5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-visual {
        display: none;
    }

    .hero-badge {
        display: none;
    }

    .section {
        padding: 4rem 0;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .app-body {
        padding: 1.25rem;
    }

    .app-header {
        padding: 1rem 1.25rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .frame-sidebar {
        display: none;
    }

    .frame-body {
        grid-template-columns: 1fr;
    }

    .frame-stats {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-links {
        display: none;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-right {
        padding: 1.5rem;
    }

    .add-kindness-page .form-card {
        padding: 1.5rem;
    }
}

/* Tailwind-style Alerts */
.alert {
    padding: 0.875rem 1rem;
    border-radius: var(--r-md);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid transparent;
    animation: fadeUp 0.3s ease;
}

.alert-error {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.alert-success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
}

/* Custom Modal (Tailwind/Modern style) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 420px;
    border-radius: var(--r-xl);
    padding: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.95);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.25rem;
}

.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    background: #fef2f2;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.modal-icon.icon-warning {
    background: #fffbeb;
    color: #f59e0b;
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
}

.modal-body {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
}

.modal-footer .btn {
    flex: 1;
    justify-content: center;
}

/* ─── Add Kindness Grid Layout ───────────────────────────── */
.add-kindness-container {
    max-width: 1100px;
    margin: 0 auto;
}

.add-kindness-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 992px) {
    .add-kindness-grid {
        grid-template-columns: 1fr 1.25fr;
        gap: 4rem;
    }

    .grid-left {
        position: sticky;
        top: 2rem;
    }

    .left-panel-content {
        padding-right: 1rem;
    }
}

.left-panel-content h2 {
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.left-panel-content p.subtitle {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.right-panel .form-card {
    margin-top: 0;
    max-width: 100%;
}

.photo-upload-container {
    transition: all 0.3s var(--ease);
    background: var(--bg);
}

.photo-upload-container:hover {
    border-color: var(--primary) !important;
    background: var(--primary-soft);
}