@charset "UTF-8";
/* 
   2026 TravelGrants Modern Design System 
   Theme: Glassmorphism, Clean, Premium
*/
/* -------------------------------------------------------------------------- */
/*                                 Variables                                  */
/* -------------------------------------------------------------------------- */
:root {
  /* Colors - Primary (Starry Night Theme) */
  --primary-start: #1B294B;
  --primary-end: #2d4373;
  /* Slightly lighter shade for gradient */
  --primary-gradient: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
  /* Colors - Secondary/Accent */
  --secondary: #C84E89;
  /* Dreamy Purple-Pink */
  --accent: #F0B1C4;
  /* Soft Bright Pink */
  /* Semantic Colors */
  --success: #58bc8f;
  --warning: #ed8936;
  --danger: #f56565;
  --info: #4299e1;
  --light: #C0CAD3;
  /* Neutral / Background */
  --dark: #1B294B;
  /* Text Colors */
  --text-primary: #2d3748;
  --text-secondary: #718096;
  --text-muted: #a0aec0;
  --text-light: #ffffff;
  /* Backgrounds */
  --bg-body: #f7fafc;
  --bg-surface: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.7);
  /* Borders & Shadows */
  --border-light: rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  --glass-blur: 12px;
  /* Typography */
  --font-sans: 'Inter', 'Noto Sans TC', system-ui, -apple-system, sans-serif;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

/* -------------------------------------------------------------------------- */
/*                                Base Styles                                 */
/* -------------------------------------------------------------------------- */
/* overflow-x 用 clip 而非 hidden：clip 不會把 body 變成 scroll container，
   viewport 維持正常捲動（手機網址列可收合、sticky 由視窗驅動），仍能擋掉意外橫向溢出 */
html,
body {
  margin: 0;
  padding: 0 !important;
  width: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  /* Optional: Add a subtle mesh gradient background (Starry Night Theme) */
  background-image: radial-gradient(at 0% 0%, rgba(27, 41, 75, 0.1) 0px, transparent 50%), radial-gradient(at 100% 0%, rgba(200, 78, 137, 0.1) 0px, transparent 50%), radial-gradient(at 100% 100%, rgba(240, 177, 196, 0.1) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  padding-right: 0 !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1 0 auto;
  width: 100%;
}

footer {
  flex-shrink: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

a {
  color: var(--primary-start);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-end);
  text-decoration: none;
}

/* -------------------------------------------------------------------------- */
/*                                 Components                                 */
/* -------------------------------------------------------------------------- */
/* Buttons
   尺寸走 Bootstrap 5.3 的 --bs-btn-* 變數，不直接寫 padding / border：
   直接寫會蓋掉 .btn-sm / .btn-lg 與 outline 系列的邊框（同特定度、後載入者勝）。
   :not() 是因為 .btn-sm 在 bootstrap.min.css 位置較前，否則仍會被這裡的變數蓋掉 */
.btn:not(.btn-sm):not(.btn-lg) {
  --bs-btn-padding-y: 0.6rem;
  --bs-btn-padding-x: 1.25rem;
}

.btn {
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  --bs-btn-border-color: transparent;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-border-color: transparent;
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 6px rgba(27, 41, 75, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 14px rgba(27, 41, 75, 0.3);
  color: white;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: white;
  color: var(--text-primary);
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #f8f9fa;
  border-color: #cbd5e0;
  color: var(--primary-start);
  transform: translateY(-1px);
}

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

.btn-outline-primary:hover {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

/* Forms */
.form-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.form-label.required::after {
  content: "*";
  color: var(--danger);
  margin-left: 4px;
}

.form-control {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
  border-color: var(--primary-start);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
  background: white;
}

.form-select {
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
}

.form-select:focus {
  border-color: var(--primary-start);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* Cards & Glass Panels */
.card,
.glass-panel {
  background: var(--bg-surface);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.25rem 1.5rem;
}

.card-body {
  padding: 1.5rem;
}

/* Tables */
.table {
  width: 100%;
  margin-bottom: 0;
  color: var(--text-primary);
  vertical-align: middle;
}

.table thead th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-bottom: 2px solid #e2e8f0;
  background-color: transparent;
  /* Let container determine bg */
  padding: 1rem;
}

.table tbody td {
  padding: 1rem;
  border-bottom: 1px solid #edf2f7;
  color: var(--text-primary);
}

.table-hover tbody tr:hover td {
  background-color: rgba(45, 112, 87, 0.05);
}

/* Alerts */
.alert {
  border: none;
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.alert-success {
  background-color: #f0fff4;
  color: #2f855a;
  border-left: 4px solid #48bb78;
}

.alert-danger {
  background-color: #fff5f5;
  color: #c53030;
  border-left: 4px solid #f56565;
}

.alert-warning {
  background-color: #fffaf0;
  color: #c05621;
  border-left: 4px solid #ed8936;
}

/* -------------------------------------------------------------------------- */
/*                                Utilities                                   */
/* -------------------------------------------------------------------------- */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-soft {
  box-shadow: var(--shadow-lg);
}

.rounded-xl {
  border-radius: var(--radius-xl);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Specific Page Overrides */
/* Login Page specific */
.login-card {
  max-width: 450px;
  width: 100%;
  padding: 2.5rem;
}

/* Header Override */
/* Header Override */
.glass-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1030;
  /* Bootstrap standard for fixed navbar */
  padding: 0.75rem 2rem;
  /* Adjusted padding */
  display: flex;
  flex-wrap: wrap;
  /* Essential for Bootstrap navbar expansion */
  justify-content: space-between;
  align-items: center;
}
.glass-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../image/layout-header.png") no-repeat center center;
  background-size: cover;
  backdrop-filter: blur(10px);
}
@media (max-width: 768px) {
  .glass-header {
    padding: 0.5rem 0.25rem;
  }
  .glass-header::before {
    background-image: url("../image/layout-header-mobile.png");
  }
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.nav-menu {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Navigation */
.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  display: inline-block;
}

.nav-link:hover {
  background: rgba(45, 112, 87, 0.05);
  color: var(--primary-start);
}

.nav-btn {
  --bs-btn-border-color: transparent;
  background: var(--primary-gradient);
  color: white !important;
  border-radius: 9999px;
  padding: 0.4rem 1.2rem;
  /* Reduced padding */
  box-shadow: 0 4px 6px rgba(45, 112, 87, 0.2);
  margin-left: 0.5rem;
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 10px rgba(45, 112, 87, 0.25);
  background: var(--primary-gradient);
  /* Ensure gradient stays */
  color: white !important;
  /* Ensure text stays white */
}

/* Bootstrap Overrides */
.bg-primary {
  background-color: var(--primary-start) !important;
}

.bg-secondary {
  background-color: #a0aec0 !important;
}

.bg-success {
  background-color: var(--success) !important;
}

.bg-info {
  background-color: var(--info) !important;
}

.bg-warning {
  background-color: var(--warning) !important;
}

.bg-danger {
  background-color: var(--danger) !important;
}

.bg-light {
  background-color: var(--light) !important;
}

.bg-dark {
  background-color: var(--dark) !important;
}

.text-primary {
  color: var(--primary-start) !important;
}

.text-success {
  color: var(--success) !important;
}

.text-info {
  color: var(--info) !important;
}

.text-warning {
  color: var(--warning) !important;
}

.text-danger {
  color: var(--danger) !important;
}

.badge {
  font-weight: 500;
  padding: 0.5em 0.8em;
}

.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.modal-header {
  border-bottom: 1px solid var(--border-light);
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-footer {
  border-top: 1px solid var(--border-light);
}

/* -------------------------------------------------------------------------- */
/*                                Landing Page                                */
/* -------------------------------------------------------------------------- */
.landing-body {
  background: url("../image/landing-bg.png") no-repeat center center fixed;
  /* Changed to center bottom */
  background-size: 100% 100%;
  /* cover will always crop to fill. Alternatives: 100% 100% (stretches), contain (shows all with gaps) */
  min-height: 100vh;
  display: flex;
  /* 置中交給子卡片的 margin:auto：align-items:center 在內容高於視窗時會上下等量溢出，上緣捲不到（手機登入頁被裁的主因） */
  align-items: flex-start;
  justify-content: center;
  font-family: "Noto Sans TC", sans-serif;
  position: relative;
  padding: 2rem;
  /* Dark Overlay for better contrast */
}
.landing-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 0;
}
.landing-body {
  /* Mobile Background Override */
}
@media (max-width: 768px) {
  .landing-body {
    padding: 1rem;
    background-image: url("../image/landing-bg-mobile.png");
    background-size: 100% 100%;
    /* Often 'fixed' background has issues on mobile browsers, 'scroll' is safer */
    background-attachment: scroll;
  }
}

.landing-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  margin: auto;
}

/* 首頁統計卡：手機直向堆疊、金額不斷行；分隔線只在 ≥ 576 畫 */
.stat-value {
  font-size: clamp(1rem, 4.5vw, 1.25rem);
  white-space: nowrap;
}

@media (min-width: 576px) {
  .stat-col-mid {
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    border-right: 1px solid rgba(255, 255, 255, 0.25);
  }
}
.landing-card {
  background-color: rgba(106, 76, 156, 0.7);
  /* #6A4C9C with 70% opacity */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 32px 5rem;
  /* Maintain original horizontal padding or adjust as needed, but ensure 32px vertical default */
  text-align: center;
  color: white;
  /* Glowing Stroke with secondary color (#C84E89) */
  border: 1px solid var(--secondary);
  box-shadow: inset 0 0 0 1px var(--secondary), 0 0 15px rgba(200, 78, 137, 0.5);
  /* Outer soft glow */
  transition: all 0.4s ease-in-out;
}

.landing-card:hover {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent), 0 0 25px rgba(240, 177, 196, 0.7);
  /* Glow transitions to --accent (#F0B1C4) */
  transform: translateY(-5px);
}

.landing-title {
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 0;
  letter-spacing: 1px;
  color: var(--text-light);
  /* Force white as per user */
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (min-width: 769px) {
  .action-grid .btn-span-3:nth-child(1) {
    grid-column: 3/7;
  }
  .action-grid .btn-span-3:nth-child(2) {
    grid-column: 7/11;
  }
}
.action-grid .info-row {
  grid-column: 1/-1;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 1.5rem;
}

.btn-landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border-radius: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.15rem;
  font-weight: 500;
  height: 100%;
  min-height: 80px;
  /* Ensure click area */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  /* Unified Default Style: Dreamy Purple-Pink Background, White Text */
  background-color: var(--secondary);
  color: var(--text-light);
  white-space: nowrap;
  /* Prevent text wrapping */
  /* Unified Hover Style: Soft Bright Pink Background, White Text */
}
.btn-landing:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
  background-color: var(--accent);
  /* Accent Background */
  color: var(--text-light);
  /* White Text */
}
.btn-landing {
  /* 尚未開放的連結：反灰、不套 hover 位移；不可點靠「無 href」達成，
     不用 pointer-events: none 否則滑鼠事件到不了元素，title 提示不會出現 */
}
.btn-landing.is-disabled {
  cursor: not-allowed;
  opacity: 0.45;
  filter: grayscale(1);
  box-shadow: none;
}
.btn-landing.is-disabled:hover {
  transform: none;
  background-color: var(--secondary);
  box-shadow: none;
}

/* Mobile Specific Components */
.mobile-menu-toggle {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1050;
  /* Above everything */
  padding: 0.5rem;
  color: var(--text-light);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  background: transparent;
  border: none;
}
.mobile-menu-toggle:hover {
  color: var(--accent);
}

@media (max-width: 991.98px) {
  .custom-offcanvas {
    /* 
       Refactored for Bootstrap 5 Offcanvas 
       Removed fixed positioning, top/right/bottom/transition/display 
       BS5 handles layout now.
    */
    /* Visual Styles */
    background-color: var(--primary-start) !important;
    backdrop-filter: blur(10px);
    border-left: 1px solid var(--border-light);
    color: var(--text-light);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    /* Keep width override if needed, but BS5 has its own sizing classes */
    width: 80%;
    max-width: 350px;
    z-index: 1060;
    /* Ensure it covers the hamburger toggle (1050) */
  }
  .custom-offcanvas .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .custom-offcanvas .offcanvas-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
  }
  .custom-offcanvas .offcanvas-body {
    padding-top: 2rem;
  }
  .custom-offcanvas .navbar-nav {
    align-items: stretch;
    padding-right: 0;
  }
  .custom-offcanvas .navbar-nav .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    text-align: left;
  }
  .custom-offcanvas .navbar-nav .nav-btn {
    margin: 0.75rem 0 0;
    text-align: center;
  }
  .custom-offcanvas .btn-outline-light {
    color: var(--text-light);
    border-color: var(--border-light);
    padding: 1rem;
    font-size: 1.1rem;
  }
  .custom-offcanvas .btn-outline-light:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--text-primary);
  }
}
/* 
   Since buttons are unified, variants now just inherit the base style.
   We keep the classes in HTML but remove their specific overrides 
   so they all look the same.
*/
.btn-landing-primary,
.btn-landing-cta,
.btn-landing-info {
  /* Inherit base .btn-landing styles */
  background-color: var(--secondary);
  color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
  .landing-card {
    margin: 0;
    padding: 1.5rem 1.25rem;
    border-radius: 1.5rem;
  }
  .landing-title {
    font-size: 1.5rem;
  }
  .action-grid {
    grid-template-columns: 1fr;
    /* Stack on mobile */
    gap: 1rem;
  }
}
/* Registration Page Specifics */
.terms-scroll-box {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  /* Custom Scrollbar */
}
.terms-scroll-box::-webkit-scrollbar {
  width: 8px;
}
.terms-scroll-box::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.02);
  border-radius: 4px;
}
.terms-scroll-box::-webkit-scrollbar-thumb {
  background: rgba(200, 78, 137, 0.3);
  /* theme secondary */
  border-radius: 4px;
  transition: background 0.2s;
}
.terms-scroll-box::-webkit-scrollbar-thumb:hover {
  background: rgba(200, 78, 137, 0.5);
}
.terms-scroll-box ol {
  padding-left: 1.2rem;
}
.terms-scroll-box h5 {
  color: var(--primary-start);
  margin-top: 1.5rem;
  font-size: 1.1rem;
}
.terms-scroll-box h5:first-child {
  margin-top: 0;
}

/* 同意勾選卡片：兩列共用一張卡、無分隔線，寬度由最長一列決定 */
.agree-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 100%;
  padding: 1rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
}

.agree-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.agree-row label {
  margin: 0;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.5;
  cursor: pointer;
}

.agree-check {
  flex: 0 0 auto;
  width: 1.5em;
  height: 1.5em;
  margin: 0;
  cursor: pointer;
}
.agree-check:checked {
  background-color: var(--secondary);
  border-color: var(--secondary);
}
.agree-check:disabled, .agree-check:disabled + label {
  cursor: not-allowed;
  opacity: 0.6;
}

.agree-link {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.agree-link i {
  font-size: 0.7em;
  margin-left: 0.25em;
  vertical-align: 0.15em;
}
.agree-link:hover {
  color: var(--primary-start);
}

.agree-hint {
  color: var(--secondary);
}

.scroll-indicator {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  pointer-events: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  opacity: 1;
  transition: opacity 0.3s;
}
.scroll-indicator.hidden {
  opacity: 0;
}

/* -------------------------------------------------------------------------- */
/*                                  Utilities                                 */
/* -------------------------------------------------------------------------- */
/* 保留換行符，用於顯示後端傳入的多行文字（取代 inline style，符合 CSP 規範） */
.text-prewrap {
  white-space: pre-wrap;
}

/* 寬表格在 .table-responsive 橫捲時，操作欄貼右不隨捲動移出視野（Apply/Index、Monthly）
   td 背景由 admin.scss 的 .table td { background: white } 與 hover 規則提供；
   thead 的漸層畫在 thead 而非 th，sticky th 需自帶底色 */
@media (max-width: 991.98px) {
  .table .col-sticky-end {
    position: sticky;
    right: 0;
    z-index: 1;
    box-shadow: -8px 0 8px -8px rgba(0, 0, 0, 0.18);
  }
  .table thead .col-sticky-end {
    background: #e9ecef;
  }
}
/* -------------------------------------------------------------------------- */
/*                     Flash Message (_Layout TempData toast)                 */
/* -------------------------------------------------------------------------- */
/* server-rendered 於 _Layout 頂端，site.js 3 秒（錯誤 6 秒）後淡出；固定在右上角、導覽列下方 */
@keyframes flash-slide-in {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.flash-message {
  position: fixed;
  top: 5rem;
  right: 1.5rem;
  z-index: 1080; /* 高於 .glass-header(1030) 與 Bootstrap modal(1055) */
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 18rem;
  max-width: min(28rem, 100vw - 3rem);
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--success);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(27, 41, 75, 0.18);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.4;
  animation: flash-slide-in 0.25s ease-out;
}
.flash-message > i {
  font-size: 1.35rem;
  flex-shrink: 0;
  color: var(--success);
}
.flash-message.flash-error {
  border-left-color: var(--danger);
}
.flash-message.flash-error > i {
  color: var(--danger);
}
@media (max-width: 768px) {
  .flash-message {
    top: 4.5rem;
    left: 0.75rem;
    right: 0.75rem;
    min-width: 0;
    max-width: none;
  }
}

/* -------------------------------------------------------------------------- */
/*              客服聯絡（_SupportContactLine / _SupportContactModal）           */
/* -------------------------------------------------------------------------- */
/* 單行客服資訊：登入類頁面表單底部、_Layout footer、註冊成功注意事項
   inline-flex + wrap：電話段與 LINE 膠囊各自不斷行，塞不下時膠囊整顆換行並保持置中 */
.support-contact {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.75rem;
  vertical-align: middle;
}

.support-item {
  white-space: nowrap;
}

.support-hours {
  opacity: 0.75;
}

.support-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.1rem 0.65rem;
  background: none;
  font: inherit;
  cursor: pointer;
  border: 1px solid rgba(6, 199, 85, 0.5);
  border-radius: 999px;
  color: #06C755;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
}
.support-link:hover, .support-link:focus {
  background-color: rgba(6, 199, 85, 0.1);
  border-color: #06C755;
  color: #05b04b;
  text-decoration: none;
}

/* _Layout footer：取代原 inline style */
.site-footer {
  text-align: center;
  padding: 2rem;
  color: #718096;
  font-size: 0.9rem;
}

/* Modal：白底圓角、QR 磚 + 文字左右排 */
.support-modal .modal-content {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.support-modal .modal-body {
  padding: 1.25rem 2rem 2rem;
}
.support-modal hr {
  margin: 1.5rem 0;
  opacity: 0.1;
}

.support-line {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.support-qr {
  flex: none;
  width: 160px;
  height: 160px;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
}

.support-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #64748b;
}

.support-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0.15rem 0 0.5rem;
}
.support-value a {
  color: inherit;
  text-decoration: none;
}

.support-hint {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.btn-line {
  --bs-btn-border-color: transparent;
  background: #06C755;
  color: #fff;
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
}
.btn-line:hover, .btn-line:focus {
  background: #05b04b;
  color: #fff;
}

/*# sourceMappingURL=site.css.map */
