@font-face {
    font-family: "Alimama DongFangDaKai Local";
    src:
        url("/static/fonts/AlimamaDongFangDaKai-Regular.woff2") format("woff2"),
        url("/static/fonts/AlimamaDongFangDaKai-Regular.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Alimama DongFangDaKai Local";
    src:
        url("/static/fonts/AlimamaDongFangDaKai-Regular.woff2") format("woff2"),
        url("/static/fonts/AlimamaDongFangDaKai-Regular.woff") format("woff");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --bg: #f3f6fb;
    --bg-soft: #eef4fa;
    --card: rgba(255, 255, 255, 0.92);
    --card-border: rgba(36, 80, 120, 0.08);
    --text: #152033;
    --muted: #66758c;
    --primary: #1f75ff;
    --primary-deep: #1456bf;
    --accent: #16c6b0;
    --accent-deep: #0b9d8a;
    --warning: #ff9b38;
    --danger: #ef4d64;
    --shadow: 0 20px 50px rgba(20, 58, 107, 0.12);
    --radius: 24px;
    --font-base: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --font-display: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: var(--font-base);
    background:
        radial-gradient(circle at top left, rgba(31, 117, 255, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(22, 198, 176, 0.16), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 52%, #eef3fb 100%);
    color: var(--text);
}

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

img {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 4vw, 48px);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(32, 66, 110, 0.08);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(31, 117, 255, 0.16), rgba(22, 198, 176, 0.22));
    color: var(--primary-deep);
    font-size: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--primary);
    background: rgba(31, 117, 255, 0.08);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-user {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(15, 45, 90, 0.06);
    color: var(--text);
    font-weight: 700;
}

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

.flash {
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 16px;
    font-weight: 600;
}

.flash.success {
    background: rgba(22, 198, 176, 0.12);
    color: var(--accent-deep);
}

.flash.error {
    background: rgba(239, 77, 100, 0.12);
    color: #b42f44;
}

.hero,
.auth-card,
.rental-layout {
    display: grid;
    gap: 24px;
}

.hero {
    grid-template-columns: 1.1fr 0.9fr;
    margin-bottom: 28px;
}

.hero-copy,
.hero-panel,
.info-card,
.game-card,
.auth-card,
.rental-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel,
.rental-card,
.info-card {
    padding: 28px;
}

.hero-tag {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(31, 117, 255, 0.1);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.06;
}

.hero-copy p,
.section-meta,
.helper-text {
    margin: 0;
    line-height: 1.8;
    color: var(--muted);
}

.hero-stats,
.summary-strip,
.credential-grid,
.meta-list,
.auth-points {
    display: grid;
    gap: 14px;
}

.hero-stats,
.summary-strip {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 28px;
}

.hero-stat,
.summary-item,
.credential-item,
.auth-point {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(31, 117, 255, 0.08);
}

.hero-stat strong,
.summary-item strong,
.credential-item strong {
    display: block;
    margin-top: 6px;
    font-size: 18px;
    word-break: break-all;
}

.hero-stat span,
.summary-item span,
.credential-item span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.section-title {
    margin: 0 0 16px;
    font-size: 22px;
}

.form-row,
.search-form,
.card-actions,
.auth-links,
.inline-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.search-form {
    flex: 1;
}

.input,
.textarea,
.select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(41, 78, 124, 0.12);
    border-radius: 16px;
    background: #fff;
    color: var(--text);
}

.input:focus,
.textarea:focus,
.select:focus {
    outline: none;
    border-color: rgba(31, 117, 255, 0.35);
    box-shadow: 0 0 0 4px rgba(31, 117, 255, 0.08);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.btn.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #39a1ff);
    box-shadow: 0 14px 24px rgba(31, 117, 255, 0.2);
}

.btn.accent {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #20d7ae);
    box-shadow: 0 14px 24px rgba(22, 198, 176, 0.22);
}

.btn.ghost {
    color: var(--primary);
    background: rgba(31, 117, 255, 0.08);
}

.btn.block {
    width: 100%;
}

.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.game-card {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cover-frame {
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(31, 117, 255, 0.16), rgba(22, 198, 176, 0.18));
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(22, 47, 80, 0.72);
    font-weight: 800;
}

.card-title {
    margin: 0;
    font-size: 20px;
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
}

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

.empty-state {
    padding: 42px 24px;
    text-align: center;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.72);
    border: 1px dashed rgba(41, 78, 124, 0.18);
    border-radius: 24px;
}

.auth-wrap {
    min-height: calc(100vh - 110px);
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(980px, 100%);
    grid-template-columns: 1fr 0.9fr;
    overflow: hidden;
}

.auth-side {
    padding: 36px;
    background:
        radial-gradient(circle at top left, rgba(31, 117, 255, 0.2), transparent 30%),
        linear-gradient(180deg, #ffffff, #f2f7ff);
}

.auth-side h1 {
    margin: 0 0 14px;
    font-size: 36px;
}

.auth-form-pane {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

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

.field-label {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.auth-links {
    color: var(--primary);
    font-weight: 700;
}

.rental-layout {
    grid-template-columns: 1.1fr 0.9fr;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.history-table th,
.history-table td {
    padding: 14px 10px;
    border-bottom: 1px solid rgba(33, 66, 110, 0.08);
    text-align: left;
    color: var(--muted);
}

.history-table th {
    color: var(--text);
    font-size: 13px;
}

.token-box {
    margin-top: 18px;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(31, 117, 255, 0.08), rgba(22, 198, 176, 0.12));
}

.token-value {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 0.28em;
    margin: 12px 0 8px;
}

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

.toast-stack {
    position: fixed;
    top: 96px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    justify-items: center;
    gap: 10px;
    z-index: 80;
    pointer-events: none;
}

.toast {
    min-width: 320px;
    max-width: min(460px, calc(100vw - 24px));
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px 14px 14px;
    border: 1px solid rgba(220, 227, 235, 0.95);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    color: #1f2329;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.01em;
    box-shadow: 0 16px 38px rgba(22, 29, 28, 0.16);
    backdrop-filter: blur(14px);
    opacity: 0;
    transform: translateY(-14px) scale(0.96);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: auto;
}

.toast::before {
    content: "i";
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(22, 29, 28, 0.16);
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast.is-leaving {
    opacity: 0;
    transform: translateY(-10px) scale(0.96);
}

.toast.success {
    border-color: rgba(103, 194, 58, 0.32);
    background: linear-gradient(135deg, rgba(103, 194, 58, 0.18), rgba(255, 255, 255, 0.98) 60%);
    color: #1f2d1d;
}

.toast.success::before {
    content: "✓";
    background: #67c23a;
}

.toast.error {
    border-color: rgba(245, 108, 108, 0.32);
    background: linear-gradient(135deg, rgba(245, 108, 108, 0.18), rgba(255, 255, 255, 0.98) 60%);
    color: #4a1f1f;
}

.toast.error::before {
    content: "!";
    background: #f56c6c;
}

.toast.info {
    border-color: rgba(64, 158, 255, 0.3);
    background: linear-gradient(135deg, rgba(64, 158, 255, 0.18), rgba(255, 255, 255, 0.98) 60%);
    color: #18324d;
}

.toast.info::before {
    content: "i";
    background: #409eff;
}

@media (max-width: 768px) {
    .toast-stack {
        top: 76px;
        width: calc(100% - 24px);
    }

    .toast {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 1180px) {
    .game-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .hero,
    .auth-card,
    .rental-layout {
        grid-template-columns: 1fr;
    }

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

    .hero-stats,
    .summary-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .site-header {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links,
    .nav-auth {
        justify-content: center;
    }

    .page-shell {
        width: min(100% - 20px, 1240px);
    }

    .toolbar,
    .search-form,
    .form-row,
    .card-actions {
        flex-direction: column;
    }

    .game-grid {
        grid-template-columns: 1fr;
    }

    .auth-side,
    .auth-form-pane,
    .hero-copy,
    .hero-panel,
    .rental-card,
    .info-card {
        padding: 22px;
    }

    .history-table,
    .history-table thead,
    .history-table tbody,
    .history-table tr,
    .history-table th,
    .history-table td {
        display: block;
    }

    .history-table thead {
        display: none;
    }

    .history-table tr {
        margin-bottom: 14px;
        padding: 12px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.7);
    }

    .history-table td {
        padding: 6px 0;
        border-bottom: none;
    }
}

/* Homepage refresh inspired by steamgo.cc */
:root {
    --bg: #f4f5f7;
    --bg-soft: #f7f8fa;
    --card: #ffffff;
    --card-border: rgba(18, 27, 38, 0.06);
    --text: #2c3038;
    --muted: #6b7280;
    --primary: #409eff;
    --primary-deep: #2d7fd3;
    --accent: #12c9b1;
    --accent-deep: #0ea591;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
    --radius: 14px;
    --font-base: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --font-display: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

body.site-body {
    background:
        radial-gradient(circle at top, rgba(64, 158, 255, 0.06), transparent 24%),
        linear-gradient(180deg, #f8f9fb 0%, #f3f4f6 38%, #f5f6f8 100%);
    color: var(--text);
}

.site-header {
    position: sticky;
    top: 0;
    display: block;
    padding: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
}

.header-inner {
    width: min(1260px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand {
    flex: 0 0 auto;
    gap: 12px;
    font-size: 18px;
    font-weight: 900;
    color: #2b3037;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #111827;
    color: #ffffff;
    font-size: 18px;
    box-shadow: none;
}

.brand-text {
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.nav-search {
    flex: 1 1 260px;
    max-width: 360px;
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 6px;
    border: 1px solid rgba(17, 24, 39, 0.18);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.nav-search-input {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: none;
    outline: none;
    color: var(--text);
    background: #ffffff;
}

.nav-search-input::placeholder {
    color: #9aa2af;
}

.nav-search-button {
    width: 54px;
    height: 46px;
    border: none;
    border-left: 1px solid rgba(17, 24, 39, 0.08);
    background: #ffffff;
    color: #4b5563;
    font-weight: 700;
    cursor: pointer;
}

.nav-links {
    gap: 8px;
    margin-left: auto;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 10px;
    color: #2f3640;
    font-size: 15px;
    font-weight: 800;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--primary);
    background: rgba(64, 158, 255, 0.1);
}

.nav-auth {
    flex: 0 0 auto;
    gap: 10px;
}

.nav-user,
.nav-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: #ffffff;
    color: #2f3640;
    font-size: 14px;
    font-weight: 800;
}

.nav-auth-btn.primary {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary), #5faeff);
}

.page-shell {
    width: min(1260px, calc(100% - 32px));
    padding: 24px 0 72px;
}

.flash {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.home-utility {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.utility-status {
    display: grid;
    gap: 4px;
}

.utility-status strong {
    font-size: 15px;
    font-weight: 900;
    color: var(--text);
}

.utility-status span {
    color: var(--muted);
    line-height: 1.7;
}

.utility-redeem,
.utility-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.utility-input {
    min-width: 240px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-radius: 12px;
}

.utility-submit {
    min-width: 96px;
    min-height: 44px;
    border-radius: 12px;
}

.home-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: 18px;
    margin-bottom: 24px;
}

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

.stage-copy,
.stage-redeem {
    padding: 26px;
}

.stage-kicker,
.catalog-tag,
.panel-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(64, 158, 255, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.stage-copy h1 {
    margin: 18px 0 14px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.stage-description,
.catalog-head p,
.section-meta {
    margin: 0;
    color: var(--muted);
    line-height: 1.85;
}

.stage-metrics,
.entitlement-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.stage-metric,
.entitlement-item,
.panel-note {
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.stage-metric,
.entitlement-item {
    padding: 16px;
}

.stage-metric span,
.entitlement-item span,
.stock-box span,
.price-box span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.stage-metric strong,
.entitlement-item strong {
    display: block;
    margin-top: 8px;
    font-size: 18px;
    line-height: 1.45;
    word-break: break-all;
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.panel-heading h2 {
    margin: 10px 0 0;
    font-size: 24px;
}

.panel-user {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #2f3640;
    font-size: 13px;
    font-weight: 800;
}

.redeem-form {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.redeem-input {
    min-width: 0;
}

.redeem-submit {
    min-width: 132px;
}

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

.panel-notes {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.panel-note {
    padding: 13px 14px;
    color: #525f72;
    line-height: 1.7;
}

.catalog-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.catalog-head h2 {
    margin: 10px 0 6px;
    font-size: 30px;
    line-height: 1.15;
}

.catalog-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.catalog-pill {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #3b4552;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.catalog-pill.highlight {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, #111827, #374151);
}

.game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.game-card {
    gap: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.06);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.cover-frame {
    aspect-ratio: 16 / 6.5;
    border-radius: 0;
    background: linear-gradient(135deg, #dbeafe, #d1fae5);
}

.game-card-body {
    display: grid;
    gap: 18px;
    padding: 16px 16px 18px;
}

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

.card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.45;
}

.steam-link {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 68px;
    color: #5d6572;
    font-size: 12px;
    line-height: 1.35;
}

.steam-link strong {
    margin-top: 3px;
    color: #4b5563;
    font-size: 14px;
}

.game-card-mid,
.game-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.benefit-copy {
    display: grid;
    gap: 6px;
}

.benefit-badge {
    color: #ff3131;
    font-size: 14px;
    font-weight: 900;
}

.benefit-note {
    color: #7c8798;
    font-size: 12px;
    font-weight: 700;
}

.price-box {
    text-align: right;
}

.price-box strong {
    display: block;
    margin-top: 6px;
    color: #ff3131;
    font-size: 16px;
    font-weight: 900;
}

.stock-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stock-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #68b8ff, #2d7fd3);
    color: #ffffff;
    font-size: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.stock-box strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
    font-size: 28px;
    line-height: 1;
}

.claim-action {
    min-width: 104px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 6px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), #15cfb8);
    box-shadow: none;
}

.claim-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 18px rgba(18, 201, 177, 0.18);
}

.claim-action[disabled] {
    background: #d1d5db;
    color: #ffffff;
}

.empty-state {
    background: rgba(255, 255, 255, 0.86);
    border: 1px dashed rgba(148, 163, 184, 0.28);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

@media (max-width: 1180px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 14px 0;
    }

    .nav-search {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
        margin-left: 0;
    }

    .nav-links {
        margin-left: 0;
    }

    .home-stage {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) {
    .home-utility {
        align-items: stretch;
        flex-direction: column;
    }

    .utility-redeem,
    .utility-actions {
        width: 100%;
    }

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

    .catalog-head,
    .game-card-mid,
    .game-card-foot {
        align-items: flex-start;
        flex-direction: column;
    }

    .catalog-summary {
        justify-content: flex-start;
    }

    .stage-metrics,
    .entitlement-board {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .site-header {
        position: static;
    }

    .header-inner {
        width: min(100% - 20px, 1260px);
        gap: 12px;
    }

    .brand {
        width: 100%;
        justify-content: center;
    }

    .nav-links,
    .nav-auth {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-link,
    .nav-user,
    .nav-auth-btn {
        flex: 1 1 auto;
    }

    .page-shell {
        width: min(100% - 20px, 1260px);
        padding-top: 18px;
    }

    .stage-copy,
    .stage-redeem {
        padding: 20px;
    }

    .redeem-form,
    .panel-actions,
    .utility-redeem,
    .utility-actions {
        flex-direction: column;
    }

    .redeem-submit,
    .claim-action,
    .utility-submit,
    .utility-input {
        width: 100%;
    }

    .game-grid {
        grid-template-columns: 1fr;
    }

    .game-card-head {
        gap: 16px;
    }
}

/* Strict homepage replica based on provided UI */
.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    flex: 0 0 auto;
    vertical-align: middle;
    background-color: currentColor;
    -webkit-mask: var(--icon-mask) center / contain no-repeat;
    mask: var(--icon-mask) center / contain no-repeat;
}

.icon-search {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
}

.icon-user {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.25'/%3E%3Cpath d='M5 19c1.4-3.1 4.05-4.65 7-4.65S17.6 15.9 19 19'/%3E%3C/svg%3E");
}

.icon-external {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 5h5v5'/%3E%3Cpath d='M10 14 19 5'/%3E%3Cpath d='M19 13v5a1 1 0 0 1-1 1h-12a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E");
}

.icon-group {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='9' r='3'/%3E%3Ccircle cx='17' cy='10' r='2.5'/%3E%3Cpath d='M3.5 18c1.3-2.7 3.5-4 6.5-4s5.2 1.3 6.5 4'/%3E%3Cpath d='M14.5 17.5c.65-1.6 1.95-2.4 3.85-2.4 1.2 0 2.3.35 3.15 1.05'/%3E%3C/svg%3E");
}

.icon-chevron-left {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E");
}

.icon-chevron-right {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
}

.icon-close {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round'%3E%3Cpath d='M6 6 18 18'/%3E%3Cpath d='M18 6 6 18'/%3E%3C/svg%3E");
}

body.site-body {
    background: #f4fbf8;
    color: #161d1c;
    font-family: var(--font-base);
}

body.modal-open {
    overflow: hidden;
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    display: block;
    padding: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(108, 122, 119, 0.08), 0 8px 24px rgba(22, 29, 28, 0.04);
    border-bottom: 1px solid rgba(187, 202, 198, 0.1);
}

.header-inner {
    width: min(1536px, calc(100% - 32px));
    min-height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    color: #006a62;
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-text {
    color: #006a62;
}

.nav-search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    max-width: 36rem;
    margin: 0 12px;
    padding: 4px;
    border-radius: 999px;
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(187, 202, 198, 0.2);
}

.nav-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c7a77;
    font-size: 20px;
    pointer-events: none;
}

.nav-search-input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 38px;
    padding: 0 16px 0 42px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #161d1c;
    font-size: 14px;
    box-shadow: none;
}

.nav-search-input:focus {
    outline: none;
    box-shadow: none;
}

.nav-search-button {
    position: static;
    min-width: 78px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: none;
    border-radius: 999px;
    background: #00c2b3;
    color: #004a43;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.nav-main {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
}

.nav-link {
    position: relative;
    padding-bottom: 4px;
    border-radius: 0;
    color: #5b6764;
    background: transparent;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #006a62;
    background: transparent;
}

.nav-link.is-active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: #00c2b3;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-login-btn,
.nav-logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 20px;
    border: none;
    border-radius: 999px;
    background: #00c2b3;
    color: #004a43;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(0, 194, 179, 0.16);
    cursor: pointer;
}

.nav-login-btn .icon {
    font-size: 20px;
}

.nav-logout-link {
    padding: 0 12px;
    background: transparent;
    color: #6c7a77;
    box-shadow: none;
}

.page-shell {
    width: min(1536px, calc(100% - 32px));
    margin: 0 auto;
    padding: 104px 0 72px;
}

.flash {
    margin-bottom: 20px;
    border-radius: 16px;
}

.page-home .home-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.home-card {
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(187, 202, 198, 0.16);
    box-shadow: 0 10px 28px rgba(22, 29, 28, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(22, 29, 28, 0.1);
}

.home-card-media {
    position: relative;
    aspect-ratio: 16 / 6.6;
    overflow: hidden;
    background: #dde4e2;
}

.home-card-image,
.home-card-placeholder {
    width: 100%;
    height: 100%;
}

.home-card-image {
    object-fit: cover;
    transition: transform 0.7s ease;
}

.home-card:hover .home-card-image {
    transform: scale(1.05);
}

.home-card-placeholder {
    display: grid;
    place-items: center;
    color: #356760;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
}

.home-card-steam-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-size: 10px;
    line-height: 1;
    backdrop-filter: blur(10px);
}

.home-card-steam-badge .icon {
    font-size: 12px;
}

.home-card-body {
    padding: 14px;
}

.home-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.home-card-title {
    margin: 0;
    color: #161d1c;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.home-card-tag {
    flex: 0 0 auto;
    color: #6c7a77;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.home-card-meta-item,
.home-card-meta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3c4947;
    font-size: 11px;
    font-weight: 500;
}

.home-card-meta-item .icon,
.home-card-meta-link .icon {
    color: #6c7a77;
    font-size: 14px;
}

.home-card-meta-link {
    color: #006a62;
}

.home-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid #e8efed;
}

.home-card-price span {
    display: block;
    margin-bottom: 4px;
    color: #6c7a77;
    font-size: 10px;
    font-weight: 500;
}

.home-card-price strong {
    color: #ff0000!important;
    font-size: 15px;
    font-weight: 800;
}

.home-card-claim {
    min-height: 32px;
    padding: 0 14px;
    border: none;
    border-radius: 8px;
    background: #00c2b3;
    color: #004a43;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-card-claim:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 194, 179, 0.18);
}

.home-card-claim[disabled] {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pagination-wrap {
    margin-top: 80px;
    display: flex;
    justify-content: center;
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-arrow,
.pagination-page {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 12px;
    color: #3c4947;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.pagination-arrow:hover,
.pagination-page:hover {
    background: #e3eae7;
}

.pagination-page.is-active {
    background: #00c2b3;
    color: #004a43;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(0, 194, 179, 0.16);
}

.pagination-arrow.is-disabled {
    opacity: 0.3;
    pointer-events: none;
}

.pagination-ellipsis {
    padding: 0 8px;
    color: #bbcac6;
}

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

.redeem-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
}

.redeem-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22, 29, 28, 0.4);
    backdrop-filter: blur(6px);
}

.redeem-modal-panel {
    position: relative;
    width: min(640px, calc(100% - 24px));
    margin: 100px auto 0;
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(22, 29, 28, 0.18);
}

.redeem-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: #eef5f3;
    color: #356760;
    cursor: pointer;
}

.redeem-modal-head h2 {
    margin: 10px 0 10px;
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 1.15;
    color: #161d1c;
}

.redeem-modal-head p {
    margin: 0;
    color: #3c4947;
    line-height: 1.8;
}

.redeem-modal-form {
    margin-top: 22px;
    display: flex;
    gap: 12px;
}

.redeem-modal-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 50px;
    border-radius: 999px;
    border: none;
    background: #e3eae7;
    box-shadow: inset 0 0 0 1px rgba(187, 202, 198, 0.24);
}

.redeem-modal-submit {
    min-width: 120px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: #00c2b3;
    color: #004a43;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.redeem-modal-actions {
    margin-top: 22px;
    display: flex;
    gap: 12px;
}

.link-button {
    text-decoration: none;
}

.redeem-modal-tips {
    margin-top: 22px;
    display: grid;
    gap: 10px;
}

.redeem-modal-tip {
    padding: 14px 16px;
    border-radius: 16px;
    background: #eef5f3;
    color: #3c4947;
    line-height: 1.75;
}

.empty-state {
    padding: 56px 24px;
    text-align: center;
    border-radius: 20px;
    background: #ffffff;
    border: 1px dashed rgba(187, 202, 198, 0.4);
    box-shadow: 0 10px 24px rgba(22, 29, 28, 0.05);
    color: #6c7a77;
}

@media (max-width: 1280px) {
    .page-home .home-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .header-inner {
        width: min(100% - 24px, 1536px);
        flex-wrap: wrap;
        justify-content: center;
        padding: 14px 0;
    }

    .nav-search {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
        margin: 0;
    }

    .nav-main {
        width: 100%;
        justify-content: space-between;
    }

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

@media (max-width: 768px) {
    .site-header {
        position: sticky;
    }

    .header-inner {
        min-height: auto;
        gap: 10px;
        padding: 12px 0 14px;
    }

    .page-shell {
        width: min(100% - 20px, 1536px);
        padding-top: 18px;
    }

    .nav-main {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .nav-links {
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-start;
        gap: 10px;
        overflow-x: visible;
        white-space: nowrap;
    }

    .nav-auth {
        width: auto;
        flex: 0 0 auto;
        justify-content: flex-end;
    }

    .nav-link {
        font-size: 13px;
        padding-bottom: 2px;
    }

    .nav-login-btn,
    .nav-logout-link {
        min-height: 34px;
        padding: 0 12px;
        font-size: 12px;
    }

    .nav-login-btn .icon {
        font-size: 16px;
    }

    .page-home .home-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-card-footer,
    .redeem-modal-form,
    .redeem-modal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-card-claim,
    .redeem-modal-submit {
        width: 100%;
    }
}

/* Auth pages aligned with homepage palette */
.page-login .auth-wrap,
.page-register .auth-wrap,
.page-password_recovery .auth-wrap {
    min-height: calc(100vh - 128px);
    padding: 20px 0 6px;
}

.page-login .auth-card,
.page-register .auth-card {
    width: min(560px, 100%);
    display: block;
    border: 1px solid rgba(187, 202, 198, 0.45);
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(22, 29, 28, 0.08);
}

.page-password_recovery .auth-card {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    border: 1px solid rgba(187, 202, 198, 0.45);
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(22, 29, 28, 0.08);
}

.page-password_recovery .auth-side {
    padding: 34px 34px 32px;
    background:
        radial-gradient(circle at top left, rgba(0, 194, 179, 0.18), transparent 34%),
        radial-gradient(circle at bottom right, rgba(64, 220, 204, 0.16), transparent 30%),
        linear-gradient(180deg, #f8fffd 0%, #eef5f3 100%);
}

.page-password_recovery .hero-tag {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 194, 179, 0.14);
    color: #006a62;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.page-password_recovery .auth-side h1 {
    margin: 18px 0 12px;
    color: #161d1c;
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.14;
}

.page-password_recovery .auth-side p {
    margin: 0;
    max-width: 320px;
    color: #3c4947;
    line-height: 1.8;
}

.page-login .auth-form-pane,
.page-register .auth-form-pane,
.page-password_recovery .auth-form-pane {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    background: #ffffff;
}

.page-login .section-title,
.page-register .section-title,
.page-password_recovery .section-title {
    margin: 0;
    color: #161d1c;
    font-family: var(--font-display);
    font-size: 28px;
    line-height: 1.15;
}

.page-login .auth-form-pane form,
.page-register .auth-form-pane form,
.page-password_recovery .auth-form-pane form {
    display: grid;
    gap: 14px;
}

.page-login .field-group,
.page-register .field-group,
.page-password_recovery .field-group {
    gap: 8px;
}

.page-login .field-label,
.page-register .field-label,
.page-password_recovery .field-label {
    color: #6c7a77;
    font-size: 13px;
    font-weight: 700;
}

.page-login .input,
.page-login .textarea,
.page-login .select,
.page-register .input,
.page-register .textarea,
.page-register .select,
.page-password_recovery .input,
.page-password_recovery .textarea,
.page-password_recovery .select {
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid rgba(187, 202, 198, 0.72);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.page-login .input:focus,
.page-login .textarea:focus,
.page-login .select:focus,
.page-register .input:focus,
.page-register .textarea:focus,
.page-register .select:focus,
.page-password_recovery .input:focus,
.page-password_recovery .textarea:focus,
.page-password_recovery .select:focus {
    border-color: rgba(0, 194, 179, 0.55);
    box-shadow: 0 0 0 4px rgba(0, 194, 179, 0.14);
}

.page-login .btn.primary,
.page-login .btn.accent,
.page-register .btn.primary,
.page-register .btn.accent,
.page-password_recovery .btn.primary,
.page-password_recovery .btn.accent {
    background: #00c2b3;
    color: #004a43;
    box-shadow: 0 14px 28px rgba(0, 194, 179, 0.22);
}

.page-login .auth-submit,
.page-register .auth-submit,
.page-password_recovery .auth-submit {
    margin-top: 8px;
    min-height: 54px;
    border-radius: 18px;
    letter-spacing: 0.02em;
}

.page-login .auth-links,
.page-register .auth-links,
.page-password_recovery .auth-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    color: #006a62;
    font-size: 14px;
    font-weight: 700;
}

.page-login .auth-links a,
.page-register .auth-links a,
.page-password_recovery .auth-links a {
    position: relative;
}

.page-login .auth-links a::after,
.page-register .auth-links a::after,
.page-password_recovery .auth-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.page-login .auth-links a:hover::after,
.page-register .auth-links a:hover::after,
.page-password_recovery .auth-links a:hover::after {
    opacity: 1;
}

@media (max-width: 900px) {
    .page-password_recovery .auth-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-login .auth-wrap,
    .page-register .auth-wrap,
    .page-password_recovery .auth-wrap {
        min-height: auto;
        padding-top: 4px;
    }

    .page-login .auth-side,
    .page-login .auth-form-pane,
    .page-register .auth-side,
    .page-register .auth-form-pane,
    .page-password_recovery .auth-side,
    .page-password_recovery .auth-form-pane {
        padding: 22px 18px;
    }

    .page-login .section-title,
    .page-register .section-title,
    .page-password_recovery .section-title {
        font-size: 24px;
    }

    .page-login .auth-links,
    .page-register .auth-links,
    .page-password_recovery .auth-links {
        gap: 14px;
        justify-content: space-between;
    }
}

/* FAQ */
.page-rentals .page-shell {
    width: min(1720px, calc(100% - 24px));
}

.page-rentals .rental-layout {
    grid-template-columns: minmax(210px, 0.56fr) minmax(0, 1.4fr) minmax(360px, 1.08fr);
    gap: 18px;
    align-items: start;
}

.page-rentals .rental-main-card,
.page-rentals .rental-history-card,
.page-rentals .rental-faq-card {
    min-width: 0;
}

.page-rentals .rental-main-card {
    min-height: 100%;
}

.page-rentals .rental-history-card {
    overflow: hidden;
}

.page-rentals .faq-button-list {
    margin-top: 16px;
}

.page-rentals .rental-faq-card {
    padding: 20px 18px;
}

.page-rentals .rental-faq-card .section-title {
    margin-bottom: 12px;
}

.page-rentals .rental-faq-card .section-meta {
    font-size: 13px;
    line-height: 1.75;
}

.page-rentals .rental-faq-card .faq-button-list {
    gap: 10px;
}

.page-rentals .rental-faq-card .faq-link-btn {
    min-height: 46px;
    padding: 0 12px;
    font-size: 14px;
}

.page-rentals .rental-faq-card .faq-link-btn::after {
    font-size: 11px;
}

.faq-card,
.faq-detail-card {
    border: 1px solid rgba(187, 202, 198, 0.2);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(22, 29, 28, 0.07);
}

.faq-card {
    padding: 24px 26px;
}

.faq-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.faq-button-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.faq-link-btn {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid rgba(0, 194, 179, 0.2);
    background: linear-gradient(180deg, #f9fffd 0%, #f2faf8 100%);
    color: #18403c;
    font-size: 15px;
    font-weight: 800;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-link-btn::after {
    content: "查看";
    flex: 0 0 auto;
    color: #006a62;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.faq-link-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 194, 179, 0.35);
    box-shadow: 0 14px 24px rgba(0, 194, 179, 0.12);
}

.page-faq .page-shell {
    width: min(1040px, calc(100% - 32px));
}

.faq-detail-shell {
    width: min(900px, 100%);
    margin: 0 auto;
}

.faq-detail-card {
    padding: 34px;
}

.faq-detail-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(0, 194, 179, 0.12);
    color: #006a62;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.faq-detail-title {
    margin: 18px 0 0;
    color: #161d1c;
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.18;
}

.faq-detail-actions {
    margin: 22px 0 0;
}

.faq-detail-content {
    margin-top: 28px;
    color: #30403d;
    line-height: 1.95;
}

.faq-detail-content h1,
.faq-detail-content h2,
.faq-detail-content h3 {
    margin: 28px 0 14px;
    color: #161d1c;
    line-height: 1.3;
}

.faq-detail-content p,
.faq-detail-content ul,
.faq-detail-content ol,
.faq-detail-content blockquote {
    margin: 0 0 16px;
}

.faq-detail-content ul,
.faq-detail-content ol {
    padding-left: 22px;
}

.faq-detail-content a {
    color: #006a62;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-detail-content blockquote {
    padding: 14px 16px;
    border-radius: 16px;
    background: #f4fbf8;
    border-left: 4px solid rgba(0, 194, 179, 0.55);
}

.faq-detail-content img {
    height: auto;
    margin: 20px 0;
    border-radius: 18px;
}

.home-floating-entry {
    position: fixed;
    right: clamp(16px, 3vw, 36px);
    bottom: clamp(18px, 4vw, 34px);
    z-index: 35;
    display: grid;
    gap: 2px;
    min-width: 138px;
    padding: 14px 16px 13px;
    border: 1px solid rgba(16, 81, 158, 0.14);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(234, 245, 255, 0.96)),
        linear-gradient(145deg, rgba(31, 117, 255, 0.12), rgba(22, 198, 176, 0.12));
    box-shadow: 0 22px 48px rgba(20, 58, 107, 0.18);
    backdrop-filter: blur(14px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-floating-entry:hover {
    transform: translateY(-2px);
    border-color: rgba(31, 117, 255, 0.28);
    box-shadow: 0 26px 54px rgba(20, 58, 107, 0.24);
}

.home-floating-entry-line {
    display: block;
    font-family: var(--font-display);
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    color: #10438f;
    white-space: nowrap;
}

.home-floating-entry-sub {
    font-size: 13px;
    color: #0f8f7d;
    letter-spacing: 0.04em;
}

@media (max-width: 1180px) {
    .page-rentals .page-shell {
        width: min(100% - 20px, 1536px);
    }

    .page-rentals .rental-layout {
        grid-template-columns: minmax(190px, 0.52fr) minmax(0, 1.22fr) minmax(280px, 0.96fr);
        gap: 16px;
    }

    .page-rentals .faq-link-btn {
        min-height: 50px;
        padding: 0 14px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .faq-card,
    .faq-detail-card {
        padding: 22px 18px;
    }

    .faq-link-btn {
        min-height: 50px;
        padding: 0 14px;
    }

    .page-faq .page-shell {
        width: min(100% - 20px, 1040px);
    }

    .page-rentals .rental-layout {
        grid-template-columns: 1fr;
    }

    .page-rentals .page-shell {
        width: min(100% - 20px, 1720px);
    }

    .home-floating-entry {
        right: 12px;
        bottom: 14px;
        min-width: 124px;
        padding: 12px 14px;
    }

    .home-floating-entry-line {
        font-size: 16px;
    }

    .home-floating-entry-sub {
        font-size: 12px;
    }
}
