:root {
    --pf-bg: #050814;
    --pf-surface: #0b1020;
    --pf-card: #101728;
    --pf-card-2: #151d31;
    --pf-line: rgba(148, 163, 184, .16);
    --pf-text: #f7f9ff;
    --pf-muted: #96a2ba;
    --pf-blue: #377dff;
    --pf-violet: #7657ff;
    --pf-coral: #ff6b35;
    --pf-pink: #ff2d78;
    --pf-gradient: linear-gradient(135deg, var(--pf-blue), var(--pf-violet));
    --pf-hot-gradient: linear-gradient(135deg, var(--pf-coral), var(--pf-pink));
}

/* Sungeum AI marketing director */
.sungeum-assistant-trigger{position:fixed;right:24px;bottom:24px;z-index:1040;display:flex;align-items:center;gap:10px;min-width:190px;padding:8px 15px 8px 8px;color:#fff;background:linear-gradient(135deg,#17213a,#0b1020);border:1px solid rgba(118,87,255,.65);border-radius:999px;box-shadow:0 18px 50px rgba(0,0,0,.42);text-align:left}.sungeum-assistant-trigger img{width:54px;height:54px;object-fit:contain;filter:drop-shadow(0 5px 7px rgba(0,0,0,.35))}.sungeum-assistant-trigger span{display:grid;line-height:1.15}.sungeum-assistant-trigger strong{font-size:1rem}.sungeum-assistant-trigger small{margin-top:4px;color:#aebbd0;font-size:.72rem}.sungeum-online-dot{width:9px;height:9px;margin-left:auto;border-radius:50%;background:#34d399;box-shadow:0 0 0 4px rgba(52,211,153,.13)}.sungeum-click-callout{position:absolute;right:8px;bottom:calc(100% + 10px);padding:8px 12px;color:#15213a;background:#fff;border:1px solid #dce5f5;border-radius:12px;box-shadow:0 10px 28px rgba(0,0,0,.2);font-size:.78rem;font-style:normal;font-weight:850;white-space:nowrap}.sungeum-click-callout:after{content:"";position:absolute;right:22px;top:100%;border:7px solid transparent;border-top-color:#fff}
.sungeum-assistant-panel{position:fixed;z-index:1060;right:24px;bottom:98px;width:min(420px,calc(100vw - 32px));max-height:calc(100vh - 125px);overflow:hidden;color:#edf2ff;background:linear-gradient(160deg,#151e34,#090e1d 65%);border:1px solid rgba(118,87,255,.42);border-radius:26px;box-shadow:0 28px 90px rgba(0,0,0,.55);opacity:0;visibility:hidden;transform:translateY(18px) scale(.97);transition:.22s ease}.sungeum-assistant-panel.is-open{opacity:1;visibility:visible;transform:none}.sungeum-assistant-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.09)}.sungeum-assistant-head>div{display:flex;align-items:center;gap:12px}.sungeum-assistant-head img{width:58px;height:58px;object-fit:contain}.sungeum-assistant-head span{display:grid}.sungeum-assistant-head small{color:#76e6bd;font-size:.69rem;font-weight:800}.sungeum-assistant-head strong{font-size:1.2rem}.sungeum-assistant-head>button{width:34px;height:34px;color:#c9d3e6;background:rgba(255,255,255,.06);border:0;border-radius:50%;font-size:1.5rem}
.sungeum-assistant-body{display:grid;gap:14px;padding:16px;max-height:calc(100vh - 205px);overflow:auto}.sungeum-assistant-body label{display:block;margin-bottom:6px;color:#8dadff;font-size:.68rem;font-weight:900;letter-spacing:.07em}.sungeum-briefing{padding:17px;border:1px solid rgba(91,139,255,.25);border-radius:18px;background:radial-gradient(circle at 90% 10%,rgba(118,87,255,.24),transparent 45%),rgba(55,125,255,.08)}.sungeum-briefing h3{margin:0;font-size:1.08rem;font-weight:900}.sungeum-briefing p{margin:8px 0 14px;color:#aebbd0;font-size:.82rem;line-height:1.6}.sungeum-briefing>button{display:flex;width:100%;align-items:center;justify-content:space-between;padding:11px 13px;color:#fff;background:linear-gradient(135deg,#377dff,#7657ff);border:0;border-radius:12px;font-weight:850}
.sungeum-emergency{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.sungeum-emergency button{display:grid;place-items:center;gap:3px;min-height:67px;padding:8px 4px;color:#dce5f5;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.09);border-radius:12px;font-size:1.1rem}.sungeum-emergency button span{font-size:.69rem;font-weight:800}.sungeum-emergency button:hover,.sungeum-emergency button.is-selected{border-color:#ff4c91;background:rgba(255,45,120,.13)}
.sungeum-conversation{padding:13px;border:1px solid rgba(255,255,255,.09);border-radius:15px;background:rgba(255,255,255,.035)}.sungeum-input-row{display:flex;align-items:stretch;gap:7px}.sungeum-input-row textarea{flex:1;min-width:0;padding:10px;color:#eef3ff;background:#080d19;border:1px solid rgba(148,163,184,.22);border-radius:11px;resize:none;font-size:.76rem;line-height:1.45}.sungeum-input-row textarea:focus{outline:0;border-color:#7657ff;box-shadow:0 0 0 3px rgba(118,87,255,.13)}.sungeum-input-row button{padding:0 12px;color:#fff;background:#377dff;border:0;border-radius:11px;font-size:.75rem;font-weight:850}.sungeum-next-step{margin-top:9px;padding:10px;border-radius:11px;background:rgba(55,125,255,.09)}.sungeum-next-step p{margin:0 0 7px;color:#c4d0e3;font-size:.72rem;line-height:1.45}.sungeum-next-step a{color:#91b8ff;font-size:.76rem;font-weight:850;text-decoration:none}.sungeum-stamp-ready{white-space:nowrap;padding:.38rem .58rem;color:#f7d48b;background:rgba(245,158,11,.09);border:1px solid rgba(245,158,11,.3);border-radius:999px;font-size:.68rem;font-weight:850}
.sungeum-check{padding:15px;border:1px solid rgba(52,211,153,.22);border-radius:17px;background:rgba(16,185,129,.055)}.sungeum-check-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.sungeum-check-title>span>strong{font-size:.86rem}.sungeum-check .sungeum-quality-stamp{padding:.3rem .45rem}.sungeum-check .sungeum-quality-stamp small{display:none}.sungeum-check ul{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:13px 0 9px;padding:0;list-style:none;color:#9df3cc;font-size:.75rem}.sungeum-check>small{color:#7f8da4;font-size:.67rem}.sungeum-chat{display:flex;gap:9px;padding:12px 13px;border-radius:14px;background:rgba(255,255,255,.045)}.sungeum-chat>span{font-size:1.2rem}.sungeum-chat p{margin:0;color:#b8c5d8;font-size:.78rem;line-height:1.5}.sungeum-chat strong{color:#fff}.sungeum-assistant-backdrop{display:none;position:fixed;inset:0;z-index:1050;background:rgba(3,7,18,.5);backdrop-filter:blur(2px)}
.sungeum-running-link{display:flex;align-items:center;justify-content:space-between;margin-top:8px;padding:10px 12px;color:#9df3e5;background:rgba(45,212,191,.1);border:1px solid rgba(45,212,191,.26);border-radius:11px;font-size:.76rem;font-weight:850;text-decoration:none}.sungeum-running-link:hover{color:#fff;background:rgba(45,212,191,.16)}
.pf-nav-icon{width:17px;height:17px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:-3px}.pf-nav-menu{min-width:290px;padding:.55rem}.pf-nav-menu .dropdown-item{display:flex;align-items:center;gap:.75rem;padding:.7rem;border-radius:.65rem}.pf-nav-menu .dropdown-item .pf-nav-icon{width:22px;height:22px;color:#63dcff}.pf-nav-menu .dropdown-item span{display:grid}.pf-nav-menu .dropdown-item strong{font-size:.86rem}.pf-nav-menu .dropdown-item small{color:#8290a7;font-size:.67rem}.pf-user-menu{display:inline-flex;align-items:center;gap:.35rem;color:#dbe7f7;border:1px solid rgba(148,163,184,.22);border-radius:.8rem}.pf-user-menu:hover,.pf-user-menu:focus{color:#fff;border-color:rgba(99,220,255,.45)}.pf-account-menu{max-height:72vh;overflow:auto;min-width:210px}.pf-account-menu .dropdown-item .pf-nav-icon{margin-right:.35rem}
@media(max-width:575.98px){.sungeum-assistant-trigger{right:14px;bottom:14px;min-width:0}.sungeum-assistant-trigger span{display:none}.sungeum-click-callout{right:2px;font-size:.72rem}.sungeum-assistant-panel{right:16px;bottom:86px}.sungeum-assistant-backdrop.is-open{display:block}}

html { background: var(--pf-bg); }
body {
    font-family: Inter, "Noto Sans KR", system-ui, sans-serif !important;
    background:
        radial-gradient(circle at 12% -5%, rgba(55,125,255,.20), transparent 28rem),
        radial-gradient(circle at 92% 12%, rgba(255,45,120,.11), transparent 26rem),
        var(--pf-bg) !important;
    color: var(--pf-text) !important;
    letter-spacing: -.015em;
}

.pf-navbar, .navx {
    background: rgba(5, 8, 20, .84) !important;
    border-bottom: 1px solid var(--pf-line) !important;
    box-shadow: none !important;
    backdrop-filter: blur(20px) saturate(140%) !important;
}
.navbar-brand { letter-spacing: -.025em; }
.pf-logo {
    color: transparent !important;
    font-size: 0 !important;
    background: url("/static/brand/freedom-portal.svg") center/28px 28px no-repeat !important;
    position: relative;
    box-shadow: 0 0 24px rgba(55,125,255,.25);
}
.pf-logo::after { content: none; }
.pf-brand-mascot { width: 38px; height: 38px; object-fit: cover; object-position: 50% 20%; background:transparent; filter:drop-shadow(0 4px 8px rgba(0,0,0,.28)); }
.pf-title-mascot { width: 64px; height: 64px; object-fit: cover; object-position: 50% 20%; background:transparent; filter: drop-shadow(0 8px 18px rgba(99,102,241,.28)); }
.pf-card-mascot { width: 34px; height: 34px; object-fit: cover; object-position: 50% 20%; background:transparent; filter:drop-shadow(0 4px 8px rgba(0,0,0,.24)); }
.sungeum-loading-card { position:relative; overflow:hidden; }
.sungeum-loading-mascot { display:block; width:112px; height:112px; margin:0 auto .75rem; object-fit:cover; object-position:50% 20%; background:transparent; filter:drop-shadow(0 14px 22px rgba(55,125,255,.28)); animation:sungeum-bob 1.8s ease-in-out infinite; }
.sungeum-quality-stamp { display:inline-flex; align-items:center; gap:.55rem; padding:.42rem .72rem; border:1px solid rgba(52,211,153,.42); border-radius:999px; color:#9df3cc; background:rgba(16,185,129,.10); }
.sungeum-quality-stamp span { display:grid; line-height:1.15; }
.sungeum-quality-stamp strong { font-size:.76rem; letter-spacing:.01em; }
.sungeum-quality-stamp small { color:#7fd8b4; font-size:.64rem; font-weight:600; margin-top:.16rem; }
.sungeum-paw { width:28px; height:28px; flex:0 0 auto; fill:#34d399; transform:rotate(-8deg); filter:drop-shadow(0 3px 8px rgba(52,211,153,.24)); }
@keyframes sungeum-bob { 0%,100%{transform:translateY(0) rotate(-1deg)} 50%{transform:translateY(-7px) rotate(1deg)} }
@media (prefers-reduced-motion:reduce) { .sungeum-loading-mascot{animation:none} }
.hero-actions > .hero-actions-title { display: none !important; }
.hero-actions-title-new { color: #fff; font-size: 1.05rem; font-weight: 800; margin-bottom: .25rem; }
a[href="/package"] { display:none !important; }
.pf-nav-btn {
    color: #c8d0df !important;
    background: transparent !important;
    border-color: transparent !important;
}
.pf-nav-btn:hover, .pf-nav-active {
    color: #fff !important;
    background: rgba(255,255,255,.08) !important;
    border-color: var(--pf-line) !important;
}
.pf-credit-pill { background: rgba(55,125,255,.14) !important; color: #9bc0ff !important; border-color: rgba(55,125,255,.28) !important; }
.pf-page { padding-top: 2.2rem !important; }

.pf-card, .card, .dashboard-card, .admin-card, .credit-card, .main-card {
    color: var(--pf-text) !important;
    background: linear-gradient(145deg, rgba(21,29,49,.94), rgba(11,16,32,.96)) !important;
    border: 1px solid var(--pf-line) !important;
    border-radius: 22px !important;
    box-shadow: 0 20px 55px rgba(0,0,0,.22) !important;
}
.card-header, .bg-white, .bg-light {
    color: var(--pf-text) !important;
    background: rgba(255,255,255,.035) !important;
    border-color: var(--pf-line) !important;
}
.border, .border-bottom, .border-top { border-color: var(--pf-line) !important; }
.text-muted, .form-text { color: var(--pf-muted) !important; }
.text-dark { color: var(--pf-text) !important; }
.form-control, .form-select {
    color: #f4f7ff !important;
    background-color: #090f1f !important;
    border: 1px solid rgba(148,163,184,.22) !important;
    min-height: 48px !important;
}
.form-control::placeholder { color: #66728a !important; }
.form-control:focus, .form-select:focus {
    border-color: #5d8eff !important;
    box-shadow: 0 0 0 .22rem rgba(55,125,255,.14) !important;
}
.form-select option { background: #0b1020; color: white; }
.btn { font-weight: 700; border-radius: 12px !important; }
.btn-primary {
    background: var(--pf-gradient) !important;
    border: 0 !important;
    box-shadow: 0 10px 25px rgba(55,125,255,.22);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-warning, .btn-info, .btn-success {
    color: white !important;
    background: var(--pf-hot-gradient) !important;
    border: 0 !important;
}
.hero, .admin-hero {
    background:
        radial-gradient(circle at 88% 12%, rgba(255,45,120,.18), transparent 25rem),
        radial-gradient(circle at 5% 85%, rgba(55,125,255,.22), transparent 28rem),
        linear-gradient(135deg, #090e1c, #10182b) !important;
    border: 1px solid rgba(118,87,255,.26) !important;
    box-shadow: 0 28px 80px rgba(0,0,0,.35) !important;
}
.hero-action-ads { background: var(--pf-gradient) !important; border: 0 !important; }
.hero-action-package { background: var(--pf-hot-gradient) !important; color: white !important; border: 0 !important; }
.table { --bs-table-bg: transparent; --bs-table-color: #dce3f2; --bs-table-border-color: var(--pf-line); }
.dropdown-menu { background: #101728; border-color: var(--pf-line); }
.dropdown-item { color: #dce3f2; }
.dropdown-item:hover { color: white; background: rgba(255,255,255,.07); }
.alert { color: #dce3f2; background: rgba(255,255,255,.05); border-color: var(--pf-line); }
#result { color: #e8edfa !important; background: #080d1a !important; border-color: var(--pf-line) !important; }
.result-image { max-height: 680px; object-fit: contain; border: 1px solid var(--pf-line); }
.pf-footer { color: #66728a !important; }

/* Public landing: 70% premium blue/violet, 30% creator energy. */
.navx .navbar-brand::before { content: none; }
.landing-hot, .navx .btn-primary, .hero .btn-primary { background: var(--pf-hot-gradient) !important; }
.hero h1 { text-shadow: 0 12px 55px rgba(55,125,255,.15); }
.hero h1::first-line { color: #fff; }
.glass {
    background: linear-gradient(145deg, rgba(21,29,49,.78), rgba(8,13,27,.90)) !important;
    border: 1px solid var(--pf-line) !important;
    box-shadow: inset 0 1px rgba(255,255,255,.04), 0 25px 70px rgba(0,0,0,.24);
}
.pc, .sample-output { background: #121a2c !important; color: white !important; border: 1px solid var(--pf-line); }
.pill { background: rgba(255,255,255,.035); }
.feature, .price-card, .sample-box { transition: transform .2s ease, border-color .2s ease; }
.feature:hover, .price-card:hover { transform: translateY(-5px); border-color: rgba(118,87,255,.48) !important; }
.icon { color: #8dadff; }

@media (max-width: 767.98px) {
    .pf-page { padding-top: 1rem !important; }
    .hero { border-radius: 18px !important; }
    .card, .pf-card { border-radius: 17px !important; }
}

/* 승인된 순금이 원본을 보존하면서 시선을 방해하지 않는 미세 동작만 적용한다. */
.sungeum-alive{transform-origin:50% 88%;will-change:transform;animation:sungeum-idle-breathe 6.4s cubic-bezier(.45,.05,.55,.95) infinite}
.sungeum-assistant-trigger:hover .sungeum-alive,.sungeum-alive.is-listening{animation:sungeum-curious 1.7s ease-in-out infinite}
.sungeum-alive.is-working{animation:sungeum-working 1.15s ease-in-out infinite}
.sungeum-alive.is-approved{animation:sungeum-approved .85s cubic-bezier(.22,.9,.34,1) 1}
.sungeum-alive-hero{animation-duration:7.2s}
@keyframes sungeum-idle-breathe{0%,100%{transform:translateY(0) scale(1)}36%{transform:translateY(-2px) scale(1.006,1.012)}52%{transform:translateY(-3px) rotate(.35deg) scale(1.008,1.014)}68%{transform:translateY(-1px) rotate(-.2deg) scale(1.004,1.008)}}
@keyframes sungeum-curious{0%,100%{transform:translateY(0) rotate(0)}45%{transform:translateY(-3px) rotate(-2deg)}70%{transform:translateY(-2px) rotate(1deg)}}
@keyframes sungeum-working{0%,100%{transform:translateY(0) rotate(-.45deg)}50%{transform:translateY(-3px) rotate(.45deg)}}
@keyframes sungeum-approved{0%{transform:scale(1)}38%{transform:translateY(-8px) rotate(-3deg) scale(1.05)}68%{transform:translateY(1px) rotate(1.5deg) scale(.99)}100%{transform:translateY(0) scale(1)}}
@keyframes sungeum-bubble-float{0%,100%{transform:translateY(0)}48%,56%{transform:translateY(-5px)}62%{transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){.sungeum-alive,.hero-mascot-bubble{animation:none!important}}
.sungeum-page-guide{overflow:hidden;border:1px solid rgba(55,125,255,.24);border-radius:20px;background:linear-gradient(135deg,rgba(55,125,255,.08),rgba(118,87,255,.06))}.sungeum-page-guide summary{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;color:#52657e;cursor:pointer;font-size:.78rem;font-weight:850;list-style:none}.sungeum-page-guide summary::-webkit-details-marker{display:none}.sungeum-page-guide summary small{color:#8a99ad;font-size:.66rem}.sungeum-page-guide-body{display:grid;grid-template-columns:105px 1fr;align-items:center;gap:1rem;padding:.25rem 1.2rem 1.2rem}.sungeum-page-guide-body img{width:105px;height:118px;object-fit:contain;filter:drop-shadow(0 12px 16px rgba(55,125,255,.2))}.sungeum-page-guide-label{color:#377dff;font-size:.7rem;font-weight:900;letter-spacing:.04em}.sungeum-page-guide-copy h3{margin:.25rem 0 .4rem;color:#17233a;font-size:1.08rem;font-weight:900}.sungeum-page-guide-copy p{margin:0;color:#5f6f84;font-size:.86rem;line-height:1.55}.sungeum-page-guide-points{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.7rem}.sungeum-page-guide-points span{padding:.3rem .55rem;border-radius:999px;color:#286bd6;background:rgba(55,125,255,.09);font-size:.7rem;font-weight:800}@media(max-width:575.98px){.sungeum-page-guide-body{grid-template-columns:76px 1fr;gap:.7rem;padding:.15rem .9rem 1rem}.sungeum-page-guide-body img{width:76px;height:96px}.sungeum-page-guide-copy h3{font-size:.96rem}.sungeum-page-guide-copy p{font-size:.78rem}.sungeum-page-guide-points{display:none}}

.smart-suggest { margin-top: .7rem; }
.smart-suggest-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .55rem; }
.smart-suggest-label { color: var(--pf-muted); font-size: .78rem; font-weight: 700; }
.smart-suggest-refresh { color: #8db4ff; background: transparent; border: 0; padding: 0; font-size: .78rem; font-weight: 700; }
.smart-suggest-refresh:hover { color: #fff; }
.smart-suggest-actions { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: .7rem; }
.smart-suggest-dice { color: #ff91b8; background: rgba(255,45,120,.08); border: 1px solid rgba(255,45,120,.22); border-radius: 999px; padding: .3rem .62rem; font-size: .76rem; font-weight: 800; }
.smart-suggest-dice:hover { color: #fff; border-color: rgba(255,45,120,.5); background: rgba(255,45,120,.16); }
.smart-suggest-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.smart-suggest-chip {
    color: #cdd8ec; background: rgba(55,125,255,.08); border: 1px solid rgba(91,139,255,.22);
    border-radius: 999px; padding: .42rem .72rem; font-size: .78rem; line-height: 1.25;
    transition: transform .15s ease, color .15s ease, border-color .15s ease, background .15s ease;
}
.smart-suggest-chip:hover { color: #fff; background: rgba(118,87,255,.18); border-color: rgba(118,87,255,.50); transform: translateY(-1px); }

@media (max-width: 767.98px) {
    .smart-suggest-head { align-items: flex-start; flex-direction: column; }
    .smart-suggest-actions { justify-content: flex-start; }
}
