:root {
    --navy: #0b1f4b;
    --navy-2: #12307c;
    --navy-3: #1d3fa8;
    --gold: #d4af37;
    --gold-light: #e6c95c;
    --gray-bg: #f4f6fa;
    --gray-text: #6b7280;
    --dark-text: #1f2937;
    --sidebar-width: 260px;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--gray-bg);
    color: var(--dark-text);
}

a { text-decoration: none; }

/* ---------- Brand ---------- */
.text-navy { color: var(--navy) !important; }
.text-gold { color: var(--gold) !important; }
.bg-navy { background-color: var(--navy) !important; }
.bg-navy-2 { background-color: var(--navy-2) !important; }
.bg-gold { background-color: var(--gold) !important; }
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #fff;
    font-weight: 600;
    border: none;
}
.btn-gold:hover { color: #fff; filter: brightness(1.05); }
.btn-navy {
    background: var(--navy-2);
    color: #fff;
    font-weight: 600;
    border: none;
}
.btn-navy:hover { background: var(--navy); color: #fff; }
.btn-outline-gold { border: 2px solid var(--gold); color: var(--gold); font-weight: 600; }
.btn-outline-gold:hover { background: var(--gold); color: #fff; }
.btn-outline-navy { border: 2px solid var(--navy-2); color: var(--navy-2); font-weight: 600; }
.btn-outline-navy:hover { background: var(--navy-2); color: #fff; }
.avatar-initial {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    color: var(--gold);
    font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* ---------- Admin Sidebar ---------- */
.admin-wrapper { display: flex; min-height: 100vh; }

.admin-sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, var(--navy), var(--navy-2));
    position: fixed;
    top: 0; left: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .25s ease;
}
.admin-sidebar .brand {
    display: flex; align-items: center; gap: 10px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    flex-shrink: 0;
}
.admin-sidebar .brand-logo {
    width: 42px; height: 42px;
    background: var(--gold);
    color: var(--navy);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.15rem;
}
.admin-sidebar .brand-text { color: #fff; line-height: 1.1; }
.admin-sidebar .brand-text small { color: var(--gold); font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; }

.sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 12px 0 40px;
}
.sidebar-nav .nav-section {
    padding: 12px 20px 6px;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,.45);
    font-weight: 700;
}
.sidebar-nav .nav-item { margin: 1px 10px; }
.sidebar-nav .nav-link {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 14px;
    color: rgba(255,255,255,.82);
    border-radius: 8px;
    font-size: .9rem;
    transition: all .15s;
}
.sidebar-nav .nav-link i { font-size: 1.02rem; width: 20px; text-align: center; }
.sidebar-nav .nav-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.sidebar-nav .nav-link.active {
    background: var(--gold);
    color: var(--navy);
    font-weight: 600;
}
.sidebar-nav .nav-link .badge { margin-left: auto; }

.admin-main {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    display: flex; flex-direction: column;
    min-height: 100vh;
}

.admin-topbar {
    background: #fff;
    border-bottom: 1px solid #e9edf3;
    padding: 0 24px;
    height: 64px;
    display: flex; align-items: center;
    gap: 16px;
    position: sticky; top: 0; z-index: 1030;
}
.admin-topbar .search-box { max-width: 420px; flex: 1; }

.admin-content { padding: 24px; flex: 1; }

/* ---------- Portal (customer) ---------- */
.portal-topbar {
    background: var(--navy);
    color: #fff;
}
.portal-topbar .nav-link { color: rgba(255,255,255,.85); }
.portal-topbar .nav-link:hover, .portal-topbar .nav-link.active { color: var(--gold); }

/* ---------- Cards ---------- */
.stat-card {
    background: #fff;
    border: 1px solid #e9edf3;
    border-radius: 14px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: transform .15s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(11,31,75,.08); }
.stat-card .stat-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
}
.stat-card .stat-value { font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.stat-card .stat-label { color: var(--gray-text); font-size: .85rem; }

.card { border: 1px solid #e9edf3; border-radius: 14px; box-shadow: 0 1px 3px rgba(11,31,75,.04); }
.card-header { background: #fff; border-bottom: 1px solid #eef1f6; font-weight: 600; }

.page-title { font-weight: 800; color: var(--navy); font-size: 1.4rem; }

/* ---------- Tables ---------- */
.table thead th {
    background: #f8fafd;
    color: var(--navy);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .6px;
    border-bottom: 2px solid #e6eaf2;
}
.table td { vertical-align: middle; }

/* ---------- Badges ---------- */
.badge-soft {
    padding: 5px 10px;
    border-radius: 8px;
    font-size: .72rem;
    font-weight: 600;
}
.badge-success-soft { background: #e6f7ed; color: #15803d; }
.badge-danger-soft { background: #fdecea; color: #b91c1c; }
.badge-warning-soft { background: #fdf3d8; color: #a16207; }
.badge-info-soft { background: #e0f2fe; color: #0369a1; }
.badge-secondary-soft { background: #eef1f6; color: #4b5563; }
.badge-primary-soft { background: #e0ecff; color: #1d4ed8; }
.badge-purple-soft { background: #f3e8ff; color: #7e22ce; }

/* ---------- Frontend ---------- */
.frontend-header {
    background: #fff;
    border-bottom: 1px solid #eef1f6;
}
.frontend-header .navbar-brand { font-weight: 800; color: var(--navy); }
.frontend-header .nav-link { color: var(--dark-text); font-weight: 500; }
.frontend-header .nav-link:hover, .frontend-header .nav-link.active { color: var(--gold); }

.hero-section {
    background:
        linear-gradient(rgba(11,31,75,.82), rgba(18,48,124,.82)),
        radial-gradient(circle at 20% 20%, rgba(212,175,55,.25), transparent 45%),
        url('/images/hero-bg.jpg') center/cover;
    color: #fff;
    padding: 120px 0;
}
.hero-section h1 { font-weight: 800; }
.hero-section .hero-badge {
    background: var(--gold); color: var(--navy);
    display: inline-block; padding: 6px 16px;
    border-radius: 30px; font-weight: 700; font-size: .85rem;
}
.section-title { font-weight: 800; color: var(--navy); }
.section-subtitle { color: var(--gray-text); }

.service-card {
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 16px;
    padding: 28px 22px;
    text-align: center;
    transition: all .2s;
    height: 100%;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(11,31,75,.1); border-color: var(--gold); }
.service-card .service-icon {
    width: 62px; height: 62px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    color: var(--gold);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
}

.btn-custom {
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    color: #fff;
    font-weight: 600;
    border: none;
}
.btn-custom:hover { background: var(--navy); color: var(--gold-light); }

.team-card {
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 16px;
    padding: 26px 18px;
    text-align: center;
    height: 100%;
    transition: all .2s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(11,31,75,.1); border-color: var(--gold); }
.team-avatar {
    width: 96px; height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
    border: 3px solid var(--gold-light);
}
.team-avatar-initial {
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    color: var(--gold);
    font-weight: 700;
    font-size: 2rem;
}
.team-position {
    color: var(--navy);
    font-weight: 600;
    font-size: .92rem;
}
.team-dept {
    color: var(--gray-text);
    font-size: .82rem;
    margin-top: 4px;
}

.stats-band {
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
}
.stat-counter .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1.1;
}
.stat-counter .stat-label {
    font-size: .82rem;
    color: rgba(255,255,255,.8);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 4px;
}

.feature-card {
    background: #fff;
    border: 1px solid #eef1f6;
    border-radius: 16px;
    padding: 26px 18px;
    height: 100%;
    transition: all .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(11,31,75,.1); border-color: var(--gold); }

.why-list li { padding: 8px 0; font-weight: 500; }
.why-list li i { margin-right: 10px; }

.cta-section {
    background:
        linear-gradient(rgba(11,31,75,.88), rgba(18,48,124,.88)),
        radial-gradient(circle at 80% 20%, rgba(212,175,55,.3), transparent 50%),
        url('/images/hero-bg.jpg') center/cover;
}

.step-number {
    width: 44px; height: 44px; margin: 0 auto;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.1rem;
}

.contact-list { list-style: none; padding: 0; }
.contact-list li { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-list li i { font-size: 1.3rem; line-height: 1.4; }

.gallery-item { position: relative; display: block; overflow: hidden; border-radius: 12px; }
.gallery-item img { height: 200px; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
    position: absolute; inset: auto 0 0 0;
    padding: 22px 12px 10px;
    background: linear-gradient(transparent, rgba(11,31,75,.85));
    color: #fff; font-size: .85rem; font-weight: 600;
}
.gallery-thumb { height: 140px; object-fit: cover; border-radius: 12px; }

.package-card .card-img-top, .blog-thumb { height: 200px; object-fit: cover; }
.package-card .card-title { font-weight: 700; color: var(--navy); }

.blog-content h5 { color: var(--navy); font-weight: 700; margin-top: 28px; }
.blog-content p { line-height: 1.8; color: var(--dark-text); }
.blog-content img { max-width: 100%; border-radius: 12px; }

.footer-section { background: var(--navy); color: rgba(255,255,255,.85); }
.footer-section a { color: rgba(255,255,255,.8); }
.footer-section a:hover { color: var(--gold); }
.footer-section h6 { color: var(--gold); font-weight: 700; }

.page-hero {
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    color: #fff;
    padding: 70px 0 60px;
}
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); }
.page-hero .breadcrumb a, .page-hero .breadcrumb-item.active { color: rgba(255,255,255,.75); }

.auth-bg {
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
}
.auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0,0,0,.25);
    padding: 40px;
    max-width: 460px;
    width: 100%;
}

/* ---------- Timeline ---------- */
.status-timeline { position: relative; padding-left: 26px; }
.status-timeline::before {
    content: ''; position: absolute; left: 9px; top: 4px; bottom: 4px;
    width: 2px; background: #e6eaf2;
}
.status-timeline .tl-item { position: relative; padding-bottom: 18px; }
.status-timeline .tl-item::before {
    content: ''; position: absolute; left: -23px; top: 5px;
    width: 14px; height: 14px; border-radius: 50%;
    background: #fff; border: 3px solid var(--navy-2);
}
.status-timeline .tl-item:last-child { padding-bottom: 0; }

/* ---------- Upload ---------- */
.upload-box {
    border: 2px dashed #c9d2e3;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    background: #fbfcfe;
}
.upload-box:hover { border-color: var(--gold); background: #fffdf5; }

/* ---------- Chat ---------- */
.chat-bubble { border-radius: 14px; padding: 12px 16px; max-width: 75%; }
.chat-bubble.sent { background: var(--navy-2); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.chat-bubble.received { background: #fff; border: 1px solid #e6eaf2; border-bottom-left-radius: 4px; }

/* ---------- Misc ---------- */
.avatar {
    width: 38px; height: 38px; border-radius: 50%;
    object-fit: cover;
}
.avatar-lg { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.online-dot { width: 10px; height: 10px; background: #22c55e; border-radius: 50%; display: inline-block; }
.offline-dot { width: 10px; height: 10px; background: #9ca3af; border-radius: 50%; display: inline-block; }

.backup-file { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #f8fafd; border-radius: 10px; margin-bottom: 8px; }

@media (max-width: 991px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; width: 100%; }
    .admin-sidebar-backdrop {
        position: fixed; inset: 0; background: rgba(0,0,0,.5);
        z-index: 1035; display: none;
    }
}
