/* ===================================
   릴게임 Landing Page CSS
   Neon Arcade — Retro Glow & Dark
   =================================== */

/* Fonts */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable.css');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;800;900&display=swap');

/* CSS Variables */
:root {
    /* Core Dark */
    --dark-1: #0D0D0F;
    --dark-2: #141418;
    --dark-3: #1A1A20;
    --dark-4: #222228;
    --dark-5: #2A2A32;

    /* Neon Accent */
    --neon-pink: #FF2D78;
    --neon-pink-dim: rgba(255, 45, 120, 0.12);
    --neon-pink-glow: rgba(255, 45, 120, 0.4);
    --neon-purple: #A855F7;
    --neon-purple-dim: rgba(168, 85, 247, 0.12);
    --neon-cyan: #06D6A0;
    --neon-yellow: #FACC15;
    --neon-orange: #FF6B35;

    /* Gradient */
    --gradient-neon: linear-gradient(135deg, #FF2D78 0%, #A855F7 50%, #6366F1 100%);
    --gradient-dark: linear-gradient(180deg, #0D0D0F 0%, #141418 50%, #1A1A20 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,45,120,0.06) 0%, transparent 60%);
    --gradient-glow: linear-gradient(135deg, #FF2D78 0%, #A855F7 100%);

    /* Text */
    --text-primary: #F5F5F7;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;

    /* Borders */
    --border-color: rgba(255, 45, 120, 0.1);
    --border-glow: rgba(255, 45, 120, 0.3);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.7);
    --shadow-neon: 0 0 30px rgba(255, 45, 120, 0.15);
    --shadow-neon-lg: 0 0 60px rgba(255, 45, 120, 0.2);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
html { overflow-x: hidden; }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--dark-1);
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container { padding: 0 15px; }
}

/* ===================================
   HEADER
   =================================== */
#solver-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(13, 13, 15, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

@supports (-webkit-touch-callout: none) {
    #solver-header {
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        background: rgba(13, 13, 15, 0.94);
    }
}

#solver-header.scrolled {
    background: rgba(13, 13, 15, 0.96);
    box-shadow: var(--shadow-md), 0 1px 0 var(--border-color);
}

#solver-header.hidden { transform: translateY(-100%); }

/* Main Navigation */
.main-nav { padding: 16px 0; }

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    touch-action: manipulation;
}

.logo-svg { display: block; }

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Menu */
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.menu-list {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.menu-item { position: relative; }

.menu-item > a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    padding: 10px 0;
    position: relative;
    letter-spacing: -0.01em;
    transition: var(--transition);
}

.menu-item > a:hover,
.menu-item:hover > a { color: var(--neon-pink); }

.menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--gradient-neon);
    transition: width 0.3s;
    border-radius: 1px;
}

.menu-item:hover > a::after { width: 100%; }

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--dark-2);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-xl), var(--shadow-neon);
    padding: 16px;
    min-width: 240px;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
}

.menu-item:hover .dropdown-menu {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0);
    z-index: 2;
}

.dropdown-inner { display: grid; gap: 4px; }

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    transition: var(--transition);
}

.dropdown-item:hover { background: var(--neon-pink-dim); }

.item-content h4 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.item-content p { color: var(--text-muted); font-size: 13px; }

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 24px;
}

.btn-admin-panel {
    padding: 7px 16px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 8px;
    color: #A855F7;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-admin-panel:hover {
    background: rgba(168, 85, 247, 0.18);
    border-color: #A855F7;
}

.btn-admin-logout {
    padding: 7px 16px;
    background: rgba(255, 107, 107, 0.12);
    border: 1px solid rgba(255, 107, 107, 0.25);
    border-radius: 8px;
    color: #FF6B6B;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-admin-logout:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: #FF6B6B;
}

.btn-admin-banner {
    padding: 7px 16px;
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.25);
    border-radius: 8px;
    color: #FACC15;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-admin-banner:hover {
    background: rgba(250, 204, 21, 0.18);
    border-color: #FACC15;
}

.btn-login,
.btn-cta,
.user-menu { display: none !important; }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 22px; height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; max-width: 400px;
    height: 100vh; height: 100dvh;
    background: var(--dark-2);
    z-index: 2000;
    transition: right 0.3s;
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.mobile-menu.active {
    right: 0;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-inner {
    padding: 24px; padding-bottom: 40px;
    height: 100%;
    overflow-y: auto; overflow-x: hidden;
    display: flex; flex-direction: column;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-header .logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 800;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-menu-close {
    background: none; border: none; cursor: pointer;
    padding: 8px; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary);
}

.mobile-menu-list { list-style: none; flex: 1; }

.mobile-menu-list > li { border-bottom: 1px solid var(--border-color); }

.mobile-menu-list > li > a {
    display: block;
    padding: 18px 5px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 17px;
}

.submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
    background: rgba(255, 45, 120, 0.03);
}

.has-submenu.active .submenu { max-height: 500px; padding: 10px 0; }

.submenu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-secondary);
    font-size: 15px;
}

.submenu li a:hover { color: var(--neon-pink); }

.mobile-menu-footer {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.btn-cta-mobile {
    display: block; width: 100%;
    padding: 16px;
    background: var(--gradient-neon);
    color: #fff;
    text-align: center;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
}

/* ===================================
   MAIN CONTENT
   =================================== */
#solver-main { padding-top: 80px; padding-bottom: 0; }

@media (max-width: 768px) {
    #solver-main { padding-top: 70px; padding-bottom: 0; }
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.gradient-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(255, 45, 120, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 70%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 60%);
}

.animated-shapes {
    position: absolute;
    width: 100%; height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 20s infinite;
}

.shape-1 {
    width: 500px; height: 500px;
    background: rgba(255, 45, 120, 0.1);
    top: -150px; right: -150px;
}

.shape-2 {
    width: 400px; height: 400px;
    background: rgba(168, 85, 247, 0.08);
    bottom: -100px; left: -100px;
    animation-delay: -7s;
}

.shape-3 {
    width: 300px; height: 300px;
    background: rgba(99, 102, 241, 0.06);
    top: 40%; left: 40%;
    animation-delay: -12s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -40px) scale(1.05); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: var(--neon-pink-dim);
    color: var(--neon-pink);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 45, 120, 0.2);
}

.hero-title {
    font-family: 'Orbitron', 'Pretendard Variable', sans-serif;
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.gradient-text {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions { display: flex; gap: 16px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-neon);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-md), 0 0 20px rgba(255, 45, 120, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(255, 45, 120, 0.3);
}

.btn-outline {
    border-color: var(--border-glow);
    color: var(--neon-pink);
    background: transparent;
}

.btn-outline:hover {
    background: var(--neon-pink-dim);
    border-color: var(--neon-pink);
}

.btn-large { padding: 16px 32px; font-size: 16px; }

/* Hero Visual */
.hero-visual { position: relative; }

.floating-card {
    position: absolute;
    background: var(--dark-3);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    animation: floating 3s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.floating-card.card-1 { top: 0; right: 100px; }
.floating-card.card-2 { top: 150px; right: 0; animation-delay: -1s; }
.floating-card.card-3 { top: 300px; right: 150px; animation-delay: -2s; }

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.card-icon { font-size: 32px; margin-bottom: 10px; }
.card-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }

/* ===================================
   SECTIONS
   =================================== */
section { padding: 100px 0; }

@media (max-width: 768px) {
    section { padding: 60px 0; }
}

.section-header { text-align: center; margin-bottom: 60px; }

.section-label {
    display: inline-block;
    color: var(--neon-pink);
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Orbitron', 'Pretendard Variable', sans-serif;
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.section-description {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Services / Cards */
.services-section { background: var(--dark-2); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--dark-3);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-neon);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl), var(--shadow-neon);
    border-color: var(--border-glow);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    position: relative;
    width: 64px; height: 64px;
    margin-bottom: 24px;
}

.icon-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--neon-pink-dim);
    border-radius: 16px;
    transform: rotate(-8deg);
}

.service-icon span {
    position: relative;
    font-size: 36px;
    display: block;
    line-height: 64px;
}

.service-card h3 {
    font-family: 'Orbitron', 'Pretendard Variable', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 15px;
}

.service-link {
    color: var(--neon-pink);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}
.service-link:hover { gap: 10px; }

/* Stats Section */
.stats-section {
    background: var(--gradient-neon);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    position: relative;
}

.stat-item { text-align: center; color: #fff; }

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 52px;
    font-weight: 900;
    line-height: 1;
}

.stat-suffix { font-size: 28px; font-weight: 700; opacity: 0.8; }
.stat-label { font-size: 16px; margin-top: 8px; font-weight: 600; opacity: 0.85; }

/* CTA Section */
.cta-section {
    background: var(--dark-2);
    padding: 100px 0;
    position: relative;
    border-top: 1px solid var(--border-color);
}

.cta-content { text-align: center; }

.cta-content h2 {
    font-family: 'Orbitron', 'Pretendard Variable', sans-serif;
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.cta-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-white {
    background: white;
    color: var(--dark-1);
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-outline-white {
    border-color: var(--border-glow);
    color: var(--neon-pink);
}
.btn-outline-white:hover {
    background: var(--neon-pink-dim);
}

/* Blog / Board Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.blog-card {
    background: var(--dark-3);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), var(--shadow-neon);
    border-color: var(--border-glow);
}

.blog-image { position: relative; height: 200px; overflow: hidden; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; }

.blog-category {
    position: absolute;
    top: 16px; left: 16px;
    background: var(--dark-2);
    color: var(--neon-pink);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.blog-content { padding: 24px; }
.blog-date { color: var(--text-muted); font-size: 13px; }

.blog-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 8px 0 12px;
}

.blog-link {
    color: var(--neon-pink);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

/* ===================================
   FOOTER
   =================================== */
#solver-footer {
    background: var(--dark-1);
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-top {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
}

.footer-logo { margin-bottom: 16px; }

.footer-tagline {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
    font-size: 14px;
}

.footer-social { display: flex; gap: 12px; }

.footer-social a {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--dark-3);
    border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--neon-pink-dim);
    border-color: var(--neon-pink);
    transform: translateY(-2px);
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--neon-pink);
    transform: translateX(3px);
    display: inline-block;
}

.contact-info { list-style: none; }

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.contact-info svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--neon-pink);
}

.business-info {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.business-info p {
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-bottom {
    padding: 24px 0;
    background: rgba(0, 0, 0, 0.3);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright { color: var(--text-muted); font-size: 13px; }

.footer-badges { display: flex; gap: 20px; }
.badge-item { font-size: 13px; color: var(--text-muted); }

/* ===================================
   FLOATING BUTTONS
   =================================== */
.floating-buttons {
    position: fixed;
    bottom: 30px; right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.btn-floating {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--dark-3);
    border: 1px solid var(--border-color);
    color: var(--neon-pink);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.btn-floating:hover {
    background: var(--neon-pink-dim);
    border-color: var(--neon-pink);
    transform: scale(1.05);
}

.btn-top {
    opacity: 0; visibility: hidden;
    transition: all 0.3s;
}

.btn-top.visible { opacity: 1; visibility: visible; }

/* Page header for sub pages */
.page-header { padding: 20px 0; }

.member-page-header {
    width: calc(100% - 30px);
    max-width: 1120px;
    padding: 16px 0 20px;
    margin: 0 auto 28px;
    border-bottom: 1px solid rgba(255, 45, 120, 0.1);
}

.member-page-title {
    margin: 0;
    font-family: inherit;
    font-size: 20px;
    line-height: 32px;
    font-weight: 800;
    color: var(--text-primary);
}

.page-title {
    font-family: 'Orbitron', 'Pretendard Variable', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual { display: none; }
    .hero-actions { justify-content: center; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .mobile-menu-toggle { display: flex; }
    .hero-title { font-size: 28px; }

    .services-grid,
    .blog-grid { grid-template-columns: 1fr; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .footer-grid { grid-template-columns: 1fr; }

    .footer-bottom-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .floating-buttons { bottom: 20px; right: 15px; }
    .btn-floating { width: 46px; height: 46px; }

    .member-page-header {
        padding: 16px 0 20px;
        margin-bottom: 28px;
    }

    .member-page-title { font-size: 18px; line-height: 32px; }
    .dropdown-inner { grid-template-columns: 1fr; }

    .nav-actions .btn-admin-banner,
    .nav-actions .btn-admin-panel,
    .nav-actions .btn-admin-logout { display: none !important; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; width: 100%; }
    .btn { width: 100%; justify-content: center; }
    .cta-buttons { flex-direction: column; width: 100%; }
    .stats-grid { grid-template-columns: 1fr; }
}

.sound_only { display: none; }

.stealth-link {
    color: inherit;
    text-decoration: none;
    cursor: text;
}

/* 모바일 관리자 버튼 */
.mobile-admin-actions { display: flex; gap: 10px; margin-bottom: 14px; }

.mobile-btn-banner {
    flex: 1; display: block; padding: 14px;
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.25);
    border-radius: 12px;
    color: #FACC15;
    text-align: center; font-weight: 700; font-size: 14px;
    transition: all 0.3s ease;
}

.mobile-btn-admin {
    flex: 1; display: block; padding: 14px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 12px;
    color: #A855F7;
    text-align: center; font-weight: 700; font-size: 14px;
    transition: all 0.3s ease;
}

.mobile-btn-logout {
    flex: 1; display: block; padding: 14px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.25);
    border-radius: 12px;
    color: #FF6B6B;
    text-align: center; font-weight: 700; font-size: 14px;
    transition: all 0.3s ease;
}

/* ===================================
   팝업레이어
   =================================== */
#hd_pop {
    z-index: 1000;
    position: fixed;
    margin: 0 auto;
}

#hd_pop h2 {
    position: absolute;
    font-size: 0; line-height: 0;
    overflow: hidden;
}

@media (min-width: 1211px) {
    #hd_pop .popup_container {
        position: fixed;
        top: 50%; left: 50%;
        transform: translate(-50%, -50%);
    }

    #hd_pop[data-popup-count="1"] .popup_wrapper,
    #hd_pop[data-popup-count="2"] .popup_wrapper,
    #hd_pop[data-popup-count="3"] .popup_wrapper {
        display: flex; flex-wrap: wrap;
        justify-content: center; gap: 20px;
    }

    #hd_pop[data-popup-count="1"] .hd_pops,
    #hd_pop[data-popup-count="2"] .hd_pops,
    #hd_pop[data-popup-count="3"] .hd_pops { width: 400px; height: auto; }

    #hd_pop[data-popup-count="1"] .hd_pops_con,
    #hd_pop[data-popup-count="2"] .hd_pops_con,
    #hd_pop[data-popup-count="3"] .hd_pops_con { width: 400px; height: 300px; }

    #hd_pop[data-popup-count="1"] .popup_wrapper { width: 400px; }
    #hd_pop[data-popup-count="2"] .popup_wrapper { width: 820px; }
    #hd_pop[data-popup-count="3"] .popup_wrapper { width: 1260px; }

    #hd_pop[data-popup-count="4"] .popup_wrapper,
    #hd_pop[data-popup-count="5"] .popup_wrapper,
    #hd_pop[data-popup-count="6"] .popup_wrapper,
    #hd_pop[data-popup-count="7"] .popup_wrapper,
    #hd_pop[data-popup-count="8"] .popup_wrapper,
    #hd_pop[data-popup-count="9"] .popup_wrapper {
        display: grid;
        grid-template-columns: repeat(3, 280px);
        gap: 0; justify-content: center; width: 840px;
    }

    #hd_pop[data-popup-count="4"] .hd_pops,
    #hd_pop[data-popup-count="5"] .hd_pops,
    #hd_pop[data-popup-count="6"] .hd_pops,
    #hd_pop[data-popup-count="7"] .hd_pops,
    #hd_pop[data-popup-count="8"] .hd_pops,
    #hd_pop[data-popup-count="9"] .hd_pops { width: 280px; height: auto; }

    #hd_pop[data-popup-count="4"] .hd_pops_con,
    #hd_pop[data-popup-count="5"] .hd_pops_con,
    #hd_pop[data-popup-count="6"] .hd_pops_con,
    #hd_pop[data-popup-count="7"] .hd_pops_con,
    #hd_pop[data-popup-count="8"] .hd_pops_con,
    #hd_pop[data-popup-count="9"] .hd_pops_con { width: 280px; height: 210px; }

    #hd_pop[data-popup-count="4"] .hd_pops:nth-child(4) { grid-column: 2; }
    #hd_pop[data-popup-count="5"] .hd_pops:nth-child(4) { grid-column: 1; }
    #hd_pop[data-popup-count="5"] .hd_pops:nth-child(5) { grid-column: 2; }
    #hd_pop[data-popup-count="7"] .hd_pops:nth-child(7) { grid-column: 2; }
    #hd_pop[data-popup-count="8"] .hd_pops:nth-child(7) { grid-column: 1; }
    #hd_pop[data-popup-count="8"] .hd_pops:nth-child(8) { grid-column: 2; }

    .hd_pops {
        position: relative !important;
        border: 1px solid #e9e9e9;
        background: #fff;
        top: auto !important; left: auto !important;
        display: block !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
}

@media (min-width: 421px) and (max-width: 1210px) {
    #hd_pop .popup_container {
        position: fixed;
        top: 20px; left: 50%;
        transform: translateX(-50%);
        width: 90%; max-width: 400px;
    }

    #hd_pop .popup_wrapper { position: relative; width: 100%; height: auto; }

    .hd_pops {
        position: absolute !important;
        width: 100%; max-width: 400px; height: auto;
        border: 1px solid #e9e9e9; background: #fff;
        top: 0 !important; left: 0 !important;
        display: block !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }

    .hd_pops_con { width: 100%; height: 300px; }

    .hd_pops[data-popup-index="1"] { z-index: 1001; }
    .hd_pops[data-popup-index="2"] { z-index: 1000; }
    .hd_pops[data-popup-index="3"] { z-index: 999; }
    .hd_pops[data-popup-index="4"] { z-index: 998; }
    .hd_pops[data-popup-index="5"] { z-index: 997; }
    .hd_pops[data-popup-index="6"] { z-index: 996; }
    .hd_pops[data-popup-index="7"] { z-index: 995; }
    .hd_pops[data-popup-index="8"] { z-index: 994; }
}

@media (max-width: 520px) {
    #hd_pop .popup_container {
        position: fixed;
        top: 150px; left: 50%;
        transform: translateX(-50%);
        width: 90%;
    }

    #hd_pop .popup_wrapper { position: relative; width: 100%; height: auto; }

    .hd_pops {
        position: absolute !important;
        width: 100%; height: auto;
        border: 1px solid #e9e9e9; background: #fff;
        top: 0 !important; left: 0 !important;
        display: block !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }

    .hd_pops_con {
        width: 100%;
        padding-bottom: 75%;
        position: relative;
        height: 0;
    }

    .hd_pops_con img,
    .hd_pops_con video {
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        object-fit: cover;
    }

    .hd_pops_con a {
        position: absolute;
        top: 0; left: 0;
        display: block;
        width: 100%; height: 100%;
    }

    .hd_pops[data-popup-index="1"] { z-index: 1001; }
    .hd_pops[data-popup-index="2"] { z-index: 1000; }
    .hd_pops[data-popup-index="3"] { z-index: 999; }
    .hd_pops[data-popup-index="4"] { z-index: 998; }
    .hd_pops[data-popup-index="5"] { z-index: 997; }
    .hd_pops[data-popup-index="6"] { z-index: 996; }
    .hd_pops[data-popup-index="7"] { z-index: 995; }
    .hd_pops[data-popup-index="8"] { z-index: 994; }

    .hd_pops_footer .hd_pops_reject { font-size: 10px; }
}

/* 공통 팝업 스타일 */
.hd_pops { overflow: hidden; }
.hd_pops_con { overflow: hidden; position: relative; }
.hd_pops_con img { width: 100%; height: 100%; object-fit: cover; }
.hd_pops_con video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hd_pops_con a { display: block; width: 100%; height: 100%; }

.hd_pops_footer {
    padding: 0; background: #000;
    color: #fff; text-align: left;
    position: relative; height: 50px; width: 100%;
}

.hd_pops_footer:after { display: block; visibility: hidden; clear: both; content: ""; }

.hd_pops_footer button {
    padding: 10px; border: 0;
    color: #fff; height: 50px; cursor: pointer;
}

.hd_pops_footer .hd_pops_reject {
    background: #000; text-align: left;
    font-size: 12px;
    width: calc(100% - 80px); float: left;
}

.hd_pops_footer .hd_pops_close {
    background: #393939;
    position: absolute;
    top: 0; right: 0; width: 80px;
}

.hd_pops_footer .hd_pops_reject:hover { background: #222; }
.hd_pops_footer .hd_pops_close:hover { background: #555; }

#hd_pop[data-popup-count="4"] .hd_pops_footer .hd_pops_reject,
#hd_pop[data-popup-count="5"] .hd_pops_footer .hd_pops_reject,
#hd_pop[data-popup-count="6"] .hd_pops_footer .hd_pops_reject,
#hd_pop[data-popup-count="7"] .hd_pops_footer .hd_pops_reject,
#hd_pop[data-popup-count="8"] .hd_pops_footer .hd_pops_reject,
#hd_pop[data-popup-count="9"] .hd_pops_footer .hd_pops_reject { font-size: 10px; }
