.mc-app {
      --primary: #059669;
      --primary-hover: #047857;
      --primary-light: #ecfdf5;
      --accent: #f59e0b;
      --bg: #f8fafc;
      --surface: #ffffff;
      --card-bg: #ffffff;
      --text: #0f172a;
      --text-muted: #64748b;
      --border: #e2e8f0;
      --tag-bg: #f1f5f9;
      --radius: 16px;
      --radius-sm: 10px;
      --shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
      --font: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    }


    .mc-app, .mc-app *, .mc-app *::before, .mc-app *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
    .mc-app {
      font-family: var(--font);
      color: var(--text);
      line-height: 1.5;
    }

    /* Container (site layout handles outer spacing) */
    .container {
      max-width: 100%;
      margin: 0 auto;
      width: 100%;
      padding: 0;
      flex: 1;
    }

    /* Hero / Notice Banner */
    .notice-banner {
      background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
      color: #ffffff;
      padding: 16px 20px;
      border-radius: var(--radius);
      margin-bottom: 16px;
      box-shadow: 0 10px 25px -5px rgba(13, 148, 136, 0.25);
    }
    .notice-title {
      font-size: 15px;
      font-weight: 700;
      margin-bottom: 4px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .notice-desc {
      font-size: 13px;
      opacity: 0.92;
      line-height: 1.4;
    }

    /* Region Selector Section */
    .filter-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 16px;
      box-shadow: var(--shadow);
      margin-bottom: 16px;
    }
    .region-row {
      display: grid;
      grid-template-columns: 1fr 1fr auto;
      gap: 8px;
      margin-bottom: 12px;
    }
    .mc-app select {
      width: 100%;
      padding: 10px 12px;
      border-radius: var(--radius-sm);
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--text);
      font-family: var(--font);
      font-size: 14px;
      font-weight: 600;
      appearance: none;
      background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 10px center;
      cursor: pointer;
    }
    .btn-gps {
      padding: 0 14px;
      background: var(--primary-light);
      border: 1px solid var(--primary);
      color: var(--primary);
      font-weight: 700;
      font-size: 13px;
      border-radius: var(--radius-sm);
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 4px;
      white-space: nowrap;
    }

    /* Search Box */
    .search-box {
      position: relative;
      margin-bottom: 12px;
    }
    .search-input {
      width: 100%;
      padding: 12px 14px 12px 40px;
      border-radius: var(--radius-sm);
      border: 1px solid var(--border);
      background: var(--tag-bg);
      color: var(--text);
      font-family: var(--font);
      font-size: 14px;
      outline: none;
      transition: all 0.2s;
    }
    .search-input:focus {
      border-color: var(--primary);
      background: var(--surface);
      box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    }
    .search-icon {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      pointer-events: none;
    }

    /* Category Filter Pills */
    .category-pills {
      display: flex;
      gap: 6px;
      overflow-x: auto;
      padding-bottom: 4px;
      scrollbar-width: none;
    }
    .category-pills::-webkit-scrollbar { display: none; }
    .pill {
      padding: 6px 12px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 600;
      background: var(--tag-bg);
      border: 1px solid var(--border);
      color: var(--text-muted);
      cursor: pointer;
      white-space: nowrap;
      transition: all 0.15s;
    }
    .pill.active {
      background: var(--primary);
      border-color: var(--primary);
      color: #ffffff;
    }

    /* Korea Sido Quick Map Chips */
    .sido-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px dashed var(--border);
    }
    .chip {
      font-size: 12px;
      font-weight: 500;
      padding: 3px 8px;
      border-radius: 6px;
      background: var(--tag-bg);
      color: var(--text-muted);
      cursor: pointer;
      transition: all 0.15s;
    }
    .chip.active {
      background: var(--primary-light);
      color: var(--primary);
      font-weight: 700;
    }

    /* View Switcher Bar */
    .view-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
    }
    .result-count {
      font-size: 14px;
      font-weight: 700;
      color: var(--text);
    }
    .result-count span {
      color: var(--primary);
    }
    .view-toggle {
      display: inline-flex;
      background: var(--tag-bg);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 3px;
    }
    .btn-toggle {
      border: none;
      background: transparent;
      padding: 6px 14px;
      font-size: 13px;
      font-weight: 600;
      color: var(--text-muted);
      border-radius: 6px;
      cursor: pointer;
    }
    .btn-toggle.active {
      background: var(--surface);
      color: var(--text);
      box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    }

    /* Map Mode Visual Canvas */
    .map-container {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      margin-bottom: 16px;
      overflow: hidden;
      position: relative;
      height: 380px;
      display: flex;
      flex-direction: column;
    }
    .map-canvas {
      flex: 1;
      position: relative;
      background: #eef4f0;
      overflow: hidden;
      cursor: grab;
      user-select: none;
    }
    .map-grid {
      position: absolute;
      inset: 0;
      background-image: linear-gradient(to right, rgba(0,0,0,0.04) 1px, transparent 1px),
                        linear-gradient(to bottom, rgba(0,0,0,0.04) 1px, transparent 1px);
      background-size: 24px 24px;
    }
    .map-center-label {
      position: absolute;
      top: 12px;
      left: 12px;
      background: rgba(255,255,255,0.92);
      backdrop-filter: blur(8px);
      padding: 6px 12px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
      z-index: 10;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .pin {
      position: absolute;
      transform: translate(-50%, -100%);
      cursor: pointer;
      z-index: 10;
      transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .pin:hover, .pin.active {
      transform: translate(-50%, -100%) scale(1.25);
      z-index: 20;
    }
    .pin-badge {
      background: var(--surface);
      border: 2px solid var(--primary);
      padding: 4px 7px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 700;
      color: var(--text);
      white-space: nowrap;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .pin-name { display: none; }
    .pin:hover .pin-name, .pin.active .pin-name { display: inline; }
    .pin-ico { font-size: 13px; line-height: 1; }
    .pin.cat-conv .pin-badge { border-color: #3b82f6; }
    .pin.cat-fast .pin-badge { border-color: #f59e0b; }
    .pin.cat-bunsik .pin-badge { border-color: #10b981; }
    .pin.cat-china .pin-badge { border-color: #ef4444; }

    /* Map Popup Drawer */
    .map-popup {
      position: absolute;
      bottom: 12px;
      left: 12px;
      right: 12px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 12px 14px;
      box-shadow: 0 10px 25px rgba(0,0,0,0.15);
      z-index: 30;
      display: none;
    }
    .map-popup.show {
      display: block;
      animation: slideUp 0.25s ease-out;
    }
    @keyframes slideUp {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .popup-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 6px;
    }
    .popup-title {
      font-size: 15px;
      font-weight: 800;
      color: var(--text);
    }
    .popup-close {
      border: none;
      background: transparent;
      font-size: 18px;
      color: var(--text-muted);
      cursor: pointer;
    }
    .popup-addr {
      font-size: 13px;
      color: var(--text-muted);
      margin-bottom: 8px;
    }
    .popup-actions {
      display: flex;
      gap: 8px;
    }

    /* Merchant Card List */
    .merchant-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .merchant-card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 16px;
      box-shadow: var(--shadow);
      transition: border-color 0.15s, transform 0.15s;
    }
    .merchant-card:hover {
      border-color: var(--primary);
    }
    .card-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 6px;
    }
    .store-name {
      font-size: 16px;
      font-weight: 800;
      color: var(--text);
    }
    .store-badges {
      display: flex;
      gap: 4px;
      flex-wrap: wrap;
    }
    .badge {
      font-size: 11px;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 6px;
    }
    .badge-cat {
      background: var(--tag-bg);
      color: var(--text-muted);
      border: 1px solid var(--border);
    }
    .badge-card {
      background: var(--primary-light);
      color: var(--primary);
      border: 1px solid rgba(16, 185, 129, 0.25);
    }
    .badge-del {
      background: #fef3c7;
      color: #b45309;
      border: 1px solid rgba(245, 158, 11, 0.3);
    }
    .card-body {
      display: flex;
      flex-direction: column;
      gap: 4px;
      margin-bottom: 12px;
      font-size: 13px;
      color: var(--text-muted);
    }
    .info-row {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .addr-text {
      word-break: break-all;
    }
    .btn-copy { display: none; }

    /* Action Buttons in Card */
    .card-footer {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 6px;
      padding-top: 12px;
      border-top: 1px solid var(--border);
    }
    .btn-action {
      padding: 8px 10px;
      border-radius: var(--radius-sm);
      font-size: 12px;
      font-weight: 700;
      text-align: center;
      text-decoration: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      transition: all 0.15s;
    }
    .btn-call {
      background: var(--tag-bg);
      border: 1px solid var(--border);
      color: var(--text);
    }
    .btn-action.is-disabled {
      opacity: 0.55;
      cursor: default;
      font-weight: 600;
    }
    .btn-kakao {
      background: #fee500;
      border: 1px solid #e6cf00;
      color: #191919;
    }
    .btn-naver {
      background: #03c75a;
      border: 1px solid #02b150;
      color: #ffffff;
    }

    /* Modal / Bottom Sheet */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(4px);
      z-index: 100;
      display: none;
      align-items: flex-end;
      justify-content: center;
    }
    .modal-overlay.show { display: flex; }
    @media (min-width: 640px) {
      .modal-overlay { align-items: center; }
    }
    .modal-sheet {
      background: var(--surface);
      width: 100%;
      max-width: 520px;
      max-height: 85vh;
      border-radius: 20px 20px 0 0;
      padding: 20px;
      overflow-y: auto;
      box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
    }
    @media (min-width: 640px) {
      .modal-sheet { border-radius: 20px; }
    }
    .modal-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
    }
    .modal-title {
      font-size: 18px;
      font-weight: 800;
    }
    .modal-close {
      border: none;
      background: transparent;
      font-size: 22px;
      color: var(--text-muted);
      cursor: pointer;
    }
    .tip-section {
      margin-bottom: 16px;
    }
    .tip-section h3 {
      font-size: 14px;
      font-weight: 700;
      margin-bottom: 6px;
      color: var(--primary);
    }
    .tip-box {
      background: var(--tag-bg);
      border-radius: var(--radius-sm);
      padding: 12px;
      font-size: 13px;
      line-height: 1.5;
    }
    .tip-box ul {
      padding-left: 18px;
    }

    /* Toast */
    .toast {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%) translateY(100px);
      background: rgba(15, 23, 42, 0.9);
      color: #ffffff;
      padding: 10px 20px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 600;
      z-index: 200;
      transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
      pointer-events: none;
    }
    .toast.show {
      transform: translateX(-50%) translateY(0);
    }


    /* Main Top Tabs */
    .main-tabs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-bottom: 16px;
      background: var(--surface);
      padding: 6px;
      border-radius: var(--radius);
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
    }
    .main-tab-btn {
      padding: 10px 12px;
      border: none;
      border-radius: var(--radius-sm);
      background: transparent;
      color: var(--text-muted);
      font-family: var(--font);
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.15s;
    }
    .main-tab-btn.active {
      background: var(--primary);
      color: #ffffff;
    }
    .guide-card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 16px;
      margin-bottom: 12px;
      box-shadow: var(--shadow);
    }
    .guide-card h3 {
      font-size: 16px;
      font-weight: 800;
      margin-bottom: 8px;
      color: var(--text);
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .guide-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 10px;
    }
    .guide-list {
      font-size: 13px;
      color: var(--text-muted);
      padding-left: 18px;
      line-height: 1.65;
    }
    .guide-list strong { color: var(--text); }


    .calc-box {
      background: var(--tag-bg);
      border-radius: var(--radius-sm);
      padding: 14px;
      margin-top: 8px;
    }
    .calc-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-bottom: 10px;
    }
    .calc-label {
      font-size: 12px;
      font-weight: 700;
      color: var(--text-muted);
      margin-bottom: 4px;
      display: block;
    }
    .calc-input {
      width: 100%;
      padding: 8px 10px;
      border-radius: 8px;
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--text);
      font-family: var(--font);
      font-size: 14px;
      font-weight: 700;
    }
    .calc-result {
      background: var(--primary-light);
      border: 1px solid rgba(16, 185, 129, 0.25);
      border-radius: 8px;
      padding: 12px;
      text-align: center;
    }
    .calc-result-main {
      font-size: 17px;
      font-weight: 800;
      color: var(--primary);
      margin-bottom: 2px;
    }
    .calc-result-sub {
      font-size: 12px;
      color: var(--text-muted);
    }
    .link-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-top: 10px;
    }
    .btn-ext-link {
      padding: 9px 10px;
      border-radius: 8px;
      background: var(--tag-bg);
      border: 1px solid var(--border);
      color: var(--text);
      font-size: 12px;
      font-weight: 700;
      text-decoration: none;
      text-align: center;
      display: block;
    }


    /* Accordion FAQ */
    .faq-item {
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      margin-bottom: 8px;
      overflow: hidden;
      background: var(--surface);
    }
    .faq-q {
      width: 100%;
      text-align: left;
      padding: 12px 14px;
      background: transparent;
      border: none;
      font-family: var(--font);
      font-size: 13px;
      font-weight: 700;
      color: var(--text);
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      cursor: pointer;
    }
    .faq-q span.q-badge {
      color: var(--primary);
      margin-right: 4px;
    }
    .faq-arrow {
      font-size: 12px;
      color: var(--text-muted);
      transition: transform 0.2s;
      flex-shrink: 0;
    }
    .faq-item.open .faq-arrow {
      transform: rotate(180deg);
    }
    .faq-a {
      display: none;
      padding: 0 14px 12px 14px;
      font-size: 13px;
      color: var(--text-muted);
      line-height: 1.55;
      border-top: 1px dashed var(--border);
      padding-top: 10px;
    }
    .faq-item.open .faq-a {
      display: block;
    }

    /* Empty state */
    .empty-state {
      text-align: center;
      padding: 40px 20px;
      color: var(--text-muted);
    }
    .empty-icon { font-size: 40px; margin-bottom: 8px; }
