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

:root {
    --bg: #07111f;
    --bg-deep: #020617;
    --panel: rgba(12, 20, 37, 0.82);
    --panel-strong: rgba(21, 34, 56, 0.96);
    --text: #e8eef9;
    --muted: #9aa9c2;
    --accent: #56d4ff;
    --accent-warm: #ffd166;
    --line: rgba(255, 255, 255, 0.08);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    --font-body: "Manrope", "Segoe UI", sans-serif;
    --font-display: "Sora", "Trebuchet MS", sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 14% 12%, rgba(86, 212, 255, 0.2), transparent 24%),
        radial-gradient(circle at 86% 16%, rgba(255, 209, 102, 0.14), transparent 22%),
        radial-gradient(circle at 82% 88%, rgba(103, 232, 165, 0.12), transparent 20%),
        linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 48%, #040b16 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
}

body::after {
    content: "";
    position: fixed;
    inset: -10%;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 28%, rgba(56, 189, 248, 0.12), transparent 24%),
        radial-gradient(circle at 76% 18%, rgba(255, 209, 102, 0.08), transparent 20%),
        radial-gradient(circle at 72% 74%, rgba(103, 232, 165, 0.08), transparent 18%);
    filter: blur(18px);
    opacity: 0.95;
    animation: pageAuraDrift 14s ease-in-out infinite alternate;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: #f8fbff;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    z-index: 1000;
}

.logo {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: flex;
    align-items: center;
}

.logo img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(86, 212, 255, 0.6);
    box-shadow: 0 0 24px rgba(86, 212, 255, 0.22);
}

.navbar {
    position: relative;
}

.user-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    font-weight: bold;
    font-size: 18px;
    background: var(--accent);
    color: #000;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(86, 212, 255, 0.25);
}

.dropdown {
    position: absolute;
    right: 40px;
    top: 80px;
    min-width: 230px;
    background: var(--panel-strong);
    padding: 12px;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    z-index: 1100;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    will-change: opacity, transform;
}

.dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text);
    font-weight: 700;
}

.dropdown a:hover,
.dropdown a.active {
    background: rgba(255, 255, 255, 0.08);
}

.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-6px) !important;
}

.hero-toggle {
    position: fixed;
    left: 18px;
    top: 98px;
    background: var(--accent);
    color: black;
    padding: 10px 14px;
    border: none;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.04rem;
    box-shadow: 0 12px 24px rgba(86, 212, 255, 0.22);
    cursor: pointer;
    z-index: 1000;
}

.hero-links {
    position: fixed;
    left: 18px;
    top: 148px;
    min-width: 220px;
    background: var(--panel);
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    will-change: opacity, transform;
}

.hero-links a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 700;
    color: var(--text);
}

.hero-links a:hover,
.hero-links a.active {
    background: rgba(255, 255, 255, 0.08);
}

.user-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 120px 20px 70px;
}

.user-hero {
    display: grid;
    grid-template-columns: 1.6fr 0.95fr;
    gap: 25px;
    margin-bottom: 30px;
}

.hero-copy {
    position: relative;
    overflow: hidden;
    padding: 34px;
    border-radius: 28px;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.hero-copy::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -34px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(86, 212, 255, 0.22), transparent 70%);
    pointer-events: none;
}

.hero-copy:hover,
.summary-card:hover,
.content-card:hover,
.auth-card:hover,
.table-card:hover,
.detail-card:hover,
.download-item:hover,
.stat-item:hover,
.info-strip:hover {
    transform: translateY(-4px);
    border-color: rgba(86, 212, 255, 0.24);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.42), 0 0 24px rgba(56, 189, 248, 0.08);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-warm);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14rem;
}

.hero-copy h1 {
    max-width: 720px;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    line-height: 0.98;
    letter-spacing: 0.02rem;
    margin-bottom: 14px;
}

.hero-copy p {
    color: var(--muted);
    max-width: 620px;
    font-size: 1.05rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-badge,
.meta-pill,
.inline-pill,
.card-index,
.card-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
}

.hero-badge,
.meta-pill,
.inline-pill,
.card-tag {
    background: rgba(4, 14, 28, 0.92);
    border: 1px solid rgba(86, 212, 255, 0.24);
    color: #f8fbff;
}

.card-index {
    color: var(--accent-warm);
    background: rgba(255, 209, 102, 0.1);
}

.hero-actions,
.action-row,
.inline-links,
.meta-pills,
.inline-pills,
.download-links,
.footer-links,
.table-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.footer-links {
    justify-content: center;
}

.hero-actions {
    margin-top: 26px;
    gap: 14px;
}

.primary-button,
.secondary-button,
.card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 22px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.primary-button,
.card-link {
    color: #03131f;
    background: linear-gradient(135deg, var(--accent), #8be8ff);
    box-shadow: 0 18px 34px rgba(86, 212, 255, 0.26), 0 0 22px rgba(86, 212, 255, 0.12);
}

.secondary-button {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(86, 212, 255, 0.16);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.22);
}

.primary-button:hover,
.secondary-button:hover,
.card-link:hover,
.link-card:hover {
    transform: translateY(-4px) scale(1.01);
}

.primary-button:hover,
.card-link:hover {
    box-shadow: 0 24px 42px rgba(86, 212, 255, 0.3), 0 0 28px rgba(86, 212, 255, 0.2);
}

.secondary-button:hover {
    border-color: rgba(86, 212, 255, 0.34);
    box-shadow: 0 18px 30px rgba(2, 6, 23, 0.32), 0 0 20px rgba(86, 212, 255, 0.1);
}

.hero-note {
    margin-top: 26px;
    padding: 18px 18px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.08), rgba(86, 212, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.note-kicker,
.summary-label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--accent-warm);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.hero-note p {
    max-width: none;
    font-size: 0.98rem;
}

.user-summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.summary-card,
.content-card,
.auth-card,
.table-card,
.detail-card,
.download-item,
.info-strip {
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.summary-card {
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(8, 14, 27, 0.98), rgba(5, 10, 20, 0.96));
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.summary-card-highlight,
.content-card-highlight,
.auth-card-highlight,
.table-card-highlight,
.important-card {
    background:
        radial-gradient(circle at top right, rgba(86, 212, 255, 0.24), transparent 36%),
        linear-gradient(180deg, rgba(18, 31, 53, 0.98), rgba(9, 16, 28, 0.96));
}

.summary-card-highlight,
.content-card-highlight,
.auth-card-highlight,
.table-card-highlight {
    border-color: rgba(86, 212, 255, 0.26);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.12), var(--shadow);
}

.important-card {
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.15), var(--shadow);
}

.summary-card strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1.2;
    word-break: break-word;
}

.summary-card small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.page-grid,
.page-grid-3,
.detail-grid,
.auth-grid,
.table-grid,
.download-grid,
.auth-layout {
    display: grid;
    gap: 22px;
    margin-bottom: 30px;
}

.page-grid,
.detail-grid,
.auth-grid,
.table-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.auth-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: start;
}

.content-card,
.auth-card,
.table-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(8, 14, 27, 0.98), rgba(5, 10, 20, 0.96));
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.content-card::after {
    content: "";
    position: absolute;
    inset: auto -60px -70px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(86, 212, 255, 0.1), transparent 70%);
    pointer-events: none;
}

.content-card h2,
.content-card h3,
.auth-card h2,
.auth-card h3,
.table-card h2,
.table-card h3,
.info-strip h2,
.link-card h2,
.section-head h2,
.heading-with-icon {
    font-family: var(--font-display);
    line-height: 1.05;
}

.content-card h2,
.auth-card h2,
.table-card h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    margin-bottom: 12px;
}

.content-card h3,
.auth-card h3,
.table-card h3,
.link-card h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.content-card p,
.content-card li,
.auth-card p,
.auth-card li,
.table-card p,
.table-card li,
.link-card p,
.info-strip p,
.helper-copy,
.form-copy,
.muted-copy,
.shell-table td {
    color: var(--muted);
}

.content-card p + p,
.auth-card p + p,
.table-card p + p {
    margin-top: 12px;
}

.content-card ul,
.auth-card ul,
.table-card ul,
.error-list {
    margin: 14px 0 0;
    padding-left: 18px;
}

.content-card li + li,
.auth-card li + li,
.table-card li + li {
    margin-top: 10px;
}

.stat-list,
.field-row {
    display: grid;
    gap: 12px;
}

.stat-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.stat-item,
.link-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.stat-item span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    font-weight: 700;
}

.stat-item strong {
    display: block;
    font-size: 1.1rem;
    color: #f8fbff;
}

.card-link {
    width: fit-content;
}

.detail-card,
.download-item {
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(8, 14, 27, 0.98), rgba(5, 10, 20, 0.96));
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.detail-card summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 24px;
    font-weight: 800;
    color: #f8fbff;
}

.detail-card summary::-webkit-details-marker {
    display: none;
}

.detail-card[open] summary {
    border-bottom: 1px solid var(--line);
}

.detail-card-body,
.download-item-body {
    padding: 0 24px 24px;
}

.download-item-body img {
    display: block;
    width: 100%;
    max-width: 340px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
}

.auth-form,
.stack-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.field-group {
    display: grid;
    gap: 14px;
}

.field-group label,
.auth-form label,
.stack-form label {
    display: block;
    margin-bottom: 8px;
    color: #f8fbff;
    font-size: 0.92rem;
    font-weight: 700;
}

.field-group input,
.field-group textarea,
.field-group select,
.auth-form input,
.auth-form textarea,
.auth-form select,
.stack-form input,
.stack-form textarea,
.stack-form select,
.table-card input,
.table-card textarea,
.table-card select {
    width: 100%;
    min-height: 50px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 15, 29, 0.92);
    color: var(--text);
    padding: 12px 14px;
    font: inherit;
}

.field-group textarea,
.auth-form textarea,
.stack-form textarea,
.table-card textarea {
    min-height: 120px;
    resize: vertical;
}

.table-scroll {
    overflow-x: auto;
}

.shell-table {
    width: 100%;
    border-collapse: collapse;
}

.shell-table th,
.shell-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    vertical-align: top;
}

.shell-table th {
    color: #f8fbff;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06rem;
}

.info-strip {
    margin-top: 30px;
    padding: 24px 26px;
    border-radius: 22px;
    background: var(--panel);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.info-strip h2 {
    font-size: 1.55rem;
    margin-bottom: 6px;
}

.heading-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(7, 24, 43, 0.98), rgba(19, 35, 58, 0.94));
    border: 1px solid rgba(56, 189, 248, 0.36);
    color: #7dd3fc;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.12);
}

.footer {
    width: min(1180px, calc(100% - 40px));
    margin: 30px auto 0;
    padding: 28px 20px 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer p {
    margin: 0;
    width: 100%;
    text-align: center;
}

@keyframes pageAuraDrift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(1.5%, -1.5%, 0) scale(1.06); }
}

@media (max-width: 900px) {
    .user-hero,
    .page-grid,
    .page-grid-3,
    .detail-grid,
    .auth-grid,
    .table-grid,
    .download-grid,
    .auth-layout,
    .field-row,
    .stat-list {
        grid-template-columns: 1fr;
    }

    .info-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer {
        width: min(100%, calc(100% - 28px));
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0 18px 0 78px;
    }

    .dropdown {
        right: 18px;
    }

    .hero-copy {
        padding: 26px;
        border-radius: 22px;
    }

    .hero-copy h1 {
        font-size: clamp(2.2rem, 11vw, 3.3rem);
    }

    .summary-card,
    .link-card,
    .info-strip {
        border-radius: 18px;
    }

    .footer {
        width: min(100%, calc(100% - 20px));
        padding: 24px 16px 30px;
    }
}
