/* ===== Calendar Caddie — Modern Redesign ===== */

:root {
    --primary: #4a9ede;
    --primary-dark: #2b7cc2;
    --primary-light: #e8f4fd;
    --accent: #6ec89b;
    --accent-dark: #4aab7a;
    --accent-light: #e6f7ee;
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg: #ffffff;
    --bg-alt: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --error: #ef4444;
    --error-light: #fef2f2;
    --success: #22c55e;
    --success-light: #f0fdf4;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
    --gradient-primary: linear-gradient(135deg, #4a9ede 0%, #6ec89b 100%);
    --gradient-hero: linear-gradient(135deg, #e8f4fd 0%, #e6f7ee 50%, #f1f5f9 100%);
    --gradient-card: linear-gradient(135deg, rgba(74,158,222,0.04) 0%, rgba(110,200,155,0.04) 100%);
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* ===== Keyframe Animations ===== */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll-triggered animation classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* ===== Layout ===== */

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== Navigation ===== */

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 100;
    animation: fadeIn 0.6s ease-out;
}

.nav-logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.02);
    color: var(--primary);
}

.nav-logo .logo-icon {
    display: inline-flex;
    align-items: center;
}

.nav-logo span {
    color: var(--text);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--text-light);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .btn::after {
    display: none;
}

.nav-links .btn::before {
    display: none;
}

.nav-links .btn {
    padding: 7px 16px;
    line-height: 1;
}

/* ===== Buttons ===== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,0.15), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    background-size: 200% 200%;
    color: #fff;
    box-shadow: 0 4px 14px rgba(74, 158, 222, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 158, 222, 0.4);
    color: #fff;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(74, 158, 222, 0.3);
}

.btn-secondary {
    background: var(--bg);
    color: var(--primary);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--primary);
}

.btn-danger {
    background: var(--error);
    color: #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-sm {
    padding: 7px 16px;
    font-size: 13px;
    border-radius: 8px;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

.btn:disabled {
    opacity: 0.85;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== Forms ===== */

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.form-group label .label-icon {
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    background: var(--bg);
    transition: all 0.25s ease;
    color: var(--text);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(74, 158, 222, 0.1);
    background: #fff;
}

/* Password toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--primary);
}

.form-error {
    color: var(--error);
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.form-hint {
    color: var(--text-light);
    font-size: 13px;
    margin-top: 6px;
}

/* ===== Cards ===== */

.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

/* ===== Auth Layout ===== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
}

.auth-card .card {
    padding: 40px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header .nav-logo {
    justify-content: center;
    margin-bottom: 8px;
}

.auth-header .auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--gradient-primary);
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(74, 158, 222, 0.3);
}

.auth-header h1 {
    font-size: 24px;
    margin-top: 12px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.auth-header p {
    color: var(--text-light);
    font-size: 15px;
    margin-top: 6px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-light);
}

.auth-footer a {
    font-weight: 600;
}

/* ===== Floating Blurred Blobs ===== */

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

.blob-blue {
    background: rgba(74, 158, 222, 0.4);
}

.blob-green {
    background: rgba(110, 200, 155, 0.4);
}

.blob-purple {
    background: rgba(167, 139, 218, 0.35);
}

.blob-teal {
    background: rgba(74, 200, 200, 0.35);
}

/* ===== Hero Section ===== */

.hero-wrapper {
    background: transparent;
    position: relative;
    overflow: visible;
}

.hero {
    padding: 100px 0 110px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    animation: float 4s ease-in-out infinite;
}

.hero-icon svg {
    filter: drop-shadow(0 8px 24px rgba(74, 158, 222, 0.25));
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero h1 .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 19px;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.hero-actions .btn {
    padding: 14px 32px;
    font-size: 16px;
}

/* ===== Sections ===== */

.section {
    padding: 80px 0;
    position: relative;
    overflow: visible;
    background: transparent;
}

.section-alt {
    background: transparent;
    position: relative;
}

.section h2 {
    font-size: 34px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section .section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 17px;
    margin-bottom: 56px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.step {
    text-align: center;
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(74, 158, 222, 0.2);
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 18px;
    color: #fff;
}

.step:nth-child(1) .step-icon {
    background: linear-gradient(135deg, #4a9ede, #6db8e8);
    box-shadow: 0 4px 12px rgba(74, 158, 222, 0.3);
}

.step:nth-child(2) .step-icon {
    background: linear-gradient(135deg, #6ec89b, #8dd6b2);
    box-shadow: 0 4px 12px rgba(110, 200, 155, 0.3);
}

.step:nth-child(3) .step-icon {
    background: linear-gradient(135deg, #a78bda, #bea3e8);
    box-shadow: 0 4px 12px rgba(167, 139, 218, 0.3);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
    box-shadow: 0 3px 10px rgba(74, 158, 222, 0.25);
}

.step h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.step p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== Example / Demo Section ===== */

.example-box {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    font-size: 15px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.example-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.example-box .example-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.example-box .example-step:last-child {
    margin-bottom: 0;
}

.example-box .example-step-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-top: 1px;
}

.example-box code {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

.example-box p {
    margin-bottom: 16px;
    color: var(--text-light);
    line-height: 1.7;
}

.example-box p:last-child {
    margin-bottom: 0;
}

/* ===== CTA Section ===== */

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

.cta-section h2 {
    margin-bottom: 12px;
}

.cta-section p {
    color: var(--text-light);
    margin-bottom: 28px;
    font-size: 17px;
}

.cta-section .btn {
    padding: 14px 36px;
    font-size: 16px;
}

/* ===== Features Grid (bonus) ===== */

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 0;
}

.feature {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    margin-bottom: 14px;
}

.feature h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.feature p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== Dashboard ===== */

.dashboard {
    display: flex;
    min-height: 100vh;
}

.dash-sidebar {
    width: 260px;
    height: 100vh;
    position: sticky;
    top: 0;
    background: var(--bg);
    border-right: 1px solid var(--border);
    padding: 24px;
    display: flex;
    flex-direction: column;
    animation: slideInLeft 0.5s ease-out;
    overflow-y: auto;
}

.dash-sidebar .nav-logo {
    margin-bottom: 36px;
}

.dash-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    transition: all 0.25s ease;
}

.dash-nav a .nav-icon {
    display: inline-flex;
    color: var(--text-muted);
    transition: color 0.25s ease;
}

.dash-nav a:hover,
.dash-nav a.active {
    background: var(--primary-light);
    color: var(--primary);
}

.dash-nav a:hover .nav-icon,
.dash-nav a.active .nav-icon {
    color: var(--primary);
}

.dash-sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.hamburger-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    color: var(--text);
    transition: all 0.2s ease;
    padding: 0;
}

.hamburger-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.mobile-menu {
    display: none;
}

.dash-main {
    flex: 1;
    padding: 36px 48px;
    background: var(--bg);
    animation: fadeIn 0.5s ease-out;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100vh;
}

.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.dash-header h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-header h1 .header-icon {
    color: var(--primary);
}

/* ===== Email List ===== */

.email-list {
    margin-top: 16px;
}

.email-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    background: var(--bg);
    transition: all 0.25s ease;
    animation: fadeInUp 0.4s ease-out;
}

.email-item:hover {
    border-color: rgba(74, 158, 222, 0.2);
    box-shadow: var(--shadow);
}

.email-item span {
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.email-item .email-icon {
    color: var(--primary);
}

.email-item-pending {
    align-items: flex-start;
    border-style: dashed;
    border-color: var(--primary);
    background: var(--primary-light);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.btn-icon:hover {
    background: var(--error-light);
    color: var(--error);
    border-color: rgba(239, 68, 68, 0.3);
}

.email-add {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.email-add input {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    transition: all 0.25s ease;
    background: var(--bg);
}

.email-add input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(74, 158, 222, 0.1);
}

/* ===== How to Use Card ===== */

.how-to-use {
    margin-top: 32px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    border: 1px solid rgba(74, 158, 222, 0.15);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.how-to-use::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.how-to-use h3 {
    font-size: 17px;
    margin-bottom: 14px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.how-to-use ol {
    padding-left: 24px;
    color: var(--text);
    font-size: 14px;
}

.how-to-use li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.how-to-use li::marker {
    color: var(--primary);
    font-weight: 700;
}

.how-to-use code {
    background: rgba(74, 158, 222, 0.12);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--primary-dark);
    font-weight: 600;
}

/* ===== Alert / Toast ===== */

.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
    animation: fadeInUp 0.3s ease-out;
    font-weight: 500;
    display: none;
}

.alert-success {
    background: var(--success-light);
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: var(--error-light);
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ===== Footer ===== */

.footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.footer .footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer .footer-icon {
    color: var(--primary);
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav {
        padding: 14px 20px;
    }

    .hero {
        padding: 60px 0 70px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .section {
        padding: 56px 0;
    }

    .section h2 {
        font-size: 26px;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    .dashboard {
        flex-direction: column;
    }

    .dash-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        padding: 14px 20px;
        overflow: visible;
    }

    .dash-sidebar .nav-logo {
        margin-bottom: 0;
        margin-right: auto;
    }

    .dash-nav,
    .dash-sidebar-footer {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    .mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        padding: 12px 20px;
        z-index: 99;
        flex-direction: column;
        gap: 4px;
    }

    .mobile-menu.open {
        display: flex;
    }

    .mobile-menu a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
        border-radius: var(--radius);
        color: var(--text-light);
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s ease;
    }

    .mobile-menu a:hover,
    .mobile-menu a.active {
        background: var(--primary-light);
        color: var(--primary);
    }

    .mobile-menu .nav-icon {
        display: inline-flex;
        color: var(--text-muted);
    }

    .mobile-menu a:hover .nav-icon,
    .mobile-menu a.active .nav-icon {
        color: var(--primary);
    }

    .dash-main {
        padding: 24px 20px;
        height: auto;
    }

    .auth-card .card {
        padding: 28px;
    }

    .example-box {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .nav-logo {
        font-size: 18px;
    }
}
