:root {
    --ink: #172033;
    --muted: #687386;
    --line: #e7eaf0;
    --surface: #ffffff;
    --canvas: #f6f7fb;
    --primary: #4f6df5;
    --primary-dark: #3652d4;
    --purple: #8b5cf6;
    --green: #16865c;
    --red: #d54848;
    --radius: 24px;
    --shadow: 0 16px 50px rgba(32, 44, 77, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(79, 109, 245, .28); outline-offset: 3px; }
.container-xl { max-width: 1240px; }
.page-main { min-height: calc(100vh - 240px); }
.narrow { max-width: 980px; }
.narrow-wide { max-width: 1080px; }
.reading-width { max-width: 860px; }

.glass-nav {
    min-height: 76px;
    background: rgba(255, 255, 255, .84);
    border-bottom: 1px solid rgba(224, 228, 237, .8);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 750; letter-spacing: -.03em; font-size: 19px; }
.brand:hover { color: var(--ink); }
.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 12px;
    color: white;
    background: linear-gradient(145deg, #6f87ff, #7058d9);
    box-shadow: 0 8px 22px rgba(89, 99, 221, .24);
    font-size: 18px;
    font-weight: 700;
}
.brand-mark.small { width: 28px; height: 28px; border-radius: 9px; font-size: 13px; margin-right: 8px; }
.navbar .nav-link { color: #596579; border-radius: 999px; padding: 8px 15px !important; font-weight: 500; transition: .2s ease; }
.navbar .nav-link:hover { color: var(--ink); background: #f1f3f8; }
.navbar .nav-link.active { color: var(--primary-dark); background: #edf0ff; }
.nav-actions { display: flex; align-items: center; gap: 10px; padding: 12px 0; }
.credit-pill { display: flex; align-items: center; gap: 7px; padding: 6px 11px; color: #536074; background: #f1f4f8; border-radius: 999px; font-size: 13px; font-weight: 600; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #37b982; box-shadow: 0 0 0 4px rgba(55, 185, 130, .12); }
.avatar-button { border: 0; width: 38px; height: 38px; border-radius: 50%; color: #384466; background: linear-gradient(145deg, #e6eaff, #f3eaff); font-weight: 700; }
.profile-menu { padding: 8px; border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow); min-width: 205px; }
.profile-menu .dropdown-item { border-radius: 10px; padding: 9px 11px; }
.profile-menu .dropdown-item-text { display: flex; flex-direction: column; padding: 8px 11px; }
.profile-menu small, .table-title + small, td > small, .reservation-card small { display: block; color: var(--muted); font-size: 12px; }

.btn { border-radius: 12px; padding: 10px 18px; font-weight: 600; border-color: transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 13px 25px; border-radius: 14px; }
.btn-sm { padding: 6px 12px; border-radius: 9px; }
.btn-primary-gradient { color: #fff; background: linear-gradient(120deg, var(--primary), #715ce6); box-shadow: 0 8px 20px rgba(79, 109, 245, .2); }
.btn-primary-gradient:hover, .btn-primary-gradient:focus { color: #fff; background: linear-gradient(120deg, var(--primary-dark), #6249d3); box-shadow: 0 10px 26px rgba(79, 109, 245, .28); }
.btn-primary-gradient:disabled { color: #fff; opacity: .45; }
.btn-light { background: #f0f2f7; color: #3d4658; }
.btn-light:hover { background: #e7eaf2; color: var(--ink); }
.btn-dark { background: var(--ink); }
.message-stack { padding-top: 18px; }
.alert { border: 0; border-radius: 15px; box-shadow: 0 8px 30px rgba(30, 40, 65, .06); }

.hero { display: grid; grid-template-columns: 1.35fr .8fr; gap: 70px; align-items: center; min-height: 580px; padding-top: 64px; padding-bottom: 70px; }
.eyebrow { display: inline-block; color: var(--primary); font-size: 11px; line-height: 1.4; letter-spacing: .18em; font-weight: 800; margin-bottom: 15px; }
.hero h1 { font-size: clamp(42px, 5vw, 66px); line-height: 1.14; letter-spacing: -.055em; font-weight: 760; margin: 0 0 23px; }
.hero h1 span { color: transparent; background: linear-gradient(105deg, #4b69ee, #9b65d4); -webkit-background-clip: text; background-clip: text; }
.hero-copy > p { max-width: 580px; color: var(--muted); font-size: 18px; line-height: 1.85; }
.search-hero { display: flex; align-items: center; gap: 10px; max-width: 650px; margin-top: 33px; padding: 8px 8px 8px 20px; background: white; border: 1px solid rgba(220, 225, 235, .8); border-radius: 18px; box-shadow: 0 18px 50px rgba(42, 55, 90, .09); }
.search-hero > span { font-size: 27px; color: #8993a6; transform: rotate(-15deg); }
.search-hero input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 8px 4px; }
.search-hero .btn { white-space: nowrap; }
.hero-hints { display: flex; gap: 14px; margin-top: 15px; font-size: 12px; color: #9199a9; }
.hero-hints a { color: #69758b; }
.hero-art { position: relative; height: 370px; perspective: 900px; }
.hero-book { position: absolute; display: flex; flex-direction: column; justify-content: space-between; width: 200px; height: 280px; padding: 28px; border-radius: 9px 20px 20px 9px; box-shadow: 25px 35px 65px rgba(38, 47, 87, .2); }
.book-back { top: 20px; left: 10px; color: #d9e1ff; background: linear-gradient(150deg, #313f7d, #536bc2); transform: rotateY(-18deg) rotateZ(-9deg); }
.book-back span { letter-spacing: .35em; font-size: 13px; }
.book-front { right: 20px; bottom: 12px; color: white; background: linear-gradient(145deg, #8b79e8, #566dda); transform: rotateY(-12deg) rotateZ(8deg); }
.book-front:before { content: ''; position: absolute; inset: 13px; border: 1px solid rgba(255,255,255,.25); border-radius: 4px 13px 13px 4px; }
.book-front span { font-size: 32px; font-weight: 300; letter-spacing: .3em; line-height: 1.5; }
.book-front small { letter-spacing: .15em; opacity: .8; }
.hero-note { position: absolute; right: -8px; top: 20px; display: flex; flex-direction: column; padding: 14px 22px; border: 1px solid rgba(255,255,255,.8); border-radius: 18px; background: rgba(255,255,255,.82); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.hero-note b { font-size: 20px; }
.hero-note span { color: var(--muted); font-size: 12px; }
.floating-orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.orb-one { width: 80px; height: 80px; left: -30px; bottom: 20px; background: #e8ddff; }
.orb-two { width: 35px; height: 35px; right: 20px; bottom: 30px; background: #cfe3ff; }

.content-section { padding-bottom: 80px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading h2 { margin: 0; font-size: 29px; font-weight: 720; letter-spacing: -.035em; }
.section-heading.compact { align-items: center; margin-bottom: 20px; }
.section-heading.compact h2 { font-size: 20px; }
.section-heading > span, .result-count { color: var(--muted); font-size: 13px; }
.section-heading a { color: var(--primary); font-size: 13px; }
.book-card { overflow: hidden; background: var(--surface); border: 1px solid rgba(228, 231, 238, .8); border-radius: var(--radius); transition: transform .25s ease, box-shadow .25s ease; }
.book-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.book-cover { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eef0f7; }
.book-cover img, .detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-placeholder { position: relative; display: flex; flex-direction: column; justify-content: flex-end; width: 100%; height: 100%; padding: 26px; overflow: hidden; color: #34436e; background: linear-gradient(145deg, #edf1ff, #e9e4f7); }
.book-card:nth-child(3n+2) .cover-placeholder { color: #385b57; background: linear-gradient(145deg, #e9f5f0, #e7edf3); }
.book-card:nth-child(3n+3) .cover-placeholder { color: #755344; background: linear-gradient(145deg, #f8eee6, #f1e8f0); }
.cover-placeholder:after { content: ''; position: absolute; width: 150px; height: 150px; right: -55px; top: -55px; border: 30px solid rgba(255,255,255,.32); border-radius: 50%; }
.cover-placeholder strong { max-width: 90%; font-size: 23px; line-height: 1.35; letter-spacing: -.03em; }
.cover-placeholder small { margin-top: 7px; opacity: .7; }
.cover-category { position: absolute; top: 24px; left: 26px; font-size: 10px; letter-spacing: .12em; opacity: .65; }
.book-info { padding: 20px 22px 23px; }
.soft-tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; color: #5365aa; background: #eef1ff; font-size: 11px; font-weight: 650; }
.availability { color: var(--green); font-size: 11px; white-space: nowrap; }
.availability.unavailable { color: #9a6570; }
.book-info h3 { margin: 13px 0 3px; font-size: 19px; line-height: 1.45; font-weight: 680; letter-spacing: -.02em; }
.book-info h3 a:hover { color: var(--primary); }
.book-info p { margin: 0 0 13px; color: var(--muted); font-size: 13px; }
.text-link { color: var(--primary); font-size: 13px; font-weight: 600; }
.text-link span { margin-left: 5px; }

.page-heading { margin: 58px 0 30px; }
.page-heading .eyebrow { margin-bottom: 10px; }
.page-heading h1 { margin: 0 0 7px; font-size: 38px; line-height: 1.25; font-weight: 740; letter-spacing: -.045em; }
.page-heading p { margin: 0; color: var(--muted); }
.content-card { padding: 28px; margin-bottom: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 5px 20px rgba(36, 47, 75, .025); }
.modern-table { margin: 0; --bs-table-bg: transparent; }
.modern-table thead th { padding: 12px 14px; border-bottom: 1px solid var(--line); color: #8a93a3; font-size: 11px; letter-spacing: .04em; font-weight: 600; white-space: nowrap; }
.modern-table tbody td { padding: 17px 14px; border-bottom-color: #eff1f5; color: #566074; font-size: 13px; }
.modern-table tbody tr:last-child td { border-bottom: 0; }
.table-title { display: block; color: var(--ink); font-size: 14px; font-weight: 650; }
.mono { font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px !important; }
.status-badge { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: #f0f2f6; color: #667085; font-size: 11px; white-space: nowrap; }
.status-borrowed, .status-reserved, .status-available { color: #4260c4; background: #edf1ff; }
.status-overdue, .status-no_show, .status-lost { color: #b74c52; background: #fff0f0; }
.status-returned, .status-checked_in { color: #258062; background: #eaf8f1; }
.status-cancelled, .status-offline { color: #737986; background: #f0f1f3; }
.table-actions { display: flex; justify-content: flex-end; gap: 6px; }
.credit-link { color: var(--primary); white-space: nowrap; }
.segmented-tabs, .topic-tabs { display: flex; gap: 5px; width: fit-content; max-width: 100%; overflow-x: auto; margin-bottom: 20px; padding: 5px; border-radius: 14px; background: #e9ecf3; }
.segmented-tabs a, .topic-tabs a { padding: 8px 17px; border-radius: 10px; color: #687386; font-size: 13px; white-space: nowrap; }
.segmented-tabs a.active, .topic-tabs a.active { color: var(--ink); background: white; box-shadow: 0 3px 12px rgba(36, 46, 70, .08); font-weight: 600; }
.empty-state { padding: 70px 25px; text-align: center; border: 1px dashed #dce0e9; border-radius: var(--radius); background: rgba(255,255,255,.55); }
.empty-state.small { padding: 35px 20px; border: 0; background: transparent; }
.empty-state h3, .empty-state h1 { margin: 0 0 8px; font-weight: 680; }
.empty-state p { color: var(--muted); }
.empty-icon { font-size: 45px; color: #aab2c2; }
.error-page { margin: 90px auto; max-width: 700px; background: white; }

.breadcrumb-nav { display: flex; gap: 9px; margin: 36px 0 25px; color: #8a93a4; font-size: 12px; white-space: nowrap; overflow: hidden; }
.breadcrumb-nav a { color: var(--primary); }
.detail-hero { display: grid; grid-template-columns: 320px 1fr; gap: 48px; padding: 38px; background: white; border: 1px solid var(--line); border-radius: 30px; }
.detail-cover { overflow: hidden; height: 360px; border-radius: 19px; box-shadow: 0 18px 40px rgba(39, 50, 80, .12); }
.detail-cover .cover-placeholder strong { font-size: 30px; }
.detail-copy { padding: 12px 0; }
.detail-copy h1 { margin: 17px 0 3px; font-size: 40px; line-height: 1.25; letter-spacing: -.045em; }
.detail-author { color: var(--muted); font-size: 17px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 28px; margin: 25px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-meta div { display: flex; flex-direction: column; }
.detail-meta small { color: #9199a8; font-size: 11px; }
.detail-meta strong { font-size: 13px; }
.detail-summary { color: #5b6678; line-height: 1.9; }
.borrow-note { display: block; margin-top: 12px; color: #8b94a3; }
.comments-section { margin: 38px 0 70px; }
.comment-editor { padding: 20px; margin-bottom: 20px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.comment-editor > div:last-child { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.comment-editor small { color: var(--muted); }
.comment-item { display: flex; gap: 15px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.comment-avatar, .post-author-avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; color: #4f5d8b; background: #e8ecfa; font-weight: 700; }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: center; gap: 12px; }
.comment-meta time { color: #9aa2b0; font-size: 11px; }
.comment-body > p { margin: 9px 0; color: #525e71; white-space: pre-wrap; }
.comment-actions { display: flex; align-items: center; gap: 15px; }
.comment-actions form { display: inline; }
.link-button { padding: 0; border: 0; color: #7d8798; background: transparent; font-size: 12px; }
.link-button:hover { color: var(--primary); }
.link-button.danger:hover { color: var(--red); }
.reply-editor { display: flex; align-items: flex-end; gap: 8px; margin: 12px 0; }
.reply-editor textarea { flex: 1; }
.nested-comment { margin-top: 16px; padding: 16px 18px; border-radius: 14px; background: #eef1f6; }
.nested-comment p { margin-bottom: 6px; }
.login-prompt { padding: 20px; border-radius: 15px; background: #eef1f7; text-align: center; }
.login-prompt a { color: var(--primary); }

.auth-shell { display: grid; grid-template-columns: 1fr 460px; gap: 70px; align-items: center; max-width: 1000px; min-height: 720px; padding-top: 50px; padding-bottom: 60px; }
.auth-visual h1 { font-size: 55px; line-height: 1.2; letter-spacing: -.05em; }
.auth-visual > p { color: var(--muted); font-size: 17px; }
.auth-quote { margin-top: 80px; padding-left: 20px; border-left: 3px solid #9bacfa; color: #667085; font-size: 14px; }
.auth-quote span { display: block; margin-top: 8px; color: #949cab; font-size: 12px; }
.auth-card, .form-card { padding: 38px; border: 1px solid var(--line); border-radius: 28px; background: white; box-shadow: var(--shadow); }
.auth-card-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 30px; }
.auth-card-heading h2 { margin: 0; font-size: 24px; font-weight: 720; }
.auth-card-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.form-field { margin-bottom: 20px; }
.form-field > label, .field-label-row label { display: block; margin-bottom: 7px; color: #414c60; font-size: 13px; font-weight: 600; }
.form-field > label span { color: var(--red); margin-left: 3px; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; }
.field-label-row a { color: var(--primary); font-size: 12px; }
.form-control, .form-select { min-height: 46px; border-color: #dfe3eb; border-radius: 12px; background-color: #fbfcfe; font-size: 14px; }
.form-control:focus, .form-select:focus { border-color: #98a9f8; background: white; box-shadow: 0 0 0 4px rgba(79,109,245,.1); }
textarea.form-control { min-height: auto; }
.form-help { display: block; margin-top: 6px; color: #8a93a3; font-size: 11px; }
.form-help ul { margin: 5px 0; padding-left: 18px; }
.errorlist { margin: 5px 0 0; padding: 0; list-style: none; color: var(--red); font-size: 12px; }
.form-errors { padding: 12px 15px; margin-bottom: 18px; border-radius: 12px; background: #fff1f1; }
.form-errors .errorlist { margin: 0; }
.auth-switch { margin: 22px 0 0; color: var(--muted); text-align: center; font-size: 13px; }
.auth-switch a { color: var(--primary); font-weight: 600; }
.form-page { max-width: 580px; padding-top: 65px; padding-bottom: 80px; }
.form-card.wide { max-width: 750px; margin: auto; }
.form-page:has(.form-card.wide) { max-width: 810px; }
.form-heading { margin-bottom: 28px; }
.form-heading .eyebrow { margin-bottom: 10px; }
.form-heading h1 { margin: 0 0 8px; font-size: 32px; letter-spacing: -.04em; }
.form-heading p { margin: 0; color: var(--muted); }
.profile-grid { display: grid; grid-template-columns: 260px 1fr; gap: 25px; margin-bottom: 70px; }
.profile-summary { padding: 30px; height: fit-content; border-radius: var(--radius); background: linear-gradient(150deg, #e9edff, #f3effc); text-align: center; }
.large-avatar { display: grid; place-items: center; width: 78px; height: 78px; margin: 0 auto 15px; border-radius: 26px; color: white; background: linear-gradient(145deg, #6b82ed, #9270d9); font-size: 30px; box-shadow: 0 13px 30px rgba(82,94,180,.2); }
.profile-summary h2 { margin: 0; font-size: 21px; }
.profile-summary > p { color: var(--muted); }
.credit-summary { display: flex; flex-direction: column; margin-top: 25px; padding: 20px; border-radius: 17px; background: rgba(255,255,255,.72); }
.credit-summary small { color: var(--muted); }
.credit-summary strong { font-size: 38px; line-height: 1.2; }
.credit-summary span { color: var(--primary); font-size: 11px; }
.credit-hero { padding: 35px; margin-bottom: 25px; border-radius: var(--radius); color: white; background: linear-gradient(130deg, #4b64d5, #8267cf); box-shadow: 0 20px 45px rgba(74,86,172,.2); }
.credit-hero > div:first-child { display: flex; align-items: baseline; gap: 10px; }
.credit-hero small { opacity: .8; margin-right: auto; }
.credit-hero strong { font-size: 58px; line-height: 1; }
.credit-hero > div > span { opacity: .6; }
.credit-meter { height: 7px; margin: 25px 0 14px; border-radius: 99px; background: rgba(255,255,255,.2); overflow: hidden; }
.credit-meter span { display: block; height: 100%; border-radius: inherit; background: white; }
.credit-hero p { margin: 0; opacity: .8; font-size: 13px; }
.timeline-item { display: flex; align-items: center; gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.timeline-item:last-child { border: 0; }
.timeline-dot { width: 10px; height: 10px; border-radius: 50%; background: #e37479; box-shadow: 0 0 0 5px #fff0f0; }
.timeline-dot.positive { background: #38a87b; box-shadow: 0 0 0 5px #eaf8f2; }
.timeline-content { flex: 1; }
.timeline-content > div { display: flex; justify-content: space-between; gap: 15px; }
.timeline-content time, .timeline-content p { color: #929aa8; font-size: 11px; }
.timeline-content p { margin: 2px 0 0; }
.credit-delta { color: var(--red); font-size: 20px; font-weight: 700; text-align: right; }
.credit-delta.positive { color: var(--green); }
.credit-delta small { display: block; color: #929aa8; font-size: 10px; font-weight: 400; }

.metric-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin-bottom: 25px; }
.metric-card { position: relative; overflow: hidden; padding: 23px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.metric-card:after { content: ''; position: absolute; width: 65px; height: 65px; right: -20px; top: -20px; border-radius: 50%; background: currentColor; opacity: .07; }
.metric-card small, .metric-card span { display: block; color: var(--muted); font-size: 11px; }
.metric-card strong { display: block; margin: 8px 0 4px; font-size: 34px; line-height: 1.2; }
.accent-blue { color: #5673e6; }.accent-green { color: #35a17b; }.accent-red { color: #db646a; }.accent-purple { color: #8a68d5; }.accent-orange { color: #d89549; }
.metric-card strong { color: var(--ink); }
.dashboard-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 25px; margin-bottom: 60px; }
.rank-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.rank-item:last-child { border: 0; }
.rank-number { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; color: #5b6fbf; background: #edf0fc; font-size: 12px; font-weight: 700; }
.rank-item > div { flex: 1; }
.rank-item small { display: block; color: var(--muted); }
.rank-item > span:last-child { color: var(--muted); font-size: 12px; }
.filter-bar { display: grid; grid-template-columns: 160px 1fr 200px auto auto; gap: 10px; margin-bottom: 20px; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: white; }

.seat-hero { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin: 55px 0 30px; padding: 42px; border-radius: 28px; background: linear-gradient(125deg, #e9efff, #f1ebf8); }
.seat-hero h1 { margin: 0 0 10px; font-size: 39px; letter-spacing: -.045em; }
.seat-hero p { margin: 0; color: var(--muted); }
.date-picker-card { flex: 0 0 300px; padding: 20px; border: 1px solid rgba(255,255,255,.9); border-radius: 18px; background: rgba(255,255,255,.8); box-shadow: var(--shadow); }
.date-picker-card label { font-size: 12px; font-weight: 650; margin-bottom: 6px; }
.date-picker-card .btn { width: 100%; margin-top: 9px; }
.seat-legend { display: flex; gap: 20px; margin-bottom: 15px; color: var(--muted); font-size: 12px; }
.seat-legend span { display: flex; align-items: center; gap: 7px; }
.seat-legend a { margin-left: auto; color: var(--primary); }
.seat-dot { width: 8px; height: 8px; border-radius: 50%; }
.seat-dot.available { background: #6982e8; }.seat-dot.occupied { background: #d0d4dc; }
.seat-table thead th { text-align: center; }
.seat-table thead th:first-child { text-align: left; }
.seat-table td { text-align: center; }
.seat-table td:first-child { text-align: left; }
.seat-name { display: block; color: var(--ink); font-weight: 650; }
.seat-slot { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 105px; padding: 8px 12px; border: 0; border-radius: 10px; font-size: 12px; }
.seat-slot.available { color: #4b63c2; background: #edf1ff; }
.seat-slot.available:hover { background: #dfe6ff; color: #354da9; }
.seat-slot.occupied { color: #a0a6b1; background: #f1f2f4; }
.rule-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 25px 0 60px; }
.rule-notes > div { padding: 20px 24px; border-left: 2px solid #d8def4; }
.rule-notes p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.reservation-list { margin-bottom: 50px; }
.reservation-card { display: flex; align-items: center; gap: 22px; padding: 24px; margin-bottom: 15px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.reservation-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 72px; height: 76px; flex: 0 0 auto; border-radius: 16px; background: #eef1fc; }
.reservation-date strong { font-size: 28px; line-height: 1.2; }
.reservation-date span { color: var(--muted); font-size: 10px; }
.reservation-info { flex: 1; }
.reservation-info h2 { margin: 8px 0 2px; font-size: 19px; }
.reservation-info p { margin: 0; color: var(--muted); font-size: 12px; }
.reservation-actions { display: flex; gap: 8px; }

.community-heading { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin: 60px 0 30px; }
.community-heading h1 { margin: 0 0 10px; font-size: 42px; letter-spacing: -.045em; }
.community-heading p { margin: 0; color: var(--muted); }
.post-card { display: flex; gap: 18px; padding: 27px; margin-bottom: 15px; border: 1px solid var(--line); border-radius: 21px; background: white; transition: .2s ease; }
.post-card:hover { border-color: #d6dcf1; box-shadow: 0 12px 35px rgba(35,46,75,.05); }
.post-main { flex: 1; min-width: 0; }
.post-meta { display: flex; align-items: center; gap: 11px; color: #6f798a; font-size: 12px; }
.post-meta time { color: #9aa2af; }
.post-main h2 { margin: 12px 0 8px; font-size: 21px; letter-spacing: -.02em; }
.post-main > p { margin: 0; color: #626d7e; }
.post-stats { display: flex; gap: 18px; margin-top: 18px; color: #929aa8; font-size: 12px; }
.post-stats a { margin-left: auto; color: var(--primary); }
.post-detail { padding: 35px; margin-bottom: 35px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.post-detail h1 { margin: 20px 0; font-size: 35px; line-height: 1.35; letter-spacing: -.035em; }
.post-content { color: #465266; font-size: 16px; line-height: 2; }
.post-detail-actions { display: flex; gap: 10px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }

.pagination-wrap { display: flex; align-items: center; justify-content: center; gap: 15px; margin: 35px 0 60px; }
.page-arrow, .page-numbers a, .page-current { display: inline-grid; place-items: center; min-width: 35px; height: 35px; padding: 0 8px; border-radius: 10px; background: white; border: 1px solid var(--line); font-size: 12px; }
.page-arrow.disabled { opacity: .4; pointer-events: none; }
.page-numbers { display: flex; gap: 5px; }
.page-current { color: white; background: var(--ink); border-color: var(--ink); }
.page-total { color: var(--muted); font-size: 11px; }
.site-footer { padding: 35px 0; border-top: 1px solid var(--line); background: #f0f2f6; }
.site-footer .container-xl { display: flex; align-items: center; gap: 30px; }
.site-footer strong { font-size: 14px; }
.site-footer p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.footer-links { display: flex; gap: 20px; margin-left: auto; color: #667085; font-size: 12px; }
.site-footer .container-xl > small { color: #969eac; }

.import-rules { padding: 20px; margin-bottom: 25px; border-radius: 16px; background: #f3f5fa; color: #5d687b; font-size: 13px; }
.import-rules p { margin: 7px 0; }
.import-rules ul { padding-left: 20px; }
.admin-search { grid-template-columns: 1fr auto auto auto; }
.admin-link-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 60px; }
.admin-link-card { display: flex; flex-direction: column; padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: white; transition: .2s ease; }
.admin-link-card:hover { border-color: #cfd7f4; box-shadow: var(--shadow); transform: translateY(-2px); }
.admin-link-card > span { color: var(--primary); font-size: 11px; font-weight: 700; }
.admin-link-card strong { margin: 8px 0 14px; color: var(--ink); font-size: 19px; }
.admin-link-card small { color: var(--muted); }

@media (max-width: 1100px) {
    .metric-grid { grid-template-columns: repeat(3, 1fr); }
    .hero { gap: 25px; }
    .hero-art { transform: scale(.85); }
    .navbar-collapse { padding: 12px 0; }
    .navbar-nav { padding-bottom: 10px; }
}
@media (max-width: 767px) {
    :root { --radius: 19px; }
    .glass-nav { min-height: 66px; }
    .brand { font-size: 17px; }
    .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
    .nav-actions { flex-wrap: wrap; }
    .hero { display: block; min-height: 0; padding-top: 60px; padding-bottom: 55px; }
    .hero h1 { font-size: 42px; }
    .hero-copy > p { font-size: 16px; }
    .hero-art { display: none; }
    .search-hero { flex-wrap: wrap; padding: 9px; border-radius: 16px; }
    .search-hero > span { margin-left: 8px; }
    .search-hero input { width: calc(100% - 50px); flex: auto; }
    .search-hero .btn { width: 100%; }
    .hero-hints { flex-wrap: wrap; }
    .section-heading h2 { font-size: 25px; }
    .page-heading { margin-top: 38px; }
    .page-heading h1 { font-size: 32px; }
    .page-heading.row .col-auto { margin-top: 15px; }
    .content-card { padding: 18px; }
    .flush-mobile { padding: 8px; }
    .flush-mobile .modern-table thead th, .flush-mobile .modern-table tbody td { padding-left: 10px; padding-right: 10px; }
    .detail-hero { grid-template-columns: 1fr; gap: 25px; padding: 22px; }
    .detail-cover { height: 280px; }
    .detail-copy h1 { font-size: 32px; }
    .detail-meta { gap: 18px; }
    .auth-shell { display: block; min-height: 0; padding-top: 40px; }
    .auth-visual { display: none; }
    .auth-card, .form-card { padding: 25px; }
    .form-page { padding-top: 40px; }
    .profile-grid { grid-template-columns: 1fr; }
    .profile-summary { display: grid; grid-template-columns: auto 1fr; text-align: left; align-items: center; column-gap: 18px; }
    .large-avatar { grid-row: span 3; margin: 0; }
    .profile-summary > p { margin: 0; }
    .profile-summary > .soft-tag { width: fit-content; }
    .credit-summary { grid-column: 1 / -1; text-align: center; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .filter-bar { grid-template-columns: 1fr 1fr; }
    .admin-search { grid-template-columns: 1fr 1fr; }
    .admin-link-grid { grid-template-columns: 1fr; }
    .filter-bar > div { grid-column: span 2; }
    .seat-hero { display: block; padding: 25px; }
    .seat-hero h1 { font-size: 31px; }
    .date-picker-card { margin-top: 25px; width: 100%; }
    .seat-table { min-width: 650px; }
    .rule-notes { grid-template-columns: 1fr; gap: 0; }
    .reservation-card { flex-wrap: wrap; gap: 14px; }
    .reservation-info { min-width: 180px; }
    .reservation-actions { width: 100%; }
    .reservation-actions form, .reservation-actions .btn { flex: 1; width: 100%; }
    .community-heading { display: block; margin-top: 40px; }
    .community-heading h1 { font-size: 34px; }
    .community-heading .btn { margin-top: 22px; }
    .post-card { padding: 20px; }
    .post-author-avatar { display: none; }
    .post-detail { padding: 24px; }
    .post-detail h1 { font-size: 29px; }
    .post-stats { flex-wrap: wrap; }
    .site-footer .container-xl { flex-wrap: wrap; }
    .footer-links { margin-left: 0; }
    .site-footer .container-xl > small { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
