
:root {
    --bg: #050805;
    --surface: #0b120c;
    --surface2: #101a11;
    --green: #39ff14;
    --text: #f1fff1;
    --muted: #9eb49e;
    --line: rgba(57,255,20,.17);
    --danger: #ff5757;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Readex Pro', sans-serif;
    overflow-x: hidden;
}

button, input {
    font: inherit;
}

button {
    cursor: pointer;
}

.navbar {
    height: 78px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5,8,5,.96);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.brand-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid var(--green);
    border-radius: 10px;
    color: var(--green);
    font: bold 17px 'Space Grotesk';
    box-shadow: 0 0 15px #39ff1420;
}

.nav-status {
    color: var(--muted);
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.nav-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
}

.container {
    width: 86%;
    max-width: 1150px;
    margin: auto;
}

/* HERO */

.hero {
    min-height: 490px;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    gap: 50px;
    padding: 55px 0 75px;
}

.tag, .section-label {
    color: var(--green);
    font: 11px 'Space Grotesk';
    letter-spacing: 2px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.5;
    margin: 18px 0;
}

.hero h1 span {
    color: var(--green);
}

.hero-content p {
    color: var(--muted);
    font-size: 14px;
    line-height: 2.2;
    max-width: 530px;
}

.main-btn {
    display: inline-flex;
    gap: 20px;
    align-items: center;
    background: var(--green);
    color: #000;
    padding: 14px 23px;
    border-radius: 7px;
    margin-top: 28px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: .3s;
}

.main-btn:hover {
    box-shadow: 0 0 25px #39ff1470;
    transform: translateY(-3px);
}

.hero-art {
    min-height: 330px;
    display: grid;
    place-items: center;
    position: relative;
}

.passport {
    width: 210px;
    height: 275px;
    background: linear-gradient(145deg, #122014, #071008);
    border: 1px solid #39ff1460;
    border-radius: 15px 15px 35px 35px;
    transform: rotate(-8deg);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 80px #000;
}

.passport-logo {
    font: bold 48px 'Space Grotesk';
    color: var(--green);
    text-shadow: 0 0 20px #39ff1470;
}

.passport-line {
    width: 75%;
    height: 1px;
    background: var(--line);
    margin: 22px 0;
}

.passport-title {
    color: var(--text);
    letter-spacing: 5px;
    font: 13px 'Space Grotesk';
}

.passport-sub {
    color: var(--green);
    font: 8px 'Space Grotesk';
    letter-spacing: 2px;
    margin-top: 12px;
}

.orbit {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.orbit-two {
    width: 360px;
    height: 360px;
    border-style: dashed;
    opacity: .5;
}

.glow {
    position: absolute;
    width: 180px;
    height: 180px;
    background: var(--green);
    filter: blur(110px);
    opacity: .13;
}

/* CALCULATOR */

.calculator {
    border-top: 1px solid var(--line);
    padding: 90px 0;
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading h2,
.result-heading h2,
.instructions h2 {
    font-size: clamp(27px, 4vw, 40px);
    margin: 17px 0 10px;
}

.section-heading p {
    color: var(--muted);
    font-size: 13px;
    line-height: 2;
}

.notice {
    padding: 17px 20px;
    background: #101b10;
    border: 1px solid var(--line);
    border-right: 3px solid var(--green);
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 2;
    margin-bottom: 35px;
}

.notice strong {
    color: var(--green);
}

.records-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.records-header h3 {
    font-size: 17px;
}

.add-btn {
    background: transparent;
    border: 1px solid var(--green);
    color: var(--green);
    border-radius: 7px;
    padding: 11px 16px;
    font-size: 11px;
    transition: .3s;
}

.add-btn:hover {
    background: var(--green);
    color: #000;
}

.trips {
    display: grid;
    gap: 15px;
}

.trip-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 23px;
}

.trip-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.trip-number {
    color: var(--green);
    font: 12px 'Space Grotesk';
    letter-spacing: 1px;
}

.remove-trip {
    background: transparent;
    border: 1px solid #ff575744;
    color: var(--danger);
    padding: 7px 11px;
    border-radius: 6px;
    font-size: 10px;
}

.fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.field label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 10px;
}

.field input[type="date"] {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    color: var(--text);
    background: #050a05;
    border: 1px solid var(--line);
    border-radius: 7px;
    outline: none;
    color-scheme: dark;
}

.field input:focus {
    border-color: var(--green);
    box-shadow: 0 0 12px #39ff1415;
}

.upload-area {
    margin-top: 13px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px dashed #39ff1470;
    border-radius: 6px;
    color: var(--green);
    font-size: 10px;
    cursor: pointer;
}

.upload-btn input {
    display: none;
}

.ocr-status {
    color: var(--muted);
    font-size: 10px;
}

.ocr-status.success {
    color: var(--green);
}

.ocr-status.failed {
    color: var(--danger);
}

.actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.calculate-btn,
.reset-btn,
.print-btn {
    border-radius: 7px;
    padding: 14px 22px;
    font-size: 12px;
    transition: .3s;
}

.calculate-btn {
    flex: 1;
    background: var(--green);
    border: 1px solid var(--green);
    color: #000;
    font-weight: 700;
}

.calculate-btn:hover {
    box-shadow: 0 0 25px #39ff1450;
}

.reset-btn,
.print-btn {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
}

.reset-btn:hover,
.print-btn:hover {
    color: var(--green);
    border-color: var(--green);
}

.error {
    display: none;
    margin-top: 18px;
    padding: 13px;
    background: #301010;
    border: 1px solid #ff575744;
    border-radius: 7px;
    color: #ff9999;
    font-size: 12px;
    line-height: 1.8;
}

/* RESULTS */

.results {
    margin-top: 55px;
    padding-top: 35px;
    border-top: 1px solid var(--line);
}

.result-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
}

.stats {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 23px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-card.featured {
    border-color: var(--green);
    background: linear-gradient(145deg, #102110, #0b120c);
}

.stat-card span {
    color: var(--muted);
    font-size: 11px;
}

.stat-card strong {
    font: bold 40px 'Space Grotesk';
    color: var(--green);
}

.stat-card small {
    color: var(--muted);
    font-size: 10px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 9px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 550px;
}

th, td {
    padding: 17px;
    text-align: right;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
}

th {
    background: #101a11;
    color: var(--green);
}

td {
    color: var(--muted);
}

td:last-child {
    color: var(--green);
    font-weight: 700;
}

.result-note {
    color: var(--muted);
    font-size: 11px;
    line-height: 2;
    margin-top: 17px;
}

/* INSTRUCTIONS */

.instructions {
    border-top: 1px solid var(--line);
    padding: 85px 0;
}

.instruction-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 35px;
}

.instruction-grid article {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 27px;
    border-radius: 9px;
}

.instruction-grid article > span {
    color: var(--green);
    font: bold 25px 'Space Grotesk';
}

.instruction-grid h3 {
    margin: 20px 0 12px;
    font-size: 15px;
}

.instruction-grid p {
    color: var(--muted);
    font-size: 11px;
    line-height: 2.2;
}

/* FOOTER */

footer {
    padding: 40px 7%;
    border-top: 1px solid var(--line);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-brand {
    font: bold 30px 'Space Grotesk';
    color: var(--green);
}

footer p {
    color: var(--muted);
    font-size: 11px;
}

footer .developer strong {
    color: var(--green);
}

footer small {
    color: #657565;
    font-size: 10px;
}

/* RESPONSIVE */

@media(max-width: 800px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 65px;
        text-align: center;
    }

    .hero-content p {
        margin: auto;
    }

    .hero-art {
        min-height: 300px;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }

    .stat-card.featured {
        grid-column: 1 / -1;
    }
}

@media(max-width: 550px) {
    .navbar {
        padding: 0 5%;
        height: 70px;
    }

    .container {
        width: 90%;
    }

    .hero {
        gap: 25px;
        padding: 55px 0;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero-art {
        min-height: 270px;
    }

    .passport {
        transform: scale(.85) rotate(-8deg);
    }

    .orbit {
        transform: scale(.8);
    }

    .calculator,
    .instructions {
        padding: 65px 0;
    }

    .fields {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .trip-card {
        padding: 17px;
    }

    .actions {
        flex-direction: column;
    }

    .result-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .stat-card.featured {
        grid-column: auto;
    }

    .instruction-grid {
        grid-template-columns: 1fr;
    }

    .records-header h3 {
        font-size: 14px;
    }
}

@media print {
    body {
        background: #fff;
        color: #111;
    }

    .navbar,
    .hero,
    .instructions,
    footer,
    .records-header,
    .trips,
    .actions,
    .notice,
    .result-heading .print-btn {
        display: none !important;
    }

    .container {
        width: 100%;
    }

    .calculator {
        border: 0;
        padding: 10px;
    }

    .results {
        display: block !important;
        border: 0;
    }

    .stat-card,
    .stat-card.featured {
        background: #fff;
        border: 1px solid #aaa;
    }

    .stat-card strong,
    th,
    td,
    .result-heading h2 {
        color: #111;
    }

    th, td {
        border: 1px solid #aaa;
    }

    .result-note,
    .stat-card span,
    .stat-card small {
        color: #333;
    }
}
.personal-link {
    color: var(--green);
    font-size: 11px;
    border: 1px solid var(--line);
    padding: 10px 15px;
    border-radius: 7px;
    transition: .3s;
}

.personal-link:hover {
    background: var(--green);
    color: #000;
    box-shadow: 0 0 18px #39ff1440;
}

@media(max-width: 650px) {
    .navbar {
        gap: 8px;
    }

    .personal-link {
        font-size: 9px;
        padding: 8px;
    }
}