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

:root {
    --navy: #071525;
    --navy-2: #0d2034;
    --orange: #ff7900;
    --gold: #ffb21c;
    --text: #172033;
    --muted: #718096;
    --line: #e7ebf1;
    --surface: #ffffff;
    --bg: #f5f7fa;
    --green: #1d9b69;
    --shadow: 0 18px 50px rgba(9, 27, 47, .09);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 76px;
    padding: 0 5.5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    color: white;
    background: rgba(7, 21, 37, .96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    min-width: 190px;
}

.brand-mark {
    width: 43px;
    height: 43px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--orange), var(--gold));
    font-size: 19px;
}

.brand strong {
    display: block;
    font-family: Manrope, sans-serif;
    font-size: 19px;
    letter-spacing: 1.5px;
}

.brand span {
    display: block;
    color: #91a0b3;
    font-size: 10px;
    margin-top: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 7px;
}

.main-nav a {
    color: #aeb9c8;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
}

.main-nav a:hover,
.main-nav a.active {
    color: white;
    background: rgba(255, 255, 255, .08);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.create-top-btn,
.hero-create,
.save-btn {
    border: 0;
    color: white;
    font-weight: 700;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange), var(--gold));
    box-shadow: 0 8px 22px rgba(255, 121, 0, .22);
}

.create-top-btn {
    padding: 11px 16px;
}

.profile-wrap {
    position: relative;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .07);
    border-radius: 28px;
    padding: 5px 12px 5px 5px;
}

.profile-btn img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 50%;
}

.profile-btn span {
    font-size: 13px;
}

.profile-btn i {
    font-size: 10px;
    color: #9ca9ba;
}

.profile-menu {
    display: none;
    position: absolute;
    top: 53px;
    right: 0;
    width: 215px;
    padding: 8px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 20px 55px rgba(0, 0, 0, .2);
}

.profile-menu.show {
    display: block;
}

.profile-menu a {
    display: flex;
    gap: 11px;
    align-items: center;
    padding: 11px 12px;
    border-radius: 9px;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
}

.profile-menu a:hover {
    background: #f3f5f8;
}

.profile-menu i {
    width: 18px;
    color: var(--orange);
}

.profile-menu .logout {
    color: #c93636;
}

.profile-menu hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 5px 0;
}

/* HERO */
.hero {
    min-height: 410px;
    padding: 70px 7%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    color: white;
    background:
        radial-gradient(circle at 75% 45%, rgba(255, 177, 28, .24), transparent 27%),
        linear-gradient(120deg, #061424, #0d2940);
}

.hero::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: -160px;
    top: -210px;
    border-radius: 50%;
    background: rgba(255, 121, 0, .09);
    filter: blur(5px);
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 670px;
}

.eyebrow,
.section-kicker {
    color: var(--orange);
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 800;
}

.eyebrow {
    color: #ffbd4a;
    margin-bottom: 14px;
}

.hero h1 {
    font-family: Manrope, sans-serif;
    font-size: clamp(46px, 6vw, 76px);
    line-height: 1;
    letter-spacing: -3px;
}

.hero h1 span {
    color: var(--gold);
}

.hero p {
    max-width: 620px;
    margin-top: 20px;
    color: #c7d1dd;
    font-size: 16px;
    line-height: 1.75;
}

.hero-create {
    margin-top: 28px;
    padding: 14px 19px;
}

.hero-visual {
    width: 420px;
    height: 290px;
    position: relative;
    display: grid;
    place-items: center;
}

.globe {
    width: 175px;
    height: 175px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #f7b52c;
    font-size: 82px;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .12), rgba(255, 121, 0, .08));
    box-shadow: 0 0 90px rgba(255, 168, 28, .15);
    z-index: 2;
}

.hero-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    transform: rotate(-18deg);
}

.orbit-one {
    width: 330px;
    height: 180px;
}

.orbit-two {
    width: 390px;
    height: 225px;
    transform: rotate(30deg);
}

.floating-pin {
    position: absolute;
    z-index: 3;
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    color: white;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--gold));
    box-shadow: 0 8px 20px rgba(255, 121, 0, .3);
}

.pin-one {
    top: 35px;
    left: 75px;
}

.pin-two {
    right: 52px;
    top: 80px;
}

.pin-three {
    left: 80px;
    bottom: 32px;
}

.travel-note {
    position: absolute;
    z-index: 5;
    right: 0;
    bottom: 4px;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
}

.travel-note>i {
    color: var(--gold);
}

.travel-note strong,
.travel-note span {
    display: block;
}

.travel-note strong {
    font-size: 13px;
}

.travel-note span {
    margin-top: 2px;
    color: #9caabd;
    font-size: 10px;
}

/* STATS */
.stats {
    width: 86%;
    margin: -35px auto 0;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 19px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.stat-card span,
.stat-card strong {
    display: block;
}

.stat-card span {
    color: var(--muted);
    font-size: 10px;
}

.stat-card strong {
    margin-top: 3px;
    font-family: Manrope, sans-serif;
    font-size: 24px;
}

.stat-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 13px;
}

.stat-icon.orange {
    color: #e86600;
    background: #fff0e5;
}

.stat-icon.blue {
    color: #2768c8;
    background: #eaf2ff;
}

.stat-icon.green {
    color: #17805a;
    background: #e8f7ef;
}

.stat-icon.purple {
    color: #7952c6;
    background: #f0eafd;
}

/* ZONES */
.zones-section {
    width: 86%;
    margin: 65px auto 90px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 28px;
}

.section-head h2 {
    font-family: Manrope, sans-serif;
    font-size: 34px;
    margin-top: 5px;
}

.section-head p {
    color: var(--muted);
    margin-top: 7px;
    font-size: 13px;
}

.section-tools {
    display: flex;
    gap: 9px;
}

.search-box {
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: white;
}

.search-box i {
    color: #9aa5b4;
    font-size: 12px;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 11px 0;
    font-size: 12px;
}

#sortZones {
    border: 1px solid var(--line);
    outline: none;
    background: white;
    border-radius: 11px;
    padding: 0 12px;
    color: var(--text);
    font-size: 12px;
}

.zone-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 23px;
}

.zone-card {
    overflow: hidden;
    background: white;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .055);
    transition: transform .25s ease, box-shadow .25s ease;
}

.zone-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, .11);
}

.zone-cover {
    height: 190px;
    position: relative;
    background-size: cover;
    background-position: center;
}

.zone-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 35%, rgba(0, 0, 0, .65));
}

.category-badge {
    position: absolute;
    z-index: 2;
    top: 13px;
    left: 13px;
    padding: 7px 10px;
    color: white;
    border-radius: 20px;
    background: rgba(7, 21, 37, .7);
    backdrop-filter: blur(8px);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .5px;
}

.zone-cover-title {
    position: absolute;
    z-index: 2;
    left: 17px;
    right: 17px;
    bottom: 15px;
    color: white;
}

.zone-cover-title h3 {
    font-family: Manrope, sans-serif;
    font-size: 21px;
}

.zone-cover-title span {
    font-size: 10px;
    color: #d8e0e9;
}

.zone-body {
    padding: 17px;
}

.zone-description {
    min-height: 42px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.zone-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 14px 0;
}

.meta-pill {
    padding: 7px 9px;
    color: #596679;
    background: #f3f5f8;
    border-radius: 8px;
    font-size: 10px;
}

.progress-row {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 10px;
    margin-bottom: 6px;
}

.progress-row strong {
    color: var(--green);
}

.progress-track {
    height: 6px;
    overflow: hidden;
    border-radius: 10px;
    background: #edf0f3;
}

.progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--orange), var(--gold));
}

.zone-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 15px;
}

.zone-actions button {
    border: 0;
    padding: 10px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 10px;
}

.view-btn {
    color: white;
    background: var(--navy);
}

.edit-btn {
    color: var(--text);
    background: #edf1f5;
}

.delete-btn {
    grid-column: 1 / -1;
    color: #c43e3e;
    background: #fff0f0;
}

.empty-state {
    display: none;
    padding: 70px 20px;
    text-align: center;
    background: white;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.empty-state.show {
    display: block;
}

.empty-icon {
    width: 65px;
    height: 65px;
    margin: auto;
    display: grid;
    place-items: center;
    color: var(--orange);
    background: #fff0e5;
    border-radius: 20px;
    font-size: 25px;
}

.empty-state h3 {
    margin-top: 15px;
    font-family: Manrope, sans-serif;
}

.empty-state p {
    margin: 7px 0 18px;
    color: var(--muted);
    font-size: 13px;
}

/* MODAL */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(4, 14, 25, .68);
    backdrop-filter: blur(7px);
}

.modal-backdrop.show {
    display: grid;
}

.modal {
    position: relative;
    width: min(680px, 100%);
    max-height: 92vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 23px;
    background: white;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}

.close-modal {
    position: absolute;
    top: 17px;
    right: 17px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: #667384;
    background: #f1f3f6;
}

.modal-head h2 {
    font-family: Manrope, sans-serif;
    font-size: 28px;
    margin-top: 5px;
}

.modal-head p {
    margin: 7px 40px 22px 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.modal label {
    display: block;
    margin-top: 15px;
    color: #374151;
    font-weight: 700;
    font-size: 11px;
}

.modal input,
.modal textarea,
.modal select {
    width: 100%;
    margin-top: 7px;
    border: 1px solid #dfe4eb;
    outline: none;
    border-radius: 10px;
    padding: 11px 12px;
    color: var(--text);
    background: #fbfcfd;
    font-size: 12px;
}

.modal textarea {
    min-height: 80px;
    resize: vertical;
}

.modal input:focus,
.modal textarea:focus,
.modal select:focus {
    border-color: var(--orange);
    background: white;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.location-input-row {
    display: flex;
    gap: 7px;
}

.location-input-row input {
    margin-top: 0;
}

.location-input-row button {
    flex: 0 0 auto;
    border: 0;
    padding: 0 15px;
    border-radius: 10px;
    color: white;
    background: var(--navy);
    font-weight: 700;
    font-size: 11px;
}

.location-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.location-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    color: #354154;
    border-radius: 9px;
    background: #f0f3f6;
    font-size: 10px;
}

.location-chip button {
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    color: #bd3c3c;
    background: #ffe7e7;
    font-size: 9px;
}

.quick-locations {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 11px;
}

.quick-locations span {
    color: var(--muted);
    font-size: 10px;
}

.quick-locations button {
    border: 1px solid #e1e6ec;
    border-radius: 20px;
    padding: 6px 9px;
    color: #536174;
    background: white;
    font-size: 9px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 25px;
}

.cancel-btn,
.save-btn {
    border: 0;
    padding: 11px 17px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 11px;
}

.cancel-btn {
    color: #596678;
    background: #edf0f4;
}

.save-btn {
    padding-left: 19px;
    padding-right: 19px;
}

/* TOAST */
.toast {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 16px;
    color: white;
    border-radius: 12px;
    background: #12263b;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .2);
    transform: translateY(100px);
    opacity: 0;
    transition: .3s ease;
    font-size: 12px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast i {
    color: #55d49a;
}

/* FOOTER */
footer {
    padding: 28px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #9aa8b8;
    background: var(--navy);
    font-size: 11px;
}

footer strong {
    display: block;
    color: white;
    letter-spacing: 2px;
}

footer span {
    display: block;
    margin-top: 4px;
}

/* RESPONSIVE */
@media (max-width: 1050px) {
    .main-nav {
        display: none;
    }

    .zone-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-visual {
        width: 350px;
    }
}

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

    .create-top-btn {
        display: none;
    }

    .hero {
        padding: 55px 25px 80px;
    }

    .hero-visual {
        display: none;
    }

    .stats,
    .zones-section {
        width: calc(100% - 40px);
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .section-tools {
        flex-direction: column;
    }

    .search-box {
        min-width: 0;
    }

    #sortZones {
        min-height: 40px;
    }
}

@media (max-width: 600px) {

    .brand span,
    .profile-btn span {
        display: none;
    }

    .profile-btn {
        padding-right: 5px;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }

    .zone-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .modal {
        padding: 23px;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}