@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;900&family=Gmarket+Sans:wght@500;700&display=swap');

:root {
    --primary: #D4AF37; /* Royal Modern Gold */
    --primary-dark: #AA8C2C;
    --primary-gradient: linear-gradient(135deg, #F3E7C4 0%, #D4AF37 50%, #99781B 100%);
    --secondary: #586F9A;
    --bg: #0C101A; /* Deep Cosmic Navy */
    --card-bg: #141B2D; /* Elegant Dark Slate */
    --text-main: #F4F6FB;
    --text-sub: #9EABC5;
    --border: rgba(212, 175, 55, 0.25);
    --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    --radius: 22px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 19px;
    word-break: keep-all;
    letter-spacing: -0.03em;
}

/* Typography */
h1, h2, h3, .title-font {
    font-family: 'Gmarket Sans', 'Noto Sans KR', sans-serif;
    font-weight: 700;
}

/* Layout Containers */
.app-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg);
    min-height: 100vh;
    position: relative;
    padding-bottom: 90px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

.content-padding {
    padding: 20px;
}

/* Components */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0.9;
}

.btn-main {
    display: block;
    width: 100%;
    padding: 20px;
    background: var(--primary-gradient);
    color: #0C101A;
    border: none;
    border-radius: 18px;
    font-size: 21px;
    font-weight: 900;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.45);
}

.btn-main:active {
    transform: scale(0.98);
}

.btn-sub {
    display: block;
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: 18px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    margin-top: 12px;
    transition: all 0.2s;
}
.btn-sub:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Form Elements */
input, select {
    width: 100%;
    padding: 18px;
    margin-bottom: 18px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    font-size: 19px;
    font-family: inherit;
    outline: none;
    background: #07090F;
    color: #FFFFFF;
    transition: 0.2s;
}

input:focus, select:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
}

label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-sub);
    letter-spacing: -0.5px;
}

/* Ad Placeholders (Clean & Luxury Status Design) */
.ad-box {
    width: 100%;
    background: linear-gradient(135deg, #151C30 0%, #101524 100%);
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    color: #D4AF37;
    margin: 15px 0;
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    letter-spacing: -0.5px;
}

.ad-fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    z-index: 1000;
    background: rgba(12, 16, 26, 0.94);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    padding: 8px 16px;
}

/* Grid for Index Page */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 10px;
}

@media (max-width: 400px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }
}

.menu-item {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 22px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.menu-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    background: #19223A;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
}

.menu-icon {
    font-size: 42px;
    margin-bottom: 14px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.menu-title {
    font-size: 19px;
    font-weight: 800;
    display: block;
    margin-bottom: 6px;
    color: #FFFFFF;
}

.menu-desc {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.4;
}

/* Header */
.top-nav {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    text-decoration: none;
    color: #FFFFFF;
    transition: 0.2s;
}
.home-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: #D4AF37;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
