/* ============================================
   CMRI Mobile Stylesheet — Premium Redesign
   Inspired by Samsung Global Research (SGR)
   ============================================ */

/* --- CSS Variables --- */
:root {
  --m-primary: #003d80;
  --m-primary-dark: #002b5c;
  --m-primary-light: #0d5baa;
  --m-primary-subtle: rgba(0, 61, 128, 0.05);
  --m-text: #1a1a1e;
  --m-text-light: #4a4e5a;
  --m-text-muted: #7e8290;
  --m-bg: #f5f6f8;
  --m-bg-white: #fff;
  --m-border: #d8dbe2;
  --m-border-light: #e8eaef;
  --m-nav-height: 60px;
  --m-header-height: 56px;
  --m-radius: 0;
  --m-radius-sm: 0;
  --m-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  --m-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04);
  --m-shadow-hover: 0 2px 8px rgba(0, 0, 0, 0.08);
  --m-accent-blue: #1a3f6f;
  --m-success: #0d9f61;
  --m-warning: #c96b10;
  --m-danger: #c0392b;
  --m-transition: 0.2s ease;
  --m-gradient: linear-gradient(135deg, #002b5c 0%, #003d80 50%, #0d5baa 100%);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 19px;
  -webkit-text-size-adjust: 100%;
}

body.m-body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--m-bg);
  color: var(--m-text);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  min-height: 100dvh;
  padding-bottom: calc(var(--m-nav-height) + 20px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.2px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

/* ============================================
   HEADER
   ============================================ */
.m-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--m-header-height);
  background: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--m-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* Home page overrides */

body.m-page--home {
  padding-bottom: calc(var(--m-nav-height) + 20px);
  background: #0a2d66;
}

body.m-page--consulting {
  padding-bottom: 0;
}

/* 홈 페이지: 하단 고정 네비 표시 */

.m-page--home .m-content {
  margin-top: 0;
  padding: 0;
  max-width: 100%;
}

.m-header__logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--m-primary);
  letter-spacing: -0.5px;
}

.m-header__logo span {
  color: var(--m-text);
  font-weight: 600;
}

.m-header__logo-img {
  height: 26px;
  width: auto;
  display: block;
}

.m-header__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.m-header__btn {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--m-text-light);
  padding: 6px 12px;
  border-radius: var(--m-radius-sm);
  background: var(--m-bg);
  border: 1px solid var(--m-border-light);
  cursor: pointer;
  transition: all var(--m-transition);
  letter-spacing: -0.2px;
}

.m-header__btn:hover {
  background: var(--m-primary-subtle);
  color: var(--m-primary);
  border-color: var(--m-primary);
}

.m-header__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--m-text-light);
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--m-transition);
}

.m-header__icon-btn:hover {
  color: var(--m-primary);
  background: var(--m-primary-subtle);
}

.m-header__icon-btn svg {
  display: block;
}

.m-header__hamburger {
  width: 32px;
  height: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.m-header__hamburger span {
  display: block;
  width: 20px;
  height: 1.8px;
  background: var(--m-text);
  border-radius: 1px;
  transition: var(--m-transition);
}

/* ============================================
   SIDE MENU
   ============================================ */
.m-side-menu {
  position: fixed;
  top: 0;
  right: -300px;
  bottom: 0;
  width: 300px;
  background: #fff;
  z-index: 200;
  transition: right 0.35s cubic-bezier(.4, 0, .2, 1);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.08);
  overflow-y: auto;
}

.m-side-menu.active {
  right: 0;
}

.m-side-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.m-side-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.m-side-menu__header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--m-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.m-side-menu__close {
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--m-text-light);
  background: none;
  border: none;
  line-height: 1;
}

.m-side-menu__user {
  padding: 20px;
  background: var(--m-gradient);
  color: #fff;
}

.m-side-menu__user-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.m-side-menu__user-email {
  font-size: 0.75rem;
  opacity: 0.8;
}

.m-side-menu__nav {
  padding: 8px 0;
}

.m-side-menu__nav-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--m-text-muted);
  padding: 16px 20px 8px;
}

.m-side-menu__nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--m-text);
  border-bottom: 1px solid var(--m-border-light);
  transition: all var(--m-transition);
}

.m-side-menu__nav a:hover {
  background: var(--m-primary-subtle);
  color: var(--m-primary);
}

.m-side-menu__nav a.active {
  color: var(--m-primary);
  font-weight: 700;
  background: var(--m-primary-subtle);
}

.m-side-menu__nav a svg {
  flex-shrink: 0;
  color: var(--m-text-muted);
}

.m-side-menu__nav a:hover svg,
.m-side-menu__nav a.active svg {
  color: var(--m-primary);
}

/* ============================================
   BOTTOM NAVIGATION
   ============================================ */
.m-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: calc(var(--m-nav-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--m-border-light);
  display: flex;
  align-items: stretch;
}

.m-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  color: var(--m-text-muted);
  gap: 4px;
  transition: color var(--m-transition);
  cursor: pointer;
  border: none;
  background: none;
  text-decoration: none;
  position: relative;
}

.m-nav__item.active {
  color: var(--m-primary);
}

.m-nav__item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--m-primary);
  border-radius: 0 0 2px 2px;
}

.m-nav__item:hover {
  color: var(--m-primary);
}

.m-nav__icon {
  font-size: 1.25rem;
  line-height: 1;
}

.m-nav__label {
  font-weight: 600;
  letter-spacing: -0.3px;
}

/* ============================================
   CONTENT WRAPPER
   ============================================ */
.m-content {
  margin-top: var(--m-header-height);
  padding: 20px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   PAGE TITLE
   ============================================ */
/* --- Premium Page Banner (sub-pages) --- */
.m-page-banner {
  background: var(--m-gradient);
  margin: calc(-1 * 20px);
  margin-bottom: 20px;
  padding: 36px 24px 30px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
}

.m-page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(0, 30, 60, 0.78) 0%,
      rgba(0, 40, 80, 0.65) 100%);
  z-index: 1;
}

.m-page-banner__title,
.m-page-banner__subtitle {
  position: relative;
  z-index: 2;
}

/* Per-page banner images */
.m-page-banner--consulting {
  background-image: url('/img/mobile/banner_consulting.png');
}

.m-page-banner--seminar {
  background-image: url('/img/mobile/banner_seminar.png');
}

.m-page-banner--report {
  background-image: url('/img/mobile/banner_report.png');
}

.m-page-banner__title {
  font-family: Georgia, 'Times New Roman', 'Noto Serif KR', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.m-page-banner__subtitle {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
}

.m-page-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--m-text);
  margin-bottom: 4px;
  letter-spacing: -0.8px;
}

.m-page-subtitle {
  font-size: 0.82rem;
  color: var(--m-text-light);
  margin-bottom: 24px;
  line-height: 1.5;
  font-weight: 400;
}

/* ============================================
   CARDS — General
   ============================================ */
.m-card {
  background: var(--m-bg-white);
  border-radius: var(--m-radius);
  box-shadow: var(--m-shadow-card);
  padding: 20px;
  margin-bottom: 12px;
  border: 1px solid var(--m-border-light);
}

.m-card--flat {
  box-shadow: none;
  border: 1px solid var(--m-border);
}

/* ============================================
   FORM STYLES
   ============================================ */
.m-form-group {
  margin-bottom: 16px;
}

.m-form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--m-text);
  margin-bottom: 6px;
}

.m-form-label--required::after {
  content: ' *';
  color: var(--m-danger);
}

.m-form-input,
.m-form-select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--m-border);
  border-radius: var(--m-radius-sm);
  font-size: 0.95rem;
  background: #fff;
  color: var(--m-text);
  outline: none;
  transition: border-color var(--m-transition), box-shadow var(--m-transition);
  -webkit-appearance: none;
}

.m-form-input:focus,
.m-form-select:focus {
  border-color: var(--m-primary);
  box-shadow: 0 0 0 3px rgba(0, 74, 153, 0.08);
}

.m-form-input::placeholder {
  color: var(--m-text-muted);
}

.m-form-textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 14px;
  border: 1.5px solid var(--m-border);
  border-radius: var(--m-radius-sm);
  font-size: 0.95rem;
  background: #fff;
  color: var(--m-text);
  outline: none;
  resize: vertical;
  transition: border-color var(--m-transition), box-shadow var(--m-transition);
}

.m-form-textarea:focus {
  border-color: var(--m-primary);
  box-shadow: 0 0 0 3px rgba(0, 74, 153, 0.08);
}

.m-form-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.m-form-row .m-form-input,
.m-form-row .m-form-select {
  flex: 1;
}

.m-form-hint {
  font-size: 0.75rem;
  color: var(--m-text-muted);
  margin-top: 4px;
}

.m-form-error {
  font-size: 0.75rem;
  color: var(--m-danger);
  margin-top: 4px;
}

/* ============================================
   BUTTONS
   ============================================ */
.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--m-radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--m-transition);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.m-btn--full {
  width: 100%;
}

.m-btn--primary {
  background: var(--m-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 74, 153, 0.2);
}

.m-btn--primary:hover {
  background: var(--m-primary-dark);
  box-shadow: 0 4px 16px rgba(0, 74, 153, 0.3);
}

.m-btn--secondary {
  background: var(--m-bg);
  color: var(--m-text);
  border: 1px solid var(--m-border);
}

.m-btn--secondary:hover {
  background: #e8e8f0;
}

.m-btn--outline {
  background: transparent;
  color: var(--m-primary);
  border: 1.5px solid var(--m-primary);
}

.m-btn--outline:hover {
  background: var(--m-primary-subtle);
}

.m-btn--small {
  height: 36px;
  padding: 0 14px;
  font-size: 0.82rem;
  border-radius: 6px;
}

.m-btn--dark {
  background: var(--m-text);
  color: #fff;
}

.m-btn--dark:hover {
  background: #000;
}

.m-btn--disabled {
  background: #d0d3dc;
  color: #fff;
  cursor: not-allowed;
  pointer-events: none;
  font-size: 0.85rem;
}

.m-btn-group {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.m-btn-group .m-btn {
  flex: 1;
}

/* ============================================
   TAB NAVIGATION
   ============================================ */
.m-tabs {
  display: flex;
  gap: 0;
  background: var(--m-bg-white);
  border-radius: var(--m-radius);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--m-border-light);
  box-shadow: var(--m-shadow-card);
}

.m-tabs__item {
  flex: 1;
  text-align: center;
  padding: 13px 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--m-text-light);
  cursor: pointer;
  border: none;
  background: none;
  transition: all var(--m-transition);
  border-bottom: 2.5px solid transparent;
  position: relative;
}

.m-tabs__item.active {
  color: var(--m-primary);
  font-weight: 700;
  border-bottom-color: var(--m-primary);
  background: var(--m-primary-subtle);
}

.m-tabs__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: var(--m-border-light);
}

/* ============================================
   LIST ITEMS
   ============================================ */
.m-list-item {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--m-bg-white);
  border-radius: var(--m-radius);
  box-shadow: var(--m-shadow-card);
  margin-bottom: 10px;
  border: 1px solid var(--m-border-light);
  transition: border-color var(--m-transition);
  cursor: pointer;
}

.m-list-item:hover {
  border-color: var(--m-border);
}

.m-list-item:active {
  background: var(--m-bg);
}

.m-list-item__thumb {
  width: 120px;
  min-width: 120px;
  height: 90px;
  object-fit: contain;
  background: var(--m-bg);
  border: 1px solid var(--m-border-light);
  flex-shrink: 0;
}

.m-list-item__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--m-text-muted);
  background: var(--m-bg);
  border: 1px solid var(--m-border-light);
  width: 100px;
  min-width: 100px;
  height: 75px;
  flex-shrink: 0;
}

.m-list-item__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.m-list-item__badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.3;
  width: fit-content;
  letter-spacing: -0.1px;
  white-space: nowrap;
  flex-shrink: 0;
}

.m-list-item__badge--market {
  background: #e3edf9;
  color: var(--m-primary);
}

.m-list-item__badge--company {
  background: #fce8e6;
  color: #c5221f;
}

.m-list-item__badge--ceo {
  background: #e6f4ea;
  color: #137333;
}

.m-list-item__badge--petro {
  background: #e3edf9;
  color: var(--m-primary);
}

.m-list-item__badge--specialty {
  background: #f3e8f9;
  color: #7b2ea8;
}

.m-list-item__badge--seminar {
  background: #e3edf9;
  color: var(--m-primary);
}

.m-list-item__badge--conference {
  background: #fef7e0;
  color: #b86e00;
}

.m-list-item__badge--edu {
  background: #e6f4ea;
  color: #137333;
}

.m-list-item__title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--m-text);
  margin-bottom: 8px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m-list-item__meta {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--m-text-muted);
}

.m-list-item__price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--m-primary);
  margin-top: 8px;
}

.m-list-item__badges {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: nowrap;
  overflow: hidden;
  min-width: 0;
}

.m-list-item__status {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1.3;
  white-space: nowrap;
  flex-shrink: 0;
}

.m-list-item__status--open {
  background: #e3edf9;
  color: var(--m-primary);
}

.m-list-item__status--urgent {
  background: #fce8e6;
  color: #c5221f;
}

.m-list-item__status--closed {
  background: #f0f1f4;
  color: #8e92a4;
}

.m-list-item__status--upcoming {
  background: #e6f4ea;
  color: #137333;
}

.m-list-item--closed {
  opacity: 0.55;
}

/* ============================================
   LIST ITEM — Report Additions
   ============================================ */
.m-list-item__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.m-list-item__sample-btns {
  display: flex;
  gap: 4px;
  width: 100%;
}

.m-list-item__sample-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 0;
  border: 1px solid var(--m-border);
  border-radius: 3px;
  color: var(--m-text-light);
  background: var(--m-bg);
  text-decoration: none;
  transition: all 0.15s ease;
}

.m-list-item__sample-btn:active {
  background: var(--m-border-light);
  color: var(--m-primary);
}

.m-list-item__buy-area {
  display: flex;
  justify-content: flex-end;
  padding: 0 14px 10px;
  margin-top: -4px;
}

.m-list-item__buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 16px;
  border: none;
  border-radius: 4px;
  background: var(--m-primary);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}

.m-list-item__buy-btn:active {
  background: var(--m-primary-dark);
}

/* ============================================
   DETAIL VIEW
   ============================================ */
.m-detail__header {
  margin-bottom: 20px;
}

.m-detail__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--m-text);
  line-height: 1.45;
  margin-bottom: 12px;
}

.m-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--m-text-light);
}

.m-detail__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.m-detail__body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--m-text);
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  -webkit-text-size-adjust: 100%;
}

/* 세미나 상세 본문 — 에디터 내장 폰트 크기가 너무 작게 오는 경우 보정 */
.m-detail__body * {
  max-width: 100%;
  font-size: inherit !important;
}

.m-detail__body img,
.m-detail__body video,
.m-detail__body iframe {
  max-width: 100% !important;
  height: auto !important;
}

.m-detail__body p,
.m-detail__body span,
.m-detail__body li,
.m-detail__body td,
.m-detail__body th {
  font-size: 1rem !important;
  line-height: 1.75 !important;
}

.m-detail__body h1 { font-size: 1.4rem !important; }
.m-detail__body h2 { font-size: 1.25rem !important; }
.m-detail__body h3 { font-size: 1.1rem !important; }
.m-detail__body h4 { font-size: 1.05rem !important; }

.m-card--nopad {
  padding: 0;
  overflow: hidden;
}

.m-card--nopad .m-detail__body img {
  display: block;
  width: 100%;
  height: auto;
}

.m-detail__body table {
  width: 100%;
  border-collapse: collapse;
}

.m-detail__body td,
.m-detail__body th {
  padding: 6px 8px;
  border: 1px solid var(--m-border);
  font-size: 0.85rem;
}

.m-detail__actions {
  position: sticky;
  bottom: calc(var(--m-nav-height) + 8px);
  display: flex;
  gap: 8px;
  padding: 12px 0;
  background: linear-gradient(transparent, var(--m-bg) 20%);
  padding-top: 24px;
}

/* ============================================
   PURCHASE PAGE
   ============================================ */
.m-purchase__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--m-border-light);
}

.m-purchase__item:last-child {
  border-bottom: none;
}

.m-purchase__item-title {
  flex: 1;
  font-size: 0.88rem;
  margin-right: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m-purchase__item-price {
  font-weight: 600;
  color: var(--m-primary);
  white-space: nowrap;
}

.m-purchase__item-delete {
  margin-left: 8px;
  color: var(--m-text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  background: none;
  border: none;
}

.m-purchase__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  margin-top: 4px;
  border-top: 2px solid var(--m-text);
  font-size: 0.95rem;
  font-weight: 700;
}

.m-purchase__total-amount {
  color: var(--m-primary);
  font-size: 1.1rem;
}

/* ============================================
   PAYMENT METHOD
   ============================================ */
.m-payment-method {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.m-payment-method__item {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border: 1.5px solid var(--m-border);
  border-radius: var(--m-radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--m-transition);
  background: #fff;
  color: var(--m-text);
  white-space: nowrap;
}

.m-payment-method__item.active,
.m-payment-method__item input:checked+& {
  border-color: var(--m-primary);
  color: var(--m-primary);
  background: var(--m-primary-subtle);
}

.m-payment-method__item input[type="radio"] {
  display: none;
}

/* ============================================
   MYPAGE
   ============================================ */
.m-mypage-section {
  margin-bottom: 24px;
}

.m-mypage-section__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--m-text);
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 3px solid var(--m-primary);
}

.m-mypage-item {
  background: var(--m-bg-white);
  border-radius: var(--m-radius);
  padding: 16px 18px;
  margin-bottom: 8px;
  border: 1px solid var(--m-border-light);
  box-shadow: var(--m-shadow-card);
}

.m-mypage-item__title {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}

.m-mypage-item__info {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.78rem;
  color: var(--m-text-light);
}

.m-mypage-item__actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.m-mypage-item__tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e6f4ea;
  color: #137333;
}

/* 미결제 — 노란/호박색 */
.m-mypage-item__tag--pending {
  background: #fef7e0;
  color: #b86e00;
}

/* 취소완료 — 회색 */
.m-mypage-item__tag--muted {
  background: #eceff3;
  color: #6b7280;
}

/* 취소진행 — 빨간색 */
.m-mypage-item__tag--danger {
  background: #fdecea;
  color: #c0392b;
}

/* 취소완료는 선명한 빨간색 요구사항 반영 */
.m-mypage-item__tag--cancelled {
  background: #fdecea;
  color: #c0392b;
}

/* 무료초청 — 파란색 */
.m-mypage-item__tag--invite {
  background: #e3f0ff;
  color: #1a56b5;
}

/* ============================================
   MODAL
   ============================================ */
.m-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 300;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.m-modal-overlay.active {
  display: flex;
}

.m-modal {
  background: #fff;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px 20px 32px;
  animation: m-modal-slide-up 0.3s ease;
}

@keyframes m-modal-slide-up {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.m-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.m-modal__title {
  font-size: 1.05rem;
  font-weight: 700;
}

.m-modal__close {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--m-text-muted);
  background: none;
  border: none;
  line-height: 1;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.m-login-box {
  background: var(--m-bg-white);
  border-radius: var(--m-radius);
  padding: 36px 24px;
  box-shadow: var(--m-shadow);
  margin-top: 24px;
}

.m-login-box__title {
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
  color: var(--m-text);
  letter-spacing: -0.5px;
}

.m-login-box__subtitle {
  font-size: 0.82rem;
  color: var(--m-text-light);
  text-align: center;
  margin-bottom: 28px;
}

.m-login-box__links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--m-text-light);
}

.m-login-box__links a {
  color: var(--m-text-light);
  transition: color var(--m-transition);
}

.m-login-box__links a:hover {
  color: var(--m-primary);
}

.m-login-box__divider {
  color: var(--m-border);
  font-size: 0.7rem;
}

/* ============================================
   AGREEMENT PAGE
   ============================================ */
.m-agree-box {
  background: var(--m-bg-white);
  border-radius: var(--m-radius);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--m-border-light);
  max-height: 280px;
  overflow-y: auto;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--m-text-light);
}

.m-agree-box h4 {
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--m-text);
}

.m-agree-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  font-size: 0.9rem;
  font-weight: 500;
}

.m-agree-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--m-primary);
}

/* ============================================
   STEPS INDICATOR
   ============================================ */
.m-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
}

.m-steps__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--m-text-muted);
  position: relative;
  flex: 1;
}

.m-steps__item.active {
  color: var(--m-primary);
}

.m-steps__item.done {
  color: var(--m-success);
}

.m-steps__circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--m-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--m-text-muted);
  background: #fff;
}

.m-steps__item.active .m-steps__circle {
  border-color: var(--m-primary);
  color: #fff;
  background: var(--m-primary);
}

.m-steps__item.done .m-steps__circle {
  border-color: var(--m-success);
  color: #fff;
  background: var(--m-success);
}

.m-steps__line {
  flex: 1;
  height: 2px;
  background: var(--m-border);
  align-self: center;
  margin-top: -14px;
}

.m-steps__line.active {
  background: var(--m-primary);
}

/* ============================================
   PAGINATION
   ============================================ */
.m-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 24px 0;
}

.m-pagination a,
.m-pagination span,
.m-pagination strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--m-text-light);
  border: 1px solid var(--m-border-light);
  background: #fff;
  transition: all var(--m-transition);
}

.m-pagination a:hover {
  background: var(--m-primary-subtle);
  border-color: var(--m-primary);
  color: var(--m-primary);
}

.m-pagination .current,
.m-pagination strong {
  background: #fff;
  color: var(--m-primary);
  border-color: var(--m-primary);
  font-weight: 600;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.m-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--m-text-muted);
}

.m-empty__icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.m-empty__text {
  font-size: 0.9rem;
}

/* ============================================
   BANK INFO
   ============================================ */
.m-bank-info {
  background: #f0f4ff;
  border-radius: var(--m-radius-sm);
  padding: 12px 14px;
  font-size: 0.8rem;
  color: var(--m-accent-blue);
  line-height: 1.6;
  margin-top: 8px;
}

/* ============================================
   RADIO / CHECKBOX
   ============================================ */
.m-radio-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.m-radio-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 1.5px solid var(--m-border);
  border-radius: var(--m-radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--m-transition);
  background: #fff;
}

.m-radio-btn input {
  display: none;
}

.m-radio-btn.active,
.m-radio-btn:has(input:checked) {
  border-color: var(--m-primary);
  color: var(--m-primary);
  background: var(--m-primary-subtle);
}

/* ============================================
   SECTION TITLE
   ============================================ */
.m-section-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--m-text);
  padding-left: 10px;
  border-left: 3px solid var(--m-primary);
  margin-bottom: 12px;
  margin-top: 24px;
}

/* ============================================
   SEMINAR SPECIFIC
   ============================================ */
.m-seminar-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--m-text-light);
}

.m-seminar-info__row {
  display: flex;
  gap: 6px;
}

.m-seminar-info__label {
  font-weight: 600;
  color: var(--m-text);
  min-width: 60px;
}

/* ============================================
   TAX INVOICE / XPAY
   ============================================ */
.m-tax-section {
  background: #fafafa;
  border-radius: var(--m-radius-sm);
  padding: 14px;
  margin-top: 10px;
}

.m-xpay-area {
  width: 100%;
  min-height: 400px;
  border: none;
  border-radius: var(--m-radius-sm);
}

/* --- TossPayments XPay CrossPlatform Mobile Overrides --- */
/* xpay_crossplatform.js creates:
   #_lguplus_popup_ > #_lguplus_popup__div (fixed fullscreen)
     > div (mask bg) + div (650px iframe container) > iframe
   The 650px container overflows mobile viewport. */

/* Iframe container: override fixed 650px width + centered margins */
#_lguplus_popup__div>div:nth-child(2) {
  width: 100% !important;
  height: 100% !important;
  max-width: 100vw !important;
  top: 0 !important;
  left: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

/* The iframe itself */
#_lguplus_popup__iframe {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
}

/* ============================================
   MAIN PAGE — Full-screen Hero (SGR Style)
   ============================================ */
.m-hero-full {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--m-header-height) - var(--m-nav-height));
  min-height: -webkit-fill-available;
  min-height: calc(100dvh - var(--m-header-height) - var(--m-nav-height));
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background-color: #0a2d66;
  background-image: url('/img/mobile/hero_bg_re.jpg');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
}

.m-hero-full__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(5, 25, 65, 0.30) 0%,
      rgba(8, 35, 85, 0.40) 25%,
      rgba(10, 45, 102, 0.55) 50%,
      rgba(10, 45, 102, 0.75) 80%,
      #0a2d66 100%);
  z-index: 1;
}

.m-hero-full__content {
  position: relative;
  z-index: 2;
  padding: 72px 24px 30px;
}

.m-hero-full__tagline {
  font-size: 0.65rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.5);
}

.m-hero-full__title {
  font-family: Georgia, 'Times New Roman', 'Noto Serif KR', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.45;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 0, 0, 0.5), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.m-hero-full__subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.65;
  letter-spacing: -0.1px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.5);
}

/* --- SGR-style Floating Nav Buttons --- */
.m-hero-nav {
  position: relative;
  z-index: 2;
  margin-top: auto;
  margin-bottom: auto;
  padding: 20px 16px;
}

.m-hero-full__copy {
  position: relative;
  z-index: 2;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  padding-bottom: 14px;
  letter-spacing: 0;
}

.m-main-contact {
  padding-bottom: 0;
}

.m-hero-nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.m-hero-nav li {
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
}

.m-hero-nav li:first-child {
  border-top: none;
}

.m-hero-nav li a {
  display: flex;
  align-items: center;
  padding: 22px 18px;
  padding-right: 36px;
  background: rgba(120, 130, 145, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.25s ease;
  position: relative;
}

.m-hero-nav li a::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
}

.m-hero-nav li a::after {
  content: '›';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

.m-hero-nav li a:active {
  background: rgba(120, 130, 145, 0.50);
}

.m-hero-nav__text {
  display: flex;
  flex-direction: column;
}

.m-hero-nav h3 {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.m-hero-nav p {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* --- Main Page Contact Section --- */
.m-main-contact {
  position: relative;
  z-index: 2;
  padding: 20px 20px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.m-main-contact__title {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.m-main-contact__items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.m-main-contact__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}

.m-main-contact__item svg {
  flex-shrink: 0;
  opacity: 0.45;
}

.m-main-contact__item a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s ease;
}

.m-main-contact__item a:active {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Home Footer --- */
.m-home-footer-info {
  padding: 16px 24px 20px;
  text-align: center;
}

.m-home-footer-info__copy {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0;
}

/* ============================================
   CONSULTING PAGE — Dark Layout (Brighter)
   ============================================ */
.m-consulting-page {
  background: #2c5280;
  min-height: calc(100vh - var(--m-header-height));
}

/* --- 히어로 (컴팩트) --- */
.m-consulting-hero {
  position: relative;
  width: 100%;
  padding: 0;
  background: url('/img/mobile/consulting_bg.jpg') center center / cover no-repeat;
  background-color: #2c5280;
}

.m-consulting-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(0, 15, 35, 0.10) 0%,
      rgba(0, 15, 35, 0.0) 40%,
      #2c5280 100%);
  z-index: 1;
}

.m-consulting-hero__content {
  position: relative;
  z-index: 2;
  padding: 80px 24px 56px;
}

.m-consulting-hero__tagline {
  font-size: 0.62rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.m-consulting-hero__title {
  font-family: Georgia, 'Times New Roman', 'Noto Serif KR', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.m-consulting-hero__subtitle {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* --- 4 카드 그리드 --- */
.m-consulting-page__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 16px 20px;
}

.m-consulting-page__card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 18px 12px 16px;
  text-align: center;
  transition: background 0.2s ease;
}

.m-consulting-page__card:active {
  background: rgba(255, 255, 255, 0.16);
}

.m-consulting-page__card-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
}

.m-consulting-page__card-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.m-consulting-page__card-desc {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

/* --- 섹션 공통 (다크 테마) --- */
.m-consult-section {
  padding: 24px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.m-consult-section+.m-consult-section {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.m-consult-section__title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  padding-left: 10px;
  border-left: 3px solid #4a9eff;
  margin-bottom: 18px;
}

/* --- 화학산업 4-card grid --- */
.m-chem-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.m-chem-card {
  position: relative;
  height: 90px;
  border-radius: 6px;
  display: flex;
  align-items: flex-end;
  padding: 10px 12px;
  overflow: hidden;
  background-size: 120% !important;
  background-position: center !important;
}

.m-chem-card__label {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.35;
}

/* --- 화학산업 테이블 (다크 테마) --- */
.m-chem-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.m-chem-table__head {
  padding: 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  width: 100px;
  vertical-align: top;
  font-size: 0.72rem;
  line-height: 1.35;
}

.m-chem-table__body {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  vertical-align: top;
}

.m-chem-table__body ul {
  margin: 0;
  padding-left: 14px;
  list-style: disc;
}

.m-chem-table__body li {
  margin-bottom: 2px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

/* --- 전방산업 리스트 (다크 테마) --- */
.m-forward-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.m-forward-item__bar {
  background: rgba(74, 111, 165, 0.8);
  color: #fff;
  text-align: center;
  padding: 9px 0;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 4px 4px 0 0;
}

.m-forward-item__detail {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: none;
  border-radius: 0 0 4px 4px;
  background: rgba(255, 255, 255, 0.05);
}

.m-forward-item__detail p {
  margin: 4px 0;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
}

.m-forward-item__detail strong {
  color: rgba(255, 255, 255, 0.95);
}

.m-forward-item__pipe {
  color: #4a9eff;
  font-weight: 700;
  margin-right: 4px;
}

/* --- 푸터 카피 --- */
.m-consulting-page__copy {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.25);
  text-align: center;
  padding: 20px 0 24px;
}

/* Body overrides for consulting page */
.m-page--consulting .m-content {
  margin-top: 0;
  padding: 0;
  max-width: 100%;
}

/* ============================================
   HOME — Quick Links (kept for sub-pages)
   ============================================ */
.m-quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.m-quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--m-bg-white);
  border-radius: var(--m-radius);
  padding: 16px 6px 14px;
  box-shadow: var(--m-shadow-card);
  border: 1px solid var(--m-border-light);
  text-decoration: none;
  transition: all var(--m-transition);
}

.m-quick-link:hover {
  box-shadow: var(--m-shadow-hover);
  transform: translateY(-2px);
}

.m-quick-link__icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.m-quick-link__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--m-text);
  text-align: center;
  line-height: 1.4;
}

/* ============================================
   HOME — Section
   ============================================ */
.m-home-section {
  margin-bottom: 24px;
}

.m-home-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.m-home-section__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--m-text);
}

.m-home-section__more {
  font-size: 0.78rem;
  color: var(--m-primary);
  font-weight: 600;
  text-decoration: none;
}

/* ============================================
   HOME — Item
   ============================================ */
.m-home-item {
  display: block;
  background: var(--m-bg-white);
  border-radius: var(--m-radius-sm);
  padding: 14px 16px;
  margin-bottom: 8px;
  border: 1px solid var(--m-border-light);
  box-shadow: var(--m-shadow-card);
  text-decoration: none;
  transition: all var(--m-transition);
}

.m-home-item:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.m-home-item--closed {
  opacity: 0.55;
}

.m-home-item__top {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}

.m-home-item__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--m-text);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m-home-item__meta {
  font-size: 0.75rem;
  color: var(--m-text-muted);
}

/* (Home footer styles moved to hero section above) */

/* ============================================
   UTILITY
   ============================================ */
.m-mb-0 {
  margin-bottom: 0;
}

.m-mb-8 {
  margin-bottom: 8px;
}

.m-mb-16 {
  margin-bottom: 16px;
}

.m-mb-24 {
  margin-bottom: 24px;
}

.m-mt-8 {
  margin-top: 8px;
}

.m-mt-16 {
  margin-top: 16px;
}

.m-mt-24 {
  margin-top: 24px;
}

.m-text-center {
  text-align: center;
}

.m-text-right {
  text-align: right;
}

.m-text-primary {
  color: var(--m-primary);
}

.m-text-muted {
  color: var(--m-text-muted);
}

.m-text-small {
  font-size: 0.78rem;
}

.m-hidden {
  display: none !important;
}

.m-flex {
  display: flex;
}

.m-flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes m-fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes m-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.m-animate-in {
  animation: m-fade-in 0.4s ease forwards;
}

.m-service-nav__card,
.m-consulting-card {
  opacity: 0;
}

.m-service-nav__card.m-animate-in,
.m-consulting-card.m-animate-in {
  opacity: 1;
}

.m-home-item,
.m-quick-link,
.m-service-card {
  opacity: 0;
}

.m-home-item.m-animate-in,
.m-quick-link.m-animate-in,
.m-service-card.m-animate-in {
  opacity: 1;
}

/* ============================================
   SCROLLBAR
   ============================================ */
.m-agree-box::-webkit-scrollbar {
  width: 4px;
}

.m-agree-box::-webkit-scrollbar-thumb {
  background: var(--m-border);
  border-radius: 4px;
}

/* ============================================
   SERVICE CARDS (legacy — kept for compatibility)
   ============================================ */
.m-service-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.m-service-card {
  background: var(--m-bg-white);
  border-radius: var(--m-radius);
  padding: 18px 16px;
  border: 1px solid var(--m-border-light);
  box-shadow: var(--m-shadow-card);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.m-service-card__icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--m-primary-subtle);
  border-radius: 12px;
}

.m-service-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--m-primary);
  margin-bottom: 4px;
}

.m-service-card__desc {
  font-size: 0.78rem;
  color: var(--m-text-light);
  line-height: 1.5;
}

/* === Receipt styles for mobile modal === */
#m-receipt-content {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0;
}

#m-receipt-content .receiptTitle {
  border: 2px solid #000;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  padding: 10px 0;
}

#m-receipt-content .topInfo {
  padding-top: 12px;
}

#m-receipt-content .topInfo::after {
  content: '';
  display: block;
  clear: both;
}

#m-receipt-content .receiptLeft {
  width: 100%;
  margin-bottom: 8px;
}

#m-receipt-content .receiptRight {
  width: 100%;
  text-align: center;
  margin-bottom: 8px;
}

#m-receipt-content .receiptRight img {
  max-width: 100%;
  height: auto;
}

#m-receipt-content .receiptTable table {
  width: 100%;
  font-size: 12px;
}

#m-receipt-content .receiptTable table th,
#m-receipt-content .receiptTable table td {
  color: #232323;
  text-align: left;
  padding: 2px 0;
}

#m-receipt-content .resultText {
  padding-top: 10px;
  font-size: 12px;
  color: #232323;
}

#m-receipt-content .bottomInfo {
  padding-top: 12px;
}

#m-receipt-content .receiptTableList table {
  width: 100%;
  font-size: 10px;
  border: 1px solid #000;
  border-collapse: collapse;
}

#m-receipt-content .receiptTableList table th {
  height: 22px;
  background-color: #f5f5f5;
  color: #232323;
  vertical-align: middle;
  text-align: center;
  font-size: 10px;
  padding: 2px;
}

#m-receipt-content .receiptTableList table td {
  height: 22px;
  color: #232323;
  vertical-align: middle;
  text-align: center;
  font-size: 10px;
  padding: 2px;
}

#m-receipt-content .receiptTableList table td.taL {
  text-align: left;
  padding-left: 4px;
}

#m-receipt-content .receiptTableList table td.taR {
  text-align: right;
  padding-right: 4px;
}

#m-receipt-content .receiptTableList.bdS table th {
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
}

#m-receipt-content .receiptTableList.bdS table td {
  line-height: 22px;
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.m-contact-section {
  background: transparent;
  padding: 32px 24px;
  padding-bottom: calc(32px + var(--m-nav-height));
  text-align: center;
  border-top: 1px solid var(--m-border-light);
}

.m-page--consulting .m-contact-section {
  background: #1a2d42;
  border-top: none;
}

/* --- Consulting page: dark background overrides --- */
.m-page--consulting .m-contact-section__title {
  color: rgba(255, 255, 255, 0.5);
}
.m-page--consulting .m-contact-section__item {
  color: rgba(255, 255, 255, 0.75);
}
.m-page--consulting .m-contact-section__item svg {
  color: rgba(255, 255, 255, 0.4);
}
.m-page--consulting .m-contact-section__item a {
  color: rgba(255, 255, 255, 0.75);
}
.m-page--consulting .m-contact-section__item a:hover {
  color: #fff;
}
.m-page--consulting .m-contact-section__copy {
  color: rgba(255, 255, 255, 0.3);
}

.m-page--home .m-contact-section {
  display: none;
}

.m-contact-section__title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--m-text-muted);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.m-contact-section__items {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.m-contact-section__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--m-text-light);
  line-height: 1.5;
}

.m-contact-section__item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--m-text-muted);
}

.m-contact-section__item a {
  color: var(--m-text-light);
  text-decoration: none;
}

.m-contact-section__item a:hover {
  color: var(--m-primary);
}

.m-contact-section__copy {
  font-size: 0.65rem;
  color: var(--m-text-muted);
  margin-top: 20px;
  letter-spacing: 0;
}

/* ============================================
   REPORT LIST — Thumbnail Fallback
   ============================================ */
.m-report-thumb-fallback {
  width: 110px;
  min-width: 110px;
  max-width: 110px;
  height: 73px;
  background: linear-gradient(135deg, #eaf0fa 0%, #f5f6f8 100%);
  border: 1px solid #e8eaef;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #5a7aa8;
}

.m-report-thumb-fallback svg {
  width: 26px;
  height: 26px;
}

.m-report-thumb-fallback span {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #5a7aa8;
}

/* ============================================
   REPORT DETAIL — MOKCHA (목차) overflow guard
   ============================================ */
.m-detail__body pre,
.m-detail__body code {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.m-detail__body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

/* ============================================
   LIST ITEM — Source (자료집) overrides
   ============================================ */
.m-list-item--source {
  align-items: flex-start;
}

.m-list-item__title--full {
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.m-list-item__meta--stack {
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}