/* ── 본문용 라이트 테마 색상 변수 ── */
:root {
  --primary: #f8fafc;
  --secondary: #ffffff;
  --accent: #2563eb;
  --accent2: #059669;
  --text: #1e293b;
  --text-muted: #64748b;
  --card-bg: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
}

/* ── 헤더/푸터/플로팅메뉴용 다크 테마 원본 색상 변수 ── */
:root {
  --nav-bg: rgba(10,22,40,0.95);
  --nav-bg-scrolled: rgba(10,22,40,0.98);
  --dark-bg: #0a1628;
  --dark-accent: #00c8ff;
  --dark-accent2: #00ff9d;
  --dark-text-muted: #8a9bb5;
  --dark-border: rgba(0,200,255,0.15);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans KR', sans-serif; background: var(--primary); color: var(--text); overflow-x: hidden; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width:6px; }
::-webkit-scrollbar-track { background: var(--primary); }
::-webkit-scrollbar-thumb { background: var(--dark-accent); border-radius:3px; }

/* ── NAV ── */
nav { position: fixed; top:0; left:0; right:0; z-index:1000; padding: 0 40px; height: 90px; display: flex; align-items:center; justify-content:space-between; background: var(--nav-bg); backdrop-filter: blur(20px); border-bottom: 1px solid var(--dark-border); transition: all 0.3s; }
nav.scrolled { height:80px; background: var(--nav-bg-scrolled); box-shadow: 0 4px 20px rgba(0,0,0,0.3); border-color: transparent; }

/* ── LOGO STYLING ── */
.nav-logo, .footer-logo { display: inline-flex; align-items: baseline; font-family: 'Bebas Neue', sans-serif; font-size: 2.2rem; letter-spacing: 1px; color: var(--dark-accent); text-decoration: none; text-transform: lowercase; transition: all 0.3s; position: relative; }
.footer-logo { font-size: 1.6rem; }
.en-edu { color: var(--dark-accent2); margin-left: 2px; transition: 0.3s ease; }
.ko-text { font-family: 'Noto Sans KR', sans-serif; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.5px; margin-left: 10px; background: linear-gradient(135deg, #ffffff 0%, var(--dark-text-muted) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; opacity: 0.85; transition: 0.3s; text-transform: none; }
.footer-logo .ko-text { font-size: 0.85rem; }
.nav-logo:hover, .footer-logo:hover { transform: translateY(-2px); text-shadow: 0 4px 20px rgba(0, 200, 255, 0.4); }
.nav-logo:hover .en-edu, .footer-logo:hover .en-edu { text-shadow: 0 4px 20px rgba(0, 255, 157, 0.4); }
.nav-logo:hover .ko-text, .footer-logo:hover .ko-text { opacity: 1; filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4)); transform: scale(1.05) translateX(2px); }

/* ── GNB LINKS ── */
.nav-links { display:flex; gap:24px; list-style:none; }
.nav-links > li { position: relative; padding: 30px 0; }
.nav-links a { font-size: 1.1rem; font-weight: 700; letter-spacing:0.5px; color: var(--dark-text-muted); text-decoration:none; transition: color 0.2s; padding: 4px 8px; }
.nav-links a:hover, .nav-links a.active { color: var(--dark-accent); }
.sub-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px); background: var(--nav-bg-scrolled); min-width: 150px; text-align: center; list-style: none; padding: 10px 0; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.3); border: 1px solid var(--dark-border); opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.nav-links > li:hover .sub-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(-10px); }
.sub-menu li { padding: 0; }
.sub-menu a { display: block; padding: 12px 20px; font-size: 0.95rem; font-weight: 500; color: var(--dark-text-muted); transition: all 0.2s; }
.sub-menu a:hover { color: var(--dark-accent); background: rgba(0,200,255,0.05); }

.nav-toggle { display:none; flex-direction:column; gap:5px; cursor:pointer; background:none; border:none; }
.nav-toggle span { width:24px; height:2px; background:var(--dark-accent); display:block; transition:0.3s; }
.user-menu { display:flex; gap:12px; align-items:center; }
.btn-login { padding:8px 18px; border:1px solid var(--dark-accent); background: transparent; color:var(--dark-accent); border-radius:24px; font-size:0.9rem; font-weight: 600; text-decoration:none; transition:0.3s; }
.btn-login:hover { background:rgba(0,200,255,0.1); }

/* ── SIMPLE HEADER FOR MYPAGE ── */
.mypage-header { padding: 120px 40px 40px; background: var(--dark-bg); text-align: center; border-bottom: 1px solid var(--dark-border); }
.mypage-title { font-size: 2.2rem; font-weight: 700; color: #fff; letter-spacing: -1px; animation: fadeInUp 0.5s ease both; }

/* ── MYPAGE LAYOUT ── */
.mypage-layout { max-width: 1200px; margin: 40px auto 100px; padding: 0 40px; display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; animation: fadeInUp 0.6s 0.2s ease both; }

/* Sidebar LNB */
.mypage-sidebar { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.sidebar-profile { padding: 30px 20px; text-align: center; border-bottom: 1px solid var(--border); background: #f8fafc; }
.sidebar-profile .avatar { width: 60px; height: 60px; background: rgba(37,99,235,0.1); color: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 12px; }
.sidebar-profile .name { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.sidebar-profile .email { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

.sidebar-menu { list-style: none; }
.sidebar-menu li a { display: block; padding: 16px 20px; font-size: 0.95rem; font-weight: 600; color: var(--text-muted); border-bottom: 1px solid var(--border); transition: 0.3s; text-decoration: none; border-left: 3px solid transparent; }
.sidebar-menu li:last-child a { border-bottom: none; }
.sidebar-menu li a:hover { color: var(--accent); background: rgba(37,99,235,0.02); }
.sidebar-menu li a.active { color: var(--accent); background: rgba(37,99,235,0.05); border-left-color: var(--accent); }

/* Main Content Area */
.content-header { margin-bottom: 24px; display: flex; justify-content: space-between; align-items: flex-end; }
.content-title { font-size: 1.4rem; font-weight: 700; color: var(--text); }

/* Filters */
.date-filters { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.filter-btn { padding: 8px 16px; border: 1px solid var(--border); border-radius: 20px; background: var(--card-bg); color: var(--text-muted); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: 0.2s; }
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Order List Cards */
.order-list { display: flex; flex-direction: column; gap: 20px; }
.order-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 24px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); transition: 0.3s; }
.order-card:hover { border-color: rgba(37,99,235,0.3); box-shadow: 0 8px 25px rgba(0,0,0,0.05); }
.order-header { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--border); padding-bottom: 16px; margin-bottom: 16px; font-size: 0.9rem; color: var(--text-muted); }
.order-header .order-num { font-weight: 600; color: var(--text); font-family: 'Rajdhani', sans-serif; letter-spacing: 0.5px; }

.order-body { display: flex; gap: 24px; align-items: center; }
.order-thumb { width: 140px; height: 90px; border-radius: 8px; overflow: hidden; background: #e2e8f0; flex-shrink: 0; }
.order-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-info { flex-grow: 1; }
.status-badge { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; margin-bottom: 8px; }
.status-badge.done { background: rgba(5,150,105,0.1); color: var(--accent2); }
.status-badge.cancel { background: rgba(239,68,68,0.1); color: #ef4444; }

.order-title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; word-break: keep-all; }
.order-price { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.order-price span { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; margin-left: 6px; }

.order-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.btn-outline { padding: 10px 18px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: 0.2s; text-align: center; text-decoration: none; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: rgba(37,99,235,0.03); }
.btn-outline.text-danger:hover { border-color: #ef4444; color: #ef4444; background: rgba(239,68,68,0.03); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.page-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 8px; background: var(--card-bg); color: var(--text-muted); font-weight: 600; text-decoration: none; transition: 0.2s; }
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 4px 10px rgba(37,99,235,0.2); }

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

/* ── FOOTER ── */
footer { border-top:1px solid var(--dark-border); padding:40px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px; background:var(--dark-bg); }
.footer-copy { font-size:0.85rem; color:var(--dark-text-muted); }

/* ── RESPONSIVE ── */
@media(max-width:1024px) {
  .mypage-layout { grid-template-columns: 1fr; }
  .sidebar-profile { display: none; /* 모바일에서는 프로필 영역 숨김 */ }
  .sidebar-menu { display: flex; overflow-x: auto; white-space: nowrap; border-bottom: 1px solid var(--border); }
  .sidebar-menu li a { border-bottom: 3px solid transparent; border-left: none; padding: 12px 20px; }
  .sidebar-menu li a.active { border-left-color: transparent; border-bottom-color: var(--accent); }
}
@media(max-width:900px) {
  nav { padding:0 20px; }
  .nav-links { display:none; flex-direction:column; position:absolute; top:80px; left:0; right:0; background:var(--nav-bg-scrolled); padding:20px; border-bottom:1px solid var(--dark-border); }
  .nav-links.open { display:flex; }
  .nav-links > li { padding: 10px 0; }
  .sub-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; background: rgba(0,0,0,0.2); display: none; margin-top: 10px; }
  .nav-toggle { display:flex; }
  .mypage-header { padding: 100px 20px 30px; }
  .mypage-layout { padding: 0 20px; margin-top: 24px; gap: 24px; }
  
  .order-body { flex-direction: column; align-items: stretch; gap: 16px; }
  .order-thumb { width: 100%; height: 160px; }
  .order-actions { flex-direction: row; }
  .order-actions .btn-outline { flex: 1; }
}