/* === LOADING OVERLAY === */
  #loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #FFF8F4;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }
  #loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
  }
  .loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #FFDCC8;
    border-top: 5px solid #E85D2C;
    border-radius: 50%;
    animation: loading-spin 1s linear infinite;
    margin-bottom: 20px;
  }
  @keyframes loading-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  .loading-text {
    font-family: 'Noto Sans JP', sans-serif;
    color: #E85D2C;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;
  }


  * { margin: 0; padding: 0; box-sizing: border-box; }

  :root {
    --accent: #E85D2C;
    --accent-light: #FF8A5C;
    --accent-dark: #C04A1E;
    --bg-warm: #FFF8F4;
    --text-dark: #2D2D2D;
    --text-gray: #6B6B6B;
    --white: #FFFFFF;
    --shadow: 0 4px 24px rgba(0,0,0,0.12);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --content-max: 960px;
    /* spacing scale (8px base) */
    --sp-xs: 4px;
    --sp-sm: 8px;
    --sp-md: 16px;
    --sp-lg: 24px;
    --sp-xl: 32px;
    --sp-2xl: 48px;
    --sp-3xl: 64px;
    /* font scale */
    --fs-xs: 11px;
    --fs-sm: 13px;
    --fs-base: 15px;
    --fs-md: 17px;
    --fs-lg: 20px;
    --fs-xl: 28px;
    --fs-2xl: clamp(28px, 8vw, 36px);
    /* line-height */
    --lh-tight: 1.3;
    --lh-base: 1.6;
    --lh-loose: 1.9;
  }

  body {
    font-family: 'Noto Sans JP', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    min-height: 100vh;
  }

  /* === MOCK BADGE === */
  .mock-badge {
    position: fixed;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 11px;
    padding: 6px 14px;
    border-radius: 20px;
    z-index: 9999;
    letter-spacing: 0.5px;
  }
  .mock-device-label {
    position: fixed;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    z-index: 9999;
  }

  /* === SCREENS === */
  .screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition), transform var(--transition);
    pointer-events: none;
    overflow-y: auto;
  }
  .screen.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* =============================================
     SCREEN 1: TOP
     ============================================= */
  .screen-top {
    background: linear-gradient(165deg, #FF9966 0%, #E85D2C 40%, #C04A1E 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
  }
  .hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 24px 40px;
    text-align: center;
    position: relative;
    min-height: 70vh;
  }
  .hero-bg-pattern {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.08;
    background-image:
      radial-gradient(circle at 20% 30%, #fff 1px, transparent 1px),
      radial-gradient(circle at 80% 60%, #fff 1.5px, transparent 1.5px),
      radial-gradient(circle at 50% 80%, #fff 1px, transparent 1px);
    background-size: 60px 60px, 80px 80px, 50px 50px;
  }
  .hero-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 100%;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-label {
    font-size: var(--fs-sm);
    letter-spacing: 3px;
    opacity: 0.8;
    margin-bottom: var(--sp-lg);
    font-weight: 600;
    line-height: var(--lh-base);
  }
  .hero-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin-bottom: var(--sp-lg);
    opacity: 0.95;
  }
  .hero-title {
    font-size: var(--fs-2xl);
    font-weight: 900;
    line-height: var(--lh-tight);
    margin-bottom: var(--sp-md);
    text-shadow: 0 2px 12px rgba(0,0,0,0.15);
    white-space: nowrap;
  }
  .hero-title .way {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 2px 10px;
    border-radius: 8px;
    margin: 0 2px;
  }
  .hero-subtitle {
    font-size: var(--fs-base);
    opacity: 0.85;
    margin-bottom: var(--sp-2xl);
    font-weight: 400;
    line-height: var(--lh-base);
  }
  .btn-myway {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-sm);
    background: var(--white);
    color: var(--accent);
    font-size: var(--fs-lg);
    font-weight: 700;
    padding: 18px 52px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    letter-spacing: 1px;
  }
  .btn-myway:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  }
  .btn-myway:active { transform: scale(0.97); }
  .btn-myway .arrow { font-size: 20px; transition: transform 0.3s; }
  .btn-myway:hover .arrow { transform: translateX(4px); }

  .partners {
    margin-top: var(--sp-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-md);
    flex-wrap: wrap;
    width: 100%;
  }
  .partner-logo {
    background: var(--white);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 var(--sp-lg);
    border-radius: 8px;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--accent);
    border: none;
    width: 200px;
    max-width: 100%;
    text-decoration: none;
    transition: background 0.3s;
    cursor: default;
    line-height: 1;
  }
  .partner-logo:hover { background: var(--bg-warm); }
  .partner-logo.taiwan-link { cursor: pointer; }
  .partner-logo img {
    height: 20px;
    width: auto;
    vertical-align: middle;
    display: inline-block;
  }
  .partner-logo.logo-btn {
    padding: 0;
    overflow: hidden;
  }
  .partner-logo.logo-btn img {
    height: 100%;
    width: auto;
    vertical-align: middle;
    display: block;
  }

  /* =============================================
     SCREEN 2: SELECT
     ============================================= */
  .screen-select {
    background: var(--bg-warm);
  }
  .select-header {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    padding: var(--sp-2xl) var(--sp-lg) var(--sp-xl);
    text-align: center;
    color: var(--white);
  }
  .select-header h2 {
    font-size: var(--fs-xl);
    font-weight: 900;
    margin-bottom: var(--sp-sm);
    line-height: var(--lh-tight);
  }
  .select-header p {
    font-size: var(--fs-sm);
    opacity: 0.85;
    line-height: var(--lh-base);
  }
  .select-content {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--sp-md) 120px;
  }
  .select-hint {
    text-align: center;
    padding: var(--sp-md) 0 var(--sp-sm);
    font-size: var(--fs-sm);
    color: var(--text-gray);
    line-height: var(--lh-base);
  }
  .select-count { color: var(--accent); font-weight: 700; }

  /* Responsive Categorized Grid Styles */
  .category-section {
    margin-top: 24px;
  }
  .category-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    border-bottom: 2px solid #FFDCC8;
    padding-bottom: 6px;
  }
  .category-icon {
    font-size: 24px;
  }
  .category-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-dark);
  }
  .category-photo-grid, .photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .photo-card {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .photo-card:hover { transform: scale(1.02); box-shadow: var(--shadow); }
  .photo-card.selected { transform: scale(0.96); }

  .photo-overlay {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(232, 93, 44, 0);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.3s;
  }
  .photo-card.selected .photo-overlay { background: rgba(232, 93, 44, 0.45); }
  .check-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--white);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .photo-card.selected .check-icon { opacity: 1; transform: scale(1); }
  .check-icon svg { width: 26px; height: 26px; }
.photo-name-tag {
    position: absolute;
    bottom: -1px; 
    left: 0; 
    right: 0;
    z-index: 2;
    
    display: flex;
    justify-content: center;
    align-items: flex-end; 
    
    height: 25%; 
    min-height: 64px; 
    padding: 0 10px 12px; 
    box-sizing: border-box;
    
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;

    background-image: 
      /* Lớp sóng cam */
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,75 C50,75 150,45 250,45 C350,45 400,65 500,65 C600,65 650,32 750,32 C850,32 950,35 1000,35 L1000,100 L0,100 Z' fill='%23F04925'/%3E%3C/svg%3E"),
      /* Lớp nền cam */
      linear-gradient(#F04925, #F04925);
      
    background-position: top left, bottom left;
    background-size: 100% 40px, 100% calc(100% - 39px); 
    background-repeat: no-repeat;
  }
  .btn-next-wrap {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    padding: var(--sp-md) var(--sp-lg) var(--sp-xl);
    background: linear-gradient(transparent, var(--bg-warm) 30%);
    z-index: 100;
    display: none;
    text-align: center;
  }
  .btn-next-wrap.visible { display: block; }
  .btn-next {
    width: 100%;
    max-width: 480px;
    padding: var(--sp-md);
    background: var(--accent);
    color: var(--white);
    font-size: var(--fs-md);
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(232,93,44,0.4);
    transition: all 0.3s;
  }
  .btn-next:hover { background: var(--accent-dark); transform: translateY(-1px); }

  /* =============================================
     SCREEN 3: RESULT
     ============================================= */
  .screen-result { background: var(--white); }

  .result-layout {
    max-width: var(--content-max);
    margin: 0 auto;
  }
  .result-hero {
    --wave-h: clamp(150px, 18vw, 250px);
    position: relative;
    height: 50vh;
    min-height: 300px;
    overflow: hidden;
  }
  .result-hero-placeholder {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
  }
  .result-hero-center-icon {
    position: absolute; 
    bottom: calc(var(--wave-h) * 0.4);
    left: 50%;
    transform: translateX(-50%);
    font-size: 90px;
    z-index: 3;
    pointer-events: none;
  }
  .result-hero-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: calc(var(--wave-h) + 16px) var(--sp-xl) 32px;
    background-image: 
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,35 C50,35 150,32 250,32 C350,32 400,65 500,65 C600,65 650,45 750,45 C850,45 950,75 1000,75 L1000,100 L0,100 Z' fill='%23F04925'/%3E%3C/svg%3E"),
      linear-gradient(#F04925, #F04925);
    background-size: 100% var(--wave-h), 100% calc(100% - var(--wave-h) + 1px);
    background-position: top center, bottom center;
    background-repeat: no-repeat;
    color: var(--white);
    z-index: 2;
  }
  .result-hero-overlay .result-label {
    font-size: var(--fs-base);
    opacity: 0.85;
    margin-bottom: var(--sp-sm);
    line-height: var(--lh-base);
  }
  .result-hero-overlay .result-way {
    font-size: var(--fs-2xl);
    font-weight: 900;
    line-height: var(--lh-tight);
  }
  .result-body {
    padding: var(--sp-xl) var(--sp-lg) var(--sp-2xl);
    max-width: 640px;
    margin: 0 auto;
  }
  .result-desc {
    font-size: var(--fs-base);
    line-height: var(--lh-loose);
    color: var(--text-gray);
    margin-bottom: var(--sp-xl);
  }
  .result-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
  }
  .btn-share {
    display: flex; align-items: center; justify-content: center;
    gap: var(--sp-sm);
    padding: var(--sp-md);
    background: linear-gradient(135deg, #1DA1F2, #0D8ECF);
    color: var(--white);
    font-size: var(--fs-base);
    font-weight: 700;
    border: none; border-radius: 50px; cursor: pointer;
    box-shadow: 0 4px 20px rgba(29,161,242,0.3);
    transition: all 0.3s;
    line-height: var(--lh-base);
  }
  .btn-share:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(29,161,242,0.4); }
  .btn-share svg { width: 20px; height: 20px; flex-shrink: 0; }
  .btn-mywayresult {
    display: flex; align-items: center; justify-content: center;
    gap: var(--sp-sm);
    padding: var(--sp-md);
    background: var(--white); color: var(--accent);
    font-size: var(--fs-base);
    font-weight: 700;
    border: 2.5px solid var(--accent); border-radius: 50px;
    cursor: pointer; transition: all 0.3s;
    line-height: var(--lh-base);
  }
  .btn-mywayresult:hover { background: var(--accent); color: var(--white); }
  .result-divider {
    text-align: center;
    margin: var(--sp-xl) 0 var(--sp-lg);
    color: var(--text-gray);
    font-size: var(--fs-xs);
    position: relative;
    line-height: var(--lh-base);
  }
  .result-divider::before, .result-divider::after {
    content: ''; position: absolute; top: 50%;
    width: 30%; height: 1px; background: #E0E0E0;
  }
  .result-divider::before { left: 0; }
  .result-divider::after { right: 0; }
  .incentive-card {
    background: linear-gradient(135deg, #FFF3ED, #FFE8DB);
    border: 1px solid #FFDCC8;
    border-radius: var(--radius);
    padding: var(--sp-lg);
    text-align: center;
  }
  .incentive-card .ic-title {
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--accent);
    margin-bottom: var(--sp-sm);
    line-height: var(--lh-base);
  }
  .incentive-card .ic-desc {
    font-size: var(--fs-sm);
    color: var(--text-gray);
    line-height: var(--lh-loose);
  }
  .btn-back-top {
    display: block; text-align: center;
    margin-top: var(--sp-lg);
    padding: var(--sp-md);
    color: var(--text-gray);
    font-size: var(--fs-sm);
    text-decoration: underline;
    cursor: pointer; background: none; border: none; width: 100%;
    line-height: var(--lh-base);
  }
  .btn-back-top:hover { color: var(--accent); }

  /* =============================================
     SHARE MODAL
     ============================================= */
  .modal-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: flex-end; justify-content: center;
    z-index: 1000;
  }
  .modal-overlay.open { display: flex; }
  .modal-sheet {
    background: var(--white);
    width: 100%; max-width: 480px;
    border-radius: 20px 20px 0 0;
    padding: var(--sp-lg) var(--sp-lg) var(--sp-2xl);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .modal-overlay.open .modal-sheet { transform: translateY(0); }
  .modal-handle {
    width: 40px; height: 4px; background: #DDD;
    border-radius: 2px; margin: 0 auto var(--sp-lg);
  }
  .modal-title {
    font-size: var(--fs-md);
    font-weight: 700;
    margin-bottom: var(--sp-lg);
    text-align: center;
    line-height: var(--lh-base);
  }
  .share-options {
    display: flex;
    justify-content: center;
    gap: var(--sp-xl);
    margin-bottom: var(--sp-lg);
  }
  .share-option {
    display: flex; flex-direction: column; align-items: center;
    gap: var(--sp-sm);
    cursor: pointer; border: none; background: none;
    transition: transform 0.2s;
  }
  .share-option:hover { transform: scale(1.08); }
  .share-icon {
    width: 60px; height: 60px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: var(--fs-lg); font-weight: 700;
  }
  .share-icon.twitter { background: #1DA1F2; }
  .share-icon.instagram { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); }
  .share-icon.line { background: #06C755; }
  .share-option span { font-size: var(--fs-xs); color: var(--text-gray); line-height: var(--lh-base); }
  .share-tag {
    text-align: center;
    font-size: var(--fs-sm);
    color: var(--accent);
    font-weight: 600;
    line-height: var(--lh-base);
  }

  /* =============================================
     ITINERARY & LOTTERY PAGES
     ============================================= */
  .sub-page {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--white);
    opacity: 0; transform: translateX(100%);
    transition: all var(--transition);
    pointer-events: none; overflow-y: auto; z-index: 500;
  }
  .sub-page.open { opacity: 1; transform: translateX(0); pointer-events: auto; }

  .itin-header {
    position: relative;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--white);
    padding: 0;
    width: 100%;
  }
  .itin-header-inner {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    min-height: 120px;
    box-sizing: border-box;
  }
  .itin-header-text {
    width: 100%;
    text-align: center;
    padding: var(--sp-xl) 140px; /* Prevent overlap with absolute photo on left */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .itin-profile-box {
    position: absolute;
    left: 24px;
    top: 15px;
    bottom: 15px;
    height: auto;
    aspect-ratio: 3 / 4;
    z-index: 10;
    cursor: pointer;
    box-sizing: border-box;
  }
  .itin-profile-img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
  }
  .itin-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 3px solid var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    display: block;
    box-sizing: border-box;
    transition: transform 0.2s ease;
  }
  .itin-profile-box:hover .itin-profile-img {
    transform: scale(1.03);
  }
  .itin-hint-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--white);
    border: 2px solid #333333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 12;
    animation: itinPulse 2s infinite;
  }
  .hint-svg {
    width: 14px;
    height: 14px;
  }
  @keyframes itinPulse {
    0% {
      transform: scale(0.95);
      box-shadow: 0 0 0 0 rgba(51, 51, 51, 0.4);
    }
    70% {
      transform: scale(1);
      box-shadow: 0 0 0 8px rgba(51, 51, 51, 0);
    }
    100% {
      transform: scale(0.95);
      box-shadow: 0 0 0 0 rgba(51, 51, 51, 0);
    }
  }
  .itin-speech-bubble {
    position: absolute;
    left: calc(100% + 15px);
    top: 0;
    transform: scale(0.9);
    width: 380px;
    background: var(--white);
    border: 1px solid rgba(184, 151, 83, 0.4);
    border-radius: var(--radius);
    padding: var(--sp-md) var(--sp-lg);
    box-shadow: 0 15px 35px rgba(184, 151, 83, 0.15), 0 5px 15px rgba(0, 0, 0, 0.05);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
    color: var(--text-dark);
    text-align: left;
  }
  .itin-profile-box:hover .itin-speech-bubble {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
  }
  .bubble-arrow {
    position: absolute;
    left: -9px;
    top: 20px;
    margin-top: 0;
    width: 16px;
    height: 16px;
    background: var(--white);
    border-left: 1px solid rgba(184, 151, 83, 0.4);
    border-bottom: 1px solid rgba(184, 151, 83, 0.4);
    transform: rotate(45deg);
    z-index: -1;
  }
  .bubble-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid rgba(184, 151, 83, 0.2);
    padding-bottom: var(--sp-xs);
    margin-bottom: var(--sp-sm);
  }
  .bubble-name {
    font-size: var(--fs-base);
    font-weight: 900;
    color: #b89753;
  }
  .bubble-ig {
    font-size: var(--fs-xs);
    color: var(--text-gray);
  }
  .bubble-body p {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-dark);
    margin: 0 0 var(--sp-xs) 0;
    opacity: 0.9;
  }
  .bubble-body p:last-child {
    margin-bottom: 0;
  }
  .itin-back {
    font-size: var(--fs-sm);
    opacity: 0.8; cursor: pointer;
    background: none; border: none; color: #fff;
    margin-bottom: var(--sp-md);
    display: inline-flex; align-items: center;
    gap: var(--sp-xs);
    line-height: var(--lh-base);
  }
  .itin-header h2 {
    font-size: var(--fs-xl);
    font-weight: 900;
    margin-bottom: var(--sp-sm);
    line-height: var(--lh-tight);
  }
  .itin-header p {
    font-size: var(--fs-sm);
    opacity: 0.85;
    line-height: var(--lh-base);
  }
  @media (max-width: 768px) {
    .itin-header-inner {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: var(--sp-lg) var(--sp-md);
      min-height: auto;
    }
    .itin-header-text {
      padding: 0 0 var(--sp-md) 0;
    }
    .itin-profile-box {
      position: relative;
      left: auto;
      top: auto;
      bottom: auto;
      height: 140px;
      aspect-ratio: 3 / 4;
      margin: 0 auto;
    }
    .itin-speech-bubble {
      left: 50%;
      top: calc(100% + 15px);
      transform: translateX(-50%) scale(0.9);
      width: 90vw;
      max-width: 340px;
    }
    .itin-profile-box:hover .itin-speech-bubble {
      transform: translateX(-50%) scale(1);
    }
    .bubble-arrow {
      left: 50%;
      top: -9px;
      margin-top: 0;
      margin-left: -8px;
      border-left: 1px solid rgba(184, 151, 83, 0.4);
      border-bottom: none;
      border-top: 1px solid rgba(184, 151, 83, 0.4);
      transform: rotate(45deg);
    }
    .photo-name-tag {
      font-size: 11px;
      min-height: 48px;
      padding: 0 6px 8px;
      line-height: 1.2;
      background-size: 100% 30px, 100% calc(100% - 29px);
    }
  }
  .itin-body {
    max-width: 640px;
    margin: 0 auto;
    padding: var(--sp-xl) var(--sp-lg);
  }
  .itin-day {
    margin-bottom: var(--sp-xl);
    padding-left: var(--sp-lg);
    border-left: 3px solid var(--accent);
  }
  .itin-day h3 {
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--accent);
    margin-bottom: var(--sp-sm);
    line-height: var(--lh-base);
  }
  .itin-day p {
    font-size: var(--fs-sm);
    color: var(--text-gray);
    line-height: var(--lh-loose);
  }
  .itin-footer {
    padding: var(--sp-lg);
    text-align: center;
  }
  .btn-top {
    padding: var(--sp-md) var(--sp-2xl);
    background: var(--accent); color: var(--white);
    font-size: var(--fs-base);
    font-weight: 700;
    border: none; border-radius: 50px;
    cursor: pointer; transition: all 0.3s;
    line-height: var(--lh-base);
  }
  .btn-top:hover { background: var(--accent-dark); }

  .lottery-content {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    min-height: 100vh;
    padding: var(--sp-2xl) var(--sp-lg);
    text-align: center;
  }
  .lottery-emoji { font-size: 90px; margin-bottom: var(--sp-xl); }
  .lottery-title {
    font-size: var(--fs-xl);
    font-weight: 900;
    color: var(--accent);
    margin-bottom: var(--sp-md);
    line-height: var(--lh-tight);
  }
  .lottery-desc {
    font-size: var(--fs-base);
    color: var(--text-gray);
    line-height: var(--lh-loose);
    margin-bottom: var(--sp-xl);
  }

  /* =============================================
     RESPONSIVE: TABLET (768px+)
     ============================================= */
  @media (min-width: 768px) {
    :root {
      --fs-sm: 14px;
      --fs-base: 16px;
      --fs-md: 18px;
      --fs-lg: 22px;
      --fs-xl: 32px;
      --fs-2xl: 44px;
    }
    .hero { padding: var(--sp-3xl) var(--sp-xl) var(--sp-2xl); }
    .btn-myway { padding: 20px 60px; }
    .partners { gap: var(--sp-lg); }
    .partner-logo { height: 54px; padding: 0 var(--sp-lg); }
    .partner-logo.logo-btn { padding: 0; overflow: hidden; }
    .partner-logo.logo-btn img { height: 100%; }

    .select-header { padding: var(--sp-3xl) var(--sp-xl) var(--sp-xl); }

    .category-photo-grid, .photo-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }

    .result-hero { height: 45vh; max-height: 480px; }
    .result-hero-overlay { padding: calc(var(--wave-h) + 20px) var(--sp-2xl) 32px; }
    .result-body { padding: var(--sp-2xl) var(--sp-xl) var(--sp-3xl); }

    .result-buttons {
      flex-direction: row;
      gap: var(--sp-md);
    }
    .btn-share, .btn-mywayresult {
      flex: 1;
      padding: 18px var(--sp-lg);
    }

    <!-- .itin-header { padding: var(--sp-3xl) var(--sp-xl) var(--sp-xl); } -->
  }

  /* =============================================
     RESPONSIVE: DESKTOP (1024px+)
     ============================================= */
  @media (min-width: 1024px) {
    :root {
      --fs-sm: 14px;
      --fs-base: 17px;
      --fs-md: 20px;
      --fs-lg: 24px;
      --fs-xl: 36px;
      --fs-2xl: 52px;
      --sp-lg: 28px;
      --sp-xl: 40px;
      --sp-2xl: 56px;
      --sp-3xl: 80px;
    }
    .hero { min-height: 80vh; }
    .btn-myway { padding: 22px 72px; }

    .select-content { padding: 0 var(--sp-xl) 140px; }

    .category-photo-grid, .photo-grid {
      grid-template-columns: repeat(4, 1fr);
      gap: 24px;
    }
    .photo-card { aspect-ratio: 1/1; }

    .result-hero { height: 50vh; max-height: 560px; }
    .result-body { max-width: 720px; }

    .modal-sheet { border-radius: 20px; margin-bottom: var(--sp-xl); }

    .itin-body { max-width: 720px; }
  }

  /* =============================================
     RESPONSIVE: SMALL PHONE (< 380px)
     ============================================= */
  @media (max-width: 380px) {
    :root {
      --fs-base: 14px;
      --fs-md: 15px;
      --fs-xl: 24px;
      --fs-2xl: clamp(24px, 7.5vw, 28px);
      --sp-md: 12px;
      --sp-lg: 16px;
      --sp-xl: 24px;
      --sp-2xl: 36px;
    }
    .btn-myway { padding: 14px 36px; }
    .category-photo-grid, .photo-grid { gap: 12px; }
  }

  /* =============================================
     CAMPAIGN PAGES (4 pages)
     ============================================= */
  .campaign-page {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg-warm);
    opacity: 0; transform: translateX(100%);
    transition: all var(--transition);
    pointer-events: none; overflow-y: auto; z-index: 600;
  }
  .campaign-page.open { opacity: 1; transform: translateX(0); pointer-events: auto; }

  .cp-header {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--white);
    padding: var(--sp-2xl) var(--sp-lg) var(--sp-xl);
    text-align: center;
    position: relative;
  }
  .cp-back {
    position: absolute;
    top: var(--sp-md); left: var(--sp-md);
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    padding: var(--sp-xs) var(--sp-md);
    border-radius: 20px;
    font-size: var(--fs-xs);
    cursor: pointer;
    transition: background 0.3s;
  }
  .cp-back:hover { background: rgba(255,255,255,0.28); }
  .cp-step {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: var(--sp-md);
  }
  .cp-header h2 {
    font-size: var(--fs-xl);
    font-weight: 900;
    line-height: var(--lh-tight);
    margin-bottom: var(--sp-sm);
  }
  .cp-header p {
    font-size: var(--fs-sm);
    opacity: 0.9;
    line-height: var(--lh-base);
  }

  .cp-body {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--sp-xl) var(--sp-lg) var(--sp-3xl);
  }

  .cp-hero-visual {
    background: linear-gradient(135deg, #FF6B35, #FFB703);
    border-radius: var(--radius);
    padding: var(--sp-2xl) var(--sp-lg);
    text-align: center;
    color: #fff;
    margin-bottom: var(--sp-xl);
    box-shadow: var(--shadow);
  }
  .cp-hero-visual .emoji { font-size: 60px; margin-bottom: var(--sp-md); }
  .cp-hero-visual .title { font-size: var(--fs-lg); font-weight: 900; margin-bottom: var(--sp-sm); line-height: var(--lh-tight); }
  .cp-hero-visual .sub { font-size: var(--fs-sm); opacity: 0.9; line-height: var(--lh-base); }

  .cp-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-md);
    margin-bottom: var(--sp-xl);
  }
  .cp-info-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: var(--sp-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
  }
  .cp-info-card .label { font-size: var(--fs-xs); color: var(--text-gray); margin-bottom: var(--sp-xs); line-height: var(--lh-base); }
  .cp-info-card .value { font-size: var(--fs-md); font-weight: 700; color: var(--accent); line-height: var(--lh-tight); }

  .cp-section-title {
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--text-dark);
    margin: var(--sp-xl) 0 var(--sp-md);
    padding-left: var(--sp-md);
    border-left: 4px solid var(--accent);
    line-height: var(--lh-tight);
  }

  .cp-steps {
    background: var(--white);
    border-radius: var(--radius);
    padding: var(--sp-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--sp-xl);
  }
  .cp-step-item {
    display: flex;
    gap: var(--sp-md);
    padding: var(--sp-md) 0;
    border-bottom: 1px dashed #EEE;
  }
  .cp-step-item:last-child { border-bottom: none; }
  .cp-step-num {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: var(--fs-sm);
    font-weight: 700;
  }
  .cp-step-text { font-size: var(--fs-sm); color: var(--text-dark); line-height: var(--lh-loose); }
  .cp-step-text strong { color: var(--accent); font-weight: 900; }

  .cp-cta-primary {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: var(--sp-xl) auto var(--sp-md);
    padding: var(--sp-md);
    background: var(--accent);
    color: var(--white);
    font-size: var(--fs-md);
    font-weight: 700;
    border: none; border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(232,93,44,0.4);
    transition: all 0.3s;
    text-align: center;
  }
  .cp-cta-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

  .cp-cta-secondary {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: 0 auto var(--sp-md);
    padding: 14px;
    background: var(--white);
    color: var(--accent);
    font-size: var(--fs-base);
    font-weight: 700;
    border: 2px solid var(--accent);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
  }
  .cp-cta-secondary:hover { background: var(--accent); color: var(--white); }

  .cp-note {
    background: #FFF8F0;
    border-left: 3px solid var(--accent);
    padding: var(--sp-md);
    border-radius: 4px;
    font-size: var(--fs-xs);
    color: var(--text-gray);
    line-height: var(--lh-loose);
    margin-top: var(--sp-md);
  }

  .course-card {
    cursor: pointer;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--sp-lg);
    transition: transform 0.3s, box-shadow 0.3s;
  }
  .course-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
  .course-card-img {
    height: 180px;
    display: flex;
    align-items: flex-end;
    padding: var(--sp-md);
    color: #fff;
    position: relative;
  }
  .course-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0,0,0,0.55));
    z-index: 0;
  }
  .course-card-img > * { position: relative; z-index: 1; }
  .course-card-img .badge {
    position: absolute;
    top: var(--sp-md); left: var(--sp-md);
    background: var(--white);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--fs-xs);
    font-weight: 700;
    z-index: 2;
  }
  .course-card-img .title-block { width: 100%; }
  .course-card-img h3 {
    font-size: var(--fs-md);
    font-weight: 900;
    line-height: var(--lh-tight);
    margin-bottom: 4px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  }
  .course-card-img p { font-size: var(--fs-xs); opacity: 0.95; line-height: var(--lh-base); }
  .course-card-body { padding: var(--sp-md); }
  .course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-sm);
    margin-bottom: var(--sp-sm);
  }
  .course-tag {
    background: #FFE8DB;
    color: var(--accent);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: var(--fs-xs);
    font-weight: 600;
  }
  .course-desc { font-size: var(--fs-sm); color: var(--text-gray); line-height: var(--lh-loose); }

  .cp-coming-soon {
    background: linear-gradient(135deg, #FFF3ED, #FFE8DB);
    border: 2px dashed #FFB088;
    border-radius: var(--radius);
    padding: var(--sp-lg);
    text-align: center;
    margin-bottom: var(--sp-xl);
  }
  .cp-coming-soon .emoji { font-size: 40px; margin-bottom: var(--sp-sm); }
  .cp-coming-soon .title { font-size: var(--fs-base); font-weight: 700; color: var(--accent); margin-bottom: var(--sp-xs); }
  .cp-coming-soon .desc { font-size: var(--fs-sm); color: var(--text-gray); line-height: var(--lh-loose); }

  .pass-variant {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--sp-md);
  }
  .pass-variant-head {
    padding: var(--sp-md) var(--sp-lg);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .pass-variant-head.thsr { background: linear-gradient(135deg, #C04A1E, #E85D2C); }
  .pass-variant-head.tra { background: linear-gradient(135deg, #2EC4B6, #118AB2); }
  .pass-variant-head h3 { font-size: var(--fs-md); font-weight: 900; line-height: var(--lh-tight); }
  .pass-variant-head .icon { font-size: 32px; }
  .pass-variant-body { padding: var(--sp-md) var(--sp-lg); }
  .pass-variant-body ul { list-style: none; padding: 0; }
  .pass-variant-body li {
    font-size: var(--fs-sm);
    color: var(--text-gray);
    padding: 6px 0 6px 24px;
    position: relative;
    line-height: var(--lh-base);
  }
  .pass-variant-body li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
  }

  .pass-map-visual {
    background: linear-gradient(135deg, #FFF, #FFF8F0);
    border: 1px solid #FFDCC8;
    border-radius: var(--radius);
    padding: var(--sp-xl) var(--sp-lg);
    text-align: center;
    margin-bottom: var(--sp-lg);
  }
  .pass-map-visual .emoji { font-size: 64px; margin-bottom: var(--sp-md); }
  .pass-map-visual .title { font-size: var(--fs-base); font-weight: 700; color: var(--text-dark); margin-bottom: var(--sp-xs); }
  .pass-map-visual .desc { font-size: var(--fs-xs); color: var(--text-gray); line-height: var(--lh-loose); }

  .sta-intro {
    background: var(--white);
    border-radius: var(--radius);
    padding: var(--sp-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--sp-xl);
  }
  .sta-logo-area {
    text-align: center;
    padding-bottom: var(--sp-md);
    border-bottom: 1px solid #EEE;
    margin-bottom: var(--sp-md);
  }
  .sta-logo-area .logo { font-size: var(--fs-xl); font-weight: 900; color: var(--accent); letter-spacing: 2px; }
  .sta-logo-area .tagline { font-size: var(--fs-xs); color: var(--text-gray); margin-top: 4px; }
  .sta-intro p { font-size: var(--fs-sm); color: var(--text-gray); line-height: var(--lh-loose); }

  .price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-md);
    margin-bottom: var(--sp-xl);
  }
  .price-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: var(--sp-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-top: 4px solid var(--accent);
  }
  .price-card .icon { font-size: 36px; margin-bottom: var(--sp-sm); }
  .price-card .category { font-size: var(--fs-xs); color: var(--text-gray); margin-bottom: 4px; }
  .price-card .name { font-size: var(--fs-base); font-weight: 700; margin-bottom: var(--sp-sm); line-height: var(--lh-tight); }
  .price-card .price { font-size: var(--fs-lg); font-weight: 900; color: var(--accent); line-height: 1; }
  .price-card .price .unit { font-size: var(--fs-xs); color: var(--text-gray); font-weight: 400; margin-left: 2px; }
  .price-card .note { font-size: 10px; color: var(--text-gray); margin-top: var(--sp-xs); line-height: var(--lh-base); }

  .feature-list {
    background: var(--white);
    border-radius: var(--radius);
    padding: var(--sp-md) var(--sp-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--sp-xl);
  }
  .feature-item {
    display: flex;
    gap: var(--sp-md);
    padding: var(--sp-md) 0;
    border-bottom: 1px solid #F4F4F4;
    align-items: flex-start;
  }
  .feature-item:last-child { border-bottom: none; }
  .feature-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #FFE8DB;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
  }
  .feature-text h4 { font-size: var(--fs-sm); font-weight: 700; margin-bottom: 2px; line-height: var(--lh-base); }
  .feature-text p { font-size: var(--fs-xs); color: var(--text-gray); line-height: var(--lh-base); }

  .cp-tabs {
    display: flex;
    justify-content: center;
    gap: var(--sp-xs);
    margin-top: var(--sp-md);
  }
  .cp-tab-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: all 0.3s;
  }
  .cp-tab-dot.active { background: #fff; width: 24px; border-radius: 4px; }

  @media (min-width: 768px) {
    .cp-info-grid { grid-template-columns: repeat(4, 1fr); }
  }
  @media (max-width: 380px) {
    .price-grid { grid-template-columns: 1fr; }
  }

  /* === BIG PASS CTA BUTTON === */
  .btn-pass-cta {
    margin: var(--sp-lg) auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-md);
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--accent-dark);
    border: none;
    border-radius: 18px;
    padding: var(--sp-md) var(--sp-lg);
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.4);
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    max-width: 480px;
    position: relative;
    overflow: hidden;
  }
  .btn-pass-cta::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
    transform: rotate(45deg) translate(-100%, -100%);
    animation: shine 3s ease-in-out infinite;
  }
  @keyframes shine {
    0%, 100% { transform: rotate(45deg) translate(-100%, -100%); }
    50% { transform: rotate(45deg) translate(100%, 100%); }
  }
  .btn-pass-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 36px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.5);
  }
  .btn-pass-cta:active { transform: scale(0.98); }
  .pass-cta-icon {
    font-size: 36px;
    flex-shrink: 0;
    z-index: 1;
  }
  .pass-cta-text {
    flex: 1;
    z-index: 1;
  }
  .pass-cta-title {
    font-size: var(--fs-md);
    font-weight: 900;
    line-height: var(--lh-tight);
    margin-bottom: 2px;
  }
  .pass-cta-sub {
    font-size: var(--fs-xs);
    opacity: 0.85;
    line-height: var(--lh-base);
  }
  .pass-cta-arrow {
    font-size: 24px;
    flex-shrink: 0;
    transition: transform 0.3s;
    z-index: 1;
  }
  .btn-pass-cta:hover .pass-cta-arrow { transform: translateX(4px); }

  @media (max-width: 380px) {
    .btn-pass-cta { padding: 12px 16px; gap: var(--sp-sm); }
    .pass-cta-icon { font-size: 28px; }
    .pass-cta-title { font-size: var(--fs-base); }
    .pass-cta-sub { font-size: 10px; }
  }


/* Reverted Itinerary Layout + Image Frame Styles */
.itin-hero-wrap {
  width: 100%;
  max-width: 640px;
  margin: var(--sp-xl) auto 20px auto;
  padding: 0 var(--sp-lg);
}
.itin-hero-wrap img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  cursor: zoom-in;
  transition: var(--transition);
}
.itin-hero-wrap img:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

/* Reverted day layout - text left, image right */
.itin-day {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  padding: var(--sp-lg);
  border-left: 3px solid var(--accent);
  margin-bottom: var(--sp-lg);
  background: var(--white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.itin-day-text {
  flex: 1;
  min-width: 0;
}
.itin-day h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--sp-sm);
  line-height: var(--lh-base);
}
.itin-day p {
  font-size: var(--fs-sm);
  color: var(--text-gray);
  line-height: var(--lh-loose);
}
.itin-day-images {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (max-width: 767px) {
  .itin-day {
    flex-direction: column;
  }
  .itin-day-images {
    flex: none;
    width: 100%;
  }
}

/* Image Frame Styles */
.image-frame-wrapper {
  position: relative;
  display: inline-block;
  line-height: 0;
  pointer-events: none;
  width: 100%;
}
.target-image {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  pointer-events: auto;
  cursor: zoom-in;
}
.frame-left {
  position: absolute;
  left: 0; top: 25px; bottom: 25px; width: 5px;
  background-color: #F5F5DC; z-index: 10;
}
.frame-right {
  position: absolute;
  right: 0; top: 10px; bottom: 10px; width: 5px;
  background-color: #F5F5DC; z-index: 10;
}
.frame-top, .frame-bottom {
  position: absolute; left: 0; right: 0; width: 100%; height: 50px;
  display: flex; z-index: 10;
}
.frame-top { top: 0; align-items: flex-start; }
.frame-bottom { bottom: 0; align-items: flex-end; }
.rect-50px { width: 30%; height: 25px; background-color: #F5F5DC; }
.rect-20px { flex: 1; height: 10px; background-color: #F5F5DC; }
.triangle-container {
  position: absolute;
  width: 100px;
  height: 35px;
  background-color: #F5F5DC;
  z-index: 20;
  left: calc(30% - 50px);
}
.triangle-down {
  top: 0;
  clip-path: polygon(0% 0%, 70% 0%, 50% 100%);
}
.triangle-up {
  bottom: 0;
  clip-path: polygon(0% 100%, 70% 100%, 50% 0%);
}

  /* =============================================
     AIRLINE LOGOS SECTION
     ============================================= */
  .airline-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    align-items: stretch;
  }
  .airline-link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    border: 1px solid #EAEAEA;
    border-radius: 8px;
    background: #FFFFFF;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    height: 54px;
    box-sizing: border-box;
    overflow: hidden;
  }
  .airline-logo-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .airline-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.06);
    border-color: var(--accent);
  }
  .airline-link-card img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
  }
  .airline-link-card img.logo-china-eva {
    transform: scale(1.3);
  }
  .airline-link-card img.logo-china-airlines {
    transform: scale(1.2);
  }
  .airline-link-card img.logo-starlux {
    transform: scale(1.2);
  }
  .airline-link-card img.logo-china-tiger {
    <!-- transform: scale(1.2); -->
  }
  @media (min-width: 600px) {
    .airline-links-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }

   SHARE MODAL
   ============================================= */
.modal-overlay {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: flex-end; justify-content: center;
  z-index: 1000;
}
.modal-overlay.open { display: flex; }
.modal-sheet {
  background: var(--white);
  width: 100%; max-width: 480px;
  border-radius: 20px 20px 0 0;
  padding: var(--sp-lg) var(--sp-lg) var(--sp-2xl);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (min-width: 768px) {
  .modal-sheet { border-radius: 20px; margin-bottom: var(--sp-xl); }
}
.modal-overlay.open .modal-sheet { transform: translateY(0); }
.modal-handle { width: 40px; height: 4px; background: #DDD; border-radius: 2px; margin: 0 auto var(--sp-lg); }
.modal-title  { font-size: var(--fs-md); font-weight: 700; margin-bottom: var(--sp-lg); text-align: center; line-height: var(--lh-base); }
.share-options {
  display: flex;
  justify-content: center;
  gap: var(--sp-xl);
  margin-bottom: var(--sp-lg);
}
.share-option {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--sp-sm);
  cursor: pointer; border: none; background: none;
  transition: transform 0.2s;
}
.share-option:hover { transform: scale(1.08); }
.share-icon {
  width: 60px; height: 60px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: var(--fs-lg); font-weight: 700;
}
.share-icon.twitter   { background: #1DA1F2; }
.share-icon.instagram { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); }
.share-icon.line      { background: #06C755; }
.share-option span { font-size: var(--fs-xs); color: var(--text-gray); line-height: var(--lh-base); }
.share-tag { text-align: center; font-size: var(--fs-sm); color: var(--accent); font-weight: 600; line-height: var(--lh-base); }

/* =============================================
   SUB-PAGES (ITINERARY / LOTTERY)
   ============================================= */
.sub-page {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--white);
  opacity: 0; transform: translateX(100%);
  transition: all var(--transition);
  pointer-events: none; overflow-y: auto; z-index: 500;
}
.sub-page.open { opacity: 1; transform: translateX(0); pointer-events: auto; }

.itin-header {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  padding: var(--sp-2xl) var(--sp-lg) var(--sp-xl);
  color: var(--white); text-align: center;
}
.itin-back {
  font-size: var(--fs-sm); opacity: 0.8; cursor: pointer;
  background: none; border: none; color: #fff;
  margin-bottom: var(--sp-md);
  display: inline-flex; align-items: center; gap: var(--sp-xs);
  line-height: var(--lh-base);
}
.itin-header h2 { font-size: var(--fs-xl); font-weight: 900; margin-bottom: var(--sp-sm); line-height: var(--lh-tight); }
.itin-header p  { font-size: var(--fs-sm); opacity: 0.85; line-height: var(--lh-base); }
.itin-body { max-width: 640px; margin: 0 auto; padding: var(--sp-xl) var(--sp-lg); }
.itin-day { margin-bottom: var(--sp-xl); padding-left: var(--sp-lg); border-left: 3px solid var(--accent); }
.itin-day h3 { font-size: var(--fs-base); font-weight: 700; color: var(--accent); margin-bottom: var(--sp-sm); line-height: var(--lh-base); }
.itin-day p  { font-size: var(--fs-sm); color: var(--text-gray); line-height: var(--lh-loose); }
.itin-footer { padding: var(--sp-lg); text-align: center; }
.btn-top {
  padding: var(--sp-md) var(--sp-2xl);
  background: var(--accent); color: var(--white);
  font-size: var(--fs-base); font-weight: 700;
  border: none; border-radius: 50px;
  cursor: pointer; transition: all 0.3s;
  line-height: var(--lh-base);
}
.btn-top:hover { background: var(--accent-dark); }

.lottery-content {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 100vh;
  padding: var(--sp-2xl) var(--sp-lg);
  text-align: center;
}
.lottery-emoji   { font-size: 90px; margin-bottom: var(--sp-xl); }
.lottery-title   { font-size: var(--fs-xl); font-weight: 900; color: var(--accent); margin-bottom: var(--sp-sm); line-height: var(--lh-tight); }
.lottery-name    { font-size: var(--fs-md); font-weight: 700; color: var(--text); margin-bottom: var(--sp-md); line-height: var(--lh-base); }
.lottery-desc    { font-size: var(--fs-base); color: var(--text-gray); line-height: var(--lh-loose); margin-bottom: var(--sp-xl); }
.lottery-hashtag { color: var(--accent); font-weight: 600; }

/* =============================================
   SHARE MODAL — UPDATED
   ============================================= */
.share-option--x       { position: relative; }
.share-option--disabled { opacity: 0.45; cursor: not-allowed !important; }
.share-option--disabled:hover { transform: none !important; }
.share-badge {
  position: absolute; top: -8px; right: -8px;
  background: var(--accent); color: #fff;
  font-size: 9px; font-weight: 700;
  padding: 2px 6px; border-radius: 20px;
  white-space: nowrap;
}
.share-soon {
  font-size: 9px; color: var(--text-gray);
  background: #F0F0F0; padding: 1px 5px;
  border-radius: 4px; margin-top: -2px;
}

/* =============================================
   X SHARE FLOW MODAL
   ============================================= */
.x-flow-overlay { align-items: center; background: rgba(0,0,0,0.65); }
.x-flow-sheet {
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px !important;
  margin: var(--sp-md);
}

/* Make step content inner scrollable to keep modal border perfectly intact */
.x-step {
  overflow-y: auto;
  max-height: 74vh;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}
.x-step::-webkit-scrollbar {
  width: 5px;
}
.x-step::-webkit-scrollbar-track {
  background: transparent;
}
.x-step::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}

/* Progress */
.x-progress {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: var(--sp-lg);
}
.x-progress-step {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid #DDD;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #AAA;
  transition: all 0.3s;
}
.x-progress-step.active { border-color: #000; background: #000; color: #fff; }
.x-progress-line { flex: 1; max-width: 48px; height: 2px; background: #DDD; }

/* Step */
.x-step-title {
  font-size: var(--fs-md); font-weight: 800;
  margin-bottom: var(--sp-sm); text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.x-icon { font-size: 20px; }
.x-step-desc { text-align: center; color: var(--text-gray); font-size: var(--fs-sm); margin-bottom: var(--sp-lg); line-height: var(--lh-base); }

/* Form */
.x-form  { display: flex; flex-direction: column; gap: var(--sp-md); margin-bottom: var(--sp-lg); }
.x-field { display: flex; flex-direction: column; gap: 6px; }
.x-field label { font-size: var(--fs-sm); font-weight: 600; }
.x-field .required { color: var(--accent); }
.x-field input {
  padding: 12px var(--sp-md);
  border: 2px solid #E0E0E0; border-radius: var(--radius-sm);
  font-size: var(--fs-base); font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}
.x-field input:focus { border-color: #000; }
.x-field-error { font-size: var(--fs-xs); color: #E53E3E; min-height: 16px; }

/* Actions */
.x-step-actions { display: flex; flex-direction: column; gap: var(--sp-sm); }
.btn-x-next {
  padding: var(--sp-md); border: none; border-radius: 50px;
  background: #000; color: #fff;
  font-size: var(--fs-base); font-weight: 700; cursor: pointer;
  transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-x-next:hover:not(:disabled) { background: #222; transform: translateY(-1px); }
.btn-x-next:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-x-cancel, .btn-x-back {
  padding: var(--sp-sm); border: none; background: none;
  color: var(--text-gray); font-size: var(--fs-sm); cursor: pointer;
  text-decoration: underline; text-align: center;
}

/* Post preview card */
.post-preview-card {
  background: #fff; border: 1px solid #E0E0E0;
  border-radius: 12px; padding: var(--sp-md);
  margin-bottom: var(--sp-lg);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.ppc-header { display: flex; align-items: center; gap: 10px; margin-bottom: var(--sp-sm); }
.ppc-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: #EEE; display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.ppc-meta  { flex: 1; }
.ppc-name  { font-size: var(--fs-sm); font-weight: 700; line-height: 1.3; }
.ppc-handle { font-size: var(--fs-xs); color: #888; }
.ppc-x-logo { font-size: 18px; color: #000; font-weight: 900; }
.ppc-body    { font-size: var(--fs-sm); line-height: var(--lh-loose); margin-bottom: var(--sp-sm); white-space: pre-wrap; }
.ppc-hashtags { font-size: var(--fs-xs); color: #1DA1F2; font-weight: 600; }

/* Instructions */
.instruction-steps {
  background: #F8F8F8; border-radius: var(--radius-sm);
  padding: var(--sp-md); margin-bottom: var(--sp-lg);
}
.inst-title { font-size: var(--fs-sm); font-weight: 700; margin-bottom: var(--sp-sm); }
.inst-step  { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-sm); padding: 4px 0; color: var(--text-gray); line-height: var(--lh-base); }
.inst-num   { font-weight: 700; color: #000; flex-shrink: 0; }
.btn-x-post {
  padding: var(--sp-md); border: none; border-radius: 50px;
  background: #000; color: #fff;
  font-size: var(--fs-base); font-weight: 700; cursor: pointer;
  transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-x-post:hover { background: #222; transform: translateY(-1px); }

/* =============================================
   UPLOAD SCREENSHOT PAGE
   ============================================= */
.upload-header {
  background: linear-gradient(135deg, #000 0%, #333 100%);
  color: #fff; text-align: center;
  padding: var(--sp-2xl) var(--sp-lg) var(--sp-xl);
}
.upload-header-icon { font-size: 40px; margin-bottom: var(--sp-sm); }
.upload-header h2   { font-size: var(--fs-xl); font-weight: 900; margin-bottom: var(--sp-sm); line-height: var(--lh-tight); }
.upload-header p    { font-size: var(--fs-sm); opacity: 0.8; line-height: var(--lh-loose); }

.upload-body { max-width: 480px; margin: 0 auto; padding: var(--sp-xl) var(--sp-lg) var(--sp-2xl); }

.upload-zone {
  border: 2.5px dashed #CCC; border-radius: var(--radius);
  min-height: 200px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: var(--sp-lg);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: #000; background: #F5F5F5;
}
.upload-zone-inner { text-align: center; padding: var(--sp-xl); }
.upload-icon       { font-size: 48px; margin-bottom: var(--sp-md); }
.upload-zone-text  { font-size: var(--fs-base); font-weight: 700; margin-bottom: var(--sp-sm); }
.upload-zone-hint  { font-size: var(--fs-sm); color: var(--text-gray); margin-bottom: var(--sp-sm); line-height: var(--lh-base); }
.upload-zone-types { font-size: var(--fs-xs); color: #AAA; }

.upload-preview { width: 100%; text-align: center; }
.upload-preview img { max-width: 100%; max-height: 300px; border-radius: var(--radius-sm); object-fit: contain; }
.upload-preview-change { font-size: var(--fs-xs); color: var(--text-gray); margin-top: var(--sp-sm); text-decoration: underline; }

.upload-error {
  background: #FFF5F5; border: 1px solid #FED7D7;
  color: #C53030; border-radius: var(--radius-sm);
  padding: var(--sp-sm) var(--sp-md);
  font-size: var(--fs-sm); margin-bottom: var(--sp-md);
  line-height: var(--lh-base);
}

.btn-upload-submit {
  width: 100%; padding: var(--sp-md); border: none; border-radius: 50px;
  background: var(--accent); color: #fff;
  font-size: var(--fs-base); font-weight: 700; cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(232,93,44,0.35);
}
.btn-upload-submit:hover:not(:disabled) { background: var(--accent-dark); transform: translateY(-1px); }
.btn-upload-submit:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

.upload-loading {
  display: flex; align-items: center; justify-content: center;
  gap: var(--sp-sm); color: var(--text-gray); font-size: var(--fs-sm);
  padding: var(--sp-md) 0;
}
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #DDD; border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================
   TOAST NOTIFICATION
   ============================================= */
.app-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(33, 33, 33, 0.95);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}
.app-toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}


/* === FULLSCREEN OVERRIDE FIX === */
body.tc2-fullscreen {
  opacity: 1 !important;
  visibility: visible !important;
  transition: opacity 0.5s ease;
}

