:root {
    --bg-dark: #0b0b0f;
    --card-bg: rgba(18, 18, 24, 0.85);
    --marble-border: rgba(212, 175, 55, 0.3);
    --gold: #d4af37;
    --gold-hover: #f3e5ab;
    --text-main: #f8fafc;
    --text-sub: #94a3b8;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; }
body { 
    background-color: var(--bg-dark); 
    background-image: radial-gradient(circle at 50% 50%, #1a1a24 0%, #0b0b0f 100%);
    color: var(--text-main); 
    line-height: 1.7; 
    padding: 40px 20px; 
    min-height: 100vh;
}
.container { max-width: 900px; margin: 0 auto; }

header { 
    display: flex; justify-content: space-between; align-items: center; 
    margin-bottom: 30px; background: var(--card-bg); padding: 25px 30px; 
    border-radius: 16px; border: 1px solid var(--marble-border); 
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px);
}
header h1 { font-size: 1.8rem; color: var(--gold); font-weight: 800; letter-spacing: -0.5px; }
.user-panel { font-size: 0.9rem; color: var(--text-sub); display: flex; gap: 12px; align-items: center; }
.user-panel button, .user-panel a { 
    padding: 8px 16px; font-size: 0.85rem; border: 1px solid var(--marble-border); 
    background: rgba(255,255,255,0.05); border-radius: 8px; cursor: pointer; 
    text-decoration: none; color: var(--text-main); font-weight: 600; transition: 0.2s;
}
.user-panel button:hover, .user-panel a:hover { border-color: var(--gold); color: var(--gold); }

/* 네비게이션바 */
.nav-bar { display: flex; gap: 10px; margin-bottom: 30px; border-bottom: 1px solid var(--marble-border); padding-bottom: 15px; overflow-x: auto; }
.nav-btn { 
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); 
    padding: 12px 20px; font-size: 0.95rem; font-weight: 700; border-radius: 10px; 
    cursor: pointer; color: var(--text-sub); text-decoration: none; display: inline-block; transition: all 0.2s; 
}
.nav-btn.active { background: var(--gold); color: #000; border-color: var(--gold); box-shadow: 0 0 15px rgba(212,175,55,0.4); }

/* 카드 스타일 (대리석 질감 느낌의 다크글래스) */
.card { 
    background: var(--card-bg); border: 1px solid var(--marble-border); 
    border-radius: 16px; padding: 35px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7); 
    margin-bottom: 30px; backdrop-filter: blur(12px);
}
h2 { font-size: 1.4rem; margin-bottom: 25px; color: var(--gold); border-left: 4px solid var(--gold); padding-left: 12px; font-weight: 700; }

.input-group { margin-bottom: 20px; }
label { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 8px; color: var(--text-main); }
input, select, textarea { 
    width: 100%; padding: 14px; border: 1px solid var(--marble-border); 
    border-radius: 10px; font-size: 1rem; background: rgba(0, 0, 0, 0.4); color: #fff; 
}
textarea { resize: vertical; height: 140px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,0.2); }

.btn-action { 
    width: 100%; background: linear-gradient(135deg, #d4af37 0%, #aa7c11 100%); 
    color: #000; border: none; padding: 16px; font-size: 1.05rem; font-weight: 800; 
    border-radius: 10px; cursor: pointer; margin-top: 15px; transition: 0.2s; 
}
.btn-action:hover { opacity: 0.9; box-shadow: 0 0 20px rgba(212,175,55,0.5); }

.result-box { margin-top: 30px; background: rgba(0, 0, 0, 0.5); border-radius: 10px; padding: 20px; border: 1px solid var(--marble-border); }
.result-item { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 1rem; color: var(--text-sub); }
.result-item span:last-child { font-weight: bold; color: #fff; }
.total-row { border-top: 1px solid var(--marble-border); padding-top: 12px; margin-top: 12px; font-size: 1.1rem; font-weight: bold; color: var(--gold); display: flex; justify-content: space-between; }

.post-list { list-style: none; margin-top: 15px; }
.post-item { padding: 18px; border-bottom: 1px solid rgba(255,255,255,0.08); cursor: pointer; transition: 0.1s; display: flex; justify-content: space-between; align-items: center; }
.post-item:hover { background: rgba(255,255,255,0.03); border-radius: 8px; }
.post-title { font-weight: bold; font-size: 1.1rem; color: var(--text-main); }
.post-meta { font-size: 0.85rem; color: var(--text-sub); margin-top: 4px; }
.post-detail { background: rgba(0,0,0,0.4); padding: 30px; border: 1px solid var(--marble-border); border-radius: 12px; margin-top: 15px; }

.auth-links { display: flex; justify-content: space-between; margin-top: 18px; font-size: 0.9rem; }
.auth-links a { color: var(--text-sub); text-decoration: none; cursor: pointer; }
.auth-links a:hover { color: var(--gold); text-decoration: underline; }

.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); justify-content: center; align-items: center; z-index: 1000; backdrop-filter: blur(5px); }
.modal-card { background: #121218; padding: 30px; border-radius: 16px; width: 90%; max-width: 420px; border: 1px solid var(--marble-border); }
.modal-card h3 { font-size: 1.2rem; margin-bottom: 20px; color: var(--gold); }
.modal-close { background: rgba(255,255,255,0.1); border: none; padding: 10px; border-radius: 8px; cursor: pointer; font-weight: bold; width: 100%; margin-top: 20px; color: #fff; }

footer { text-align: center; margin-top: 50px; font-size: 0.85rem; color: var(--text-sub); }