:root {
    --bg: #f6f8fc;
    --surface: #ffffff;
    --surface-alt: #f0f4ff;
    --surface-hover: #f8faff;
    --text: #1a1f2e;
    --text-secondary: #4a5068;
    --muted: #6b7280;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --primary-glow: rgba(37, 99, 235, 0.12);
    --accent: #7c3aed;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --success: #059669;
    --success-light: #d1fae5;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --border: #e2e8f4;
    --border-light: #eef2fa;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.03);
    --shadow: 0 4px 16px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.04);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 22px;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", "Microsoft YaHei", "Hiragino Sans", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 15px;
    letter-spacing: -0.01em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    background: var(--surface);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

button {
    cursor: pointer;
}

/* ── Header ── */

.site-header,
.mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid rgba(226, 232, 244, 0.7);
}

.site-header-inner,
.mobile-topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand,
.mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: opacity var(--transition);
}

.brand:hover,
.mobile-brand:hover {
    opacity: 0.85;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.brand-logo-image {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: contain;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    background: #fff;
}

.brand-copy,
.mobile-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.brand-title,
.mobile-brand-title {
    font-size: 1rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.brand-subtitle,
.mobile-brand-subtitle {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.3;
}

.header-actions,
.mobile-header-tools {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* ── Language Switcher ── */

.language-switcher {
    display: flex;
    align-items: center;
    position: relative;
}

.language-switcher-dropdown {
    position: relative;
}

.language-switcher-trigger {
    list-style: none;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    background: var(--surface);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.language-switcher-trigger::-webkit-details-marker {
    display: none;
}

.language-switcher-trigger::marker {
    content: "";
}

.language-switcher-trigger:hover {
    border-color: #bfd3f8;
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.language-switcher-dropdown[open] .language-switcher-trigger {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.language-flag {
    font-size: 1.15rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.language-flag-image {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.language-switcher-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    display: grid;
    gap: 0.3rem;
    min-width: 60px;
    padding: 0.4rem;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 40;
    animation: dropdown-in 0.18s ease-out;
}

@keyframes dropdown-in {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.language-switcher-option {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    padding: 0;
    transition: transform var(--transition), background-color var(--transition);
}

.language-switcher-option:hover {
    background: var(--surface-alt);
    transform: scale(1.05);
}

.language-switcher-option.is-active {
    background: var(--primary-light);
    box-shadow: inset 0 0 0 1.5px rgba(37, 99, 235, 0.15);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Header Meta ── */

.header-balance,
.header-user {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    background: var(--surface-alt);
    border-radius: 999px;
    font-size: 0.9rem;
    border: 1px solid var(--border-light);
}

.header-user-link {
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.header-user-link:hover {
    background: var(--primary-light);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.header-balance-label,
.muted,
.hint,
.form-help {
    color: var(--muted);
}

.hint {
    font-size: 0.92rem;
    line-height: 1.55;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
}

/* ── Nav ── */

.main-nav-wrap {
    border-top: 1px solid rgba(226, 232, 244, 0.6);
}

.main-nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
}

.main-nav a {
    padding: 0.8rem 0.75rem;
    color: var(--muted);
    border-bottom: 2.5px solid transparent;
    white-space: nowrap;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.main-nav a:hover {
    color: var(--text);
    background: rgba(37, 99, 235, 0.04);
}

.main-nav a.is-active {
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 700;
}

/* ── Page Shell ── */

.page-shell,
.mobile-page-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ── Footer ── */

.site-footer {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 2.5rem;
    color: var(--muted);
    font-size: 0.88rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-light);
}

/* ── Messages ── */

.messages {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.alert {
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 0.93rem;
    line-height: 1.55;
    background: #e0f2fe;
    color: #075985;
    border: 1px solid #bae6fd;
}

.alert-error {
    background: var(--danger-light);
    color: #991b1b;
    border-color: #fecaca;
}

.alert-success {
    background: var(--success-light);
    color: #065f46;
    border-color: #a7f3d0;
}

.alert-warning {
    background: var(--warning-light);
    color: #92400e;
    border-color: #fde68a;
}

/* ── Buttons ── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.15rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: -0.005em;
    transition: all var(--transition);
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
    white-space: nowrap;
}

.btn:hover:not(:disabled):not([disabled]) {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.btn:active:not(:disabled):not([disabled]) {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.15);
}

.btn:disabled,
.btn[disabled] {
    cursor: not-allowed;
    opacity: 0.58;
    box-shadow: none;
    transform: none;
    pointer-events: none;
    filter: grayscale(0.12);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    border-color: #cbd5e8;
    box-shadow: var(--shadow);
}

.btn-danger {
    background: var(--danger);
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.2);
}

.btn-danger:hover {
    background: #b91c1c;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-small {
    padding: 0.5rem 0.85rem;
    font-size: 0.87rem;
}

.btn-social {
    width: 100%;
}

.btn-social-google {
    background: var(--surface);
    color: var(--text);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-social-google:hover {
    background: var(--surface-hover);
    box-shadow: var(--shadow);
}

.btn-social-line {
    background: #06c755;
    box-shadow: 0 1px 3px rgba(6, 199, 85, 0.2);
}

.btn-social-line:hover {
    background: #05b14c;
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
}

.btn-social-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.btn-social-icon svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.btn-social-icon-image {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.btn-social-icon.btn-social-google {
    background: var(--surface);
    color: var(--text);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-social-icon.btn-social-google:hover {
    background: var(--surface-hover);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.btn-social-icon.btn-social-line {
    background: #06c755;
    border: 1.5px solid #06c755;
    color: #fff;
    box-shadow: 0 1px 3px rgba(6, 199, 85, 0.2);
}

.btn-social-icon.btn-social-line:hover {
    background: #05b14c;
    border-color: #05b14c;
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
    transform: translateY(-1px);
}

.btn-social-icon.btn-social-wechat {
    background: #07c160;
    border: 1.5px solid #07c160;
    color: #fff;
    box-shadow: 0 1px 3px rgba(7, 193, 96, 0.2);
}

.btn-social-icon.btn-social-wechat:hover {
    background: #06ad56;
    border-color: #06ad56;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
    transform: translateY(-1px);
}

/* ── Cards ── */

.card,
.hero-card,
.summary-card,
.auth-card,
.stack-card,
.resource-card,
.list-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-slow), border-color var(--transition-slow), transform var(--transition-slow);
}

.card,
.auth-card,
.stack-card {
    padding: 1.5rem;
}

/* ── Hero Section ── */

.hero-grid,
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

.hero-card {
    padding: 2.5rem 2.25rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.07) 0%, rgba(124, 58, 237, 0.06) 50%, rgba(37, 99, 235, 0.03) 100%);
    border-color: rgba(37, 99, 235, 0.12);
}

.hero-card-primary {
    min-height: 100%;
}

.hero-card h1,
.auth-card h1,
.card h1 {
    margin: 0 0 0.5rem;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.hero-copy {
    max-width: 58rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.hero-side-panel {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.hero-side-card,
.hero-side-note {
    display: grid;
    gap: 0.9rem;
}

.hero-side-card h2,
.hero-side-note h3 {
    margin: 0;
}

.hero-feature-list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-feature-list li {
    display: grid;
    gap: 0.2rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--surface-hover);
    border: 1px solid var(--border-light);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.hero-feature-list li:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.hero-feature-list strong {
    font-size: 0.95rem;
    color: var(--text);
}

.hero-feature-list span {
    color: var(--muted);
    font-size: 0.88rem;
}

.hero-actions,
.form-actions,
.stack-actions,
.resource-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.form-actions-tight {
    margin-top: 0.2rem;
}

/* ── Eyebrow ── */

.eyebrow {
    display: inline-flex;
    margin-bottom: 0.75rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── Card Grid ── */

.card-grid {
    display: grid;
    gap: 1rem;
}

.card-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 720px) {
    .card-grid-3 {
        grid-template-columns: 1fr;
    }
}

.home-feature-grid {
    margin-top: 2rem;
}

/* ── Hero Multi-line & Highlight ── */

.hero-copy-multi {
    white-space: pre-line;
}

.hero-highlight {
    display: inline-block;
    margin: 0.75rem 0 0;
    padding: 0.45rem 0.85rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 8px;
    color: #92400e;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.55;
}

.hero-feature-bold {
    font-weight: 700;
    color: var(--text);
    font-size: 0.9rem;
}

.hero-feature-detail {
    white-space: pre-line;
}

.feature-card-multi {
    white-space: pre-line;
}

/* ── Compare Banner ── */

.compare-banner {
    margin-top: 2rem;
    padding: 2rem 2.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.compare-banner-title {
    margin: 0 0 1.25rem;
    text-align: center;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.compare-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.compare-col {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-sm);
}

.compare-col h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.compare-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.compare-col ul li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.93rem;
    line-height: 1.6;
}

.compare-col ul li::before {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.compare-col-old {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.compare-col-old h3 {
    color: #991b1b;
}

.compare-col-old ul li {
    color: #7f1d1d;
}

.compare-col-old ul li::before {
    content: "\2717";
    color: var(--danger);
}

.compare-col-new {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.compare-col-new h3 {
    color: #065f46;
}

.compare-col-new ul li {
    color: #064e3b;
}

.compare-col-new ul li::before {
    content: "\2713";
    color: var(--success);
}

@media (max-width: 720px) {
    .compare-columns {
        grid-template-columns: 1fr;
    }

    .compare-banner {
        padding: 1.25rem 1rem;
    }
}

/* ── Summary Card ── */

.summary-card {
    padding: 1.15rem 1.25rem;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 0 2px 2px 0;
}

.summary-card-label {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 500;
}

.summary-card-value {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 0.3rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Feature Card ── */

.feature-card h2,
.section-header h1,
.section-header h2,
.section-header h3 {
    margin: 0;
    letter-spacing: -0.02em;
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 100%;
    padding: 1.5rem;
}

.feature-card:hover {
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: var(--shadow);
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.6;
}

/* ── Section Header ── */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

/* ── Dashboard ── */

.dashboard-main,
.dashboard-sidebar {
    min-width: 0;
}

/* ── Stack / Form ── */

.stack-form,
.stack-list,
.question-stack {
    display: grid;
    gap: 1rem;
}

.form-row {
    display: grid;
    gap: 0.4rem;
}

.form-row label {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text);
}

/* ── Checkbox Row ── */

.form-row-checkbox {
    gap: 0.3rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 500;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    accent-color: var(--primary);
    border-radius: 4px;
    cursor: pointer;
}

/* ── Form Help / Password Hints ── */

.form-help {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.55;
}

.form-help ul {
    margin: 0.35rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.25rem;
    background: var(--surface-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.85rem;
}

.form-help ul li {
    font-size: 0.82rem;
    color: var(--muted);
    padding-left: 1.1rem;
    position: relative;
}

.form-help ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--border);
}

.form-help a {
    color: var(--primary);
    font-weight: 500;
}

.form-help a:hover {
    color: var(--primary-dark);
}

.required-indicator {
    color: var(--danger);
}

.form-errors,
.errorlist {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--danger);
    font-size: 0.9rem;
}

.compact-form {
    margin-top: 1rem;
}

.preset-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.preset-chip {
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition);
}

.preset-chip:hover {
    border-color: rgba(37, 99, 235, 0.3);
    background: var(--surface-alt);
}

.preset-chip.is-selected {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

/* ── Auth ── */

.auth-shell {
    max-width: 520px;
    margin: 2rem auto 0;
}

.auth-card {
    padding: 2rem;
}

.auth-card h1 {
    font-size: 1.65rem;
}

.auth-submit .btn {
    width: 100%;
}

.auth-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
}

.auth-footer-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--transition);
}

.auth-footer-link:hover {
    color: var(--primary-dark);
}

.auth-footer-muted {
    color: var(--muted);
    font-weight: 500;
}

.auth-footer-sep {
    width: 1px;
    height: 14px;
    background: var(--border);
}

.social-provider-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-form-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.social-form-divider-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── LINE Email Permission (compact) ── */

.line-email-perm {
    margin-top: 1.25rem;
}

.line-email-perm .auth-card {
    padding: 1.35rem 1.5rem;
}

.line-email-perm .auth-card.stack-form {
    gap: 0.65rem;
}

.line-email-perm .eyebrow {
    margin-bottom: 0.25rem;
    font-size: 0.68rem;
    padding: 0.2rem 0.55rem;
}

.line-email-perm h1 {
    font-size: 1.1rem;
    margin-bottom: 0.15rem;
}

.line-email-perm .hint {
    font-size: 0.82rem;
    line-height: 1.5;
}

.line-email-perm .alert {
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
    line-height: 1.45;
}

.line-email-perm .hero-feature-list {
    gap: 0.45rem;
}

.line-email-perm .hero-feature-list li {
    padding: 0.55rem 0.75rem;
    gap: 0.1rem;
}

.line-email-perm .hero-feature-list strong {
    font-size: 0.84rem;
}

.line-email-perm .hero-feature-list span {
    font-size: 0.78rem;
}

.line-email-perm .checkbox-label {
    font-size: 0.82rem;
    gap: 0.45rem;
}

.line-email-perm .checkbox-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
}

.line-email-perm .form-help {
    font-size: 0.78rem;
}

.line-email-perm .stack-actions {
    margin-top: 0.5rem;
    gap: 0.5rem;
}

.line-email-perm .stack-actions .btn {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
}

.line-email-perm .stack-form {
    gap: 0.55rem;
}

/* ── Resource Card ── */

.resource-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.25rem;
}

.resource-card:hover {
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: var(--shadow);
}

.resource-card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.resource-card-header h3,
.resource-card-body p,
.list-card p,
.plan-section h3,
.question-card h4 {
    margin: 0;
}

.resource-card-body {
    display: grid;
    gap: 0.4rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

/* ── Tag ── */

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background: var(--surface-alt);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid var(--border);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Empty State ── */

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--muted);
}

.empty-state p {
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

/* ── Wallet ── */

.wallet-balance {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.wallet-balance-label {
    font-size: 0.85rem;
}

.wallet-balance strong {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.wallet-quota-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.wallet-quota-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.55rem 0.65rem;
    background: var(--surface-alt);
    border-radius: 8px;
    font-size: 0.82rem;
}

.wallet-quota-item strong {
    font-size: 1.05rem;
}

/* ── Recharge Grid ── */

.recharge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.recharge-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.05rem;
    padding: 0.65rem 0.4rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.recharge-chip:hover {
    border-color: rgba(37, 99, 235, 0.3);
    background: var(--surface-alt);
}

.recharge-chip:active,
.recharge-chip.is-selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.recharge-chip.is-selected {
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.recharge-chip-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.recharge-chip.is-selected .recharge-chip-value {
    color: var(--primary);
}

.recharge-chip-unit {
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 500;
}

.recharge-custom {
    margin-bottom: 0.75rem;
}

.payment-method-modal {
    display: none;
    position: fixed;
    inset: 0;
    padding: 24px;
    overflow: auto;
    background: rgba(15, 23, 42, 0.45);
    z-index: 240;
}

.payment-method-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-method-modal-panel {
    position: relative;
    width: auto;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16), 0 6px 16px rgba(15, 23, 42, 0.06);
    overflow: visible;
}

.payment-method-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    z-index: 1;
}

.payment-method-modal-close:hover {
    background: var(--surface-alt);
    color: var(--text);
}

.payment-method-modal-inner {
    padding: 28px 36px 24px;
    text-align: center;
}

.payment-method-modal-title {
    margin: 0 0 20px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.payment-method-options {
    display: flex;
    justify-content: center;
    gap: 28px;
}

.payment-method-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 18px;
    background: none;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.payment-method-option:hover:not(:disabled) {
    transform: scale(1.06);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
}

.payment-method-option:active:not(:disabled) {
    transform: scale(0.97);
}

.payment-method-option:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.payment-method-logo-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 16px;
}

.payment-method-feedback {
    margin: 14px 0 0;
    font-size: 0.84rem;
    text-align: center;
}

.payment-method-feedback:empty {
    display: none;
}

.payment-method-feedback.error-text {
    color: var(--danger);
}

.share-reward-entry {
    margin-top: 0.75rem;
}

.share-reward-open-btn {
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
    letter-spacing: 0.02em;
}

.share-reward-open-btn:hover {
    background: linear-gradient(135deg, #6d28d9, var(--primary-dark));
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
    transform: translateY(-1px);
}

.share-reward-open-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.2);
}

.share-reward-modal {
    display: none;
    position: fixed;
    inset: 0;
    padding: 24px;
    overflow: auto;
    background: rgba(15, 23, 42, 0.45);
    z-index: 240;
}

.share-reward-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-reward-modal-panel {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16), 0 6px 16px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.share-reward-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    z-index: 1;
}

.share-reward-modal-close:hover {
    background: var(--surface-alt);
    color: var(--text);
}

.share-reward-modal-inner {
    padding: 28px 28px 24px;
}

.share-reward-modal-title {
    margin: 0 0 6px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    padding-right: 36px;
}

.share-reward-modal-intro {
    margin: 0 0 18px;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--muted);
}

.wechat-login-popup-modal {
    display: none;
    position: fixed;
    inset: 0;
    padding: 24px;
    overflow: auto;
    background: rgba(15, 23, 42, 0.45);
    z-index: 240;
}

.wechat-login-popup-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wechat-login-popup-modal-panel {
    position: relative;
    width: min(92vw, 360px);
    max-width: 360px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.wechat-login-popup-image {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 24px;
    object-fit: contain;
    box-shadow: none;
    background: transparent;
}

.wechat-login-popup-brand-fallback {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.wechat-login-popup-brand-mark {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    font-size: 1.2rem;
}

.share-wechat-card {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.05);
}

.share-wechat-icon {
    flex-shrink: 0;
    color: var(--primary);
}

.share-wechat-tip {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.share-copy-card {
    display: grid;
    gap: 0.5rem;
    padding: 14px 14px 12px;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    background: var(--surface-alt);
}

.share-copy-card-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}

.share-copy-textarea {
    width: 100%;
    min-height: 100px;
    border: none;
    padding: 0;
    resize: none;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.88rem;
    line-height: 1.65;
}

.share-copy-textarea:focus {
    outline: none;
}

.share-copy-btn {
    width: 100%;
    margin-top: 14px;
}

.share-copy-feedback {
    margin: 8px 0 0;
    min-height: 0;
    text-align: center;
    font-size: 0.84rem;
}

.share-copy-feedback:empty {
    display: none;
}

.share-reward-details {
    margin: 12px 0 0;
}

.share-reward-details-summary {
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--primary);
    list-style: none;
    user-select: none;
}

.share-reward-details-summary::-webkit-details-marker {
    display: none;
}

.share-reward-details-summary::before {
    content: "▸ ";
}

.share-reward-details[open] > .share-reward-details-summary::before {
    content: "▾ ";
}

.share-reward-note {
    margin: 8px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--surface-alt);
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.7;
}

.force-stop-modal-note {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid rgba(220, 38, 38, 0.14);
    border-radius: 14px;
    background: rgba(220, 38, 38, 0.06);
    color: var(--text);
    line-height: 1.75;
}

.force-stop-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 24px 24px;
}

.force-stop-modal [data-force-stop-feedback] {
    margin: 14px 0 0;
    min-height: 1.25rem;
}

.wallet-meta {
    display: grid;
    gap: 0.35rem;
    color: var(--muted);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* ── Account ── */

.account-info-grid {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: 2fr 1fr;
    grid-auto-flow: column;
    grid-template-rows: 1fr 1fr;
}

.account-info-item,
.account-provider-pill {
    display: grid;
    gap: 0.3rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--surface-hover);
    transition: border-color var(--transition);
}

.account-info-item:hover,
.account-provider-pill:hover {
    border-color: var(--primary-light);
}

.account-info-label {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.account-provider-list,
.account-action-list {
    display: grid;
    gap: 0.75rem;
}

.language-settings-form {
    display: grid;
    gap: 1rem;
    max-width: 420px;
}

.language-settings-dropdown {
    position: relative;
}

.language-settings-trigger {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(135deg, #f8fbff 0%, #f0f4ff 60%, #f5f3ff 100%);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.language-settings-trigger::-webkit-details-marker {
    display: none;
}

.language-settings-trigger::marker {
    content: "";
}

.language-settings-trigger:hover {
    border-color: #bfd3f8;
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.language-settings-dropdown[open] .language-settings-trigger {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.language-settings-trigger-main,
.language-settings-menu-option-main {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.language-settings-option-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.language-settings-trigger-copy {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.language-settings-trigger-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.language-settings-trigger-hint {
    color: var(--muted);
    font-size: 0.78rem;
}

.language-settings-trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    flex-shrink: 0;
    transition: transform var(--transition);
}

.language-settings-dropdown[open] .language-settings-trigger-icon {
    transform: rotate(180deg);
}

.language-settings-menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    right: 0;
    display: grid;
    gap: 0.35rem;
    padding: 0.45rem;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 40;
    max-height: 320px;
    overflow-y: auto;
}

.language-settings-menu-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.8rem 0.85rem;
    border: none;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: inherit;
    transition: background-color var(--transition), transform var(--transition);
}

.language-settings-menu-option:hover {
    background: var(--surface-alt);
    transform: translateY(-1px);
}

.language-settings-menu-option.is-current {
    background: var(--primary-light);
}

.language-settings-menu-option-label {
    font-size: 0.95rem;
    font-weight: 600;
}

.language-settings-menu-option-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid rgba(148, 163, 184, 0.95);
    flex-shrink: 0;
    position: relative;
}

.language-settings-menu-option.is-current .language-settings-menu-option-check {
    border-color: rgba(37, 99, 235, 0.6);
}

.language-settings-menu-option.is-current .language-settings-menu-option-check::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--primary);
}

.language-settings-actions {
    display: flex;
    justify-content: flex-start;
}

/* ── Table ── */

.table-scroll {
    overflow-x: auto;
    border-radius: var(--radius-sm);
}

.recent-task-shell {
    position: relative;
}

.recent-task-scroll {
    overflow-y: hidden;
    scrollbar-gutter: stable;
}

.recent-task-shell.is-scrollable .recent-task-scroll {
    overflow-y: auto;
}

.recent-task-shell.is-scrollable .recent-task-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--surface);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 0.8rem 0.85rem;
    border-bottom: 1px solid var(--border-light);
}

.data-table th {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.data-table tbody tr {
    transition: background var(--transition);
}

.data-table tbody tr:hover {
    background: var(--surface-alt);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ── List Card ── */

.list-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
}

.list-card:hover {
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.stack-list .list-card {
    background: linear-gradient(135deg, #f8fbff 0%, #f0f4ff 50%, #f5f3ff 100%);
    border-color: rgba(37, 99, 235, 0.1);
}

.stack-list .list-card:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #e8f0ff 50%, #ede9fe 100%);
}

.account-action-card {
    display: grid;
    justify-content: flex-start;
    gap: 0.3rem;
}

/* ── Plan ── */

.plan-section + .plan-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.plan-section h3 {
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.85rem;
}

.plan-note-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 1rem 1.05rem;
}

.plan-note-card-wide {
    grid-column: span 2;
}

.plan-note-card strong,
.plan-reference-box strong {
    display: block;
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.plan-note-card p,
.plan-reference-box p {
    color: var(--text-secondary);
    line-height: 1.75;
}

.plan-inline-strong {
    font-weight: 700;
    color: var(--text);
}

.bullet-list {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.bullet-list li + li {
    margin-top: 0.3rem;
}

/* ── Question Card ── */

.question-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    background: var(--surface-hover);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.question-card:hover {
    border-color: rgba(37, 99, 235, 0.15);
    box-shadow: var(--shadow-sm);
}

.question-card h4 {
    font-size: 1rem;
    letter-spacing: -0.01em;
    color: var(--text);
}

.question-card-actions {
    margin-top: 0.9rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.question-answer-btn {
    min-width: 168px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.question-answer-btn .btn-spinner {
    width: 14px;
    height: 14px;
    border: 2.5px solid rgba(37, 99, 235, 0.2);
    border-top-color: var(--primary);
    border-radius: 999px;
    animation: btn-spin 0.75s linear infinite;
    display: none;
    flex-shrink: 0;
}

.question-answer-btn.is-loading .btn-spinner {
    display: inline-block;
}

.question-answer-btn.is-loading,
.question-answer-btn:disabled {
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
    pointer-events: none;
}

.question-answer-btn .btn-label {
    white-space: nowrap;
}

.plan-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.plan-badge-muted {
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-secondary);
}

.plan-reference-box {
    margin-top: 0.85rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px dashed rgba(37, 99, 235, 0.22);
    background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
}

.question-meta {
    display: grid;
    gap: 1rem;
    margin-top: 0.85rem;
    font-size: 0.93rem;
    color: var(--text-secondary);
}

.question-meta strong {
    display: block;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.25rem;
}

.rubric-list {
    list-style: none;
    margin: 0.55rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.rubric-list li {
    display: grid;
    gap: 0.15rem;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.04);
    color: var(--text-secondary);
    line-height: 1.65;
}

.question-task-status {
    margin-top: 1rem;
}

.question-answer-card {
    margin-top: 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.question-answer-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--surface-alt);
}

.question-answer-body {
    padding: 1rem;
    color: var(--text);
    line-height: 1.75;
}

.question-answer-body > :first-child {
    margin-top: 0;
}

.question-answer-body > :last-child {
    margin-bottom: 0;
}

.question-answer-body h1,
.question-answer-body h2,
.question-answer-body h3,
.question-answer-body h4 {
    margin: 1rem 0 0.55rem;
    color: var(--text);
}

.question-answer-body p,
.question-answer-body ul,
.question-answer-body ol,
.question-answer-body blockquote,
.question-answer-body pre {
    margin: 0.7rem 0;
}

.question-answer-body ul,
.question-answer-body ol {
    padding-left: 1.2rem;
}

.question-answer-body blockquote {
    margin-left: 0;
    padding-left: 0.9rem;
    border-left: 3px solid var(--border);
    color: var(--text-secondary);
}

.question-answer-body pre {
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.06);
    overflow-x: auto;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

.config-style-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.85rem 0 1rem;
    padding: 0.8rem 0.95rem;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--text);
}

.config-style-line strong {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.interview-config-style-field {
    margin-bottom: 1rem;
}

/* ── Task Status ── */

.task-status-card {
    border: 1.5px dashed #93c5fd;
    background: linear-gradient(135deg, #eff6ff, #f0f4ff);
    padding: 1.15rem 1.25rem;
    border-radius: var(--radius);
}

/* ── Utility ── */

.error-text {
    color: var(--danger);
}

.text-center {
    text-align: center;
}

.text-link {
    color: var(--primary);
    font-weight: 600;
    transition: color var(--transition), opacity var(--transition);
}

.text-link:hover {
    color: var(--primary-dark);
    opacity: 0.9;
}

.feature-card .text-link {
    margin-top: auto;
}

.mobile-bottom-nav {
    display: none;
}

/* ── Sidebar Card ── */

.sidebar-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

/* ── Plan Card ── */

.plan-card .section-header {
    margin-bottom: 1.5rem;
}

/* ── Responsive ── */

@media (max-width: 860px) {
    .page-shell,
    .site-header-inner {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .header-actions {
        justify-content: flex-end;
    }

    .language-switcher-trigger {
        width: 40px;
        height: 40px;
    }

    .language-switcher-option {
        width: 38px;
        height: 38px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-side-panel {
        grid-template-columns: 1fr;
    }

    .list-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-shell {
        margin-top: 0.5rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .card-grid-2 {
        grid-template-columns: 1fr;
    }

    .account-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .plan-grid {
        grid-template-columns: 1fr;
    }

    .plan-note-card-wide {
        grid-column: span 1;
    }
}
