/* ==========================================================
   จ๊ะเอ๋ อาหารทะเลแห้ง - Design System & Modern CSS
   ========================================================== */

:root {
  /* Color Palette: Ocean & Coastal Blue */
  --primary-deep: #072448;
  --primary: #0F4C81;
  --primary-light: #1E6BBA;
  --accent-cyan: #00B4D8;
  --accent-sky: #90E0EF;
  --accent-ice: #E8F4F8;
  --bg-gradient-top: #0a1f38;
  --bg-gradient-mid: #103b66;
  --bg-gradient-bot: #0a1b2d;
  
  /* Brand Platform Colors */
  --line-color: #06C755;
  --line-color-dark: #04A644;
  --line-bg: rgba(6, 199, 85, 0.12);
  --shopee-color: #EE4D2D;
  --shopee-bg: rgba(238, 77, 45, 0.12);
  --tiktok-color: #000000;
  --tiktok-cyan: #25F4EE;
  --tiktok-red: #FE2C55;
  --tiktok-bg: rgba(0, 0, 0, 0.08);
  --lazada-color: #0F146D;
  --lazada-accent: #F51167;
  --lazada-bg: rgba(15, 20, 109, 0.1);
  --facebook-color: #1877F2;
  --facebook-bg: rgba(24, 119, 242, 0.12);
  --email-color: #0D9488;
  --email-bg: rgba(13, 148, 136, 0.12);

  /* Surface & Glassmorphism */
  --card-bg: rgba(255, 255, 255, 0.94);
  --card-bg-subtle: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.6);
  --shadow-sm: 0 4px 12px rgba(7, 36, 72, 0.08);
  --shadow-md: 0 8px 24px rgba(7, 36, 72, 0.12);
  --shadow-lg: 0 16px 36px rgba(7, 36, 72, 0.18);
  --shadow-hover: 0 12px 28px rgba(0, 119, 182, 0.22);

  /* Typography */
  --font-heading: 'Kanit', sans-serif;
  --font-body: 'Prompt', sans-serif;
  --text-main: #1A2B49;
  --text-muted: #556B88;
  --text-light: #7E92A9;

  /* Layout */
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-gradient-top);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 16px 48px;
  line-height: 1.5;
}

/* ==========================================================
   Background Waves & Ambient Graphics
   ========================================================== */
.ocean-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(175deg, #071f38 0%, #0d3863 45%, #08223e 100%);
  pointer-events: none;
}

.wave {
  position: absolute;
  width: 200%;
  height: 200%;
  opacity: 0.15;
  border-radius: 43%;
  left: -50%;
  top: -70%;
}

.wave1 {
  background: radial-gradient(circle, #00b4d8 0%, transparent 70%);
  animation: waveRotate 25s infinite linear;
}

.wave2 {
  background: radial-gradient(circle, #48cae4 0%, transparent 65%);
  animation: waveRotate 35s infinite linear reverse;
  opacity: 0.1;
  top: -80%;
}

.wave3 {
  background: radial-gradient(circle, #90e0ef 0%, transparent 60%);
  animation: waveRotate 45s infinite linear;
  opacity: 0.08;
  top: -60%;
}

@keyframes waveRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.bubble {
  position: absolute;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), rgba(0, 180, 216, 0.1));
  border-radius: 50%;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.4);
  animation: bubbleFloat 12s infinite ease-in;
}

.b1 { width: 30px; height: 30px; left: 15%; bottom: -50px; animation-duration: 10s; }
.b2 { width: 45px; height: 45px; left: 80%; bottom: -50px; animation-duration: 14s; animation-delay: 2s; }
.b3 { width: 20px; height: 20px; left: 40%; bottom: -50px; animation-duration: 11s; animation-delay: 4s; }
.b4 { width: 35px; height: 35px; left: 65%; bottom: -50px; animation-duration: 13s; animation-delay: 1s; }

@keyframes bubbleFloat {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0;
  }
  20% {
    opacity: 0.5;
  }
  80% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-110vh) scale(1.1);
    opacity: 0;
  }
}

/* ==========================================================
   Container & Layout
   ========================================================== */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================
   Top Navigation
   ========================================================== */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.location-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #E2E8F0;
  font-size: 0.82rem;
  font-weight: 400;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.icon-sm {
  width: 15px;
  height: 15px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px) scale(1.05);
}

/* ==========================================================
   Profile Card
   ========================================================== */
.profile-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 28px 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #0077b6, #00b4d8, #90e0ef, #0077b6);
  background-size: 200% 100%;
  animation: gradientFlow 4s linear infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.logo-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 16px;
}

.logo-halo {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00b4d8, #0077b6, #90e0ef);
  animation: spinHalo 8s linear infinite;
  opacity: 0.85;
}

@keyframes spinHalo {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.shop-logo {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  background: #FFFFFF;
  border: 4px solid #FFFFFF;
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.verified-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  background: #0077B6;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #FFFFFF;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.verified-badge svg {
  width: 16px;
  height: 16px;
}

.shop-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--primary-deep);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.shop-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 18px;
}

/* Badge Grid */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.badge-item {
  background: #F1F6FA;
  border: 1px solid #E1EDF6;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.badge-item:hover {
  background: #E5EFF7;
  transform: translateY(-1px);
}

.badge-highlight {
  background: #E8F7EE;
  border-color: #C3EADB;
  color: #107040;
}

.badge-icon {
  font-size: 0.95rem;
}

/* ==========================================================
   Announcement Bar
   ========================================================== */
.announcement-bar {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  border-left: 4px solid var(--accent-cyan);
  box-shadow: var(--shadow-sm);
  font-size: 0.84rem;
  color: var(--primary-deep);
}

.announcement-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================
   LINE Featured VIP Card
   ========================================================== */
.line-featured-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #F2FBF6 100%);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  box-shadow: 0 10px 30px rgba(6, 199, 85, 0.18);
  border: 2px solid #06C755;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: gentleGlow 3s ease-in-out infinite alternate;
}

@keyframes gentleGlow {
  0% { box-shadow: 0 8px 24px rgba(6, 199, 85, 0.15); }
  100% { box-shadow: 0 12px 32px rgba(6, 199, 85, 0.28); }
}

.line-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.line-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E6F9EE;
  color: #048C39;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid #B8F0CF;
}

.line-id-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px dashed #06C755;
  color: #06C755;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.line-id-tag:hover {
  background: #06C755;
  color: #FFFFFF;
}

.copy-line-icon {
  width: 14px;
  height: 14px;
}

.line-card-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.line-avatar-box {
  width: 52px;
  height: 52px;
  background: #06C755;
  color: #FFFFFF;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(6, 199, 85, 0.35);
}

.line-avatar-box svg {
  width: 32px;
  height: 32px;
}

.line-copy-content {
  flex: 1;
}

.line-title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: #035424;
  margin-bottom: 2px;
}

.line-desc {
  font-size: 0.82rem;
  color: #3B5244;
  line-height: 1.35;
}

.line-card-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.line-btn-primary {
  background: #06C755;
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 11px 16px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.35);
  transition: var(--transition-fast);
}

.line-btn-primary:hover {
  background: #04A644;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(6, 199, 85, 0.45);
}

.arrow-icon {
  width: 18px;
  height: 18px;
}

.line-btn-qr {
  background: #FFFFFF;
  border: 1.5px solid #06C755;
  color: #06C755;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.line-btn-qr svg {
  width: 17px;
  height: 17px;
}

.line-btn-qr:hover {
  background: #E6F9EE;
  transform: translateY(-2px);
}

/* ==========================================================
   Section Title
   ========================================================== */
.section-title {
  text-align: center;
  margin: 12px 0 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #E2E8F0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.section-title::before,
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================
   Platform Links
   ========================================================== */
.links-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.link-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 255, 255, 0.9);
}

.link-card:active {
  transform: translateY(-1px) scale(0.99);
}

/* Icon Box */
.link-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.link-icon-box svg {
  width: 26px;
  height: 26px;
}

.line-bg {
  background: #E6F9EE;
  color: var(--line-color);
}
.link-line:hover .link-icon-box {
  background: var(--line-color);
  color: #FFFFFF;
}

.shopee-bg {
  background: #FFF1EE;
  color: var(--shopee-color);
}
.link-shopee:hover .link-icon-box {
  background: var(--shopee-color);
  color: #FFFFFF;
}

.tiktok-bg {
  background: #F3F4F6;
  color: #000000;
}
.link-tiktok:hover .link-icon-box {
  background: #000000;
  color: #FFFFFF;
}

.lazada-bg {
  background: #F0F2FF;
  color: #0F146D;
}
.link-lazada:hover .link-icon-box {
  background: #0F146D;
  color: #FFFFFF;
}

.facebook-bg {
  background: #EEF5FF;
  color: var(--facebook-color);
}
.link-facebook:hover .link-icon-box {
  background: var(--facebook-color);
  color: #FFFFFF;
}

.email-bg {
  background: #E6F7F5;
  color: var(--email-color);
}

/* Link Info */
.link-info {
  flex: 1;
  min-width: 0;
}

.link-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.link-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-deep);
}

.link-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-text {
  user-select: all;
}

/* Tags */
.tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.tag-green { background: #DCFCE7; color: #15803D; }
.tag-orange { background: #FDE8E4; color: #D73211; }
.tag-pink { background: #FFE4EC; color: #D81B60; }
.tag-blue { background: #E0E7FF; color: #3730A3; }
.tag-indigo { background: #E0F2FE; color: #0284C7; }

/* Link Arrow */
.link-arrow {
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.link-arrow svg {
  width: 20px;
  height: 20px;
}

.link-card:hover .link-arrow {
  color: var(--primary-light);
  transform: translateX(4px);
}

/* Email Card & Actions */
.link-email-card {
  cursor: default;
}
.link-email-card:hover {
  transform: none;
  border-color: var(--glass-border);
  box-shadow: var(--shadow-md);
}

.email-actions {
  display: flex;
  gap: 6px;
}

.action-btn {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: var(--primary);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.action-btn svg {
  width: 17px;
  height: 17px;
}

.action-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  transform: scale(1.06);
}

/* ==========================================================
   Product Showcase
   ========================================================== */
.showcase-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: var(--transition-fast);
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.product-icon-wrap {
  font-size: 1.8rem;
  line-height: 1;
}

.product-meta h3 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-deep);
  margin-bottom: 3px;
}

.product-meta p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ==========================================================
   Trust & Guarantee Section
   ========================================================== */
.trust-section {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 4px;
}

.trust-icon {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.trust-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: #FFFFFF;
}

.trust-desc {
  font-size: 0.72rem;
  color: #CBD5E1;
}

/* ==========================================================
   Bottom Tools
   ========================================================== */
.bottom-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tool-btn {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.tool-btn svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.tool-btn:hover {
  background: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================
   Footer
   ========================================================== */
.footer {
  text-align: center;
  padding: 16px 0 8px;
  color: #94A3B8;
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand {
  font-weight: 600;
  color: #E2E8F0;
  font-size: 0.85rem;
}

.footer-text {
  color: #CBD5E1;
}

.footer-copy {
  font-size: 0.72rem;
  color: #64748B;
  margin-top: 4px;
}

/* ==========================================================
   QR Code Modal
   ========================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 15, 30, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  z-index: 1;
  background: #FFFFFF;
  width: 100%;
  max-width: 360px;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #F1F5F9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  color: #64748B;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--primary-deep);
  margin-bottom: 2px;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.qr-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8FAFC;
  border: 2px dashed #CBD5E1;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

#qrCodeCanvas {
  display: flex;
  justify-content: center;
  align-items: center;
}

#qrCodeCanvas img {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.modal-btn-secondary {
  background: #F1F5F9;
  color: var(--primary-deep);
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-md);
  padding: 11px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-btn-secondary:hover {
  background: #E2E8F0;
}

/* LINE Modal Specifics */
.line-modal-card {
  border-top: 5px solid #06C755;
}

.line-modal-header {
  margin-bottom: 12px;
}

.line-pill-badge {
  display: inline-block;
  background: #E6F9EE;
  color: #048C39;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.line-qr-img-wrapper {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 12px;
  display: inline-block;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.line-qr-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

.line-modal-tip {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* ==========================================================
   Toast Notification
   ========================================================== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0F172A;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2000;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 18px;
  height: 18px;
  color: #10B981;
}

/* ==========================================================
   Responsive Adjustments
   ========================================================== */
@media (max-width: 480px) {
  body {
    padding: 16px 12px 36px;
  }
  .shop-title {
    font-size: 1.45rem;
  }
  .badge-grid {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
