:root {
    --cw-dark: #101820;
    --cw-deep: #0b332c;
    --cw-gold: #ffc107;
    --cw-muted: #64748b;
    --cw-soft: #f6f8fb;
    --cw-danger: #dc3545;
    --cw-success: #198754;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cw-soft);
    color: #172033;
}

.text-white-75 {
    color: rgba(255,255,255,.75);
}

.cw-nav-wrapper {
    background: var(--cw-dark);
}

.cw-navbar {
    background: linear-gradient(135deg, #111827 0%, #0b332c 55%, #031b16 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
}

.cw-brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cw-gold);
    color: #111827;
    border-radius: 14px;
    font-weight: 900;
    letter-spacing: -.08em;
}

.cw-hero,
.cw-page-header {
    background:
        radial-gradient(circle at top right, rgba(255,193,7,.25), transparent 28%),
        linear-gradient(135deg, #111827 0%, #0b332c 58%, #05251f 100%);
}

.cw-command-card,
.cw-feature-card,
.cw-stat-card {
    background: #fff;
    border-radius: 1.5rem;
    padding: 1.5rem;
}

.cw-command-card {
    border: 1px solid rgba(255,255,255,.35);
}

.cw-mini-stat {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1rem;
}

.cw-mini-stat strong {
    display: block;
    font-size: 1.9rem;
    line-height: 1;
}

.cw-mini-stat span {
    display: block;
    color: var(--cw-muted);
    font-size: .85rem;
    margin-top: .25rem;
}

.cw-pulse {
    width: 14px;
    height: 14px;
    background: #22c55e;
    border-radius: 999px;
    box-shadow: 0 0 0 0 rgba(34,197,94,.7);
    animation: cwPulse 1.5s infinite;
}

@keyframes cwPulse {
    0% { box-shadow: 0 0 0 0 rgba(34,197,94,.7); }
    70% { box-shadow: 0 0 0 14px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.cw-feature-card {
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 25px rgba(15,23,42,.06);
}

.cw-feature-card h3 {
    font-size: 1.25rem;
    margin-top: 1rem;
}

.cw-feature-card p {
    color: var(--cw-muted);
    margin-bottom: 0;
}

.cw-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: #fff7db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
}

.cw-stat-card {
    box-shadow: 0 12px 25px rgba(15,23,42,.06);
    border: 1px solid #e5e7eb;
}

.cw-stat-card span {
    color: var(--cw-muted);
    font-size: .85rem;
    text-transform: uppercase;
    font-weight: 700;
}

.cw-stat-card strong {
    display: block;
    font-size: 2.25rem;
    line-height: 1.1;
}

.cw-stat-card.danger {
    border-color: rgba(220,53,69,.25);
    background: linear-gradient(135deg, #fff 0%, #fff1f2 100%);
}

.cw-status-reported { background: #6c757d; color: #fff; }
.cw-status-verified { background: #0dcaf0; color: #062a30; }
.cw-status-assigned { background: #6610f2; color: #fff; }
.cw-status-inprogress { background: #ffc107; color: #2f2600; }
.cw-status-resolved { background: #198754; color: #fff; }
.cw-status-rejected { background: #212529; color: #fff; }
.cw-status-escalated { background: #dc3545; color: #fff; }

.cw-map-canvas {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
        radial-gradient(circle at 15% 20%, rgba(255,193,7,.35), transparent 12%),
        radial-gradient(circle at 80% 35%, rgba(220,53,69,.35), transparent 16%),
        linear-gradient(135deg, #12372f, #0f172a);
    background-size: 42px 42px, 42px 42px, auto, auto, auto;
    border: 1px solid rgba(15,23,42,.08);
}

.cw-map-label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    background: rgba(255,255,255,.94);
    border-radius: 999px;
    padding: .45rem .85rem;
    font-weight: 700;
    font-size: .85rem;
}

.cw-map-pin {
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 999px 999px 999px 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 14px 22px rgba(0,0,0,.28);
    transition: transform .18s ease;
}

.cw-map-pin:hover {
    transform: rotate(-45deg) translateY(-4px);
}

.cw-map-pin span {
    transform: rotate(45deg);
    color: #fff;
    font-weight: 800;
}

.cw-priority-critical { background: #dc3545; }
.cw-priority-high { background: #fd7e14; }
.cw-priority-medium { background: #ffc107; }
.cw-priority-low { background: #198754; }
.cw-priority-medium span { color: #111827; }

.cw-dot {
    display: inline-flex;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    margin-right: .5rem;
}

.cw-timeline {
    display: grid;
    gap: 1rem;
}

.cw-timeline-item {
    position: relative;
    padding-left: 2rem;
    color: var(--cw-muted);
}

.cw-timeline-item:before {
    content: "";
    position: absolute;
    left: .35rem;
    top: .35rem;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #cbd5e1;
}

.cw-timeline-item.active:before {
    background: var(--cw-gold);
    box-shadow: 0 0 0 5px rgba(255,193,7,.2);
}

.cw-timeline-item strong {
    display: block;
    color: #111827;
}

.cw-timeline-item span {
    display: block;
    font-size: .9rem;
}

.cw-footer {
    background: #0f172a;
    color: rgba(255,255,255,.65);
}

.card {
    border-radius: 1.25rem;
}

.progress {
    height: .8rem;
    border-radius: 999px;
}

@media (max-width: 768px) {
    .cw-hero .display-4 {
        font-size: 2.3rem;
    }

    .cw-map-canvas {
        min-height: 420px;
    }
}

.cw-property-registered { background: #198754; color: #fff; }
.cw-property-pendingverification { background: #ffc107; color: #2f2600; }
.cw-property-informal { background: #dc3545; color: #fff; }
.cw-property-disputed { background: #fd7e14; color: #111827; }
.cw-property-approvedfordevelopment { background: #0dcaf0; color: #062a30; }
.cw-property-condemned { background: #212529; color: #fff; }

.cw-stand-draft { background: #6c757d; color: #fff; }
.cw-stand-submitted { background: #0dcaf0; color: #062a30; }
.cw-stand-underreview { background: #ffc107; color: #2f2600; }
.cw-stand-awaitinginspection { background: #6610f2; color: #fff; }
.cw-stand-inspectioncompleted { background: #0d6efd; color: #fff; }
.cw-stand-approved { background: #198754; color: #fff; }
.cw-stand-rejected { background: #212529; color: #fff; }
.cw-stand-returnedforchanges { background: #fd7e14; color: #111827; }

.cw-risk-low { background: #198754; color: #fff; }
.cw-risk-medium { background: #ffc107; color: #2f2600; }
.cw-risk-high { background: #fd7e14; color: #111827; }
.cw-risk-critical { background: #dc3545; color: #fff; }

.cw-3d-placeholder,
.cw-3d-stage {
    border: 1px dashed #cbd5e1;
    border-radius: 1.25rem;
    padding: 1.25rem;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #fff7db 100%);
}

.cw-3d-cube {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #111827, #0b332c);
    color: #ffc107;
    font-weight: 900;
    box-shadow: 0 16px 35px rgba(15,23,42,.25);
    transform: rotate(-8deg) skew(-4deg);
}

.cw-3d-cube.large {
    width: 150px;
    height: 150px;
    font-size: 2.4rem;
    border-radius: 34px;
    animation: cwFloat 3s ease-in-out infinite;
}

@keyframes cwFloat {
    0%, 100% { transform: rotate(-8deg) skew(-4deg) translateY(0); }
    50% { transform: rotate(-3deg) skew(-4deg) translateY(-8px); }
}

.cw-before-after {
    display: grid;
    gap: 1rem;
}

.cw-before-after > div {
    border-radius: 1.2rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.cw-before-after strong,
.cw-before-after span {
    display: block;
}

.cw-before-after span {
    color: var(--cw-muted);
    font-size: .9rem;
    margin-top: .25rem;
}

.dropdown-menu .dropdown-item {
    padding-top: .55rem;
    padding-bottom: .55rem;
}
