:root{
    --brand: #006546;
    --brand-2: #0a7f59;
    --brand-soft: rgba(0, 101, 70, 0.10);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --panel-bg: rgba(255,255,255,0.82);
    --panel-border: rgba(255,255,255,0.58);
    --card-bg: rgba(255,255,255,0.92);
    --card-border: rgba(15,23,42,0.08);
    --shadow-lg: 0 24px 60px rgba(2, 6, 23, 0.14);
    --shadow-md: 0 10px 28px rgba(2, 6, 23, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 16px;
}

body {
    font-family: Figtree, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--text-main);
}

.bg-dots{
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(0, 101, 70, 0.10), transparent 24%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.08), transparent 22%),
        linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
    position: relative;
    overflow: hidden;
}

.bg-dots::before{
    content:"";
    position:absolute;
    inset:0;
    background-image: radial-gradient(rgba(15,23,42,.07) 1px, transparent 1px);
    background-size: 18px 18px;
    pointer-events:none;
    opacity:.55;
}

.bg-dots > *{
    position: relative;
    z-index: 1;
}

.landing-shell{
    background: var(--panel-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.landing-body{
    padding: 2.5rem;
}

.brand-logo-wrap{
    width: 112px;
    height: 112px;
    margin: 0 auto 1rem;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.88));
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.10);
    display:flex;
    align-items:center;
    justify-content:center;
    padding: 14px;
}

.brand-logo-wrap img{
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.landing-title{
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: .35rem;
    color: var(--text-main);
}

.landing-subtitle{
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 1.5rem;
    font-size: .98rem;
}

.top-action-row{
    margin-bottom: 1.75rem;
}

.btn{
    border-radius: 12px;
    font-weight: 600;
    transition: all .2s ease;
}

.btn-primary{
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(0, 101, 70, 0.18);
}

.btn-primary:hover,
.btn-primary:focus{
    transform: translateY(-1px);
    box-shadow: 0 16px 26px rgba(0, 101, 70, 0.24);
}

.btn-outline-secondary{
    border-color: rgba(15,23,42,.14);
    color: var(--text-main);
    background: rgba(255,255,255,.75);
}

.btn-outline-secondary:hover{
    background: #fff;
    border-color: rgba(15,23,42,.22);
    color: var(--text-main);
}

.btn-outline-danger{
    border-color: rgba(220,38,38,.20);
}

.section-head{
    margin-bottom: 1rem;
}

.section-head h2{
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

.section-head p{
    color: var(--text-muted);
    margin-bottom: 0;
}

.app-grid{
    margin-top: .5rem;
}

.app-card{
    height: 100%;
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-md);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    overflow: hidden;
}

.app-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 20px 36px rgba(2, 6, 23, 0.12);
    border-color: rgba(0, 101, 70, 0.18);
}

.app-card .card-body{
    padding: 1.15rem;
}

.app-badge{
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--brand);
    background: var(--brand-soft);
    border: 1px solid rgba(0, 101, 70, 0.12);
    border-radius: 999px;
    padding: .35rem .65rem;
    margin-bottom: .8rem;
}

.app-title{
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .45rem;
    color: var(--text-main);
}

.app-desc{
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.55;
    min-height: 3rem;
}

.app-card .btn{
    margin-top: 1rem;
}

.footer-note{
    color: var(--text-muted) !important;
    font-size: .84rem;
    margin-top: 1rem;
}

.alert-warning{
    border-radius: 16px;
    border: 1px solid rgba(245, 158, 11, 0.20);
    background: rgba(255, 251, 235, 0.95);
    color: #92400e;
}

@media (max-width: 991.98px){
    .landing-body{
        padding: 2rem 1.25rem;
    }

    .landing-title{
        font-size: 1.55rem;
    }
}

@media (max-width: 575.98px){
    .brand-logo-wrap{
        width: 92px;
        height: 92px;
        border-radius: 22px;
    }

    .landing-body{
        padding: 1.4rem 1rem;
    }

    .landing-title{
        font-size: 1.35rem;
    }

    .landing-subtitle{
        font-size: .92rem;
    }

    .btn{
        width: 100%;
    }

    .top-action-row .d-flex{
        flex-direction: column;
    }
}

/* DARK MODE */
[data-bs-theme="dark"] body,
body.dark-mode{
    color: #e5e7eb;
}

[data-bs-theme="dark"] .bg-dots,
body.dark-mode .bg-dots{
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.14), transparent 24%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.10), transparent 22%),
        linear-gradient(180deg, #07111f 0%, #0b1220 100%);
}

[data-bs-theme="dark"] .bg-dots::before,
body.dark-mode .bg-dots::before{
    background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
    opacity: .45;
}

[data-bs-theme="dark"] .landing-shell,
body.dark-mode .landing-shell{
    background: rgba(11, 18, 32, 0.78);
    border-color: rgba(148, 163, 184, 0.10);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

[data-bs-theme="dark"] .brand-logo-wrap,
body.dark-mode .brand-logo-wrap{
    background: linear-gradient(180deg, rgba(17,24,39,.96), rgba(15,23,42,.92));
    border-color: rgba(148, 163, 184, 0.10);
    box-shadow: 0 14px 30px rgba(0,0,0,.24);
}

[data-bs-theme="dark"] .landing-title,
body.dark-mode .landing-title,
[data-bs-theme="dark"] .app-title,
body.dark-mode .app-title,
[data-bs-theme="dark"] .section-head h2,
body.dark-mode .section-head h2{
    color: #f8fafc;
}

[data-bs-theme="dark"] .landing-subtitle,
body.dark-mode .landing-subtitle,
[data-bs-theme="dark"] .text-muted,
body.dark-mode .text-muted,
[data-bs-theme="dark"] .app-desc,
body.dark-mode .app-desc,
[data-bs-theme="dark"] .footer-note,
body.dark-mode .footer-note{
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .app-card,
body.dark-mode .app-card{
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(148, 163, 184, 0.10);
    box-shadow: 0 12px 30px rgba(0,0,0,.24);
}

[data-bs-theme="dark"] .btn-outline-secondary,
body.dark-mode .btn-outline-secondary{
    background: rgba(15,23,42,.9);
    border-color: rgba(148,163,184,.16);
    color: #e5e7eb;
}

[data-bs-theme="dark"] .btn-outline-secondary:hover,
body.dark-mode .btn-outline-secondary:hover{
    background: rgba(30,41,59,.96);
    color: #fff;
}

[data-bs-theme="dark"] .alert-warning,
body.dark-mode .alert-warning{
    background: rgba(120, 53, 15, 0.22);
    border-color: rgba(245, 158, 11, 0.18);
    color: #fcd34d;
}



/* DARK MODE - LANDING PAGE */
[data-bs-theme="dark"] .bg-dots,
body.dark-mode .bg-dots {
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.14), transparent 24%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.10), transparent 22%),
        linear-gradient(180deg, #07111f 0%, #0b1220 100%);
}

[data-bs-theme="dark"] .bg-dots::before,
body.dark-mode .bg-dots::before {
    background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
    opacity: .45;
}

/* Main panel */
[data-bs-theme="dark"] .landing-shell,
body.dark-mode .landing-shell {
    background: rgba(11, 18, 32, 0.78);
    border-color: rgba(148, 163, 184, 0.10);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

/* Logo box */
[data-bs-theme="dark"] .brand-logo-wrap,
body.dark-mode .brand-logo-wrap {
    background: linear-gradient(180deg, rgba(17,24,39,.96), rgba(15,23,42,.92));
    border-color: rgba(148, 163, 184, 0.10);
    box-shadow: 0 14px 30px rgba(0,0,0,.24);
}

/* Titles */
[data-bs-theme="dark"] .landing-title,
body.dark-mode .landing-title,
[data-bs-theme="dark"] .app-title,
body.dark-mode .app-title,
[data-bs-theme="dark"] .section-head h2,
body.dark-mode .section-head h2 {
    color: #f8fafc;
}

/* Muted text */
[data-bs-theme="dark"] .landing-subtitle,
body.dark-mode .landing-subtitle,
[data-bs-theme="dark"] .text-muted,
body.dark-mode .text-muted,
[data-bs-theme="dark"] .app-desc,
body.dark-mode .app-desc,
[data-bs-theme="dark"] .footer-note,
body.dark-mode .footer-note {
    color: #94a3b8 !important;
}

/* App cards */
[data-bs-theme="dark"] .app-card,
body.dark-mode .app-card {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(148, 163, 184, 0.10);
    box-shadow: 0 12px 30px rgba(0,0,0,.24);
}

[data-bs-theme="dark"] .app-card:hover,
body.dark-mode .app-card:hover {
    border-color: rgba(16, 185, 129, 0.22);
    box-shadow: 0 20px 40px rgba(0,0,0,.32);
}

/* Badge */
[data-bs-theme="dark"] .app-badge,
body.dark-mode .app-badge {
    background: rgba(16, 185, 129, 0.12);
    color: #86efac;
    border-color: rgba(16, 185, 129, 0.20);
}

/* Buttons */
[data-bs-theme="dark"] .btn-primary,
body.dark-mode .btn-primary {
    background: linear-gradient(135deg, #059669, #10b981);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.22);
}

[data-bs-theme="dark"] .btn-outline-secondary,
body.dark-mode .btn-outline-secondary {
    background: rgba(15,23,42,.9);
    border-color: rgba(148,163,184,.16);
    color: #e5e7eb;
}

[data-bs-theme="dark"] .btn-outline-secondary:hover,
body.dark-mode .btn-outline-secondary:hover {
    background: rgba(30,41,59,.96);
    color: #fff;
}

/* Warning box */
[data-bs-theme="dark"] .alert-warning,
body.dark-mode .alert-warning {
    background: rgba(120, 53, 15, 0.22);
    border-color: rgba(245, 158, 11, 0.18);
    color: #fcd34d;
}

/* Footer */
[data-bs-theme="dark"] .footer-note,
body.dark-mode .footer-note {
    color: #94a3b8 !important;
}