:root {
    --navy: #0b1f3a;
    --navy-2: #102a4f;
    --blue: #1d4ed8;
    --blue-2: #2563eb;
    --sky: #38bdf8;
    --teal: #0f766e;
    --bg: #f8fafc;
    --bg-soft: #eef6ff;
    --card: #ffffff;
    --line: #d7e3f4;
    --line-strong: #9fb9dc;
    --text: #0f172a;
    --muted: #475569;
    --subtle: #64748b;
    --shadow: 0 18px 48px rgba(15, 31, 58, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Inter", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.landing-page,
.data-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 10%, rgba(56, 189, 248, 0.16), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #eef6ff 42%, #f8fafc 100%);
}

.navbar {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(248, 250, 252, 0.92);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 34px rgba(15, 31, 58, 0.08);
    backdrop-filter: blur(16px);
}

.nav-container {
    width: min(1180px, calc(100% - 40px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    color: var(--navy);
    text-decoration: none;
}

.brand-logo {
    width: 154px;
    max-width: 42vw;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
}

.brand-product {
    display: grid;
    gap: 0.1rem;
    padding-left: 0.8rem;
    border-left: 1px solid var(--line);
}

.brand-product small {
    color: var(--teal);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-product strong {
    color: var(--navy);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    list-style: none;
}

.nav-link,
.user-button,
.logout-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-2);
    font-weight: 700;
    text-decoration: none;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nav-link,
.user-button {
    padding: 0.45rem 0.68rem;
}

.nav-link:hover,
.user-button:hover,
.logout-button:hover {
    color: var(--blue);
    background: #e8f1ff;
}

.nav-cta {
    color: var(--blue);
    background: #eaf2ff;
    border: 1px solid #bcd5ff;
}

.nav-cta:hover {
    background: #dbeafe;
    border-color: #93c5fd;
}

.user-menu,
.support-menu {
    position: relative;
}

.user-button {
    max-width: 230px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown,
.support-dropdown {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    min-width: 178px;
    padding: 0.6rem;
    display: none;
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.user-menu:hover .user-dropdown,
.user-menu:focus-within .user-dropdown,
.support-menu:hover .support-dropdown,
.support-menu:focus-within .support-dropdown {
    display: block;
}

.support-dropdown {
    width: min(300px, 84vw);
    padding: 0.9rem;
    color: var(--muted);
    line-height: 1.55;
}

.support-dropdown a {
    color: var(--blue);
    font-weight: 800;
    text-decoration: none;
}

.support-dropdown a:hover,
.auth-links a:hover,
.auth-inline-link:hover,
.auth-inline-button:hover {
    text-decoration: underline;
}

.logout-button {
    width: 100%;
    padding: 0.55rem 0.65rem;
    text-align: left;
    justify-content: flex-start;
}

.hero {
    min-height: 100vh;
    padding: 128px 20px 52px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(11, 31, 58, 0.96), rgba(16, 42, 79, 0.93)),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 80px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 80px);
}

.hero-container {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: clamp(2rem, 5vw, 4.25rem);
    align-items: center;
}

.hero-title {
    max-width: 760px;
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: clamp(2.4rem, 5.8vw, 4.75rem);
    line-height: 1.02;
    font-weight: 850;
    letter-spacing: 0;
}

.hero-subtitle {
    max-width: 700px;
    margin-bottom: 2rem;
    color: #cbd5e1;
    font-size: 1.12rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.78rem 1.2rem;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--sky));
    border: 1px solid rgba(37, 99, 235, 0.45);
    box-shadow: 0 12px 28px rgba(29, 78, 216, 0.22);
}

.hero .btn-primary {
    color: var(--navy);
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.72);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.16);
}

.btn-secondary {
    color: #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.52);
    background: rgba(255, 255, 255, 0.08);
}

.feature-panel {
    padding: 1.1rem;
    border: 1px solid rgba(203, 213, 225, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.2);
}

.feature-list {
    display: grid;
    gap: 0.75rem;
    list-style: none;
}

.feature-item {
    padding: 1rem;
    border: 1px solid rgba(203, 213, 225, 0.22);
    border-left: 4px solid var(--sky);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.feature-item h2 {
    margin-bottom: 0.3rem;
    color: #ffffff;
    font-size: 1.05rem;
    line-height: 1.25;
}

.feature-item p {
    color: #dbeafe;
    line-height: 1.55;
}

.auth-shell {
    min-height: 100vh;
    padding: 134px 20px 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-panel {
    width: min(100%, 470px);
    padding: clamp(1.4rem, 4vw, 2rem);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.auth-eyebrow {
    margin-bottom: 0.45rem;
    color: var(--teal);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-title {
    margin-bottom: 0.65rem;
    color: var(--navy);
    font-size: 2rem;
    line-height: 1.15;
}

.auth-copy {
    margin-bottom: 1.35rem;
    color: var(--muted);
    line-height: 1.6;
}

.auth-error {
    margin-bottom: 1rem;
    padding: 0.78rem 0.9rem;
    color: #7f1d1d;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    border-radius: 8px;
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-form + .auth-form {
    margin-top: 1rem;
}

.auth-label {
    display: grid;
    gap: 0.45rem;
    color: var(--navy);
    font-weight: 750;
}

.auth-input {
    width: 100%;
    min-height: 46px;
    padding: 0.75rem 0.85rem;
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
}

.auth-input:focus {
    outline: 3px solid rgba(56, 189, 248, 0.22);
    border-color: var(--blue-2);
}

.auth-submit {
    width: 100%;
    border: 0;
    cursor: pointer;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--muted);
    font-weight: 700;
}

.auth-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--blue);
}

.auth-links {
    margin-top: 1.25rem;
    display: grid;
    gap: 0.65rem;
    color: var(--muted);
}

.auth-links a,
.auth-inline-link,
.auth-inline-button {
    color: var(--blue);
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
}

.oauth-placeholder {
    margin-top: 1.4rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
}

.oauth-button {
    width: 100%;
    min-height: 46px;
    color: var(--subtle);
    background: #f1f5f9;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    font-weight: 800;
    cursor: not-allowed;
}

.data-page {
    padding-top: 110px;
}

.data-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 0 0 48px;
}

.data-card {
    padding: clamp(1.1rem, 3vw, 1.5rem);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.data-heading {
    margin-bottom: 1rem;
}

.data-heading h1 {
    margin-bottom: 0.35rem;
    color: var(--navy);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.1;
}

.data-heading p {
    max-width: 780px;
    color: var(--muted);
    line-height: 1.55;
}

.data-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-page table.c {
    width: 100% !important;
    table-layout: auto;
}

.data-page div.dataTables_wrapper {
    float: none;
    width: 100%;
}

.data-page .dataTables_filter {
    width: 100%;
    margin-bottom: 0.9rem;
    text-align: left !important;
}

.data-page .dataTables_filter label {
    color: var(--navy);
    font-weight: 800;
}

.data-page .dataTables_filter input,
.data-page .dataTables_length select {
    min-height: 38px;
    margin-left: 0.45rem;
    color: var(--text);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #ffffff;
}

.data-page table.dataTable {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.data-page table.dataTable thead th,
.data-page table.dataTable tfoot th {
    color: var(--navy);
    background: #eaf2ff;
    border-bottom: 1px solid var(--line-strong);
}

.data-page table.dataTable tbody td {
    color: var(--text);
    border-bottom: 1px solid #e8eef8;
}

.data-page table.dataTable tbody tr:hover {
    background: #f1f7ff;
}

tr.highlight {
    background-color: #dbeafe !important;
}

@media (max-width: 920px) {
    .nav-container {
        min-height: auto;
        padding: 1rem 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-menu {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.25rem;
    }

    .brand-product {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-top: 162px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .auth-shell {
        padding-top: 162px;
    }

    .data-page {
        padding-top: 156px;
    }
}

@media (max-width: 560px) {
    .nav-container,
    .data-shell {
        width: min(100% - 28px, 1180px);
    }

    .brand-logo {
        width: 136px;
    }

    .nav-link,
    .user-button {
        min-height: 34px;
        padding: 0.38rem 0.52rem;
        font-size: 0.92rem;
    }

    .hero {
        padding: 150px 14px 38px;
    }

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