/* KOISP 공통 헤더 (랜딩 확정본) */
/* 헤더는 페이지 CSS 변수에 의존하지 않도록 자체 팔레트를 갖는다 */
.koisp-header{
  --blue:#2864F0; --blue-dark:#164ED1; --blue-soft:#EAF0FF;
  --red:#F0445A; --red-dark:#D92E46; --red-soft:#FFEAED;
  --ink:#111B36; --muted:#5F687B; --line:#DFE3EC;
  --surface:#FFFFFF; --canvas:#F7F8FB; --navy:#101B3C;
}
.koisp-header .container{width:min(1180px,100% - 48px);margin:0 auto}
.koisp-header .header{z-index:50;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#ffffffe6;border-bottom:1px solid #111b3614;position:fixed;top:0;left:0;right:0}
.koisp-header .nav-wrap{justify-content:space-between;align-items:center;height:76px;display:flex}
.koisp-header .logo{color:var(--ink);letter-spacing:-.04em;align-items:center;gap:10px;font-family:Space Grotesk,sans-serif;font-size:22px;font-weight:700;display:inline-flex}
.koisp-header .logo svg{width:34px;height:34px;overflow:visible}
.koisp-header .logo svg path{fill:none;stroke-width:9px;stroke-linecap:round}
.koisp-header .logo svg path:first-child{stroke:var(--blue)}
.koisp-header .logo svg path:last-child{stroke:var(--red)}
.koisp-header .logo-light{color:#fff}
.koisp-header .desktop-nav{color:#465066;align-items:center;gap:27px;font-size:13px;font-weight:600;display:flex}
.koisp-header .desktop-nav a, .koisp-header .sign-in{transition:color .16s}
.koisp-header .desktop-nav a:hover, .koisp-header .sign-in:hover{color:var(--blue)}
.koisp-header .nav-actions{align-items:center;gap:16px;font-size:13px;font-weight:600;display:flex}
.koisp-header .language-button, .koisp-header .menu-button{cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;display:inline-flex}
.koisp-header .language-button{color:#566077;padding:8px 0}
.koisp-header .menu-button{padding:10px;display:none}
.koisp-header .mobile-nav{display:none}
.koisp-header .button{border:1px solid #0000;border-radius:11px;justify-content:center;align-items:center;gap:11px;min-height:52px;padding:0 24px;font-size:14px;font-weight:700;transition:transform .16s,box-shadow .16s,background .16s;display:inline-flex}
.koisp-header .button:hover{transform:translateY(-2px)}
.koisp-header .button-primary{color:#fff;background:var(--red);box-shadow:0 10px 24px #f0445a38}
.koisp-header .button-primary:hover{background:var(--red-dark);box-shadow:0 14px 30px #f0445a4d}
.koisp-header .button-small{border-radius:9px;min-height:40px;padding:0 18px}
.koisp-header .button-secondary{color:var(--ink);background:#fff;border-color:#cdd4e1}
.koisp-header .button-secondary:hover{border-color:var(--blue);color:var(--blue)}
.koisp-header .hero .account-icon{width:38px;height:38px;color:var(--ink);background:#fff;border:1px solid #111b361f;border-radius:50%;justify-content:center;align-items:center;transition:border-color .16s,box-shadow .16s,transform .16s;display:inline-flex}
.koisp-header .account-icon:hover{border-color:#2864f073;transform:translateY(-1px);box-shadow:0 8px 20px #2864f029}
.koisp-header .account-icon svg{fill:none;stroke:currentColor;stroke-width:1.7px;stroke-linecap:round}
.koisp-header .hero .button-primary{box-shadow:0 12px 30px #f0445a57}
.koisp-header .mini-logo{background:linear-gradient(135deg, var(--blue) 50%, var(--red) 50%);border-radius:50%;width:16px;height:16px}
.koisp-header .phone .logo{margin-top:25px;transform:scale(.8)}
.koisp-header .connect-button{background:#fff;border:1px solid #d9e1f7;border-radius:50%;flex-direction:column;justify-content:center;align-items:center;width:170px;height:170px;margin-top:30px;display:flex;box-shadow:0 0 0 14px #edf2ff,0 18px 40px #2864f02e}
.koisp-header .connect-button>span{color:#fff;background:var(--blue);border-radius:50%;place-items:center;width:54px;height:54px;display:grid}
.koisp-header .connect-button strong{margin-top:11px;font-family:Space Grotesk,sans-serif;font-size:15px}
.koisp-header .connect-button small{color:#8891a3;font-family:DM Mono,monospace;font-size:8px}
.koisp-header .price-card .button{width:100%;margin-top:auto}
.koisp-header .quick-amounts button{color:#ffffffb3;cursor:pointer;background:0 0;border:1px solid #ffffff2e;border-radius:7px;padding:7px 13px;font-size:11px}
.koisp-header .quick-amounts button.active, .koisp-header .quick-amounts button:hover{color:var(--ink);background:#fff;border-color:#fff}
.koisp-header .faq-item button{text-align:left;cursor:pointer;background:0 0;border:0;justify-content:space-between;align-items:center;gap:20px;width:100%;padding:24px 0;font-family:Space Grotesk,sans-serif;font-size:15px;font-weight:600;display:flex}
.koisp-header .faq-item button i{width:28px;height:28px;color:var(--blue);background:var(--blue-soft);border-radius:50%;flex:none;place-items:center;font-family:Manrope,sans-serif;font-size:18px;font-style:normal;transition:transform .16s;display:grid}
.koisp-header .faq-item.open button i{transform:rotate(45deg)}
.koisp-header .button-white{color:var(--blue);background:#fff}
.koisp-header .button-outline-light{color:#fff;border-color:#ffffff73}
@media (width<=1050px){
  .koisp-header .desktop-nav{display:none}
}
@media (width<=820px){
  .koisp-header .container{width:min(100% - 36px,680px)}
  .koisp-header .nav-actions{display:none}
  .koisp-header .menu-button{display:inline-flex}
  .koisp-header .mobile-nav{border-top:1px solid var(--line);background:#fff;flex-direction:column;gap:3px;max-height:calc(100vh - 76px);padding:18px 24px 24px;display:flex;overflow:auto}
  .koisp-header .mobile-nav>a:not(.button){padding:11px 2px;font-size:14px;font-weight:600}
  .koisp-header .mobile-auth{border-top:1px solid var(--line);gap:8px;margin-top:10px;padding-top:12px;display:grid}
  .koisp-header .mobile-auth .button{text-align:center;justify-content:center;width:100%;min-height:44px}
}
@media (width<=560px){
  .koisp-header .container{width:calc(100% - 28px)}
  .koisp-header .hero-actions .button{width:100%}
}
.koisp-header .lang-select{position:relative}
.koisp-header .language-button svg:last-child{opacity:.55}
.koisp-header .lang-menu{z-index:60;border:1px solid var(--line);scrollbar-width:thin;background:#fff;border-radius:12px;width:268px;max-height:min(420px,70vh);padding:6px;position:absolute;top:calc(100% + 10px);right:0;overflow-y:auto;box-shadow:0 18px 44px #111b3624}
.koisp-header .lang-menu::-webkit-scrollbar{width:8px}
.koisp-header .lang-menu::-webkit-scrollbar-thumb{background:#d7ddea;border-radius:99px}
.koisp-header .lang-menu button{width:100%;color:var(--ink);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:center;gap:10px;padding:9px 10px;font-family:Manrope,sans-serif;font-size:13.5px;font-weight:600;display:flex}
.koisp-header .lang-menu button:hover{background:#f3f6fc}
.koisp-header .lang-menu button[aria-selected=true]{background:var(--blue-soft);color:var(--blue)}
.koisp-header .lang-flag{flex:none;width:22px;display:inline-flex}
.koisp-header .flag-img{object-fit:cover;border-radius:3px;flex:none;width:22px;height:15px;box-shadow:inset 0 0 0 1px #111b3614}
.koisp-header .language-button .flag-img{width:20px;height:14px}
.koisp-header .language-button .lang-code{letter-spacing:.02em;font-weight:700}
.koisp-header .lang-name{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}
.koisp-header .lang-short{color:#7c8599;letter-spacing:.04em;background:#f1f4fa;border-radius:4px;flex:none;padding:2px 5px;font-family:DM Mono,monospace;font-size:9px;font-weight:600}
.koisp-header .lang-menu button[aria-selected=true] .lang-short{color:var(--blue);background:#2864f024}
.koisp-header .lang-flag svg{border-radius:3px;width:22px;height:15px}
.koisp-header .lang-check{margin-left:auto;display:inline-flex}
.koisp-header .mobile-langs{flex-direction:column;gap:2px;max-height:300px;margin:8px 0 12px;display:flex;overflow-y:auto}
.koisp-header .mobile-langs button{color:#111b36;text-align:left;cursor:pointer;background:0 0;border:0;border-bottom:1px solid #eef1f6;border-radius:0;justify-content:flex-start;align-items:center;gap:10px;width:100%;min-height:40px;padding:8px 6px;font-family:inherit;font-size:13px;font-weight:700;display:flex}
.koisp-header .mobile-langs button:last-child{border-bottom:0}
.koisp-header .mobile-langs button .flag-img{border-radius:3px;width:24px;height:16px;box-shadow:0 0 0 1px #111b361a}
.koisp-header .mobile-langs button .lang-code{min-width:0;color:inherit;letter-spacing:.04em;text-overflow:ellipsis;white-space:nowrap;flex:1;font-family:DM Mono,monospace;font-size:11px;font-weight:600;overflow:hidden}
.koisp-header .mobile-langs button.active{color:var(--blue);background:var(--blue-soft)}
.koisp-header .amount-input input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.koisp-header .amount-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.koisp-header .amount-stepper button{color:#ffffffb8;cursor:pointer;background:#ffffff14;border:1px solid #ffffff2e;border-radius:5px;place-items:center;width:26px;height:17px;padding:0;transition:background .15s,color .15s,border-color .15s;display:grid}
.koisp-header .amount-stepper button:hover{color:#fff;background:#fff3;border-color:#fff6}
.koisp-header .amount-stepper button:active{transform:translateY(1px)}
.koisp-header .nav-dropdown{position:relative}
.koisp-header .nav-dropdown>button{color:#566077;cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;padding:8px 0;font-family:inherit;font-size:13px;font-weight:600;display:inline-flex}
.koisp-header .nav-dropdown>button:hover, .koisp-header .nav-dropdown.open>button{color:var(--ink,#111b36)}
.koisp-header .nav-dropdown>button svg{opacity:.55;transition:transform .15s}
.koisp-header .nav-dropdown.open>button svg{transform:rotate(180deg)}
.koisp-header .nav-dropdown-menu{z-index:70;border:1px solid var(--line);background:#fff;border-radius:12px;min-width:172px;padding:6px;position:absolute;top:calc(100% + 8px);left:50%;transform:translate(-50%);box-shadow:0 18px 44px #111b3624}
.koisp-header .nav-dropdown-menu a{color:var(--ink,#111b36);border-radius:8px;padding:9px 11px;font-size:13px;font-weight:600;display:block}
.koisp-header .nav-dropdown-menu a:hover{background:#f3f6fc}
.koisp-header .mobile-resources{border-top:1px solid var(--line);flex-direction:column;gap:2px;margin:6px 0 10px;padding-top:10px;display:flex}
.koisp-header .mobile-resources-label{color:#8a93a6;letter-spacing:.12em;text-transform:uppercase;padding:2px 2px 6px;font-family:DM Mono,monospace;font-size:9px;font-weight:600}
.koisp-header .mobile-resources a{color:var(--ink,#111b36);padding:7px 2px;font-size:14px;font-weight:600}
.koisp-header .view-switcher button{color:#6b7488;cursor:pointer;background:0 0;border:0;border-radius:8px;min-height:35px;padding:0 13px;font-family:Manrope,sans-serif;font-size:11px;font-weight:700}
.koisp-header .view-switcher button.active{color:#fff;background:#2864f0;box-shadow:0 5px 14px #2864f040}
/* 드롭다운은 열렸을 때만 표시 (공통 헤더는 마크업을 항상 렌더) */
.koisp-header .nav-dropdown-menu{display:none}
.koisp-header .nav-dropdown.open .nav-dropdown-menu{display:block}
.koisp-header .lang-menu[hidden]{display:none!important}

/* 헤더는 문서 흐름에 붙는 sticky (페이지마다 body 패딩 불필요) */
.koisp-header .header{position:sticky;top:0;z-index:60}

/* Start VPN: 흰색으로 바뀌지 않고 기본(레드)에서 진하게 하이라이트 */
.koisp-header .button-primary:hover,
.koisp-header .button-primary:focus-visible,
.koisp-header .button-primary:active{
  background:#D92E46;
  color:#fff;
  box-shadow:0 14px 30px rgba(240,68,90,.32);
}
