* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, "Noto Sans KR", sans-serif; color: #1c2333; background: #f6f7f9; }
a { color: #274690; }
.topbar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 12px 20px; background: #10182b; }
.topbar .brand { color: #fff; font-weight: 800; text-decoration: none; font-size: 25px; letter-spacing: .2px; white-space: nowrap; }
.topbar .brand span { font-weight: 500; font-size: 17px; opacity: .85; margin-left: 8px; }
.topbar nav { display: flex; align-items: center; flex-wrap: wrap; }
.topbar nav a { color: #cfd8ec; text-decoration: none; margin-left: 16px; font-size: 14px; }
.wrap { max-width: 960px; margin: 0 auto; padding: 24px 16px 48px; }
.card { background: #fff; border: 1px solid #e3e6ec; border-radius: 10px; padding: 20px; margin-bottom: 18px; }
h1 { font-size: 26px; margin: 8px 0 14px; } h2 { font-size: 19px; margin: 0 0 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 8px 10px; border-bottom: 1px solid #e8ebf0; text-align: left; }
th { background: #f0f2f6; }
label { display: block; font-size: 13px; font-weight: 600; margin: 10px 0 4px; }
input, select, textarea { width: 100%; padding: 9px 10px; border: 1px solid #c9cfda; border-radius: 6px; font-size: 15px; background: #fff; }
textarea { min-height: 80px; }
button, .btn { display: inline-block; background: #274690; color: #fff; border: 0; border-radius: 6px; padding: 10px 18px; font-size: 15px; cursor: pointer; text-decoration: none; margin-top: 14px; }
button.secondary, .btn.secondary { background: #e3e6ec; color: #1c2333; }
button.danger { background: #b3372f; }
.flash { background: #e7f4e4; border: 1px solid #bfe0b6; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.warn { background: #fdf3d8; border: 1px solid #ecd27e; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat { background: #fff; border: 1px solid #e3e6ec; border-radius: 10px; padding: 16px; }
.stat b { display: block; font-size: 24px; }
.badge { padding: 2px 8px; border-radius: 20px; font-size: 12px; background: #e8ebf0; }
.badge.paid { background: #d9efd3; } .badge.unpaid { background: #f8d7d4; }
.modal { position: fixed; inset: 0; background: rgba(10,14,24,.55); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal.hidden { display: none; }
.modal-box { background: #fff; border-radius: 10px; padding: 22px; max-width: 420px; width: 90%; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.modal-actions button { margin-top: 6px; }
.hero { text-align: center; padding: 28px 10px; }
.hero img { max-width: 520px; width: 100%; height: auto; }
.avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: #dfe3ea; }
.headerimg { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; background: #dfe3ea; }
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: stretch; }
.postrow { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #eef1f5; }
.postrow:last-of-type { border-bottom: none; }
.cat { font-size: 11px; padding: 2px 8px; border-radius: 999px; color: #fff; vertical-align: 2px; white-space: nowrap; }
.cat-announcement { background: #b3261e; }
.cat-humor { background: #e08a00; }
.cat-chat { background: #2e7d32; }
.dmbadge { background: #d92c2c; color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 6px; margin-left: 2px; vertical-align: super; }
.linkcard { display: flex; gap: 12px; align-items: stretch; border: 1px solid #d5dae4; border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); background: #f8fafd; margin: 12px 0 4px; max-width: 560px; }
.linkcard.danger { border: 2px solid #d92c2c; background: #fdf0f0; }
.linkcard.danger .linkcard-body { padding: 12px 14px; }
.linkcard:hover { border-color: var(--navy); }
.linkcard img { width: 128px; min-height: 96px; object-fit: cover; flex-shrink: 0; }
.linkcard-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 10px 0; min-width: 0; }
.linkcard-body b { font-size: 15px; line-height: 1.3; }
.linkcard-desc { font-size: 13px; color: #5a6580; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.linkcard-host { font-size: 12px; color: #8494ad; margin-top: auto; }
.langsw { display: inline-flex; margin-left: auto; padding: 3px; gap: 2px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; vertical-align: middle; white-space: nowrap; flex-shrink: 0; }
.langsw a.langopt { margin-left: 0 !important; padding: 4px 13px; border-radius: 999px; color: #dbe4f5; text-decoration: none; font-size: 13px; font-weight: 600; line-height: 1.25; transition: all .15s ease; }
.langsw a.langopt:hover { color: #fff; }
.langsw a.langopt.on { background: #fff; color: #16294f; font-weight: 800; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.writebtn { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 24px; display: flex; align-items: center; justify-content: center; text-decoration: none; box-shadow: 0 6px 18px rgba(16,32,68,.35); }
.writebtn:hover { background: #2a4a9e; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; align-items: center; }
.tab { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid #d5dae4; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.ccount { color: #b3261e; font-weight: 700; font-size: 13px; }
.commentrow { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eef1f5; align-items: flex-start; }
.currentrow { background: #eef3fa; border-radius: 8px; }
.linkbtn { background: none; border: none; color: var(--navy); cursor: pointer; padding: 0; font-size: 12px; text-decoration: underline; }
.postmain { flex: 1; min-width: 0; }
.posttitle { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.posttitle a { color: var(--ink); text-decoration: none; }
.posttitle a:hover { text-decoration: underline; }
.micon { margin-left: 5px; font-size: 14px; }
.hiddenrow { opacity: .55; }
input[type=radio].avc { display: none; }
.swatch { display: inline-block; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #c9cfda; cursor: pointer; }
input[type=radio].avc:checked + .swatch { border-color: #1f3a93; box-shadow: 0 0 0 3px rgba(31,58,147,.35); }
@media (max-width: 720px) { .media-grid { grid-template-columns: repeat(2, 1fr); } }
.short-cell { position: relative; aspect-ratio: 9 / 16; background: #000; border-radius: 10px; overflow: hidden; }
.short-cell iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ig-panel { grid-column: span 2; position: relative; overflow: hidden; background: #fff7f9; border: 1px solid #f0d9e2; border-radius: 10px; }
@media (max-width: 720px) { .ig-panel { grid-column: span 2; height: 480px; } }
.ig-head { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; }
.ig-title { font-weight: 700; }
.ig-scroll { position: absolute; top: 46px; bottom: 26px; left: 10px; right: 10px; overflow-y: auto; border-radius: 8px; }
.ig-panel .small { position: absolute; bottom: 6px; left: 12px; margin: 0 !important; }
.ig-embed { width: 100%; height: 430px; border: 0; display: block; background: #fff; margin-bottom: 10px; border-radius: 8px; }
.follow-card { text-align: center; }
.social-grid { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.social-btn { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 12px; color: #fff; text-decoration: none; min-width: 240px; transition: transform .15s ease, box-shadow .15s ease; box-shadow: 0 2px 8px rgba(16,24,43,.18); }
.social-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(16,24,43,.25); }
.social-btn.youtube { background: linear-gradient(135deg, #ff3b30, #c81e1e); }
.social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.social-text b { font-size: 17px; }
.social-text small { font-size: 13px; opacity: .85; }
.visit-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: stretch; }
@media (max-width: 720px) { .visit-grid { grid-template-columns: 1fr; } }
.visit-map iframe { width: 100%; height: 100%; min-height: 260px; border: 0; border-radius: 10px; }
.visit-info { display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.visit-row { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0; font-size: 15px; line-height: 1.45; }
.visit-ico { font-size: 20px; line-height: 1.3; }
.small { font-size: 13px; color: #5a6376; }
.flex { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
@media (max-width: 720px) {
  .topbar { gap: 8px 14px; padding: 12px 16px; }
  .topbar .brand { font-size: 21px; }
  .topbar .brand span { font-size: 15px; }
  .topbar nav { order: 3; width: 100%; display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .topbar nav a { margin-left: 0; white-space: nowrap; font-size: 14px; }
  .langsw { order: 2; }
  .ig-panel { height: 420px; }
  .short-cell { height: calc((100vw - 84px) * 8 / 9); }
}

/* Google reviews — horizontal scroll strip above Visit Us */
.rev-summary { margin: 2px 0 10px; font-size: 17px; }
.rev-stars { color: #fbbc04; letter-spacing: 1px; }
.rev-stars.big { font-size: 20px; }
.revstrip { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.revcard { flex: 0 0 320px; max-width: 86vw; height: 416px; scroll-snap-align: start; background: #f8f9fb; border: 1px solid #e3e6ec; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; }
.rev-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.rev-avatar { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: #3b5998; color: #fff; font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: center; }
.rev-text { margin: 0; font-size: 14px; line-height: 1.5; flex: 1; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.rev-src { padding-top: 8px; }
@media (max-width: 720px) {
  .revcard { flex-basis: 82vw; height: 392px; }
}

/* Login "keep me logged in" checkbox row */
.checkline { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 12px 0 4px; cursor: pointer; }
.checkline input[type="checkbox"] { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; }
