:root {
    --primary: #7c3aed;
    --primary-dark: #5b21b6;
    --secondary: #f59e0b;
    --dark: #0f172a;
    --light-bg: #f8f7ff;
    --card-radius: 16px;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: var(--light-bg);
    color: #1e1b2e;
}

/* ---------- Landing Page ---------- */
.navbar-glass {
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.85) !important;
    box-shadow: 0 2px 20px rgba(124,58,237,0.08);
}

.hero-section {
    background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 120px 0 100px;
}
.hero-section::before {
    content: "";
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    top: -200px; right: -150px;
    animation: floaty 8s ease-in-out infinite;
}
.hero-section::after {
    content: "";
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(245,158,11,0.18) 0%, transparent 70%);
    bottom: -150px; left: -100px;
    animation: floaty 10s ease-in-out infinite reverse;
}
@keyframes floaty {
    0%,100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(30px) scale(1.05); }
}

.badge-soft {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
}

.feature-card {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 28px 24px;
    height: 100%;
    border: 1px solid #eee6ff;
    transition: all 0.35s ease;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(124,58,237,0.15);
    border-color: var(--primary);
}
.feature-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg,var(--primary),var(--secondary));
    color: #fff; font-size: 24px;
    margin-bottom: 16px;
}

.panel-card {
    border-radius: var(--card-radius);
    padding: 40px 28px;
    text-align: center;
    color: #fff;
    height: 100%;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}
.panel-card:hover { transform: scale(1.03); }
.panel-admin { background: linear-gradient(135deg,#7c3aed,#4c1d95); }
.panel-reseller { background: linear-gradient(135deg,#f59e0b,#b45309); }
.panel-owner { background: linear-gradient(135deg,#0ea5e9,#0369a1); }

.btn-primary-a2z {
    background: linear-gradient(135deg,var(--primary),var(--primary-dark));
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 10px;
    transition: all 0.3s ease;
}
.btn-primary-a2z:hover { opacity: 0.9; color: #fff; transform: translateY(-2px); }

footer.site-footer {
    background: var(--dark);
    color: #cbd5e1;
    padding: 50px 0 20px;
}

/* fade-in-up animation utility */
.fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp 0.8s ease forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }

/* ---------- Dashboard / App Shell ---------- */
.app-sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg,#1e1b3a,#120f26);
    color: #cbd5e1;
    width: 260px;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    overflow-y: auto;
    z-index: 1000;
    transition: left 0.3s ease;
}
.app-sidebar .brand { padding: 22px 20px; font-weight: 700; color: #fff; font-size: 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.app-sidebar .nav-link { color: #cbd5e1; padding: 11px 20px; border-radius: 8px; margin: 2px 10px; font-size: 0.92rem; }
.app-sidebar .nav-link:hover, .app-sidebar .nav-link.active { background: rgba(124,58,237,0.35); color: #fff; }
.app-sidebar .nav-header { padding: 14px 20px 4px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: #7c7594; }

.app-main { margin-left: 260px; padding: 24px; min-height: 100vh; }
@media (max-width: 991px) {
    .app-sidebar { left: -260px; }
    .app-sidebar.show { left: 0; }
    .app-main { margin-left: 0; }
}

.topbar {
    background: #fff;
    border-radius: 14px;
    padding: 14px 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 22px;
    display: flex; align-items: center; justify-content: space-between;
}

.stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary);
    transition: transform 0.25s ease;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-card h3 { font-weight: 700; margin: 0; }
.stat-card .icon-box { width: 46px; height: 46px; border-radius: 12px; display:flex; align-items:center; justify-content:center; font-size: 20px; color:#fff; }

.card-a2z {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border: none;
}
.table thead th { background: #f5f2ff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: .5px; color: #5b21b6; border: none;}
.table td, .table th { vertical-align: middle; }

.badge-status { padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-active, .badge-available, .badge-paid, .badge-checked_in { background: #dcfce7; color: #15803d; }
.badge-suspended, .badge-occupied, .badge-pending { background: #fee2e2; color: #b91c1c; }
.badge-deleted, .badge-cancelled { background: #e5e7eb; color: #374151; }
.badge-cleaning, .badge-partial { background: #fef3c7; color: #b45309; }
.badge-maintenance, .badge-booked { background: #dbeafe; color: #1d4ed8; }

.login-wrapper {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg,#7c3aed,#0ea5e9);
    padding: 20px;
}
.login-card {
    background: #fff;
    border-radius: 18px;
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}
.login-card .logo-circle {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg,var(--primary),var(--secondary));
    display:flex; align-items:center; justify-content:center;
    color:#fff; font-size: 28px; font-weight:700;
    margin: 0 auto 16px;
}
