@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-void: #000000;
    --bg-deep: #020302;
    --bg-dark: #060806;
    --bg-card: #0a0d0a;
    --bg-card-hover: #0e130e;
    --bg-input: #070907;
    --bg-elevated: #111611;
    --border: #152015;
    --border-light: #1e2e1e;
    --border-active: #2a4a2a;
    --green: #00FF41;
    --green-bright: #55ffa0;
    --green-mid: #00dd38;
    --green-dim: #00aa2a;
    --green-dark: #007718;
    --green-005: rgba(0,255,65,0.05);
    --green-008: rgba(0,255,65,0.08);
    --green-012: rgba(0,255,65,0.12);
    --green-02: rgba(0,255,65,0.2);
    --green-04: rgba(0,255,65,0.4);
    --text: #9aab9a;
    --text-dim: #506050;
    --text-bright: #d0e8d0;
    --text-white: #e8f5e8;
    --red: #ff2d2d;
    --orange: #ffaa00;
    --cyan: #00e5ff;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --font-sans: 'Inter', 'Noto Sans KR', -apple-system, 'Segoe UI', sans-serif;
    --font-kr: 'Noto Sans KR', 'Inter', -apple-system, sans-serif;
    --radius: 8px;
    --radius-lg: 12px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html {
    font-size: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--green-dark) var(--bg-void);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-void);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    touch-action: manipulation;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--green-dark); border-radius: 10px; }

::selection { background: var(--green-02); color: var(--green); }

a { color: var(--green); text-decoration: none; transition: 0.3s var(--ease); }
a:hover { color: var(--green-bright); }

/* ═══════════════════════════════════════════
   MATRIX CANVAS
   ═══════════════════════════════════════════ */
#matrixCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.08;
}

.page-wrapper {
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
.navbar {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent, var(--green-dark) 30%, var(--green) 50%, var(--green-dark) 70%, transparent
    );
    opacity: 0.35;
    animation: navPulse 4s ease-in-out infinite;
}

@keyframes navPulse {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.5; }
}

/* ═══ NAV LOGO ═══ */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    transition: 0.3s var(--ease);
}

.nav-mask {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    object-fit: contain;
    transition: 0.3s var(--ease);
    filter: drop-shadow(0 0 5px rgba(0,255,65,0.4));
}

.nav-logo:hover .nav-mask {
    filter: drop-shadow(0 0 12px rgba(0,255,65,0.65)) brightness(1.2);
    transform: scale(1.08);
}

/* Thin vertical divider between mask and text */
.nav-logo-wordmark {
    display: flex;
    align-items: baseline;
    gap: 0;
    font-family: var(--font-mono);
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    padding-left: 0.5rem;
    border-left: 1px solid rgba(0,255,65,0.2);
}

.nl-black {
    color: rgba(255,255,255,0.92);
    transition: 0.3s;
}

.nl-trade {
    color: #00FF41;
    text-shadow: 0 0 12px rgba(0,255,65,0.4);
    transition: 0.3s;
}

.nav-logo:hover .nl-black { color: #fff; }
.nav-logo:hover .nl-trade { text-shadow: 0 0 18px rgba(0,255,65,0.6); }

/* ═══ PC NAV LINKS ═══ */
.nav-links {
    display: flex; align-items: center; gap: 0.2rem;
    list-style: none;
}

.nav-links a {
    display: inline-flex; align-items: center; gap: 0.35rem;
    color: #7aaa7a;
    font-family: var(--font-mono);
    font-size: 0.73rem;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 0.45rem 0.8rem;
    border-radius: 6px;
    transition: all 0.25s var(--ease);
}
.nav-links a svg { opacity: 0.6; flex-shrink: 0; transition: opacity 0.25s; }
.nav-links a:hover svg { opacity: 1; }
.nav-links a:hover {
    color: var(--green);
    background: var(--green-005);
}

/* 구분선 */
.nav-sep {
    width: 1px; height: 18px; background: var(--border-light);
    margin: 0 0.3rem; flex-shrink: 0;
}

/* 로그인/회원가입 */
.nav-links a.nav-btn-login {
    display: inline-flex; align-items: center;
    color: #a0c8a0;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    padding: 0.42rem 1rem;
    border: 1px solid rgba(0,255,65,0.18);
    border-radius: 6px;
    transition: all 0.25s var(--ease);
    text-transform: uppercase;
    background: transparent;
}
.nav-links a.nav-btn-login:hover {
    color: var(--green);
    border-color: rgba(0,255,65,0.5);
    background: rgba(0,255,65,0.06);
}

.nav-links a.nav-btn-register {
    display: inline-flex; align-items: center;
    color: #000;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 0.42rem 1rem;
    border: 1px solid #00FF41;
    border-radius: 6px;
    background: linear-gradient(135deg, #00FF41, #00cc33);
    transition: all 0.25s var(--ease);
    text-transform: uppercase;
    box-shadow: 0 0 14px rgba(0,255,65,0.15);
}
.nav-links a.nav-btn-register:hover {
    color: #000;
    background: linear-gradient(135deg, #44ff77, #00FF41);
    box-shadow: 0 0 22px rgba(0,255,65,0.28);
    transform: translateY(-1px);
}

/* ═══ 햄버거 토글 ═══ */
.nav-toggle {
    display: none;
    flex-direction: column; justify-content: center; align-items: center;
    width: 40px; height: 40px;
    cursor: pointer;
    border: 1px solid rgba(0,255,65,0.15);
    border-radius: 8px;
    background: rgba(0,255,65,0.03);
    gap: 0;
    position: relative;
    transition: all 0.25s var(--ease);
}
.nav-toggle:hover {
    border-color: rgba(0,255,65,0.35);
    background: rgba(0,255,65,0.07);
}
.nt-line {
    display: block; width: 18px; height: 1.5px;
    background: var(--green); border-radius: 2px;
    position: absolute;
    transition: all 0.3s var(--ease);
    transform-origin: center;
}
.nt-top { transform: translateY(-5.5px); }
.nt-mid { transform: translateY(0); }
.nt-bot { transform: translateY(5.5px); }

.nav-toggle.open .nt-top { transform: rotate(45deg) translateY(0); }
.nav-toggle.open .nt-mid { opacity: 0; transform: scaleX(0); }
.nav-toggle.open .nt-bot { transform: rotate(-45deg) translateY(0); }

/* ═══════════════════════════════════════════
   MAIN
   ═══════════════════════════════════════════ */
.main-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: calc(100vh - 60px);
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
    position: relative;
    text-align: center;
    padding: 0;
    height: calc(100vh - 60px);
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#heroParticles {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 700px; height: 700px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
        rgba(0,255,65,0.04) 0%,
        rgba(0,255,65,0.015) 40%,
        transparent 70%
    );
    pointer-events: none;
    animation: heroRadial 8s ease-in-out infinite;
}

@keyframes heroRadial {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg-void), transparent);
    pointer-events: none;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0;
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    height: 100%;
}

/* ═══ BRAND BLOCK (Logo) ═══ */
.brand-block {
    margin-bottom: 0;
    text-align: center;
    animation: brandIn 1.2s ease-out;
}

@keyframes brandIn {
    from { opacity: 0; transform: translateY(-25px); }
    to { opacity: 1; transform: translateY(0); }
}

.brand-mask {
    max-width: 420px;
    margin: 0 auto 1.5rem;
    animation: maskFloat 6s ease-in-out infinite;
}

.brand-mask-img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes maskFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ═══ TERMINAL LINE ═══ */
.hero-terminal {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    margin: 0;
    height: 1.5em;
    animation: fadeUp 1s ease-out 0.6s both;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.term-bracket { color: var(--text-dim); opacity: 0.4; }
.term-label { color: var(--green-dim); font-size: 0.72rem; font-weight: 600; }
.term-arrow { color: var(--green); margin: 0 0.5rem; text-shadow: 0 0 6px rgba(0,255,65,0.3); }
.term-text {
    color: var(--green);
    opacity: 0.7;
    transition: opacity 0.4s ease;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.term-cursor {
    color: var(--green);
    animation: cursorBlink 0.7s step-end infinite;
    margin-left: 1px;
}

@keyframes cursorBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes logoReveal {
    from { opacity: 0; transform: scale(0.95); filter: blur(8px); }
    to { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* ═══════════════════════════════════════════
   HERO — SHARED RING ANIMATION
   ═══════════════════════════════════════════ */
@keyframes ringPulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.75; }
}
@keyframes ringPulse2 {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.4; }
}

/* ═══ LOGGED-IN HERO (split layout) ═══ */
.hero-logged {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    width: 100%;
    height: 100%;
    padding: 0 2rem;
    animation: fadeUp 0.6s ease-out;
}

/* — mask side — */
.hl-mask-area {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hl-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0,255,65,0.1);
    pointer-events: none;
}
.hl-ring-1 { width: 300px; height: 300px; animation: ringPulse 4s ease-in-out infinite; }
.hl-ring-2 { width: 360px; height: 360px; border-color: rgba(0,255,65,0.045); animation: ringPulse2 4s ease-in-out 1s infinite; }

.hl-mask-img {
    width: 240px; height: auto;
    filter: drop-shadow(0 0 32px rgba(0,255,65,0.28)) drop-shadow(0 0 70px rgba(0,255,65,0.1));
    animation: maskFloat 6s ease-in-out infinite;
    position: relative; z-index: 1;
}

.hl-mask-brand {
    display: none; /* PC: hidden, 모바일에서만 표시 */
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1;
    margin-top: 0.5rem;
    text-align: center;
}
.hl-mb-b { color: rgba(255,255,255,0.92); }
.hl-mb-t { color: #00FF41; text-shadow: 0 0 14px rgba(0,255,65,0.3); }

/* — info side — */
.hl-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    width: 440px;
    max-width: 100%;
    flex-shrink: 0;
}

.hl-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    color: #4a7a4a;
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: fadeUp 0.7s ease-out 0.1s both;
}

.hl-name-block {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    animation: fadeUp 0.7s ease-out 0.2s both;
}

.hl-name {
    font-family: var(--font-mono);
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 40%, #00FF41 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hl-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid;
}
.hl-tier-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    animation: tierDotPulse 2s ease-in-out infinite;
}
@keyframes tierDotPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.4); }
}
.hl-tier-iron    { color: #8a9a8a; border-color: rgba(138,154,138,0.3); }
.hl-tier-iron    .hl-tier-dot { background: #8a9a8a; }
.hl-tier-bronze  { color: #cd7f32; border-color: rgba(205,127,50,0.3); }
.hl-tier-bronze  .hl-tier-dot { background: #cd7f32; }
.hl-tier-silver  { color: #c0c0c0; border-color: rgba(192,192,192,0.3); }
.hl-tier-silver  .hl-tier-dot { background: #c0c0c0; }
.hl-tier-gold    { color: #ffd700; border-color: rgba(255,215,0,0.3); }
.hl-tier-gold    .hl-tier-dot { background: #ffd700; }
.hl-tier-platinum { color: #e5e4e2; border-color: rgba(229,228,226,0.3); text-shadow: 0 0 8px rgba(229,228,226,0.3); }
.hl-tier-platinum .hl-tier-dot { background: #e5e4e2; }
.hl-tier-diamond { color: #b9f2ff; border-color: rgba(185,242,255,0.3); text-shadow: 0 0 10px rgba(185,242,255,0.4); }
.hl-tier-diamond .hl-tier-dot { background: #b9f2ff; }

.hl-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(0,255,65,0.35), rgba(0,255,65,0.08), transparent);
    animation: fadeUp 0.7s ease-out 0.3s both;
}

.hl-terminal-row {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    display: flex;
    align-items: center;
    gap: 0;
    height: 1.5em;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    animation: fadeUp 0.7s ease-out 0.35s both;
}

.hl-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    width: 100%;
    animation: fadeUp 0.7s ease-out 0.45s both;
}

.hl-stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.9rem 1rem;
    background: rgba(8, 18, 8, 0.85);
    border: 1px solid rgba(0,255,65,0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.25s, background 0.25s;
}
.hl-stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    opacity: 0.7;
}
.hl-stat-card:nth-child(1)::before { background: linear-gradient(90deg, #00FF41, transparent); }
.hl-stat-card:nth-child(2)::before { background: linear-gradient(90deg, #6ec8ff, transparent); }
.hl-stat-card:nth-child(3)::before { background: linear-gradient(90deg, #ff7070, transparent); }
.hl-stat-card:nth-child(4)::before { background: linear-gradient(90deg, #b090ff, transparent); }
.hl-stat-card:hover {
    border-color: rgba(0,255,65,0.2);
    background: rgba(10, 22, 10, 0.9);
}

.hl-sc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hl-sc-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: #6a8a6a;
    text-transform: uppercase;
    letter-spacing: 1.8px;
}

.hl-sc-icon {
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px;
    flex-shrink: 0;
    opacity: 0.75;
}
.hl-sci-active  { background: rgba(0,255,65,0.1);    color: #00FF41; }
.hl-sci-done    { background: rgba(90,200,255,0.1);  color: #6ec8ff; }
.hl-sci-dispute { background: rgba(255,90,90,0.1);   color: #ff7070; }
.hl-sci-balance { background: rgba(170,130,255,0.1); color: #b090ff; }

.hl-sc-val {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}
.hl-scv-active  { color: #00FF41; text-shadow: 0 0 14px rgba(0,255,65,0.25); }
.hl-scv-done    { color: #9adcff; }
.hl-scv-dispute { color: #ff8a8a; }
.hl-scv-balance { color: #c8b0ff; }

.hl-actions {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    animation: fadeUp 0.7s ease-out 0.55s both;
}

.hl-btn-primary,
.hl-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s;
    line-height: 1;
    flex: 1 1 0;
    min-width: 0;
}

.hl-btn-primary {
    background: rgba(0,255,65,0.1);
    border: 1px solid rgba(0,255,65,0.45);
    color: #00FF41;
    letter-spacing: 0.5px;
    font-weight: 700;
}
.hl-btn-primary svg { opacity: 0.7; flex-shrink: 0; }
.hl-btn-primary:hover {
    background: rgba(0,255,65,0.16);
    box-shadow: 0 0 24px rgba(0,255,65,0.18);
    color: #fff;
}
.hl-btn-primary:hover svg { opacity: 1; }

.hl-btn-ghost {
    background: transparent;
    border: 1px solid #243824;
    color: #7a9a7a;
}
.hl-btn-ghost svg { opacity: 0.5; flex-shrink: 0; }
.hl-btn-ghost:hover { border-color: #3e6a3e; color: #b0d0b0; }
.hl-btn-ghost:hover svg { opacity: 0.8; }

/* ═══ HERO AWAIT — 메인 히어로 수락 대기 ═══ */
.hl-await {
    width: 100%;
    margin-top: 0.9rem;
    background: rgba(255,170,0,0.04);
    border: 1px solid rgba(255,170,0,0.18);
    border-radius: 10px;
    overflow: hidden;
    animation: fadeUp 0.7s ease-out 0.7s both;
}
.hl-await-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    border-bottom: 1px solid rgba(255,170,0,0.1);
}
.hl-await-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #ffaa00;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(255,170,0,0.5);
    animation: awaitPulse 1.8s ease-out infinite;
}
@keyframes awaitPulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,170,0,0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(255,170,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,170,0,0); }
}
.hl-await-title {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    color: #ffc840;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.hl-await-count {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    background: rgba(255,170,0,0.12);
    color: #ffc840;
    border: 1px solid rgba(255,170,0,0.22);
    border-radius: 20px;
    padding: 0 7px;
    line-height: 1.8;
    margin-left: auto;
}
.hl-await-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.85rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(255,255,255,0.025);
    transition: background 0.15s;
}
.hl-await-row:last-child { border-bottom: none; }
.hl-await-row:hover { background: rgba(255,170,0,0.06); }
.hl-await-role {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    flex-shrink: 0;
    letter-spacing: 0.03em;
}
.hl-await-buy  { background: rgba(100,180,240,0.1); color: #64b4f0; border: 1px solid rgba(100,180,240,0.18); }
.hl-await-sell { background: rgba(0,255,65,0.06);   color: #55dd55; border: 1px solid rgba(0,255,65,0.14); }
.hl-await-name {
    flex: 1;
    min-width: 0;
    font-size: 0.78rem;
    color: #b0d0b0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hl-await-amount {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffc840;
    white-space: nowrap;
    flex-shrink: 0;
}
.hl-await-arrow {
    color: #3a5a3a;
    flex-shrink: 0;
    transition: color 0.15s, transform 0.15s;
}
.hl-await-row:hover .hl-await-arrow { color: #ffc840; transform: translateX(2px); }

/* ═══ GUEST HERO (split layout) ═══ */
.hero-guest {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    width: 100%;
    height: 100%;
    padding: 0 2rem;
    animation: fadeUp 0.6s ease-out;
}

/* — mask + brand column — */
.hg-mask-area {
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.hg-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0,255,65,0.1);
    pointer-events: none;
}
.hg-ring-1 { width: 320px; height: 320px; animation: ringPulse 4.5s ease-in-out infinite; }
.hg-ring-2 { width: 390px; height: 390px; border-color: rgba(0,255,65,0.04); animation: ringPulse2 4.5s ease-in-out 1.2s infinite; }

.hg-mask-img {
    width: 260px; height: auto;
    filter: drop-shadow(0 0 36px rgba(0,255,65,0.32)) drop-shadow(0 0 80px rgba(0,255,65,0.1));
    animation: maskFloat 6s ease-in-out infinite;
    position: relative; z-index: 1;
}

.hg-brand {
    font-family: var(--font-mono);
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1;
    margin-top: -0.3rem;
    position: relative;
    z-index: 2;
    animation: fadeUp 0.7s ease-out 0.2s both;
}
.hg-brand-b { color: rgba(255,255,255,0.94); }
.hg-brand-t {
    color: #00FF41;
    text-shadow: 0 0 16px rgba(0,255,65,0.3), 0 0 50px rgba(0,255,65,0.08);
}

/* — info side — */
.hg-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    width: 400px;
    max-width: 100%;
    flex-shrink: 0;
}

.hg-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: #3e6a3e;
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: fadeUp 0.7s ease-out 0.1s both;
}

.hg-eyebrow-line {
    display: block;
    width: 22px; height: 1px;
    background: #00FF41;
    flex-shrink: 0;
}

.hg-sub {
    font-size: 0.88rem;
    color: #8aaa8a;
    line-height: 1.7;
    animation: fadeUp 0.7s ease-out 0.25s both;
}

.hg-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(0,255,65,0.25), rgba(0,255,65,0.05), transparent);
    animation: fadeUp 0.7s ease-out 0.3s both;
}

.hg-feats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    animation: fadeUp 0.7s ease-out 0.35s both;
}

.hg-feat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    background: rgba(0,255,65,0.03);
    border: 1px solid rgba(0,255,65,0.08);
    border-radius: 10px;
    transition: border-color 0.25s, background 0.25s;
}
.hg-feat:hover {
    border-color: rgba(0,255,65,0.2);
    background: rgba(0,255,65,0.06);
}

.hg-feat-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,255,65,0.07);
    border-radius: 8px;
    flex-shrink: 0;
    color: #00FF41;
}

.hg-feat-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.hg-feat-title {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 600;
    color: rgba(220,255,220,0.88);
    letter-spacing: 0.3px;
}
.hg-feat-desc {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: #4a7a4a;
    letter-spacing: 0.2px;
}

.hg-terminal-row {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    gap: 0;
    height: 1.5em;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    animation: fadeUp 0.7s ease-out 0.4s both;
}

.hg-actions {
    display: flex;
    gap: 0.65rem;
    width: 100%;
    animation: fadeUp 0.7s ease-out 0.5s both;
}

.hg-btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    flex: 1;
    padding: 0.72rem 1.4rem;
    background: rgba(0,255,65,0.09);
    border: 1px solid rgba(0,255,65,0.42);
    border-radius: 8px;
    color: #00FF41;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.25s;
}
.hg-btn-primary:hover {
    background: rgba(0,255,65,0.16);
    box-shadow: 0 0 28px rgba(0,255,65,0.2);
    color: #fff;
}
.hg-btn-ghost {
    display: inline-flex; align-items: center; justify-content: center;
    flex: 1;
    padding: 0.72rem 1.2rem;
    background: transparent;
    border: 1px solid #2a4a2a;
    border-radius: 8px;
    color: #7a9a7a;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.2s;
}
.hg-btn-ghost:hover { border-color: #4a7a4a; color: #c0e0c0; }

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.6rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.35s var(--ease);
    text-decoration: none;
    background: transparent;
    color: var(--text);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(0,255,65,0.06);
    border-radius: 50%;
    transition: width 0.5s, height 0.5s;
    transform: translate(-50%, -50%);
}
.btn:hover::after {
    width: 300px; height: 300px;
}

.btn-primary {
    border-color: #00FF41;
    color: #000;
    font-weight: 700;
    background: linear-gradient(135deg, #00FF41, #00cc33);
    text-shadow: none;
    box-shadow: 0 0 20px rgba(0,255,65,0.15), 0 2px 10px rgba(0,0,0,0.3);
}
.btn-primary:hover {
    border-color: #55ffa0;
    background: linear-gradient(135deg, #33ff66, #00FF41);
    box-shadow: 0 0 35px rgba(0,255,65,0.25), 0 4px 20px rgba(0,0,0,0.4);
    transform: translateY(-2px);
    color: #000;
}

/* Special glow button */
.btn-glow {
    border-color: var(--green);
    color: var(--green);
    background: linear-gradient(135deg, rgba(0,255,65,0.1), rgba(0,255,65,0.03));
    box-shadow: 0 0 15px rgba(0,255,65,0.08), inset 0 0 15px rgba(0,255,65,0.03);
    animation: btnGlowPulse 3s ease-in-out infinite;
}

.btn-glow:hover {
    background: linear-gradient(135deg, rgba(0,255,65,0.18), rgba(0,255,65,0.06));
    box-shadow: 0 0 30px rgba(0,255,65,0.15), 0 0 60px rgba(0,255,65,0.05), inset 0 0 20px rgba(0,255,65,0.05);
    transform: translateY(-2px);
    color: var(--text-white);
    text-shadow: 0 0 10px rgba(0,255,65,0.3);
}

@keyframes btnGlowPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(0,255,65,0.08), inset 0 0 15px rgba(0,255,65,0.03); }
    50% { box-shadow: 0 0 25px rgba(0,255,65,0.12), inset 0 0 20px rgba(0,255,65,0.05); }
}

.btn-glow-text { position: relative; z-index: 1; }

.btn-danger {
    border-color: rgba(255,45,45,0.35);
    color: var(--red);
    background: linear-gradient(135deg, rgba(255,45,45,0.06), transparent);
}
.btn-danger:hover {
    background: linear-gradient(135deg, rgba(255,45,45,0.12), rgba(255,45,45,0.03));
    box-shadow: 0 0 20px rgba(255,45,45,0.08);
    border-color: var(--red);
    transform: translateY(-2px);
}

.btn-ghost {
    border-color: #2a4a2a;
    color: #b0ccb0;
}
.btn-ghost:hover {
    border-color: #00FF41;
    color: #00FF41;
    background: rgba(0,255,65,0.06);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0,255,65,0.08);
}

.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.72rem; letter-spacing: 1px; }
.btn-lg { padding: 0.85rem 2.2rem; font-size: 0.85rem; }

/* (brand-block styles handle hero title now) */

/* ═══════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════ */
.card {
    background: linear-gradient(160deg, rgba(10,13,10,0.9), rgba(6,8,6,0.95));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: 0.3s var(--ease);
    position: relative;
    backdrop-filter: blur(5px);
}
.card:hover {
    border-color: rgba(0,255,65,0.1);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 20%; right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--green-012), transparent);
    opacity: 0;
    transition: 0.4s var(--ease);
}
.card:hover::before { opacity: 1; left: 10%; right: 10%; }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.card-title {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-bright);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════ */
.form-group { margin-bottom: 0.9rem; }

.form-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    color: #a0c8a0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.35rem;
}

.form-control {
    width: 100%;
    padding: 0.6rem 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: #e2f5e2;
    background: #0e160e;
    border: 1px solid #2a4a2a;
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
    -webkit-appearance: none;
}
.form-control:focus {
    border-color: #00FF41;
    background: #111d11;
    box-shadow: 0 0 0 3px rgba(0,255,65,0.1), 0 0 20px rgba(0,255,65,0.08);
    color: #f0fff0;
}
.form-control::placeholder {
    color: #557055;
    font-style: normal;
}
textarea.form-control { resize: vertical; min-height: 100px; }

.form-error { font-family: var(--font-mono); font-size: 0.65rem; color: #ff5555; margin-top: 0.25rem; letter-spacing: 0.3px; }
.form-hint { font-family: var(--font-mono); font-size: 0.62rem; color: #6a9a6a; margin-top: 0.25rem; letter-spacing: 0.3px; }

/* client-side validation messages */
.fv-msg { font-family: var(--font-mono); font-size: 0.65rem; color: #ff6b6b; margin-top: 0.2rem; display: none; letter-spacing: 0.3px; }
.fv-invalid { border-color: rgba(255,80,80,0.5) !important; }

/* password checklist */
.pw-checklist {
    display: flex; flex-wrap: wrap; gap: 0.15rem 0.5rem;
    margin-top: 0.25rem;
}
.pw-checklist span {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: #5a8a5a;
    transition: color 0.2s;
}
.pw-checklist span::before { content: '○ '; }
.pw-checklist span.pw-ok { color: #00FF41; }
.pw-checklist span.pw-ok::before { content: '● '; }
.pw-checklist span.pw-fail { color: #ff6b6b; }
.pw-checklist span.pw-fail::before { content: '○ '; }

/* ═══════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 20px;
    border: 1px solid;
}
.badge-pending { border-color: rgba(80,96,80,0.3); color: var(--text-dim); background: rgba(80,96,80,0.05); }
.badge-funded { border-color: rgba(0,255,65,0.25); color: var(--green); background: var(--green-005); }
.badge-shipped { border-color: rgba(0,229,255,0.25); color: var(--cyan); background: rgba(0,229,255,0.05); }
.badge-delivered { border-color: rgba(255,170,0,0.25); color: var(--orange); background: rgba(255,170,0,0.05); }
.badge-completed { border-color: rgba(0,255,65,0.3); color: var(--green); background: var(--green-008); }
.badge-disputed { border-color: rgba(255,45,45,0.25); color: var(--red); background: rgba(255,45,45,0.05); }
.badge-refunded { border-color: rgba(255,170,0,0.25); color: var(--orange); background: rgba(255,170,0,0.05); }
.badge-cancelled { border-color: rgba(60,60,60,0.3); color: #555; background: rgba(60,60,60,0.05); }

/* ═══════════════════════════════════════════
   DASHBOARD STATS
   ═══════════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(155deg, var(--bg-card), var(--bg-elevated));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: 0.3s var(--ease);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--green-dim), transparent);
    opacity: 0.3;
}
.stat-card:hover {
    border-color: rgba(0,255,65,0.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--green);
    text-shadow: 0 0 12px rgba(0,255,65,0.15);
}
.stat-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.4rem;
}

/* ═══════════════════════════════════════════
   ESCROW LIST
   ═══════════════════════════════════════════ */
.escrow-item {
    display: grid;
    grid-template-columns: 100px 1fr 100px 100px 70px;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(10,13,10,0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    transition: 0.3s var(--ease);
    text-decoration: none;
    color: var(--text);
}
.escrow-item:hover {
    border-color: rgba(0,255,65,0.12);
    background: var(--bg-card-hover);
    transform: translateX(4px);
    box-shadow: -4px 0 20px rgba(0,255,65,0.03);
    color: var(--text);
}

.escrow-id { font-family: var(--font-mono); font-size: 0.75rem; color: var(--green); font-weight: 600; }
.escrow-title { font-size: 0.88rem; color: var(--text-bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.escrow-amount { font-family: var(--font-mono); font-size: 0.88rem; font-weight: 700; color: var(--green); text-align: right; }
.escrow-date { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-dim); text-align: right; }

/* ═══════════════════════════════════════════
   ESCROW DETAIL
   ═══════════════════════════════════════════ */
.escrow-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.escrow-detail-id { font-family: var(--font-mono); font-size: 0.8rem; color: var(--green); letter-spacing: 3px; font-weight: 600; }
.escrow-detail-title { font-size: 1.4rem; font-weight: 700; color: var(--text-white); margin-top: 0.3rem; }
.escrow-detail-amount {
    font-family: var(--font-mono); font-size: 2rem; font-weight: 800;
    color: var(--green); text-shadow: 0 0 20px rgba(0,255,65,0.2); text-align: right;
}
.escrow-detail-fee { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); text-align: right; }

/* Progress */
.progress-steps {
    display: flex; justify-content: space-between;
    margin: 2rem 0; position: relative;
}
.progress-steps::before {
    content: '';
    position: absolute; top: 18px; left: 10%; right: 10%;
    height: 2px; background: var(--border); border-radius: 2px;
}
.progress-step { text-align: center; position: relative; z-index: 1; flex: 1; }
.progress-step-dot {
    width: 36px; height: 36px; border-radius: 50%;
    border: 2px solid var(--border); background: var(--bg-dark);
    margin: 0 auto 0.5rem;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
    color: var(--text-dim); transition: all 0.5s;
}
.progress-step.active .progress-step-dot {
    border-color: var(--green); color: var(--green);
    box-shadow: 0 0 15px var(--green-02), 0 0 30px rgba(0,255,65,0.06);
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 15px var(--green-02); }
    50% { box-shadow: 0 0 25px var(--green-04); }
}
.progress-step.completed .progress-step-dot {
    border-color: var(--green);
    background: linear-gradient(135deg, var(--green), var(--green-mid));
    color: var(--bg-void); font-weight: 700;
}
.progress-step-label {
    font-family: var(--font-mono); font-size: 0.65rem;
    color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px;
}
.progress-step.active .progress-step-label,
.progress-step.completed .progress-step-label { color: var(--green); }

/* ═══════════════════════════════════════════
   CHAT
   ═══════════════════════════════════════════ */
.chat-box {
    max-height: 400px; overflow-y: auto;
    padding: 1rem; background: rgba(2,3,2,0.8);
    border: 1px solid var(--border); border-radius: var(--radius);
    margin-bottom: 1rem;
}
.chat-message {
    margin-bottom: 0.6rem; padding: 0.7rem 1rem; border-radius: var(--radius);
    background: rgba(10,13,10,0.6); border-left: 3px solid var(--border);
    transition: 0.2s;
}
.chat-message:hover { background: rgba(14,19,14,0.6); }
.chat-message.system { border-left-color: var(--green-dim); background: rgba(0,255,65,0.02); }
.chat-message.own { border-left-color: var(--cyan); }
.chat-sender { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; color: var(--green); margin-bottom: 0.2rem; }
.chat-message.system .chat-sender { color: var(--green-dim); }
.chat-text { font-size: 0.85rem; color: var(--text); line-height: 1.6; word-break: break-word; }
.chat-time { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-dim); margin-top: 0.25rem; }

/* ═══════════════════════════════════════════
   FLASH
   ═══════════════════════════════════════════ */
.flash-messages { position: fixed; top: 70px; right: 1.5rem; z-index: 200; max-width: 400px; }
.flash {
    padding: 0.8rem 1.2rem; margin-bottom: 0.5rem;
    border-radius: var(--radius); font-family: var(--font-mono); font-size: 0.8rem;
    border: 1px solid; backdrop-filter: blur(15px);
    animation: flashSlide 0.4s var(--ease);
}
@keyframes flashSlide {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
.flash-success { border-color: rgba(0,255,65,0.25); color: var(--green); background: rgba(0,255,65,0.06); }
.flash-error { border-color: rgba(255,45,45,0.25); color: var(--red); background: rgba(255,45,45,0.06); }
.flash-warning { border-color: rgba(255,170,0,0.25); color: var(--orange); background: rgba(255,170,0,0.06); }
.flash-info { border-color: rgba(0,229,255,0.25); color: var(--cyan); background: rgba(0,229,255,0.06); }

/* ═══════════════════════════════════════════
   AUTH
   ═══════════════════════════════════════════ */
.auth-container {
    max-width: 440px;
    margin: 1.5rem auto;
    padding: 0 1rem;
    animation: fadeUp 0.6s ease-out;
}

.auth-card {
    background: #0b130b;
    border: 1px solid #1c3a1c;
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.8rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 80px rgba(0,255,65,0.06),
        0 0 160px rgba(0,255,65,0.02),
        0 8px 48px rgba(0,0,0,0.75);
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 5%, #00FF41 50%, transparent 95%);
}

.auth-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,255,65,0.15), transparent);
}

/* Auth hero (mask + brand name above form) */
.auth-hero {
    text-align: center;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,255,65,0.08);
    position: relative;
}

.auth-mask-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.auth-mask-wrap::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 100px; height: 100px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0,255,65,0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-mask-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 16px rgba(0,255,65,0.35));
    animation: authGlow 3.5s ease-in-out infinite;
}

@keyframes authGlow {
    0%, 100% { filter: drop-shadow(0 0 14px rgba(0,255,65,0.3)); }
    50%       { filter: drop-shadow(0 0 24px rgba(0,255,65,0.55)); }
}

.auth-brand {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.ab-black { color: rgba(255,255,255,0.92); }
.ab-trade { color: #00FF41; text-shadow: 0 0 12px rgba(0,255,65,0.4); }

.auth-title {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 0.4rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(0,255,65,0.15);
}

.auth-subtitle {
    font-size: 0.82rem;
    color: #8aaa8a;
    text-align: center;
    margin-bottom: 2.2rem;
}

.auth-submit {
    margin-top: 1.2rem;
}

.btn-full { width: 100%; }

.auth-link {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.78rem;
    color: #a0b8a0;
}
.auth-link a {
    color: #00FF41;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(0,255,65,0.2);
    padding-bottom: 1px;
    transition: 0.3s;
}
.auth-link a:hover {
    color: var(--green-bright);
    border-bottom-color: var(--green-bright);
    text-shadow: 0 0 8px rgba(0,255,65,0.4);
}

/* ── Auth sys line (above submit) ─────────── */
.auth-sys-line {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #5a8a5a;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

/* ── Password field wrapper ────────────────── */
.pw-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.pw-wrap .form-control { padding-right: 2.8rem; }

.pw-eye {
    position: absolute;
    right: 0.8rem;
    width: 18px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    color: #4a7a4a;
    padding: 0;
    outline: none;
    transition: color 0.2s;
}
.pw-eye svg { width: 100%; height: 100%; }
.pw-eye:hover { color: #00FF41; }

/* ── Password strength bar ──────────────────── */
.pw-bar {
    height: 2px;
    background: #0e1a0e;
    border-radius: 1px;
    margin-top: 0.5rem;
    overflow: hidden;
}
.pw-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 1px;
    transition: width 0.35s var(--ease), background 0.35s;
}

/* ── Auth typing animation ─────────────────── */
.auth-typing-wrap {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #00FF41;
    text-align: center;
    margin-bottom: 1rem;
    min-height: 1.2em;
    letter-spacing: 0.5px;
    opacity: 1;
    text-shadow: 0 0 10px rgba(0,255,65,0.35);
}
.auth-typing-text { }
.auth-cursor {
    display: inline-block;
    color: #00FF41;
    animation: cursorBlink 0.8s step-end infinite;
    font-weight: 700;
}
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ── Auth tier badge ───────────────────────── */
.auth-tier-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #506050;
    text-align: center;
    margin-bottom: 1.8rem;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(0,255,65,0.07);
    border-radius: 4px;
    background: rgba(0,255,65,0.02);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.auth-tier-badge strong { color: #00FF41; }
.tier-sep { color: rgba(0,255,65,0.2); }

/* ── Auth field tag ────────────────────────── */
.field-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #00FF41;
    opacity: 0.5;
    margin-right: 0.3rem;
    letter-spacing: 0.5px;
}

/* ── Auth primary button ───────────────────── */
.btn-auth-primary {
    width: 100%;
    padding: 0.7rem 1.2rem;
    background: transparent;
    border: 1px solid #00FF41;
    border-radius: 6px;
    color: #00FF41;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.25s var(--ease);
    box-shadow: 0 0 12px rgba(0,255,65,0.08), inset 0 0 12px rgba(0,255,65,0.03);
}
.btn-auth-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,255,65,0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.25s;
}
.btn-auth-primary:hover {
    background: rgba(0,255,65,0.06);
    box-shadow: 0 0 24px rgba(0,255,65,0.25), 0 0 48px rgba(0,255,65,0.08);
    color: #ffffff;
    border-color: #00FF41;
    text-shadow: 0 0 8px rgba(0,255,65,0.5);
}
.btn-auth-primary:hover::before { opacity: 1; }
.btn-auth-primary:active { transform: scale(0.99); }
.btn-auth-primary { display: inline-flex; align-items: center; gap: 0.45rem; }
.btn-auth-primary svg { flex-shrink: 0; opacity: 0.7; }
.btn-auth-icon {
    margin-right: 0.4rem;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ── Register wider card ───────────────────── */
.auth-container.auth-register { max-width: 420px; }

/* ═══════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────── */
.ab-hero {
    position: relative;
    padding: 5.5rem 2rem 5rem;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid #111e11;
}
.ab-hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,255,65,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,65,0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, black 20%, transparent 100%);
}
.ab-hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }

.ab-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #00FF41;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    padding: 0.3rem 1rem;
    border: 1px solid rgba(0,255,65,0.15);
    border-radius: 2px;
    background: rgba(0,255,65,0.03);
}

.ab-hero-title {
    font-family: var(--font-mono);
    font-size: clamp(3.5rem, 12vw, 6.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 1.4rem;
}
.ab-ht-white { color: #ffffff; }
.ab-ht-green {
    color: #00FF41;
    text-shadow: 0 0 50px rgba(0,255,65,0.5), 0 0 100px rgba(0,255,65,0.2);
}

.ab-hero-sub {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #90c090;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
}

.ab-hero-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}
.ab-hero-divider-line {
    display: block;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,255,65,0.35));
}
.ab-hero-divider-line:last-child {
    background: linear-gradient(90deg, rgba(0,255,65,0.35), transparent);
}
.ab-hero-divider-dot {
    font-size: 0.5rem;
    color: #00FF41;
    opacity: 0.6;
}

.ab-hero-desc {
    font-size: 1rem;
    color: #a0bea0;
    line-height: 2;
    max-width: 560px;
    margin: 0 auto;
}

/* ── Section base ─────────────────────────── */
.ab-section {
    max-width: 880px;
    margin: 0 auto;
    padding: 4.5rem 2rem;
    border-bottom: 1px solid #0e1a0e;
}
.ab-section-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #00FF41;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    opacity: 0.55;
}
.ab-section-title {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 0.6rem;
}
.ab-section-sub {
    font-size: 0.88rem;
    color: #7a9a7a;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}
.ab-section-title + .ab-flow,
.ab-section-title + .ab-cards,
.ab-section-title + .ab-tiers {
    margin-top: 2.5rem;
}

/* ── Manifesto ────────────────────────────── */
.ab-manifesto {
    position: relative;
    padding: 2.5rem 2.5rem 2rem;
    background: rgba(0,255,65,0.025);
    border: 1px solid rgba(0,255,65,0.08);
    border-left: 3px solid #00FF41;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.ab-manifesto-quote {
    font-family: Georgia, serif;
    font-size: 5rem;
    color: #00FF41;
    line-height: 0.4;
    margin-bottom: 1.2rem;
    opacity: 0.2;
    display: block;
}
.ab-manifesto-text {
    font-size: 1.1rem;
    color: #d8f0d8;
    line-height: 2;
    margin-bottom: 1.2rem;
}
.ab-m-green {
    color: #00FF41;
    font-weight: 700;
}
.ab-manifesto-sig {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #00FF41;
    opacity: 0.45;
    letter-spacing: 1.5px;
}

/* ── Flow steps ───────────────────────────── */
.ab-flow { display: flex; flex-direction: column; }

.ab-flow-item {
    display: flex;
    gap: 1.8rem;
    align-items: stretch;
}
.ab-flow-last { align-items: flex-start; }

.ab-flow-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 54px;
}
.ab-flow-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: #00FF41;
    background: rgba(0,255,65,0.07);
    border: 1px solid rgba(0,255,65,0.2);
    border-radius: 8px;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
    flex-shrink: 0;
    transition: all 0.25s;
}
.ab-flow-item:hover .ab-flow-num {
    background: rgba(0,255,65,0.12);
    border-color: rgba(0,255,65,0.35);
    box-shadow: 0 0 16px rgba(0,255,65,0.1);
}
.ab-flow-num-final {
    background: rgba(0,255,65,0.12);
    border-color: rgba(0,255,65,0.4);
    box-shadow: 0 0 20px rgba(0,255,65,0.15);
    color: #00FF41;
}
.ab-flow-line {
    flex: 1;
    width: 1px;
    min-height: 32px;
    background: linear-gradient(180deg, rgba(0,255,65,0.2), rgba(0,255,65,0.04));
    margin: 4px 0;
}
.ab-flow-body {
    padding: 12px 0 2.5rem;
    flex: 1;
}
.ab-flow-title {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    color: #e8f8e8;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}
.ab-flow-desc {
    font-size: 0.88rem;
    color: #7a9a7a;
    line-height: 1.8;
}

/* ── Security cards ───────────────────────── */
.ab-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
    margin-top: 2.5rem;
}
.ab-card {
    background: #0c150c;
    border: 1px solid #1a2e1a;
    border-radius: var(--radius-lg);
    padding: 2rem 1.8rem;
    transition: all 0.28s var(--ease);
    position: relative;
    overflow: hidden;
}
.ab-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0,255,65,0.45), transparent);
    opacity: 0;
    transition: opacity 0.28s;
}
.ab-card:hover {
    border-color: #243824;
    background: #0e180e;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 30px rgba(0,255,65,0.04);
    transform: translateY(-2px);
}
.ab-card:hover::after { opacity: 1; }

.ab-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.ab-card-icon {
    font-size: 1.2rem;
    color: #00FF41;
    opacity: 0.75;
    flex-shrink: 0;
}
.ab-card-title {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 700;
    color: #d8f0d8;
    letter-spacing: 0.3px;
}
.ab-card-desc {
    font-size: 0.84rem;
    color: #6e8e6e;
    line-height: 1.8;
}

/* ── Tier system ──────────────────────────── */
.ab-tiers {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    flex-wrap: nowrap;
    margin-top: 2rem;
}
.ab-tier {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 1rem 0.6rem;
    border-radius: var(--radius);
    border: 1px solid;
    flex: 1;
    min-width: 0;
    transition: all 0.25s;
}
.ab-tier:hover { transform: translateY(-3px); }
.ab-tier-gem {
    font-size: 0.8rem;
    opacity: 0.5;
}
.ab-tier-name {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: center;
}
.ab-tier-score {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    opacity: 0.5;
    letter-spacing: 0.5px;
}
.ab-tier-iron     { border-color: #2a3c2a; background: rgba(80,110,80,0.07); }
.ab-tier-iron .ab-tier-name     { color: #9ab89a; }
.ab-tier-iron .ab-tier-gem      { color: #9ab89a; }
.ab-tier-bronze   { border-color: #4a3020; background: rgba(190,110,50,0.07); }
.ab-tier-bronze .ab-tier-name   { color: #d08848; }
.ab-tier-bronze .ab-tier-gem    { color: #d08848; }
.ab-tier-silver   { border-color: #353548; background: rgba(170,170,210,0.07); }
.ab-tier-silver .ab-tier-name   { color: #b0b8d8; }
.ab-tier-silver .ab-tier-gem    { color: #b0b8d8; }
.ab-tier-gold     { border-color: #504000; background: rgba(230,190,0,0.07); }
.ab-tier-gold .ab-tier-name     { color: #e8c800; }
.ab-tier-gold .ab-tier-gem      { color: #e8c800; }
.ab-tier-platinum { border-color: #284848; background: rgba(80,210,230,0.07); }
.ab-tier-platinum .ab-tier-name { color: #68d8e8; }
.ab-tier-platinum .ab-tier-gem  { color: #68d8e8; }
.ab-tier-diamond  { border-color: #202858; background: rgba(100,140,255,0.09); }
.ab-tier-diamond .ab-tier-name  { color: #88a8ff; text-shadow: 0 0 14px rgba(136,168,255,0.45); }
.ab-tier-diamond .ab-tier-gem   { color: #88a8ff; }
.ab-tier-arrow {
    color: #1e3020;
    font-size: 1rem;
    font-weight: 300;
    flex-shrink: 0;
    align-self: center;
}

/* ── Tier table ───────────────────────────── */
.ab-tier-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #162016;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.ab-tier-row {
    display: grid;
    grid-template-columns: 52px 130px 120px 80px 1fr;
    align-items: center;
    padding: 1rem 1.4rem;
    border-bottom: 1px solid #0e1a0e;
    transition: background 0.2s;
    gap: 0 1rem;
}
.ab-tier-row:last-child { border-bottom: none; }
.ab-tier-row:not(.ab-tier-header):hover {
    background: rgba(0,255,65,0.025);
}
.ab-tier-row-diamond:not(.ab-tier-header):hover {
    background: rgba(136,168,255,0.04);
}
.ab-tier-header {
    background: rgba(0,255,65,0.03);
    border-bottom: 1px solid #1a2e1a;
}
.ab-tier-header .ab-tr-rank,
.ab-tier-header .ab-tr-name,
.ab-tier-header .ab-tr-score,
.ab-tier-header .ab-tr-fee,
.ab-tier-header .ab-tr-desc {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    color: #5a8a5a;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.ab-tr-rank {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: #5a8a5a;
    letter-spacing: 1px;
}
.ab-tr-name {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}
.ab-tr-score {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #5a7a5a;
    letter-spacing: 0.5px;
}
.ab-tr-fee {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #5a8a5a;
    letter-spacing: 0.5px;
}
.ab-tr-desc {
    font-size: 0.82rem;
    color: #6a8a6a;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .ab-tier-row {
        grid-template-columns: 36px 90px 80px 60px 1fr;
        padding: 0.85rem 1rem;
        gap: 0 0.6rem;
    }
    .ab-tr-name { font-size: 0.72rem; }
    .ab-tr-score { font-size: 0.68rem; }
    .ab-tr-fee { font-size: 0.68rem; }
    .ab-tr-desc { font-size: 0.75rem; }
}
@media (max-width: 480px) {
    .ab-tier-row {
        grid-template-columns: 30px 80px 60px 1fr;
    }
    .ab-tr-score { display: none; }
    .ab-tier-header .ab-tr-score { display: none; }
}

/* ── CTA ──────────────────────────────────── */
.ab-cta {
    text-align: center;
    padding: 5.5rem 2rem 5rem;
    position: relative;
    overflow: hidden;
}
.ab-cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(0,255,65,0.05) 0%, transparent 70%);
    pointer-events: none;
}
.ab-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 15%; right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,255,65,0.25), transparent);
}
.ab-cta-inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.ab-cta-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #00FF41;
    letter-spacing: 3px;
    opacity: 0.5;
    margin-bottom: 1.8rem;
    text-transform: uppercase;
}
.ab-cta-title {
    font-family: var(--font-mono);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    color: #e8f8e8;
    line-height: 1.3;
    margin-bottom: 0.4rem;
}
.ab-cta-green {
    color: #00FF41;
    text-shadow: 0 0 30px rgba(0,255,65,0.35);
    display: block;
    margin-bottom: 2.8rem;
}
.ab-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.ab-btn-primary {
    display: inline-block;
    padding: 0.9rem 2.6rem;
    background: rgba(0,255,65,0.08);
    border: 1px solid rgba(0,255,65,0.7);
    border-radius: var(--radius);
    color: #00FF41;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.28s var(--ease);
    box-shadow: 0 0 20px rgba(0,255,65,0.1);
}
.ab-btn-primary:hover {
    background: rgba(0,255,65,0.15);
    border-color: #00FF41;
    box-shadow: 0 0 35px rgba(0,255,65,0.25), 0 0 70px rgba(0,255,65,0.08);
    color: #ffffff;
    transform: translateY(-2px);
}
.ab-btn-secondary {
    display: inline-block;
    padding: 0.9rem 2.6rem;
    background: transparent;
    border: 1px solid #203820;
    border-radius: var(--radius);
    color: #90b090;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.28s var(--ease);
}
.ab-btn-secondary:hover {
    border-color: #306030;
    color: #b8d8b8;
    background: rgba(0,255,65,0.04);
    transform: translateY(-2px);
}

/* ── About responsive ─────────────────────── */
@media (max-width: 768px) {
    .ab-hero { padding: 3.5rem 1.2rem 3rem; }
    .ab-section { padding: 3rem 1.2rem; }
    .ab-section-title { font-size: 1.4rem; }
    .ab-cards { grid-template-columns: 1fr; gap: 1rem; }
    .ab-flow-item { gap: 1.2rem; }
    .ab-flow-left { width: 46px; }
    .ab-flow-num { width: 46px; height: 46px; font-size: 0.7rem; }
    .ab-tiers { gap: 0.3rem; flex-wrap: wrap; }
    .ab-tier { padding: 0.8rem 0.4rem; min-width: 70px; }
    .ab-tier-name { font-size: 0.55rem; }
    .ab-tier-score { font-size: 0.5rem; }
    .ab-tier-arrow { font-size: 0.8rem; }
    .ab-cta { padding: 3.5rem 1.2rem; }
    .ab-cta-actions { flex-direction: column; align-items: stretch; }
    .ab-btn-primary, .ab-btn-secondary { text-align: center; padding: 0.85rem 1.5rem; }
}
@media (max-width: 480px) {
    .ab-hero-title { letter-spacing: -1px; }
    .ab-manifesto { padding: 1.5rem 1.2rem; }
    .ab-tiers { justify-content: center; }
    .ab-tier { min-width: 64px; }
    .ab-tier-gem { font-size: 0.65rem; }
}

/* ═══════════════════════════════════════════
   NAV — logged-in extras
   ═══════════════════════════════════════════ */
.nav-active {
    color: var(--green) !important;
    background: rgba(0,255,65,0.06) !important;
    text-shadow: 0 0 8px rgba(0,255,65,0.25);
}

/* ═══ USER CHIP ═══ */
.nav-user-chip {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem !important;
    background: rgba(0,255,65,0.04);
    border: 1px solid rgba(0,255,65,0.14) !important;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.72rem !important;
    color: #7aaa7a !important;
    transition: all 0.25s var(--ease) !important;
    text-decoration: none;
    transition: all 0.2s;
}
.nav-user-chip:hover {
    border-color: rgba(0,255,65,0.32) !important;
    background: rgba(0,255,65,0.07) !important;
    color: #c0e0c0 !important;
}
.nuc-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px rgba(0,255,65,0.6);
    flex-shrink: 0;
    animation: dotPulse 2.5s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { opacity: 0.8; box-shadow: 0 0 4px rgba(0,255,65,0.4); }
    50% { opacity: 1; box-shadow: 0 0 10px rgba(0,255,65,0.8); }
}
.nuc-alias { color: #c8e8c8; font-weight: 600; }
.nuc-sep   { color: rgba(0,255,65,0.2); }
.nuc-bal   { color: var(--green); font-weight: 700; }

/* ═══ LOGOUT BUTTON (PC) ═══ */
.nav-logout-form { display: inline; margin: 0; padding: 0; border: 0; }
.nav-logout-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #5a7a5a;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 6px;
    padding: 0.42rem 0.75rem;
    cursor: pointer;
    transition: all 0.25s var(--ease);
}
.nav-logout-btn svg { opacity: 0.5; flex-shrink: 0; transition: all 0.25s; }
.nav-logout-btn:hover {
    color: #ff6666;
    background: rgba(255,50,50,0.06);
    border-color: rgba(255,50,50,0.25);
}
.nav-logout-btn:hover svg { opacity: 1; stroke: #ff6666; }

/* ═══════════════════════════════════════════
   DASHBOARD HOME
   ═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   알림 배너
   ═══════════════════════════════════════════ */
.notif-area {
    max-width: 960px;
    margin: 0 auto 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.9rem;
    background: rgba(255,170,0,0.04);
    border: 1px solid rgba(255,170,0,0.15);
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text);
}
.notif-header-left { display: flex; align-items: center; gap: 0.45rem; color: var(--orange); }
.notif-header-left strong { color: var(--orange); }
.notif-read-all {
    background: none; border: 1px solid rgba(255,170,0,0.25);
    border-radius: 4px; padding: 0.2rem 0.55rem;
    font-family: var(--font-mono); font-size: 0.6rem;
    color: var(--text-dim); cursor: pointer; transition: all 0.2s;
}
.notif-read-all:hover { border-color: var(--orange); color: var(--orange); }
.notif-item {
    display: flex; align-items: flex-start; gap: 0.7rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-g);
    border-left: 3px solid var(--border-g);
    border-radius: var(--radius);
}
.notif-item.notif-auto_release_warning {
    border-left-color: var(--orange);
    background: rgba(255,170,0,0.03);
}
.notif-item.notif-system {
    border-left-color: var(--green-d);
    background: rgba(0,255,65,0.02);
}
.notif-item-icon { flex-shrink: 0; margin-top: 0.1rem; color: var(--orange); }
.notif-item.notif-system .notif-item-icon { color: var(--green-d); }
.notif-item-body { flex: 1; min-width: 0; }
.notif-item-msg { font-family: var(--font-sans); font-size: 0.78rem; color: var(--text-b); line-height: 1.5; word-break: break-word; }
.notif-item-meta { margin-top: 0.3rem; font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-dim); }
.notif-item-link { color: var(--green-d); text-decoration: none; }
.notif-item-link:hover { color: var(--green); }
.notif-close {
    flex-shrink: 0; background: none; border: none;
    color: var(--text-dim); cursor: pointer; font-size: 0.7rem;
    padding: 0.2rem; transition: color 0.2s; line-height: 1;
}
.notif-close:hover { color: var(--red); }
@media (max-width: 600px) {
    .notif-item { padding: 0.65rem 0.75rem; gap: 0.5rem; }
    .notif-item-msg { font-size: 0.73rem; }
}

/* ── user header ────────────────────────── */
.dh-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.8rem 0 1.6rem;
    border-bottom: 1px solid #1a2e1a;
    margin-bottom: 1.4rem;
}
/* (dh-hero-top removed — await is standalone now) */
.dh-page-title {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 600;
    color: #3a6a3a;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}
.dh-alias {
    font-family: var(--font-mono);
    font-size: 1.35rem;
    font-weight: 800;
    color: #e8f8e8;
    letter-spacing: -0.5px;
    margin-bottom: 0.35rem;
}
.dh-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
}
.dh-tier {
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 1px;
}
.tier-iron     { background: rgba(80,110,80,0.1); color: #9ab89a; border: 1px solid #2a3c2a; }
.tier-bronze   { background: rgba(190,110,50,0.1); color: #d08848; border: 1px solid #4a3020; }
.tier-silver   { background: rgba(170,170,210,0.1); color: #b0b8d8; border: 1px solid #353548; }
.tier-gold     { background: rgba(230,190,0,0.1); color: #e8c800; border: 1px solid #504000; }
.tier-platinum { background: rgba(80,210,230,0.1); color: #68d8e8; border: 1px solid #284848; }
.tier-diamond  { background: rgba(100,140,255,0.1); color: #88a8ff; border: 1px solid #202858; }
.dh-sep  { color: #2a4e2a; }
.dh-uid  { color: #6a9a6a; }
.dh-trust{ color: #7aaa7a; }
.dh-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.dh-btn-primary {
    padding: 0.6rem 1.4rem;
    background: rgba(0,255,65,0.08);
    border: 1px solid rgba(0,255,65,0.4);
    border-radius: var(--radius);
    color: #00FF41;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}
.dh-btn-primary:hover { background: rgba(0,255,65,0.14); color: #fff; box-shadow: 0 0 20px rgba(0,255,65,0.15); }
.dh-btn-ghost {
    padding: 0.6rem 1.4rem;
    background: transparent;
    border: 1px solid #2a4e2a;
    border-radius: var(--radius);
    color: #8aaa8a;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}
.dh-btn-ghost:hover { border-color: #3a6a3a; color: #c0e0c0; }

/* ── stats row ──────────────────────────── */
.dh-stats {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1px;
    background: #162816;
    border: 1px solid #1a2e1a;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.2rem;
}
.dh-stat {
    background: #0c150c;
    padding: 1.4rem 1.6rem;
}
.dh-stat-main { background: #0e180e; }
.dh-stat-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #6a9a6a;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}
.dh-stat-val {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 800;
    color: #f0fff0;
    line-height: 1;
}
.dh-stat-main .dh-stat-val { color: #00FF41; font-size: 2rem; text-shadow: 0 0 12px rgba(0,255,65,0.25); }

/* ── body 2col ──────────────────────────── */
.dh-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 2rem;
}
.dh-panel {
    background: #0c150c;
    border: 1px solid #1a2e1a;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.dh-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.4rem;
    border-bottom: 1px solid #162816;
}
.dh-panel-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: #b0d8b0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.dh-panel-more {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #5a8a5a;
    text-decoration: none;
    transition: color 0.2s;
}
.dh-panel-more:hover { color: #00FF41; }

/* escrow rows */
.dh-escrow-list { padding: 0.5rem 0; }
.dh-escrow-row {
    display: grid;
    grid-template-columns: 90px 1fr auto auto;
    gap: 0.5rem 1rem;
    align-items: center;
    padding: 0.75rem 1.4rem;
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: 1px solid #0a120a;
}
.dh-escrow-row:last-child { border-bottom: none; }
.dh-escrow-row:hover { background: rgba(0,255,65,0.025); }
.der-id    { font-family: var(--font-mono); font-size: 0.68rem; color: #5a8a5a; }
.der-title { font-size: 0.82rem; color: #c8e0c8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.der-amount{ font-family: var(--font-mono); font-size: 0.8rem; color: #00FF41; white-space: nowrap; }

/* tx rows */
.dh-tx-list { padding: 0.5rem 0; }
.dh-tx-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.4rem;
    border-bottom: 1px solid #0a120a;
}
.dh-tx-row:last-child { border-bottom: none; }
.dtr-desc { font-size: 0.82rem; color: #b0d0b0; margin-bottom: 0.2rem; }
.dtr-date { font-family: var(--font-mono); font-size: 0.65rem; color: #4a6a4a; }
.dtr-amount { font-family: var(--font-mono); font-size: 0.88rem; font-weight: 700; }
.dtr-amount.pos { color: #00FF41; }
.dtr-amount.neg { color: #ff5555; }

/* empty state */
.dh-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 3rem 1rem;
    text-align: center;
    color: #5a8a5a;
    font-size: 0.82rem;
    font-family: var(--font-mono);
}
.dh-empty-icon { font-size: 1.5rem; opacity: 0.3; }
.dh-empty-link { color: #00FF41; text-decoration: none; font-size: 0.75rem; margin-top: 0.3rem; }
.dh-empty-link:hover { text-shadow: 0 0 8px rgba(0,255,65,0.4); }

/* ── quick cards ────────────────────────── */
.dh-quick {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}
.dh-quick-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.2rem 1.1rem;
    background: #0c150c;
    border: 1px solid #1a2e1a;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}
.dh-quick-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--dqc-accent, rgba(0,255,65,0.3)), transparent);
    opacity: 0;
    transition: opacity 0.25s;
}
.dh-quick-card:hover { border-color: #243824; background: #0d160d; transform: translateY(-2px); }
.dh-quick-card:hover::before { opacity: 1; }
.dqc-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,255,65,0.06);
    color: #00FF41; opacity: 0.7;
    margin-bottom: 0.2rem;
    transition: opacity 0.2s;
}
.dh-quick-card:hover .dqc-icon { opacity: 1; }
.dqc-icon-green  { background: rgba(0,255,65,0.08); color: #00FF41; }
.dqc-icon-cyan   { background: rgba(0,229,255,0.06); color: #00e5ff; --dqc-accent: rgba(0,229,255,0.3); }
.dqc-icon-purple { background: rgba(200,176,255,0.06); color: #c8b0ff; --dqc-accent: rgba(200,176,255,0.3); }
.dqc-icon-orange { background: rgba(255,170,0,0.06); color: #ffaa00; --dqc-accent: rgba(255,170,0,0.3); }
.dqc-label { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; color: #e8f8e8; }
.dqc-sub   { font-size: 0.68rem; color: #5a8a5a; }

/* ── page wrapper (notices, partners) ───── */
/* ═══════════════════════════════════════════
   PAGE LAYOUT — COMMON
   ═══════════════════════════════════════════ */
.pg-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 2.5rem 0 5rem;
}
.pg-wrap-narrow { max-width: 680px; }

.pg-head {
    margin-bottom: 2.8rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0,255,65,0.06);
}
.pg-head-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: #5a8a5a;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}
.pg-head-line {
    display: inline-block;
    width: 18px; height: 1px;
    background: #00FF41;
    flex-shrink: 0;
}
.pg-title {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.6rem;
    background: linear-gradient(135deg, #ffffff 40%, #00FF41 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pg-sub { font-size: 0.88rem; color: #8aaa8a; line-height: 1.85; }

.pg-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 4rem 2rem;
    border: 1px dashed rgba(0,255,65,0.08);
    border-radius: var(--radius-lg);
    text-align: center;
}
.pg-empty-icon { color: #4a7a4a; }
.pg-empty-text { font-family: var(--font-mono); font-size: 0.82rem; color: #5a8a5a; }
.pg-empty-sub  { font-size: 0.72rem; color: #4a6a4a; }

/* ═══════════════════════════════════════════
   NOTICES LIST
   ═══════════════════════════════════════════ */
.notice-section { margin-bottom: 2rem; }
.notice-section-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: #5a8a5a;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 0.7rem;
}

.notice-list { display: flex; flex-direction: column; gap: 0.45rem; }

.notice-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: rgba(10,18,10,0.8);
    border: 1px solid #162816;
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    position: relative;
    overflow: hidden;
}
.notice-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: transparent;
    transition: background 0.2s;
}
.notice-item:hover {
    border-color: rgba(0,255,65,0.2);
    background: rgba(0,255,65,0.03);
    transform: translateX(2px);
}
.notice-item:hover::before { background: rgba(0,255,65,0.4); }

.notice-item-pinned {
    border-color: rgba(0,255,65,0.14);
    background: rgba(0,255,65,0.025);
}
.notice-item-pinned::before { background: rgba(0,255,65,0.5); }

.ni-left { flex-shrink: 0; width: 42px; display: flex; justify-content: center; }
.ni-pin-badge {
    font-family: var(--font-mono);
    font-size: 0.54rem;
    font-weight: 700;
    color: #00FF41;
    background: rgba(0,255,65,0.08);
    border: 1px solid rgba(0,255,65,0.2);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.ni-num {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #4a7a4a;
    font-weight: 600;
}
.ni-body { flex: 1; min-width: 0; }
.ni-title {
    font-size: 0.92rem;
    color: #cce8cc;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    transition: color 0.2s;
    letter-spacing: 0.1px;
}
.notice-item:hover .ni-title { color: #f0fff0; }
.notice-item-pinned .ni-title { color: #d8f4d8; font-weight: 600; }

.ni-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.ni-date {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #4a6a4a;
    white-space: nowrap;
    transition: color 0.2s;
}
.notice-item:hover .ni-date { color: #6a9a6a; }
.ni-arrow {
    color: #5a8a5a;
    transition: color 0.2s, transform 0.2s;
    flex-shrink: 0;
}
.notice-item:hover .ni-arrow { color: #00FF41; transform: translateX(2px); }

/* ═══════════════════════════════════════════
   NOTICE DETAIL
   ═══════════════════════════════════════════ */
.nd-back { margin-bottom: 1.6rem; }
.nd-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #5a8a5a;
    text-decoration: none;
    transition: color 0.2s, gap 0.2s;
}
.nd-back-link:hover { color: #00FF41; gap: 0.6rem; }

.nd-card {
    background: rgba(10,18,10,0.9);
    border: 1px solid rgba(0,255,65,0.1);
    border-radius: var(--radius-lg);
    padding: 2.4rem;
    position: relative;
    overflow: hidden;
}
.nd-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00FF41, rgba(0,255,65,0.2), transparent);
}

.nd-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.nd-pin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    color: #00FF41;
    background: rgba(0,255,65,0.07);
    border: 1px solid rgba(0,255,65,0.2);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.nd-date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #5a8a5a;
}
.nd-title {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 800;
    color: #f0fff0;
    line-height: 1.45;
    margin-bottom: 1.5rem;
    letter-spacing: -0.2px;
}
.nd-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(0,255,65,0.25), rgba(0,255,65,0.06), transparent);
    margin-bottom: 2rem;
}
.nd-content {
    font-size: 0.92rem;
    color: #a8c8a8;
    line-height: 2.1;
}
.nd-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,255,65,0.06);
}
.nd-back-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.2rem;
    background: transparent;
    border: 1px solid #2a4a2a;
    border-radius: 8px;
    color: #7a9a7a;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.2s;
}
.nd-back-btn:hover { border-color: #4a7a4a; color: #b0d0b0; }

/* ═══════════════════════════════════════════
   PARTNERS
   ═══════════════════════════════════════════ */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.partner-card {
    background: rgba(10,18,10,0.85);
    border: 1px solid #182818;
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.5rem 1.3rem;
    transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.pc-top-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0,255,65,0.25), transparent);
    transition: opacity 0.25s;
    opacity: 0;
}
.partner-card:hover {
    border-color: rgba(0,255,65,0.18);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,255,65,0.04);
}
.partner-card:hover .pc-top-bar { opacity: 1; }

.pc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
}
.pc-cat {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    color: #5a8a5a;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.pc-trust {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-mono);
    font-size: 0.57rem;
    font-weight: 700;
    padding: 0.18rem 0.5rem;
    border-radius: 20px;
    letter-spacing: 0.8px;
}
.pc-trust-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}
.trust-verified {
    color: #00FF41;
    background: rgba(0,255,65,0.07);
    border: 1px solid rgba(0,255,65,0.18);
}
.trust-verified .pc-trust-dot { background: #00FF41; }
.trust-premium  {
    color: #f0c840;
    background: rgba(240,200,64,0.07);
    border: 1px solid rgba(240,200,64,0.18);
}
.trust-premium  .pc-trust-dot { background: #f0c840; }

.pc-name {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 700;
    color: #e8f8e8;
    margin-bottom: 0.55rem;
    line-height: 1.3;
}
.pc-desc {
    font-size: 0.8rem;
    color: #7a9a7a;
    line-height: 1.8;
    flex: 1;
    margin-bottom: 1rem;
}
.pc-footer {
    border-top: 1px solid rgba(0,255,65,0.05);
    padding-top: 0.75rem;
    margin-top: auto;
}
.pc-joined-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #4a7a4a;
}
.pc-joined {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: #5a7a5a;
}

/* ── copy button + toast ────────────────── */
.dh-btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.1rem;
    background: transparent;
    border: 1px solid #2a4e2a;
    border-radius: var(--radius);
    color: #8aaa8a;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}
.dh-btn-copy svg { flex-shrink: 0; }
.dh-btn-copy:hover { border-color: rgba(0,255,65,0.3); color: #a0c8a0; background: rgba(0,255,65,0.03); }
.dh-copy-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: #0e1a0e;
    border: 1px solid rgba(0,255,65,0.25);
    color: #00FF41;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.55rem 1.4rem;
    border-radius: var(--radius);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s var(--ease);
    z-index: 999;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
}
.dh-copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── (legacy) top row — now flex-flow ──── */
.dh-top-row {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 1.4rem;
}

/* ── tier gauge panel ───────────────────── */
.dh-tier-panel {
    background: #0c150c;
    border: 1px solid #1a2e1a;
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}
.dtp-top { display: flex; justify-content: space-between; align-items: flex-start; }
.dtp-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: #5a8a5a;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
}
.dtp-tier {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1px;
}
.dtp-next {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: #4a6a4a;
    letter-spacing: 1px;
}
.dtp-bar-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.dtp-bar {
    flex: 1;
    height: 6px;
    background: #0e1a0e;
    border-radius: 3px;
    overflow: hidden;
}
.dtp-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.tier-fill-iron     { background: linear-gradient(90deg, #4a6a4a, #9ab89a); }
.tier-fill-bronze   { background: linear-gradient(90deg, #7a4820, #d08848); }
.tier-fill-silver   { background: linear-gradient(90deg, #4a4a68, #b0b8d8); }
.tier-fill-gold     { background: linear-gradient(90deg, #6a5800, #e8c800); box-shadow: 0 0 8px rgba(232,200,0,0.3); }
.tier-fill-platinum { background: linear-gradient(90deg, #206060, #68d8e8); box-shadow: 0 0 8px rgba(104,216,232,0.3); }
.tier-fill-diamond  { background: linear-gradient(90deg, #2040a0, #88a8ff); box-shadow: 0 0 10px rgba(136,168,255,0.4); }
.dtp-pct {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #6a9a6a;
    min-width: 32px;
    text-align: right;
}
.dtp-bottom { display: flex; justify-content: space-between; align-items: center; }
.dtp-score { font-family: var(--font-mono); font-size: 0.7rem; color: #6a9a6a; }
.dtp-need  { font-family: var(--font-mono); font-size: 0.65rem; color: #4a7a4a; }

/* ── purchase / sale color accents ──────── */
.dh-val-buy  { color: #b8d8f8; }
.dh-val-sell { color: #00FF41; }

.buy-dot  { color: #7ab8e8; font-size: 0.5rem; }
.sell-dot { color: #00FF41; font-size: 0.5rem; }

.buy-row  { border-left: 2px solid rgba(100,180,240,0.15); }
.sell-row { border-left: 2px solid rgba(0,255,65,0.12); }
.buy-row:hover  { background: rgba(100,180,240,0.03); border-left-color: rgba(100,180,240,0.35); }
.sell-row:hover { background: rgba(0,255,65,0.025); border-left-color: rgba(0,255,65,0.25); }

.buy-role  { font-family: var(--font-mono); font-size: 0.6rem; color: #5888a8; background: rgba(100,180,240,0.07); border: 1px solid rgba(100,180,240,0.15); padding: 0.1rem 0.4rem; border-radius: 3px; }
.sell-role { font-family: var(--font-mono); font-size: 0.6rem; color: #00aa28; background: rgba(0,255,65,0.07); border: 1px solid rgba(0,255,65,0.12); padding: 0.1rem 0.4rem; border-radius: 3px; }

.buy-amount  { color: #88c0e8 !important; }
.sell-amount { color: #00FF41 !important; }

.buy-link  { color: #88c0e8 !important; }
.buy-link:hover { text-shadow: 0 0 8px rgba(100,180,240,0.4) !important; }

/* ── tab system ─────────────────────────── */
.dh-tab-panel {
    background: #0c150c;
    border: 1px solid #1a2e1a;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.2rem;
}
.dh-tab-head {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid #162816;
    padding: 0 1rem;
}
.dh-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.2rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #5a8a5a;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -1px;
}
.dh-tab:hover { color: #8aaa8a; }
.dh-tab.active[data-tab="purchases"] {
    color: #88c0e8;
    border-bottom-color: #88c0e8;
}
.dh-tab.active[data-tab="sales"] {
    color: #00FF41;
    border-bottom-color: #00FF41;
}
.tab-count {
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border-radius: 9px;
    font-size: 0.6rem;
    padding: 0 0.35rem;
}
.dh-tab.active[data-tab="purchases"] .tab-count { background: rgba(100,180,240,0.12); color: #88c0e8; }
.dh-tab.active[data-tab="sales"] .tab-count { background: rgba(0,255,65,0.1); color: #00FF41; }
.dh-tab-body { display: none; }
.dh-tab-body.active { display: block; }

/* ── dashboard alert bar ────────────────── */
.dh-alert-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255,170,0,0.06);
    border: 1px solid rgba(255,170,0,0.2);
    border-radius: var(--radius);
    padding: 0.75rem 1.2rem;
    margin-bottom: 1rem;
    font-size: 0.82rem;
    color: #c8a060;
    font-family: var(--font-mono);
}
.dh-alert-icon { font-size: 1rem; color: #ffaa00; }
.dh-alert-link { margin-left: auto; color: #ffaa00; text-decoration: none; font-size: 0.78rem; }
.dh-alert-link:hover { color: #ffc840; }

/* ══════════════════════════════════════════════
   DASHBOARD SEARCH CARD
   ══════════════════════════════════════════════ */
.dh-search-card {
    background: var(--bg-card);
    border: 1px solid rgba(0,255,65,0.1);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.2rem 0.9rem;
    margin-bottom: 1.4rem;
    position: relative;
    transition: border-color 0.25s;
}
.dh-search-card:focus-within {
    border-color: rgba(0,255,65,0.28);
    box-shadow: 0 0 0 1px rgba(0,255,65,0.08), 0 4px 20px rgba(0,0,0,0.3);
}
.dh-search-card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 0.75rem; gap: 0.5rem;
}
.dh-search-card-title {
    display: flex; align-items: center; gap: 0.4rem;
    font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
    color: #6aaa6a; text-transform: uppercase; letter-spacing: 1.2px;
}
.dh-search-card-title svg { color: var(--green); opacity: 0.7; }
.dh-search-card-hint {
    font-family: var(--font-mono); font-size: 0.62rem;
    color: #3a6a3a;
}

/* 검색 폼 행 */
.dh-search-row {
    display: flex; gap: 0.6rem; align-items: center;
    margin: 0;
}
.dh-search-field-wrap {
    flex: 1; position: relative; display: flex; align-items: center;
}
.dh-search-icon {
    position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%);
    color: #4a7a4a; pointer-events: none; flex-shrink: 0;
    transition: color 0.2s;
}
.dh-search-card:focus-within .dh-search-icon { color: var(--green); opacity: 0.7; }

.dh-search-input {
    width: 100%;
    background: var(--bg-deep);
    border: 1px solid rgba(0,255,65,0.1);
    border-radius: var(--radius);
    color: #c0e0c0;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    padding: 0.75rem 2.6rem 0.75rem 2.5rem;
    outline: none;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}
.dh-search-input::placeholder { color: #3a6a3a; }
.dh-search-input:focus {
    border-color: rgba(0,255,65,0.3);
    background: #040804;
}

/* 지우기 버튼 */
.dh-search-clear {
    position: absolute; right: 0.8rem; top: 50%; transform: translateY(-50%);
    color: #4a6a4a; cursor: pointer; display: none;
    align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    transition: all 0.2s;
}
.dh-search-clear:hover { color: #a0c8a0; background: rgba(0,255,65,0.08); }

/* 검색 버튼 */
.dh-search-btn {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.75rem 1.3rem;
    background: rgba(0,255,65,0.08);
    border: 1px solid rgba(0,255,65,0.25);
    border-radius: var(--radius);
    color: #7aaa7a;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s;
    white-space: nowrap;
}
.dh-search-btn:hover {
    background: rgba(0,255,65,0.14);
    border-color: rgba(0,255,65,0.45);
    color: var(--green);
    box-shadow: 0 0 12px rgba(0,255,65,0.1);
}
.dh-search-btn svg { flex-shrink: 0; }

/* 검색 푸터 힌트 */
.dh-search-footer {
    display: flex; align-items: center; gap: 0.35rem;
    margin-top: 0.6rem;
    font-family: var(--font-mono); font-size: 0.62rem;
    color: #2e5a2e;
    line-height: 1.5;
}
.dh-search-footer svg { flex-shrink: 0; opacity: 0.5; }
.dh-search-footer code {
    font-family: var(--font-mono); color: #4a8a4a;
    background: rgba(0,255,65,0.05); padding: 0.05rem 0.3rem;
    border-radius: 3px; font-size: 0.6rem;
}

/* ── urgent row ──────────────────────────── */
.dh-row-urgent {
    border-left-color: rgba(255,170,0,0.4) !important;
    background: rgba(255,170,0,0.02) !important;
}
.dh-row-urgent:hover { border-left-color: rgba(255,170,0,0.6) !important; }

/* ── escrow create page ─────────────────── */
/* ═══════════════════════════════════════════
   ESCROW CREATE PAGE
   ═══════════════════════════════════════════ */
.ec-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

/* ── 헤더 ── */
.ec-head {
    margin-bottom: 2rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid rgba(0,255,65,0.06);
}
.ec-head-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: #00FF41;
    opacity: 0.55;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}
.ec-head-line {
    display: inline-block;
    width: 18px; height: 1px;
    background: #00FF41;
}
.ec-head-title {
    font-family: var(--font-mono);
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.55rem;
    background: linear-gradient(135deg, #ffffff 40%, #00FF41 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ec-head-sub { font-size: 0.85rem; color: #9ac09a; line-height: 1.75; }

/* ── 프로세스 스텝 ── */
.ec-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1.8rem;
    padding: 1rem 1.2rem;
    background: rgba(8,14,8,0.85);
    border: 1px solid rgba(0,255,65,0.08);
    border-radius: var(--radius-lg);
    overflow-x: auto;
}
.ec-step {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}
.ec-step-icon-box {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    flex-shrink: 0;
    background: rgba(0,255,65,0.04);
    border: 1px solid rgba(0,255,65,0.08);
    color: #5a8a5a;
    transition: all 0.3s;
}
.ec-step-active .ec-step-icon-box {
    background: rgba(0,255,65,0.1);
    border-color: rgba(0,255,65,0.35);
    color: #00FF41;
    box-shadow: 0 0 12px rgba(0,255,65,0.1);
}
.ec-sib-1 { border-color: rgba(0,255,65,0.08); }
.ec-sib-2 { border-color: rgba(154,220,255,0.08); }
.ec-sib-3 { border-color: rgba(255,200,60,0.08); }
.ec-sib-4 { border-color: rgba(160,200,255,0.08); }
.ec-step-active .ec-sib-1 { border-color: rgba(0,255,65,0.35); color: #00FF41; background: rgba(0,255,65,0.1); }
.ec-step-body { display: flex; flex-direction: column; gap: 0.1rem; }
.ec-step-title {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    color: #4a6a4a;
}
.ec-step-active .ec-step-title { color: #d8f4d8; }
.ec-step-desc {
    font-family: var(--font-mono);
    font-size: 0.52rem;
    color: #4a7a4a;
    letter-spacing: 0.3px;
}
.ec-step-active .ec-step-desc { color: #5a8a5a; }
.ec-step-connector {
    flex: 1;
    height: 2px;
    min-width: 1.2rem;
    background: #0e1e0e;
    border-radius: 2px;
    margin: 0 0.5rem;
    position: relative;
    overflow: hidden;
}
.ec-step-connector-fill {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 100%;
    background: linear-gradient(90deg, rgba(0,255,65,0.4), rgba(0,255,65,0.08));
    border-radius: 2px;
}

/* ── 폼 ── */
.ec-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* ── 섹션 ── */
.ec-section {
    background: rgba(5,11,5,0.95);
    border: 1px solid rgba(0,255,65,0.12);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s;
}
.ec-section:hover { border-color: rgba(0,255,65,0.2); }
.ec-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00FF41, rgba(0,255,65,0.2), transparent);
    opacity: 0.5;
}
.ec-section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: #00FF41;
    opacity: 0.7;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(0,255,65,0.08);
}
.ec-section-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #00FF41;
    box-shadow: 0 0 6px rgba(0,255,65,0.4);
    flex-shrink: 0;
}

/* ── 필드 ── */
.ec-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.ec-field { display: flex; flex-direction: column; gap: 0.45rem; }
.ec-label {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 600;
    color: #a0c8a0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.ec-opt-badge {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: #70a870;
    background: rgba(0,255,65,0.07);
    border: 1px solid rgba(0,255,65,0.14);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.35rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: none;
}

/* ── 인풋 공통 ── */
.ec-input-wrap { position: relative; display: flex; align-items: center; }
.ec-input-wrap .ec-input { flex: 1; }
.ec-input {
    width: 100%;
    background: rgba(4,12,4,0.95);
    border: 1px solid rgba(0,255,65,0.12);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #e4f8e4;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
}
.ec-input::placeholder { color: #4a7a4a; }
.ec-input:focus {
    border-color: rgba(0,255,65,0.38);
    background: rgba(0,255,65,0.025);
    box-shadow: 0 0 0 3px rgba(0,255,65,0.06), 0 0 12px rgba(0,255,65,0.04);
}
.ec-input-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #5a9a5a;
    pointer-events: none;
    z-index: 2;
    flex-shrink: 0;
}
.ec-input-icon-pad { padding-left: 2.5rem !important; }
.ec-textarea {
    resize: vertical;
    min-height: 80px;
    align-items: flex-start;
}
/* textarea 래퍼는 flex 해제 */
.ec-input-wrap:has(.ec-textarea) { display: block; }

/* 프리픽스 (USD) */
.ec-prefix {
    position: absolute;
    left: 0;
    top: 0; bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: #00FF41;
    background: rgba(0,255,65,0.06);
    border-right: 1px solid rgba(0,255,65,0.12);
    border-radius: 10px 0 0 10px;
    letter-spacing: 1px;
    pointer-events: none;
    min-width: 3.4rem;
    justify-content: center;
}
.ec-input-prefix { padding-left: 4rem !important; }

/* ── 셀렉트 ── */
.ec-select-wrap { position: relative; display: flex; align-items: center; }
.ec-select-wrap .ec-select { flex: 1; }
.ec-select-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #00FF41;
    opacity: 0.5;
    pointer-events: none;
}
.ec-select {
    width: 100%;
    background: rgba(4,12,4,0.95);
    border: 1px solid rgba(0,255,65,0.12);
    border-radius: 10px;
    padding: 0.75rem 2.2rem 0.75rem 2.4rem;
    color: #e4f8e4;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300FF41' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
}
.ec-select:focus {
    border-color: rgba(0,255,65,0.4);
    box-shadow: 0 0 0 3px rgba(0,255,65,0.06), 0 0 12px rgba(0,255,65,0.04);
}
.ec-select option { background: #0a140a; color: #c0e0c0; }

/* ── 수수료 박스 ── */
.ec-fee-box {
    background: rgba(0,255,65,0.025);
    border: 1px solid rgba(0,255,65,0.07);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: border-color 0.3s, background 0.3s;
}
.ec-fee-box-active {
    border-color: rgba(0,255,65,0.18);
    background: rgba(0,255,65,0.04);
}
.ec-fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ec-fee-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: #7aaa7a;
    letter-spacing: 0.3px;
}
.ec-fee-val {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #9acc9a;
    font-weight: 600;
}
.ec-fee-divider {
    height: 1px;
    background: rgba(0,255,65,0.06);
}
.ec-fee-total .ec-fee-label { color: #a0c8a0; font-weight: 600; }
.ec-fee-total-val {
    color: #00FF41 !important;
    font-size: 0.88rem !important;
    text-shadow: 0 0 10px rgba(0,255,65,0.2);
}
.ec-balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.3rem;
    border-top: 1px dashed rgba(0,255,65,0.06);
}
.ec-balance-val {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #9adcff;
    font-weight: 600;
}

/* ── 힌트 박스 ── */
.ec-hint-box {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: #7aaa7a;
    line-height: 1.6;
    margin-top: 0.5rem;
    padding: 0.6rem 0.8rem;
    background: rgba(0,255,65,0.03);
    border-radius: 8px;
    border: 1px solid rgba(0,255,65,0.08);
}
.ec-hint-box svg { flex-shrink: 0; margin-top: 1px; color: #5a9a5a; }

/* ── 에러 ── */
.ec-error {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: #ff6b6b;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* ── 역할 선택 ── */
.ec-role-toggle { display: flex; gap: 0.75rem; }
.ec-role-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: rgba(4,12,4,0.95);
    border: 1px solid rgba(0,255,65,0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}
.ec-role-btn:hover { border-color: rgba(0,255,65,0.25); background: rgba(0,255,65,0.03); }
.ec-role-btn.active {
    border-color: rgba(0,255,65,0.5);
    background: rgba(0,255,65,0.05);
    box-shadow: 0 0 16px rgba(0,255,65,0.06), inset 0 0 0 1px rgba(0,255,65,0.08);
}
.ec-role-icon-wrap {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}
.buyer-icon { background: rgba(154,220,255,0.1); color: #9adcff; border: 1px solid rgba(154,220,255,0.2); }
.seller-icon { background: rgba(0,255,65,0.08); color: #00FF41; border: 1px solid rgba(0,255,65,0.2); }
.ec-role-btn.active.buyer-icon-parent .ec-role-icon-wrap { background: rgba(154,220,255,0.12); }
.ec-role-text { display: flex; flex-direction: column; gap: 0.15rem; }
.ec-role-name { font-family: var(--font-mono); font-size: 0.82rem; font-weight: 700; color: #a0c8a0; }
.ec-role-desc { font-family: var(--font-mono); font-size: 0.58rem; color: #5a8a5a; }
.ec-role-btn.active .ec-role-name { color: #e8fce8; }
.ec-role-btn.active .ec-role-desc { color: #80b880; }

/* ── 2열 그리드 ── */
.ec-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

/* ── 서밋 행 ── */
.ec-submit-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding-top: 0.3rem;
}
.ec-btn-submit {
    flex: 1;
    padding: 0.85rem 1.6rem;
    background: linear-gradient(135deg, rgba(0,255,65,0.18) 0%, rgba(0,255,65,0.06) 100%);
    border: 1px solid rgba(0,255,65,0.5);
    border-radius: 12px;
    color: #00FF41;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.25s;
    text-shadow: 0 0 10px rgba(0,255,65,0.2);
    position: relative;
    overflow: hidden;
}
.ec-btn-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(0,255,65,0.06) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}
.ec-btn-submit:hover::after { opacity: 1; }
.ec-btn-submit:hover {
    background: linear-gradient(135deg, rgba(0,255,65,0.22) 0%, rgba(0,255,65,0.1) 100%);
    box-shadow: 0 0 28px rgba(0,255,65,0.12), 0 4px 16px rgba(0,0,0,0.3);
    color: #fff;
    text-shadow: 0 0 14px rgba(0,255,65,0.3);
}
.ec-btn-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.4rem;
    background: rgba(10,18,10,0.6);
    border: 1px solid #1e3a1e;
    border-radius: 12px;
    color: #6a8a6a;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.ec-btn-cancel:hover { border-color: #5a8a5a; color: #90b890; background: rgba(0,255,65,0.02); }

/* ── 모바일 ── */
@media (max-width: 640px) {
    .ec-wrap { padding-bottom: 2rem; }
    .ec-head { margin-bottom: 1.2rem; padding-bottom: 1.2rem; }
    .ec-head-title { font-size: 1.5rem; }
    .ec-head-sub { font-size: 0.78rem; }
    .ec-steps { gap: 0; padding: 0.7rem 0.6rem; margin-bottom: 1.2rem; }
    .ec-step-icon-box { width: 26px; height: 26px; border-radius: 7px; }
    .ec-step-icon-box svg { width: 12px; height: 12px; }
    .ec-step-connector { min-width: 0.5rem; margin: 0 0.25rem; }
    .ec-step-desc { display: none; }
    .ec-step-title { font-size: 0.56rem; }
    .ec-field-group { grid-template-columns: 1fr; }
    .ec-row2 { grid-template-columns: 1fr; }
    .ec-section { padding: 1rem; gap: 0.9rem; }
    .ec-section-label { font-size: 0.55rem; padding-bottom: 0.5rem; }
    .ec-form { gap: 0.9rem; }
    .ec-role-toggle { gap: 0.5rem; }
    .ec-role-btn { padding: 0.65rem 0.7rem; gap: 0.5rem; border-radius: 10px; }
    .ec-role-icon-wrap { width: 28px; height: 28px; border-radius: 7px; }
    .ec-role-name { font-size: 0.76rem; }
    .ec-role-desc { font-size: 0.54rem; }
    .ec-input { padding: 0.65rem 0.85rem; border-radius: 9px; }
    .ec-input-icon-pad { padding-left: 2.5rem !important; }
    .ec-input-prefix { padding-left: 4.2rem !important; }
    .ec-prefix { min-width: 3.6rem; font-size: 0.65rem; padding: 0 0.7rem; }
    .ec-textarea { min-height: 70px; }
    .ec-select { padding: 0.65rem 2rem 0.65rem 2.2rem; border-radius: 9px; }
    .ec-label { font-size: 0.6rem; }
    .ec-fee-box { padding: 0.65rem 0.85rem; }
    .ec-submit-row { flex-direction: column-reverse; gap: 0.5rem; padding-top: 0; }
    .ec-btn-submit, .ec-btn-cancel { width: 100%; justify-content: center; }
    .ec-btn-submit { padding: 0.75rem 1rem; font-size: 0.82rem; }
    .ec-btn-cancel { padding: 0.65rem 1rem; font-size: 0.78rem; }
}

/* ── detail single-column layout ────────── */
.ed-main { max-width: 740px; }

/* ── event log ──────────────────────────── */
.ed-log-card { margin-top: 0.5rem; }
.ed-log-hint {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    color: #1e3a1e;
    letter-spacing: 1px;
}
.ed-log-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 280px;
    overflow-y: auto;
}
.ed-log-item {
    display: flex;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #0e1a0e;
    font-size: 0.8rem;
    line-height: 1.5;
    align-items: flex-start;
}
.ed-log-item:last-child { border-bottom: none; }
.ed-log-time {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #4a7a4a;
    white-space: nowrap;
    min-width: 70px;
    padding-top: 0.1rem;
}
.ed-log-msg {
    color: #7a9a7a;
    white-space: pre-line;
}

/* ── ticket card ─────────────────────────── */
.ed-ticket-card {
    background: #0b130b;
    border: 1px solid #1a2e1a;
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.6rem;
    margin-bottom: 1.4rem;
}
.ed-tc-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.ed-tc-block {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}
.ed-tc-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 700;
    color: #4a7a4a;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: absolute;
    top: -0.75rem;
    left: 0;
}
.ed-tc-value {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: #a0c8a0;
    padding-top: 0.3rem;
}
.ed-tc-ticket {
    font-size: 1rem;
    font-weight: 800;
    color: #00FF41;
    letter-spacing: 2px;
    text-shadow: 0 0 12px rgba(0,255,65,0.2);
}
.ed-tc-wallet {
    font-size: 0.72rem;
    color: #5a8a5a;
    letter-spacing: 0.5px;
}
.ed-tc-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid #1a2e1a;
    border-radius: 4px;
    background: transparent;
    color: #5a8a5a;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.ed-tc-copy:hover { border-color: rgba(0,255,65,0.3); color: #00FF41; }
.ed-tc-status-block { margin-left: auto; }
.ed-tc-funded {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: #00FF41;
    letter-spacing: 1px;
    padding-top: 0.3rem;
}
.ed-tc-pending {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffaa00;
    letter-spacing: 1px;
    padding-top: 0.3rem;
}
.ed-tc-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: #0e1a0e;
    border: 1px solid rgba(0,255,65,0.25);
    color: #00FF41;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.55rem 1.4rem;
    border-radius: var(--radius);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s var(--ease);
    z-index: 999;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.ed-tc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── search icon alignment ──────────────── */
.dh-search-row { position: relative; }
.dh-search-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #2a4a2a;
    pointer-events: none;
}
.dh-search-row .dh-search-input { padding-left: 2.4rem; }

/* ── escrow detail ───────────────────────── */
.ed-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
}
.ed-id {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #4a7a4a;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}
.ed-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e8f8e8;
    margin-bottom: 0.6rem;
}
.ed-badges { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.ed-role-badge {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 0.2rem 0.55rem;
    border-radius: 3px;
    text-transform: uppercase;
}
.ed-role-buy  { color: #88c0e8; background: rgba(100,180,240,0.1); border: 1px solid rgba(100,180,240,0.2); }
.ed-role-sell { color: #00FF41; background: rgba(0,255,65,0.08); border: 1px solid rgba(0,255,65,0.15); }
.ed-header-right { text-align: right; }
.ed-amount { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 800; color: #e8f8e8; }
.ed-fee { font-family: var(--font-mono); font-size: 0.7rem; color: #5a8a5a; margin-top: 0.25rem; }

.ed-alert {
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-bottom: 1.4rem;
    border: 1px solid;
}
.ed-alert-disputed { background: rgba(255,68,68,0.05); border-color: rgba(255,68,68,0.2); color: #d08080; }
.ed-alert-refunded { background: rgba(255,152,0,0.05); border-color: rgba(255,152,0,0.2); color: #c09060; }
.ed-alert-cancelled { background: rgba(100,100,100,0.05); border-color: rgba(100,100,100,0.15); color: #707070; }

.ed-info-grid { display: flex; flex-direction: column; gap: 0; }
.ed-info-row { display: flex; justify-content: space-between; align-items: center; padding: 0.55rem 0; border-bottom: 1px solid #0e1a0e; font-size: 0.85rem; }
.ed-info-row:last-child { border-bottom: none; }
.ed-info-label { color: #5a8a5a; font-size: 0.78rem; font-family: var(--font-mono); }
.ed-info-val { font-family: var(--font-mono); font-size: 0.82rem; color: #a0c8a0; }
.buy-color  { color: #88c0e8 !important; }
.sell-color { color: #00FF41 !important; }

.ed-desc { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #0e1a0e; font-size: 0.85rem; line-height: 1.7; }
.ed-desc-label { font-family: var(--font-mono); font-size: 0.65rem; color: #4a7a4a; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.5rem; }

.card-action { border-left: 2px solid #1e3a1e; }
.card-action-buy  { border-left-color: rgba(100,180,240,0.3); }
.card-action-sell { border-left-color: rgba(0,255,65,0.2); }
.ed-action-desc { font-size: 0.85rem; color: #7a9a7a; line-height: 1.65; margin-bottom: 1rem; }
.ed-action-row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }

/* ── history page ────────────────────────── */
/* ── History 검색바 ── */
.hist-search-wrap {
    display: flex; gap: 0.6rem; align-items: center;
    margin-bottom: 1.2rem;
    background: var(--bg-card);
    border: 1px solid rgba(0,255,65,0.1);
    border-radius: var(--radius-lg);
    padding: 0.5rem 0.5rem 0.5rem 0;
    transition: border-color 0.25s;
}
.hist-search-wrap:focus-within {
    border-color: rgba(0,255,65,0.28);
    box-shadow: 0 0 0 1px rgba(0,255,65,0.06);
}
.hist-search-field-wrap {
    flex: 1; position: relative; display: flex; align-items: center;
}
.hist-search-svg {
    position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%);
    color: #4a7a4a; pointer-events: none; opacity: 0.7; flex-shrink: 0;
    transition: color 0.2s;
}
.hist-search-wrap:focus-within .hist-search-svg { color: var(--green); opacity: 0.8; }
.hist-search-input {
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #c0e0c0;
    font-family: var(--font-mono);
    font-size: 0.86rem;
    padding: 0.7rem 1rem 0.7rem 2.6rem;
    outline: none;
    letter-spacing: 0.5px;
}
.hist-search-input::placeholder { color: #3a6a3a; }
.hist-search-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.65rem 1.2rem;
    background: rgba(0,255,65,0.08);
    border: 1px solid rgba(0,255,65,0.2);
    border-radius: var(--radius);
    color: #7aaa7a;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s;
    white-space: nowrap;
    flex-shrink: 0;
}
.hist-search-btn:hover {
    background: rgba(0,255,65,0.14);
    border-color: rgba(0,255,65,0.4);
    color: var(--green);
}

.hist-filter-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.4rem;
    flex-wrap: wrap;
}
.hist-tabs { display: flex; gap: 0; }
.hist-tab {
    padding: 0.55rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #5a8a5a;
    text-decoration: none;
    border: 1px solid #162816;
    border-right: none;
    transition: all 0.2s;
}
.hist-tab:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.hist-tab:last-child  { border-right: 1px solid #162816; border-radius: 0 var(--radius) var(--radius) 0; }
.hist-tab:hover { color: #6a8a6a; background: rgba(0,255,65,0.02); }
.hist-tab.active { color: #00FF41; border-color: rgba(0,255,65,0.2); background: rgba(0,255,65,0.04); }
.hist-status-filter { margin-left: auto; }
.hist-select {
    background: #0b130b;
    border: 1px solid #162816;
    border-radius: var(--radius);
    color: #6a8a6a;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    outline: none;
}

.hist-list { display: flex; flex-direction: column; gap: 0; }
.hist-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid #0b130b;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
    border-left: 2px solid transparent;
    flex-wrap: wrap;
}
.hist-row:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.hist-row:last-child  { border-radius: 0 0 var(--radius-lg) var(--radius-lg); border-bottom: none; }
.hist-row:only-child  { border-radius: var(--radius-lg); }
.hist-row-buy  { background: #0b130b; border-left-color: rgba(100,180,240,0.12); }
.hist-row-sell { background: #0b130b; border-left-color: rgba(0,255,65,0.1); }
.hist-row-buy:hover  { background: rgba(100,180,240,0.025); border-left-color: rgba(100,180,240,0.3); }
.hist-row-sell:hover { background: rgba(0,255,65,0.02); border-left-color: rgba(0,255,65,0.22); }
.hist-row-left { display: flex; align-items: center; gap: 1rem; flex: 1; min-width: 0; }
.hist-row-right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.hist-row-id { font-family: var(--font-mono); font-size: 0.68rem; color: #4a7a4a; white-space: nowrap; }
.hist-row-title { font-size: 0.88rem; color: #a0c8a0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-row-amount { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700; }
.hist-row-date { font-family: var(--font-mono); font-size: 0.68rem; color: #4a7a4a; white-space: nowrap; }

/* badge for awaiting_accept */
.badge-awaiting_accept {
    background: rgba(255,170,0,0.1);
    color: #ffaa00;
    border: 1px solid rgba(255,170,0,0.2);
}

/* telegram tag in escrow detail */
.ed-tg-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-family: var(--font-mono);
    color: #5599dd;
    background: rgba(85,153,221,0.08);
    border: 1px solid rgba(85,153,221,0.15);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    margin-left: 0.4rem;
    vertical-align: middle;
}
.ed-tg-missing {
    display: inline-block;
    font-size: 0.65rem;
    color: #886644;
    background: rgba(136,102,68,0.08);
    border: 1px solid rgba(136,102,68,0.15);
    border-radius: 4px;
    padding: 0.1rem 0.35rem;
    margin-left: 0.4rem;
    vertical-align: middle;
}

/* ── 역할 선택 토글 ─────────────────────── */
.ec-role-toggle { display: flex; gap: 0.75rem; }
.ec-role-btn {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
    padding: 1rem 0.5rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid #1a2e1a;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s;
    color: #4a6a4a;
}
.ec-role-btn:hover { border-color: #4a7a4a; color: #7a9a7a; }
.ec-role-btn.active {
    border-color: #00FF41;
    background: rgba(0,255,65,0.04);
    color: #00FF41;
    box-shadow: 0 0 12px rgba(0,255,65,0.08);
}
.ec-role-icon { font-size: 1.5rem; }
.ec-role-name { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.5px; }
.ec-role-desc { font-size: 0.68rem; opacity: 0.6; }

/* ── responsive ─────────────────────────── */
@media (max-width: 900px) {
    .dh-stats { grid-template-columns: 1fr 1fr; }
    .dh-body  { grid-template-columns: 1fr; }
    .dh-quick { grid-template-columns: 1fr 1fr; }
    .partner-grid { grid-template-columns: 1fr 1fr; }
    .pg-wrap { padding: 1.8rem 0 3rem; }
}
@media (max-width: 640px) {
    .dh-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .dh-actions { flex-wrap: wrap; }
    .dh-stats  { grid-template-columns: 1fr 1fr; }
    .dh-quick  { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .dh-quick-card { padding: 1rem 0.9rem; }
    .dqc-icon { width: 32px; height: 32px; border-radius: 8px; }
    .dqc-label { font-size: 0.72rem; }
    .dqc-sub { font-size: 0.6rem; }
    .dh-escrow-row { grid-template-columns: 1fr auto auto; }
    .der-id { display: none; }
    .partner-grid { grid-template-columns: 1fr; }
    .notice-item { padding: 0.8rem 0.9rem; gap: 0.65rem; }
    .ni-left { width: 32px; }
    .ni-date { display: none; }
    .nd-card { padding: 1.4rem; }
    .nd-meta-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .nd-title { font-size: 1.1rem; }
    .pg-title { font-size: 1.5rem; }
    .pg-head-eyebrow { font-size: 0.48rem; }
    .dh-tab { font-size: 0.62rem; padding: 0.75rem 0.8rem; letter-spacing: 0.5px; }
    .dh-tier-panel { flex-direction: column; }
}

/* ═══════════════════════════════════════════
   TX / MISC
   ═══════════════════════════════════════════ */
.tx-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.8rem 0; border-bottom: 1px solid var(--border); transition: 0.2s;
}
.tx-item:last-child { border-bottom: none; }
.tx-item:hover { background: var(--green-005); margin: 0 -0.5rem; padding: 0.8rem 0.5rem; border-radius: var(--radius); }
.tx-desc { font-size: 0.85rem; color: var(--text); }
.tx-date { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-dim); margin-top: 0.1rem; }
.tx-amount { font-family: var(--font-mono); font-weight: 700; font-size: 0.88rem; }
.tx-amount.positive { color: var(--green); }
.tx-amount.negative { color: var(--red); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.section-title {
    font-family: var(--font-mono); font-size: 0.92rem; font-weight: 700;
    color: var(--text-bright); letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 1.25rem; padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border); position: relative;
}
.section-title::after {
    content: '';
    position: absolute; bottom: -1px; left: 0;
    width: 40px; height: 2px;
    background: var(--green); border-radius: 2px;
    box-shadow: 0 0 8px var(--green-02);
}

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-dim); }
.empty-state-icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.15; color: var(--green); }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
    margin-top: 3rem;
}

.footer-rule {
    height: 1px;
    background: linear-gradient(90deg,
        transparent 5%,
        rgba(0,255,65,0.12) 30%,
        rgba(0,255,65,0.25) 50%,
        rgba(0,255,65,0.12) 70%,
        transparent 95%
    );
}

.footer-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-mask {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 5px rgba(0,255,65,0.2));
}

.footer-wordmark {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}
.fw-black { color: rgba(255,255,255,0.9); }
.fw-trade { color: #00FF41; text-shadow: 0 0 8px rgba(0,255,65,0.25); }

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 0.52rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 0.1rem;
    opacity: 0.7;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-nav a {
    font-size: 0.76rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-nav a:hover { color: var(--green); }
.footer-nav-dot {
    color: rgba(255,255,255,0.15);
    font-size: 0.7rem;
    user-select: none;
}

.footer-contact {
    padding-top: 0.15rem;
}

.footer-tg-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.9rem;
    background: rgba(0,136,204,0.08);
    border: 1px solid rgba(0,136,204,0.2);
    border-radius: 20px;
    color: #29b6f6 !important;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    white-space: nowrap;
}
.footer-tg-btn:hover {
    background: rgba(0,136,204,0.16);
    border-color: rgba(0,136,204,0.4);
    transform: translateY(-1px);
}
.footer-tg-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.footer-bottom {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-dim);
    opacity: 0.55;
    width: 100%;
    justify-content: center;
}

.footer-badge {
    padding: 0.15rem 0.55rem;
    border: 1px solid rgba(0,255,65,0.12);
    border-radius: 20px;
    font-size: 0.52rem;
    color: var(--green-dim);
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .footer-inner { padding: 1.6rem 1rem 1.4rem; gap: 0.9rem; }
    .footer-nav { gap: 0.35rem; }
    .footer-nav a { font-size: 0.72rem; }
    .footer-bottom { flex-direction: column; gap: 0.4rem; }
}

/* ═══════════════════════════════════════════
   GLITCH
   ═══════════════════════════════════════════ */
.glitch-hover:hover { animation: glitch 0.35s ease; }
@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 1px); }
    40% { transform: translate(3px, -2px); }
    60% { transform: translate(-2px, -1px); }
    80% { transform: translate(2px, 2px); }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   MOBILE MENU (완전 새 디자인)
   ═══════════════════════════════════════════ */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 998;
    pointer-events: none;
}
.mobile-menu.open {
    display: block;
    pointer-events: auto;
}

/* 배경 오버레이 */
.mm-backdrop {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}
.mobile-menu.open .mm-backdrop { opacity: 1; }

/* 패널 */
.mm-panel {
    position: absolute;
    top: 0; right: 0;
    width: min(320px, 88vw);
    height: 100%;
    background: #030803;
    border-left: 1px solid rgba(0,255,65,0.1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -20px 0 60px rgba(0,0,0,0.8);
}
.mobile-menu.open .mm-panel {
    transform: translateX(0);
}

/* 유저 행 */
.mm-user-row {
    display: flex; align-items: center; gap: 0.9rem;
    padding: 1.4rem 1.2rem 1.1rem;
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: none;
}
.mm-user-row:hover { background: rgba(0,255,65,0.03); }
.mm-user-avatar {
    width: 46px; height: 46px; border-radius: 50%;
    background: linear-gradient(145deg, #0e1e0e, #0a130a);
    border: 1.5px solid rgba(0,255,65,0.22);
    display: flex; align-items: center; justify-content: center;
    color: rgba(0,255,65,0.55); flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 0 0 2px rgba(0,255,65,0.06);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.mm-user-row:hover .mm-user-avatar {
    border-color: rgba(0,255,65,0.4);
    box-shadow: 0 0 0 3px rgba(0,255,65,0.08);
}
.mm-avatar-svg {
    width: 30px; height: 30px;
    color: rgba(0,255,65,0.5);
}
.mm-user-info { flex: 1; min-width: 0; }
.mm-user-alias {
    font-family: var(--font-mono); font-size: 0.9rem; font-weight: 700;
    color: #d8f0d8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mm-user-meta {
    font-family: var(--font-mono); font-size: 0.68rem; color: #4a7a4a;
    margin-top: 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mm-user-bal { color: var(--green); }
.mm-user-arrow { color: #3a6a3a; flex-shrink: 0; }
.mm-user-row:hover .mm-user-arrow { color: var(--green); transform: translateX(2px); }
.mm-user-arrow { transition: all 0.2s; }

/* 구분선 */
.mm-divider {
    height: 1px; background: rgba(0,255,65,0.07);
    margin: 0.2rem 1.2rem;
}

/* 메뉴 링크 목록 */
.mm-links {
    list-style: none;
    padding: 0.5rem 0.8rem;
    flex: 1;
    display: flex; flex-direction: column; gap: 0.2rem;
}

.mm-link {
    display: flex; align-items: center; gap: 0.85rem;
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.22s var(--ease);
    position: relative;
    overflow: hidden;
}
.mm-link:hover {
    background: rgba(0,255,65,0.05);
}
.mm-link.mm-active {
    background: rgba(0,255,65,0.07);
}
.mm-link.mm-active::before {
    content: '';
    position: absolute; left: 0; top: 20%; bottom: 20%;
    width: 2.5px; border-radius: 2px;
    background: var(--green);
    box-shadow: 0 0 6px rgba(0,255,65,0.5);
}

.mm-link-icon {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 9px;
    background: rgba(0,255,65,0.05);
    border: 1px solid rgba(0,255,65,0.08);
    color: #5a9a5a;
    flex-shrink: 0;
    transition: all 0.22s;
}
.mm-link:hover .mm-link-icon {
    background: rgba(0,255,65,0.1);
    border-color: rgba(0,255,65,0.2);
    color: var(--green);
}
.mm-link.mm-active .mm-link-icon {
    background: rgba(0,255,65,0.1);
    border-color: rgba(0,255,65,0.2);
    color: var(--green);
}

.mm-link-text {
    font-family: var(--font-mono); font-size: 0.88rem; font-weight: 600;
    color: #b8d8b8; line-height: 1.2;
}
.mm-link-sub {
    display: block; font-size: 0.68rem; color: #4a7a4a;
    font-family: var(--font-mono); margin-top: 0.1rem;
}
.mm-link:hover .mm-link-text { color: #d8f0d8; }
.mm-link.mm-active .mm-link-text { color: var(--green); }
.mm-link:hover .mm-link-sub, .mm-link.mm-active .mm-link-sub { color: #5a8a5a; }

/* 하단 영역 */
.mm-footer { padding: 0.5rem 0.8rem 1.5rem; }

.mm-logout-form { margin: 0; padding: 0; border: 0; width: 100%; }
.mm-logout-btn {
    display: flex; align-items: center; gap: 0.75rem;
    width: 100%;
    padding: 0.8rem 1rem;
    margin-top: 0.3rem;
    border-radius: 10px;
    border: 1px solid rgba(255,50,50,0.1);
    background: rgba(255,50,50,0.03);
    color: #7a5a5a;
    font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500;
    cursor: pointer;
    transition: all 0.22s var(--ease);
    text-align: left;
}
.mm-logout-btn svg { opacity: 0.5; flex-shrink: 0; transition: all 0.22s; }
.mm-logout-btn:hover {
    background: rgba(255,50,50,0.08);
    border-color: rgba(255,50,50,0.25);
    color: #ff7070;
}
.mm-logout-btn:hover svg { opacity: 1; }

/* 비로그인 버튼 */
.mm-auth-btns {
    display: flex; flex-direction: column; gap: 0.6rem;
    padding: 0.8rem 0;
}
.mm-btn-login {
    display: flex; align-items: center; justify-content: center;
    padding: 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(0,255,65,0.2);
    background: transparent;
    color: #a0c8a0;
    font-family: var(--font-mono); font-size: 0.9rem; font-weight: 600;
    transition: all 0.22s;
}
.mm-btn-login:hover {
    border-color: rgba(0,255,65,0.4);
    background: rgba(0,255,65,0.06);
    color: var(--green);
}
.mm-btn-register {
    display: flex; align-items: center; justify-content: center;
    padding: 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--green);
    background: linear-gradient(135deg, #00FF41, #00cc33);
    color: #000;
    font-family: var(--font-mono); font-size: 0.9rem; font-weight: 700;
    box-shadow: 0 0 16px rgba(0,255,65,0.15);
    transition: all 0.22s;
}
.mm-btn-register:hover {
    background: linear-gradient(135deg, #44ff77, #00FF41);
    box-shadow: 0 0 24px rgba(0,255,65,0.25);
    color: #000;
}

/* ═══════════════════════════════════════════
   RESPONSIVE BREAKPOINT 768px
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    html { font-size: 14px; }
    .navbar { padding: 0 1rem; height: 56px; }
    .nav-toggle { display: flex; }
    .nav-links { display: none !important; }

    .nav-mask { width: 34px; height: 34px; }
    .nav-logo-wordmark { font-size: 1rem; padding-left: 0.4rem; }
    .auth-mask-img { width: 56px; height: 56px; }
    .auth-mask-wrap::before { width: 80px; height: 80px; }
    .auth-brand { font-size: 1rem; }
    .footer-mask { width: 30px; height: 30px; }
    .main-container { padding: 1.25rem 1rem; }

    /* ── 모바일 히어로: 네비바 제외 전체 채우기 ── */
    .hero { height: calc(100svh - 56px); min-height: 480px; }
    .hero::after { height: 40px; }
    .hero-content {
        height: 100%;
        padding: 0;
        justify-content: stretch;
        align-items: stretch;
    }

    /* ── 모바일 비로그인 히어로 ── */
    .hero-guest {
        flex-direction: column;
        gap: 0;
        padding: 0.6rem 1.2rem 0.8rem;
        justify-content: space-evenly;
        align-items: center;
        height: 100%;
    }
    .hg-mask-area { flex-shrink: 0; align-items: center; }
    .hg-ring-1 { width: 160px; height: 160px; }
    .hg-ring-2 { width: 195px; height: 195px; }
    .hg-mask-img { width: 145px; }
    .hg-brand { font-size: 1.9rem; letter-spacing: -0.5px; margin-top: -0.1rem; }
    .hg-info { align-items: center; text-align: center; gap: 0.4rem; width: 100%; max-width: 100%; flex-shrink: 1; }
    .hg-eyebrow { justify-content: center; font-size: 0.46rem; letter-spacing: 2.5px; }
    .hg-eyebrow-line { display: none; }
    .hg-divider { background: linear-gradient(90deg, transparent, rgba(0,255,65,0.3), transparent); }
    .hg-sub { font-size: 0.72rem; text-align: center; }
    .hg-terminal-row { font-size: 0.62rem; justify-content: center; }
    .hg-feats { flex-direction: column; gap: 0.3rem; width: 100%; }
    .hg-feat { padding: 0.45rem 0.7rem; gap: 0.55rem; }
    .hg-feat-icon { width: 26px; height: 26px; border-radius: 6px; }
    .hg-feat-icon svg { width: 13px; height: 13px; }
    .hg-feat-title { font-size: 0.66rem; }
    .hg-feat-desc { font-size: 0.52rem; }
    .hg-actions { flex-direction: row; gap: 0.4rem; width: 100%; }
    .hg-btn-primary, .hg-btn-ghost { flex: 1; justify-content: center; padding: 0.6rem; font-size: 0.78rem; }

    /* ── 모바일 로그인 히어로 ── */
    .hero-logged {
        flex-direction: column;
        gap: 0;
        padding: 0.8rem 1.4rem 1rem;
        justify-content: space-evenly;
        align-items: center;
        height: 100%;
    }
    .hl-mask-area {
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .hl-mask-brand { display: flex; }
    .hl-ring-1 { width: 160px; height: 160px; }
    .hl-ring-2 { width: 200px; height: 200px; }
    .hl-mask-img { width: 145px; }
    .hl-mb-b, .hl-mb-t { font-size: 1.7rem; }
    .hl-info { align-items: center; text-align: center; gap: 0.4rem; width: 100%; max-width: 100%; flex-shrink: 1; }
    .hl-eyebrow { text-align: center; }
    .hl-name-block { flex-direction: column; align-items: center; gap: 0.3rem; }
    .hl-name { font-size: 1.75rem; }
    .hl-divider { background: linear-gradient(90deg, transparent, rgba(0,255,65,0.3), transparent); }
    .hl-terminal-row { font-size: 0.67rem; justify-content: center; }
    .hl-stats-grid { grid-template-columns: 1fr 1fr; gap: 0.4rem; width: 100%; }
    .hl-stat-card { padding: 0.6rem 0.7rem; }
    .hl-sc-val { font-size: 1.2rem; }
    .hl-sc-label { font-size: 0.47rem; }
    .hl-actions { flex-wrap: wrap; gap: 0.3rem; width: 100%; justify-content: center; }
    .hl-btn-primary { flex: 1 1 100%; font-size: 0.76rem; }
    .hl-btn-ghost { flex: 1 1 30%; font-size: 0.7rem; padding: 0.55rem 0.6rem; }
    .hl-await { margin-top: 0.7rem; }
    .hl-await-head { padding: 0.45rem 0.7rem; }
    .hl-await-row { padding: 0.5rem 0.7rem; gap: 0.4rem; }
    .hl-await-name { font-size: 0.74rem; }
    .hl-await-amount { font-size: 0.8rem; }

    .two-col { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .stat-value { font-size: 1.4rem; }

    .escrow-item { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .escrow-title { grid-column: 1 / -1; }
    .escrow-amount, .escrow-date { text-align: left; }

    .escrow-detail-header { flex-direction: column; }
    .escrow-detail-amount, .escrow-detail-fee { text-align: left; }
    .progress-step-dot { width: 30px; height: 30px; font-size: 0.62rem; }
    .progress-step-label { font-size: 0.58rem; }

    .auth-container { margin: 1rem auto; }
    .auth-card { padding: 1.4rem 1.2rem; }
    .form-control,
    .dh-search-input,
    .hist-search-input,
    .nso-input,
    .mm-search-input,
    .ec-input,
    .ec-select,
    .wl-amount-input,
    .st-pin-input,
    input[type="text"],
    input[type="password"],
    input[type="number"],
    input[type="email"],
    input[type="tel"],
    input[type="search"],
    input[type="url"],
    select,
    textarea {
        font-size: 16px !important;
    }
    .form-group { margin-bottom: 0.75rem; }
    .form-label { font-size: 0.62rem; margin-bottom: 0.25rem; letter-spacing: 1.2px; }
    .auth-hero { margin-bottom: 0.8rem; padding-bottom: 0.7rem; }
    .auth-typing-wrap { margin-bottom: 0.8rem; font-size: 0.72rem; }
    .auth-submit { margin-top: 1rem; }
    .auth-link { margin-top: 0.8rem; }
    .btn-auth-primary { padding: 0.65rem 1rem; font-size: 0.78rem; }
    .flash-messages { left: 1rem; right: 1rem; max-width: none; }
    .btn-lg { padding: 0.8rem 1.8rem; }
}

@media (max-width: 480px) {
    .hero { height: calc(100svh - 56px); }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .escrow-item { grid-template-columns: 1fr; }
    /* 비로그인 */
    .hg-mask-img { width: 120px; }
    .hg-ring-1 { width: 132px; height: 132px; }
    .hg-ring-2 { width: 162px; height: 162px; }
    .hg-brand { font-size: 1.65rem; }
    .hg-sub { font-size: 0.66rem; }
    .hg-feat { padding: 0.38rem 0.6rem; }
    .hg-feat-icon { width: 22px; height: 22px; }
    .hg-feat-icon svg { width: 11px; height: 11px; }
    .hg-feat-title { font-size: 0.6rem; }
    .hg-feat-desc { font-size: 0.48rem; }
    /* 로그인 */
    .hl-mask-img { width: 128px; }
    .hl-ring-1 { width: 138px; height: 138px; }
    .hl-ring-2 { width: 170px; height: 170px; }
    .hl-mask-brand { font-size: 0.9rem; }
    .hl-mb-b, .hl-mb-t { font-size: 1.5rem; }
    .hl-name { font-size: 1.55rem; }
    .hl-tier-badge { font-size: 0.48rem; padding: 0.12rem 0.45rem; }
    .hl-sc-val { font-size: 1.05rem; }
    .hl-stat-card { padding: 0.5rem 0.6rem; }
}


/* ═══════════════════════════════════════════
   TRADE DETAIL v2  (td- prefix)
   ═══════════════════════════════════════════ */
.td-page { max-width: 780px; margin: 0 auto; }

/* ── nav ── */
.td-nav {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}
.td-back-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim);
    text-decoration: none; padding: 0.4rem 0.8rem; border-radius: 6px;
    border: 1px solid transparent; transition: all 0.2s;
}
.td-back-btn:hover { color: var(--green); border-color: rgba(0,255,65,0.15); background: rgba(0,255,65,0.03); }
.td-nav-badges { display: flex; align-items: center; gap: 0.5rem; }
.td-role-chip {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
    padding: 0.25rem 0.65rem; border-radius: 20px; letter-spacing: 0.5px;
}
.td-role-buy { color: #88c0e8; background: rgba(100,180,240,0.08); border: 1px solid rgba(100,180,240,0.15); }
.td-role-sell { color: var(--green); background: rgba(0,255,65,0.06); border: 1px solid rgba(0,255,65,0.12); }

/* ── header ── */
.td-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 1.5rem; margin-bottom: 1.5rem;
}
.td-header-left { flex: 1; min-width: 0; }
.td-trade-id {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: var(--font-mono); font-size: 0.72rem; color: var(--green);
    letter-spacing: 1.5px; margin-bottom: 0.4rem; opacity: 0.7;
}
.td-title {
    font-family: var(--font-sans); font-size: 1.4rem; font-weight: 700;
    color: var(--text-white); line-height: 1.3; margin: 0;
    overflow: hidden; text-overflow: ellipsis;
}
.td-header-right { text-align: right; flex-shrink: 0; }
.td-amount {
    font-family: var(--font-mono); font-size: 1.8rem; font-weight: 800;
    color: #e8f8e8; line-height: 1;
}
.td-fee {
    font-family: var(--font-mono); font-size: 0.68rem; color: #5a8a5a; margin-top: 0.35rem;
}

/* ── info strip (ticket/wallet/status) ── */
.td-info-strip {
    display: grid; grid-template-columns: auto 1fr auto; gap: 0;
    background: #080e08; border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; margin-bottom: 1.5rem;
}
.td-info-item {
    display: flex; flex-direction: column; gap: 0.4rem;
    padding: 1rem 1.2rem; border-right: 1px solid var(--border); position: relative;
}
.td-info-item:last-child { border-right: none; }
.td-info-label {
    display: flex; align-items: center; gap: 0.35rem;
    font-family: var(--font-mono); font-size: 0.55rem; font-weight: 600;
    color: #5a8a5a; letter-spacing: 1.8px; text-transform: uppercase;
}
.td-info-label svg { opacity: 0.6; }
.td-info-value {
    font-family: var(--font-mono); font-size: 0.82rem; color: #a0c8a0;
    word-break: break-all; padding-right: 2rem;
}
.td-info-ticket {
    font-size: 1rem; font-weight: 700; color: var(--text-white); letter-spacing: 1px;
}
.td-wallet-addr {
    font-size: 0.65rem; color: #6a8a6a;
    max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.td-copy {
    position: absolute; top: 0.8rem; right: 0.8rem;
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 6px;
    border: 1px solid rgba(0,255,65,0.1); background: rgba(0,255,65,0.03);
    color: #4a6a4a; cursor: pointer; transition: all 0.2s;
}
.td-copy:hover { border-color: rgba(0,255,65,0.3); color: var(--green); background: rgba(0,255,65,0.06); }
.td-info-status-cell {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 130px;
}
.td-status-funded {
    display: flex; align-items: center; gap: 0.4rem;
    font-family: var(--font-mono); font-size: 0.82rem; font-weight: 700;
    color: var(--green); text-shadow: 0 0 10px rgba(0,255,65,0.3);
}
.td-status-pending {
    display: flex; align-items: center; gap: 0.4rem;
    font-family: var(--font-mono); font-size: 0.78rem; color: var(--orange);
}

/* ── toast ── */
.td-toast {
    position: fixed; bottom: 2rem; left: 50%;
    transform: translateX(-50%) translateY(10px);
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: #0a150a; border: 1px solid rgba(0,255,65,0.25);
    color: var(--green); font-family: var(--font-mono); font-size: 0.75rem;
    padding: 0.55rem 1.2rem; border-radius: 8px;
    opacity: 0; transition: all 0.3s; z-index: 999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.td-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── stepper ── */
.td-stepper {
    display: flex; justify-content: space-between;
    position: relative; margin-bottom: 1.5rem; padding: 1.2rem 0.5rem;
}
.td-stepper-line {
    position: absolute; top: calc(1.2rem + 15px); left: calc(0.5rem + 16px); right: calc(0.5rem + 16px);
    height: 3px; background: var(--border); border-radius: 2px; z-index: 0;
}
.td-stepper-fill {
    height: 100%; background: var(--green); border-radius: 2px;
    transition: width 0.6s var(--ease);
    box-shadow: 0 0 8px rgba(0,255,65,0.3);
}
.td-step {
    display: flex; flex-direction: column; align-items: center;
    position: relative; z-index: 1; flex: 1;
}
.td-step-dot {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
    border: 2px solid var(--border); background: #060806;
    color: var(--text-dim); margin-bottom: 0.5rem; transition: all 0.3s;
}
.td-step-label {
    font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-dim);
    text-align: center; letter-spacing: 0.3px; transition: all 0.3s;
}
.td-step-done .td-step-dot {
    border-color: var(--green); background: rgba(0,255,65,0.1); color: var(--green);
}
.td-step-done .td-step-label { color: var(--green); }
.td-step-active .td-step-dot {
    border-color: var(--green); color: var(--green);
    box-shadow: 0 0 12px rgba(0,255,65,0.3), 0 0 4px rgba(0,255,65,0.2);
    animation: td-pulse 2s infinite;
}
.td-step-active .td-step-label { color: var(--green); font-weight: 600; }
.td-step-error .td-step-dot { border-color: var(--red); color: var(--red); }
@keyframes td-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(0,255,65,0.2); }
    50% { box-shadow: 0 0 16px rgba(0,255,65,0.4), 0 0 4px rgba(0,255,65,0.3); }
}

/* ── alert ── */
.td-alert {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.85rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.5rem;
    font-family: var(--font-mono); font-size: 0.82rem;
}
.td-alert-disputed { background: rgba(255,68,68,0.05); border: 1px solid rgba(255,68,68,0.15); color: #d08080; }
.td-alert-refunded { background: rgba(255,152,0,0.05); border: 1px solid rgba(255,152,0,0.15); color: #c09060; }
.td-alert-cancelled { background: rgba(100,100,100,0.05); border: 1px solid rgba(100,100,100,0.12); color: #707070; }

/* ── body ── */
.td-body { display: flex; flex-direction: column; gap: 1rem; }

/* ── cards ── */
.td-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.25rem 1.4rem;
}
.td-card-head {
    display: flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700;
    color: var(--text-bright); letter-spacing: 0.8px;
    margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border);
}
.td-card-head svg { opacity: 0.6; flex-shrink: 0; }
.td-head-danger { color: var(--red); }
.td-head-danger svg { opacity: 0.8; }
.td-card-action { border-left: 3px solid var(--green); }
.td-card-highlight { border-left-color: var(--orange); background: rgba(255,170,0,0.02); }
.td-card-buy { border-left-color: #88c0e8; }
.td-card-sell { border-left-color: var(--green); }
.td-card-info { border-left: 3px solid var(--text-dim); background: rgba(80,96,80,0.03); }
.td-card-cancel { background: transparent; border-color: rgba(255,45,45,0.1); }
.td-card-dispute { border-color: rgba(255,45,45,0.12); }

/* ── detail grid ── */
.td-detail-grid { display: flex; flex-direction: column; }
.td-detail-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.65rem 0; border-bottom: 1px solid rgba(15,25,15,0.8); gap: 1rem;
}
.td-detail-row:last-child { border-bottom: none; }
.td-detail-key {
    display: flex; align-items: center; gap: 0.45rem;
    font-family: var(--font-mono); font-size: 0.75rem; color: #5a8a5a;
    flex-shrink: 0; min-width: 90px;
}
.td-detail-key svg { opacity: 0.5; flex-shrink: 0; }
.td-detail-val {
    font-family: var(--font-mono); font-size: 0.82rem; color: #a0c8a0; text-align: right;
}
.td-val-buy { color: #88c0e8 !important; }
.td-val-sell { color: var(--green) !important; }
.td-dim { color: #5a8a5a; }
.td-tg {
    display: inline-block; font-size: 0.65rem; color: #4a8a4a;
    background: rgba(0,255,65,0.04); border: 1px solid rgba(0,255,65,0.08);
    padding: 0.1rem 0.4rem; border-radius: 4px; margin-left: 0.3rem;
}
.td-tg-none {
    display: inline-block; font-size: 0.65rem; color: #705050;
    background: rgba(255,45,45,0.04); border: 1px solid rgba(255,45,45,0.08);
    padding: 0.1rem 0.4rem; border-radius: 4px; margin-left: 0.3rem;
}
.td-desc-section { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.td-desc-label {
    display: flex; align-items: center; gap: 0.35rem;
    font-family: var(--font-mono); font-size: 0.6rem; color: #4a7a4a;
    text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.5rem;
}
.td-desc-label svg { opacity: 0.5; }
.td-desc-text { font-size: 0.85rem; color: #8aaa8a; line-height: 1.7; }

/* ── action ── */
.td-action-msg { font-size: 0.85rem; color: #7a9a7a; line-height: 1.7; margin-bottom: 1rem; }
.td-action-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.td-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
    padding: 0.65rem 1.4rem; border-radius: var(--radius);
    border: 1px solid transparent; cursor: pointer; transition: all 0.2s;
    text-decoration: none; letter-spacing: 0.3px;
}
.td-btn-primary {
    background: rgba(0,255,65,0.1); border-color: rgba(0,255,65,0.25); color: var(--green);
}
.td-btn-primary:hover { background: rgba(0,255,65,0.15); box-shadow: 0 0 15px rgba(0,255,65,0.15); }
.td-btn-ghost {
    background: transparent; border-color: var(--border-light); color: var(--text);
}
.td-btn-ghost:hover { border-color: #3a6a3a; color: #c0e0c0; }
.td-btn-danger {
    background: rgba(255,45,45,0.08); border-color: rgba(255,45,45,0.2); color: var(--red);
}
.td-btn-danger:hover { background: rgba(255,45,45,0.12); }
.td-btn-danger-sm {
    background: transparent; border: 1px solid rgba(255,45,45,0.15); color: #aa5555;
    font-family: var(--font-mono); font-size: 0.72rem; padding: 0.45rem 1rem;
    border-radius: 6px; cursor: pointer; transition: all 0.2s;
}
.td-btn-danger-sm:hover { background: rgba(255,45,45,0.06); color: var(--red); }

/* ── cancel form ── */
.td-cancel-form {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.td-cancel-left {
    display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: #886666;
}
.td-cancel-left svg { opacity: 0.5; }

/* ── 텔레그램 비밀 거래방 ── */
.td-tg-room {
    background: linear-gradient(135deg, #0a120a 0%, #0c160c 100%);
    border: 1px solid #1a2a1a;
    border-radius: 10px;
    padding: 0;
    margin-bottom: 1rem;
    overflow: hidden;
}
.td-tg-room-inner {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 0.9rem 1rem;
}
.td-tg-room-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(0,150,136,0.12);
    border: 1px solid rgba(0,150,136,0.2);
    display: flex; align-items: center; justify-content: center;
    color: #00bfa5; flex-shrink: 0;
}
.td-tg-room-icon-dim { background: rgba(100,100,100,0.08); border-color: var(--border); color: var(--text-dim); }
.td-tg-room-text { flex: 1; min-width: 0; }
.td-tg-room-title {
    font-family: var(--font-mono); font-size: 0.78rem;
    font-weight: 700; color: #d0e8d0; letter-spacing: 0.3px;
}
.td-tg-room-desc {
    font-size: 0.62rem; color: var(--text-dim);
    margin-top: 0.15rem; line-height: 1.3;
}
.td-tg-room-btn {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.5rem 1.1rem;
    font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #2AABEE, #229ED9);
    border: none; border-radius: 8px;
    text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: all 0.2s; flex-shrink: 0;
}
.td-tg-room-btn:hover {
    background: linear-gradient(135deg, #3bb8f8, #2AABEE);
    box-shadow: 0 2px 14px rgba(42,171,238,0.3);
    transform: translateY(-1px);
    color: #fff;
}
.td-tg-room-btn-dim {
    background: linear-gradient(135deg, #2a4a2a, #1e3a1e) !important;
    color: var(--green) !important;
    border: 1px solid var(--border-a) !important;
}
.td-tg-room-btn-dim:hover {
    background: linear-gradient(135deg, #2a5a2a, #1e4a1e) !important;
    box-shadow: 0 2px 10px rgba(0,255,65,0.1) !important;
    color: var(--green-b) !important;
}
.td-tg-room-pending { opacity: 0.7; }

@media (max-width: 480px) {
    .td-tg-room-inner { flex-wrap: wrap; gap: 0.6rem; }
    .td-tg-room-btn { width: 100%; justify-content: center; }
}

/* ── log card ── */
.td-log-card { background: #070a07; }
.td-log-hint {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.6rem; color: var(--text-dim); font-weight: 400;
    margin-left: auto; letter-spacing: 0.5px;
}
.td-log-hint-active { color: #00bfa5; }

/* ── timeline ── */
.td-timeline {
    display: flex; flex-direction: column; gap: 0;
    padding-left: 1.2rem; border-left: 2px solid var(--border);
    margin-left: 0.4rem;
}
.td-tl-item { position: relative; padding: 0.7rem 0 0.7rem 1.2rem; }
.td-tl-item:first-child { padding-top: 0; }
.td-tl-item:last-child { padding-bottom: 0; }
.td-tl-dot {
    position: absolute; left: -1.45rem; top: 0.95rem; width: 10px; height: 10px;
    border-radius: 50%; background: var(--green); border: 2px solid #070a07;
    box-shadow: 0 0 6px rgba(0,255,65,0.3);
}
.td-tl-item:first-child .td-tl-dot { top: 0.25rem; }
.td-tl-time {
    display: flex; align-items: center; gap: 0.3rem;
    font-family: var(--font-mono); font-size: 0.65rem; color: #4a6a4a; margin-bottom: 0.35rem;
}
.td-tl-time svg { opacity: 0.5; }
.td-tl-msg {
    font-size: 0.8rem; color: #7a9a7a; line-height: 1.65; white-space: pre-line;
}

/* ── trade detail responsive ── */
@media (max-width: 768px) {
    .td-header { flex-direction: column; gap: 0.75rem; }
    .td-header-right { text-align: left; }
    .td-amount { font-size: 1.5rem; }
    .td-info-strip { grid-template-columns: 1fr; }
    .td-info-item { border-right: none; border-bottom: 1px solid var(--border); }
    .td-info-item:last-child { border-bottom: none; }
    .td-info-status-cell { align-items: flex-start; justify-content: flex-start; min-width: auto; }
    .td-wallet-addr { max-width: 100%; white-space: normal; }
    .td-stepper { padding: 1rem 0; }
    .td-step-dot { width: 28px; height: 28px; font-size: 0.6rem; }
    .td-step-dot svg { width: 11px; height: 11px; }
    .td-step-label { font-size: 0.52rem; }
    .td-card { padding: 1rem 1.1rem; }
    .td-detail-row { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
    .td-detail-val { text-align: left; }
    .td-cancel-form { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
}
@media (max-width: 480px) {
    .td-nav { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .td-title { font-size: 1.15rem; }
    .td-amount { font-size: 1.3rem; }
    .td-step-dot { width: 24px; height: 24px; font-size: 0.55rem; }
    .td-step-dot svg { width: 10px; height: 10px; }
    .td-step-label { font-size: 0.48rem; letter-spacing: 0; }
    .td-action-btns { flex-direction: column; width: 100%; }
    .td-action-btns form { width: 100%; }
    .td-action-btns .td-btn { width: 100%; }
    .td-card { padding: 0.9rem 1rem; }
    .td-card-head { font-size: 0.72rem; }
    .td-stepper-line { left: calc(12px); right: calc(12px); }
}


/* ═══════════════════════════════════════════
   DASHBOARD v2 enhancements
   ═══════════════════════════════════════════ */

/* stat label with icon */
.dh-stat-label {
    display: flex; align-items: center; gap: 0.3rem;
}
.dh-stat-label svg { opacity: 0.5; flex-shrink: 0; }

/* alert bar icon */
.dh-alert-icon {
    display: flex; align-items: center; color: #ffaa00;
}
.dh-alert-link {
    display: inline-flex; align-items: center; gap: 0.25rem;
}

/* panel title with icon */
.dh-panel-title {
    display: flex; align-items: center; gap: 0.4rem;
}
.dh-panel-title svg { opacity: 0.5; }

/* panel more link with icon */
.dh-panel-more {
    display: inline-flex; align-items: center; gap: 0.2rem;
}

/* tab with icon */
.dh-tab {
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.dh-tab svg { opacity: 0.5; flex-shrink: 0; }
.dh-tab.active svg { opacity: 0.8; }

/* urgent role badge */
.der-role-urgent {
    display: inline-flex; align-items: center; gap: 0.25rem;
    color: #ffaa00; background: rgba(255,170,0,0.08);
    border: 1px solid rgba(255,170,0,0.2); border-radius: 4px;
    font-family: var(--font-mono); font-size: 0.65rem; font-weight: 600;
    padding: 0.15rem 0.5rem;
}

/* tx row with directional icon */
.dh-tx-row { display: flex; align-items: center; }
.dtr-left { display: flex; align-items: center; gap: 0.7rem; flex: 1; min-width: 0; }
.dtr-icon {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
}
.dtr-icon-in {
    background: rgba(0,255,65,0.06); color: var(--green);
    border: 1px solid rgba(0,255,65,0.1);
}
.dtr-icon-out {
    background: rgba(255,45,45,0.06); color: var(--red);
    border: 1px solid rgba(255,45,45,0.1);
}

/* copy toast with icon */
.dh-copy-toast {
    display: inline-flex; align-items: center; gap: 0.35rem;
}

/* search btn with icon */
.dh-search-btn {
    display: inline-flex; align-items: center; gap: 0.3rem;
}
.dh-search-btn svg { flex-shrink: 0; }

/* action buttons with icons */
.dh-btn-primary, .dh-btn-ghost, .dh-btn-copy {
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.dh-btn-primary svg, .dh-btn-ghost svg, .dh-btn-copy svg { flex-shrink: 0; }


/* ═══════════════════════════════════════════
   UX / ACCESSIBILITY IMPROVEMENTS
   ═══════════════════════════════════════════ */

/* ── skip-link ── */
.skip-link {
    position: absolute; left: -9999px; top: -9999px;
    background: var(--green); color: #000; padding: 0.5rem 1rem;
    font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
    z-index: 10000; border-radius: 0 0 var(--radius) 0;
    text-decoration: none;
}
.skip-link:focus { left: 0; top: 0; }

/* ── focus-visible ── */
*:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid rgba(0,255,65,0.5);
    outline-offset: 0;
    border-color: rgba(0,255,65,0.4) !important;
}
button:focus-visible, a:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

/* ── flash message close ── */
.flash {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.flash-close {
    background: none; border: none; cursor: pointer;
    color: inherit; opacity: 0.5; padding: 0.25rem;
    flex-shrink: 0; display: flex; align-items: center;
    transition: opacity 0.2s;
}
.flash-close:hover { opacity: 1; }

/* ── deposit page ── */
.dep-balance-box {
    text-align: center; padding: 1.5rem;
    background: var(--bg-deep); border-radius: var(--radius);
    border: 1px solid var(--border);
}
.dep-balance-label {
    display: flex; align-items: center; justify-content: center; gap: 0.4rem;
    font-family: var(--font-mono); font-size: 0.72rem;
    color: var(--text-dim); text-transform: uppercase;
    letter-spacing: 3px; margin-bottom: 0.5rem;
}
.dep-balance-label svg { opacity: 0.5; }
.dep-balance-val {
    font-family: var(--font-mono); font-size: 2.2rem; font-weight: 800;
    color: var(--green); text-shadow: 0 0 20px var(--green-glow, rgba(0,255,65,0.2));
}
.dep-input-wrap {
    position: relative; display: flex; align-items: center;
}
.dep-currency {
    position: absolute; left: 0.8rem;
    font-family: var(--font-mono); font-size: 1rem;
    color: var(--text-dim); pointer-events: none;
}
.dep-amount-input { padding-left: 1.8rem !important; font-size: 1.1rem !important; }
.dep-quick-amounts {
    display: flex; gap: 0.5rem; margin: 1rem 0 1.5rem;
}
.dep-quick-btn {
    flex: 1; padding: 0.5rem; background: var(--bg-deep);
    border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--text); font-family: var(--font-mono); font-size: 0.8rem;
    cursor: pointer; transition: all 0.2s;
}
.dep-quick-btn:hover {
    border-color: rgba(0,255,65,0.3); color: var(--green);
    background: var(--green-005);
}
.dep-actions {
    display: flex; gap: 0.75rem;
}
.dep-submit-btn { flex: 1; }
.dep-actions .td-btn-ghost { flex: 0 0 auto; }

/* ── spin animation for loading ── */
@keyframes spin-rotate { to { transform: rotate(360deg); } }
.spin-icon { animation: spin-rotate 0.8s linear infinite; }
.btn-loading { opacity: 0.6; pointer-events: none; }

/* ── tab body transition ── */
.dh-tab-body {
    display: none; opacity: 0;
    animation: tabFadeIn 0.25s ease forwards;
}
.dh-tab-body.active { display: block; opacity: 1; }
@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════
   NAV SEARCH BUTTON + OVERLAY
   ══════════════════════════════════════════════ */
.nav-search-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 6px;
    border: 1px solid rgba(0,255,65,0.15);
    background: transparent; cursor: pointer;
    color: #5a8a5a; transition: all 0.22s;
}
.nav-search-btn:hover {
    border-color: rgba(0,255,65,0.35);
    background: rgba(0,255,65,0.06);
    color: var(--green);
}

/* ─── 알림 벨 ─── */
.nav-notif-btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 6px;
    border: 1px solid transparent;
    background: transparent; cursor: pointer;
    color: #5a8a5a; transition: all 0.22s;
    text-decoration: none;
}
.nav-notif-btn:hover {
    border-color: rgba(0,255,65,0.2);
    background: rgba(0,255,65,0.04);
    color: #8ac88a;
}
.nav-notif-badge {
    position: absolute;
    top: 2px; right: 2px;
    min-width: 14px; height: 14px;
    border-radius: 7px;
    background: var(--orange);
    color: #000;
    font-family: var(--font-mono);
    font-size: 0.5rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    padding: 0 2px;
    line-height: 1;
    animation: badgePop 0.3s ease;
    border: 1px solid var(--bg-void);
}
@keyframes badgePop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.nav-settings-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 6px;
    border: 1px solid transparent;
    background: transparent; cursor: pointer;
    color: #5a8a5a; transition: all 0.22s;
}
.nav-settings-btn:hover {
    border-color: rgba(0,255,65,0.2);
    background: rgba(0,255,65,0.04);
    color: #8ac88a;
}
.nav-settings-btn.nav-active {
    background: rgba(0,255,65,0.06) !important;
    color: var(--green) !important;
    border-color: rgba(0,255,65,0.2) !important;
}

/* 검색 오버레이 */
.nav-search-overlay {
    display: none; position: fixed; inset: 0; z-index: 500;
    align-items: flex-start; justify-content: center;
    padding-top: 90px;
}
.nav-search-overlay.open { display: flex; }
.nso-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: nsoFadeIn 0.2s ease;
}
@keyframes nsoFadeIn { from { opacity: 0; } to { opacity: 1; } }
.nso-box {
    position: relative; z-index: 1;
    width: min(560px, 90vw);
    animation: nsoSlideIn 0.22s cubic-bezier(0.4,0,0.2,1);
}
@keyframes nsoSlideIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
.nso-form {
    display: flex; align-items: center; gap: 0;
    background: #080e08;
    border: 1px solid rgba(0,255,65,0.25);
    border-radius: var(--radius-lg);
    padding: 0 0.5rem 0 1.1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(0,255,65,0.05);
    overflow: hidden;
}
.nso-form svg { color: #4a7a4a; flex-shrink: 0; }
.nso-input {
    flex: 1; background: transparent; border: none; outline: none;
    font-family: var(--font-mono); font-size: 0.95rem;
    color: #d0e8d0; padding: 1rem 0.8rem;
    letter-spacing: 0.5px;
}
.nso-input::placeholder { color: #2e5a2e; }
.nso-submit {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.55rem 1rem;
    background: rgba(0,255,65,0.1);
    border: 1px solid rgba(0,255,65,0.2);
    border-radius: var(--radius);
    color: #7aaa7a; font-family: var(--font-mono); font-size: 0.78rem;
    cursor: pointer; white-space: nowrap; transition: all 0.2s;
}
.nso-submit:hover {
    background: rgba(0,255,65,0.18);
    border-color: rgba(0,255,65,0.4);
    color: var(--green);
}
.nso-hint {
    text-align: center; margin-top: 0.7rem;
    font-family: var(--font-mono); font-size: 0.62rem;
    color: #2a4a2a;
}

/* ══════════════════════════════════════════════
   MOBILE MENU SEARCH
   ══════════════════════════════════════════════ */
.mm-search-wrap {
    padding: 0.6rem 0.8rem 0.2rem;
}
.mm-search-form {
    display: flex; align-items: center; gap: 0.5rem;
    background: rgba(0,255,65,0.04);
    border: 1px solid rgba(0,255,65,0.1);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    transition: border-color 0.2s;
}
.mm-search-form:focus-within { border-color: rgba(0,255,65,0.25); }
.mm-search-form svg { color: #4a7a4a; flex-shrink: 0; }
.mm-search-input {
    flex: 1; background: transparent; border: none; outline: none;
    font-family: var(--font-mono); font-size: 0.82rem;
    color: #c0e0c0;
}
.mm-search-input::placeholder { color: #2e5a2e; }
.mm-search-btn {
    background: none; border: none; cursor: pointer;
    color: #4a7a4a; display: flex; align-items: center;
    padding: 0; transition: color 0.2s;
}
.mm-search-btn:hover { color: var(--green); }

/* ══════════════════════════════════════════════
   WALLET PAGE
   ══════════════════════════════════════════════ */
.wl-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.wl-header-left { display: flex; flex-direction: column; gap: 0.2rem; }
.wl-badge {
    font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600;
    color: #4a7a4a; letter-spacing: 2.5px; text-transform: uppercase;
    padding: 0.2rem 0.6rem; border: 1px solid rgba(0,255,65,0.1);
    border-radius: 4px; display: inline-block;
}
.wl-title {
    font-family: var(--font-mono); font-size: 1.5rem; font-weight: 800;
    color: var(--text-white); letter-spacing: -0.5px;
}
.wl-balance-chip {
    display: flex; align-items: center; gap: 0.5rem;
    background: rgba(0,255,65,0.04);
    border: 1px solid rgba(0,255,65,0.12);
    border-radius: var(--radius-lg);
    padding: 0.6rem 1rem;
    flex-shrink: 0;
}
.wl-balance-chip svg { color: var(--green); opacity: 0.6; }
.wl-balance-label { font-family: var(--font-mono); font-size: 0.7rem; color: #5a8a5a; }
.wl-balance-val { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 800; color: var(--green); }

/* 탭 */
.wl-tabs {
    display: flex; gap: 0.4rem; margin-bottom: 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.3rem;
}
.wl-tab {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.45rem;
    padding: 0.65rem 1rem;
    border-radius: 8px; border: none;
    font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600;
    color: #5a8a5a; background: transparent;
    cursor: pointer; transition: all 0.22s;
}
.wl-tab.active {
    background: rgba(0,255,65,0.1);
    color: var(--green);
    box-shadow: 0 1px 8px rgba(0,255,65,0.08);
}
.wl-tab:hover:not(.active) { color: #8ab88a; background: rgba(0,255,65,0.04); }

/* 패널 */
.wl-panel { display: none; }
.wl-panel.active { display: block; animation: tabFadeIn 0.25s ease forwards; }
.wl-panel.active { display: flex; flex-direction: column; gap: 1rem; }

/* ── USDT 입금주소 섹션 ── */
.wl-usdt-card { margin: 0; }

.wl-net-tabs {
    display: flex; gap: 0.4rem;
    padding: 1rem 1rem 0;
}
.wl-net-tab {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.78rem; font-weight: 600;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: var(--text-dim);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.wl-net-tab.active {
    border-color: rgba(0,255,65,0.3);
    background: rgba(0,255,65,0.05);
    color: #c0e8c0;
}
.wl-net-tab:hover:not(.active) {
    border-color: rgba(255,255,255,0.15);
    color: var(--text);
}
.wl-net-tag {
    font-family: var(--font-mono);
    font-size: 0.58rem; font-weight: 800;
    letter-spacing: 0.04em;
    padding: 0.12rem 0.45rem;
    border-radius: 4px;
}
.wl-net-tag-trc {
    background: rgba(0,200,100,0.1);
    border: 1px solid rgba(0,200,100,0.28);
    color: #00c864;
}
.wl-net-tag-erc {
    background: rgba(98,126,234,0.1);
    border: 1px solid rgba(98,126,234,0.28);
    color: #8fa8f8;
}

.wl-net-panel { padding: 1rem; }
.wl-net-hidden { display: none; }

.wl-addr-wrap {
    display: flex; flex-direction: column; gap: 0.65rem;
}
.wl-addr-label {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.72rem; font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase; letter-spacing: 0.06em;
}
.wl-addr-box {
    display: flex; align-items: center;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(0,255,65,0.12);
    border-radius: 9px;
    overflow: hidden;
}
.wl-addr-text {
    flex: 1;
    padding: 0.85rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: rgba(0,255,65,0.75);
    letter-spacing: 0.03em;
    word-break: break-all;
    line-height: 1.5;
    background: transparent;
}
.wl-addr-copy {
    flex-shrink: 0;
    width: 44px; height: 100%;
    min-height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    border: none; border-left: 1px solid rgba(0,255,65,0.1);
    color: rgba(0,255,65,0.35);
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}
.wl-addr-copy:hover { color: rgba(0,255,65,0.7); background: rgba(0,255,65,0.05); }

.wl-addr-warn {
    display: flex; align-items: flex-start; gap: 0.45rem;
    padding: 0.65rem 0.85rem;
    background: rgba(255,170,0,0.04);
    border: 1px solid rgba(255,170,0,0.15);
    border-radius: 8px;
    font-size: 0.72rem;
    color: rgba(255,200,100,0.55);
    line-height: 1.5;
}
.wl-addr-warn svg { stroke: rgba(255,170,0,0.5); flex-shrink: 0; margin-top: 1px; }
.wl-addr-warn strong { color: rgba(255,200,100,0.75); }

/* 입금 안내 가이드 */
.wl-deposit-guide {
    display: flex; align-items: flex-start; gap: 0.5rem;
    margin: 0.75rem 1rem 0.2rem;
    padding: 0.65rem 0.8rem;
    background: rgba(0,200,100,0.06);
    border: 1px solid rgba(0,200,100,0.12);
    border-radius: 8px;
    font-size: 0.73rem; line-height: 1.5;
    color: rgba(255,255,255,0.65);
}
.wl-deposit-guide svg { flex-shrink: 0; margin-top: 2px; color: #00cc66; }
.wl-deposit-guide strong { color: #00dd77; }

/* 입금 카드 내 구분선 */
.wl-sep {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    margin: 0.3rem 1rem;
}

/* 입금주소 미설정 */
.wl-no-addr {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 1rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
}
.wl-no-addr svg { stroke: rgba(255,255,255,0.2); flex-shrink: 0; }

/* 출금 네트워크 선택 버튼 */
.wl-wdr-net-btns {
    display: flex; gap: 0.4rem;
}
.wl-wdr-net-btn {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.76rem; font-weight: 600;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: var(--text-dim);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.wl-wdr-net-btn.active {
    border-color: rgba(255,170,0,0.3);
    background: rgba(255,170,0,0.05);
    color: #f0d090;
}
.wl-wdr-net-btn:hover:not(.active) {
    border-color: rgba(255,255,255,0.15);
    color: var(--text);
}

/* 출금 지갑주소 인풋 */
.wl-addr-input {
    font-family: var(--font-mono) !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.02em;
}
.wl-addr-input.wl-input-ok { border-color: rgba(0,255,65,0.35) !important; }
.wl-addr-input.wl-input-err { border-color: rgba(255,68,68,0.45) !important; }

/* 입출금 내역 리스트 */
.wl-tx-list { padding: 0 0.6rem 0.6rem; }
.wl-tx-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.wl-tx-item:last-child { border-bottom: none; }
.wl-tx-left { display: flex; align-items: center; gap: 0.55rem; }
.wl-tx-icon {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.wl-tx-icon-dep { background: rgba(0,200,100,0.12); color: #00cc66; }
.wl-tx-icon-wdr { background: rgba(255,170,0,0.12); color: #ffaa00; }
.wl-tx-type { font-size: 0.78rem; font-weight: 500; color: rgba(255,255,255,0.85); }
.wl-tx-date { font-size: 0.65rem; color: rgba(255,255,255,0.3); margin-top: 1px; }
.wl-tx-right { text-align: right; }
.wl-tx-amount { font-size: 0.8rem; font-weight: 600; font-family: var(--font-mono); }
.wl-tx-plus { color: #00cc66; }
.wl-tx-minus { color: #ff6666; }
.wl-tx-status {
    font-size: 0.62rem; font-weight: 600; margin-top: 2px;
    letter-spacing: 0.03em;
}
.wl-tx-st-pending { color: #ffaa00; }
.wl-tx-st-approved { color: #00cc66; }
.wl-tx-st-rejected { color: #ff4444; }

.wl-addr-status, .wl-pin-status {
    font-size: 0.72rem; margin-top: 0.3rem;
    min-height: 1rem; line-height: 1.2;
    transition: color 0.15s;
}
.wl-addr-status:empty, .wl-pin-status:empty { display: none; }
.wl-status-ok { color: #00cc66; }
.wl-status-err { color: #ff5555; }
.wl-status-warn { color: #ffaa00; }

/* 거래 상세 USDT 입금 카드 */
.td-usdt-deposit-card { margin-bottom: 0; }
.td-usdt-addr-section {
    padding: 0 1rem 1rem;
    display: flex; flex-direction: column; gap: 0.65rem;
}
.td-usdt-net-tabs {
    display: flex; gap: 0.35rem;
    padding: 0.75rem 1rem 0;
}
.td-usdt-net-tab {
    padding: 0.35rem 0.6rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.td-usdt-net-tab.active {
    border-color: rgba(0,255,65,0.3);
    background: rgba(0,255,65,0.05);
}
.td-usdt-net-tab:hover:not(.active) {
    border-color: rgba(255,255,255,0.15);
}
.td-usdt-net-panel { display: flex; flex-direction: column; gap: 0.5rem; }
.td-usdt-net-panel .wl-addr-box { margin: 0; }
.td-usdt-net-panel .wl-addr-warn { margin: 0; }

.wl-amount-wrap { position: relative; display: flex; align-items: center; }
.wl-currency-sym {
    position: absolute; left: 0.85rem;
    font-family: var(--font-mono); font-size: 1rem;
    color: var(--text-dim); pointer-events: none;
}
.wl-amount-input { padding-left: 1.8rem !important; font-size: 1.05rem !important; }

.wl-quick-amounts {
    display: flex; gap: 0.4rem; margin: 0.75rem 0 1.2rem; flex-wrap: wrap;
}
.wl-quick-btn {
    flex: 1; min-width: 60px;
    padding: 0.45rem 0.5rem;
    background: var(--bg-deep); border: 1px solid var(--border);
    border-radius: var(--radius); color: #7aaa7a;
    font-family: var(--font-mono); font-size: 0.78rem;
    cursor: pointer; transition: all 0.2s;
}
.wl-quick-btn:hover { border-color: rgba(0,255,65,0.3); color: var(--green); background: var(--green-005); }
.wl-quick-out:hover { border-color: rgba(255,170,0,0.3); color: #ffaa00; background: rgba(255,170,0,0.03); }

.wl-balance-info {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.7rem 0.9rem; margin-bottom: 1rem;
    background: rgba(255,170,0,0.04);
    border: 1px solid rgba(255,170,0,0.1);
    border-radius: var(--radius);
}
.wl-bal-label { font-family: var(--font-mono); font-size: 0.72rem; color: #8a7a5a; }
.wl-bal-amount { font-family: var(--font-mono); font-size: 1rem; font-weight: 700; color: #ffaa00; }

.wl-actions { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.wl-submit-btn { flex: 1; justify-content: center; }

/* ══════════════════════════════════════════════
   SETTINGS PAGE
   ══════════════════════════════════════════════ */
.st-header {
    display: flex; align-items: center; gap: 1.2rem;
    padding: 1.2rem 0 1.6rem;
    margin-bottom: 0.5rem;
}
.st-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(145deg, #0e1e0e, #0a130a);
    border: 2px solid rgba(0,255,65,0.2);
    display: flex; align-items: center; justify-content: center;
    color: rgba(0,255,65,0.5); flex-shrink: 0;
    box-shadow: 0 0 20px rgba(0,255,65,0.06);
}
.st-avatar svg { width: 44px; height: 44px; }
.st-alias { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 800; color: var(--text-white); }
.st-meta { font-family: var(--font-mono); font-size: 0.75rem; color: #5a8a5a; margin-top: 0.2rem; }
.st-joined { font-family: var(--font-mono); font-size: 0.65rem; color: #3a6a3a; margin-top: 0.15rem; }
.st-tier { font-weight: 700; }

.st-body { display: flex; flex-direction: column; gap: 1.2rem; }
.st-info-grid { display: flex; flex-direction: column; gap: 0; }
.st-info-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}
.st-info-row:last-child { border-bottom: none; }
.st-info-key { font-family: var(--font-mono); font-size: 0.72rem; color: #4a7a4a; flex-shrink: 0; }
.st-info-val { font-family: var(--font-mono); font-size: 0.82rem; color: #c0e0c0; text-align: right; }

.st-section-desc { font-size: 0.8rem; color: #5a8a5a; margin-bottom: 1rem; line-height: 1.5; }

.st-pin-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
@media (max-width: 400px) { .st-pin-row { grid-template-columns: 1fr; } }

.st-actions { margin-top: 1rem; }

/* ══════════════════════════════════════════════
   TIER CARD v3 — Badge Effects
   ══════════════════════════════════════════════ */
.dh-tier-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.4rem;
    display: flex; align-items: stretch; gap: 1.3rem;
    position: relative; overflow: hidden;
}
.dh-tier-card::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 0% 50%, var(--tier-glow, rgba(0,255,65,0.03)) 0%, transparent 70%);
    pointer-events: none;
}

.tier-bg-iron     { --tier-glow: rgba(160,160,160,0.05); --tier-c: #aaa; --tier-c2: #888; }
.tier-bg-bronze   { --tier-glow: rgba(205,127,50,0.07); --tier-c: #cd7f32; --tier-c2: #a06020; }
.tier-bg-silver   { --tier-glow: rgba(192,192,192,0.06); --tier-c: #d0d0d0; --tier-c2: #999; }
.tier-bg-gold     { --tier-glow: rgba(255,215,0,0.09); --tier-c: #ffd700; --tier-c2: #daa520; }
.tier-bg-platinum { --tier-glow: rgba(200,200,255,0.07); --tier-c: #c8c8ff; --tier-c2: #9898dd; }
.tier-bg-diamond  { --tier-glow: rgba(130,220,255,0.10); --tier-c: #88eeff; --tier-c2: #44aacc; }

/* ── 배지 영역 ── */
.dtc-badge-area {
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.dtc-badge {
    position: relative;
    width: 62px; height: 62px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.5);
    border: 1.5px solid color-mix(in srgb, var(--tier-c) 35%, transparent);
    overflow: visible;
}

/* 글로우 후광 */
.dtc-badge-glow {
    position: absolute; inset: -8px;
    border-radius: 22px;
    background: radial-gradient(circle, color-mix(in srgb, var(--tier-c) 20%, transparent) 0%, transparent 70%);
    animation: badgePulse 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes badgePulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

/* 회전 링 */
.dtc-badge-ring {
    position: absolute; inset: -4px;
    border-radius: 20px;
    border: 1.5px solid transparent;
    border-top-color: var(--tier-c);
    border-right-color: color-mix(in srgb, var(--tier-c) 30%, transparent);
    animation: badgeRingSpin 6s linear infinite;
    pointer-events: none;
}
@keyframes badgeRingSpin { to { transform: rotate(360deg); } }

/* 아이콘 글자 */
.dtc-badge-icon {
    position: relative; z-index: 2;
    font-family: var(--font-mono);
    font-size: 1.35rem; font-weight: 900;
    color: var(--tier-c);
    text-shadow: 0 0 14px color-mix(in srgb, var(--tier-c) 50%, transparent);
    line-height: 1;
}

/* 골드 이상 특수 이펙트 */
.tier-bg-gold .dtc-badge-glow,
.tier-bg-platinum .dtc-badge-glow,
.tier-bg-diamond .dtc-badge-glow {
    animation: badgePulseStrong 2.5s ease-in-out infinite;
}
@keyframes badgePulseStrong {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.14); }
}
.tier-bg-gold .dtc-badge-ring { animation-duration: 4s; }
.tier-bg-diamond .dtc-badge-ring {
    animation-duration: 3s;
    border-top-color: #88eeff;
    border-right-color: rgba(136,238,255,0.4);
    border-bottom-color: rgba(136,238,255,0.15);
}
.tier-bg-diamond .dtc-badge {
    box-shadow: 0 0 24px rgba(136,238,255,0.12),
                inset 0 0 12px rgba(136,238,255,0.06);
}
.tier-bg-gold .dtc-badge {
    box-shadow: 0 0 20px rgba(255,215,0,0.1),
                inset 0 0 10px rgba(255,215,0,0.05);
}

/* ── 본문 ── */
.dtc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.dtc-top-row { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.dtc-info { display: flex; align-items: baseline; gap: 0.55rem; }
.dtc-eyebrow {
    font-family: var(--font-mono); font-size: 0.6rem;
    color: #3a6a3a; text-transform: uppercase; letter-spacing: 1.5px;
}
.dtc-tier-name {
    font-family: var(--font-mono); font-size: 1.05rem; font-weight: 800; letter-spacing: 1px;
    color: var(--tier-c);
}
.dtc-tier-name.tier-gold     { text-shadow: 0 0 10px rgba(255,215,0,0.3); }
.dtc-tier-name.tier-platinum { text-shadow: 0 0 8px rgba(200,200,255,0.25); }
.dtc-tier-name.tier-diamond  { text-shadow: 0 0 12px rgba(136,238,255,0.35); }

.dtc-score-chip {
    display: flex; align-items: center; gap: 0.4rem;
    background: rgba(0,255,65,0.04);
    border: 1px solid rgba(0,255,65,0.1);
    border-radius: 20px;
    padding: 0.25rem 0.7rem;
}
.dtc-score-label { font-family: var(--font-mono); font-size: 0.55rem; color: #4a7a4a; letter-spacing: 1px; }
.dtc-score-val { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 800; color: var(--green); }

/* ── 프로그레스 ── */
.dtc-progress-area { display: flex; flex-direction: column; gap: 0.4rem; }
.dtc-next-label {
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
    font-family: var(--font-mono); font-size: 0.68rem; color: #5a8a5a;
}
.dtc-next-label strong { color: #8ac88a; }
.dtc-need { color: var(--green); font-weight: 600; font-size: 0.65rem; }
.dtc-max-label { color: var(--green); gap: 0.3rem; justify-content: flex-start; }

.dtc-bar-wrap { display: flex; align-items: center; gap: 0.7rem; }
.dtc-bar { flex: 1; height: 5px; background: rgba(0,255,65,0.06); border-radius: 10px; overflow: hidden; }
.dtc-fill {
    height: 100%; border-radius: 10px;
    transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}
.dtc-fill.tier-fill-iron     { background: linear-gradient(90deg, #777, #aaa); }
.dtc-fill.tier-fill-bronze   { background: linear-gradient(90deg, #8a4c10, #cd7f32); }
.dtc-fill.tier-fill-silver   { background: linear-gradient(90deg, #7a7a7a, #d8d8d8); }
.dtc-fill.tier-fill-gold     { background: linear-gradient(90deg, #b8860b, #ffd700); box-shadow: 0 0 8px rgba(255,215,0,0.25); }
.dtc-fill.tier-fill-platinum { background: linear-gradient(90deg, #7878aa, #c8c8ff); box-shadow: 0 0 6px rgba(200,200,255,0.2); }
.dtc-fill.tier-fill-diamond  { background: linear-gradient(90deg, #3399bb, #88eeff); box-shadow: 0 0 8px rgba(136,238,255,0.3); }
.dtc-pct { font-family: var(--font-mono); font-size: 0.65rem; color: #4a7a4a; flex-shrink: 0; min-width: 30px; text-align: right; }

/* ── 등급 도트 ── */
.dtc-tier-path { display: flex; align-items: center; gap: 2px; }
.dtc-dot-group {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    flex: 1;
}
.dtc-path-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(0,255,65,0.06);
    border: 1px solid rgba(0,255,65,0.1);
    transition: all 0.4s;
}
.dtc-dot-label {
    font-family: var(--font-mono); font-size: 0.42rem; color: #2a4a2a;
    line-height: 1; letter-spacing: 0.5px;
}
.dtc-dot-group.done .dtc-path-dot {
    background: rgba(0,255,65,0.2); border-color: rgba(0,255,65,0.35);
}
.dtc-dot-group.done .dtc-dot-label { color: #4a7a4a; }
.dtc-dot-group.current .dtc-path-dot {
    background: var(--green); border-color: var(--green);
    box-shadow: 0 0 6px rgba(0,255,65,0.5);
    width: 9px; height: 9px;
}
.dtc-dot-group.current .dtc-dot-label { color: var(--green); font-weight: 600; }

@media (max-width: 640px) {
    .dh-tier-card { flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem; }
    .dtc-badge-area { align-self: center; }
    .dtc-top-row { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
    .dtc-score-chip { align-self: flex-start; }
    .wl-header { flex-direction: column; }
    .wl-balance-chip { align-self: flex-start; }
}

/* 컴팩트 검색 (헤더/푸터 없음) */
.dh-search-compact {
    padding: 0.55rem 0.7rem;
    margin-bottom: 1.2rem;
    background: rgba(0,255,65,0.02);
}
.dh-search-compact .dh-search-row { gap: 0.5rem; }
.dh-search-compact .dh-search-input { padding: 0.6rem 2.2rem 0.6rem 2.4rem; font-size: 0.84rem; }
.dh-search-compact .dh-search-btn { padding: 0.6rem 1rem; }

/* ── 검색 카드 반응형 ── */
@media (max-width: 480px) {
    .dh-search-card { padding: 0.9rem 0.9rem 0.75rem; }
    .dh-search-card-header { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
    .dh-search-btn { padding: 0.72rem 0.9rem; font-size: 0.78rem; }
    .dh-search-btn span { display: none; }
    .hist-search-btn span { display: none; }
    .dh-search-compact { padding: 0.45rem 0.5rem; }
    .dh-search-compact .dh-search-input { padding: 0.55rem 2rem 0.55rem 2.2rem; }
    .dh-stat { padding: 1rem 1.1rem; }
    .dh-stat-val { font-size: 1.3rem; }
    .dh-stat-main .dh-stat-val { font-size: 1.6rem; }
}

/* ── sell-link for empty sales CTA ── */
.sell-link { color: var(--orange) !important; }
.sell-link:hover { color: #ffcc44 !important; }

/* ── history page search SVG ── */
/* hist-search 위 영역에서 이미 정의됨 — 덮어쓰기 불필요 */
.hist-empty-state { padding: 3rem 0; }

/* ── td-title fix: long titles ── */
.td-title { word-break: break-word; overflow-wrap: anywhere; }

/* ── history tabs SVG ── */
.hist-tab { display: inline-flex; align-items: center; gap: 0.35rem; }
.hist-tab svg { flex-shrink: 0; opacity: 0.6; }
.hist-tab.active svg { opacity: 1; }

/* ── pg-header-label with SVG ── */
.pg-header-label {
    display: flex; align-items: center; gap: 0.35rem;
}
.pg-header-label svg { opacity: 0.4; }

/* ═══════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════ */
@media print {
    #matrixCanvas, .navbar, .nav-toggle, .footer,
    .skip-link, .dh-actions, .dh-search-row,
    .dh-quick, .td-nav, .td-action-btns, .td-card-cancel,
    .td-card-dispute, .td-copy, .hist-search-wrap { display: none !important; }

    body { background: #fff !important; color: #111 !important; }
    .page-wrapper { max-width: 100%; }
    .td-page, .main-container { max-width: 100%; }
    .flash { border: 1px solid #ccc; }
    .td-card { border: 1px solid #ddd !important; background: #fff !important; }
    .td-header, .td-info-strip { color: #111; }
    .td-stepper { filter: grayscale(1); }
    a { color: #111 !important; text-decoration: underline; }
}

/* ════════════════════════════════════════════════════
   AWAIT BANNER  —  빠른 메뉴 아래 수락 대기 알림
   ════════════════════════════════════════════════════ */
.dh-await-banner {
    margin-top: 1.2rem;
    background: #0c120a;
    border: 1px solid rgba(255,170,0,0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.dh-await-banner-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    background: rgba(255,170,0,0.04);
    border-bottom: 1px solid rgba(255,170,0,0.1);
}
.dh-await-banner-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dh-await-banner-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: #ffc840;
    letter-spacing: 0.04em;
}
.dh-await-banner-count {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    background: rgba(255,170,0,0.12);
    color: #ffc840;
    border: 1px solid rgba(255,170,0,0.22);
    border-radius: 20px;
    padding: 1px 9px;
    line-height: 1.8;
}
.dh-await-banner-list {
    display: flex;
    flex-direction: column;
}
.dh-await-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background 0.15s;
}
.dh-await-item:last-child { border-bottom: none; }
.dh-await-item:hover { background: rgba(255,170,0,0.05); }
.dh-await-item-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1;
}
.dh-await-item-role {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius);
    flex-shrink: 0;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.dh-await-item-buy  { background: rgba(100,180,240,0.08); color: #64b4f0; border: 1px solid rgba(100,180,240,0.18); }
.dh-await-item-sell { background: rgba(0,255,65,0.06);   color: #55dd55; border: 1px solid rgba(0,255,65,0.14); }
.dh-await-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0.15rem;
}
.dh-await-item-title {
    font-size: 0.84rem;
    font-weight: 500;
    color: #c0d8c0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dh-await-item-sub {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    color: #5a7a5a;
}
.dh-await-item-ticket {
    font-family: var(--font-mono);
    color: #4a7a4a;
    letter-spacing: 0.04em;
}
.dh-await-item-sep { color: #2a4a2a; }
.dh-await-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    flex-shrink: 0;
}
.dh-await-item-amount {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: #ffc840;
    white-space: nowrap;
}
.dh-await-item-action {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.66rem;
    font-weight: 600;
    color: #ffaa00;
    opacity: 0;
    transition: opacity 0.15s;
}
.dh-await-item:hover .dh-await-item-action { opacity: 1; }

@media (max-width: 480px) {
    .dh-await-banner { margin-top: 0.9rem; }
    .dh-await-item { padding: 0.65rem 0.8rem; }
    .dh-await-item-title { font-size: 0.8rem; }
    .dh-await-item-amount { font-size: 0.88rem; }
    .dh-await-item-action { opacity: 1; }
    .dh-await-item-sub span:last-child { display: none; }
    .dh-await-item-sep { display: none; }
}

/* ════════════════════════════════════════════════════
   ACTIVE TRADES PANEL  —  통합 진행중 거래 패널
   ════════════════════════════════════════════════════ */
.dh-active-panel {
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
    background: #0c120a;
    border: 1px solid rgba(0,255,65,0.15);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.dh-active-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    background: rgba(0,255,65,0.03);
    border-bottom: 1px solid rgba(0,255,65,0.08);
}
.dh-active-head-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.active-pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #00FF41;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(0,255,65,0.5);
    animation: activePulse 1.8s ease-out infinite;
}
@keyframes activePulse {
    0%   { box-shadow: 0 0 0 0 rgba(0,255,65,0.55); }
    70%  { box-shadow: 0 0 0 9px rgba(0,255,65,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,255,65,0); }
}
.dh-active-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: #00FF41;
    letter-spacing: 0.04em;
}
.dh-active-count {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    background: rgba(0,255,65,0.1);
    color: #00FF41;
    border: 1px solid rgba(0,255,65,0.22);
    border-radius: 20px;
    padding: 1px 9px;
    line-height: 1.8;
}
.dh-active-more {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.68rem;
    color: #5a8a5a;
    text-decoration: none;
    transition: color 0.15s;
}
.dh-active-more:hover { color: #00FF41; }

.dh-active-group { }
.dh-active-group-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.025);
}
.dh-group-action {
    color: #ffc840;
    background: rgba(255,200,64,0.04);
}
.dh-group-waiting {
    color: #5a8a5a;
    background: rgba(90,138,90,0.04);
    border-top: 1px solid rgba(255,255,255,0.03);
}
.dh-active-list {
    display: flex;
    flex-direction: column;
}

.dh-active-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 0.5rem 0.75rem;
    align-items: center;
    padding: 0.65rem 1rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(255,255,255,0.025);
    transition: background 0.15s;
}
.dh-active-row:last-child { border-bottom: none; }
.dh-active-row:hover { background: rgba(0,255,65,0.025); }

.dh-active-row-action {
    border-left: 2px solid rgba(255,200,64,0.4);
}
.dh-active-row-action:hover {
    border-left-color: rgba(255,200,64,0.7);
    background: rgba(255,200,64,0.03);
}
.dh-active-row-waiting {
    border-left: 2px solid transparent;
    opacity: 0.65;
}
.dh-active-row-waiting:hover { opacity: 0.85; }

.dar-role {
    display: inline-flex;
    align-items: center;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: var(--radius);
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}
.dar-role-buy  { background: rgba(100,180,240,0.08); color: #64b4f0; border: 1px solid rgba(100,180,240,0.18); }
.dar-role-sell { background: rgba(0,255,65,0.06);   color: #55dd55; border: 1px solid rgba(0,255,65,0.14); }

.dar-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0.1rem;
}
.dar-title {
    font-size: 0.82rem;
    color: #c0d8c0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dar-ticket {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: #4a7a4a;
    letter-spacing: 0.04em;
}
.dar-amount {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: #00FF41;
    white-space: nowrap;
}
.dar-badge {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.dar-badge-awaiting_accept {
    background: rgba(255,170,0,0.12);
    color: #ffc840;
    border: 1px solid rgba(255,170,0,0.25);
}
.dar-badge-pending {
    background: rgba(0,255,65,0.1);
    color: #00FF41;
    border: 1px solid rgba(0,255,65,0.22);
}
.dar-badge-funded {
    background: rgba(0,188,212,0.1);
    color: #00e5ff;
    border: 1px solid rgba(0,188,212,0.22);
}
.dar-badge-shipped {
    background: rgba(255,152,0,0.1);
    color: #ffaa00;
    border: 1px solid rgba(255,152,0,0.22);
}
.dar-badge-delivered {
    background: rgba(0,255,65,0.08);
    color: #66cc66;
    border: 1px solid rgba(0,255,65,0.18);
}
.dar-badge-disputed {
    background: rgba(255,68,68,0.12);
    color: #ff6666;
    border: 1px solid rgba(255,68,68,0.25);
}
.dar-badge-waiting {
    background: rgba(90,138,90,0.1);
    color: #6a9a6a;
    border: 1px solid rgba(90,138,90,0.2);
}

.dh-row-hidden { display: none !important; }

.dh-group-extra {
    font-family: var(--font-mono);
    font-size: 0.56rem;
    background: rgba(255,255,255,0.05);
    color: inherit;
    border-radius: 10px;
    padding: 1px 7px;
    margin-left: 0.25rem;
    opacity: 0.7;
}
.dh-show-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 100%;
    padding: 0.5rem;
    border: none;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255,255,255,0.04);
    color: #5a8a5a;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.dh-show-more-btn:hover {
    background: rgba(0,255,65,0.04);
    color: #00FF41;
}
.dh-show-more-btn.expanded {
    color: #5a8a5a;
}

/* ── 최근 완료 거래 패널 ── */
.dh-finished-panel {
    margin-top: 1rem;
    margin-bottom: 1.2rem;
    background: #0c120a;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.dh-finished-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: rgba(255,255,255,0.015);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.dh-finished-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: #6a9a6a;
    letter-spacing: 0.04em;
}
.dh-finished-list {
    display: flex;
    flex-direction: column;
}
.dh-finished-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 0.5rem 0.75rem;
    align-items: center;
    padding: 0.55rem 1rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    transition: background 0.15s;
    opacity: 0.55;
}
.dh-finished-row:last-child { border-bottom: none; }
.dh-finished-row:hover { opacity: 0.8; background: rgba(255,255,255,0.015); }
.dar-badge-completed {
    background: rgba(0,255,65,0.08);
    color: #55bb55;
    border: 1px solid rgba(0,255,65,0.18);
}
.dar-badge-refunded {
    background: rgba(255,152,0,0.08);
    color: #cc8833;
    border: 1px solid rgba(255,152,0,0.18);
}
.dar-badge-cancelled {
    background: rgba(100,100,100,0.08);
    color: #666;
    border: 1px solid rgba(100,100,100,0.18);
}

@media (max-width: 480px) {
    .dh-active-panel { margin-top: 0.9rem; }
    .dh-active-row { grid-template-columns: auto 1fr auto; gap: 0.4rem 0.6rem; padding: 0.55rem 0.8rem; }
    .dar-amount { display: none; }
    .dar-title { font-size: 0.78rem; }
    .dar-badge { font-size: 0.58rem; padding: 2px 8px; }
    .dh-active-group-label { font-size: 0.58rem; padding: 0.35rem 0.8rem; }
    .dh-finished-row { grid-template-columns: auto 1fr auto; }
    .dh-finished-row .dar-amount { display: none; }
}

/* ════════════════════════════════════════════════════
   AWAIT SECTION  —  수락 대기 카드 (대시보드) — legacy kept
   ════════════════════════════════════════════════════ */
.await-section {
    margin-bottom: 1.4rem;
}
.await-section-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
    padding: 0 0.1rem;
}
.await-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffc840;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.await-section-count {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    background: rgba(255,170,0,0.12);
    color: #ffc840;
    border: 1px solid rgba(255,170,0,0.25);
    border-radius: 20px;
    padding: 1px 8px;
}
.await-pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #ffaa00;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(255,170,0,0.5);
    animation: awaitPulse 1.8s ease-out infinite;
}
@keyframes awaitPulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,170,0,0.55); }
    70%  { box-shadow: 0 0 0 9px rgba(255,170,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,170,0,0); }
}

.await-card {
    position: relative;
    background: #0d130a;
    border: 1px solid rgba(255,170,0,0.28);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 0.6rem;
    transition: border-color 0.2s, transform 0.15s;
}
.await-card:hover {
    border-color: rgba(255,200,64,0.55);
    transform: translateY(-1px);
}
.await-card-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,170,0,0.06) 0%, transparent 60%);
    pointer-events: none;
}
.await-card-inner {
    padding: 1rem 1.1rem;
    position: relative;
}
.await-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}
.await-ticket {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #6a9a4a;
    letter-spacing: 0.05em;
}
.await-role {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.04em;
}
.await-role-buy  { background: rgba(100,180,240,0.12); color: #64b4f0; border: 1px solid rgba(100,180,240,0.2); }
.await-role-sell { background: rgba(0,255,65,0.08);   color: #55dd55; border: 1px solid rgba(0,255,65,0.18); }
.await-card-amount {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffc840;
    text-align: right;
}
.await-card-meta {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.await-card-title {
    font-size: 0.92rem;
    color: #c0d8c0;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.await-card-from {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: #7a9a7a;
    margin-bottom: 0.9rem;
}
.await-card-from strong { color: #a0c8a0; }
.await-card-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.72rem 1rem;
    background: rgba(255,170,0,0.1);
    border: 1px solid rgba(255,170,0,0.35);
    border-radius: var(--radius);
    color: #ffc840;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    box-sizing: border-box;
}
.await-card-btn:hover {
    background: rgba(255,170,0,0.18);
    border-color: rgba(255,200,64,0.6);
    color: #ffe080;
}

/* ════════════════════════════════════════════════════
   PARTY CARDS  —  거래 당사자 카드 (에스크로 상세)
   ════════════════════════════════════════════════════ */
.td-party-wrap {
    display: flex;
    gap: 0.6rem;
    align-items: stretch;
    padding: 0.9rem 0 0.6rem;
    margin-bottom: 0.1rem;
}
.td-party-card {
    flex: 1;
    min-width: 0;
    padding: 0.9rem 1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.td-party-buy  { border-color: rgba(100,180,240,0.18); background: rgba(100,180,240,0.035); }
.td-party-sell { border-color: rgba(0,255,65,0.13);   background: rgba(0,255,65,0.025); }
.td-party-role-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 8px 2px 6px;
    border-radius: 20px;
    width: fit-content;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}
.td-party-chip-buy  { background: rgba(100,180,240,0.1); color: #64b4f0; border: 1px solid rgba(100,180,240,0.22); }
.td-party-chip-sell { background: rgba(0,255,65,0.07);   color: #55dd55; border: 1px solid rgba(0,255,65,0.18); }
.td-party-alias {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    color: #d8f0d8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.td-party-username {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #5a8a5a;
    margin-bottom: 0.3rem;
}
.td-party-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.td-party-trust {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    color: #7aaa7a;
    background: rgba(0,255,65,0.06);
    border: 1px solid rgba(0,255,65,0.1);
    border-radius: 20px;
    padding: 2px 7px;
}
.td-party-tg {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: #4a8ab8;
    margin-top: 0.2rem;
}
.td-party-tg-none {
    font-size: 0.68rem;
    color: #3a5a3a;
    margin-top: 0.2rem;
}
.td-party-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 0.1rem;
    color: #2a4a2a;
}
@media (max-width: 400px) {
    .td-party-wrap { flex-direction: column; }
    .td-party-vs { display: none; }
    .td-party-alias { font-size: 0.85rem; }
}

/* ════════════════════════════════════════════════════
   ACCEPT BANNER  —  거래 수락/거절 폼 (에스크로 상세)
   ════════════════════════════════════════════════════ */
.td-accept-banner {
    position: relative;
    background: #0e1509;
    border: 1.5px solid rgba(255,170,0,0.4);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.1rem;
    animation: acceptBorderPulse 2.5s ease-in-out infinite;
}
@keyframes acceptBorderPulse {
    0%, 100% { border-color: rgba(255,170,0,0.4); }
    50%       { border-color: rgba(255,200,64,0.75); box-shadow: 0 0 18px rgba(255,170,0,0.12); }
}
.td-accept-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,170,0,0.07) 0%, transparent 55%);
    pointer-events: none;
}
.td-accept-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.2rem 0;
    font-size: 0.72rem;
    font-weight: 800;
    color: #ffc840;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.td-accept-pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #ffaa00;
    flex-shrink: 0;
    animation: awaitPulse 1.8s ease-out infinite;
}
.td-accept-label {}
.td-accept-body {
    padding: 0.9rem 1.2rem 1.2rem;
    position: relative;
}
.td-accept-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    gap: 0.5rem;
}
.td-accept-from {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: #9ab89a;
    flex-wrap: wrap;
}
.td-accept-from strong { color: #c8e0c8; font-size: 0.88rem; }
.td-accept-role-chip {
    font-size: 0.68rem;
    padding: 2px 7px;
    border-radius: 20px;
    background: rgba(255,170,0,0.1);
    border: 1px solid rgba(255,170,0,0.2);
    color: #ffc840;
}
.td-accept-amount {
    font-family: var(--font-mono);
    font-size: 1.55rem;
    font-weight: 700;
    color: #ffc840;
    white-space: nowrap;
    flex-shrink: 0;
}
.td-accept-desc {
    font-size: 0.82rem;
    color: #7a9a7a;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding: 0.7rem 0.9rem;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius);
    border-left: 3px solid rgba(255,170,0,0.3);
}
.td-accept-btns {
    display: flex;
    gap: 0.7rem;
    align-items: stretch;
}
.td-accept-btn-yes {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.2rem;
    background: rgba(0,255,65,0.1);
    border: 1.5px solid rgba(0,255,65,0.35);
    border-radius: var(--radius);
    color: #55dd55;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    letter-spacing: 0.02em;
}
.td-accept-btn-yes:hover {
    background: rgba(0,255,65,0.16);
    border-color: rgba(0,255,65,0.55);
    box-shadow: 0 0 12px rgba(0,255,65,0.12);
    color: #66ff66;
}
.td-accept-btn-no {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.2rem;
    background: rgba(220,53,69,0.07);
    border: 1.5px solid rgba(220,53,69,0.25);
    border-radius: var(--radius);
    color: #dd5566;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.td-accept-btn-no:hover {
    background: rgba(220,53,69,0.14);
    border-color: rgba(220,53,69,0.45);
}

/* ════════════════════════════════════════════════════
   HISTORY CARD LIST  —  거래내역 카드형 목록
   ════════════════════════════════════════════════════ */
.hc-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.hc-item {
    display: flex;
    align-items: stretch;
    background: #0b130b;
    border: 1px solid rgba(0,255,65,0.07);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s, background 0.18s, transform 0.12s;
    min-height: 80px;
}
.hc-item:hover {
    background: #0f180f;
    border-color: rgba(0,255,65,0.18);
    transform: translateX(2px);
}
.hc-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 46px;
    flex-shrink: 0;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.6rem 0;
}
.hc-side-buy {
    background: rgba(100,180,240,0.06);
    border-right: 2px solid rgba(100,180,240,0.22);
    color: #64b4f0;
}
.hc-side-sell {
    background: rgba(0,255,65,0.04);
    border-right: 2px solid rgba(0,255,65,0.2);
    color: #55dd55;
}
.hc-side svg { opacity: 0.85; }
.hc-body {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 0.85rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.25rem;
}
.hc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.hc-ticket {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #4a7a4a;
    letter-spacing: 0.05em;
}
.hc-date {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #3a5a3a;
}
.hc-title {
    font-size: 0.86rem;
    color: #b0d0b0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}
.hc-bottom {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}
.hc-partner {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: #6a8a6a;
}
.hc-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.75rem 0.85rem 0.75rem 0.5rem;
    flex-shrink: 0;
}
.hc-right .hc-date {
    margin-top: 0.05rem;
}
.hc-amount {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
}
.hc-amount-buy  { color: #64b4f0; }
.hc-amount-sell { color: var(--green); }
.hc-arrow { color: #2e4a2e; flex-shrink: 0; }
.hc-item:hover .hc-arrow { color: #4a8a4a; }

.hc-item-static {
    cursor: default; text-decoration: none; color: inherit;
}
.hc-item-static:hover { background: inherit; border-color: rgba(0,255,65,0.07); }

/* 모바일 최적화 */
@media (max-width: 480px) {
    .hc-item { min-height: 72px; }
    .hc-side { width: 38px; font-size: 0.55rem; }
    .hc-body { padding: 0.65rem 0.7rem; }
    .hc-title { font-size: 0.82rem; }
    .hc-amount { font-size: 0.84rem; }
    .hc-right { padding: 0.65rem 0.65rem 0.65rem 0.4rem; }
    .await-card-amount { font-size: 1.1rem; }
    .td-accept-amount { font-size: 1.25rem; }
    .td-accept-btns { flex-direction: column; }
    .td-accept-btn-no { width: 100%; }
    .await-section-head { flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════
   PARTNERS / NOTICES — CYBER v3
   ═══════════════════════════════════════════ */

/* -- 공용 히어로 -- */
.px-wrap, .nx-wrap { max-width: 1100px; margin: 0 auto; padding: 0 0 5rem; }
.nx-wrap-narrow { max-width: 740px; }

.px-hero, .nx-hero {
    position: relative;
    padding: 3rem 0 2.5rem;
    margin-bottom: 2.5rem;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,255,65,0.06);
}

.px-hero-scanline, .nx-hero-scanline {
    position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,255,65,0.015) 2px, rgba(0,255,65,0.015) 4px);
    animation: scanMove 8s linear infinite;
}
@keyframes scanMove { 0%{transform:translateY(0)} 100%{transform:translateY(4px)} }

.px-hero-grid-bg, .nx-hero-grid-bg {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(0,255,65,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,65,0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, black 30%, transparent 80%);
}

.px-hero-inner, .nx-hero-inner { position: relative; z-index: 1; text-align: center; }

.px-hero-tag, .nx-hero-tag {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.58rem; font-weight: 700;
    letter-spacing: 0.25em;
    color: rgba(0,255,65,0.6);
    margin-bottom: 1rem;
}
.px-tag-dot, .nx-tag-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #00FF41;
    box-shadow: 0 0 8px #00FF41, 0 0 20px rgba(0,255,65,0.3);
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.7)} }
.px-tag-line, .nx-tag-line {
    display: inline-block; width: 24px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,255,65,0.5), transparent);
}

.px-hero-title, .nx-hero-title {
    font-family: var(--font-mono);
    font-size: 2.8rem; font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 0.8rem;
}
.px-title-glitch, .nx-title-glitch {
    position: relative; display: inline-block;
    background: linear-gradient(180deg, #e0ffe0 0%, #00FF41 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.px-title-glitch::before, .nx-title-glitch::before,
.px-title-glitch::after, .nx-title-glitch::after {
    content: attr(data-text);
    position: absolute; top: 0; left: 0;
    background: linear-gradient(180deg, #e0ffe0 0%, #00FF41 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; opacity: 0;
}
.px-title-glitch::before, .nx-title-glitch::before { animation: glitch1 4s infinite; }
.px-title-glitch::after, .nx-title-glitch::after { animation: glitch2 4s infinite; }
@keyframes glitch1 {
    0%,92%,100%{opacity:0;transform:none}
    93%{opacity:0.8;transform:translate(-3px,-1px)}
    94%{opacity:0;transform:none}
    96%{opacity:0.6;transform:translate(2px,1px)}
    97%{opacity:0}
}
@keyframes glitch2 {
    0%,90%,100%{opacity:0;transform:none}
    91%{opacity:0.7;transform:translate(2px,2px);filter:hue-rotate(90deg)}
    92%{opacity:0}
    95%{opacity:0.5;transform:translate(-1px,-2px);filter:hue-rotate(-60deg)}
    96%{opacity:0}
}

.px-hero-sub, .nx-hero-sub {
    font-size: 0.9rem; color: #7a9a7a; line-height: 1.7;
}
.px-typed-prefix, .nx-typed-prefix {
    font-family: var(--font-mono);
    font-size: 0.72rem; color: #00FF41;
    margin-right: 0.5rem; opacity: 0.7;
}
/* 히어로 센터 정렬 */
.px-hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 히어로 스탯 + 버튼 행 */
.px-hero-row {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.6rem;
}

.px-hero-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0.55rem 1.2rem;
    border: 1px solid rgba(0,255,65,0.12);
    border-radius: 30px;
    background: rgba(0,255,65,0.03);
}
.px-hs-num {
    font-family: var(--font-mono);
    font-size: 1.4rem; font-weight: 800;
    color: #4ddd6a;
    line-height: 1;
    text-shadow: 0 0 8px rgba(77,221,106,0.35);
}
.px-hs-label {
    font-family: var(--font-kr);
    font-size: 0.72rem; font-weight: 600;
    color: rgba(150,200,150,0.55);
    letter-spacing: 0.02em;
}

/* 제휴 문의 버튼 */
.px-inquiry-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0.55rem 1.3rem;
    font-family: var(--font-kr);
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #2aabee 0%, #1a8cc4 60%, #0e6fa3 100%);
    border-radius: 30px;
    box-shadow: 0 0 0 1px rgba(42,171,238,0.15),
                0 4px 20px rgba(42,171,238,0.25);
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}
.px-inquiry-btn::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14) 50%, transparent);
    transform: translateX(-100%);
    transition: transform 0.55s ease;
}
.px-inquiry-btn:hover::before { transform: translateX(100%); }
.px-inquiry-btn:hover {
    background: linear-gradient(135deg, #3dbdf5 0%, #229ed9 60%, #1688c0 100%);
    box-shadow: 0 0 0 1px rgba(42,171,238,0.25),
                0 8px 30px rgba(42,171,238,0.4);
    transform: translateY(-2px);
}
.px-inquiry-btn svg { flex-shrink: 0; position: relative; z-index: 1; }
.px-inquiry-arrow { opacity: 0.7; }

/* -- 공용 코너 장식 -- */
.px-corner {
    position: absolute; width: 14px; height: 14px; pointer-events: none;
    opacity: 0.3; transition: opacity 0.3s;
}
.px-card:hover .px-corner, .nd3-card:hover .px-corner { opacity: 0.7; }
.px-corner-tl { top: 6px; left: 6px; border-top: 1px solid #00FF41; border-left: 1px solid #00FF41; }
.px-corner-tr { top: 6px; right: 6px; border-top: 1px solid #00FF41; border-right: 1px solid #00FF41; }
.px-corner-bl { bottom: 6px; left: 6px; border-bottom: 1px solid #00FF41; border-left: 1px solid #00FF41; }
.px-corner-br { bottom: 6px; right: 6px; border-bottom: 1px solid #00FF41; border-right: 1px solid #00FF41; }

/* -- 공용 빈 상태 -- */
.px-empty {
    text-align: center; padding: 4rem 1rem;
    border: 1px dashed rgba(0,255,65,0.1);
    border-radius: var(--radius-lg);
    background: rgba(0,255,65,0.01);
}
.px-empty-icon { color: rgba(0,255,65,0.2); margin-bottom: 1rem; }
.px-empty-title {
    font-family: var(--font-mono);
    font-size: 0.9rem; font-weight: 700;
    color: #3a5a3a; letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}
.px-empty-sub { font-size: 0.8rem; color: #3a5a3a; }


/* ══════════════════════════════════════════════
   PARTNER CARDS v9 — 참고사진 구조 정밀 매칭
   ══════════════════════════════════════════════ */
/* ══ 파트너 카드 리스트 — 2열 가로형 그리드 ══ */
.pc-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 820px;
    margin: 0 auto;
}

/* ── 카드 본체 — 다크 + 레드 테두리 ── */
.pc-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: linear-gradient(145deg, #0d0a0a 0%, #0b0909 50%, #0c0a0a 100%);
    border: 1px solid rgba(255,60,60,0.28);
    border-top: 1px solid rgba(255,80,80,0.35);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    box-shadow:
        0 4px 20px rgba(0,0,0,0.55),
        0 0 12px rgba(255,40,40,0.04);
    clip-path: polygon(
        0 0,
        calc(100% - 12px) 0,
        100% 12px,
        100% 100%,
        12px 100%,
        0 calc(100% - 12px)
    );
}
.pc-card::before {
    content: '';
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(255,60,60,0.03) 0%, transparent 40%);
}
.pc-card::after {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 16px; height: 16px; z-index: 2; pointer-events: none;
    background: linear-gradient(225deg, rgba(255,80,80,0.18) 0%, transparent 70%);
}
.pc-card:hover {
    border-color: rgba(255,60,60,0.45);
    border-top-color: rgba(255,80,80,0.55);
    box-shadow:
        0 0 18px rgba(255,40,40,0.1),
        0 8px 28px rgba(0,0,0,0.65);
    transform: translateY(-2px);
}

/* ── 왼쪽: 이미지 영역 — 레드 라인 구분 ── */
.pc-thumb {
    flex-shrink: 0;
    width: 140px;
    position: relative;
    overflow: hidden;
    background: #080606;
    border-right: 2px solid rgba(255,60,60,0.3);
    box-shadow: 2px 0 10px rgba(255,40,40,0.08);
}
.pc-thumb-scan {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background:
        repeating-linear-gradient(to bottom,
            transparent 0px, transparent 3px,
            rgba(0,0,0,0.05) 3px, rgba(0,0,0,0.05) 4px);
}
.pc-thumb img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.4s ease, filter 0.3s;
    filter: brightness(0.85) saturate(1.1);
}
.pc-card:hover .pc-thumb img {
    transform: scale(1.04);
    filter: brightness(0.92) saturate(1.2);
}
.pc-card:hover .pc-thumb {
    border-right-color: rgba(255,60,60,0.5);
    box-shadow: 2px 0 16px rgba(255,40,40,0.14);
}
.pc-thumb-fb {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    font-size: 3rem; font-weight: 900;
    color: rgba(255,80,80,0.1);
    background: radial-gradient(ellipse at center, #140a0a 0%, #080606 100%);
    text-shadow: 0 0 30px rgba(255,60,60,0.2);
}

/* ── 오른쪽 패널: 정보+버튼 ── */
.pc-body {
    flex: 1; min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.65rem 0.7rem 0;
    position: relative; z-index: 2;
}

/* 업체명 — 밝은 화이트 + 가운데 + 구분선 */
.pc-name {
    font-family: var(--font-kr);
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.02em;
    line-height: 1.3;
    padding-bottom: 0.45rem;
    margin-bottom: 0.45rem;
    width: 100%;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    border-bottom: 1px solid rgba(255,60,60,0.12);
}

/* 보증금 — 블루+화이트 연한 그라데이션 */
.pc-deposit {
    font-family: var(--font-mono);
    font-size: 1rem; font-weight: 900;
    margin-bottom: 0.35rem;
    text-align: center;
}
.pc-deposit .dsp-inner {
    display: inline-flex;
    align-items: baseline;
    gap: 0; line-height: 1;
    filter: none !important;
    animation: none !important;
}
.pc-deposit .dsp-digit {
    font-size: 1.5rem;
    color: #c0dfff !important;
    background: linear-gradient(180deg, #ffffff 0%, #a0ccff 50%, #70aaee 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: none !important;
}
.pc-deposit .dsp-comma {
    font-size: 0.92rem;
    color: #a0ccff !important;
    background: linear-gradient(180deg, #ffffff, #80bbff) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: none !important;
}
.pc-deposit .dsp-unit {
    font-size: 0.72rem; font-weight: 800;
    letter-spacing: 0.06em;
    padding-left: 5px; padding-bottom: 0.06em;
    color: rgba(160,200,255,0.6) !important;
    -webkit-text-fill-color: rgba(160,200,255,0.6) !important;
    background: none !important;
    text-shadow: none !important;
}
.pc-deposit .dsp-text {
    color: #c0dfff !important;
    font-size: 1.1rem;
    background: linear-gradient(180deg, #ffffff, #80bbff) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: none !important;
}

/* 메타 아이콘 행 — 가운데 */
.pc-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin-bottom: 0.45rem;
}
.pc-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-kr);
    font-size: 0.6rem; font-weight: 600;
    color: rgba(200,180,180,0.4);
    letter-spacing: 0.02em;
}
.pc-meta-item svg {
    opacity: 0.4; flex-shrink: 0;
    stroke: rgba(200,180,180,0.45);
}

/* 버튼 행 — 가운데 */
.pc-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    width: 100%;
    margin-top: auto;
    padding-bottom: 0.65rem;
}

/* ══════════════════════════════════════════════
   LED 전광판 디스플레이 (Green Neon LED Matrix)
   ══════════════════════════════════════════════ */
.dsp-board {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    background: linear-gradient(180deg, #020a04 0%, #010802 50%, #010601 100%);
    border: 1.5px solid rgba(0,255,65,0.18);
    border-radius: 8px;
    padding: 8px 14px 9px;
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 2px 12px rgba(0,0,0,0.85),
        inset 0 0 30px rgba(0,0,0,0.6),
        0 0 20px rgba(0,255,65,0.06),
        0 4px 16px rgba(0,0,0,0.5);
    animation: dspFlicker 6s ease-in-out infinite;
}
.dsp-board::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle 1px at 3px 3px, rgba(0,255,65,0.03) 1px, transparent 1px);
    background-size: 5px 5px;
    pointer-events: none;
    z-index: 1;
    border-radius: 8px;
}
.dsp-board::after {
    content: '';
    position: absolute; left: 0; right: 0; top: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(0,255,65,0.025) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}
.dsp-inner {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    position: relative;
    z-index: 4;
    line-height: 1;
}
.dsp-digit {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 900;
    color: #00ff41;
    letter-spacing: 0.02em;
    text-shadow:
        0 0 2px #00ff41,
        0 0 6px rgba(0,255,65,0.95),
        0 0 14px rgba(0,255,65,0.7),
        0 0 30px rgba(0,255,65,0.4),
        0 0 60px rgba(0,255,65,0.15);
    display: inline-block;
    min-width: 0.65em;
    text-align: center;
}
.dsp-comma {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 900;
    color: rgba(0,255,65,0.4);
    text-shadow: 0 0 4px rgba(0,255,65,0.25);
    display: inline-block;
    min-width: 0.3em;
    text-align: center;
    align-self: flex-end;
    padding-bottom: 0.06em;
}
.dsp-unit {
    font-family: var(--font-mono);
    font-size: 0.52rem;
    font-weight: 700;
    color: rgba(0,255,65,0.3);
    letter-spacing: 0.06em;
    align-self: flex-end;
    padding-bottom: 0.14em;
    padding-left: 4px;
    text-shadow: 0 0 4px rgba(0,255,65,0.15);
}
.dsp-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: #00ff41;
    letter-spacing: 0.04em;
    text-shadow:
        0 0 3px #00ff41,
        0 0 10px rgba(0,255,65,0.8),
        0 0 22px rgba(0,255,65,0.45);
    display: inline-block;
    position: relative;
    z-index: 2;
}
@keyframes dspFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.97; }
    85% { opacity: 1; }
    88% { opacity: 0.92; }
    90% { opacity: 1; }
    93% { opacity: 0.88; }
    95% { opacity: 1; }
}

/* ── 버튼 행 ── */
.pc-row-btns td { padding: 0; height: 42px; background: transparent !important; }
.pc-btn-cell {
    width: 50%; text-align: center; vertical-align: middle;
    border-right: 1px solid rgba(255,255,255,0.05);
    position: relative;
}
.pc-btn-cell:last-child { border-right: none; }

/* 상세보기 — 레드 톤 고스트 박스 */
.pc-btn-detail {
    display: flex; align-items: center; justify-content: center;
    height: 32px; padding: 0 10px;
    font-family: var(--font-kr);
    font-size: 0.68rem; font-weight: 700;
    color: rgba(255,180,180,0.7);
    background: transparent;
    border: 1px solid rgba(255,60,60,0.2);
    cursor: pointer;
    transition: all 0.25s;
    letter-spacing: 0.04em;
    clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}
.pc-btn-detail:hover {
    color: #fff;
    background: rgba(255,60,60,0.08);
    border-color: rgba(255,60,60,0.45);
}

/* 문의하기 — 레드 톤 고스트 박스 */
.pc-btn-go {
    display: flex; align-items: center; justify-content: center;
    height: 32px; padding: 0 10px;
    font-family: var(--font-kr);
    font-size: 0.68rem; font-weight: 700;
    color: rgba(255,180,180,0.7);
    text-decoration: none;
    background: transparent;
    border: 1px solid rgba(255,60,60,0.2);
    transition: all 0.25s;
    letter-spacing: 0.04em;
    clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}
.pc-btn-go:hover {
    color: #fff;
    background: rgba(255,60,60,0.08);
    border-color: rgba(255,60,60,0.45);
}

.pc-btn-none {
    display: flex; align-items: center; justify-content: center;
    height: 32px; padding: 0 8px;
    font-family: var(--font-kr);
    font-size: 0.62rem; font-weight: 600;
    color: rgba(120,100,100,0.25);
    background: transparent;
    border: 1px solid rgba(120,100,100,0.1);
}

/* 레거시 호환 */
.pc-label { display: none; }
.pc-label-gold { display: none; }
.pc-label-deposit { display: none; }
.pc-info-row { display: none; }
.pc-label-inner { display: none; }
.pc-label-text { display: none; }
.pc-vsep { display: none; }
.pc-value { display: none; }
.pc-right { display: none; }
.pc-info { display: none; }

/* ══════════════════════════════════════════════
   파트너 상세 모달 — Clean Neon v2
   ══════════════════════════════════════════════ */
/* ══ 파트너 상세 모달 — 확장 카드 패널 v2 ══ */
.pm-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s;
}
.pm-overlay.pm-open { opacity: 1; pointer-events: auto; }
.pm-overlay.pm-open .pm-panel { transform: translateY(0) scale(1); opacity: 1; }

/* ── 패널 본체 — 카드와 동일한 베벨+레드 ── */
.pm-panel {
    position: relative;
    width: 100%; max-width: 440px;
    max-height: 90vh; overflow-y: auto;
    background: linear-gradient(160deg, #0d0a0a 0%, #0b0808 60%, #0c0909 100%);
    border: 1px solid rgba(255,60,60,0.25);
    border-top: 1px solid rgba(255,80,80,0.35);
    transform: translateY(20px) scale(0.97);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(.22,.61,.36,1), opacity 0.25s;
    box-shadow:
        0 24px 60px rgba(0,0,0,0.7),
        0 0 30px rgba(255,40,40,0.05);
    clip-path: polygon(
        0 0,
        calc(100% - 16px) 0,
        100% 16px,
        100% 100%,
        16px 100%,
        0 calc(100% - 16px)
    );
}
.pm-panel::before {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 22px; height: 22px; z-index: 3; pointer-events: none;
    background: linear-gradient(225deg, rgba(255,80,80,0.2) 0%, transparent 70%);
}
.pm-panel::-webkit-scrollbar { width: 3px; }
.pm-panel::-webkit-scrollbar-track { background: transparent; }
.pm-panel::-webkit-scrollbar-thumb { background: rgba(255,60,60,0.12); border-radius: 4px; }

/* 닫기 X */
.pm-x {
    position: absolute; top: 10px; right: 22px; z-index: 20;
    width: 28px; height: 28px;
    background: none; border: none;
    color: rgba(255,255,255,0.4);
    font-size: 1.5rem; font-weight: 300; line-height: 1;
    cursor: pointer; transition: color 0.2s;
}
.pm-x:hover { color: #ff5555; }

/* ── 홍보 이미지 — 크게 가운데 ── */
.pm-banner {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background: #080606;
    border-bottom: 2px solid rgba(255,60,60,0.2);
}
.pm-banner img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    filter: brightness(0.9) saturate(1.05);
}
.pm-banner-fb {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    font-size: 4rem; font-weight: 900;
    color: rgba(255,60,60,0.06);
    background: radial-gradient(ellipse at 50% 40%, #140a0a 0%, #0a0707 100%);
}

/* ── 업체명 + 보증금 섹션 ── */
.pm-info-section {
    padding: 1rem 1.3rem;
    text-align: center;
}
.pm-title {
    font-family: var(--font-kr);
    font-size: 1.25rem; font-weight: 900;
    color: #ffffff;
    margin: 0 0 0.6rem;
    line-height: 1.3;
}
.pm-divider {
    height: 1px;
    margin: 0 auto 0.6rem;
    max-width: 80px;
    background: linear-gradient(90deg, transparent, rgba(255,60,60,0.3), transparent);
}
/* 보증금 — 블루화이트 그라데이션 */
.pm-amount {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    line-height: 1;
}
.pm-amount .dsp-digit {
    font-size: 1.8rem;
    min-width: 0.58em;
    color: #c0dfff !important;
    background: linear-gradient(180deg, #ffffff 0%, #a0ccff 50%, #70aaee 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: none !important;
}
.pm-amount .dsp-comma {
    font-size: 1.1rem;
    color: #a0ccff !important;
    background: linear-gradient(180deg, #ffffff, #80bbff) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: none !important;
}
.pm-amount .dsp-unit {
    font-size: 0.75rem; font-weight: 800;
    padding-left: 5px; padding-bottom: 0.08em;
    letter-spacing: 0.06em;
    color: rgba(160,200,255,0.55) !important;
    -webkit-text-fill-color: rgba(160,200,255,0.55) !important;
    background: none !important;
    text-shadow: none !important;
}
.pm-amount .dsp-text {
    font-size: 1.2rem;
    color: #c0dfff !important;
    background: linear-gradient(180deg, #ffffff, #80bbff) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: none !important;
}

/* ── 소개 콘텐츠 ── */
.pm-content {
    padding: 0 1.3rem 1rem;
}
.pm-content-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-kr);
    font-size: 0.62rem; font-weight: 700;
    color: rgba(255,140,140,0.5);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.pm-content-label svg { opacity: 0.45; flex-shrink: 0; }
.pm-desc {
    font-family: var(--font-kr);
    font-size: 0.85rem;
    color: rgba(230,220,220,0.75);
    line-height: 1.85;
    margin: 0;
    word-break: break-word;
    padding: 0.75rem 0.9rem;
    background: rgba(255,255,255,0.015);
    border: 1px solid rgba(255,60,60,0.08);
    border-left: 2px solid rgba(255,60,60,0.2);
    border-radius: 4px;
}

/* ── 하단 액션 ── */
.pm-foot {
    padding: 0 1.3rem 1.2rem;
}
.pm-action-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 12px 1rem;
    font-family: var(--font-kr);
    font-size: 0.82rem; font-weight: 700;
    color: #fff; text-decoration: none;
    background: linear-gradient(135deg, #2aabee 0%, #1a8cc4 60%, #0e6fa3 100%);
    border: none;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    transition: all 0.25s;
    position: relative; overflow: hidden;
}
.pm-action-btn:hover {
    background: linear-gradient(135deg, #3dbdf5 0%, #229ed9 60%, #1688c0 100%);
    box-shadow: 0 4px 20px rgba(42,171,238,0.3);
}
.pm-action-btn svg { flex-shrink: 0; }

/* 레거시 호환 숨김 */
.pm-sec, .pm-sec-label, .pm-sec-label-neon, .pm-sec-deposit,
.pm-badge, .pm-modal, .pm-hero, .pm-body, .pm-close,
.pm-name, .pm-deposit-card, .pm-deposit-tag, .pm-desc-wrap,
.pm-desc-label, .pm-tg-btn, .pm-deposit-display,
.pm-avatar, .pm-avatar-fb, .pm-head, .pm-headline,
.pm-tags, .pm-tag, .pm-foot-sep,
.pm-img-area, .pm-img-fb, .pm-hero-overlay { display: none; }

/* 정보 카드 (2열) - 레거시 호환 */
.pm-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 1.3rem;
}
.pm-info-item {
    background: rgba(0,255,65,0.02);
    border: 1px solid rgba(0,255,65,0.07);
    border-radius: 12px;
    padding: 14px 10px 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pm-info-item::before {
    content: '';
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 32px; height: 2px;
    background: rgba(0,255,65,0.2);
    border-radius: 0 0 2px 2px;
}
.pm-info-gold {
    background: rgba(0,255,65,0.015);
    border-color: rgba(0,255,65,0.07);
}
.pm-info-gold::before {
    background: rgba(0,255,65,0.2);
}

.pm-info-icon {
    width: 34px; height: 34px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,255,65,0.04);
    border: 1px solid rgba(0,255,65,0.08);
    color: #4ae67a;
    margin: 0 auto 8px;
}
.pm-info-icon-gold {
    background: rgba(0,255,65,0.04);
    border-color: rgba(0,255,65,0.08);
    color: #4ae67a;
}
.pm-info-key {
    display: block;
    font-family: var(--font-kr);
    font-size: 0.56rem; font-weight: 700;
    color: rgba(150,180,150,0.4);
    margin-bottom: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.pm-info-val {
    display: block;
    font-family: var(--font-kr);
    font-size: 1.05rem; font-weight: 900;
    color: #ffffff;
}
.pm-info-code {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    color: #00ff41;
    letter-spacing: 0.05em;
    text-shadow:
        0 0 4px rgba(0,255,65,0.8),
        0 0 14px rgba(0,255,65,0.5),
        0 0 30px rgba(0,255,65,0.2);
}
.pm-info-gold .pm-info-key { color: rgba(150,180,150,0.4); }

/* ── 모달 보증금 전광판 패널 ── */
.pm-deposit-panel {
    background: rgba(0,255,65,0.015);
    border: 1px solid rgba(0,255,65,0.08);
    border-radius: 14px;
    padding: 16px 18px 18px;
    margin-top: 0.5rem;
    margin-bottom: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}
.pm-deposit-panel::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,255,65,0.2) 50%, transparent);
}
.pm-deposit-panel::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(0,255,65,0.02) 0%, transparent 65%);
    pointer-events: none;
}
.pm-deposit-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.52rem;
    font-weight: 700;
    color: rgba(0,255,65,0.35);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.pm-deposit-label svg { stroke: rgba(0,255,65,0.35); flex-shrink: 0; }

/* 모달 전용 대형 보드 */
.dsp-board-lg {
    padding: 13px 26px 15px;
    border-radius: 10px;
    border-color: rgba(0,255,65,0.22);
    box-shadow:
        inset 0 2px 14px rgba(0,0,0,0.85),
        inset 0 0 35px rgba(0,0,0,0.6),
        0 0 30px rgba(0,255,65,0.08),
        0 6px 20px rgba(0,0,0,0.5);
}
.dsp-board-lg .dsp-digit {
    font-size: 1.7rem;
    min-width: 0.65em;
    text-shadow:
        0 0 3px #00ff41,
        0 0 8px rgba(0,255,65,0.95),
        0 0 20px rgba(0,255,65,0.7),
        0 0 45px rgba(0,255,65,0.35),
        0 0 80px rgba(0,255,65,0.12);
}
.dsp-board-lg .dsp-comma {
    font-size: 1.15rem;
    padding-bottom: 0.1em;
    color: rgba(0,255,65,0.35);
}
.dsp-board-lg .dsp-unit {
    font-size: 0.68rem;
    padding-bottom: 0.2em;
    padding-left: 5px;
}
.dsp-board-lg .dsp-text { font-size: 1.2rem; }

/* ── 모달 업체명 정보 행 ── */
.pm-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,255,65,0.015);
    border: 1px solid rgba(0,255,65,0.06);
    border-radius: 12px;
    padding: 13px 16px;
    margin-bottom: 1.1rem;
}
.pm-info-row .pm-info-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
    background: rgba(0,255,65,0.04);
    border: 1px solid rgba(0,255,65,0.08);
    color: #4ae67a;
    display: flex; align-items: center; justify-content: center;
}
.pm-info-row-label {
    font-family: var(--font-kr);
    font-size: 0.62rem;
    font-weight: 700;
    color: rgba(150,180,150,0.4);
    letter-spacing: 0.04em;
    flex-shrink: 0;
}
.pm-info-row-val {
    font-family: var(--font-kr);
    font-size: 1.02rem;
    font-weight: 900;
    color: #ffffff;
    margin-left: auto;
    text-align: right;
    word-break: break-all;
}

/* 텔레그램 버튼 */
.pm-actions { margin-top: 0; }
.pm-tg-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 13px 1.2rem;
    font-family: var(--font-kr);
    font-size: 0.85rem; font-weight: 700;
    color: #fff; text-decoration: none;
    background: linear-gradient(135deg, #2aabee 0%, #1a8cc4 60%, #0e6fa3 100%);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(42,171,238,0.18);
    transition: all 0.25s;
    position: relative; overflow: hidden;
}
.pm-tg-btn::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.pm-tg-btn:hover::before { transform: translateX(100%); }
.pm-tg-btn:hover {
    background: linear-gradient(135deg, #3dbdf5 0%, #229ed9 60%, #1688c0 100%);
    box-shadow: 0 6px 24px rgba(42,171,238,0.35);
    transform: translateY(-1px);
}
.pm-tg-btn svg { flex-shrink: 0; position: relative; z-index: 1; }

/* ══════════════════════════════════════════════
   NOTICE CARDS v5
   ══════════════════════════════════════════════ */
.nc-section { margin-bottom: 2.5rem; }

.nc-sec-head {
    display: flex; align-items: center; gap: 0.6rem;
    margin-bottom: 1.1rem;
}
.nc-sec-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.nc-dot-pin { background: #00FF41; box-shadow: 0 0 8px rgba(0,255,65,0.6); }
.nc-dot-all { background: #3a6a3a; }
.nc-sec-label {
    font-family: var(--font-mono);
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.1em; color: #b0c8b0;
    text-transform: uppercase;
}
.nc-sec-count {
    font-family: var(--font-mono);
    font-size: 0.6rem; font-weight: 700;
    color: #00FF41; background: rgba(0,255,65,0.08);
    border: 1px solid rgba(0,255,65,0.2);
    padding: 0.12rem 0.5rem; border-radius: 12px;
}
.nc-sec-line {
    flex: 1; height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06), transparent);
}

/* ── 공지 뱃지 공통 ── */
.nc-badge {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.6rem; font-weight: 800;
    letter-spacing: 0.04em;
    border-radius: 5px;
    padding: 0.2rem 0.55rem;
    white-space: nowrap;
}
.nc-badge-pin {
    color: #ff9f43;
    background: rgba(255,159,67,0.12);
    border: 1px solid rgba(255,159,67,0.35);
    box-shadow: 0 0 8px rgba(255,159,67,0.15);
}
.nc-badge-notice {
    color: #ff6b6b;
    background: rgba(255,107,107,0.1);
    border: 1px solid rgba(255,107,107,0.3);
    box-shadow: 0 0 8px rgba(255,107,107,0.12);
}

/* ── 공지 공용 메타 ── */
.nc-author {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.78rem; font-weight: 600;
    color: rgba(190,210,190,0.6);
}
.nc-author svg { stroke: rgba(190,210,190,0.5); flex-shrink: 0; }
.nc-date {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: rgba(160,185,160,0.45);
}
.nc-date svg { stroke: rgba(160,185,160,0.4); flex-shrink: 0; }

/* ── 고정 공지 리스트 ── */
.nc-pin-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.nc-pin-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0 1.2rem;
    height: 56px;
    background: linear-gradient(90deg, rgba(255,159,67,0.045) 0%, transparent 50%);
    border: 1px solid rgba(255,159,67,0.14);
    border-left: 3px solid rgba(255,159,67,0.55);
    border-radius: 8px;
    text-decoration: none; color: inherit;
    transition: border-color 0.2s, background 0.2s;
}
.nc-pin-row:hover {
    border-color: rgba(255,159,67,0.3);
    border-left-color: rgba(255,159,67,0.8);
    background: linear-gradient(90deg, rgba(255,159,67,0.07) 0%, transparent 50%);
}
.nc-pin-row .nc-badge { flex-shrink: 0; }
.nc-pin-title {
    flex: 1; min-width: 0;
    font-size: 0.95rem; font-weight: 700;
    color: #f0ece4;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: color 0.15s;
}
.nc-pin-row:hover .nc-pin-title { color: #fff; }
.nc-pin-right {
    flex-shrink: 0;
    display: flex; align-items: center; gap: 1rem;
}
.nc-pin-right .nc-author { color: rgba(220,190,150,0.6); }
.nc-pin-right .nc-author svg { stroke: rgba(220,190,150,0.5); }
.nc-pin-right .nc-date   { color: rgba(220,190,150,0.45); }
.nc-pin-right .nc-date svg { stroke: rgba(220,190,150,0.4); }

/* ── 일반 공지 리스트 ── */
.nc-list {
    display: flex; flex-direction: column;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    overflow: hidden;
    background: #090e09;
}
.nc-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0 1.2rem;
    height: 56px;
    text-decoration: none; color: inherit;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s;
}
.nc-row:last-child { border-bottom: none; }
.nc-row:hover { background: rgba(255,107,107,0.025); }
.nc-row .nc-badge { flex-shrink: 0; }
.nc-row-title {
    flex: 1; min-width: 0;
    font-size: 0.95rem; font-weight: 700;
    color: #dde8dd;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: color 0.15s;
}
.nc-row:hover .nc-row-title { color: #fff; }
.nc-row-right {
    flex-shrink: 0;
    display: flex; align-items: center; gap: 1rem;
}


/* ═══ NOTICE DETAIL v3 ═══ */
.nd3-back { margin-bottom: 1.5rem; }
.nd3-back-link {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-size: 0.78rem; color: #5a8a5a;
    text-decoration: none; transition: color 0.2s, gap 0.2s;
}
.nd3-back-link:hover { color: #00FF41; gap: 0.65rem; }

.nd3-card {
    position: relative;
    background: #040804;
    border: 1px solid rgba(0,255,65,0.08);
    border-radius: 16px;
    padding: 2.2rem 2.2rem;
    overflow: hidden;
    transition: border-color 0.3s;
}
.nd3-card:hover { border-color: rgba(0,255,65,0.15); }

.nd3-top-glow {
    position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0,255,65,0.25), transparent);
}
.nd3-glow-pin {
    height: 3px;
    background: linear-gradient(90deg, transparent, #00FF41 40%, rgba(0,255,65,0.4) 70%, transparent);
    box-shadow: 0 0 12px rgba(0,255,65,0.3);
}

.nd3-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 0.75rem; margin-bottom: 1.4rem; flex-wrap: wrap;
}
.nd3-badges { display: flex; align-items: center; gap: 0.5rem; }
.nd3-badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-family: var(--font-mono);
    font-size: 0.58rem; font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.22rem 0.6rem; border-radius: 4px;
}
.nd3-badge-pin {
    color: #00FF41; background: rgba(0,255,65,0.08);
    border: 1px solid rgba(0,255,65,0.2);
    text-shadow: 0 0 6px rgba(0,255,65,0.3);
}
.nd3-badge-sys {
    color: #5a8a5a; background: rgba(0,255,65,0.03);
    border: 1px solid rgba(0,255,65,0.1);
}
.nd3-date {
    display: flex; align-items: center; gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.7rem; color: #4a6a4a;
}

.nd3-title {
    font-family: var(--font-mono);
    font-size: 1.5rem; font-weight: 800;
    color: #d0f0d0; line-height: 1.45;
    letter-spacing: -0.3px; margin-bottom: 1.6rem;
}

/* 공지 상세 이미지 */
.nd3-image-section {
    margin-bottom: 1.8rem;
}
.nd3-img-label {
    display: flex; align-items: center; gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.58rem; font-weight: 700;
    letter-spacing: 0.15em;
    color: rgba(0,255,65,0.45);
    text-transform: uppercase;
    margin-bottom: 0.65rem;
}
.nd3-img-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0,255,65,0.1);
    background: #020502;
}
.nd3-img-wrap img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    display: block;
}
.nd3-img-wrap::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: 10px;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(0,255,65,0.05);
}

.nd3-divider {
    display: flex; align-items: center; gap: 0.6rem;
    margin-bottom: 2rem;
}
.nd3-div-dot {
    width: 4px; height: 4px; border-radius: 50%;
    background: rgba(0,255,65,0.35);
}
.nd3-div-line {
    flex: 1; height: 1px;
    background: linear-gradient(90deg, rgba(0,255,65,0.2), rgba(0,255,65,0.05));
}
.nd3-div-label {
    font-family: var(--font-mono);
    font-size: 0.55rem; font-weight: 700;
    letter-spacing: 0.2em; color: #3a5a3a;
}

.nd3-content {
    font-size: 0.94rem; color: #8ab08a;
    line-height: 2.2; word-break: break-word;
}
.nd3-content p { margin-bottom: 1rem; }

.nd3-footer {
    display: flex; align-items: center; justify-content: space-between;
    gap: 0.75rem; margin-top: 2.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,255,65,0.06);
    flex-wrap: wrap;
}
.nd3-back-btn {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.55rem 1.3rem;
    font-size: 0.78rem; font-weight: 600;
    color: #6a9a6a; text-decoration: none;
    background: rgba(0,255,65,0.03);
    border: 1px solid rgba(0,255,65,0.12);
    border-radius: var(--radius);
    transition: all 0.2s;
}
.nd3-back-btn:hover {
    border-color: rgba(0,255,65,0.3); color: #a0d0a0;
    background: rgba(0,255,65,0.06);
    transform: translateX(-3px);
}
.nd3-footer-id {
    font-family: var(--font-mono);
    font-size: 0.6rem; color: #2a4a2a;
    letter-spacing: 0.05em;
}


/* ═══ 반응형 ═══ */
@media (max-width: 900px) {
    .px-hero-title, .nx-hero-title { font-size: 2.2rem; }
    .nc-pin-row { border-radius: 10px; }
    /* 태블릿: 2열 유지 */
    .pc-list { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
}
@media (max-width: 640px) {
    .px-wrap, .nx-wrap { padding: 0 0 3rem; }
    .px-hero, .nx-hero { padding: 2rem 0 1.8rem; margin-bottom: 1.8rem; }
    .px-hero-title, .nx-hero-title { font-size: 1.7rem; }
    .px-hero-sub, .nx-hero-sub { font-size: 0.82rem; }

    /* 파트너 카드 모바일 — 1열, 가로형 유지 */
    .pc-list { grid-template-columns: 1fr; gap: 0.7rem; max-width: 420px; }
    .pc-card { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
    .pc-thumb { width: 110px; }
    .pc-body { padding: 0.5rem 0.55rem 0; }
    .pc-name { font-size: 0.92rem; padding-bottom: 0.3rem; margin-bottom: 0.3rem; }
    .pc-deposit .dsp-digit { font-size: 1.15rem; }
    .pc-deposit .dsp-comma { font-size: 0.72rem; }
    .pc-deposit .dsp-unit { font-size: 0.6rem; }
    .pc-meta { gap: 0.55rem; margin-bottom: 0.3rem; }
    .pc-meta-item { font-size: 0.52rem; }
    .pc-btns { gap: 0.3rem; }
    .pc-btn-detail, .pc-btn-go { font-size: 0.6rem; height: 28px; }

    /* 모달 모바일 — 가운데 정렬 */
    .pm-overlay { padding: 0.6rem; align-items: center; justify-content: center; }
    .pm-panel {
        max-width: 100%; max-height: 90vh;
        clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    }
    .pm-banner { aspect-ratio: 16 / 10; }
    .pm-banner-fb { font-size: 3rem; }
    .pm-info-section { padding: 0.85rem 1rem; }
    .pm-title { font-size: 1.05rem; margin-bottom: 0.45rem; }
    .pm-divider { margin-bottom: 0.45rem; }
    .pm-amount .dsp-digit { font-size: 1.4rem; }
    .pm-amount .dsp-comma { font-size: 0.9rem; }
    .pm-amount .dsp-unit { font-size: 0.62rem; }
    .pm-content { padding: 0 1rem 0.85rem; }
    .pm-content-label { font-size: 0.58rem; margin-bottom: 0.4rem; }
    .pm-desc { font-size: 0.78rem; padding: 0.6rem 0.75rem; }
    .pm-foot { padding: 0 1rem 1rem; }
    .pm-action-btn { padding: 11px 0.8rem; font-size: 0.78rem; }
    .dsp-board-lg { padding: 9px 16px 11px; }
    .dsp-board-lg .dsp-digit { font-size: 1.3rem; }
    .dsp-board-lg .dsp-comma { font-size: 0.9rem; }
    .dsp-board-lg .dsp-unit { font-size: 0.58rem; }
    .dsp-board-lg .dsp-text { font-size: 1rem; }

    .nc-row-title, .nc-pin-title { font-size: 0.84rem; }
    .nc-row, .nc-pin-row { padding: 0 0.8rem; gap: 0.5rem; height: 50px; }
    .nc-row-right, .nc-pin-right { gap: 0.5rem; }
    .nc-author { font-size: 0.68rem; }
    .nc-date { font-size: 0.64rem; }
    .nc-author svg, .nc-date svg { width: 11px; height: 11px; }

    .nd3-card { padding: 1.5rem 1.2rem; }
    .nd3-title { font-size: 1.15rem; }
    .nd3-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .nd3-content { font-size: 0.88rem; line-height: 1.95; }
    .nd3-divider { gap: 0.4rem; }
    .nd3-footer { flex-direction: column; align-items: flex-start; }
    .nd3-img-wrap img { max-height: 260px; }
}


/* ═══════════════════════════════════════════════════════════
   ERROR PAGES (403 / 404 / 500)
   ═══════════════════════════════════════════════════════════ */

.err-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 55vh;
    padding: 3rem 1.5rem;
    position: relative;
}

.err-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 260px;
    height: 260px;
    transform: translate(-50%, -60%);
    background: radial-gradient(circle, rgba(0,255,65,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.err-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--green);
    text-shadow: 0 0 40px rgba(0,255,65,0.25);
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
}

.err-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 0.6rem;
}

.err-desc {
    font-size: 0.88rem;
    color: #888;
    max-width: 400px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.err-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.err-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.7rem 1.4rem;
    font-size: 0.84rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.err-btn-primary {
    background: var(--green);
    color: #000;
}
.err-btn-primary:hover {
    box-shadow: 0 0 16px rgba(0,255,65,0.3);
    transform: translateY(-1px);
}

.err-btn-ghost {
    background: rgba(255,255,255,0.06);
    color: #ccc;
    border: 1px solid rgba(255,255,255,0.1);
}
.err-btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

@media (max-width: 600px) {
    .err-code { font-size: 4rem; }
    .err-title { font-size: 1.1rem; }
}

/* ── 페이지네이션 ── */
.pgn {
    display: flex; align-items: center; justify-content: center; gap: 0.3rem;
    margin: 1.5rem 0 1rem; padding: 0 0.5rem;
}
.pgn-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 8px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5); text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.pgn-btn:hover { background: rgba(0,200,100,0.1); color: #00dd77; border-color: rgba(0,200,100,0.2); }
.pgn-off { opacity: 0.25; pointer-events: none; }
.pgn-nums { display: flex; align-items: center; gap: 0.2rem; }
.pgn-num {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 34px; height: 34px; border-radius: 8px;
    font-size: 0.78rem; font-weight: 500; text-decoration: none;
    color: rgba(255,255,255,0.5); transition: background 0.15s, color 0.15s;
}
.pgn-num:hover { background: rgba(0,200,100,0.08); color: #00dd77; }
.pgn-cur {
    background: rgba(0,200,100,0.15); color: #00ff41;
    border: 1px solid rgba(0,200,100,0.25); font-weight: 700;
}
.pgn-dot { color: rgba(255,255,255,0.2); font-size: 0.8rem; padding: 0 0.15rem; }
@media (max-width: 480px) {
    .pgn { gap: 0.15rem; }
    .pgn-btn, .pgn-num { width: 30px; height: 30px; min-width: 30px; font-size: 0.72rem; border-radius: 6px; }
}
