:root {
            --page-bg: #090d16;
            --panel: rgba(20, 28, 44, .92);
            --panel-hover: rgba(27, 37, 57, .98);
            --line: rgba(255, 255, 255, .10);
            --line-strong: rgba(255, 255, 255, .17);
            --text: #f7f9ff;
            --muted: #9ca8bd;
            --accent: #ffcc4d;
            --accent-2: #ff8a5b;
            --blue: #7fc7ff;
            --green: #68ddb5;
            --violet: #b8a2ff;
            --pink: #ff91b8;
            --emerald: #34d399;
            --slate: #94a3b8;
        }

        * { box-sizing: border-box; }
        html { scroll-behavior: smooth; }

        body {
            min-height: 100vh;
            margin: 0;
            color: var(--text);
            background:
                radial-gradient(circle at 8% 0%, rgba(255, 176, 66, .14), transparent 28rem),
                radial-gradient(circle at 92% 9%, rgba(72, 137, 255, .12), transparent 30rem),
                radial-gradient(circle at 50% 100%, rgba(104, 221, 181, .06), transparent 32rem),
                var(--page-bg);
            font-family: Pretendard, "Noto Sans KR", Arial, sans-serif;
        }

        .portal-page {
            width: min(1180px, calc(100% - 28px));
            margin: 0 auto;
            padding: 34px 0 54px;
        }

        .hero {
            position: relative;
            overflow: hidden;
            padding: 30px;
            border: 1px solid var(--line);
            border-radius: 24px;
            background: linear-gradient(135deg, rgba(31, 40, 60, .96), rgba(15, 21, 34, .96));
            box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
            margin-bottom: 20px;
        }

        .hero-copy { position: relative; z-index: 1; }

        .eyebrow {
            margin: 0 0 7px;
            color: var(--accent);
            font-size: 13px;
            font-weight: 850;
            letter-spacing: .16em;
        }

        h1 {
            margin: 0;
            font-size: clamp(26px, 4vw, 40px);
            letter-spacing: -.045em;
        }

        .hero-description {
            max-width: 600px;
            margin: 11px 0 0;
            color: var(--muted);
            line-height: 1.65;
            font-size: 14px;
        }

        .calc-card {
            border: 1px solid var(--line);
            border-radius: 19px;
            background: rgba(20, 28, 44, .85);
            box-shadow: 0 14px 38px rgba(0, 0, 0, .14);
            padding: 24px;
            margin-bottom: 20px;
        }

        .input-box-group {
            display: flex;
            gap: 12px;
            margin-top: 15px;
        }

        .input-field {
            flex: 1;
            background: rgba(15, 21, 34, .8);
            border: 1px solid var(--line);
            border-radius: 12px;
            padding: 14px 18px;
            color: var(--text);
            font-size: 16px;
            outline: none;
            transition: border-color .18s ease;
        }

        .input-field:focus {
            border-color: var(--accent);
        }

        .calc-btn {
            background: var(--accent);
            color: #090d16;
            border: none;
            border-radius: 12px;
            padding: 0 28px;
            font-size: 15px;
            font-weight: 850;
            cursor: pointer;
            transition: transform .16s ease, background-color .16s ease;
        }

        .calc-btn:hover {
            background: #ffe082;
            transform: translateY(-2px);
        }

        .summary-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-bottom: 20px;
        }

        .stat-card {
            border: 1px solid var(--line);
            border-radius: 14px;
            background: rgba(15, 21, 34, .6);
            padding: 16px;
            text-align: center;
        }

        .stat-card .label {
            font-size: 12px;
            color: var(--muted);
            margin-bottom: 6px;
        }

        .stat-card .value {
            font-size: 20px;
            font-weight: 850;
            color: var(--text);
        }

        .stat-card .sub-label {
            font-size: 11px;
            color: var(--muted);
            margin-top: 4px;
        }

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

        .result-table th, .result-table td {
            padding: 14px;
            text-align: left;
            border-bottom: 1px solid rgba(255, 255, 255, .06);
            font-size: 14px;
        }

        .result-table th {
            color: var(--muted);
            font-weight: 750;
            background: rgba(255, 255, 255, .03);
        }

        .bar-bg {
            background: rgba(255, 255, 255, .08);
            border-radius: 6px;
            height: 14px;
            width: 100%;
            overflow: hidden;
        }

        .bar-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--blue), var(--green));
            border-radius: 6px;
            transition: width .3s ease;
        }

        .badge {
            display: inline-flex;
            align-items: center;
            padding: 3px 8px;
            border: 1px solid var(--line);
            border-radius: 999px;
            font-size: 11px;
            font-weight: 800;
        }

        .badge.public { color: #aeeed7; border-color: rgba(104, 221, 181, .25); background: rgba(104, 221, 181, .08); }
        .badge.lock { color: var(--readable-emphasis, #a9d5ff); border-color: rgba(255, 204, 77, .25); background: rgba(255, 204, 77, .08); }

        .footer {
            margin-top: 26px;
            padding: 18px 4px 0;
            border-top: 1px solid var(--line);
            color: var(--muted);
            font-size: 12px;
            text-align: center;
        }

        @media (max-width: 600px) {
            .portal-page { width: min(100% - 18px, 1180px); padding-top: 12px; }
            .summary-grid { grid-template-columns: 1fr; }
            .input-box-group { flex-direction: column; }
            .calc-btn { height: 48px; }
        }

