:root {
    --gold: #C5A059;
    --bg: #F9F9FB;
    --white: #FFFFFF;
    --black: #1A1A1C;
    --gray: #8E8E93;
    --radius-ios: 32px;
}

body {
    margin: 0; font-family: 'Pretendard', sans-serif; background: var(--bg); color: var(--black);
    letter-spacing: -0.4px; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

.serif { font-family: 'Cinzel', serif; letter-spacing: 2px; }
.gold-txt { color: var(--gold); }
.hidden { display: none !important; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-30 { margin-top: 30px; }
.ml-25 { margin-left: 25px; }

/* PC & 모바일 반응형 유동 레이아웃 기준 */
.content-view {
    padding-top: 90px;
    padding-bottom: 140px;
    max-width: 100%;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* 스플래시 화면 */
.splash-screen {
    position: fixed; inset: 0; background: var(--white); z-index: 10000;
    display: flex; align-items: center; justify-content: center; transition: 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.splash-inner { text-align: center; }
.splash-logo { font-size: 2.8rem; margin: 0; color: var(--black); }
.splash-sub { font-size: 0.7rem; letter-spacing: 5px; color: var(--gold); text-transform: uppercase; margin-top: 10px; }
.splash-loader { width: 140px; height: 2px; background: #E5E5EA; margin: 25px auto 0; border-radius: 2px; overflow: hidden; position: relative; }
.splash-progress { width: 0%; height: 100%; background: var(--gold); animation: loadUnderbar 2s forwards cubic-bezier(0.1, 0.4, 0.2, 1); }
@keyframes loadUnderbar { 0% { width: 0%; } 100% { width: 100%; } }

/* Header & Dock */
.h-lux {
    position: fixed; top: 0; width: 100%; height: 68px; z-index: 1000;
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(25px); border-bottom: 0.5px solid rgba(0,0,0,0.05);
}
.h-inner { max-width: 1200px; margin: 0 auto; height: 100%; display: flex; justify-content: space-between; align-items: center; padding: 0 25px; box-sizing: border-box; }
.logo-serif { color: var(--gold); font-size: 1.5rem; cursor: pointer; margin: 0; }

.user-pill { display: flex; align-items: center; gap: 15px; cursor: pointer; font-size: 0.85rem; font-weight: 600; }
.avatar-liquid { width: 28px; height: 28px; background: linear-gradient(135deg, var(--gold), #e8d08f); border-radius: 50%; }
.btn-logout { background: transparent; border: 1px solid #E5E5EA; border-radius: 12px; padding: 6px 12px; font-size: 0.75rem; color: #555; cursor: pointer; transition: 0.3s; font-family: inherit; }
.btn-logout:hover { background: #ffebeb; color: #ff3b30; border-color: #ff3b30; }

.ios-dock {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: rgba(26, 26, 28, 0.95); backdrop-filter: blur(30px);
    border-radius: 40px; padding: 8px 12px; display: flex; gap: 4px; box-shadow: 0 20px 50px rgba(0,0,0,0.25); z-index: 1000;
}
.dock-btn {
    width: 68px; height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #777; font-size: 0.65rem; font-weight: 700; cursor: pointer; transition: 0.3s; text-decoration: none;
}
.dock-btn.active { color: var(--gold); transform: translateY(-4px); }

/* UI Elements */
.lux-card, .auth-card-lux { background: var(--white); border-radius: var(--radius-ios); padding: 35px; box-shadow: 0 12px 40px rgba(0,0,0,0.04); margin-bottom: 25px; }
.auth-title { text-align: center; margin-bottom: 30px; }
.auth-title h2 { margin: 0; font-size: 2.2rem; }
.auth-title p { margin: 5px 0 0; color: var(--gray); font-size: 0.9rem; }

.lux-input, .lux-input-sm {
    width: 100%; height: 58px; border-radius: 18px; border: 1.5px solid #F2F2F7; background: #F2F2F7;
    padding: 0 20px; margin-bottom: 15px; font-size: 1rem; transition: 0.3s; box-sizing: border-box; font-family: inherit;
}
.lux-input:focus, .lux-input-sm:focus { background: #fff; border-color: var(--gold); outline: none; }
.h-80 { height: 80px !important; resize: none; padding-top: 15px !important; }

.btn-gold-lux {
    width: 100%; height: 62px; border-radius: 20px; border: none; background: var(--black);
    color: white; font-weight: 700; font-size: 1rem; cursor: pointer; transition: 0.4s; font-family: inherit;
}
.btn-gold-lux:active { transform: scale(0.96); opacity: 0.8; }
.btn-gold-lux.sm { height: 46px; border-radius: 12px; font-size: 0.9rem; width: auto; padding: 0 20px; }

.ios-check-label { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 0.9rem; color: var(--gray); margin-bottom: 25px; }
.ios-check-label input[type="checkbox"] { display: none; }
.custom-check { width: 22px; height: 22px; border: 1.5px solid #D1D1D6; border-radius: 6px; position: relative; transition: 0.3s ease; background: var(--white); }
.ios-check-label input[type="checkbox"]:checked + .custom-check { background: var(--gold); border-color: var(--gold); }
.custom-check::after { content: ''; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0.5); opacity: 0; transition: 0.2s; }
.ios-check-label input[type="checkbox"]:checked + .custom-check::after { opacity: 1; transform: rotate(45deg) scale(1); }

/* 비활성화 상태 체크박스 스타일 */
input[type="checkbox"]:disabled + .custom-check { background: #E5E5EA !important; border-color: #D1D1D6 !important; cursor: not-allowed; }

.auth-utils { display: flex; justify-content: space-between; margin-top: 20px; padding: 0 5px; font-size: 0.9rem; color: var(--gray); }
.auth-utils span, .btn-link { cursor: pointer; transition: color 0.3s; background: transparent; border: none; color: var(--gray); font-size: 0.9rem; padding: 0; font-family: inherit; }
.auth-utils span:hover, .btn-link:hover { color: var(--gold); }

/* 개인정보 처리방침 헤더 및 스크롤 박스 디자인 */
.terms-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 0.85rem; font-weight: 600; color: var(--black); padding: 0 5px; }
.terms-badge { font-size: 0.7rem; background: #FF9500; color: white; padding: 3px 9px; border-radius: 12px; transition: background 0.3s ease; }
.terms-scroll-box {
    width: 100%; height: 110px; overflow-y: auto; background: #F2F2F7; border-radius: 16px;
    padding: 15px; box-sizing: border-box; font-size: 0.8rem; line-height: 1.5; color: #555;
    border: 1px solid #E5E5EA; margin-bottom: 12px; -webkit-overflow-scrolling: touch;
}

/* 히어로 세션 */
.hero-solid {
    position: relative; border-radius: var(--radius-ios); overflow: hidden; margin-bottom: 30px; height: 260px;
    background: linear-gradient(145deg, #1A1A1C, #2d2d30);
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.hero-content { padding: 30px; color: var(--white); }
.hero-content h2 { margin: 0; font-size: 2.5rem; color: var(--gold); }
.hero-content p { margin: 10px 0 0; color: #ccc; font-size: 1rem; font-weight: 300; letter-spacing: 1px; }

.ios-grid-menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.menu-btn { background: var(--white); padding: 25px 20px; border-radius: 24px; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,0.02); cursor: pointer; transition: 0.3s; font-weight: 600; font-size: 0.95rem; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.menu-btn:active { transform: scale(0.97); background: #f2F2F7; }

.view-header { font-size: 1.6rem; margin-top: 10px; margin-bottom: 25px; padding-left: 5px; }
.room-grid, .res-history-list, .admin-res-list, .admin-room-list { display: flex; flex-direction: column; gap: 15px; }

.guide-item { position: relative; padding-left: 65px; margin-bottom: 30px; }
.guide-num { position: absolute; left: 0; top: 0; font-family: 'Cinzel'; font-size: 1.6rem; color: var(--gold); font-weight: 700; }
.guide-item h4 { margin: 0 0 5px; font-size: 1.05rem; }
.guide-item p { margin: 0; color: var(--gray); font-size: 0.9rem; line-height: 1.5; }
.res-card { border-left: 5px solid var(--gold); }
.admin-btns { display: flex; gap: 10px; margin-top: 15px; }

/* 모달 */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(8px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-box { background: var(--white); width: 100%; max-width: 400px; border-radius: 35px; padding: 40px; box-sizing: border-box; }
.fade-up { animation: fadeUp 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================
   PC (데스크탑 / 태블릿) 대응 미디어 쿼리 
========================================= */
@media (min-width: 768px) {
    .content-view { max-width: 1000px; padding-top: 110px; }
    .ios-grid-menu { grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .menu-btn { padding: 35px 20px; font-size: 1.05rem; }
    .room-grid, .res-history-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .admin-top-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .admin-res-list, .admin-room-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .modal-box { max-width: 450px; }
    .ios-dock { width: 500px; justify-content: center; gap: 10px; }
    .dock-btn { width: 80px; }
}