/* ==========================================================================
   ELT VOCAL — Monochrome Glassmorphism Design System
   ========================================================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital@1&family=Noto+Serif+KR:wght@600;700;900&display=swap');

:root {
    --black: #0a0a0a;
    --near-black: #141414;
    --charcoal: #2b2b2b;
    --gray-700: #4a4a4a;
    --gray-500: #8a8a8a;
    --gray-300: #d4d4d4;
    --gray-100: #f2f2f2;
    --white: #ffffff;

    --bg: var(--white);
    --fg: var(--black);
    --muted: var(--gray-700);

    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-bg-strong: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);

    --dark-glass-bg: rgba(20, 20, 20, 0.55);
    --dark-glass-border: rgba(255, 255, 255, 0.12);

    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;

    --container: 1160px;
    --nav-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

h1, h2, h3, h4, h5 {
    font-family: 'Noto Serif KR', 'Pretendard', serif;
}

body {
    margin: 0;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    caret-color: transparent;
}
input, textarea, [contenteditable] { caret-color: auto; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img {
    max-width: 100%;
    display: block;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
}
button { font-family: inherit; cursor: pointer; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Background ambient blobs (monochrome) ---------- */
.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.bg-orbs span {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
}
.bg-orbs span:nth-child(1) {
    width: 420px; height: 420px;
    background: radial-gradient(circle, #d9d9d9, transparent 70%);
    top: -120px; left: -100px;
}
.bg-orbs span:nth-child(2) {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #ececec, transparent 70%);
    bottom: -180px; right: -140px;
}
.bg-orbs span:nth-child(3) {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #e4e4e4, transparent 70%);
    top: 40%; left: 60%;
}

/* ---------- Glass primitives ---------- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-md);
}

.glass-dark {
    background: var(--dark-glass-bg);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid var(--dark-glass-border);
    color: var(--white);
    border-radius: var(--radius-md);
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: var(--black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    white-space: nowrap;
    color: var(--white);
}
.nav-links {
    display: flex;
    gap: 0;
    align-items: stretch;
    flex-shrink: 1;
}
.nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--nav-h);
    padding: 0 16px;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover {
    background: var(--white);
    color: var(--black);
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.6rem;
    flex-shrink: 0;
}

@media (max-width: 1180px) {
    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        flex-direction: column;
        background: var(--black);
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.25s ease;
    }
    .nav-links.open { transform: translateY(0); opacity: 1; }
    .nav-links a { width: 100%; height: auto; padding: 14px; justify-content: center; text-align: center; }
    .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-h) + 40px) 24px 60px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.06), transparent 45%),
        linear-gradient(160deg, var(--black) 0%, var(--near-black) 55%, #1c1c1c 100%);
    color: var(--white);
    position: relative;
}
.hero-inner { max-width: 780px; margin: 0 auto; }
.hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}
.hero-logo img {
    display: block;
    width: clamp(260px, 34vw, 400px);
    height: auto;
    /* 로고가 검정색+투명배경이라 어두운 히어로 위에서는 흰색으로 반전시켜 자연스럽게 녹아들게 함 */
    filter: invert(1) brightness(1.15) drop-shadow(0 10px 30px rgba(0, 0, 0, 0.45));
}
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: var(--white);
    color: var(--black);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(255,255,255,0.2); }
.btn-outline {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.35);
    color: var(--white);
    backdrop-filter: blur(10px);
}
.btn-outline:hover { background: rgba(255,255,255,0.16); }
.btn-dark {
    background: var(--black);
    color: var(--white);
}
.btn-dark:hover { box-shadow: 0 10px 24px rgba(0,0,0,0.25); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; scroll-margin-top: var(--nav-h); }
.hero { scroll-margin-top: var(--nav-h); }
.section-tight { padding: 64px 0; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-header .eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--gray-500);
    margin-bottom: 12px;
    text-transform: uppercase;
}
.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 12px;
}
.section-header p { color: var(--muted); font-size: 1.02rem; }
.section-alt { background: var(--gray-100); }
.section-dark {
    background: linear-gradient(160deg, var(--black), var(--near-black));
    color: var(--white);
}

/* ---------- Grid & Cards ---------- */
.grid {
    display: grid;
    gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
    padding: 32px 26px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); }
.card .icon {
    width: 52px; height: 52px;
    border-radius: 16px;
    background: var(--black);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 18px;
}
.card-num {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gray-300);
    -webkit-text-stroke: 1.5px var(--black);
    margin-bottom: 12px;
    line-height: 1;
}
.monogram {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2.4rem;
    color: var(--charcoal);
    background: var(--gray-100);
}
.card h3 { margin: 0 0 10px; font-size: 1.15rem; font-weight: 800; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Teacher card */
.teacher-card { text-align: center; padding: 28px 22px; }
.teacher-photo {
    width: 140px; height: 140px;
    border-radius: 50%;
    margin: 0 auto 18px;
    background: var(--gray-100);
    background-size: cover;
    background-position: center;
    border: 3px solid var(--white);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-500);
    font-size: 2.2rem;
    overflow: hidden;
}
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher-card h3 { margin: 0 0 4px; font-size: 1.1rem; font-weight: 800; }
.teacher-card .role { color: var(--muted); font-size: 0.88rem; margin-bottom: 12px; }
.teacher-card .summary { font-size: 0.9rem; color: var(--gray-700); margin-bottom: 16px; }

/* Review card */
.review-card { padding: 26px; }
.review-card .badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--black);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.review-card h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 800; }
.review-card p { color: var(--gray-700); font-size: 0.92rem; margin-bottom: 14px; }
.review-card .author { font-size: 0.85rem; color: var(--gray-500); font-weight: 600; }

/* Notice list */
.notice-list { display: flex; flex-direction: column; gap: 12px; }
.notice-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    gap: 16px;
}
.notice-item .pin {
    font-size: 0.7rem;
    font-weight: 800;
    background: var(--black);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 999px;
    margin-right: 10px;
}
.notice-item .title { font-weight: 700; flex: 1; }
.notice-item .date { color: var(--gray-500); font-size: 0.85rem; white-space: nowrap; }
.notice-item:hover { background: var(--glass-bg-strong); }

/* Curriculum tabs */
.tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn {
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 700;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--charcoal);
}
.tab-btn.active { background: var(--black); color: var(--white); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadein 0.35s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: translateY(0);} }

.course-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    margin-bottom: 14px;
    gap: 20px;
}
.course-row h4 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 800; }
.course-row p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.course-row .tag {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--black);
    color: var(--white);
    white-space: nowrap;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.gallery-item {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    background: var(--gray-100);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* Info / hours table */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 12px 8px; border-bottom: 1px solid var(--glass-border); font-size: 0.98rem; }
.hours-table td:first-child { font-weight: 800; width: 70px; }
.hours-table tr.today { background: rgba(0,0,0,0.04); }
.hours-table tr.closed td { color: var(--gray-500); }

.info-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .info-grid { grid-template-columns: 1fr; } }
.info-block { padding: 32px; }
.info-block .row { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.info-block .row .label { font-weight: 800; min-width: 84px; color: var(--charcoal); }
.info-block .row .value { color: var(--gray-700); }

/* Forms */
.form-grid { display: grid; gap: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 0.92rem; }
.field input, .field textarea, .field select {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.7);
    font-family: inherit;
    font-size: 0.95rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--black);
}

/* Alerts */
.alert { padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.92rem; font-weight: 600; }
.alert-success { background: rgba(0,0,0,0.06); border: 1px solid var(--glass-border); }
.alert-error { background: rgba(200,0,0,0.06); border: 1px solid rgba(200,0,0,0.2); color: #a30000; }

/* Footer */
.site-footer {
    background: var(--black);
    color: var(--gray-300);
    padding: 64px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-weight: 800; font-size: 1.2rem; color: var(--white); margin-bottom: 10px; }
.footer-col h5 { color: var(--white); font-size: 0.9rem; margin: 0 0 16px; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-col p, .footer-col a { color: var(--gray-500); font-size: 0.9rem; margin: 0 0 10px; display: block; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    font-size: 0.82rem;
    color: var(--gray-500);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* Floating quick contact */
.quick-contact {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.quick-contact a.quick-btn {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Page hero (sub pages) */
.page-hero {
    padding: calc(var(--nav-h) + 56px) 24px 56px;
    text-align: center;
    background: linear-gradient(160deg, var(--black), var(--near-black));
    color: var(--white);
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin: 0 0 10px; }
.page-hero .hero-logo { margin-bottom: 20px; }
.page-hero .hero-logo img { width: clamp(120px, 16vw, 160px); }
.page-hero p { color: var(--gray-500); }
.breadcrumb { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--white); }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

/* Admin */
.admin-body { background: var(--gray-100); min-height: 100vh; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 240px;
    background: var(--black);
    color: var(--white);
    padding: 28px 18px;
    flex-shrink: 0;
}
.admin-sidebar .brand { color: var(--white); margin-bottom: 30px; padding: 0 10px; }
.admin-sidebar a {
    display: block;
    padding: 9px 14px;
    border-radius: 10px;
    margin-bottom: 2px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gray-300);
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.12); color: var(--white); }
.admin-nav-group { margin: 18px 10px 6px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; color: var(--gray-500); }
.admin-badge { background: var(--white); color: var(--black); border-radius: 999px; padding: 1px 7px; font-size: 0.72rem; font-weight: 800; }
.admin-main { flex: 1; padding: 32px 40px; max-width: 1100px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.admin-topbar h1 { font-size: 1.5rem; margin: 0; }
.admin-card { background: var(--white); border-radius: var(--radius-md); padding: 28px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); margin-bottom: 24px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--gray-100); font-size: 0.92rem; }
.admin-table th { color: var(--gray-500); font-weight: 700; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.05em; }
.admin-table img.thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.admin-actions { display: flex; gap: 8px; }
.badge-chip { padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; background: var(--gray-100); }
.login-wrap {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, var(--black), var(--near-black));
    padding: 20px;
}
.login-card,
.login-card.glass {
    width: 100%; max-width: 380px; padding: 40px 32px; color: var(--fg);
    background: var(--white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}
.login-card h1 { text-align: center; margin-bottom: 4px; font-size: 1.4rem; }
.login-card .sub { text-align: center; color: var(--gray-500); margin-bottom: 28px; font-size: 0.88rem; }

/* ---------- Student login modal (팝업 + 살짝 어두운 배경) ---------- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.4);
    animation: fadein 0.2s ease;
}
.modal-overlay.open { display: flex; }
.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--gray-500);
    cursor: pointer;
}
.modal-close:hover { color: var(--black); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } .admin-shell { flex-direction: column; } .admin-sidebar { width: 100%; } .admin-main { padding: 24px; } }
.stat-card { background: var(--white); border-radius: var(--radius-md); padding: 22px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.stat-card .num { font-size: 1.8rem; font-weight: 800; }
.stat-card .label { color: var(--gray-500); font-size: 0.85rem; }

/* ---------- Pass (수강권) cards ---------- */
.pass-card { position: relative; text-align: center; padding: 36px 24px 28px; }
.pass-badge {
    position: absolute; top: 14px; right: 14px;
    background: var(--black); color: var(--white);
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em;
    padding: 4px 12px; border-radius: 999px;
}
.pass-unit { color: var(--gray-700); margin: 6px 0 14px; font-size: 0.95rem; }
.pass-off { margin-left: 8px; font-size: 0.78rem; font-weight: 800; border: 1px solid var(--black); border-radius: 999px; padding: 2px 8px; }
.pass-price { font-size: 1.7rem; font-weight: 800; }
.pass-price s { display: block; font-size: 0.9rem; font-weight: 500; color: var(--gray-500); }
.pass-meta { margin-top: 12px; color: var(--gray-500); font-size: 0.88rem; }

/* ---------- Student app (예약 앱 형태: 하단 3개 탭) ---------- */
/* 하단 탭바는 홈 화면에 설치된 앱(html.is-pwa)에서만 보인다. PC·모바일 브라우저에서는 숨김. */
.app-wrap { padding-bottom: 96px; }
.app-tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    display: none; background: var(--black);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-bottom: env(safe-area-inset-bottom);
}
.app-tabs a {
    flex: 1; text-align: center; padding: 15px 4px;
    color: var(--gray-300); font-weight: 700; font-size: 0.92rem;
}
.app-tabs a.active { background: var(--white); color: var(--black); }
.app-card { background: var(--white); border-radius: var(--radius-md); padding: 22px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); margin-bottom: 18px; }
.app-card h3 { margin: 0 0 12px; font-size: 1.05rem; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pill {
    padding: 9px 16px; border-radius: 999px; border: 1px solid var(--gray-300);
    font-weight: 700; font-size: 0.88rem; background: var(--white); color: var(--black);
}
.pill.active { background: var(--black); color: var(--white); border-color: var(--black); }
.date-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; -webkit-overflow-scrolling: touch; }
.date-chip {
    flex: 0 0 auto; width: 58px; text-align: center; padding: 10px 0; border-radius: 12px;
    border: 1px solid var(--gray-300); background: var(--white); color: var(--black); font-weight: 700;
}
.date-chip small { display: block; font-size: 0.72rem; font-weight: 600; color: var(--gray-500); }
.date-chip.active { background: var(--black); color: var(--white); border-color: var(--black); }
.date-chip.active small { color: var(--gray-300); }
.date-chip.empty { opacity: 0.4; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.slot-btn {
    padding: 13px 8px; border-radius: 12px; border: 1px solid var(--black); background: var(--white);
    font-weight: 700; font-size: 0.95rem; color: var(--black); cursor: pointer; text-align: center;
}
.slot-btn:hover { background: var(--black); color: var(--white); }
.slot-btn small { display: block; font-size: 0.72rem; font-weight: 500; opacity: 0.7; }
.slot-btn.off { border-color: var(--gray-300); color: var(--gray-500); background: var(--gray-100); cursor: not-allowed; }
.slot-btn.off:hover { background: var(--gray-100); color: var(--gray-500); }
.slot-btn.off.wait { cursor: pointer; border-style: dashed; border-color: var(--black); color: var(--black); background: var(--white); }
.slot-btn.off.wait:hover { background: var(--black); color: var(--white); }
.app-list-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
.app-list-item:last-child { border-bottom: none; }
.app-list-item .when { font-weight: 800; }
.app-list-item .sub { font-size: 0.85rem; color: var(--gray-500); }
.app-btn { white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--black); background: var(--white); color: var(--black); font-weight: 700; font-size: 0.82rem; cursor: pointer; }
.app-btn.dark { background: var(--black); color: var(--white); }
.app-btn.danger { border-color: #a30000; color: #a30000; }

/* ---------- 레슨일기 페이지 (홈페이지 섹션 톤과 통일) ---------- */
.page-hero .hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.btn-ghost { background: transparent; border-color: var(--black); color: var(--black); }
.btn-ghost:hover { background: var(--black); color: var(--white); }
.my-panel { padding: 28px 30px; }
.my-panel:hover { transform: none; box-shadow: var(--glass-shadow); }
.my-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.my-panel-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.my-panel-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; color: var(--gray-500); text-transform: uppercase; margin-bottom: 6px; }
.my-panel-next-when { font-size: 1.15rem; font-weight: 800; }
.my-panel-quick { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--glass-border); }
.my-panel-quick .my-panel-label { margin-bottom: 12px; }
.my-panel-more { margin-top: 14px; font-size: 0.85rem; font-weight: 700; }
.my-panel-more a:hover { text-decoration: underline; }
.diary-filter { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; padding: 22px 26px; margin-bottom: 32px; }
.diary-filter .field { flex: 1 1 160px; }
.diary-filter .btn { flex: 0 0 auto; padding: 14px 36px; }

/* ---------- 설치된 앱(PWA) 모드: 레슨 예약 · 연습실 예약 · 내 예약/수강권 화면만 보이게 ---------- */
html.is-pwa { --nav-h: 0px; }
html.is-pwa .app-tabs { display: flex; }
html.is-pwa .navbar,
html.is-pwa .site-footer,
html.is-pwa .quick-contact,
html.is-pwa .breadcrumb,
html.is-pwa .bg-orbs,
html.is-pwa .web-only { display: none !important; }
html.is-pwa .page-hero { padding-top: calc(env(safe-area-inset-top, 0px) + 28px); }
html.is-pwa .page-hero .hero-logo { display: none; }
html.is-pwa .app-wrap { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
