:root {
    --bg: #0b1220;
    --bg-soft: #0f1728;
    --panel: #111b2e;
    --panel-2: #162236;
    --panel-3: #0f1a2b;

    --line: #22324a;
    --line-soft: #1a2739;

    --text: #e7eefc;
    --text-soft: #94a3b8;
    --text-faint: #64748b;

    --primary: #3b82f6;
    --primary-2: #60a5fa;
    --primary-soft: rgba(59, 130, 246, 0.12);

    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;

    --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.18);
    --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.28);

    --container: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top right, rgba(59,130,246,0.10), transparent 26%),
        radial-gradient(circle at top left, rgba(96,165,250,0.05), transparent 18%),
        linear-gradient(180deg, #0b1220 0%, #0a1120 100%);
    color: var(--text);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Noto Sans KR",
        Arial,
        sans-serif;
    line-height: 1.6;
}

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

button,
input {
    font: inherit;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 17, 32, 0.88);
    border-bottom: 1px solid rgba(34, 50, 74, 0.9);
    backdrop-filter: blur(14px);
}

.header-top {
    border-bottom: 1px solid rgba(34, 50, 74, 0.65);
}

.header-top-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--text-soft);
    font-size: 13px;
}

.market-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.55);
}

.market-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.header-main-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: white;
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.30);
}

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

.brand-name {
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.beta-badge {
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-2);
    border: 1px solid rgba(59, 130, 246, 0.22);
    font-size: 12px;
    font-weight: 800;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--text-soft);
    font-size: 15px;
}

.header-nav .nav-item-active {
    color: var(--text);
    font-weight: 700;
}

.site-main {
    min-height: calc(100vh - 170px);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    padding: 72px 0 30px;
}

.hero-panel {
    background:
        linear-gradient(180deg, rgba(17,27,46,0.98), rgba(12,19,33,0.98));
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.hero-inner {
    padding: 48px 44px 40px;
}

.hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 26px;
    margin-bottom: 26px;
}

.hero-copy {
    max-width: 820px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(59,130,246,0.10);
    border: 1px solid rgba(59,130,246,0.22);
    color: var(--primary-2);
    font-size: 13px;
    font-weight: 800;
}

.hero-title {
    margin: 0 0 16px;
    font-size: clamp(42px, 6vw, 74px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.hero-title strong {
    color: var(--primary-2);
}

.hero-description {
    max-width: 760px;
    margin: 0;
    color: var(--text-soft);
    font-size: 18px;
}

.hero-score-card {
    min-width: 210px;
    padding: 18px 20px;
    background: rgba(9, 15, 27, 0.7);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.hero-score-label {
    color: var(--text-soft);
    font-size: 13px;
    margin-bottom: 8px;
}

.hero-score-value {
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
}

.hero-score-caption {
    margin-top: 8px;
    color: var(--primary-2);
    font-size: 13px;
    font-weight: 700;
}

.stock-search {
    margin-top: 30px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(10, 17, 32, 0.88);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.01);
}

.search-input-wrap {
    flex: 1;
    min-width: 0;
}

.stock-search input {
    width: 100%;
    min-width: 0;
    padding: 16px 18px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 17px;
}

.stock-search input::placeholder {
    color: #6f8199;
}

.stock-search button {
    flex: 0 0 auto;
    padding: 16px 24px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

.stock-search button:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.search-help {
    margin-top: 12px;
    color: var(--text-faint);
    font-size: 14px;
}

.hero-bottom {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.mini-panel {
    padding: 18px;
    background: rgba(9, 15, 27, 0.72);
    border: 1px solid var(--line-soft);
    border-radius: 18px;
}

.mini-label {
    color: var(--text-soft);
    font-size: 13px;
    margin-bottom: 8px;
}

.mini-value {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.mini-sub {
    margin-top: 6px;
    color: var(--text-faint);
    font-size: 13px;
}

/* =========================================================
   ANALYSIS
   ========================================================= */

.analysis-section {
    padding: 34px 0 86px;
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading h2 {
    margin: 0 0 8px;
    font-size: 34px;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 0;
    color: var(--text-soft);
    font-size: 16px;
}

.analysis-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
}

.panel {
    background: linear-gradient(180deg, rgba(17,27,46,0.98), rgba(12,19,33,0.98));
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.analysis-table {
    padding: 10px 0;
}

.analysis-row {
    padding: 22px 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.6fr 0.5fr;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(34, 50, 74, 0.75);
}

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

.analysis-row-highlight {
    background: linear-gradient(90deg, rgba(59,130,246,0.08), rgba(59,130,246,0.02));
}

.analysis-name {
    font-size: 16px;
    font-weight: 700;
}

.analysis-number {
    text-align: right;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.analysis-ratio {
    text-align: right;
    color: var(--text-soft);
    font-size: 15px;
    font-weight: 700;
}

.analysis-side {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.side-block {
    padding: 18px;
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    background: rgba(9, 15, 27, 0.55);
}

.side-block-title {
    margin-bottom: 8px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 700;
}

.side-block-value {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.side-block-desc {
    margin-top: 6px;
    color: var(--text-faint);
    font-size: 13px;
}

.notice-box {
    margin-top: 22px;
    padding: 18px 20px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 18px;
    color: #fcd34d;
    font-size: 14px;
}

/* =========================================================
   ANALYSIS RESULT UI V1
   ========================================================= */

/*
 * Result-page rules are intentionally scoped to
 * .analysis-section so other product/admin screens
 * keep their existing design contracts.
 */

.analysis-section .section-heading h1 {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1.16;
    letter-spacing: -0.04em;
}

.analysis-section[data-presentation-state="READY"] .analysis-side {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.analysis-section[data-presentation-state="READY"]
.analysis-side > .side-block {
    min-width: 0;
    margin: 0;
}

.analysis-section[data-presentation-type="GENERAL"]
.analysis-side > .side-block:nth-child(1),
.analysis-section[data-presentation-type="GENERAL"]
.analysis-side > .side-block:nth-child(2),
.analysis-section[data-presentation-type="GENERAL"]
.analysis-side > .side-block:nth-child(3) {
    grid-column: 1 / -1;
}

.analysis-section[data-presentation-type="BANK"]
.analysis-side > .side-block:nth-child(1),
.analysis-section[data-presentation-type="BANK"]
.analysis-side > .side-block:nth-child(2) {
    grid-column: 1 / -1;
}

.analysis-section[data-presentation-state="READY"]
.analysis-side > .side-block {
    padding: 16px;
    border-radius: 18px;
}

.analysis-section[data-presentation-state="READY"]
.side-block > .side-block-title {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.45;
}

.analysis-section[data-presentation-state="READY"]
[data-fiscal-year] > .side-block-title {
    color: var(--primary-2);
    font-weight: 800;
}

.analysis-section[data-presentation-state="READY"]
.side-block .analysis-table {
    padding: 0;
}

.analysis-section[data-presentation-state="READY"]
[data-metric-key] {
    min-width: 0;
    padding: 14px 4px;
    grid-template-columns:
        minmax(0, 1fr) auto;
    gap: 16px;
}

.analysis-section[data-presentation-state="READY"]
[data-metric-key] .analysis-name {
    min-width: 0;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
    word-break: keep-all;
}

.analysis-section[data-presentation-state="READY"]
[data-metric-key] .analysis-number {
    min-width: max-content;
    text-align: right;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: -0.025em;
}

.analysis-section[data-presentation-state="READY"]
[data-metric-key] .analysis-ratio {
    display: none;
}

.analysis-section[data-presentation-state="READY"]
[data-metric-status="UNAVAILABLE"]
.analysis-number,
.analysis-section[data-presentation-state="READY"]
[data-metric-status="MISSING_INPUT"]
.analysis-number,
.analysis-section[data-presentation-state="READY"]
[data-metric-status="NO_PRIOR_PERIOD"]
.analysis-number,
.analysis-section[data-presentation-state="READY"]
[data-metric-status="ZERO_DENOMINATOR"]
.analysis-number {
    color: var(--text-faint);
    font-size: 14px;
    font-weight: 700;
}

.analysis-section[data-presentation-state="READY"]
.analysis-side > .side-block:first-child {
    padding: 22px;
    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.10),
            rgba(9, 15, 27, 0.62)
        );
}

.analysis-section[data-presentation-state="READY"]
.analysis-side > .side-block:first-child
.side-block-value {
    font-size: 32px;
}

.analysis-section[data-presentation-state="READY"]
.analysis-side > .side-block:nth-child(2)
.side-block-value {
    font-size: 30px;
}

@media (max-width: 900px) {
    .analysis-section[data-presentation-state="READY"]
    .analysis-side {
        grid-template-columns: 1fr;
    }

    .analysis-section[data-presentation-state="READY"]
    .analysis-side > .side-block {
        grid-column: 1;
    }
}

@media (max-width: 600px) {
    .analysis-section {
        padding-top: 24px;
    }

    .analysis-section .section-heading h1 {
        font-size: 28px;
    }

    .analysis-section[data-presentation-state="READY"]
    .analysis-side {
        padding: 14px;
        gap: 12px;
    }

    .analysis-section[data-presentation-state="READY"]
    .analysis-side > .side-block {
        padding: 14px;
        border-radius: 16px;
    }

    .analysis-section[data-presentation-state="READY"]
    [data-metric-key] {
        padding: 12px 2px;
        grid-template-columns:
            minmax(0, 1fr) auto;
        gap: 12px;
    }

    .analysis-section[data-presentation-state="READY"]
    [data-metric-key] .analysis-name {
        font-size: 13px;
    }

    .analysis-section[data-presentation-state="READY"]
    [data-metric-key] .analysis-number {
        font-size: 17px;
    }

    .analysis-section[data-presentation-state="READY"]
    [data-metric-status="UNAVAILABLE"]
    .analysis-number,
    .analysis-section[data-presentation-state="READY"]
    [data-metric-status="MISSING_INPUT"]
    .analysis-number,
    .analysis-section[data-presentation-state="READY"]
    [data-metric-status="NO_PRIOR_PERIOD"]
    .analysis-number,
    .analysis-section[data-presentation-state="READY"]
    [data-metric-status="ZERO_DENOMINATOR"]
    .analysis-number {
        font-size: 12px;
    }
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    border-top: 1px solid rgba(34, 50, 74, 0.85);
    background: rgba(10, 17, 32, 0.92);
}

.footer-inner {
    padding: 24px 0 30px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--text-faint);
    font-size: 13px;
}

.footer-title {
    color: var(--text-soft);
    font-weight: 700;
    margin-bottom: 6px;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 1024px) {
    .analysis-layout {
        grid-template-columns: 1fr;
    }

    .hero-top {
        flex-direction: column;
    }

    .hero-score-card {
        width: 100%;
    }
}

@media (max-width: 800px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .header-main-inner {
        min-height: 66px;
    }

    .brand-name {
        font-size: 24px;
    }

    .header-nav {
        display: none;
    }

    .hero {
        padding: 36px 0 24px;
    }

    .hero-inner {
        padding: 28px 18px 22px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-description {
        font-size: 16px;
    }

    .stock-search {
        flex-direction: column;
        align-items: stretch;
    }

    .stock-search button {
        width: 100%;
    }

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

    .analysis-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .analysis-number,
    .analysis-ratio {
        text-align: left;
    }

    .footer-inner {
        flex-direction: column;
    }
}


/* =========================================================
   AUTH
   ========================================================= */

.auth-section {
    padding: 70px 0 100px;
}

.auth-shell {
    width: min(100%, 560px);
    margin: 0 auto;
    padding: 38px;

    background:
        linear-gradient(
            180deg,
            rgba(17,27,46,0.98),
            rgba(12,19,33,0.98)
        );

    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

.auth-heading {
    margin-bottom: 30px;
}

.auth-heading h1 {
    margin: 0 0 10px;

    font-size: 34px;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.auth-heading p {
    margin: 0;
    color: var(--text-soft);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.optional {
    margin-left: 5px;
    color: var(--text-faint);
    font-size: 12px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 15px 16px;

    outline: 0;

    background: rgba(8, 14, 25, 0.8);

    border: 1px solid var(--line);
    border-radius: 13px;

    color: var(--text);
}

.form-group input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(59, 130, 246, 0.12);
}

.form-group input::placeholder {
    color: var(--text-faint);
}

.field-error {
    color: #fca5a5;
    font-size: 13px;
}

.form-alert {
    margin-bottom: 20px;
    padding: 14px 16px;

    border:
        1px solid
        rgba(239, 68, 68, 0.30);

    border-radius: 12px;

    background:
        rgba(239, 68, 68, 0.08);

    color: #fca5a5;
    font-size: 14px;
}

.auth-submit {
    width: 100%;
    margin-top: 4px;
    padding: 16px 20px;

    border: 0;
    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #3b82f6
        );

    color: white;

    font-weight: 800;
    cursor: pointer;

    box-shadow:
        0 8px 20px
        rgba(37, 99, 235, 0.25);
}

.auth-submit:hover {
    background:
        linear-gradient(
            135deg,
            #1d4ed8,
            #2563eb
        );
}

.auth-footnote {
    margin-top: 22px;
    padding-top: 18px;

    border-top:
        1px solid var(--line-soft);

    color: var(--text-faint);

    text-align: center;
    font-size: 12px;
}

.auth-success {
    text-align: center;
}

.success-icon {
    width: 70px;
    height: 70px;

    margin:
        0 auto 20px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        rgba(34, 197, 94, 0.12);

    border:
        1px solid
        rgba(34, 197, 94, 0.30);

    color: #4ade80;

    font-size: 32px;
    font-weight: 900;
}

.auth-success h1 {
    margin:
        0 0 12px;

    font-size: 32px;

    letter-spacing: -0.04em;
}

.auth-success p {
    margin:
        0 0 28px;

    color: var(--text-soft);
}

.auth-home-link {
    display: inline-flex;

    padding: 13px 20px;

    border-radius: 12px;

    background: var(--primary);

    color: white;

    font-weight: 800;
}

@media (max-width: 600px) {

    .auth-section {
        padding:
            34px 0 70px;
    }

    .auth-shell {
        padding:
            26px 18px;
    }

    .auth-heading h1,
    .auth-success h1 {
        font-size: 28px;
    }
}


/* =========================================================
   AUTH LOGIN / HEADER MEMBER
   ========================================================= */

.auth-text-link {
    margin-left: 5px;
    color: var(--primary-2);
    font-weight: 800;
}

.member-name {
    padding: 6px 10px;

    border-radius: 999px;

    background:
        rgba(59, 130, 246, 0.10);

    color: var(--primary-2);

    font-size: 13px;
    font-weight: 800;
}

.nav-logout-form {
    margin: 0;
}

.nav-logout-button {
    padding: 0;

    border: 0;

    background: transparent;

    color: var(--text-soft);

    cursor: pointer;

    font-size: 15px;
}

.nav-logout-button:hover,
.header-nav a:hover {
    color: var(--text);
}


/* =========================================================
   MEMBERSHIP BADGE
   ========================================================= */

.membership-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 46px;

    padding: 4px 8px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.membership-free {
    background:
        rgba(148, 163, 184, 0.10);

    border:
        1px solid
        rgba(148, 163, 184, 0.24);

    color: #cbd5e1;
}

.membership-paid {
    background:
        rgba(34, 197, 94, 0.11);

    border:
        1px solid
        rgba(34, 197, 94, 0.30);

    color: #4ade80;
}


/* =========================================================
   PLANS / PURCHASE / MYPAGE
   ========================================================= */

.service-section {
    padding: 58px 0 90px;
}

.service-heading {
    margin-bottom: 32px;
}

.service-heading h1 {
    margin: 0 0 10px;
    font-size: 40px;
    letter-spacing: -0.04em;
}

.service-heading p {
    margin: 0;
    color: var(--text-soft);
}

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

.plan-card {
    padding: 26px;
    background:
        linear-gradient(
            180deg,
            rgba(17,27,46,0.98),
            rgba(12,19,33,0.98)
        );
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
}

.plan-card:hover {
    border-color:
        rgba(59,130,246,0.50);
    transform: translateY(-2px);
}

.plan-name {
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 800;
}

.plan-price {
    margin-top: 12px;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.plan-price span {
    margin-left: 3px;
    color: var(--text-soft);
    font-size: 15px;
    font-weight: 600;
}

.plan-duration {
    margin-top: 7px;
    color: var(--text-faint);
    font-size: 13px;
}

.plan-button,
.small-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}

.plan-button {
    width: 100%;
}

.service-notice {
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(17,27,46,0.70);
    color: var(--text-soft);
    font-size: 14px;
}

.purchase-shell {
    width: min(100%, 620px);
    margin: 0 auto;
    padding: 34px;
    background:
        linear-gradient(
            180deg,
            rgba(17,27,46,0.98),
            rgba(12,19,33,0.98)
        );
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

.purchase-summary h1 {
    margin: 0 0 24px;
    font-size: 34px;
}

.purchase-plan {
    padding: 13px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line-soft);
}

.purchase-plan span {
    color: var(--text-soft);
}

.bank-box {
    margin: 24px 0;
    padding: 22px;
    border-radius: 18px;
    background:
        rgba(59,130,246,0.09);
    border:
        1px solid
        rgba(59,130,246,0.24);
}

.bank-label {
    color: var(--text-soft);
    font-size: 13px;
}

.bank-name {
    margin-top: 8px;
    font-size: 17px;
    font-weight: 800;
}

.bank-account {
    margin-top: 4px;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.bank-holder {
    margin-top: 6px;
    color: var(--text-soft);
}

.purchase-help {
    margin-top: 18px;
    color: var(--text-faint);
    font-size: 13px;
    text-align: center;
}

.auth-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.success-alert {
    margin-bottom: 22px;
    padding: 16px 18px;
    border:
        1px solid
        rgba(34,197,94,0.30);
    border-radius: 14px;
    background:
        rgba(34,197,94,0.09);
    color: #86efac;
}

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

.mypage-card {
    padding: 26px;
}

.mypage-label {
    color: var(--text-soft);
    font-size: 13px;
}

.mypage-membership {
    margin-top: 5px;
    font-size: 38px;
    font-weight: 900;
    color: var(--primary-2);
}

.mypage-email {
    margin-top: 7px;
    font-size: 20px;
    font-weight: 800;
}

.mypage-detail {
    margin-top: 8px;
    color: var(--text-soft);
}

.request-section {
    margin-top: 34px;
}

.request-section h2 {
    margin-bottom: 16px;
    font-size: 25px;
}

.request-list,
.empty-state {
    background:
        rgba(17,27,46,0.85);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
}

.empty-state {
    padding: 30px;
    color: var(--text-soft);
}

.request-row {
    padding: 20px 22px;
    display: grid;
    grid-template-columns:
        1fr auto 140px;
    align-items: center;
    gap: 20px;
    border-bottom:
        1px solid var(--line-soft);
}

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

.request-plan {
    font-weight: 800;
}

.request-date {
    margin-top: 3px;
    color: var(--text-faint);
    font-size: 12px;
}

.request-price {
    font-weight: 800;
}

.request-status {
    padding: 6px 10px;
    border-radius: 999px;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
}

.request-status-pending {
    background:
        rgba(245,158,11,0.10);
    color: #fcd34d;
}

.request-status-approved {
    background:
        rgba(34,197,94,0.10);
    color: #86efac;
}

.request-status-rejected,
.request-status-cancelled {
    background:
        rgba(239,68,68,0.10);
    color: #fca5a5;
}

@media (max-width: 900px) {
    .plan-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 600px) {
    .plan-grid {
        grid-template-columns: 1fr;
    }

    .purchase-shell {
        padding: 24px 18px;
    }

    .request-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .request-status {
        width: fit-content;
    }
}


/* =========================================================
   ADMIN
   ========================================================= */

.admin-heading {
    margin-bottom: 28px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.admin-heading h1 {
    margin: 0 0 8px;
    font-size: 38px;
    letter-spacing: -0.04em;
}

.admin-heading p {
    margin: 0;
    color: var(--text-soft);
}

.admin-logout {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(17, 27, 46, 0.8);
    color: var(--text-soft);
    cursor: pointer;
}

.admin-logout:hover {
    color: var(--text);
    border-color: #40516b;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.admin-stat {
    padding: 24px;
}

.admin-stat-label {
    color: var(--text-soft);
    font-size: 13px;
}

.admin-stat-number {
    margin-top: 6px;
    font-size: 38px;
    font-weight: 900;
    color: #fcd34d;
}

.admin-section {
    margin-top: 26px;
}

.admin-section h2 {
    margin-bottom: 16px;
    font-size: 25px;
}

.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(17, 27, 46, 0.88);
}

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

.admin-table th,
.admin-table td {
    padding: 17px 18px;
    text-align: left;
    border-bottom: 1px solid var(--line-soft);
    white-space: nowrap;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.admin-table th {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 800;
    background: rgba(8, 14, 25, 0.55);
}

.admin-table td {
    font-size: 14px;
}

.admin-sub {
    margin-top: 3px;
    color: var(--text-faint);
    font-size: 11px;
}

.approve-button {
    padding: 9px 13px;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.28);
    color: #86efac;
    font-weight: 800;
    cursor: pointer;
}

.approve-button:hover {
    background: rgba(34, 197, 94, 0.22);
}

@media (max-width: 800px) {
    .admin-heading {
        flex-direction: column;
    }

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