﻿* {
  box-sizing: border-box;

  --backcolor: #f5f6f8;
  --backrgba: rgba(255, 255, 255, 0.92);
  --cardbg: #ffffff;
  --line: #DADADA;
  --text-main: #111827;
  --text-sub: #6b7280;
  --text-soft: #9ca3af;
  --orange: #f97316;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--backcolor);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  height: 100%;
}

body {
  min-height: 100vh;
}

a {
    text-decoration: none;
}

form {
  margin: 0;
  height: 100%;
}

.app {
  min-height: 100vh;
  background: var(--backcolor);
}

.container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--backcolor);
  position: relative;
}

.master-shell {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.header {
  position: relative;
  z-index: 20;
  padding: 20px 10px 12px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--backrgba);
  backdrop-filter: blur(16px);
}

.master-header {
  flex: 0 0 auto;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}

.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(249, 115, 22, 0.85);
  margin: 0;
}

.title {
  margin: 3px 0 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.07em;
  color: var(--text-main);
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.content-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0;
}


/* 하단 영역 */
.bottom-nav {
  flex: 0 0 auto;
  z-index: 30;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--backrgba);
  backdrop-filter: blur(16px);

  position: sticky;
  bottom: 0;
}

.bottom-nav-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.nav-btn {
  border: 0;
  background: transparent;
  color: var(--text-sub);
  border-radius: 18px;
  padding: 10px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  transition: 0.2s;
  text-decoration: none;
}

.nav-btn.active {
  background: var(--orange);
  color: #fff;
}

.nav-icon {
  font-size: 16px;
}


/* 공용 버튼 */
.comm-btn-default {
  border: 1px solid #f97316;
  border-radius: 18px;
  padding: 15px 16px;
  font-size: 15px;
  background: #ffffff;
  color: #f97316;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.comm-btn-default:active {
  transform: scale(0.99);
}

.comm-btn-light {
  flex: 1;
  border: 0;
  border-radius: 18px;
  padding: 15px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  background: #ffffff;
  color: #384C69;
  border: 1px solid #e5e7eb;
}

.comm-btn-primary {
  flex: 1;
  border: 0;
  border-radius: 18px;
  padding: 15px 16px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  color: #ffffff;
}

/* 도움말 */
.comm-help {
    font-size: 12px;
    color: rgba(15, 23, 42, 1);
}

.comm-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

/* 기타 */
.comm-w10p {width: 10%;}
.comm-w15p {width: 15%;}
.comm-w20p {width: 20%;}
.comm-w25p {width: 25%;}
.comm-w30p {width: 30%;}
.comm-w40p {width: 40%;}
.comm-w50p {width: 50%;}
.comm-w60p {width: 60%;}
.comm-w70p {width: 70%;}
.comm-w80p {width: 80%;}
.comm-w90p {width: 90%;}
.comm-w100p {width: 100%;}

.comm-mt10 {margin-top: 10px;}
.comm-mt20 {margin-top: 20px;}
.comm-mt30 {margin-top: 30px;}
.comm-mt40 {margin-top: 40px;}
.comm-mt50 {margin-top: 50px;}

.comm-ml10 {margin-left: 10px;}
.comm-ml20 {margin-left: 20px;}
.comm-ml30 {margin-left: 30px;}
.comm-ml40 {margin-left: 40px;}
.comm-ml50 {margin-left: 50px;}

.comm-mb10{ margin-bottom: 10px;}
.comm-mb20{ margin-bottom: 20px;}
.comm-mb30{ margin-bottom: 30px;}
.comm-mb40{ margin-bottom: 40px;}
.comm-mb50{ margin-bottom: 50px;}

.comm-right {
    float: right;
}

.cm-search-noresult {
    background: #fff url('/html/images/bg-nosearch.png') center no-repeat;
    border-radius: 10px;
    min-height: 300px;
    width:100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: #333;
}