:root {
    --bg: #07101b;
    --bg-soft: #0d1827;
    --panel: rgba(8, 17, 29, 0.92);
    --panel-strong: rgba(10, 22, 37, 0.98);
    --panel-border: rgba(121, 142, 171, 0.18);
    --text: #edf3fb;
    --muted: #90a1bb;
    --primary: #6ea8ff;
    --primary-dark: #4f7fe0;
    --secondary: #d7a252;
    --danger: #ff7f7f;
    --success: #7ee0a1;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: helvetica;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(110, 168, 255, 0.18), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(215, 162, 82, 0.12), transparent 22%),
        linear-gradient(180deg, #040913 0%, #091320 50%, #060d17 100%);
    position: relative;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 56px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    padding: 18px 22px;
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    background: rgba(7, 14, 24, 0.82);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #9dbfff, #5d82d6);
    color: #07101b;
    box-shadow: var(--shadow);
}

.brand strong,
.hero h1,
.panel h1,
.panel h2 {
    font-family: helvetica;
    letter-spacing: 0.02em;
}

.brand small,
.eyebrow,
.detail-list span,
.info-card span,
th {
    color: var(--muted);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nav a {
    padding: 11px 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    transition: 0.2s ease;
    background: rgba(255, 255, 255, 0.03);
}

.nav a:hover {
    border-color: rgba(110, 168, 255, 0.35);
    background: rgba(110, 168, 255, 0.08);
}

.text-link {
    color: var(--secondary);
    font-weight: 700;
}

.content {
    display: grid;
    gap: 24px;
}

.hero,
.panel,
.feature-card,
.character-card,
.headline-card {
    border: 1px solid var(--panel-border);
    background: linear-gradient(180deg, rgba(10, 19, 31, 0.96), rgba(8, 16, 27, 0.96));
    backdrop-filter: blur(18px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 28px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -60px -90px auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(110, 168, 255, 0.18), transparent 68%);
}

.hero-copy p,
.feature-card p,
.empty-state,
.alert p {
    line-height: 1.7;
    color: #cfddf0;
}

.hero h1 {
    font-size: clamp(2.3rem, 5vw, 4.2rem);
    line-height: 1.08;
    margin: 12px 0 18px;
}

.hero-card,
.hero-sidebar {
    display: grid;
    gap: 14px;
    align-content: start;
}

.hero-highlight {
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(110, 168, 255, 0.14), rgba(110, 168, 255, 0.04));
    border: 1px solid rgba(110, 168, 255, 0.22);
}

.hero-highlight span,
.headline-label {
    display: block;
    margin-bottom: 8px;
    color: #a9bbd7;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
}

.hero-highlight strong {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.hero-highlight small {
    color: #d3def0;
    line-height: 1.6;
}

.stat,
.info-card {
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat strong,
.info-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.hero-actions,
.stats-grid,
.dashboard-grid,
.feature-grid,
.character-grid,
.profile-grid,
.action-grid,
.headline-strip {
    display: grid;
    gap: 16px;
}

.hero-actions {
    grid-template-columns: repeat(auto-fit, minmax(180px, max-content));
    margin-top: 24px;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

.button.primary {
    background: linear-gradient(135deg, #7aaeff, #4e7fe0);
    color: #f8fbff;
    box-shadow: 0 16px 32px rgba(78, 127, 224, 0.28);
}

.button.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.headline-card {
    padding: 20px 22px;
}

.headline-card strong {
    line-height: 1.6;
    color: #dce7f7;
}

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

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

.feature-card,
.panel {
    padding: 30px;
}

.panel.narrow {
    width: min(560px, 100%);
    margin: 0 auto;
}

.panel-head {
    margin-bottom: 20px;
}

.panel-head h1,
.panel-head h2 {
    margin: 8px 0 0;
}

.dashboard-grid {
    grid-template-columns: 1.4fr 0.9fr;
}

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

.form-grid {
    display: grid;
    gap: 16px;
}

.form-grid label {
    display: grid;
    gap: 8px;
}

input {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    outline: none;
}

input:focus {
    border-color: rgba(110, 168, 255, 0.65);
    box-shadow: 0 0 0 4px rgba(110, 168, 255, 0.14);
}

.alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
}

.alert.error {
    border-color: rgba(255, 127, 127, 0.24);
    background: rgba(255, 127, 127, 0.1);
}

.alert.success {
    border-color: rgba(126, 224, 161, 0.24);
    background: rgba(126, 224, 161, 0.1);
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}

.detail-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

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

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

th,
td {
    padding: 16px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

thead th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.empty-state {
    padding: 22px;
    text-align: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.character-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.character-card {
    padding: 24px;
    background: linear-gradient(180deg, rgba(10, 18, 30, 0.95), rgba(8, 15, 26, 0.95));
}

.character-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.asset-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.asset-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.asset-head span {
    color: var(--muted);
}

.asset-list {
    display: grid;
    gap: 10px;
}

.asset-item {
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.asset-item strong,
.asset-item span {
    display: block;
}

.asset-item span {
    margin-top: 6px;
    color: #cfddf0;
}

.asset-empty {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
}

.character-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(110, 168, 255, 0.16);
    color: #b6d1ff;
}

.iframe-wrap {
    width: 100%;
    min-height: 900px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #ffffff;
    padding: 0;
}

.iframe-wrap iframe {
    width: 100%;
    height: 900px;
    display: block;
    background: #fff;
}

@media (max-width: 900px) {
    .hero,
    .headline-strip,
    .feature-grid,
    .dashboard-grid,
    .stats-grid,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .page-shell {
        width: min(100% - 20px, 1180px);
        padding-top: 18px;
    }

    .hero,
    .panel,
    .feature-card,
    .character-card,
    .headline-card {
        padding: 20px;
        border-radius: 18px;
    }

    .nav {
        width: 100%;
    }

    .nav a {
        flex: 1 1 auto;
        text-align: center;
    }

    .hero-actions {
        grid-template-columns: 1fr;
    }

    .iframe-wrap,
    .iframe-wrap iframe {
        min-height: 760px;
        height: 760px;
    }
}
