:root {
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --muted-light: #94a3b8;
    --primary: #2e8b57;
    --accent: #1f4b99;
    --support-green: #2e8b57;
    --support-orange: #f28c28;
    --support-red: #d64545;
    --support-blue: #1f4b99;
    --border: #e2e8f0;
    --shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

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

body {
    font-family: "Manrope", "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: "Sora", "Manrope", sans-serif;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.15;
}

h2 {
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.2rem, 1.7vw, 1.5rem);
    line-height: 1.25;
}

a {
    color: inherit;
}

.mono {
    font-family: "JetBrains Mono", "Courier New", monospace;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.page {
    position: relative;
    z-index: 1;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(31, 41, 55, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(31, 41, 55, 0.03) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.container {
    width: min(100%, 1080px);
    margin: 0 auto;
    padding: 28px;
}

.glass {
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.site-header {
    margin: 0;
    border-radius: 0;
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.site-header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    padding: 10px 18px;
}

.brand h1 {
    font-size: 1.6rem;
    margin-bottom: 2px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 1.9rem;
    margin-bottom: 2px;
}

.brand-link {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
}

.brand-clover {
    font-size: 2.2rem;
}

.logo-7 {
    color: var(--support-blue);
}

.logo-l {
    color: var(--support-green);
}

.logo-o1 {
    color: var(--support-orange);
}

.logo-t {
    color: var(--support-red);
}

.logo-o2 {
    color: var(--support-green);
}

.subtitle {
    color: var(--muted);
}

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

.site-nav .nav-link {
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
}

.site-nav .nav-blue {
    color: var(--support-blue);
    border-color: rgba(31, 75, 153, 0.35);
}

.site-nav .nav-green {
    color: var(--support-green);
    border-color: rgba(46, 139, 87, 0.35);
}

.site-nav .nav-orange {
    color: var(--accent);
    border-color: rgba(31, 75, 153, 0.35);
}

.site-nav .nav-red {
    color: var(--support-red);
    border-color: rgba(214, 69, 69, 0.35);
}

.site-nav .nav-link:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    cursor: pointer;
    border: none;
    font: inherit;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 20;
    display: grid;
    gap: 8px;
}

.dropdown-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    padding: 6px 8px;
    border-radius: 8px;
}

.dropdown-menu a:hover {
    background: rgba(31, 75, 153, 0.08);
    color: var(--support-blue);
}

.nav-dropdown.is-open .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (hover: hover) {
    .nav-dropdown:hover .dropdown-menu {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

.nav-account {
    position: relative;
}

.account-trigger {
    cursor: pointer;
    border: none;
    font: inherit;
}

.account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 240px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 20;
    display: grid;
    gap: 12px;
}

.nav-account.is-open .account-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (hover: hover) {
    .nav-account:hover > .account-trigger {
        background: var(--support-blue);
        border-color: var(--support-blue);
        color: #ffffff;
    }

    .nav-account:hover .account-dropdown {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

.account-meta {
    display: grid;
    gap: 4px;
}

.account-name {
    font-weight: 600;
    color: var(--text);
}

.account-email {
    color: var(--muted);
    font-size: 0.9rem;
}

.account-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.account-expire {
    color: var(--muted);
    font-size: 0.85rem;
}

.account-links {
    display: grid;
    gap: 6px;
}

.account-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
}

.account-list {
    display: grid;
    gap: 8px;
    padding: 8px 0 16px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 18px;
}

.account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.98rem;
}

.account-row span {
    color: var(--muted);
}

.account-row strong {
    font-weight: 600;
    color: var(--text);
}

.profile-password-card {
    margin-top: 18px;
}

.profile-password-card .section-header.compact {
    margin-bottom: 14px;
}

.profile-password-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.profile-password-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.profile-password-form input {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 12px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    font-weight: 600;
}

.profile-password-form input:focus {
    border-color: #22c55e;
    outline: 3px solid rgba(34, 197, 94, 0.16);
}

.profile-password-form .button {
    min-height: 42px;
}

.account-plan-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}

.account-plan-form .form-field {
    min-width: 180px;
}

.account-plan-form select {
    width: 100%;
}

.saved-section {
    margin-top: 20px;
}

.saved-games-shell {
    display: grid;
    gap: 14px;
}

.saved-games-shell.is-managing {
    padding-bottom: 18px;
}

.section-header-compact {
    align-items: center;
}

.saved-compact-list {
    display: grid;
    gap: 6px;
}

.saved-compact-panel {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.saved-compact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #edf1f5;
    background: transparent;
}

.saved-compact-item:last-child {
    border-bottom: 0;
}

.saved-compact-main {
    display: grid;
    gap: 4px;
    width: 100%;
}

.saved-game-title {
    color: #0f3d7a;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.25;
}

.saved-compact-main strong,
.saved-game-line {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.5;
    font-family: 'JetBrains Mono', monospace;
}

.saved-compact-meta {
    color: var(--muted);
    font-size: 0.76rem;
}

.saved-compact-sum {
    color: #7b8797;
    font-size: 0.72rem;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.saved-compact-result {
    color: #5f6d7e;
    font-size: 0.72rem;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.saved-compact-ranking {
    color: #44627a;
    font-size: 0.72rem;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.saved-compact-base {
    color: #6d7888;
    font-size: 0.72rem;
    line-height: 1.35;
    letter-spacing: 0.01em;
    font-family: 'JetBrains Mono', monospace;
}

.saved-compact-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.saved-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
}

.saved-action-icon:hover {
    background: #eef2f7;
    color: var(--accent);
}

.saved-compact-empty {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
    color: var(--muted);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.saved-management-panel {
    margin-top: 4px;
    display: grid;
    gap: 16px;
}

.saved-management-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.saved-management-header h4 {
    margin: 0 0 3px;
    font-size: 0.98rem;
}

.saved-management-header p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.saved-manage-list {
    display: grid;
    gap: 8px;
}

.saved-manage-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid #edf1f5;
    border-radius: 0;
    background: transparent;
}

.saved-manage-list .saved-manage-item:first-child {
    border-top: 0;
}

.saved-manage-main {
    display: grid;
    gap: 6px;
}

.saved-manage-head {
    display: grid;
    gap: 3px;
}

.saved-manage-head strong {
    font-size: 0.92rem;
    font-weight: 600;
}

.saved-inline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.76rem;
}

.saved-inline-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f5f7fa;
}

.saved-rename-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.saved-rename-input {
    min-width: min(260px, 100%);
    max-width: 320px;
    padding: 8px 10px;
    font-size: 0.82rem;
}

.saved-manage-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.saved-management-empty {
    padding: 10px 0 2px;
    border-radius: 12px;
    color: var(--muted);
    background: transparent;
}

.saved-list {
    display: grid;
    gap: 14px;
    margin-top: 12px;
}

.saved-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 10px;
}

.saved-main {
    display: grid;
    gap: 6px;
}

.saved-meta {
    color: var(--muted);
    font-size: 0.85rem;
}

.saved-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.saved-actions form {
    margin: 0;
}

.saved-details {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 10px;
    background: #f8fafc;
}

.saved-details[open] {
    background: #ffffff;
}

.saved-link {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    list-style: none;
}

.saved-link::-webkit-details-marker {
    display: none;
}

.saved-preview {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

@media (max-width: 720px) {
    .nav-account {
        width: 100%;
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 8px;
        box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
    }

    .account-dropdown {
        position: static;
        width: 100%;
        margin-top: 8px;
        box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
    }

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

    .profile-password-form {
        grid-template-columns: 1fr;
    }

    .account-plan-form {
        flex-direction: column;
        align-items: stretch;
    }

    .saved-manage-item,
    .saved-compact-item {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .saved-compact-item {
        justify-content: space-between;
    }

    .saved-management-header,
    .saved-manage-actions {
        justify-content: flex-start;
    }
}

.site-nav .nav-blue:hover {
    background: var(--support-blue);
    border-color: var(--support-blue);
}

.site-nav .nav-green:hover {
    background: var(--support-green);
    border-color: var(--support-green);
}

.site-nav .nav-orange:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.site-nav .nav-red:hover {
    background: var(--support-red);
    border-color: var(--support-red);
}

.site-main {
    padding: 40px 0 70px;
}

.hero {
    border-radius: 22px;
    padding: 44px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(46, 139, 87, 0.08);
    color: var(--support-green);
}

.hero-title {
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    line-height: 1.1;
    display: grid;
    gap: 6px;
}

.hero-accent {
    color: var(--support-green);
}

.hero-title-light {
    font-weight: 500;
    color: var(--text);
}

.gradient {
    color: var(--primary);
}

.hero-subtitle {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 560px;
}

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

.generator-card {
    margin-top: 24px;
}

.generator-form {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    align-items: end;
    margin-top: 12px;
}

.form-field {
    display: grid;
    gap: 6px;
    font-weight: 500;
}

.form-field select {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
}

.form-field input {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
}

.text-input {
    width: 100%;
}

.generator-notes {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.strategy-notes {
    margin: 6px 0 8px;
    color: var(--muted);
    font-size: 0.82rem;
    display: grid;
    gap: 4px;
}

.pill {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(31, 75, 153, 0.1);
    color: var(--support-blue);
    font-size: 0.85rem;
    font-weight: 600;
}

.generator-results {
    margin-top: 24px;
}

.closure-card {
    margin-top: 24px;
}

.closure-form {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    align-items: end;
    margin-top: 12px;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-weight: 600;
}

.radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.closure-selection {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.selection-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.selection-count {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #ffffff;
    font-size: 0.9rem;
    display: grid;
    gap: 4px;
}

.selection-remaining {
    color: var(--muted);
}

.selection-complete {
    color: var(--support-green);
    font-weight: 600;
}

.is-hidden {
    display: none;
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    gap: 8px;
}

.number-option {
    position: relative;
}

.number-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.number-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #ffffff;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.number-option input:checked + .number-pill {
    background: rgba(28, 107, 168, 0.14);
    border-color: var(--support-blue);
    color: var(--support-blue);
}

.number-option input:disabled + .number-pill {
    opacity: 0.4;
    cursor: not-allowed;
}

.base-preview {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

.card-upgrade {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.closure-explain {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 20px;
    background: #ffffff;
    margin: 18px 0;
    display: grid;
    gap: 10px;
}

.closure-explain h3 {
    margin: 0;
    font-size: 1.05rem;
}

.closure-explain ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    display: grid;
    gap: 4px;
    font-size: 0.95rem;
}

.closure-config {
    margin-top: 16px;
}

.closure-summary {
    margin: 16px 0;
}

.summary-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.summary-block {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.summary-label {
    color: var(--muted);
    font-size: 0.9rem;
}

.summary-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.summary-value.highlight {
    color: var(--support-blue);
}

.summary-sub {
    margin-top: 6px;
    font-size: 0.95rem;
}

.summary-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.summary-note {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.95rem;
}

.closure-games-list {
    margin: 16px 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.closure-games-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #ffffff;
}

.closure-games-list .game-line {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.game-card-grid.is-hidden {
    display: none;
}

.small-note {
    margin-top: 12px;
    font-size: 0.85rem;
}

.game-list {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.game-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.game-card-visual {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    background: #ffffff;
    display: grid;
    gap: 12px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.game-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.game-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ticket-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(36px, 1fr));
    gap: 6px;
}

.ticket-cell {
    display: grid;
    place-items: center;
    padding: 8px 0;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
}

.ticket-cell.is-selected {
    background: rgba(31, 75, 153, 0.15);
    border-color: var(--support-blue);
    color: var(--support-blue);
    font-weight: 700;
}

.ticket-cell.is-empty {
    background: #f5f7fb;
    color: #8a94a6;
}

.game-card {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #f8fafc;
}

.game-numbers {
    font-family: "JetBrains Mono", monospace;
    font-size: 1rem;
    letter-spacing: 0.06em;
    color: var(--text);
}

.top-game-card {
    display: grid;
    gap: 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    border-top: 4px solid var(--accent);
    margin-top: 32px;
}

.top-game-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.top-game-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.top-game-save-form {
    display: inline-flex;
    margin: 0;
}

.top-game-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--support-blue);
    background: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.top-game-save {
    color: var(--support-green);
    border-color: rgba(46, 139, 87, 0.3);
}

.top-game-action:hover {
    border-color: var(--support-blue);
    background: rgba(31, 75, 153, 0.08);
    transform: translateY(-1px);
}

.top-game-save:hover {
    border-color: var(--support-green);
    background: rgba(46, 139, 87, 0.12);
}

.top-game-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px 14px;
}

.top-game-metrics div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #f8fafc;
    font-size: 0.9rem;
}

.top-game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    font-size: 0.9rem;
}

.top-game-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(31, 75, 153, 0.08);
    color: var(--accent);
    border: 1px solid rgba(31, 75, 153, 0.18);
}

.top-games-card {
    margin-top: 32px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #ffffff;
    padding: 20px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.top-games-list {
    display: grid;
    gap: 12px;
}

.top-game-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.top-game-rank {
    font-weight: 700;
    color: var(--support-blue);
    font-size: 1rem;
}

.top-game-body {
    display: grid;
    gap: 6px;
}

.top-game-stats,
.top-game-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--muted);
}

.copy-area {
    width: 100%;
    min-height: 120px;
    margin-top: 16px;
    border-radius: 12px;
    border: 1px solid #cccccc;
    padding: 12px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.9rem;
    background: #ffffff;
    color: var(--text);
}

input::placeholder,
textarea::placeholder {
    color: #666666;
}

.check-card {
    margin-top: 12px;
}

.check-form {
    display: grid;
    gap: 12px;
}

.check-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.check-input {
    min-height: 90px;
}

.check-results {
    margin-top: 16px;
    display: grid;
    gap: 14px;
}

.check-meta {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: var(--text);
    font-size: 0.95rem;
}

.check-highlight {
    font-weight: 700;
    color: var(--text);
}

.check-numbers {
    display: grid;
    gap: 8px;
}

.features {
    margin-top: 32px;
}

.muted {
    color: var(--muted);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--border);
}

.hero-metrics span {
    color: var(--muted);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.card-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
    background: var(--card);
    border-radius: 20px;
    padding: 22px;
    border: 1px solid var(--border);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 12px;
    transition: all 0.2s ease;
}

.card-highlight {
    border-color: rgba(31, 75, 153, 0.32);
    background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
    box-shadow: 0 18px 36px rgba(31, 75, 153, 0.14);
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(31, 75, 153, 0.3);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.card-header {
    display: grid;
    gap: 8px;
}

.card-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
}

.card-link.muted {
    color: var(--muted);
}

.play-now-page {
    display: grid;
    gap: 18px;
}

.play-now-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(31, 75, 153, 0.14);
    background:
        radial-gradient(circle at top right, rgba(31, 75, 153, 0.13), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f3f8ff 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.play-now-hero .section-title {
    margin-bottom: 8px;
}

.play-now-hero .subtitle {
    max-width: 680px;
}

.play-now-card {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.play-now-notice {
    margin: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
}

.badge-cyan {
    background: rgba(31, 75, 153, 0.12);
    color: var(--support-blue);
}

.badge-purple {
    background: rgba(46, 139, 87, 0.12);
    color: var(--support-green);
}

.badge-green {
    background: rgba(46, 139, 87, 0.14);
    color: var(--support-green);
}

.badge-orange {
    background: rgba(242, 140, 40, 0.14);
    color: var(--support-orange);
}

.badge-blue {
    background: rgba(31, 75, 153, 0.14);
    color: var(--support-blue);
}

.badge-red {
    background: rgba(214, 69, 69, 0.14);
    color: var(--support-red);
}

.badge-free {
    background: rgba(46, 139, 87, 0.14);
    color: var(--support-green);
}

.badge-pro {
    background: rgba(242, 140, 40, 0.16);
    color: var(--support-orange);
}

.badge-master {
    background: rgba(31, 75, 153, 0.16);
    color: var(--support-blue);
}

.badge-sm {
    font-size: 0.65rem;
    padding: 3px 8px;
}

.badge-inline {
    margin-left: 6px;
    align-self: center;
}

.upgrade-callout {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(31, 75, 153, 0.18);
    background: rgba(31, 75, 153, 0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.upgrade-text {
    display: grid;
    gap: 4px;
}

.upgrade-title {
    font-weight: 600;
}

.upgrade-meta {
    color: var(--muted);
    font-size: 0.9rem;
}

.content {
    border-radius: 20px;
    padding: 32px;
}

.dashboard {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.dashboard-shell {
    background: #f8fafc;
    border-radius: 24px;
    padding: 36px;
    border: 1px solid #dbe4ef;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
}

.dashboard .stat-card,
.dashboard .metric-card,
.dashboard .card,
.dashboard .simulator-panel,
.dashboard .simulator-result,
.dashboard .top-game-card,
.dashboard .top-games-card,
.dashboard .top-game-item {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12) !important;
}

.dashboard .section-title {
    font-size: 2rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}

.dashboard .hero {
    border-radius: 24px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid #dbeafe;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.dashboard .top-game-card {
    border-top: 6px solid #2563eb !important;
}

.dashboard .metric-card {
    border-top: 4px solid var(--primary) !important;
}

.dashboard .simulator-result {
    border-top: 6px solid var(--primary) !important;
}

.dashboard .section-header h2 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin-bottom: 6px;
}

.dashboard .section-header p {
    color: var(--muted);
    font-size: 1.05rem;
}

.section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.draw-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 16px 0 20px;
    padding: 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--border);
}

.draw-label {
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.draw-numbers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
    gap: 10px;
}

.draw-number {
    display: grid;
    place-items: center;
    height: 48px;
    border-radius: 12px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
}

.draw-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.draw-detail-item {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--border);
}

.draw-detail-label {
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.draw-detail-value {
    color: var(--text);
    font-size: 0.94rem;
    line-height: 1.4;
}

.draw-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.draw-awards {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--border);
}

.draw-award-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.draw-award-row:last-child {
    border-bottom: 0;
}

.draw-award-row.is-primary .draw-award-label,
.draw-award-row.is-primary .draw-award-meta {
    color: #1849a9;
}

.draw-award-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #243447;
}

.draw-award-meta {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    color: #5f6d7e;
    font-size: 0.82rem;
    text-align: right;
}

.history-filters {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--border);
}

.history-filters label {
    display: grid;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--muted);
}

.history-filters input {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
}

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

.history-list {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.auth-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 28px;
    max-width: 520px;
    margin: 24px auto;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.auth-form {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.auth-note {
    margin-top: 16px;
    color: var(--muted);
    text-align: center;
}

.auth-note a {
    color: var(--support-blue);
    font-weight: 600;
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin-top: 12px;
    font-size: 0.92rem;
}

.auth-alert-info {
    background: #eef6ff;
    border: 1px solid #c7ddf7;
    color: #0f3d7a;
}

.auth-alert-warning {
    background: #fff7e6;
    border: 1px solid #f2d6a8;
    color: #7a4a00;
}

.auth-alert-error {
    background: #ffefef;
    border: 1px solid #f2b8b8;
    color: #7a1f1f;
}

.auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.login-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 460px);
    gap: 28px;
    align-items: stretch;
    padding: 32px;
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 28%),
        radial-gradient(circle at bottom right, rgba(29, 100, 255, 0.16), transparent 34%),
        linear-gradient(135deg, hsl(224 40% 12%) 0%, hsl(220 48% 18%) 58%, hsl(217 70% 20%) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 64px rgba(2, 8, 23, 0.28);
}

.login-shell::before,
.login-shell::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(28px);
    opacity: 0.7;
}

.login-shell::before {
    width: 180px;
    height: 180px;
    top: -48px;
    right: 18%;
    background: rgba(34, 211, 238, 0.18);
}

.login-shell::after {
    width: 220px;
    height: 220px;
    bottom: -88px;
    left: -60px;
    background: rgba(29, 100, 255, 0.18);
}

.login-intro,
.login-panel {
    position: relative;
    z-index: 1;
}

.login-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    color: rgba(255, 255, 255, 0.88);
    padding: 8px 4px;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: hsl(190 90% 74%);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.login-title {
    margin: 0;
    max-width: 10ch;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.05;
}

.login-subtitle {
    margin: 0;
    max-width: 58ch;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    line-height: 1.7;
}

.login-highlights {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.login-highlight {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.login-highlight strong {
    color: #ffffff;
    font-size: 0.95rem;
}

.login-highlight span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
    line-height: 1.55;
}

.login-panel {
    align-self: center;
    width: 100%;
    margin: 0;
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 255, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 54px rgba(2, 8, 23, 0.22);
}

.login-panel-header {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.login-panel-header h2 {
    margin: 0;
    color: hsl(224 40% 12%);
    font-size: 1.75rem;
    line-height: 1.15;
}

.login-panel-header p {
    margin: 0;
    color: rgba(15, 23, 42, 0.72);
    line-height: 1.6;
}

.login-panel .section-badge {
    width: fit-content;
    margin-bottom: 2px;
}

.login-panel .auth-form {
    gap: 16px;
    margin-top: 8px;
}

.login-panel .form-field {
    gap: 8px;
    color: hsl(224 40% 18%);
    font-weight: 600;
}

.login-panel .text-input {
    min-height: 50px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.login-panel .text-input:focus {
    border-color: rgba(29, 100, 255, 0.38);
    box-shadow:
        0 0 0 4px rgba(34, 211, 238, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.login-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
}

.login-panel .auth-note {
    margin-top: 18px;
    color: rgba(15, 23, 42, 0.68);
}

.login-panel .auth-note a {
    color: hsl(217 91% 50%);
}

.login-panel .auth-alert {
    margin-top: 0;
    margin-bottom: 14px;
}

@media (max-width: 980px) {
    .login-shell {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .login-title,
    .login-subtitle {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .login-shell {
        padding: 18px;
        border-radius: 14px;
    }

    .login-panel {
        padding: 22px;
    }

    .login-title {
        font-size: 1.9rem;
    }
}

.history-item {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    background: #ffffff;
    display: grid;
    gap: 12px;
    transition: all 0.2s ease;
}

.history-item:hover {
    border-color: rgba(31, 75, 153, 0.25);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-size: 0.95rem;
}

.history-meta strong {
    color: var(--text);
    font-weight: 600;
}

.history-numbers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(38px, 1fr));
    gap: 8px;
}

.history-number {
    display: grid;
    place-items: center;
    height: 36px;
    border-radius: 10px;
    background: rgba(46, 139, 87, 0.12);
    color: var(--text);
    font-weight: 600;
}

.history-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: #5f6d7e;
    font-size: 0.82rem;
    line-height: 1.45;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding: 12px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--border);
}

.page-info {
    color: var(--muted);
    font-size: 0.95rem;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.metric-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
    border-top: 3px solid var(--primary);
    display: grid;
    gap: 6px;
}

.stats-label {
    color: var(--muted-light);
    font-size: 0.85rem;
    display: block;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.stats-value {
    display: block;
    font-size: 1.65rem;
    font-weight: 700;
}

.stats-grid {
    display: grid;
    gap: 20px;
}

.stats-home {
    margin-top: 32px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.stats-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.stat-panel {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    display: grid;
    gap: 12px;
}

.stat-panel h3 {
    color: var(--primary);
    font-size: 1rem;
}

.stat-list-simple {
    list-style: none;
    display: grid;
    gap: 8px;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
}

.stat-list-simple li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
}

.stat-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.number-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.number-badges span {
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid rgba(31, 75, 153, 0.2);
    background: rgba(31, 75, 153, 0.08);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
}

.number-badges span.hit {
    background: #dcfce7;
    border-color: #16a34a;
    color: #14532d;
    font-weight: 700;
}

.number-badges span.miss {
    background: #fee2e2;
    border-color: #ef4444;
    color: #7f1d1d;
    font-weight: 600;
}

.number-badges-muted span {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
}

.card-section {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.stat-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.mini-table {
    display: grid;
    gap: 6px;
}

.mini-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--muted);
}

.mini-row strong {
    color: var(--text);
}

.stat-card {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px;
    background: #ffffff;
    color: var(--text);
    display: grid;
    gap: 12px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.stat-card h3 {
    color: var(--text);
}

.stat-card h4 {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.stat-list {
    list-style: none;
    display: grid;
    gap: 10px;
    font-family: "JetBrains Mono", monospace;
}

.stat-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-number {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
}

.stat-meta {
    color: var(--muted);
    font-size: 0.9rem;
    font-family: "JetBrains Mono", monospace;
}

.stat-pairs {
    display: grid;
    gap: 12px;
    font-family: "JetBrains Mono", monospace;
}

.stat-table {
    display: grid;
    gap: 8px;
    font-family: "JetBrains Mono", monospace;
}

.stat-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.9rem;
}

.stats-section {
    margin-top: 40px;
    display: grid;
    gap: 18px;
    padding: 26px;
    border-radius: 22px;
    background: #eef2f7;
    border: 1px solid var(--border);
    border-left: 4px solid var(--section-accent, var(--accent));
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.stats-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 24px;
}

.stats-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.stats-nav a:hover {
    background: rgba(31, 75, 153, 0.08);
    color: var(--accent);
    border-color: rgba(31, 75, 153, 0.2);
}

.stats-nav a.is-active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.subpage-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
}

.subpage-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.subpage-nav a:hover {
    background: rgba(31, 75, 153, 0.08);
    color: var(--accent);
    border-color: rgba(31, 75, 153, 0.2);
}

.subpage-nav a.is-active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.section-title {
    font-size: 1.85rem;
    color: var(--section-accent, var(--text));
    font-weight: 700;
    margin-bottom: 6px;
}

.section-general { --section-accent: var(--accent); }
.section-frequency { --section-accent: var(--accent); }
.section-delays { --section-accent: var(--accent); }
.section-patterns { --section-accent: var(--accent); }
.section-prizes { --section-accent: var(--accent); }
.section-cities { --section-accent: var(--accent); }
.section-sequences { --section-accent: var(--accent); }
.section-simulator { --section-accent: var(--primary); }
.section-suggestions { --section-accent: var(--primary); }

.simulator-panel {
    display: grid;
    gap: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.simulator-result {
    margin-top: 16px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.top-game-card {
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.top-game-metrics div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #f8fafc;
    font-size: 0.9rem;
}

.top-game-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(31, 75, 153, 0.08);
    color: var(--accent);
    border: 1px solid rgba(31, 75, 153, 0.18);
}

.top-game-item {
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.stat-table-scroll {
    display: grid;
    gap: 8px;
    max-height: 360px;
    overflow: auto;
    padding-right: 4px;
}

.stat-row-wide span {
    flex: 1 1 auto;
}

.stat-row-wide .mono {
    flex: 2 1 240px;
    text-align: right;
}

.stat-card-wide {
    grid-column: 1 / -1;
}

@media (max-width: 720px) {
    .stat-row-wide {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .stat-row-wide .mono {
        text-align: left;
    }
}

.notice {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.notice-details {
    margin-top: 8px;
    display: grid;
    gap: 6px;
    font-size: 0.95rem;
}

.upload-form {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.upload-field {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 14px;
    border: 2px dashed rgba(31, 41, 55, 0.2);
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.upload-field:hover {
    border-color: rgba(31, 75, 153, 0.4);
    background: #f1f5f9;
}

.upload-title {
    font-weight: 600;
}

.upload-hint {
    color: var(--muted);
    font-size: 0.9rem;
}

.upload-input {
    width: 100%;
}

.table-scroll {
    max-height: 360px;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: 12px;
    background: #ffffff;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.admin-table th,
.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(31, 41, 55, 0.08);
    text-align: left;
}

.admin-table th {
    background: #f3f4f6;
    font-weight: 600;
}

.stats-data-table .stats-summary-count {
    white-space: nowrap;
}

.stats-data-table .stats-contest-list {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.9rem;
    line-height: 1.65;
    white-space: normal;
    overflow-wrap: anywhere;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    border: none;
    box-shadow: 0 10px 20px rgba(46, 139, 87, 0.18);
    transition: all 0.2s ease;
}

.button-secondary {
    background: var(--accent);
    color: #ffffff;
}

.button-tertiary {
    background: #e2e8f0;
    color: var(--text);
}

.button-danger {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.18);
}

.button-danger:hover {
    background: #dc2626;
}

.button-disabled {
    background: #e5e7eb;
    color: #6b7280;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: auto;
}

.button-sm {
    margin-top: 0;
    padding: 8px 12px;
    font-size: 0.82rem;
    box-shadow: none;
}

.button:hover {
    filter: brightness(0.95);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(46, 139, 87, 0.22);
}

.button-disabled:hover {
    filter: none;
    transform: none;
    box-shadow: none;
}

.site-footer {
    border-top: 1px solid rgba(31, 41, 55, 0.1);
    background: transparent;
    color: var(--muted);
    font-size: 0.9rem;
    padding-bottom: 30px;
}

.app-shell {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    min-height: 100vh;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 290px;
    padding: 28px 20px;
    background: linear-gradient(180deg, #101a22 0%, #162430 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    color: #e5eef5;
    overflow-y: auto;
    z-index: 20;
}

.app-main {
    margin-left: 290px;
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: calc(100vw - 290px);
}

.sidebar-head {
    display: grid;
    gap: 10px;
    margin-bottom: 28px;
}

.sidebar-tag {
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.84rem;
    line-height: 1.6;
}

.app-sidebar .brand-link {
    color: #ffffff;
}

.app-sidebar .brand-logo {
    font-size: 1.7rem;
}

.app-sidebar .brand-clover {
    font-size: 1.9rem;
}

.sidebar-nav {
    display: grid;
    gap: 18px;
}

.sidebar-group {
    display: grid;
    gap: 10px;
}

.sidebar-group-label {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.85);
    font-family: "JetBrains Mono", "Courier New", monospace;
}

.sidebar-links {
    display: grid;
    gap: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 12px;
    color: rgba(226, 232, 240, 0.88);
    text-decoration: none;
    font-size: 0.94rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(2px);
}

.sidebar-link.is-active {
    background: linear-gradient(135deg, rgba(46, 139, 87, 0.22), rgba(31, 75, 153, 0.2));
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 28px;
    background: rgba(248, 250, 252, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(31, 41, 55, 0.08);
}

.topbar-meta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.topbar-user {
    display: grid;
    justify-items: end;
    gap: 2px;
    text-align: right;
}

.topbar-user strong {
    font-size: 0.92rem;
    line-height: 1.15;
}

.topbar-user span {
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.1;
}

.topbar-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sidebar-toggle {
    display: none;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
    border-radius: 12px;
    padding: 8px 12px;
    font-weight: 600;
    cursor: pointer;
}

.site-main {
    padding: 26px 0 48px;
}

.main-content {
    width: 100%;
    min-width: 0;
}

.main-content-inner {
    width: 100%;
    padding: 24px 28px 40px;
}

.container {
    width: 100%;
    padding: 0 28px;
}

.glass,
.card,
.saved-compact-panel,
.saved-management-panel,
.saved-management-empty,
.saved-compact-empty,
.stat-card,
.metric-card,
.stat-panel,
.top-game-card,
.top-games-card {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.site-main > .main-content-inner > .content,
.site-main > .main-content-inner > .dashboard,
.site-main > .main-content-inner > .dashboard .dashboard-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.site-main > .main-content-inner > .content.glass,
.site-main > .main-content-inner > .dashboard.glass {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.dashboard-shell {
    gap: 22px;
}

@media (max-width: 980px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: 18px 0 40px rgba(15, 23, 42, 0.18);
    }

    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .app-main {
        margin-left: 0;
        width: 100%;
    }

    .sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .app-topbar {
        padding: 16px 20px;
    }

    .main-content-inner,
    .container {
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .topbar-meta {
        width: 100%;
        justify-content: space-between;
    }

    .topbar-user {
        text-align: left;
    }

    .main-content-inner,
    .container {
        padding: 16px;
    }
}

body {
    background:
        radial-gradient(circle at top left, rgba(46, 139, 87, 0.07), transparent 28%),
        radial-gradient(circle at top right, rgba(31, 75, 153, 0.07), transparent 30%),
        #f5f7fb;
}

.page.app-shell {
    display: block;
    min-height: 100vh;
}

.top-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.top-header-inner {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    width: 100%;
    padding: 12px 24px;
}

.top-header-brand {
    display: flex;
    align-items: center;
}

.top-navigation {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.top-navigation-groups {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    min-width: 0;
}

.topnav-group {
    position: relative;
    padding-bottom: 0;
}

.topnav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.93rem;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.topnav-caret {
    font-size: 0.8rem;
    color: var(--muted);
}

.topnav-group.is-active > .topnav-trigger,
.topnav-trigger:hover,
.topnav-group:hover > .topnav-trigger,
.topnav-group:focus-within > .topnav-trigger {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    color: var(--primary);
}

.topnav-group.is-active > .topnav-trigger .topnav-caret,
.topnav-trigger:hover .topnav-caret,
.topnav-group:hover > .topnav-trigger .topnav-caret,
.topnav-group:focus-within > .topnav-trigger .topnav-caret {
    color: var(--primary);
}

.topnav-dropdown {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    min-width: 220px;
    padding: 8px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
    display: grid;
    gap: 2px;
    opacity: 0;
    transform: translateY(-2px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 60;
}

.topnav-group:hover .topnav-dropdown,
.topnav-group:focus-within .topnav-dropdown,
.topnav-group.is-open .topnav-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.topnav-dropdown a {
    display: block;
    padding: 7px 9px;
    border-radius: 7px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.89rem;
    font-weight: 500;
}

.topnav-dropdown a:hover,
.topnav-dropdown a.is-active {
    background: rgba(46, 139, 87, 0.09);
    color: var(--primary);
}

.topnav-dropdown a.is-featured {
    background: rgba(31, 75, 153, 0.1);
    color: var(--primary);
    font-weight: 800;
}

.top-navigation-meta {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.top-account-meta {
    margin-left: auto;
    flex-direction: column;
    gap: 6px;
    flex-wrap: nowrap;
}

.topnav-account {
    align-self: flex-end;
}

.topnav-dropdown-account {
    left: auto;
    right: 0;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.app-main {
    margin-left: 0;
    width: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.app-topbar {
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 24px 0;
    background: transparent;
    border: 0;
    backdrop-filter: none;
}

.topbar-page-info {
    display: grid;
    gap: 0;
}

.topbar-page-info strong {
    font-size: 0.88rem;
    letter-spacing: 0.01em;
}

.topbar-expire {
    color: var(--muted);
    font-size: 0.78rem;
}

.site-main {
    padding: 16px 0 40px;
}

.main-content-inner {
    width: 100%;
    padding: 0 24px 36px;
}

.container {
    width: 100%;
    margin: 0;
    max-width: none;
    padding: 0 24px;
}

.content {
    padding: 20px;
}

.dashboard-shell {
    padding: 0;
}

.site-main > .main-content-inner > .content,
.site-main > .main-content-inner > .dashboard,
.site-main > .main-content-inner > .dashboard .dashboard-shell {
    width: 100%;
    max-width: none;
    margin: 0;
}

.site-main > .main-content-inner > .dashboard,
.site-main > .main-content-inner > .dashboard .dashboard-shell {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.site-main > .main-content-inner > .content.glass,
.site-main > .main-content-inner > .dashboard.glass {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.hero,
.card,
.stat-panel,
.stat-card,
.metric-card,
.saved-compact-panel,
.saved-management-panel,
.saved-management-empty,
.saved-compact-empty,
.top-game-card,
.top-games-card {
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.card,
.hero,
.content {
    background: rgba(255, 255, 255, 0.92);
}

.button {
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 6px 14px rgba(46, 139, 87, 0.14);
}

.button-sm {
    padding: 7px 10px;
    border-radius: 7px;
}

.button:hover {
    box-shadow: 0 8px 18px rgba(46, 139, 87, 0.16);
}

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

.hero-content {
    gap: 12px;
}

.hero-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    gap: 2px;
}

.hero-subtitle {
    font-size: 0.98rem;
    max-width: 720px;
}

.tag {
    padding: 4px 9px;
}

.card-grid {
    gap: 12px;
}

.card {
    padding: 18px;
}

.section-header {
    gap: 10px;
    margin-bottom: 14px;
}

.section-title {
    margin-bottom: 2px;
}

.subtitle {
    font-size: 0.92rem;
}

@media (max-width: 980px) {
    .top-header-inner {
        grid-template-columns: 1fr auto;
        gap: 16px;
        padding: 12px 18px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .top-navigation {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        padding-top: 8px;
        flex-direction: column;
        align-items: stretch;
    }

    .top-navigation.is-open {
        display: flex;
    }

    .top-navigation-groups,
    .top-navigation-meta {
        width: 100%;
        display: grid;
        gap: 8px;
    }

    .top-account-meta {
        margin-left: 0;
    }

    .topnav-group {
        width: 100%;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.92);
    }

    .topnav-account {
        justify-self: stretch;
    }

    .topnav-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 10px 12px;
    }

    .topnav-dropdown {
        position: static;
        min-width: 0;
        padding: 0 10px 10px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        display: none;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .topnav-group.is-open .topnav-dropdown {
        display: grid;
    }

    .app-topbar,
    .main-content-inner,
    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .app-topbar {
        padding-top: 12px;
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar-user {
        justify-items: start;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .top-header-inner,
    .app-topbar,
    .main-content-inner,
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .content {
        padding: 16px;
    }

    .topbar-meta {
        width: 100%;
        justify-content: flex-start;
    }
}


/* 2026-03-29 visual refresh: confidence + fintech + subtle futurism */
:root {
    --bg: hsl(222 47% 97%);
    --card: #ffffff;
    --surface: hsl(220 33% 99%);
    --text: hsl(224 40% 12%);
    --muted: hsl(220 14% 37%);
    --muted-light: hsl(220 14% 57%);
    --primary: hsl(217 91% 50%);
    --accent: hsl(170 75% 42%);
    --navy: hsl(224 40% 12%);
    --cyan: hsl(190 90% 50%);
    --support-green: hsl(170 75% 42%);
    --support-orange: hsl(30 92% 56%);
    --support-red: hsl(0 72% 56%);
    --support-blue: hsl(217 91% 50%);
    --plan-pro: hsl(170 75% 42%);
    --plan-master: hsl(43 92% 56%);
    --border: hsla(224, 40%, 12%, 0.09);
    --border-strong: hsla(224, 40%, 12%, 0.14);
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.06);
    --card-shine: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(244,248,255,0.96) 100%);
    --hero-gradient: linear-gradient(135deg, hsl(224 40% 12%) 0%, hsl(221 62% 18%) 48%, hsl(217 78% 28%) 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Outfit", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(19, 108, 255, 0.09), transparent 30%),
        radial-gradient(circle at top right, rgba(0, 220, 255, 0.08), transparent 26%),
        var(--bg);
    color: var(--text);
}

h1, h2, h3, h4, h5, h6,
button, input, select, textarea {
    font-family: "Outfit", "Segoe UI", sans-serif;
}

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.03em;
}

.bg-grid {
    opacity: 0.18;
    background-image:
        linear-gradient(to right, rgba(18, 35, 72, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(18, 35, 72, 0.045) 1px, transparent 1px);
    background-size: 96px 96px;
}

.top-header {
    background: rgba(15, 24, 48, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 30px rgba(2, 8, 23, 0.28);
}

.top-header-inner {
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand-link,
.top-navigation,
.top-navigation a,
.topnav-trigger {
    color: rgba(255, 255, 255, 0.9);
}

.brand-logo {
    font-size: 2rem;
    font-weight: 800;
}

.brand-clover {
    font-size: 2.1rem;
}

.topnav-trigger {
    min-height: 38px;
    padding: 8px 12px;
    border-color: transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
}

.topnav-caret {
    color: rgba(255, 255, 255, 0.48);
}

.topnav-group.is-active > .topnav-trigger,
.topnav-trigger:hover,
.topnav-group:hover > .topnav-trigger,
.topnav-group:focus-within > .topnav-trigger {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.topnav-group.is-active > .topnav-trigger .topnav-caret,
.topnav-trigger:hover .topnav-caret,
.topnav-group:hover > .topnav-trigger .topnav-caret,
.topnav-group:focus-within > .topnav-trigger .topnav-caret {
    color: rgba(128, 229, 255, 0.9);
}

.topnav-dropdown {
    top: calc(100% + 4px);
    background: rgba(9, 17, 34, 0.98);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 40px rgba(2, 8, 23, 0.34);
}

.topnav-dropdown a {
    color: rgba(255, 255, 255, 0.82);
    border-radius: 10px;
}

.topnav-dropdown a:hover,
.topnav-dropdown a.is-active {
    background: rgba(29, 100, 255, 0.18);
    color: #ffffff;
}

.topbar-user strong {
    color: #ffffff;
    font-weight: 700;
}

.topbar-user span {
    color: rgba(255, 255, 255, 0.58);
}

.badge,
.badge-sm {
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.badge-free {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    border-color: rgba(255, 255, 255, 0.1);
}

.badge-pro {
    background: rgba(19, 184, 166, 0.14);
    color: var(--plan-pro);
    border-color: rgba(19, 184, 166, 0.22);
}

.badge-master {
    background: rgba(245, 158, 11, 0.16);
    color: var(--plan-master);
    border-color: rgba(245, 158, 11, 0.24);
}

.badge-blue,
.badge-cyan {
    background: rgba(29, 100, 255, 0.12);
    color: var(--primary);
    border-color: rgba(29, 100, 255, 0.16);
}

.badge-green {
    background: rgba(19, 184, 166, 0.14);
    color: var(--accent);
    border-color: rgba(19, 184, 166, 0.22);
}

.badge-orange {
    background: rgba(249, 115, 22, 0.12);
    color: var(--support-orange);
    border-color: rgba(249, 115, 22, 0.18);
}

.badge-red {
    background: rgba(239, 68, 68, 0.12);
    color: var(--support-red);
    border-color: rgba(239, 68, 68, 0.18);
}

.app-topbar {
    padding-top: 18px;
    padding-bottom: 4px;
}

.topbar-page-info strong {
    font-size: 0.84rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.topbar-expire {
    color: var(--muted-light);
}

.site-main {
    padding-top: 22px;
}

.hero,
.hero-gradient {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--hero-gradient);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.16);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(22px);
    pointer-events: none;
}

.hero::before {
    width: 220px;
    height: 220px;
    right: -40px;
    top: -20px;
    background: rgba(30, 144, 255, 0.22);
}

.hero::after {
    width: 170px;
    height: 170px;
    left: 52%;
    bottom: -70px;
    background: rgba(0, 240, 255, 0.14);
}

.hero-content {
    position: relative;
    z-index: 1;
    gap: 16px;
}

.hero .tag {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-title,
.hero-subtitle,
.hero .button-secondary {
    color: #ffffff;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.35rem);
    max-width: 760px;
}

.hero-subtitle {
    max-width: 640px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.03rem;
}

.hero-accent,
.text-gradient-blue {
    background: linear-gradient(90deg, var(--primary) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.84rem;
    font-weight: 500;
}

.features,
.stats-home,
.content {
    margin-top: 28px;
}

.section-header h2 {
    font-size: clamp(1.55rem, 2.4vw, 2.2rem);
}

.section-header p,
.subtitle,
.muted {
    color: var(--muted);
}

.tag {
    border-radius: 999px;
    background: rgba(29, 100, 255, 0.08);
    color: var(--primary);
    border: 1px solid rgba(29, 100, 255, 0.12);
}

.card,
.stat-panel,
.metric-card,
.saved-compact-panel,
.saved-management-panel,
.saved-management-empty,
.saved-compact-empty,
.top-game-card,
.top-games-card,
.hero-metrics,
.notice,
.upgrade-callout,
.admin-table-wrap,
.auth-card {
    background: var(--card-shine);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.card,
.stat-panel,
.metric-card,
.top-game-card,
.top-games-card {
    position: relative;
}

.card:hover,
.stat-panel:hover,
.metric-card:hover,
.top-game-card:hover,
.top-games-card:hover {
    transform: translateY(-2px);
    border-color: rgba(29, 100, 255, 0.18);
    box-shadow: 0 18px 40px rgba(29, 100, 255, 0.10);
}

.card-header,
.section-header {
    align-items: start;
}

.card-link {
    color: var(--primary);
}

.card-link:hover {
    color: hsl(217 91% 44%);
}

.button {
    border-radius: 12px;
    margin-top: 0;
    padding: 11px 16px;
    background: linear-gradient(180deg, hsl(217 91% 54%) 0%, hsl(217 91% 47%) 100%);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(29, 100, 255, 0.22);
}

.button:hover {
    box-shadow: 0 18px 34px rgba(29, 100, 255, 0.24);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

.content .button-secondary,
.card .button-secondary,
.saved-management-panel .button-secondary,
.saved-compact-panel .button-secondary,
.auth-card .button-secondary,
.upgrade-callout .button-secondary {
    background: rgba(29, 100, 255, 0.08);
    color: var(--primary);
    border: 1px solid rgba(29, 100, 255, 0.14);
}

.account-primary-action {
    background: linear-gradient(180deg, hsl(217 91% 54%) 0%, hsl(217 91% 47%) 100%);
    color: #ffffff;
    border: 1px solid rgba(29, 100, 255, 0.48);
    box-shadow: 0 10px 24px rgba(29, 100, 255, 0.18);
}

.account-export-action {
    background: linear-gradient(180deg, hsl(217 91% 54%) 0%, hsl(217 91% 47%) 100%);
    color: #ffffff;
    border: 1px solid rgba(29, 100, 255, 0.48);
    box-shadow: 0 10px 24px rgba(29, 100, 255, 0.18);
}

.account-rxloto-action {
    background: linear-gradient(180deg, hsl(272 72% 56%) 0%, hsl(272 72% 46%) 100%);
    color: #ffffff;
    border: 1px solid rgba(126, 34, 206, 0.48);
    box-shadow: 0 10px 24px rgba(126, 34, 206, 0.18);
}

.account-rxloto-action:hover,
.account-rxloto-action:focus-visible {
    background: linear-gradient(180deg, hsl(272 72% 52%) 0%, hsl(272 72% 42%) 100%);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(126, 34, 206, 0.24);
}

.account-rxloto-action:focus-visible {
    outline: 2px solid rgba(216, 180, 254, 0.65);
    outline-offset: 2px;
}

.account-export-action:hover,
.account-export-action:focus-visible {
    background: linear-gradient(180deg, hsl(217 91% 50%) 0%, hsl(217 91% 42%) 100%);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(29, 100, 255, 0.24);
}

.account-export-action:focus-visible {
    outline: 2px solid rgba(34, 211, 238, 0.5);
    outline-offset: 2px;
}

.account-primary-action:hover,
.account-primary-action:focus-visible {
    background: linear-gradient(180deg, hsl(217 91% 50%) 0%, hsl(217 91% 42%) 100%);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(29, 100, 255, 0.24);
}

.account-primary-action:focus-visible {
    outline: 2px solid rgba(34, 211, 238, 0.5);
    outline-offset: 2px;
}

.rxloto-wizard-shell {
    display: grid;
    gap: 18px;
}

.rxloto-wizard-progress {
    display: grid;
    gap: 12px;
}

.rxloto-wizard-progress-bar {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    overflow: hidden;
}

.rxloto-wizard-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, hsl(272 72% 52%) 0%, hsl(217 91% 54%) 100%);
    transition: width 0.28s ease;
}

.rxloto-wizard-progress-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.rxloto-wizard-progress-step {
    display: grid;
    justify-items: center;
    gap: 6px;
    text-align: center;
    color: var(--muted);
}

.rxloto-wizard-progress-step strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    color: var(--text);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.rxloto-wizard-progress-step span {
    font-size: 0.82rem;
    font-weight: 600;
}

.rxloto-wizard-progress-step.is-active strong,
.rxloto-wizard-progress-step.is-complete strong {
    color: #ffffff;
    transform: translateY(-1px);
}

.rxloto-wizard-progress-step.is-active strong {
    background: linear-gradient(180deg, hsl(272 72% 56%) 0%, hsl(272 72% 46%) 100%);
}

.rxloto-wizard-progress-step.is-complete strong {
    background: linear-gradient(180deg, hsl(217 91% 54%) 0%, hsl(217 91% 47%) 100%);
}

.rxloto-wizard-progress-step.is-active span,
.rxloto-wizard-progress-step.is-complete span {
    color: var(--text);
}

.rxloto-wizard-container {
    display: grid;
}

.rxloto-wizard-stage {
    display: none;
    gap: 16px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 34%),
        radial-gradient(circle at bottom left, rgba(126, 34, 206, 0.08), transparent 36%),
        #ffffff;
    animation: rxlotoWizardFade 0.28s ease;
}

.rxloto-wizard-stage.is-active {
    display: grid;
}

.rxloto-wizard-stage-head {
    display: grid;
    gap: 6px;
}

.rxloto-wizard-stage h3,
.rxloto-wizard-stage h4 {
    margin: 0;
}

.rxloto-mode-card {
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.rxloto-mode-card:hover,
.rxloto-mode-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(29, 100, 255, 0.24);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.rxloto-mode-card.is-selected {
    border-color: rgba(126, 34, 206, 0.28);
    box-shadow: 0 20px 44px rgba(126, 34, 206, 0.12);
    background:
        radial-gradient(circle at top right, rgba(126, 34, 206, 0.08), transparent 36%),
        #ffffff;
}

@keyframes rxlotoWizardFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rxloto-modal-open {
    overflow: hidden;
}

.rxloto-modal-root[hidden] {
    display: none;
}

.rxloto-modal-root {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 18px;
}

.rxloto-modal-overlay {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(7px);
    cursor: default;
}

.rxloto-modal-card {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: min(720px, calc(100vh - 36px));
    overflow: auto;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(126, 34, 206, 0.1), transparent 34%),
        radial-gradient(circle at bottom left, rgba(29, 100, 255, 0.08), transparent 38%),
        #ffffff;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
    padding: 20px;
    animation: rxlotoWizardFade 0.22s ease;
}

.rxloto-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--text);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.rxloto-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-right: 36px;
}

.rxloto-modal-head h3,
.rxloto-modal-head p,
.rxloto-modal-card h4,
.rxloto-modal-card p {
    margin: 0;
}

.rxloto-modal-count {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(126, 34, 206, 0.1);
    color: hsl(272 72% 36%);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.rxloto-modal-progress {
    height: 5px;
    margin: 18px 0 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.22);
    overflow: hidden;
}

.rxloto-modal-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, hsl(272 72% 52%) 0%, hsl(217 91% 54%) 100%);
    transition: width 0.24s ease;
}

.rxloto-modal-step-labels {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
}

.rxloto-modal-step-labels span.is-active,
.rxloto-modal-step-labels span.is-complete {
    color: var(--text);
}

.rxloto-modal-body {
    display: grid;
}

.rxloto-modal-card .rxloto-wizard-stage {
    display: none;
    gap: 14px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.rxloto-modal-card .rxloto-wizard-stage.is-active {
    display: grid;
}

.rxloto-modal-card .rxloto-wizard-stage-head {
    gap: 4px;
}

.rxloto-mini-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.rxloto-mini-summary span,
.rxloto-final-note {
    display: grid;
    gap: 2px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.04);
    color: var(--muted);
    font-size: 0.84rem;
}

.rxloto-mini-summary strong,
.rxloto-final-note strong {
    color: var(--text);
    font-size: 1.05rem;
}

.rxloto-master-locked {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(126, 34, 206, 0.08);
    border: 1px solid rgba(126, 34, 206, 0.18);
    color: var(--muted);
}

.rxloto-master-locked strong {
    color: #6b21a8;
}

.rxloto-mini-games {
    display: grid;
    gap: 8px;
    max-height: 220px;
    overflow: auto;
    padding-right: 4px;
}

.rxloto-mini-game {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-family: var(--font-mono, monospace);
    font-size: 0.82rem;
}

.rxloto-mini-game.is-muted {
    opacity: 0.56;
}

.rxloto-mini-game small {
    font-family: inherit;
    color: var(--muted);
}

.rxloto-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.rxloto-mode-card {
    display: grid;
    gap: 5px;
    min-height: 96px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    background: #ffffff;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.rxloto-mode-card:hover,
.rxloto-mode-card:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(126, 34, 206, 0.28);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.rxloto-mode-card.is-selected {
    border-color: rgba(126, 34, 206, 0.5);
    box-shadow: 0 16px 32px rgba(126, 34, 206, 0.12);
}

.rxloto-mode-card span,
.rxloto-short-steps,
.rxloto-link-list {
    color: var(--muted);
    font-size: 0.86rem;
}

.rxloto-short-steps,
.rxloto-link-list {
    display: grid;
    gap: 8px;
}

.rxloto-mobile-bookmarklet-help {
    display: none;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(126, 34, 206, 0.18);
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(126, 34, 206, 0.14), transparent 34%),
        rgba(126, 34, 206, 0.06);
    color: var(--muted);
    font-size: 0.86rem;
}

.rxloto-mobile-bookmarklet-help strong {
    color: #581c87;
}

.rxloto-mobile-browser-note {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(22, 163, 74, 0.12);
    color: #166534;
    font-weight: 800;
}

.rxloto-mobile-bookmarklet-help ol {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
}

.rxloto-mobile-bookmarklet-help .rxloto-mobile-bookmarklet-pill {
    display: flex;
    min-height: 46px;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(91, 33, 182, 0.2);
}

.rxloto-mobile-bookmarklet-help small {
    color: #15803d;
    font-weight: 700;
}

.rxloto-link-list a,
.rxloto-bookmarklet-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(126, 34, 206, 0.08);
    color: hsl(272 72% 36%);
    font-weight: 800;
    text-decoration: none;
}

.rxloto-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

@media (max-width: 560px) {
    .rxloto-modal-card {
        padding: 18px;
    }

    .rxloto-mode-grid,
    .rxloto-mini-summary {
        grid-template-columns: 1fr;
    }

    .rxloto-modal-actions {
        flex-direction: column-reverse;
    }

    .rxloto-modal-actions .button {
        width: 100%;
    }

    .rxloto-desktop-bookmarklet-help {
        display: none;
    }

    .rxloto-mobile-bookmarklet-help {
        display: grid;
    }

    .rxloto-wizard-stage > .rxloto-bookmarklet-pill:not(.rxloto-mobile-bookmarklet-pill) {
        display: none;
    }
}

.button-tertiary {
    background: rgba(15, 23, 42, 0.06);
    color: var(--text);
}

.games-manager-page {
    display: grid;
    gap: 18px;
}

.games-manager-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.games-manager-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.games-manager-tabs a.is-active {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    border-color: rgba(22, 163, 74, 0.52);
    box-shadow: 0 12px 24px rgba(22, 163, 74, 0.18);
}

.games-manager-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.games-manager-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.games-manager-card-head h3 {
    margin: 0 0 4px;
    font-size: 1.08rem;
}

.games-manager-card-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.games-manager-list {
    gap: 12px;
}

.games-manager-item,
.games-check-item {
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.games-manager-list .games-manager-item:first-child {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.games-check-list {
    display: grid;
    gap: 12px;
}

.games-check-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.games-manager-page .games-manager-action,
.games-manager-page .saved-rename-form .games-manager-action,
.games-manager-page .saved-manage-actions .games-manager-action,
.games-manager-page .games-check-item .games-manager-action {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    border: 1px solid rgba(22, 163, 74, 0.52);
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.16);
}

.games-manager-page .games-manager-action:hover,
.games-manager-page .games-manager-action:focus-visible {
    background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(22, 163, 74, 0.22);
}

.games-manager-page .games-manager-back {
    background: rgba(15, 23, 42, 0.06);
    color: var(--text);
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.games-manager-insert-card #manual-games-app {
    margin-top: 2px;
}

@media (max-width: 720px) {
    .games-manager-tabs {
        grid-template-columns: 1fr;
    }

    .games-manager-card {
        padding: 14px;
        border-radius: 18px;
    }

    .games-manager-item,
    .games-check-item {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .games-check-item {
        display: grid;
    }

    .games-manager-page .button,
    .games-manager-page .saved-manage-actions,
    .games-manager-page .saved-manage-actions form,
    .games-manager-page .saved-rename-form,
    .games-manager-page .saved-rename-input {
        width: 100%;
    }

    .games-manager-page .saved-manage-actions {
        justify-content: stretch;
    }
}

.text-input,
textarea,
select,
.form-field input,
.form-field select {
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #ffffff;
    color: var(--text);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.text-input:focus,
textarea:focus,
select:focus,
.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: rgba(29, 100, 255, 0.44);
    box-shadow: 0 0 0 4px rgba(29, 100, 255, 0.12);
}

.number-pill {
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.number-option input:checked + .number-pill {
    background: rgba(29, 100, 255, 0.12);
    border-color: rgba(29, 100, 255, 0.48);
    color: var(--primary);
}

.notice {
    padding: 16px 18px;
    color: var(--text);
}

.site-footer {
    margin-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--navy);
    color: rgba(255, 255, 255, 0.72);
    padding-top: 18px;
    padding-bottom: 22px;
}

.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.site-footer .mono {
    color: rgba(255, 255, 255, 0.64);
}

@media (max-width: 980px) {
    .top-header {
        background: rgba(15, 24, 48, 0.98);
    }

    .top-navigation {
        background: rgba(15, 24, 48, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        padding: 10px;
    }

    .topnav-group {
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.08);
    }

    .topnav-trigger {
        color: rgba(255, 255, 255, 0.82);
    }

    .topnav-dropdown {
        background: transparent;
    }

    .topbar-user {
        justify-items: start;
        text-align: left;
    }

    .hero {
        padding: 28px 22px;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.35rem);
    }

    .hero-trust {
        gap: 8px;
    }

    .hero-trust span {
        font-size: 0.78rem;
    }

    .site-footer .container {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* 2026-03-29 header refinement */
.top-header {
    top: 0;
    z-index: 50;
    background-color: hsl(224 40% 12%);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 10px 28px rgba(2, 8, 23, 0.26);
}

.top-header-inner {
    max-width: 1240px;
    margin: 0 auto;
    min-height: 56px;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    column-gap: 18px;
    row-gap: 12px;
    padding: 10px 24px;
}

.top-header-brand {
    min-width: 0;
}

.brand-logo {
    gap: 8px;
    font-size: 1.125rem;
    font-weight: 700;
}

.brand-clover {
    color: hsl(190 90% 50%);
    font-size: 1.15rem;
}

.brand-name,
.logo-7,
.logo-l,
.logo-o1,
.logo-o2,
.logo-t {
    color: #ffffff;
}

.top-navigation {
    align-items: center;
    width: 100%;
    gap: 16px;
}

.top-navigation-groups {
    gap: 8px;
}

.topnav-trigger {
    min-height: 34px;
    padding: 6px 8px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.70);
    font-size: 0.92rem;
    font-weight: 500;
}

.topnav-caret {
    color: rgba(255, 255, 255, 0.50);
}

.topnav-group.is-active > .topnav-trigger,
.topnav-trigger:hover,
.topnav-group:hover > .topnav-trigger,
.topnav-group:focus-within > .topnav-trigger {
    background: rgba(255, 255, 255, 0.06);
    border-color: transparent;
    color: #ffffff;
}

.topnav-group.is-active > .topnav-trigger .topnav-caret,
.topnav-trigger:hover .topnav-caret,
.topnav-group:hover > .topnav-trigger .topnav-caret,
.topnav-group:focus-within > .topnav-trigger .topnav-caret {
    color: rgba(255, 255, 255, 0.72);
}

.topnav-dropdown,
.topnav-dropdown-account {
    top: calc(100% - 1px);
    border-radius: 10px;
}

.top-navigation-meta {
    margin-left: auto;
    align-items: center;
}

.top-account-meta {
    align-items: flex-end;
    gap: 4px;
}

.topbar-user strong {
    font-size: 0.88rem;
}

.topbar-user span,
.top-header-note {
    color: rgba(255, 255, 255, 0.50);
    font-size: 0.76rem;
}

.top-guest-meta {
    gap: 10px;
    flex-wrap: nowrap;
}

.button.button-header {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    background: hsl(217 91% 50%);
    box-shadow: 0 10px 24px rgba(29, 100, 255, 0.28);
}

.button.button-header:hover {
    box-shadow: 0 14px 28px rgba(29, 100, 255, 0.32);
}

@media (max-width: 980px) {
    .top-header-inner {
        grid-template-columns: 1fr auto;
        padding: 10px 18px;
    }

    .top-navigation {
        margin-top: 0;
        border-radius: 12px;
    }

    .top-navigation-meta,
    .top-guest-meta,
    .top-account-meta {
        width: 100%;
        margin-left: 0;
    }

    .top-guest-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .topnav-trigger {
        min-height: 40px;
        padding: 9px 12px;
    }
}

@media (max-width: 640px) {
    .top-header-inner {
        padding: 10px 14px;
    }

    .top-guest-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* 2026-03-29 header reorganization */
.top-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-header-brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.top-navigation {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.top-navigation-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-width: 0;
    width: 100%;
}

.top-navigation-groups {
    justify-content: flex-end;
}

.topnav-user-menu {
    flex: 0 0 auto;
}

.topnav-user-trigger {
    min-height: 40px;
    padding: 6px 10px;
    gap: 10px;
    justify-content: space-between;
}

.topnav-user-copy {
    display: grid;
    gap: 1px;
    text-align: right;
    min-width: 0;
}

.topnav-user-copy strong {
    font-size: 0.9rem;
    line-height: 1.15;
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap;
}

.topnav-user-copy small {
    font-size: 0.72rem;
    line-height: 1.1;
    color: rgba(255, 255, 255, 0.58);
    white-space: nowrap;
}

.topnav-account {
    align-self: center;
}

.topnav-dropdown-account {
    min-width: 240px;
}

.topnav-dropdown-account a:last-child {
    color: hsl(0 84% 72%);
}

.topnav-dropdown-account a:last-child:hover,
.topnav-dropdown-account a:last-child.is-active {
    background: rgba(239, 68, 68, 0.14);
    color: #ffffff;
}

.top-navigation-meta.top-guest-meta {
    margin-left: 0;
    flex: 0 0 auto;
}

@media (max-width: 980px) {
    .top-header-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .top-navigation {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: stretch;
    }

    .top-navigation-right {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .topnav-user-trigger {
        width: 100%;
        justify-content: space-between;
    }

    .topnav-user-copy {
        text-align: left;
    }
}


/* 2026-03-29 header edge alignment */
.top-header {
    width: 100%;
}

.top-header-inner {
    max-width: none;
    width: 100%;
    margin: 0;
    padding-left: 18px;
    padding-right: 18px;
    justify-content: space-between;
}

.top-header-brand {
    margin-right: 24px;
    justify-content: flex-start;
}

.top-navigation {
    flex: 1 1 auto;
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
}

.top-navigation-right {
    margin-left: auto;
    width: auto;
    min-width: 0;
    flex: 0 1 auto;
}

.top-navigation-groups {
    margin-left: auto;
}

.top-navigation-meta,
.top-guest-meta,
.topnav-user-menu {
    margin-left: 0;
}

@media (min-width: 1280px) {
    .top-header-inner {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 980px) {
    .top-header-inner {
        padding-left: 14px;
        padding-right: 14px;
    }

    .top-navigation {
        width: 100%;
        margin-left: 0;
    }

    .top-navigation-right,
    .top-navigation-groups {
        width: 100%;
        margin-left: 0;
    }
}

/* 2026-03-29 top game comparison */
.top-game-compare-form {
    display: grid;
    gap: 12px;
}

.top-game-compare-result {
    display: grid;
    gap: 14px;
}

.top-games-list.compact {
    gap: 10px;
}

.top-games-list.compact .top-game-item {
    padding: 10px 12px;
}

.topnav-user-copy {
    display: grid;
    gap: 1px;
}

.topnav-user-copy small {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.58);
}

/* 2026-03-30 mobile header cleanup */
.nav-toggle {
    gap: 10px;
}

.nav-toggle-box {
    display: inline-grid;
    gap: 4px;
}

.nav-toggle-box span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.18s ease, opacity 0.18s ease;
    transform-origin: center;
}

.top-header-mobile-actions,
.mobile-login-link {
    display: none;
}

.top-guest-meta-desktop {
    display: flex;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 980px) {
    body.nav-mobile-open {
        overflow: hidden;
    }

    .top-header {
        overflow: visible;
    }

    .top-header-inner {
        position: relative;
        min-height: 54px;
        padding-top: 8px;
        padding-bottom: 8px;
        gap: 10px;
    }

    .top-header-brand {
        margin-right: 0;
        min-width: 0;
    }

    .brand-link,
    .brand-logo {
        min-width: 0;
    }

    .brand-logo {
        gap: 8px;
        font-size: 1rem;
    }

    .brand-clover {
        font-size: 1rem;
    }

    .brand-name {
        font-size: 1rem;
        white-space: nowrap;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        min-width: 42px;
        height: 42px;
        min-height: 42px;
        padding: 0;
        border-radius: 12px;
        border-color: rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.05);
        color: #ffffff;
        box-shadow: none;
    }

    .top-header-mobile-actions {
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
    }

    .mobile-login-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 0 10px;
        border-radius: 10px;
        color: rgba(255, 255, 255, 0.92);
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 600;
        white-space: nowrap;
    }

    .mobile-login-link:hover {
        background: rgba(255, 255, 255, 0.06);
        color: #ffffff;
    }

    .nav-toggle-label {
        display: none;
    }

    .site-header.top-header .top-navigation {
        display: none;
        position: fixed;
        top: 54px;
        right: 0;
        left: 0;
        bottom: 0;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        max-height: none !important;
        overflow: hidden !important;
        align-items: stretch !important;
        justify-content: stretch !important;
        padding: 0 !important;
        margin: 0 !important;
        background: rgba(9, 14, 26, 0.34) !important;
        backdrop-filter: blur(10px);
        opacity: 1;
        transform: none;
        pointer-events: none;
        transition: none;
        z-index: 90;
    }

    .site-header.top-header .top-navigation.is-open {
        display: flex;
        opacity: 1;
        pointer-events: auto;
    }

    .site-header.top-header .top-navigation-right {
        position: absolute;
        inset: 0;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        margin-left: 0 !important;
        display: grid !important;
        flex-direction: column !important;
        align-items: stretch !important;
        align-content: start !important;
        justify-content: stretch !important;
        overflow: hidden !important;
        padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
        border: 0 !important;
        border-radius: 0 !important;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 250, 252, 0.98) 100%) !important;
        box-shadow: none !important;
        gap: 16px !important;
    }

    .top-navigation-groups {
        display: grid;
        gap: 14px;
        justify-items: stretch;
        align-content: start;
    }

    .topnav-group,
    .topnav-account,
    .topnav-user-menu {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .topnav-group {
        display: grid;
        grid-template-columns: minmax(110px, 140px) minmax(0, 1fr);
        gap: 14px;
        align-items: start;
        overflow: hidden;
        border: 0;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.72);
        padding: 14px 16px;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    }

    .topnav-group:last-child {
        border-bottom: 0;
    }

    .topnav-trigger,
    .topnav-user-trigger {
        width: auto;
        min-height: auto;
        padding: 0;
        border: 0;
        border-radius: 0;
        justify-content: flex-start;
        align-items: flex-start;
        color: rgba(15, 23, 42, 0.78);
        font-size: 0.8rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        background: transparent;
    }

    .topnav-caret {
        display: none;
    }

    .topnav-dropdown,
    .topnav-dropdown-account {
        position: static;
        left: auto;
        right: auto;
        min-width: 0;
        padding: 0;
        border: 0;
        border-top: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px 18px;
        align-content: start;
    }

    .topnav-dropdown a,
    .topnav-dropdown-account a {
        padding: 2px 0;
        border-radius: 0;
        border: 0;
        background: transparent;
        color: rgba(15, 23, 42, 0.84);
        font-size: 0.92rem;
        line-height: 1.3;
        white-space: normal;
    }

    .topnav-dropdown a:hover,
    .topnav-dropdown a.is-active,
    .topnav-dropdown-account a:hover,
    .topnav-dropdown-account a.is-active {
        background: transparent;
        color: var(--primary);
    }

    .topnav-user-copy {
        text-align: left;
        gap: 3px;
    }

    .topnav-user-copy strong {
        font-size: 0.78rem;
        color: rgba(15, 23, 42, 0.78);
        letter-spacing: 0.08em;
        text-transform: uppercase;
        white-space: normal;
    }

    .topnav-user-copy small {
        font-size: 0.72rem;
        color: var(--muted);
        white-space: normal;
        line-height: 1.25;
    }

    .top-navigation-meta,
    .top-navigation-meta.top-guest-meta {
        width: auto;
        margin-left: 0;
        padding: 0;
        border-top: 0;
        display: grid;
        gap: 6px;
        justify-items: start;
    }

    .top-navigation-meta.top-guest-meta.top-guest-meta-desktop {
        display: none;
    }
}

@media (max-width: 640px) {
    .top-header-inner {
        padding-left: 12px;
        padding-right: 12px;
    }

    .site-header.top-header .top-navigation {
        top: 50px;
    }

    .site-header.top-header .top-navigation-right {
        padding: 14px 14px calc(16px + env(safe-area-inset-bottom));
    }

    .topnav-group {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px 14px;
        border-radius: 14px;
    }

    .topnav-dropdown,
    .topnav-dropdown-account {
        grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
        gap: 8px 14px;
    }
}

/* 2026-03-29 login screen redesign */
body.route-auth {
    background: hsl(224 40% 12%);
}

.route-auth .bg-grid {
    display: none;
}

.route-auth .app-topbar,
.route-auth .site-footer {
    display: none !important;
}

.route-auth .site-main {
    min-height: calc(100vh - 96px);
    padding: 0;
}

.route-auth .main-content-inner {
    width: 100%;
    max-width: none;
    padding: 0;
}

/* 2026-03-31 mobile nav reset */
.mobile-nav-panel {
    display: none;
}

.plan-card-basic {
    background: #e7ebf0;
}

.plan-card-basic .badge-free {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    color: var(--text);
}

@media (max-width: 980px) {
    body.nav-mobile-open {
        overflow: hidden;
    }

    .site-header.top-header {
        position: relative;
        z-index: 100;
    }

    .site-header.top-header .top-header-inner {
        position: relative;
        min-height: 54px;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .site-header.top-header .top-navigation {
        display: none !important;
    }

    .site-header.top-header .top-header-mobile-actions {
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
    }

    .site-header.top-header .mobile-login-link {
        display: inline-flex !important;
        align-items: center;
        min-height: 40px;
        padding: 0 10px;
        border-radius: 10px;
        color: rgba(255, 255, 255, 0.92);
        text-decoration: none;
        font-size: 0.84rem;
        font-weight: 600;
        white-space: nowrap;
    }

    .mobile-nav-panel {
        position: fixed;
        top: 54px;
        left: 0;
        right: 0;
        bottom: auto;
        height: calc(100vh - 54px);
        height: calc(100dvh - 54px);
        display: none;
        background: #f4f7fb;
        z-index: 9999;
        pointer-events: auto;
    }

    .mobile-nav-panel.is-open,
    body.nav-mobile-open .mobile-nav-panel {
        display: block;
    }

    .mobile-nav-sheet {
        position: absolute;
        inset: 0;
        display: grid;
        align-content: start;
        gap: 14px;
        padding: 16px 14px calc(18px + env(safe-area-inset-bottom));
        background: #f4f7fb;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-nav-section {
        display: grid;
        grid-template-columns: minmax(110px, 132px) minmax(0, 1fr);
        gap: 14px;
        padding: 14px 16px;
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
        min-width: 0;
    }

    .mobile-nav-title {
        margin: 0;
        color: rgba(15, 23, 42, 0.72);
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        line-height: 1.35;
    }

    .mobile-nav-links {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 10px 16px;
        min-width: 0;
        align-content: start;
    }

    .mobile-nav-links a {
        color: rgba(15, 23, 42, 0.86);
        text-decoration: none;
        font-size: 0.94rem;
        line-height: 1.25;
    }

    .mobile-nav-links a.is-active,
    .mobile-nav-links a:hover {
        color: var(--primary);
    }

    .mobile-nav-links a.is-featured {
        color: var(--primary);
        font-weight: 800;
    }

    .mobile-feedback-link {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        gap: 9px;
        width: 100%;
        min-height: 42px;
        padding: 9px 12px;
        border: 1px solid rgba(124, 58, 237, 0.18);
        border-radius: 14px;
        background: rgba(124, 58, 237, 0.08);
        color: #5b21b6;
        cursor: pointer;
        font: inherit;
        font-size: 0.94rem;
        font-weight: 800;
        text-align: left;
    }

    .mobile-feedback-link .site-feedback-icon {
        width: 24px;
        height: 24px;
        background: linear-gradient(135deg, #7c3aed, #5b21b6);
        color: #ffffff;
        font-size: 0.82rem;
    }

    .site-header.top-header .top-guest-meta-desktop {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .site-header.top-header .top-header-inner {
        min-height: 50px;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .mobile-nav-panel {
        top: 50px;
        height: calc(100vh - 50px);
        height: calc(100dvh - 50px);
    }

    .mobile-nav-sheet {
        padding: 14px 12px calc(16px + env(safe-area-inset-bottom));
        gap: 12px;
    }

    .mobile-nav-section {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px 14px;
        border-radius: 14px;
    }

    .mobile-nav-links {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px 12px;
    }

    .mobile-feedback-link {
        min-height: 42px;
        padding: 9px 12px;
        border-radius: 14px;
        font-size: 0.94rem;
    }

    .mobile-feedback-link .site-feedback-icon {
        width: 24px;
        height: 24px;
        font-size: 0.82rem;
    }
}

@media (max-width: 360px) {
    .mobile-nav-section {
        grid-template-columns: 1fr;
    }

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

.route-auth .site-main > .main-content-inner > .content,
.route-auth .site-main > .main-content-inner > .dashboard,
.route-auth .site-main > .main-content-inner > .content.glass,
.route-auth .site-main > .main-content-inner > .dashboard.glass,
.route-auth .site-main > .main-content-inner > .dashboard .dashboard-shell {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.login-screen {
    min-height: calc(100vh - 96px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 18px;
    background:
        radial-gradient(circle at 20% 18%, rgba(34, 211, 238, 0.10), transparent 18%),
        radial-gradient(circle at 82% 82%, rgba(124, 58, 237, 0.12), transparent 20%),
        radial-gradient(circle at 80% 15%, rgba(29, 100, 255, 0.12), transparent 18%),
        hsl(224 40% 12%);
}

.login-gradient-frame {
    width: 100%;
    max-width: 460px;
    padding: 1px;
    border-radius: 16px;
    overflow: hidden;
    background:
        linear-gradient(135deg,
            rgba(34, 211, 238, 0.68) 0%,
            rgba(29, 100, 255, 0.62) 52%,
            rgba(147, 51, 234, 0.52) 100%);
    box-shadow:
        0 22px 70px rgba(2, 8, 23, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.03);
}

.login-card {
    position: relative;
    display: grid;
    gap: 18px;
    padding: 28px;
    border-radius: 15px;
    overflow: hidden;
    background:
        radial-gradient(circle at top, rgba(34, 211, 238, 0.05), transparent 34%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(18, 28, 53, 0.98) 100%);
}

.login-icon-wrap {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 4px auto 2px;
    border-radius: 14px;
    background: rgba(34, 211, 238, 0.10);
    border: 1px solid rgba(34, 211, 238, 0.20);
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.08);
}

.login-icon {
    font-size: 28px;
    line-height: 1;
    color: hsl(190 90% 50%);
    filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.2));
}

.login-copy {
    display: grid;
    gap: 8px;
    justify-items: center;
    text-align: center;
}

.login-title {
    margin: 0;
    width: 100%;
    color: #ffffff;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.login-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.50);
    font-size: 0.95rem;
    line-height: 1.6;
}

.login-form {
    gap: 14px;
    margin-top: 2px;
}

.login-field {
    gap: 8px;
}

.login-label {
    color: rgba(255, 255, 255, 0.70);
    font-size: 0.9rem;
    font-weight: 500;
}

.login-input-wrap {
    position: relative;
    display: block;
}

.login-input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.30);
    font-size: 0.95rem;
    pointer-events: none;
}

.login-input {
    min-height: 48px;
    padding-left: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.login-input:focus {
    border-color: rgba(34, 211, 238, 0.50);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
    background: rgba(255, 255, 255, 0.07);
}

.login-submit-button {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(90deg, hsl(217 91% 50%) 0%, hsl(190 90% 50%) 100%);
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(29, 100, 255, 0.28);
}

.login-submit-button:hover,
.login-submit-button:focus-visible {
    box-shadow:
        0 18px 36px rgba(29, 100, 255, 0.30),
        0 0 24px rgba(34, 211, 238, 0.18);
    filter: brightness(1.04);
}

.login-secondary-button {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.login-secondary-button:hover,
.login-secondary-button:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.route-auth .auth-alert {
    margin: 0;
    border-radius: 12px;
}

.route-auth .auth-alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.20);
    color: rgba(255, 255, 255, 0.92);
}

.route-auth .auth-alert-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.22);
    color: rgba(255, 255, 255, 0.92);
}

.login-note {
    margin-top: 2px;
    text-align: center;
    color: rgba(255, 255, 255, 0.50);
}

.login-note a {
    color: rgba(34, 211, 238, 0.78);
    font-weight: 500;
}

.login-note a:hover {
    color: hsl(190 90% 50%);
}

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

.contest-award-head,
.contest-award-row {
    display: grid;
    grid-template-columns: 0.9fr 1fr 0.8fr 1.2fr 1fr;
    gap: 12px;
    align-items: center;
}

.contest-award-head {
    padding: 0 4px 8px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.contest-award-row {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
}

.contest-award-row.is-winner {
    border-color: rgba(22, 163, 74, 0.22);
    background: rgba(240, 253, 244, 0.9);
}

.contest-award-row.is-no-winner {
    border-color: rgba(220, 38, 38, 0.2);
    background: rgba(254, 242, 242, 0.92);
}

.contest-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.contest-status-badge.is-winner {
    background: rgba(22, 163, 74, 0.14);
    color: #166534;
}

.contest-status-badge.is-no-winner {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
}

@media (max-width: 640px) {
    .login-screen {
        padding: 18px 14px;
    }

    .login-card {
        padding: 24px 18px;
    }

    .contest-award-head {
        display: none;
    }

    .contest-award-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}


.plan-status-callout {
    align-items: flex-start;
}

.plan-grid {
    align-items: stretch;
}

.plans-landing {
    display: grid;
    gap: 34px;
}

.plans-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 28px;
    align-items: center;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid rgba(124, 58, 237, 0.18);
    border-radius: 30px;
    background:
        radial-gradient(circle at 82% 18%, rgba(250, 204, 21, 0.22), transparent 26%),
        radial-gradient(circle at 15% 10%, rgba(34, 197, 94, 0.16), transparent 28%),
        linear-gradient(135deg, #f8fafc 0%, #eef6ff 48%, #f7f0ff 100%);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.08);
}

.plans-hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.14);
    filter: blur(8px);
}

.plans-hero-copy,
.plans-hero-card {
    position: relative;
    z-index: 1;
}

.plans-eyebrow,
.plans-section-head span,
.plans-comparison-strip > div > span,
.plans-final-cta > span {
    color: #7c3aed;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plans-hero h1 {
    max-width: 760px;
    margin: 12px 0 14px;
    color: #0f172a;
    font-size: clamp(2.2rem, 6vw, 4.6rem);
    line-height: 0.94;
    letter-spacing: -0.06em;
}

.plans-hero p {
    max-width: 660px;
    margin: 0;
    color: #475569;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.plans-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.plans-cta-primary,
.plans-pro-cta,
.plans-card-cta {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(34, 197, 94, 0.24);
}

.plans-master-cta {
    background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%);
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(124, 58, 237, 0.28);
}

.plans-cta-secondary {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(124, 58, 237, 0.16);
}

.plans-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.plans-trust-row span,
.plans-proof-grid span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 700;
}

.plans-trust-row span::before,
.plans-proof-grid span::before,
.plans-feature-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.plans-hero-card {
    display: grid;
    gap: 14px;
    padding: 24px;
    border: 1px solid rgba(124, 58, 237, 0.22);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 28px 60px rgba(51, 65, 85, 0.14);
    backdrop-filter: blur(14px);
}

.plans-hero-card > strong {
    color: #0f172a;
    font-size: 1.45rem;
}

.plans-hero-card p {
    font-size: 0.95rem;
}

.plans-hero-card div {
    display: grid;
    gap: 2px;
    padding: 14px;
    border-radius: 18px;
    background: #0f172a;
    color: #ffffff;
}

.plans-hero-card div span,
.plans-hero-card div small {
    color: rgba(255, 255, 255, 0.72);
}

.plans-hero-card div strong {
    font-size: 2rem;
}

.plans-master-chip,
.plans-best-badge {
    width: max-content;
    padding: 7px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #facc15, #f97316);
    color: #451a03;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.plans-proof-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.plans-proof-grid span {
    padding: 14px 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
}

.plans-flash {
    margin: 0;
}

.plans-payment-note,
.plans-social-proof,
.plans-urgency-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    background: #ffffff;
    color: #475569;
}

.plans-payment-note strong {
    padding: 8px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    white-space: nowrap;
}

.plans-section-head {
    display: grid;
    gap: 8px;
    max-width: 780px;
}

.plans-section-head h2,
.plans-comparison-strip h2,
.plans-master-story h2,
.plans-final-cta h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    letter-spacing: -0.04em;
    line-height: 1;
}

.plans-section-head p,
.plans-master-story p {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
}

.plans-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.plans-price-card {
    position: relative;
    display: grid;
    gap: 18px;
    align-content: start;
    min-height: 100%;
    padding: 22px;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.plans-master-card {
    border-color: rgba(124, 58, 237, 0.48);
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, rgba(124, 58, 237, 0.8), rgba(250, 204, 21, 0.78)) border-box;
    box-shadow: 0 26px 70px rgba(124, 58, 237, 0.18);
    transform: translateY(-10px);
}

.plans-best-badge {
    position: absolute;
    top: -14px;
    right: 22px;
}

.plans-card-top {
    display: grid;
    gap: 8px;
}

.plans-card-top h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.5rem;
}

.plans-card-top p {
    margin: 0;
    color: #64748b;
}

.plans-price-main {
    display: grid;
    gap: 3px;
    padding: 16px;
    border-radius: 20px;
    background: #f8fafc;
}

.plans-master-card .plans-price-main {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(250, 204, 21, 0.15));
}

.plans-price-main span,
.plans-price-main small {
    color: #64748b;
    font-weight: 700;
}

.plans-price-main strong {
    color: #0f172a;
    font-size: 2.25rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.plans-feature-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #334155;
}

.plans-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 650;
}

.plans-duration-list {
    margin-top: 2px;
}

.plans-purchase-form {
    display: grid;
    gap: 12px;
}

.plans-card-cta {
    width: 100%;
    justify-content: center;
}

.plans-comparison-strip,
.plans-master-story,
.plans-final-cta {
    display: grid;
    gap: 24px;
    padding: clamp(24px, 4vw, 38px);
    border-radius: 28px;
}

.plans-comparison-strip {
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
    align-items: center;
    background: #0f172a;
    color: #ffffff;
}

.plans-comparison-strip h2,
.plans-final-cta h2 {
    color: #ffffff;
}

.plans-comparison-strip ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.plans-comparison-strip li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
}

.plans-comparison-strip li span {
    color: #fde68a;
    font-weight: 800;
    white-space: nowrap;
}

.plans-master-story {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    align-items: center;
    background:
        radial-gradient(circle at 10% 10%, rgba(124, 58, 237, 0.14), transparent 28%),
        linear-gradient(135deg, #ffffff, #f8fafc);
    border: 1px solid rgba(124, 58, 237, 0.14);
}

.plans-master-story > div:first-child {
    display: grid;
    gap: 14px;
}

.plans-steps-card {
    display: grid;
    gap: 12px;
}

.plans-steps-card div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 12px;
    padding: 15px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: #ffffff;
}

.plans-steps-card span {
    grid-row: span 2;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #7c3aed;
    color: #ffffff;
    font-weight: 900;
}

.plans-steps-card strong {
    color: #0f172a;
}

.plans-steps-card small {
    color: #64748b;
}

.plans-social-proof {
    background: linear-gradient(135deg, #ecfdf5, #ffffff);
}

.plans-social-proof strong {
    color: #166534;
    font-size: 1.1rem;
}

.plans-urgency-box {
    background: linear-gradient(135deg, #fffbeb, #ffffff);
}

.plans-urgency-box strong {
    color: #92400e;
}

.plans-faq {
    display: grid;
    gap: 18px;
}

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

.plans-faq details {
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: #ffffff;
}

.plans-faq summary {
    color: #0f172a;
    cursor: pointer;
    font-weight: 800;
}

.plans-faq p {
    margin: 12px 0 0;
    color: #64748b;
}

.plans-final-cta {
    justify-items: center;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.28), transparent 32%),
        linear-gradient(135deg, #111827, #312e81);
    color: #ffffff;
}

.plans-final-cta div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

@media (max-width: 980px) {
    .plans-hero,
    .plans-pricing-grid,
    .plans-comparison-strip,
    .plans-master-story {
        grid-template-columns: 1fr;
    }

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

    .plans-master-card {
        transform: none;
    }
}

@media (max-width: 640px) {
    .plans-landing {
        gap: 22px;
    }

    .plans-hero {
        padding: 24px;
        border-radius: 24px;
    }

    .plans-hero-actions,
    .plans-final-cta div {
        display: grid;
        width: 100%;
    }

    .plans-proof-grid,
    .plans-faq-grid {
        grid-template-columns: 1fr;
    }

    .plans-payment-note,
    .plans-social-proof,
    .plans-urgency-box,
    .plans-comparison-strip li {
        display: grid;
        justify-items: start;
    }

    .plans-price-card {
        padding: 18px;
        border-radius: 22px;
    }

    .plans-price-main strong {
        font-size: 1.9rem;
    }
}

.plan-card-tier,
.plan-card-basic {
    display: grid;
    gap: 16px;
    align-content: start;
}

.plan-feature-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: var(--muted);
}

.plan-duration-list {
    display: grid;
    gap: 8px;
}

.plan-duration-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: #f8fafc;
}

.plan-duration-choice {
    width: 100%;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.plan-duration-choice:hover {
    border-color: rgba(29, 100, 255, 0.22);
    background: #f2f7ff;
    transform: translateY(-1px);
}

.plan-duration-choice:focus-visible {
    outline: 2px solid rgba(29, 100, 255, 0.28);
    outline-offset: 2px;
}

.plan-duration-choice.is-active {
    border-color: rgba(29, 100, 255, 0.34);
    background: linear-gradient(180deg, rgba(238, 245, 255, 0.98) 0%, rgba(228, 239, 255, 1) 100%);
    box-shadow: inset 0 0 0 1px rgba(29, 100, 255, 0.12);
}

.plan-duration-choice.is-active strong,
.plan-duration-choice.is-active span {
    color: #1849a9;
}

.plan-duration-choice strong {
    display: grid;
    gap: 2px;
    justify-items: end;
    line-height: 1.15;
}

.plan-duration-choice strong small {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-price-panel {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.plan-price-panel strong {
    font-size: 1.25rem;
}

.plan-phase-note {
    margin-top: 20px;
}

.admin-plan-card {
    grid-column: 1 / -1;
}

.plan-admin-form {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.plan-admin-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-price-grid {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.plan-price-grid div {
    display: grid;
    gap: 2px;
}

.plan-price-grid span {
    color: var(--muted);
    font-size: 0.9rem;
}

.plan-admin-form-inline {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.plan-admin-table-wrap {
    margin-top: 18px;
}

@media (max-width: 760px) {
    .plan-admin-grid,
    .plan-admin-form-inline {
        grid-template-columns: 1fr;
    }
}

.notice-inline {
    margin-bottom: 20px;
}

.plan-purchase-form {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.plan-selection-hint {
    color: rgba(18, 32, 51, 0.72);
    font-size: 0.9rem;
    line-height: 1.4;
}

.plan-buy-button {
    justify-content: center;
}

.plan-disabled-note {
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px dashed rgba(15, 23, 42, 0.12);
    color: var(--muted);
    font-size: 0.92rem;
}

.plan-checkout-footnote {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.plan-checkout-card {
    display: grid;
    gap: 18px;
}

.plan-checkout-summary {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.plan-checkout-summary div {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.plan-checkout-summary strong {
    font-size: 0.85rem;
    color: var(--muted);
}

.plan-checkout-actions,
.plan-checkout-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.plan-result-topline {
    display: grid;
    gap: 10px;
}

.button-ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid rgba(15, 23, 42, 0.14);
    box-shadow: none;
}

@media (max-width: 760px) {
    .plan-checkout-actions,
    .plan-checkout-links {
        display: grid;
    }
}

.admin-section {
    display: grid;
    gap: 1.2rem;
}

.admin-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 0.35rem;
}

.admin-subnav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(16, 24, 40, 0.1);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text, #122033);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
}

.admin-subnav-link.is-active {
    background: #122c63;
    color: #fff;
    border-color: #122c63;
}

.admin-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
}

.admin-stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.admin-stat-card span {
    color: rgba(18, 32, 51, 0.72);
    font-size: 0.84rem;
}

.admin-stat-card strong {
    font-size: 1.2rem;
    line-height: 1.2;
}

.admin-detail-grid {
    align-items: start;
}

.admin-filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.9rem;
    align-items: end;
}

.admin-filter-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.admin-summary-strip {
    display: flex;
    gap: 1rem;
    align-items: center;
    color: rgba(18, 32, 51, 0.72);
    font-size: 0.92rem;
}

.admin-bulk-form {
    margin-top: 0.85rem;
}

.admin-bulk-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
    padding: 0.8rem 0.95rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    background: rgba(254, 242, 242, 0.96);
    color: #991b1b;
}

.admin-bulk-actions[hidden] {
    display: none;
}

.admin-select-cell {
    width: 44px;
    text-align: center;
}

.admin-select-cell input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #7c3aed;
}

.admin-meta-inline {
    color: rgba(18, 32, 51, 0.62);
    font-size: 0.84rem;
}

.admin-code-cell {
    max-width: 220px;
    word-break: break-all;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.82rem;
}

.admin-kv-list {
    display: grid;
    gap: 0.55rem;
    font-size: 0.95rem;
}

.admin-json-card pre {
    white-space: pre-wrap;
    word-break: break-word;
    background: rgba(17, 24, 39, 0.96);
    color: #e5eefb;
    border-radius: 14px;
    padding: 1rem;
    overflow: auto;
    font-size: 0.82rem;
}

.admin-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.form-checkbox-inline {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.92rem;
    color: rgba(18, 32, 51, 0.72);
}

.notice.notice-erro {
    border-left: 4px solid #d92d20;
}

.notice.notice-sucesso {
    border-left: 4px solid #039855;
}

@media (max-width: 900px) {
    .admin-header-row {
        flex-direction: column;
    }

    .admin-subnav {
        gap: 0.5rem;
    }

    .admin-subnav-link {
        width: 100%;
        justify-content: flex-start;
    }
}

.admin-subnav-secondary {
    margin-top: -0.2rem;
}

.admin-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
}

.admin-module-card {
    display: grid;
    gap: 0.45rem;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid rgba(16, 24, 40, 0.08);
    background: rgba(255, 255, 255, 0.92);
    color: inherit;
    text-decoration: none;
}

.admin-module-card strong {
    font-size: 1rem;
}

.admin-module-card span {
    color: rgba(18, 32, 51, 0.72);
    font-size: 0.9rem;
    line-height: 1.45;
}

.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.button-small {
    padding: 0.45rem 0.72rem;
    font-size: 0.82rem;
}

.admin-danger-card {
    border: 1px solid rgba(217, 45, 32, 0.2);
}

.admin-payload-details summary {
    cursor: pointer;
    font-weight: 600;
    color: rgba(18, 32, 51, 0.78);
}

.admin-payload-details pre {
    margin-top: 0.65rem;
    max-width: 420px;
    white-space: pre-wrap;
    word-break: break-word;
    background: rgba(17, 24, 39, 0.96);
    color: #e5eefb;
    border-radius: 14px;
    padding: 0.9rem;
    overflow: auto;
    font-size: 0.8rem;
}

/* Form focus normalization: keep fields readable across auth, account and admin screens. */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
textarea,
select,
.text-input,
.form-field input,
.form-field select,
.login-input,
.login-panel .text-input {
    background: #ffffff;
    color: #0f172a;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
textarea:focus,
select:focus,
.text-input:focus,
.form-field input:focus,
.form-field select:focus,
.login-input:focus,
.login-panel .text-input:focus {
    outline: none;
    background: #ffffff;
    color: #0f172a;
    border-color: rgba(34, 197, 94, 0.72);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14), inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.login-input::placeholder,
.login-panel .text-input::placeholder {
    color: rgba(15, 23, 42, 0.42);
}

.login-input-icon {
    color: rgba(15, 23, 42, 0.44);
    transition: opacity 0.16s ease, visibility 0.16s ease;
}

.login-input-wrap:focus-within .login-input-icon,
.login-input-wrap:has(.login-input:not(:placeholder-shown)) .login-input-icon {
    opacity: 0;
    visibility: hidden;
}

.login-input-wrap:focus-within .login-input,
.login-input-wrap:has(.login-input:not(:placeholder-shown)) .login-input {
    padding-left: 14px;
    background-image: none;
}

input:focus,
textarea:focus,
select:focus,
.login-input:focus,
.text-input:focus {
    background-image: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: #0f172a;
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset, 0 0 0 4px rgba(34, 197, 94, 0.14);
    caret-color: #0f172a;
}

.route-minha-conta-fechamentos-gerenciar .btn-voltar,
.route-minha-conta-fechamentos-gerenciar .btn-excluir,
.route-minha-conta-fechamentos-gerenciar .btn-pdf {
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
}

.route-minha-conta-fechamentos-gerenciar .btn-voltar {
    background: #3b82f6;
}

.route-minha-conta-fechamentos-gerenciar .btn-voltar:hover {
    background: #2563eb;
}

.route-minha-conta-fechamentos-gerenciar .btn-excluir {
    background: #ef4444;
}

.route-minha-conta-fechamentos-gerenciar .btn-excluir:hover {
    background: #dc2626;
}

.route-minha-conta-fechamentos-gerenciar .btn-pdf {
    background: #22c55e;
}

.route-minha-conta-fechamentos-gerenciar .btn-pdf:hover {
    background: #16a34a;
}

.route-minha-conta-plano .plan-current-card,
.route-minha-conta-plano .plan-timeline-section {
    margin-top: 18px;
}

.route-minha-conta-plano .plan-current-card {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(0, 2fr);
    gap: 18px;
    align-items: stretch;
    padding: 22px;
    border: 1px solid rgba(124, 58, 237, 0.18);
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.16), transparent 32%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.route-minha-conta-plano .plan-current-kicker {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.route-minha-conta-plano .plan-current-card h3 {
    margin: 0;
}

.route-minha-conta-plano .plan-current-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.route-minha-conta-plano .plan-current-grid div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.route-minha-conta-plano .plan-current-grid span,
.route-minha-conta-plano .plan-timeline-meta {
    color: #64748b;
    font-size: 0.84rem;
}

.route-minha-conta-plano .plan-current-grid strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
}

.route-minha-conta-plano .plan-timeline-empty {
    display: grid;
    gap: 8px;
    padding: 20px;
    border: 1px dashed rgba(100, 116, 139, 0.35);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.9);
}

.route-minha-conta-plano .plan-timeline-empty .button {
    justify-self: start;
}

.route-minha-conta-plano .plan-timeline {
    position: relative;
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.route-minha-conta-plano .plan-timeline::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 12px;
    width: 2px;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.45), rgba(148, 163, 184, 0.22));
}

.route-minha-conta-plano .plan-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 14px;
}

.route-minha-conta-plano .plan-timeline-marker {
    position: relative;
    z-index: 1;
    width: 26px;
    height: 26px;
    border: 5px solid #ffffff;
    border-radius: 50%;
    background: #94a3b8;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.route-minha-conta-plano .plan-timeline-content {
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.route-minha-conta-plano .plan-timeline-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.route-minha-conta-plano .plan-timeline-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.12);
    color: #334155;
    font-size: 0.78rem;
    font-weight: 800;
}

.route-minha-conta-plano .plan-timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 10px;
}

.route-minha-conta-plano .plan-timeline-content p {
    margin: 0;
    color: #334155;
}

.route-minha-conta-plano .plan-timeline-item-active-now .plan-timeline-marker {
    background: #7c3aed;
}

.route-minha-conta-plano .plan-timeline-item-active-now .plan-timeline-content {
    border-color: rgba(124, 58, 237, 0.35);
    box-shadow: 0 18px 45px rgba(124, 58, 237, 0.12);
}

.route-minha-conta-plano .plan-timeline-item-active-now .plan-timeline-status {
    background: rgba(34, 197, 94, 0.16);
    color: #15803d;
}

.route-minha-conta-plano .plan-timeline-item-queued .plan-timeline-marker,
.route-minha-conta-plano .plan-timeline-item-future .plan-timeline-marker {
    background: #3b82f6;
}

.route-minha-conta-plano .plan-timeline-item-queued .plan-timeline-status,
.route-minha-conta-plano .plan-timeline-item-future .plan-timeline-status {
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}

.route-minha-conta-plano .plan-timeline-item-expired {
    opacity: 0.72;
}

.route-minha-conta-plano .plan-timeline-item-expired .plan-timeline-marker,
.route-minha-conta-plano .plan-timeline-item-cancelled .plan-timeline-marker {
    background: #94a3b8;
}

.route-minha-conta-plano .plan-timeline-plan-master .plan-timeline-content {
    border-left: 5px solid #7c3aed;
}

.route-minha-conta-plano .plan-timeline-plan-pro .plan-timeline-content {
    border-left: 5px solid #3b82f6;
}

.route-minha-conta-plano .plan-timeline-plan-basic .plan-timeline-content {
    border-left: 5px solid #22c55e;
}

@media (max-width: 860px) {
    .route-minha-conta-plano .plan-current-card,
    .route-minha-conta-plano .plan-current-grid {
        grid-template-columns: 1fr;
    }

    .route-minha-conta-plano .plan-timeline-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

.site-feedback-button {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9000;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px 10px 10px;
    border: 1px solid rgba(124, 58, 237, 0.22);
    border-radius: 999px;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    color: #ffffff;
    box-shadow: 0 18px 38px rgba(88, 28, 135, 0.26);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 800;
}

.site-feedback-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 46px rgba(88, 28, 135, 0.32);
}

.site-feedback-icon,
.site-feedback-badge {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 900;
}

.site-feedback-modal[hidden] {
    display: none;
}

.site-feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 9100;
    display: grid;
    place-items: center;
    padding: 18px;
}

.site-feedback-overlay {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.54);
    cursor: pointer;
}

.site-feedback-card {
    position: relative;
    z-index: 1;
    width: min(460px, calc(100vw - 28px));
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.32);
}

.site-feedback-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(100, 116, 139, 0.12);
    color: #334155;
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
}

.site-feedback-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-right: 34px;
    margin-bottom: 16px;
}

.site-feedback-head h2 {
    margin: 0 0 4px;
    color: #1e1b4b;
    font-size: 1.25rem;
}

.site-feedback-head p {
    margin: 0;
    color: #64748b;
    font-size: 0.94rem;
}

.site-feedback-badge {
    flex: 0 0 auto;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.22);
}

.site-feedback-form {
    display: grid;
    gap: 12px;
}

.site-feedback-form label {
    display: grid;
    gap: 6px;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 800;
}

.site-feedback-form input,
.site-feedback-form select,
.site-feedback-form textarea {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    font: inherit;
    font-weight: 600;
}

.site-feedback-form input,
.site-feedback-form select {
    height: 44px;
    padding: 0 12px;
}

.site-feedback-form textarea {
    min-height: 118px;
    padding: 12px;
    resize: vertical;
}

.site-feedback-form input:focus,
.site-feedback-form select:focus,
.site-feedback-form textarea:focus {
    border-color: #22c55e;
    outline: 3px solid rgba(34, 197, 94, 0.16);
}

.site-feedback-submit {
    width: 100%;
    justify-content: center;
}

.site-feedback-message {
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 700;
}

.site-feedback-message.is-success {
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
}

.site-feedback-message.is-error {
    background: rgba(239, 68, 68, 0.12);
    color: #991b1b;
}

body.site-feedback-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .site-feedback-card {
        padding: 18px;
        border-radius: 20px;
    }
}

@media (max-width: 980px) {
    .site-feedback-button {
        display: none;
    }
}
