:root {
    --brand-navy: #10243f;
    --brand-blue: #0a77bf;
    --brand-blue-dark: #075b92;
    --brand-cyan: #23a8d8;
    --brand-mint: #2fbf9b;
    --brand-red: #d63b33;
    --success: #198754;
    --page-bg: #eef3f7;
    --panel: #ffffff;
    --panel-soft: #f7fafc;
    --text-main: #142033;
    --text-soft: #64748b;
    --line: #d9e3ec;
    --shadow-soft: 0 18px 45px rgba(15, 35, 60, 0.12);
    --shadow-card: 0 10px 28px rgba(15, 35, 60, 0.1);
    --radius: 8px;
}

body {
    background:
        linear-gradient(120deg, rgba(10, 119, 191, 0.07), rgba(47, 191, 155, 0.06)),
        linear-gradient(180deg, #f8fbfd 0%, #edf4f8 48%, #f6f9fb 100%),
        var(--page-bg) !important;
    color: var(--text-main) !important;
}

nav {
    background: linear-gradient(90deg, #10243f 0%, #17446b 55%, #0a77bf 100%) !important;
    border-bottom: 0 !important;
    box-shadow: 0 10px 30px rgba(11, 29, 50, 0.2) !important;
}

.nav-container {
    max-width: 1260px !important;
    min-height: 84px;
}

.company-logo {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 0 !important;
    border-left: 4px solid var(--brand-red) !important;
    border-radius: var(--radius) !important;
    color: var(--brand-navy) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14) !important;
    letter-spacing: 0.4px;
}

.company-logo .tagline {
    color: var(--brand-blue) !important;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 236px;
    max-width: 42vw;
    padding: 0.45rem 0.6rem;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.brand-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.system-name {
    color: #ffffff !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase;
}

.nav-links {
    align-items: stretch !important;
    gap: 0.35rem !important;
}

.nav-links > li {
    position: relative;
    display: flex;
}

.nav-links a,
.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: 6px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.96rem !important;
    font-weight: 700 !important;
    line-height: 1.2;
    background: transparent;
    text-decoration: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    white-space: nowrap;
    padding: 0.5rem 1rem;
}

.nav-links a:hover,
.dropdown-toggle:hover,
.nav-links a.active,
.nav-dropdown:hover .dropdown-toggle {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff !important;
}

.dropdown-toggle::after {
    content: "";
    width: 9px;
    height: 9px;
    margin-left: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 310px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: 0.18s ease;
    z-index: 2000;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex !important;
    min-height: 62px !important;
    width: 100%;
    border: 0 !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #dbe7f1 !important;
    color: var(--brand-blue) !important;
    font-size: 1.2rem !important;
    padding: 0 1.5rem !important;
    background: #ffffff !important;
}

.dropdown-menu a:last-child {
    border-bottom: 0 !important;
}

.dropdown-menu a:hover {
    background: #edf7fc !important;
    color: var(--brand-blue-dark) !important;
}

.hero,
.page-header {
    background:
        linear-gradient(105deg, rgba(13, 29, 50, 0.98), rgba(10, 119, 191, 0.9)),
        linear-gradient(135deg, #10243f, #0a77bf) !important;
}

.hero {
    padding: clamp(3rem, 8vw, 6rem) 0 !important;
}

.hero h1,
.features h2,
.form-header h1,
.page-header h1 {
    font-family: 'DM Sans', sans-serif !important;
    letter-spacing: 0 !important;
}

.hero h1 {
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2.25rem, 5vw, 4.4rem) !important;
    line-height: 1.04;
}

.cta-button,
.submit-btn,
.btn-refresh,
.btn-checkout {
    border-radius: 6px !important;
    box-shadow: 0 12px 24px rgba(10, 119, 191, 0.2) !important;
}

.cta-button:not(.secondary),
.submit-btn,
.btn-refresh {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan)) !important;
    color: #ffffff !important;
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.08) !important;
}

.stats,
.features,
.form-section {
    background: transparent !important;
}

.stats {
    padding-top: clamp(2rem, 5vw, 3.5rem) !important;
}

.features {
    padding-bottom: clamp(3rem, 7vw, 5rem) !important;
}

.stat-card,
.feature-card,
.form-container,
.table-wrapper,
.stat-chip {
    border-radius: var(--radius) !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--shadow-card) !important;
}

.stat-card::before,
.feature-card::before {
    background: linear-gradient(90deg, var(--brand-red), var(--brand-blue), var(--brand-mint)) !important;
}

.stat-icon,
.feature-icon {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-mint)) !important;
}

.stat-number,
.stat-chip-num,
.token-badge {
    color: var(--brand-blue) !important;
}

.form-container {
    max-width: 1040px !important;
}

.form-group input,
.form-group select,
.form-group textarea,
.table-top input[type=text],
.filter-group select,
.filter-group input[type=date] {
    border: 1px solid var(--line) !important;
    border-radius: 6px !important;
    background: #fbfdff !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.table-top input[type=text]:focus,
.filter-group select:focus,
.filter-group input[type=date]:focus {
    border-color: var(--brand-blue) !important;
    box-shadow: 0 0 0 4px rgba(10, 119, 191, 0.12) !important;
}

thead tr {
    background: #e8f4fb !important;
}

thead th {
    color: var(--brand-navy) !important;
}

footer.site-footer {
    background: #000000 !important;
    color: #ffffff;
    padding: 0 !important;
    text-align: left !important;
}

body > footer:not(.site-footer) {
    display: none !important;
}

.footer-map-strip {
    min-height: 34px;
    background:
        linear-gradient(rgba(239, 232, 216, 0.78), rgba(239, 232, 216, 0.78)),
        linear-gradient(90deg, transparent 0 18%, rgba(56, 159, 207, 0.25) 18% 19%, transparent 19% 38%, rgba(142, 194, 80, 0.2) 38% 40%, transparent 40% 100%),
        #e7e0d3;
}

.footer-plant-band {
    background: #000000;
    padding: 0 1.5rem 2.2rem;
}

.footer-plant-grid {
    max-width: 1210px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.plant-card {
    position: relative;
    padding-top: 4.6rem;
}

.plant-pin {
    position: absolute;
    top: -1.7rem;
    left: 0;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    background: #2d70b8;
    color: #ffffff;
    font-size: 1.35rem;
}

.plant-card h3 {
    margin: 0 0 0.8rem;
    color: #ffffff;
    font-size: 1.08rem;
    line-height: 1.15;
    font-weight: 800;
}

.plant-card p {
    margin: 0;
    color: #a9a9a9;
    font-size: 0.98rem;
    line-height: 1.25;
    font-weight: 700;
}

.footer-main {
    background: linear-gradient(90deg, #f1f1f1 0 31%, #3170b2 31% 100%);
    color: #ffffff;
}

.footer-main-grid {
    max-width: 1210px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 1.15fr 1fr 1.15fr;
    gap: 2rem;
    padding: 4rem 1.5rem 3.6rem;
}

.footer-brand-panel {
    color: #000000;
    padding-right: 2rem;
}

.footer-brand-panel img {
    width: min(100%, 225px);
    height: auto;
    margin-bottom: 2rem;
}

.footer-brand-panel p {
    margin: 0 0 2rem;
    max-width: 280px;
    color: #000000;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-company {
    color: #000000;
    font-size: 0.9rem;
    font-weight: 800;
    margin-top: 2rem;
}

.footer-social {
    display: flex;
    gap: 1.1rem;
    align-items: center;
}

.footer-social a {
    color: #2366a9;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.1rem;
}

.footer-column h3 {
    color: #ffffff;
    font-size: 1.18rem;
    margin: 0 0 1.6rem;
    font-weight: 800;
}

.footer-contact-list,
.footer-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-contact-list li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 0.65rem;
    color: #ffffff;
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 1rem;
}

.footer-link-list li {
    margin-bottom: 0.75rem;
}

.footer-link-list a,
.footer-contact-list a {
    color: #ffffff;
    text-decoration: none;
}

.footer-link-list a:hover,
.footer-contact-list a:hover,
.footer-social a:hover {
    text-decoration: underline;
}

.footer-link-list a::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 0.85rem;
    vertical-align: middle;
    background: #000000;
}

.play-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 44px;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    background: #000000;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 800;
    line-height: 1.05;
}

.play-badge span {
    display: block;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
}

.play-badge strong {
    display: block;
    font-size: 1rem;
}

.footer-bottom {
    background: #0b0b0b;
    color: rgba(255, 255, 255, 0.74) !important;
    border: 0 !important;
    max-width: none !important;
    padding: 1rem 1.5rem !important;
    text-align: center !important;
}

.back-to-top {
    position: fixed;
    right: 2.5rem;
    bottom: 2.5rem;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 900;
    z-index: 1500;
}

.certification-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(214, 59, 51, 0.16);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 1rem;
}

.login-shell {
    min-height: calc(100vh - 84px);
    display: grid;
    place-items: center;
    padding: 3rem 1rem;
}

.login-card {
    width: min(100%, 460px);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
}

.login-card h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.login-card p {
    color: var(--text-soft);
    margin-bottom: 1.5rem;
}

.login-meta {
    background: #eef7fc;
    color: var(--brand-navy);
    border-left: 4px solid var(--brand-blue);
    padding: 0.8rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: 6px;
    font-weight: 700;
}

@media (max-width: 860px) {
    .nav-container {
        align-items: stretch !important;
    }

    .logo-section {
        justify-content: center;
    }

    .nav-links {
        justify-content: center;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .dropdown-menu {
        left: 50%;
        right: auto;
        width: min(92vw, 320px);
        transform: translate(-50%, -8px);
    }

    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown:focus-within .dropdown-menu {
        transform: translate(-50%, 0);
    }
}

@media (max-width: 900px) {
    .footer-plant-grid,
    .footer-main-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-main {
        background: linear-gradient(180deg, #f1f1f1 0 29%, #3170b2 29% 100%);
    }
}

@media (max-width: 560px) {
    body {
        -webkit-text-size-adjust: 100%;
    }

    .nav-container {
        min-height: auto;
        padding: 0.85rem 0.75rem !important;
    }

    .brand-logo {
        width: min(78vw, 280px);
        max-width: none;
    }

    .system-name {
        display: none;
    }

    .nav-links a,
    .dropdown-toggle {
        font-size: 0.84rem !important;
        min-height: 42px;
        padding-left: 0.65rem !important;
        padding-right: 0.65rem !important;
    }

    .dropdown-menu a {
        font-size: 1rem !important;
    }

    .hero {
        padding: 3rem 0 !important;
    }

    .hero h1 {
        font-size: 2.05rem !important;
    }

    .hero .subtitle {
        font-size: 1rem !important;
    }

    .stats-container,
    .features-grid {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }

    .footer-map-strip {
        min-height: 22px;
    }

    .footer-plant-band {
        padding: 0 1rem 1.5rem;
    }

    .footer-plant-grid,
    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .plant-card {
        padding-top: 3.2rem;
    }

    .plant-pin {
        width: 44px;
        height: 44px;
        top: -1.25rem;
    }

    .footer-main {
        background: #3170b2;
    }

    .footer-main-grid {
        padding: 0 1rem 2rem;
    }

    .footer-brand-panel {
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 2rem 1rem;
        background: #f1f1f1;
    }

    .back-to-top {
        right: 1rem;
        bottom: 1rem;
        width: 46px;
        height: 46px;
    }
}
