body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

/* 🍎 蘋果風格登入按鈕設計 - 2025 優化版 - 專用於認證對話框 */
.signin-dialog .btn-primary,
.auth-dialog .btn-primary,
.signin-dialog-overlay .btn-primary {
    /* 重置基礎樣式 */
    all: unset;
    box-sizing: border-box;

    /* 核心視覺設計 */
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 50%, #AF52DE 100%);
    border: none;
    border-radius: 16px;
    color: white;

    /* 字體與文字 */
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.2px;
    text-align: center;
    text-decoration: none;

    /* 佈局與尺寸 */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    margin: 8px auto !important;
    width: auto !important;
    max-width: 200px !important;
    min-height: 50px;

    /* 互動與動畫 */
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* 蘋果風格多層陰影 */
    box-shadow:
        0 8px 24px rgba(0, 122, 255, 0.25),
        0 4px 12px rgba(0, 122, 255, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);

    /* 初始狀態 */
    transform: translateY(0) scale(1);
    opacity: 1;

    /* 微妙的內部光澤效果 */
    position: relative;
    overflow: hidden;
}

/* Hover 效果 - 蘋果風格的微妙提升 */
.signin-dialog .btn-primary:hover,
.auth-dialog .btn-primary:hover,
.signin-dialog-overlay .btn-primary:hover {
    background: linear-gradient(135deg, #0056CC 0%, #4A44B8 50%, #9A47C7 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 16px 40px rgba(0, 122, 255, 0.35),
        0 8px 20px rgba(0, 122, 255, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 專注狀態 - 無障礙設計 */
.signin-dialog .btn-primary:focus-visible,
.auth-dialog .btn-primary:focus-visible,
.signin-dialog-overlay .btn-primary:focus-visible {
    outline: 3px solid rgba(0, 122, 255, 0.5);
    outline-offset: 2px;
}

/* Active 效果 - 按下時的回饋 */
.signin-dialog .btn-primary:active,
.auth-dialog .btn-primary:active,
.signin-dialog-overlay .btn-primary:active {
    transform: translateY(1px) scale(0.98);
    background: linear-gradient(135deg, #004999 0%, #3D3A9F 50%, #8A3FB4 100%);
    box-shadow:
        0 4px 12px rgba(0, 122, 255, 0.2),
        0 2px 6px rgba(0, 122, 255, 0.1),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.1s ease;
}

/* 禁用狀態 - 優雅的灰色 */
.signin-dialog .btn-primary:disabled,
.auth-dialog .btn-primary:disabled,
.signin-dialog-overlay .btn-primary:disabled {
    background: linear-gradient(135deg, #8E8E93 0%, #AEAEB2 100%);
    color: rgba(255, 255, 255, 0.6);
    cursor: not-allowed;
    transform: none;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.1),
        0 1px 4px rgba(0, 0, 0, 0.05);
    opacity: 0.6;
}

/* 響應式設計 - 移動設備優化 */
@media (max-width: 480px) {
    .signin-dialog .btn-primary,
    .auth-dialog .btn-primary,
    .signin-dialog-overlay .btn-primary {
        font-size: 16px !important;
        padding: 14px 28px !important;
        max-width: 180px !important;
        min-height: 48px;
        border-radius: 14px;

        /* 移動設備上的觸控優化 */
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
}

/* 平板設備優化 */
@media (min-width: 481px) and (max-width: 768px) {
    .signin-dialog .btn-primary,
    .auth-dialog .btn-primary,
    .signin-dialog-overlay .btn-primary {
        font-size: 17px !important;
        padding: 15px 30px !important;
        max-width: 190px !important;
        min-height: 49px;
    }
}

/* 觸控設備優化 */
@media (hover: none) and (pointer: coarse) {
    .signin-dialog .btn-primary,
    .auth-dialog .btn-primary,
    .signin-dialog-overlay .btn-primary {
        min-height: 52px;
        padding: 16px 32px !important;
        max-width: 200px !important;
    }

    .signin-dialog .btn-primary:hover,
    .auth-dialog .btn-primary:hover,
    .signin-dialog-overlay .btn-primary:hover {
        transform: none;
    }

    .signin-dialog .btn-primary:active,
    .auth-dialog .btn-primary:active,
    .signin-dialog-overlay .btn-primary:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

/* 🍎 Top Navigation 登入按鈕 - 蘋果風格設計 */
.top-nav .user-actions .btn-primary {
    /* 重置基礎樣式 */
    all: unset;
    box-sizing: border-box;

    /* 核心視覺設計 */
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 50%, #AF52DE 100%);
    border: none;
    border-radius: 12px;
    color: white;

    /* 字體與文字 */
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px !important;
    font-weight: 600;
    letter-spacing: -0.1px;
    text-align: center;
    text-decoration: none;

    /* 佈局與尺寸 - 適合 top-nav */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
    padding: 8px 16px !important;
    margin: 0 !important;
    width: auto !important;
    max-width: 120px !important;
    height: 32px !important;
    min-height: 32px !important;

    /* 互動與動畫 */
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* 蘋果風格陰影 - 較輕微適合 top-nav */
    box-shadow:
        0 4px 12px rgba(0, 122, 255, 0.2),
        0 2px 6px rgba(0, 122, 255, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);

    /* 初始狀態 */
    transform: translateY(0) scale(1);
    opacity: 1;

    /* 微妙的內部光澤效果 */
    position: relative;
    overflow: hidden;
}

/* Top-nav 按鈕 Hover 效果 */
.top-nav .user-actions .btn-primary:hover {
    background: linear-gradient(135deg, #0056CC 0%, #4A44B8 50%, #9A47C7 100%);
    transform: translateY(-1px) scale(1.02);
    box-shadow:
        0 6px 16px rgba(0, 122, 255, 0.25),
        0 3px 8px rgba(0, 122, 255, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Top-nav 按鈕 Focus 狀態 */
.top-nav .user-actions .btn-primary:focus-visible {
    outline: 2px solid rgba(0, 122, 255, 0.5);
    outline-offset: 1px;
}

/* Top-nav 按鈕 Active 效果 */
.top-nav .user-actions .btn-primary:active {
    transform: translateY(0) scale(0.98);
    background: linear-gradient(135deg, #004999 0%, #3D3A9F 50%, #8A3FB4 100%);
    box-shadow:
        0 2px 6px rgba(0, 122, 255, 0.15),
        0 1px 3px rgba(0, 122, 255, 0.08),
        inset 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: all 0.1s ease;
}

/* Top-nav 按鈕禁用狀態 */
.top-nav .user-actions .btn-primary:disabled {
    background: linear-gradient(135deg, #8E8E93 0%, #AEAEB2 100%);
    color: rgba(255, 255, 255, 0.6);
    cursor: not-allowed;
    transform: none;
    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.04);
    opacity: 0.6;
}

/* Top-nav 按鈕內部光澤效果 */
.top-nav .user-actions .btn-primary::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 40%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.2) 0%,
            rgba(255, 255, 255, 0.08) 50%,
            transparent 100%);
    border-radius: 11px 11px 0 0;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.top-nav .user-actions .btn-primary:hover::before {
    opacity: 0.8;
}

.top-nav .user-actions .btn-primary:active::before {
    opacity: 0.3;
}

/* 響應式設計 - 手機版 top-nav 按鈕 */
@media (max-width: 1300px) {
    .top-nav .user-actions .btn-primary {
        font-size: 13px !important;
        padding: 6px 12px !important;
        max-width: 100px !important;
        height: 28px !important;
        min-height: 28px !important;
        border-radius: 10px;
    }

    .top-nav .user-actions .btn-primary::before {
        border-radius: 9px 9px 0 0;
    }
}

/* 深色模式支援 - Top-nav 按鈕 */
@media (prefers-color-scheme: dark) {
    .top-nav .user-actions .btn-primary {
        background: linear-gradient(135deg, #0A84FF 0%, #5E5CE6 50%, #BF5AF2 100%);
        box-shadow:
            0 4px 12px rgba(10, 132, 255, 0.25),
            0 2px 6px rgba(10, 132, 255, 0.15),
            0 1px 2px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .top-nav .user-actions .btn-primary:hover {
        background: linear-gradient(135deg, #0066E6 0%, #5048CC 50%, #A845E8 100%);
        box-shadow:
            0 6px 16px rgba(10, 132, 255, 0.3),
            0 3px 8px rgba(10, 132, 255, 0.2),
            0 2px 4px rgba(0, 0, 0, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }

    .top-nav .user-actions .btn-primary:active {
        background: linear-gradient(135deg, #0052CC 0%, #423DB8 50%, #9538D4 100%);
        box-shadow:
            0 2px 6px rgba(10, 132, 255, 0.2),
            0 1px 3px rgba(10, 132, 255, 0.1),
            inset 0 1px 2px rgba(0, 0, 0, 0.15);
    }

    .top-nav .user-actions .btn-primary::before {
        background: linear-gradient(180deg,
                rgba(255, 255, 255, 0.12) 0%,
                rgba(255, 255, 255, 0.04) 50%,
                transparent 100%);
    }
}
/* 引入認證按鈕樣式 */

body, html {
  overflow-x: hidden;
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f2f5;
  background-color: var(--color-bg-page, #f0f2f5);
  min-height: 100vh;
  width: 100%;
  -webkit-text-size-adjust: none;  /* 防止 iOS 自動調整字體大小 */
}

:root {
  --top-nav-height: 68px;
  --top-nav-height-mobile: 56px;
}

/* 認證狀態骨架屏動畫 */
@keyframes auth-skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.auth-skeleton {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.05);
}

.skeleton-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: auth-skeleton-loading 1.5s infinite;
}

.skeleton-text {
  width: 80px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: auth-skeleton-loading 1.5s infinite;
}

@media (max-width: 768px) {
  .auth-skeleton {
    padding: 6px 12px;
  }
  
  .skeleton-avatar {
    width: 28px;
    height: 28px;
  }
  
  .skeleton-text {
    width: 60px;
    height: 14px;
  }
}

.App {
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;  /* 允許內容滾動 */
  -webkit-overflow-scrolling: touch;  /* 在 iOS 上實現平滑滾動 */
}

.App-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.route-loading-placeholder {
  min-height: 40vh;
}

.route-loading-placeholder--priceanalysis {
  min-height: 1380px;
}

.route-loading-placeholder--market-sentiment {
  min-height: 1280px;
}

@media (min-width: 1024px) {
  .route-loading-placeholder--priceanalysis {
    min-height: 980px;
  }

  .route-loading-placeholder--market-sentiment {
    min-height: 920px;
  }
}

/* 側邊欄樣式 */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  height: 100vh;
  width: 250px;
  min-width: 250px;
  background-color: #ffffff;
  background-color: var(--color-bg-card, #ffffff);
  color: #333333;
  color: var(--color-text-primary, #333333);
  overflow-y: auto;
  box-shadow: -2px 0 5px rgba(0,0,0,0.1);
  box-shadow: var(--shadow-m, -2px 0 5px rgba(0,0,0,0.1));
  z-index: 1000;
  padding-top: 20px;
  padding-top: var(--space-l, 20px);
  border-radius: 0px;
  border-radius: var(--border-radius-medium, 0px);
}

.sidebar-header {
  display: none;  /* 或直接刪除這個區塊 */
}

.sidebar-header .logo {
  width: auto;  /* 改為自動寬度 */
  height: 40px;  /* 調整高度，保持比例 */
  margin-bottom: 10px;
}

.sidebar-header h2 {
  font-size: 18px;
  margin: 0;
}

.sidebar ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  margin-bottom: 5px;
}

.sidebar a,
.sidebar-item {
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background-color: transparent;
  border-radius: 8px;
  margin: 8px 10px;
  position: relative;
}

.sidebar a:hover,
.sidebar-item:hover {
  background-color: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
}

.sidebar .active-nav-link {
  background-color: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  font-weight: 500;
}

.sidebar a svg,
.sidebar-item svg {
  margin-right: 12px;
  font-size: 20px;
  color: #666;
  transition: all 0.2s ease;
}

.sidebar a:hover svg,
.sidebar-item:hover svg,
.sidebar .active-nav-link svg {
  color: #3b82f6;
}

.sidebar a span,
.sidebar-item span {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* 側邊欄選單項目動畫效果 */
.sidebar ul li {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

/* 主內容區域樣式 */
.main-content {
  flex: 1 1;
  width: 100%;
  position: relative;
}

.main-content--home {
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.92) 0%, rgba(248, 251, 255, 0) 180px);
}

.top-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 999;
  height: 68px;
  height: var(--top-nav-height);
  transition:
    background-color 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    -webkit-backdrop-filter 0.28s ease;
  transition:
    background-color 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    backdrop-filter 0.28s ease;
  transition:
    background-color 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    backdrop-filter 0.28s ease,
    -webkit-backdrop-filter 0.28s ease;
}

.top-nav__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  grid-column-gap: clamp(22px, 2.6vw, 44px);
  column-gap: clamp(22px, 2.6vw, 44px);
  height: 100%;
}

.top-nav__shell {
  width: min(1440px, calc(100% - 24px));
  margin: 0 auto;
  box-sizing: border-box;
}

.top-nav--default,
.top-nav--immersive.top-nav--scrolled {
  background: rgba(248, 250, 252, 0.86);
  border-bottom: 1px solid rgba(201, 215, 231, 0.82);
  box-shadow: 0 12px 36px rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.top-nav--immersive {
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.78) 0%, rgba(248, 251, 255, 0.34) 55%, rgba(248, 251, 255, 0) 100%);
  border-bottom: 1px solid transparent;
  box-shadow: none;
}

.top-nav--immersive::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 215, 231, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.top-nav--immersive.top-nav--scrolled::after {
  opacity: 1;
}

.menu-toggle {
  display: none;  /* 預設隱藏 */
  font-size: 20px;
  cursor: pointer;
  flex: 0 0 auto;
  padding: 4px;
}

.user-actions {
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: end;
  justify-self: end;
  margin-right: 0;
  grid-gap: clamp(10px, 0.9vw, 18px);
  gap: clamp(10px, 0.9vw, 18px);
  min-width: -webkit-max-content;
  min-width: max-content;
  padding-right: 0;
  flex-shrink: 0;
}

.user-actions .btn-primary {
  font-size: 14px;
  padding: 6px 14px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-area {
  flex-grow: 1;
  padding: 20px;
  padding-top: calc(68px + 20px);
  padding-top: calc(var(--top-nav-height) + 20px);
  overflow-y: auto;
  overflow-x: hidden;
  margin-bottom: 0.5%;
  /* 移除過渡動畫，因為不再需要動態調整 */
}

.content-area--home {
  padding-top: 0;
}

.content-area h2 {
  font-size: 24px;
  color: #333;
  color: var(--color-text-primary, #333);
  margin-bottom: 20px;
  margin-bottom: var(--space-m, 20px);
  padding-bottom: 10px;
  padding-bottom: var(--space-s, 10px);
  border-bottom: 1px solid #eee;
  border-bottom: 1px solid var(--color-border-divider, #eee);
}

/* 側邊欄預設隱藏狀態 */
.sidebar {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.sidebar.open {
  transform: translateX(0);
}

/* 響應式設計 */
@media (max-width: 1300px) {
  .App-inner {
    flex-direction: column;
  }

  /* 為每個選單項目添加延遲動畫 */
  .sidebar:not(.open) ul li,
  .sidebar:not(.open) ul a {  /* 添加 a 選擇器 */
    opacity: 0;
    transform: translateX(20px);
  }

  .sidebar.open ul li,
  .sidebar.open ul a {  /* 添加 a 選擇器 */
    opacity: 1;
    transform: translateX(0);
  }


  /* 為選單列表添加內邊距，確保最後一個項目不會貼底 */
  .sidebar ul {
    padding: 0 0 20px 0;  /* 添加底部內邊距 */
  }

  .main-content {
    margin-left: 0;
  }

  .top-nav {
    left: 0;
    width: 100%;
    height: 56px;
    height: var(--top-nav-height-mobile);
  }

  .menu-toggle {
    display: block;
  }

  .content-area {
    margin-left: 0;
    margin-right: 0;
    padding: 15px;
    padding-top: calc(56px + 15px);
    padding-top: calc(var(--top-nav-height-mobile) + 15px);
    /* 手機版也不需要為 AnnouncementBar 調整 margin-top */
  }

  .content-area--home {
    padding-top: 0;
  }

  /* 確保 overlay 在側邊欄打開時正確顯示 */
  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .overlay.visible {
    display: block;
  }

  .sidebar .dropdown-menu {
    position: static;
    margin-top: 4px;
    padding: 8px 0;
    background-color: #ffffff;
    box-shadow: none;
    width: 100%;
  }
}

/* 按鈕樣式 */
.btn-primary {
  background-color: #000000; /* 黑色背景 */
  border: none;
  color: white;
  padding: 10px 20px; /* 減少上下內邊距以降低高度 */
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 4px;
}

.btn-primary:hover {
  background-color: #333333; /* 稍微淺一點的黑色作為懸停效果 */
}

.btn-primary:disabled {
  background-color: #666666; /* 更淺的灰色作為禁用狀態 */
  color: #cccccc;
  cursor: not-allowed;
}

.btn-loading {
  position: relative;
  color: transparent;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  border: 4px solid #ffffff;
  border-top: 4px solid #4CAF50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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


/* 多股票圖表樣式 */
.multi-stock-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 20px;
  gap: 20px;
  margin-top: 20px;
}

.multi-stock-chart {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 20px;
}

/* 如果上面的修改不起作用，可以嘗試添加這個更具體的選擇器 */
.sidebar .sidebar-header {
  border-bottom: none;
}

/* 新增以下樣式 */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.overlay.visible {
  display: block;
}

/* 對於 iOS 設備 */
@supports (-webkit-touch-callout: none) {
  input, select, textarea {
    font-size: 16px !important;
    transform: translateZ(0);
  }
  
  body {
    -webkit-text-size-adjust: none;  /* 防止 iOS 自動調整字體大小 */
  }
}

/* UserProfile 在頂部導航欄中的特定樣式 */
.top-nav .user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.top-nav .user-profile__trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 6px 10px;
    border-radius: 999px;
    border: none;
    background: none;
    cursor: pointer;
}

.top-nav .user-profile__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.top-nav .user-profile__name {
    color: #333;
    font-size: 14px;
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-nav .user-profile__menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 8px;
    z-index: 1000;
}

/* 響應式調整 */
@media (max-width: 1300px) {
    .user-actions {
        padding-right: 15px;  /* 移除右側內邊距 */
        margin-right: 20px;  /* 添加右側外邊距 */
    }

    .top-nav .user-profile__name {
        display: none;
    }
    
    .top-nav .user-profile__menu {
        width: 180px;
        right: -10px;  /* 向左移動選單 */
    }

    .top-nav .user-profile__avatar {
        margin-right: 0;  /* 移除頭像右側邊距 */
    }

    /* 確保下拉選單不會超出螢幕 */
    .top-nav .user-profile__menu {
        right: 0;
        max-width: calc(100vw - 30px);  /* 預留一些邊距 */
    }
}


/* 關於本站頁面樣式 */
.about-page {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
}

.about-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content {
  padding: 2rem;
}

.about-title {
  font-size: 2rem;
  color: #333;
  margin-bottom: 1.5rem;
  text-align: center;
}

.about-text {
  color: #666;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.about-footer {
  border-top: 1px solid #eee;
  padding-top: 1.5rem;
  margin-top: 2rem;
  color: #666;
  font-size: 0.9rem;
}

.about-footer p {
  margin-bottom: 1rem;
}

.about-footer a {
  color: #007bff;
  text-decoration: none;
}

.about-footer a:hover {
  text-decoration: underline;
}

/* 響應式設計 */
@media (max-width: 1300px) {
  .about-page {
    padding: 1rem;
  }
  
  .about-image {
    height: 200px;
  }
  
  .about-title {
    font-size: 1.5rem;
  }
  
  .about-content {
    padding: 1rem;
  }
}

/* 桌面版導航項目容器 */
.desktop-nav-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.1vw, 22px);
  width: 100%;
  margin: 0;
  min-width: 0;
  flex-wrap: nowrap; /* 防止換行 */
  overflow: visible;
  transition: all 0.3s ease;
}



/* 桌面版顯示方式 - 移除固定的媒體查詢限制 */
.desktop-nav-items {
  /* 移除 @media (min-width: 1301px) 的限制 */
}

/* 調整導航項目樣式 */
.desktop-nav-items a {
  color: rgba(15, 23, 42, 0.8);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px clamp(10px, 0.85vw, 15px);
  border-radius: 999px;
  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
  white-space: nowrap; /* 防止文字換行 */
  flex: 0 1 auto;
  min-width: 0;
}

.desktop-nav-items a:hover {
  background-color: rgba(255, 255, 255, 0.7);
  color: #0f4c81;
  transform: translateY(-1px);
}

.desktop-nav-items svg {
  font-size: 16px;
  flex-shrink: 0; /* 防止圖標收縮 */
}

/* 桌面導覽列活動連結樣式 */
.desktop-nav-items .active-nav-link {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 252, 0.82));
  color: #0f4c81;
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

/* 確保活動連結的 SVG 圖示顏色也改變 */
.desktop-nav-items .active-nav-link svg {
  color: #3b82f6;
}

/* 手機版強制使用側邊導航 */
@media (max-width: 1300px) {
  .desktop-nav-items {
    display: none !important;
  }
  
  .menu-toggle-wrapper {
    display: block !important;
  }
}

/* Logo 樣式 */
.top-nav-logo {
  display: flex;
  align-items: center;
  justify-self: start;
  width: clamp(144px, 12vw, 188px);
  min-width: 144px;
}

.top-nav-logo a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
}

.top-nav-logo .logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 38px;
  object-fit: contain;
}

/* 調整頂部導航欄布局 */
.top-nav {
  min-height: 68px;
  min-height: var(--top-nav-height); /* 確保最小高度 */
  overflow: visible; /* 允許內容可見以便檢測 */
}



/* 導航項目文字樣式 */
.desktop-nav-items span {
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.18px;
}

@media (max-width: 1520px) and (min-width: 1301px) {
  .top-nav__shell {
    width: min(1400px, calc(100% - 20px));
  }

  .top-nav__inner {
    column-gap: 18px;
  }

  .desktop-nav-items {
    gap: 8px;
  }

  .desktop-nav-items a {
    gap: 7px;
    padding: 8px 10px;
  }

  .desktop-nav-items span {
    font-size: 13px;
    letter-spacing: 0.08px;
  }

  .top-nav-logo {
    width: 156px;
    min-width: 156px;
  }

  .user-actions {
    gap: 10px;
  }

  .top-nav .user-profile__name {
    max-width: 96px;
  }
}



/* 響應式設計調整 */
@media (max-width: 1300px) {
  .top-nav__inner {
    grid-template-columns: 1fr auto;
    column-gap: 12px;
  }

  .top-nav__shell {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
  }

  .top-nav {
    min-height: 56px;
    min-height: var(--top-nav-height-mobile);  /* 手機版稍微降低高度 */
  }

  .top-nav-logo {
    width: auto;
    min-width: 0;
  }

  .user-actions {
    width: -webkit-max-content;
    width: max-content;
    gap: 8px;
    margin-left: auto;
    justify-content: end;
    justify-items: end;
    justify-self: end;
  }

  .menu-toggle {
    padding: 0;
  }

  .top-nav-logo .logo {
    height: 32px;  /* 手機版縮小 logo */
  }
}

/* 確保所有選項的間距一致 */
.sidebar ul li {
  margin-bottom: 5px;
}

/* 將包含下拉選單的容器設定為相對定位 */
.desktop-nav-item.dropdown {
  position: relative;
}

/* 修改桌面版下拉選單樣式 */
.desktop-dropdown-menu {
  position: absolute;
  top: 100%;
  padding: 8px 0;
  min-width: 160px;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 4px;
  z-index: 1000;
}

.desktop-dropdown-menu a {
  padding: 8px 16px !important;
  display: block;
  width: 100%;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
}

.desktop-dropdown-menu a:hover {
  background-color: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
  width: 80%;
}

/* 修正側邊欄中 dropdown 的置左效果 */
.sidebar-item.dropdown {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* 確保子項目（例如 .sidebar-dropdown-title）向左對齊 */
}

/* 調整側邊欄下拉選單，取消絕對定位 */
.sidebar .dropdown-menu {
  position: static; /* 取消絕對定位，使下拉選單成為正常文件流的一部分 */
}

.sidebar .dropdown-menu a {
  padding: 8px 12px;
}
/* 讓側邊欄內的 Google 搜尋熱度項目內容靠左對齊 */
.sidebar-dropdown-title {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* 內容靠左 */
  padding: 12px 16px;
}


/* 移除 .sidebar-item.dropdown 的邊框與內邊距 */
.sidebar-item.dropdown {
  border: none !important;
  padding: 0 !important;
}




/* Admin Navigation Styles */
.sidebar-item-admin {
  position: relative;
}

.admin-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.admin-nav-link:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.admin-nav-link.active-nav-link {
  background-color: #eff6ff;
  color: #3b82f6;
  border-left-color: #3b82f6;
}

.admin-badge {
  background-color: #dc2626;
  color: white;
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-nav-link.active-nav-link .admin-badge {
  background-color: #3b82f6;
}

/* Desktop admin navigation */
.desktop-nav-items .admin-nav-link {
  border-left: none;
  border-bottom: 2px solid transparent;
  padding: 0.5rem 1rem;
}

.desktop-nav-items .admin-nav-link.active-nav-link {
  border-bottom-color: #3b82f6;
  background-color: transparent;
}

.desktop-nav-items .admin-nav-link:hover {
  background-color: #f9fafb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .admin-nav-link {
    padding: 0.5rem 0.75rem;
  }
  
  .admin-badge {
    font-size: 0.5rem;
    padding: 0.1rem 0.25rem;
  }
}/* A
dmin Actions Component */
.admin-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-actions--small {
  gap: 0.25rem;
}

.admin-actions--large {
  gap: 0.75rem;
}

.admin-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 2.5rem;
}

.admin-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-action-btn--small {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  min-height: 2rem;
}

.admin-action-btn--large {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  min-height: 3rem;
}

.admin-action-btn--primary {
  background-color: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.admin-action-btn--primary:hover:not(:disabled) {
  background-color: #2563eb;
  border-color: #2563eb;
}

.admin-action-btn--secondary {
  background-color: white;
  color: #374151;
  border-color: #d1d5db;
}

.admin-action-btn--secondary:hover:not(:disabled) {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

.admin-action-btn--danger {
  background-color: #ef4444;
  color: white;
  border-color: #ef4444;
}

.admin-action-btn--danger:hover:not(:disabled) {
  background-color: #dc2626;
  border-color: #dc2626;
}

.admin-action-icon {
  font-size: 1em;
}

.admin-action-label {
  white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .admin-actions {
    flex-direction: column;
  }
  
  .admin-action-btn {
    justify-content: center;
    width: 100%;
  }
}

/* 引入專用的認證按鈕樣式 */

.signin-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.signin-dialog {
    background: white;
    border-radius: 8px;
    padding: 24px;
    width: 80%;
    max-width: 360px;
    max-height: 85vh;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
    overflow-y: auto;
}

.signin-dialog__close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    color: #666;
    transition: color 0.2s ease;
}

.signin-dialog__close:hover {
    color: #333;
}

.signin-dialog__title {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.signin-dialog__description {
    color: #666;
    margin: 0 0 24px;
    font-size: 14px;
}

.google-signin-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 280px;
    min-width: 160px;
    margin: 8px auto;
    padding: 12px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.google-signin-button:hover {
    background-color: #f8f9fa;
}

.google-signin-button .google-icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
}

.google-signin-button span {
    color: #3c4043;
    font-size: 14px;
    font-weight: 500;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

/* Loading 狀態樣式 */
.signin-dialog__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

.signin-dialog__loading__spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4285f4;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: signin-dialog-spin 1s linear infinite;
    flex-shrink: 0;
}

@keyframes signin-dialog-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.google-button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0px 0 0;
    height: 100%;
    position: relative;
    transition: opacity 0.3s ease;
}

.google-button-container--hidden {
    display: none !important;
}

/* 從 AuthDialog.css 合併過來的樣式 */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 25px auto 8px;
    text-align: center;
    width: 90%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-list li {
    margin: 5px auto;
    padding: 8px 16px;
    background: linear-gradient(45deg, rgba(52, 168, 83, 0.05), rgba(66, 133, 244, 0.05));
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    width: -webkit-fit-content;
    width: fit-content;
    min-width: auto;
    opacity: 0;
    transform: translateX(-20px);
    animation: checkFeature 0.5s ease forwards;
}

.feature-list li::before {
    content: '✓';
    color: white;
    font-weight: bold;
    background: #34A853;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transform: scale(0);
    animation: showCheck 0.3s ease forwards;
}

/* 調整每個 li 的動畫延遲 */
.feature-list li:nth-child(1) {
    animation-delay: 0.2s;
}

.feature-list li:nth-child(1)::before {
    animation-delay: 0.4s;
}

.feature-list li:nth-child(2) {
    animation-delay: 0.7s;
}

.feature-list li:nth-child(2)::before {
    animation-delay: 0.9s;
}

.feature-list li:nth-child(3) {
    animation-delay: 1.2s;
}

.feature-list li:nth-child(3)::before {
    animation-delay: 1.4s;
}

/* 定義新的動畫 */
@keyframes checkFeature {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes showCheck {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.auth-dialog-description {
    text-align: center;
    margin: 15px 0 5px;
    color: #666;
}

/* 新增功能說明文字的樣式 */
.feature-description {
    text-align: center;
    margin: 15px 0;
    color: #666;
    width: 100%;
}

.auth-dialog-content {
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.auth-dialog-preview-image {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 16 / 9;
    margin: 20px auto;
    height: auto;
    max-height: 400px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    display: block;
    object-fit: cover;
}

/* Google 登入按鈕樣式 */
.google-login-button {
    background-color: #ffffff;
    color: #757575;
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 280px;
    min-width: 160px;
    margin: 8px auto;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.google-login-button:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.google-login-button:before {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2718%27 height=%2718%27 viewBox=%270 0 18 18%27%3E%3Cg fill=%27none%27 fill-rule=%27evenodd%27%3E%3Cpath d=%27M17.6 9.2l-.1-1.8H9v3.4h4.8C13.6 12 13 13 12 13.6v2.2h3a8.8 8.8 0 0 0 2.6-6.6z%27 fill=%27%234285F4%27 fill-rule=%27nonzero%27%2F%3E%3Cpath d=%27M9 18c2.4 0 4.5-.8 6-2.2l-3-2.2a5.4 5.4 0 0 1-8-2.9H1V13a9 9 0 0 0 8 5z%27 fill=%27%2334A853%27 fill-rule=%27nonzero%27%2F%3E%3Cpath d=%27M4 10.7a5.4 5.4 0 0 1 0-3.4V5H1a9 9 0 0 0 0 8l3-2.3z%27 fill=%27%23FBBC05%27 fill-rule=%27nonzero%27%2F%3E%3Cpath d=%27M9 3.6c1.3 0 2.5.4 3.4 1.3L15 2.3A9 9 0 0 0 1 5l3 2.4a5.4 5.4 0 0 1 5-3.7z%27 fill=%27%23EA4335%27 fill-rule=%27nonzero%27%2F%3E%3Cpath d=%27M0 0h18v18H0z%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
    width: 18px;
    height: 18px;
    margin-right: 10px;
    background-repeat: no-repeat;
    background-position: center;
}

/* 對話框內容樣式 */
.auth-dialog-content {
    padding: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}

/* 對話框描述文字樣式 */
.auth-dialog-description {
    text-align: center;
    margin: 15px 0;
    color: #666;
}

.auth-dialog-description p {
    margin: 8px 0;
    line-height: 1.5;
}

/* 對話框標題樣式 */
.dialog-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* 自定義標題大小 - 更突出的樣式 */
.auth-dialog-title {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
    /* 備用顏色，適用於不支援 background-clip 的瀏覽器 */
    color: #667eea;
    /* 漸層文字效果 */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(-10px);
    animation: titleFadeIn 0.6s ease forwards;
}

/* 為不支援 background-clip 的瀏覽器提供備用樣式 */
@supports not (-webkit-background-clip: text) {
    .auth-dialog-title {
        background: none;
        color: #667eea;
    }
}

/* 標題動畫 */
@keyframes titleFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 預覽圖片樣式 */
.auth-dialog-preview-image {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    height: auto;
    max-height: 400px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    display: block;
    object-fit: cover;
}

/* 響應式設計調整 */
@media (max-width: 768px) {
    .auth-dialog-content {
        padding: 0 10px;
        width: 95%;
        align-items: center;
        justify-content: center;
    }

    .auth-dialog-preview-image {
        max-width: 100%;
        max-height: 350px;
        margin: 16px auto;
    }

    .dialog-title {
        font-size: 1.2rem;
    }

    .auth-dialog-title {
        font-size: 1.5rem !important;
    }

    .feature-list {
        width: 100%;
    }

    .feature-list li {
        width: 100%;
        margin-left: -20px;
        justify-content: center;
    }
}

/* 
認證對話框專用的關閉按鈕樣式 */
.auth-dialog-content .dialog-close {
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: rgba(60, 60, 67, 0.8);
    transition: all 0.2s ease;
}

.auth-dialog-content .dialog-close:hover {
    background: rgba(255, 59, 48, 0.1);
    border-color: rgba(255, 59, 48, 0.2);
    color: #ff3b30;
    transform: scale(1.05);
}

.auth-dialog-content .dialog-close:active {
    transform: scale(0.95);
    background: rgba(255, 59, 48, 0.15);
}

/* 為關閉按鈕添加工具提示效果 */
.auth-dialog-content .dialog-close::after {
    content: attr(aria-label);
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: all 0.2s ease;
    z-index: 1001;
}

.auth-dialog-content .dialog-close:hover::after {
    opacity: 1;
    transform: translateY(4px);
}

/* 手機版本的調整 */
@media (max-width: 480px) {
    .auth-dialog-content .dialog-close {
        top: 8px;
        right: 8px;
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .auth-dialog-content .dialog-close::after {
        display: none;
        /* 手機版隱藏工具提示 */
    }
}

/* 新功能標籤樣式 */
.new-feature-badge {
  background-color: #ff4757;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 8px;
  font-weight: bold;
  animation: pulse 2s infinite;
  display: inline-block;
  line-height: 1;
}

/* 漢堡選單的通知點 */
.notification-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background-color: #ff4757;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* 導航連結中的通知點 */
.sidebar-item-content {
  position: relative;
  display: flex;
  align-items: center;
}

.sidebar-item-content .notification-dot {
  position: absolute;
  top: 0;
  right: -10px;
  width: 8px;
  height: 8px;
}

/* 桌面導航中的通知點 */
.desktop-nav-items a {
  position: relative;
}

.desktop-nav-items a .notification-dot {
  position: absolute;
  top: 8px;
  right: 4px;
  width: 8px;
  height: 8px;
}

/* 包裝漢堡選單圖示的容器 */
.menu-toggle-wrapper {
  position: relative;
  display: inline-block;
}

@media (max-width: 1300px) {
  .top-nav .menu-toggle-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    margin-right: -12px;
  }

  .top-nav .notification-dot {
    right: 2px;
  }
}

/* 閃爍動畫 */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
} 

@charset "UTF-8";
.react-datepicker__navigation-icon::before, .react-datepicker__year-read-view--down-arrow,
.react-datepicker__month-read-view--down-arrow,
.react-datepicker__month-year-read-view--down-arrow {
  border-color: #ccc;
  border-style: solid;
  border-width: 3px 3px 0 0;
  content: "";
  display: block;
  height: 9px;
  position: absolute;
  top: 6px;
  width: 9px;
}
.react-datepicker-wrapper {
  display: inline-block;
  padding: 0;
  border: 0;
}

.react-datepicker {
  font-family: "Helvetica Neue", helvetica, arial, sans-serif;
  font-size: 0.8rem;
  background-color: #fff;
  color: #000;
  border: 1px solid #aeaeae;
  border-radius: 0.3rem;
  display: inline-block;
  position: relative;
  line-height: normal;
  line-height: initial;
}

.react-datepicker--time-only .react-datepicker__time-container {
  border-left: 0;
}
.react-datepicker--time-only .react-datepicker__time,
.react-datepicker--time-only .react-datepicker__time-box {
  border-bottom-left-radius: 0.3rem;
  border-bottom-right-radius: 0.3rem;
}

.react-datepicker-popper {
  z-index: 1;
  line-height: 0;
}
.react-datepicker-popper .react-datepicker__triangle {
  stroke: #aeaeae;
}
.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle {
  fill: #f0f0f0;
  color: #f0f0f0;
}
.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle {
  fill: #fff;
  color: #fff;
}

.react-datepicker__header {
  text-align: center;
  background-color: #f0f0f0;
  border-bottom: 1px solid #aeaeae;
  border-top-left-radius: 0.3rem;
  padding: 8px 0;
  position: relative;
}
.react-datepicker__header--time {
  padding-bottom: 8px;
  padding-left: 5px;
  padding-right: 5px;
}
.react-datepicker__header--time:not(.react-datepicker__header--time--only) {
  border-top-left-radius: 0;
}
.react-datepicker__header:not(.react-datepicker__header--has-time-select) {
  border-top-right-radius: 0.3rem;
}

.react-datepicker__year-dropdown-container--select,
.react-datepicker__month-dropdown-container--select,
.react-datepicker__month-year-dropdown-container--select,
.react-datepicker__year-dropdown-container--scroll,
.react-datepicker__month-dropdown-container--scroll,
.react-datepicker__month-year-dropdown-container--scroll {
  display: inline-block;
  margin: 0 15px;
}

.react-datepicker__current-month,
.react-datepicker-time__header,
.react-datepicker-year-header {
  margin-top: 0;
  color: #000;
  font-weight: bold;
  font-size: 0.944rem;
}

h2.react-datepicker__current-month {
  padding: 0;
  margin: 0;
}

.react-datepicker-time__header {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.react-datepicker__navigation {
  align-items: center;
  background: none;
  display: flex;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  position: absolute;
  top: 2px;
  padding: 0;
  border: none;
  z-index: 1;
  height: 32px;
  width: 32px;
  text-indent: -999em;
  overflow: hidden;
}
.react-datepicker__navigation--previous {
  left: 2px;
}
.react-datepicker__navigation--next {
  right: 2px;
}
.react-datepicker__navigation--next--with-time:not(.react-datepicker__navigation--next--with-today-button) {
  right: 85px;
}
.react-datepicker__navigation--years {
  position: relative;
  top: 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.react-datepicker__navigation--years-previous {
  top: 4px;
}
.react-datepicker__navigation--years-upcoming {
  top: -4px;
}
.react-datepicker__navigation:hover *::before {
  border-color: rgb(165.75, 165.75, 165.75);
}

.react-datepicker__navigation-icon {
  position: relative;
  top: -1px;
  font-size: 20px;
  width: 0;
}
.react-datepicker__navigation-icon--next {
  left: -2px;
}
.react-datepicker__navigation-icon--next::before {
  transform: rotate(45deg);
  left: -7px;
}
.react-datepicker__navigation-icon--previous {
  right: -2px;
}
.react-datepicker__navigation-icon--previous::before {
  transform: rotate(225deg);
  right: -7px;
}

.react-datepicker__month-container {
  float: left;
}

.react-datepicker__year {
  margin: 0.4rem;
  text-align: center;
}
.react-datepicker__year-wrapper {
  display: flex;
  flex-wrap: wrap;
  max-width: 180px;
}
.react-datepicker__year .react-datepicker__year-text {
  display: inline-block;
  width: 4rem;
  margin: 2px;
}

.react-datepicker__month {
  margin: 0.4rem;
  text-align: center;
}
.react-datepicker__month .react-datepicker__month-text,
.react-datepicker__month .react-datepicker__quarter-text {
  display: inline-block;
  width: 4rem;
  margin: 2px;
}

.react-datepicker__input-time-container {
  clear: both;
  width: 100%;
  float: left;
  margin: 5px 0 10px 15px;
  text-align: left;
}
.react-datepicker__input-time-container .react-datepicker-time__caption {
  display: inline-block;
}
.react-datepicker__input-time-container .react-datepicker-time__input-container {
  display: inline-block;
}
.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input {
  display: inline-block;
  margin-left: 10px;
}
.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input {
  width: auto;
}
.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-inner-spin-button,
.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time] {
  -moz-appearance: textfield;
}
.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__delimiter {
  margin-left: 5px;
  display: inline-block;
}

.react-datepicker__time-container {
  float: right;
  border-left: 1px solid #aeaeae;
  width: 85px;
}
.react-datepicker__time-container--with-today-button {
  display: inline;
  border: 1px solid #aeaeae;
  border-radius: 0.3rem;
  position: absolute;
  right: -87px;
  top: 0;
}
.react-datepicker__time-container .react-datepicker__time {
  position: relative;
  background: white;
  border-bottom-right-radius: 0.3rem;
}
.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box {
  width: 85px;
  overflow-x: hidden;
  margin: 0 auto;
  text-align: center;
  border-bottom-right-radius: 0.3rem;
}
.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list {
  list-style: none;
  margin: 0;
  height: calc(195px + 1.7rem / 2);
  overflow-y: scroll;
  padding-right: 0;
  padding-left: 0;
  width: 100%;
  box-sizing: content-box;
}
.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item {
  height: 30px;
  padding: 5px 10px;
  white-space: nowrap;
}
.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item:hover {
  cursor: pointer;
  background-color: #f0f0f0;
}
.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected {
  background-color: #216ba5;
  color: white;
  font-weight: bold;
}
.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected:hover {
  background-color: #216ba5;
}
.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled {
  color: #ccc;
}
.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled:hover {
  cursor: default;
  background-color: transparent;
}

.react-datepicker__week-number {
  color: #ccc;
  display: inline-block;
  width: 1.7rem;
  line-height: 1.7rem;
  text-align: center;
  margin: 0.166rem;
}
.react-datepicker__week-number.react-datepicker__week-number--clickable {
  cursor: pointer;
}
.react-datepicker__week-number.react-datepicker__week-number--clickable:not(.react-datepicker__week-number--selected):hover {
  border-radius: 0.3rem;
  background-color: #f0f0f0;
}
.react-datepicker__week-number--selected {
  border-radius: 0.3rem;
  background-color: #216ba5;
  color: #fff;
}
.react-datepicker__week-number--selected:hover {
  background-color: rgb(28.75, 93.2196969697, 143.75);
}

.react-datepicker__day-names {
  white-space: nowrap;
  margin-bottom: -8px;
}

.react-datepicker__week {
  white-space: nowrap;
}

.react-datepicker__day-name,
.react-datepicker__day,
.react-datepicker__time-name {
  color: #000;
  display: inline-block;
  width: 1.7rem;
  line-height: 1.7rem;
  text-align: center;
  margin: 0.166rem;
}

.react-datepicker__day,
.react-datepicker__month-text,
.react-datepicker__quarter-text,
.react-datepicker__year-text {
  cursor: pointer;
}
.react-datepicker__day:not([aria-disabled=true]):hover,
.react-datepicker__month-text:not([aria-disabled=true]):hover,
.react-datepicker__quarter-text:not([aria-disabled=true]):hover,
.react-datepicker__year-text:not([aria-disabled=true]):hover {
  border-radius: 0.3rem;
  background-color: #f0f0f0;
}
.react-datepicker__day--today,
.react-datepicker__month-text--today,
.react-datepicker__quarter-text--today,
.react-datepicker__year-text--today {
  font-weight: bold;
}
.react-datepicker__day--highlighted,
.react-datepicker__month-text--highlighted,
.react-datepicker__quarter-text--highlighted,
.react-datepicker__year-text--highlighted {
  border-radius: 0.3rem;
  background-color: #3dcc4a;
  color: #fff;
}
.react-datepicker__day--highlighted:not([aria-disabled=true]):hover,
.react-datepicker__month-text--highlighted:not([aria-disabled=true]):hover,
.react-datepicker__quarter-text--highlighted:not([aria-disabled=true]):hover,
.react-datepicker__year-text--highlighted:not([aria-disabled=true]):hover {
  background-color: rgb(49.8551020408, 189.6448979592, 62.5632653061);
}
.react-datepicker__day--highlighted-custom-1,
.react-datepicker__month-text--highlighted-custom-1,
.react-datepicker__quarter-text--highlighted-custom-1,
.react-datepicker__year-text--highlighted-custom-1 {
  color: magenta;
}
.react-datepicker__day--highlighted-custom-2,
.react-datepicker__month-text--highlighted-custom-2,
.react-datepicker__quarter-text--highlighted-custom-2,
.react-datepicker__year-text--highlighted-custom-2 {
  color: green;
}
.react-datepicker__day--holidays,
.react-datepicker__month-text--holidays,
.react-datepicker__quarter-text--holidays,
.react-datepicker__year-text--holidays {
  position: relative;
  border-radius: 0.3rem;
  background-color: #ff6803;
  color: #fff;
}
.react-datepicker__day--holidays .overlay,
.react-datepicker__month-text--holidays .overlay,
.react-datepicker__quarter-text--holidays .overlay,
.react-datepicker__year-text--holidays .overlay {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 4px;
  border-radius: 4px;
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s ease-in-out;
}
.react-datepicker__day--holidays:not([aria-disabled=true]):hover,
.react-datepicker__month-text--holidays:not([aria-disabled=true]):hover,
.react-datepicker__quarter-text--holidays:not([aria-disabled=true]):hover,
.react-datepicker__year-text--holidays:not([aria-disabled=true]):hover {
  background-color: rgb(207, 82.9642857143, 0);
}
.react-datepicker__day--holidays:hover .overlay,
.react-datepicker__month-text--holidays:hover .overlay,
.react-datepicker__quarter-text--holidays:hover .overlay,
.react-datepicker__year-text--holidays:hover .overlay {
  visibility: visible;
  opacity: 1;
}
.react-datepicker__day--selected, .react-datepicker__day--in-selecting-range, .react-datepicker__day--in-range,
.react-datepicker__month-text--selected,
.react-datepicker__month-text--in-selecting-range,
.react-datepicker__month-text--in-range,
.react-datepicker__quarter-text--selected,
.react-datepicker__quarter-text--in-selecting-range,
.react-datepicker__quarter-text--in-range,
.react-datepicker__year-text--selected,
.react-datepicker__year-text--in-selecting-range,
.react-datepicker__year-text--in-range {
  border-radius: 0.3rem;
  background-color: #216ba5;
  color: #fff;
}
.react-datepicker__day--selected:not([aria-disabled=true]):hover, .react-datepicker__day--in-selecting-range:not([aria-disabled=true]):hover, .react-datepicker__day--in-range:not([aria-disabled=true]):hover,
.react-datepicker__month-text--selected:not([aria-disabled=true]):hover,
.react-datepicker__month-text--in-selecting-range:not([aria-disabled=true]):hover,
.react-datepicker__month-text--in-range:not([aria-disabled=true]):hover,
.react-datepicker__quarter-text--selected:not([aria-disabled=true]):hover,
.react-datepicker__quarter-text--in-selecting-range:not([aria-disabled=true]):hover,
.react-datepicker__quarter-text--in-range:not([aria-disabled=true]):hover,
.react-datepicker__year-text--selected:not([aria-disabled=true]):hover,
.react-datepicker__year-text--in-selecting-range:not([aria-disabled=true]):hover,
.react-datepicker__year-text--in-range:not([aria-disabled=true]):hover {
  background-color: rgb(28.75, 93.2196969697, 143.75);
}
.react-datepicker__day--keyboard-selected,
.react-datepicker__month-text--keyboard-selected,
.react-datepicker__quarter-text--keyboard-selected,
.react-datepicker__year-text--keyboard-selected {
  border-radius: 0.3rem;
  background-color: rgb(186.25, 217.0833333333, 241.25);
  color: rgb(0, 0, 0);
}
.react-datepicker__day--keyboard-selected:not([aria-disabled=true]):hover,
.react-datepicker__month-text--keyboard-selected:not([aria-disabled=true]):hover,
.react-datepicker__quarter-text--keyboard-selected:not([aria-disabled=true]):hover,
.react-datepicker__year-text--keyboard-selected:not([aria-disabled=true]):hover {
  background-color: rgb(28.75, 93.2196969697, 143.75);
}
.react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range,
.react-datepicker__month-text--in-range,
.react-datepicker__quarter-text--in-range,
.react-datepicker__year-text--in-range),
.react-datepicker__month-text--in-selecting-range:not(.react-datepicker__day--in-range,
.react-datepicker__month-text--in-range,
.react-datepicker__quarter-text--in-range,
.react-datepicker__year-text--in-range),
.react-datepicker__quarter-text--in-selecting-range:not(.react-datepicker__day--in-range,
.react-datepicker__month-text--in-range,
.react-datepicker__quarter-text--in-range,
.react-datepicker__year-text--in-range),
.react-datepicker__year-text--in-selecting-range:not(.react-datepicker__day--in-range,
.react-datepicker__month-text--in-range,
.react-datepicker__quarter-text--in-range,
.react-datepicker__year-text--in-range) {
  background-color: rgba(33, 107, 165, 0.5);
}
.react-datepicker__month--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,
.react-datepicker__month-text--in-selecting-range,
.react-datepicker__quarter-text--in-selecting-range,
.react-datepicker__year-text--in-selecting-range), .react-datepicker__year--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,
.react-datepicker__month-text--in-selecting-range,
.react-datepicker__quarter-text--in-selecting-range,
.react-datepicker__year-text--in-selecting-range),
.react-datepicker__month--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,
.react-datepicker__month-text--in-selecting-range,
.react-datepicker__quarter-text--in-selecting-range,
.react-datepicker__year-text--in-selecting-range),
.react-datepicker__year--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,
.react-datepicker__month-text--in-selecting-range,
.react-datepicker__quarter-text--in-selecting-range,
.react-datepicker__year-text--in-selecting-range),
.react-datepicker__month--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,
.react-datepicker__month-text--in-selecting-range,
.react-datepicker__quarter-text--in-selecting-range,
.react-datepicker__year-text--in-selecting-range),
.react-datepicker__year--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,
.react-datepicker__month-text--in-selecting-range,
.react-datepicker__quarter-text--in-selecting-range,
.react-datepicker__year-text--in-selecting-range),
.react-datepicker__month--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,
.react-datepicker__month-text--in-selecting-range,
.react-datepicker__quarter-text--in-selecting-range,
.react-datepicker__year-text--in-selecting-range),
.react-datepicker__year--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,
.react-datepicker__month-text--in-selecting-range,
.react-datepicker__quarter-text--in-selecting-range,
.react-datepicker__year-text--in-selecting-range) {
  background-color: #f0f0f0;
  color: #000;
}
.react-datepicker__day--disabled,
.react-datepicker__month-text--disabled,
.react-datepicker__quarter-text--disabled,
.react-datepicker__year-text--disabled {
  cursor: default;
  color: #ccc;
}
.react-datepicker__day--disabled .overlay,
.react-datepicker__month-text--disabled .overlay,
.react-datepicker__quarter-text--disabled .overlay,
.react-datepicker__year-text--disabled .overlay {
  position: absolute;
  bottom: 70%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 4px;
  border-radius: 4px;
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s ease-in-out;
}

.react-datepicker__input-container {
  position: relative;
  display: inline-block;
  width: 100%;
}
.react-datepicker__input-container .react-datepicker__calendar-icon {
  position: absolute;
  padding: 0.5rem;
  box-sizing: content-box;
}

.react-datepicker__view-calendar-icon input {
  padding: 6px 10px 5px 25px;
}

.react-datepicker__year-read-view,
.react-datepicker__month-read-view,
.react-datepicker__month-year-read-view {
  border: 1px solid transparent;
  border-radius: 0.3rem;
  position: relative;
}
.react-datepicker__year-read-view:hover,
.react-datepicker__month-read-view:hover,
.react-datepicker__month-year-read-view:hover {
  cursor: pointer;
}
.react-datepicker__year-read-view:hover .react-datepicker__year-read-view--down-arrow,
.react-datepicker__year-read-view:hover .react-datepicker__month-read-view--down-arrow,
.react-datepicker__month-read-view:hover .react-datepicker__year-read-view--down-arrow,
.react-datepicker__month-read-view:hover .react-datepicker__month-read-view--down-arrow,
.react-datepicker__month-year-read-view:hover .react-datepicker__year-read-view--down-arrow,
.react-datepicker__month-year-read-view:hover .react-datepicker__month-read-view--down-arrow {
  border-top-color: rgb(178.5, 178.5, 178.5);
}
.react-datepicker__year-read-view--down-arrow,
.react-datepicker__month-read-view--down-arrow,
.react-datepicker__month-year-read-view--down-arrow {
  transform: rotate(135deg);
  right: -16px;
  top: 0;
}

.react-datepicker__year-dropdown,
.react-datepicker__month-dropdown,
.react-datepicker__month-year-dropdown {
  background-color: #f0f0f0;
  position: absolute;
  width: 50%;
  left: 25%;
  top: 30px;
  z-index: 1;
  text-align: center;
  border-radius: 0.3rem;
  border: 1px solid #aeaeae;
}
.react-datepicker__year-dropdown:hover,
.react-datepicker__month-dropdown:hover,
.react-datepicker__month-year-dropdown:hover {
  cursor: pointer;
}
.react-datepicker__year-dropdown--scrollable,
.react-datepicker__month-dropdown--scrollable,
.react-datepicker__month-year-dropdown--scrollable {
  height: 150px;
  overflow-y: scroll;
}

.react-datepicker__year-option,
.react-datepicker__month-option,
.react-datepicker__month-year-option {
  line-height: 20px;
  width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.react-datepicker__year-option:first-of-type,
.react-datepicker__month-option:first-of-type,
.react-datepicker__month-year-option:first-of-type {
  border-top-left-radius: 0.3rem;
  border-top-right-radius: 0.3rem;
}
.react-datepicker__year-option:last-of-type,
.react-datepicker__month-option:last-of-type,
.react-datepicker__month-year-option:last-of-type {
  -webkit-user-select: none;
  user-select: none;
  border-bottom-left-radius: 0.3rem;
  border-bottom-right-radius: 0.3rem;
}
.react-datepicker__year-option:hover,
.react-datepicker__month-option:hover,
.react-datepicker__month-year-option:hover {
  background-color: #ccc;
}
.react-datepicker__year-option:hover .react-datepicker__navigation--years-upcoming,
.react-datepicker__month-option:hover .react-datepicker__navigation--years-upcoming,
.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-upcoming {
  border-bottom-color: rgb(178.5, 178.5, 178.5);
}
.react-datepicker__year-option:hover .react-datepicker__navigation--years-previous,
.react-datepicker__month-option:hover .react-datepicker__navigation--years-previous,
.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-previous {
  border-top-color: rgb(178.5, 178.5, 178.5);
}
.react-datepicker__year-option--selected,
.react-datepicker__month-option--selected,
.react-datepicker__month-year-option--selected {
  position: absolute;
  left: 15px;
}

.react-datepicker__close-icon {
  cursor: pointer;
  background-color: transparent;
  border: 0;
  outline: 0;
  padding: 0 6px 0 0;
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  display: table-cell;
  vertical-align: middle;
}
.react-datepicker__close-icon::after {
  cursor: pointer;
  background-color: #216ba5;
  color: #fff;
  border-radius: 50%;
  height: 16px;
  width: 16px;
  padding: 2px;
  font-size: 12px;
  line-height: 1;
  text-align: center;
  display: table-cell;
  vertical-align: middle;
  content: "×";
}
.react-datepicker__close-icon--disabled {
  cursor: default;
}
.react-datepicker__close-icon--disabled::after {
  cursor: default;
  background-color: #ccc;
}

.react-datepicker__today-button {
  background: #f0f0f0;
  border-top: 1px solid #aeaeae;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
  padding: 5px 0;
  clear: left;
}

.react-datepicker__portal {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  left: 0;
  top: 0;
  justify-content: center;
  align-items: center;
  display: flex;
  z-index: 2147483647;
}
.react-datepicker__portal .react-datepicker__day-name,
.react-datepicker__portal .react-datepicker__day,
.react-datepicker__portal .react-datepicker__time-name {
  width: 3rem;
  line-height: 3rem;
}
@media (max-width: 400px), (max-height: 550px) {
  .react-datepicker__portal .react-datepicker__day-name,
  .react-datepicker__portal .react-datepicker__day,
  .react-datepicker__portal .react-datepicker__time-name {
    width: 2rem;
    line-height: 2rem;
  }
}
.react-datepicker__portal .react-datepicker__current-month,
.react-datepicker__portal .react-datepicker-time__header {
  font-size: 1.44rem;
}

.react-datepicker__children-container {
  width: 13.8rem;
  margin: 0.4rem;
  padding-right: 0.2rem;
  padding-left: 0.2rem;
  height: auto;
}

.react-datepicker__aria-live {
  position: absolute;
  -webkit-clip-path: circle(0);
          clip-path: circle(0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  width: 1px;
  white-space: nowrap;
}

.react-datepicker__calendar-icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}

/* 建議放在一個全域的 CSS 檔案或 :root 選擇器中 */
:root {
  --font-family-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  --font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;

  /* 背景顏色 */
  --color-bg-page: #f5f5f7; /* 或 #ffffff */
  --color-bg-card: #ffffff;
  --color-bg-elevated: #ffffff; /* 用於彈窗等更高層級的元素 */
  --color-bg-subtle: #f0f0f0; /* 細微背景，用於輕微區分區塊或 active 狀態 */

  /* 文字顏色 */
  --color-text-primary: rgba(0, 0, 0, 0.85); /* 主要文字，接近黑色 */
  --color-text-secondary: rgba(0, 0, 0, 0.60); /* 次要文字 */
  --color-text-tertiary: rgba(0, 0, 0, 0.40); /* 輔助文字、提示文字 */
  --color-text-link: #007aff; /* 蘋果藍 */
  --accent-color-blue: #007aff; /* 強調色 - 蘋果藍 (用於主要操作、正面強烈 CTA) */
  --color-brand-soft: rgba(0, 122, 255, 0.12);
  --color-accent-premium: #ff9500;
  --color-success: #34c759;
  --color-success-bg: rgba(52, 199, 89, 0.12);
  --color-success-border: rgba(52, 199, 89, 0.24);
  --color-warning-bg: #fff3cd;
  --color-warning-border: #ffeaa7;
  --color-warning-text: #856404;
  --color-destructive-red: #ff3b30; /* 蘋果標準紅 (用於刪除、警告等破壞性操作) */

  /* 邊框顏色 */
  --color-border-soft: #e5e5e5;
  --color-border-default: #d1d1d6; /* 類似 iOS 輸入框 */
  --color-border-strong: #b7bcc6;
  --color-border-divider: #ebebeb; /* 分隔線 */

  /* 圓角 */
  --border-radius-small: 6px;
  --border-radius-medium: 10px;
  --border-radius-large: 14px;
  --border-radius-xlarge: 18px; /* 用於較大卡片或圖片 */
  --border-radius-pill: 999px;

  /* 陰影 */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.03);
  --shadow-s: 0 2px 6px rgba(0,0,0,0.05);
  --shadow-m: 0 5px 15px rgba(0,0,0,0.07);
  --shadow-l: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-floating: 0 20px 40px rgba(15, 23, 42, 0.15);
  --shadow-focus-ring: 0 0 0 4px rgba(0, 122, 255, 0.3); /* 輸入框 focus 效果 */

  /* 漸層與表面 */
  --gradient-brand: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
  --gradient-brand-strong: linear-gradient(135deg, #007aff 0%, #0056cc 100%);
  --gradient-destructive: linear-gradient(135deg, #ff3b30 0%, #d70015 100%);
  --gradient-premium: linear-gradient(135deg, #ff9500 0%, #ff5f00 100%);
  --gradient-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, #ffffff 100%);
  --gradient-elevated: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(88, 86, 214, 0.08) 50%, rgba(255, 45, 85, 0.06) 100%), rgba(255, 255, 255, 0.95);
  --overlay-scrim: rgba(0, 0, 0, 0.45);

  /* 間距 (範例) */
  --space-xs: 4px;
  --space-s: 8px;
  --space-m: 16px;
  --space-l: 24px;
  --space-xl: 32px;
}

/* 通用 H1 標題樣式 */
h1 {
  font-size: 2rem; /* 設定基礎字體大小 */
  color: rgba(0, 0, 0, 0.85);
  color: var(--color-text-primary, #333333); /* 使用主要文字顏色 */
  font-weight: 600; /* 設定為半粗體 */
  margin-top: 24px;
  margin-top: var(--space-l, 24px); /* 移除瀏覽器預設的頂部外邊距 */
  margin-bottom: 24px;
  margin-bottom: var(--space-l, 24px); /* 設定與下方內容的標準間距 */
  padding-bottom: 8px;
  padding-bottom: var(--space-s, 8px);  /* 為底線預留空間 */
  border-bottom: 1px solid #ebebeb;
  border-bottom: 1px solid var(--color-border-divider, #eeeeee); /* 添加淺色細底線 */
  line-height: 1.3; /* 改善可讀性的行高 */
  text-align: left; /* 預設文字靠左對齊 */
}

.ui-surface-card {
  background: #ffffff;
  background: var(--ui-surface-bg, var(--color-bg-card, #ffffff));
  border: 1px solid #e5e5e5;
  border: 1px solid var(--ui-surface-border, var(--color-border-soft, #e5e5e5));
  border-radius: 14px;
  border-radius: var(--ui-surface-radius, var(--border-radius-large, 14px));
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  box-shadow: var(--ui-surface-shadow, var(--shadow-s, 0 2px 6px rgba(0, 0, 0, 0.05)));
}

.ui-page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.ui-section {
  padding: 40px 0 84px;
}

.ui-section-intro {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  max-width: 760px;
}

.ui-section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #007aff;
  color: var(--accent-color-blue, #007aff);
}

.ui-section-title {
  margin: 0;
  border-bottom: none;
  padding-bottom: 0;
  font-family: 'Avenir Next', 'SF Pro Display', 'Segoe UI', sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: rgba(0, 0, 0, 0.85);
  color: var(--color-text-primary, rgba(0, 0, 0, 0.85));
}

.ui-section-description {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.6);
  color: var(--color-text-secondary, rgba(0, 0, 0, 0.6));
}

.ui-callout {
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
  box-shadow: var(--shadow-m, 0 5px 15px rgba(0, 0, 0, 0.07));
}

.ui-callout--brand {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 250, 255, 0.95) 100%),
    radial-gradient(circle at top right, rgba(0, 122, 255, 0.16), transparent 38%);
}

.ui-data-panel {
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.88) 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 20px 32px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.ui-surface-card--prominent {
  --ui-surface-shadow: var(--shadow-m, 0 5px 15px rgba(0, 0, 0, 0.07));
}

.ui-surface-card--glass {
  --ui-surface-bg: rgba(255, 255, 255, 0.8);
  --ui-surface-border: rgba(255, 255, 255, 0.2);
  --ui-surface-radius: 24px;
  --ui-surface-shadow:
    0 8px 32px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@media (prefers-color-scheme: dark) {
  .ui-surface-card {
    --ui-surface-bg: rgba(28, 28, 30, 1);
    --ui-surface-border: rgba(84, 84, 88, 0.6);
  }

  .ui-surface-card--glass {
    --ui-surface-bg: rgba(28, 28, 30, 0.84);
    --ui-surface-border: rgba(84, 84, 88, 0.32);
    --ui-surface-shadow:
      0 10px 32px rgba(0, 0, 0, 0.26),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }
}

@media (max-width: 768px) {
  .ui-page-shell {
    width: min(100% - 32px, 1180px);
  }

  .ui-section {
    padding: 24px 0 64px;
  }

  .ui-callout,
  .ui-data-panel {
    padding: 20px;
    border-radius: 24px;
  }
}

/* FeatureUpgradeDialog - Apple-inspired Design */

.feature-upgrade-dialog {
  --apple-blue: #007AFF;
  --apple-blue-hover: #0056CC;
  --apple-gray: #8E8E93;
  --apple-light-gray: #F2F2F7;
  --apple-dark-gray: #1C1C1E;
  --apple-green: #34C759;
  --apple-orange: #FF9500;
  --apple-red: #FF3B30;
  --apple-purple: #AF52DE;
  --apple-radius: 12px;
  --apple-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  --apple-shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.feature-upgrade-dialog .dialog-content {
  gap: 0 !important;
}

.feature-upgrade-content {
  width: 100%;
  text-align: center;
  position: relative;
}

/* 移除背景漸層效果，因為 Dialog 基礎組件已經有了 */

/* 頂部區域 */
.upgrade-header {
  margin-bottom: 20px;
}

.upgrade-icon {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}

.main-icon {
  font-size: 48px;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 122, 255, 0.3));
  animation: iconFloat 3s ease-in-out infinite;
}

.icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 2s ease-in-out infinite;
  z-index: -1;
}

@keyframes iconFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.upgrade-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--apple-dark-gray);
  margin: 0 0 8px 0;
  line-height: 1.2;
  letter-spacing: -0.5px;
}



/* 描述區域 */
.upgrade-description {
  margin-bottom: 20px;
  padding: 0 8px;
}

.upgrade-description p {
  font-size: 15px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* 功能列表 */
.upgrade-features {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-upgrade-dialog .feature-item {
  display: flex !important;
  align-items: center !important;
  padding: 8px 16px !important;
  background: var(--apple-light-gray);
  border-radius: 10px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  min-height: 32px;
}

.feature-upgrade-dialog .feature-item:hover {
  background: #E8E8ED;
  transform: translateY(-1px);
  border-color: rgba(0, 122, 255, 0.2);
}

.feature-upgrade-dialog .feature-item .feature-icon {
  font-size: 16px !important;
  margin-right: 10px !important;
  width: 18px !important;
  height: 18px !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.feature-upgrade-dialog .feature-item .feature-text {
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--apple-dark-gray) !important;
  flex: 1 1 !important;
  text-align: left !important;
  line-height: 1.2 !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 按鈕區域 */
.upgrade-actions {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upgrade-primary-btn {
  background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow:
    0 8px 24px rgba(0, 122, 255, 0.25),
    0 4px 12px rgba(0, 122, 255, 0.15);
  position: relative;
  overflow: hidden;
  min-height: 52px;
  width: 100%;
  letter-spacing: -0.2px;
}

.upgrade-primary-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.upgrade-primary-btn:hover::before {
  left: 100%;
}

.upgrade-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 32px rgba(0, 122, 255, 0.3),
    0 6px 16px rgba(0, 122, 255, 0.2);
}

.upgrade-primary-btn:active {
  transform: translateY(0);
  box-shadow:
    0 8px 24px rgba(0, 122, 255, 0.25),
    0 4px 12px rgba(0, 122, 255, 0.15);
}

.btn-text {
  font-weight: 600;
  color: white;
  display: inline-block;
}

.btn-icon {
  font-size: 16px;
  transition: transform 0.3s ease;
  color: white;
  display: inline-block;
}

.upgrade-primary-btn:hover .btn-icon {
  transform: translateX(3px);
}

.upgrade-secondary-btn {
  background: rgba(120, 120, 128, 0.12);
  color: var(--apple-blue);
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-height: 48px;
  width: 100%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.upgrade-secondary-btn:hover {
  background: rgba(120, 120, 128, 0.2);
  transform: translateY(-1px);
}

.upgrade-secondary-btn:active {
  transform: translateY(0);
  background: rgba(120, 120, 128, 0.16);
}

/* 信任指標 */
.upgrade-trust {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid #E5E5EA;
}

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

.trust-icon {
  font-size: 16px;
  opacity: 0.8;
}

.trust-text {
  font-size: 12px;
  color: var(--apple-gray);
  font-weight: 500;
}

/* 響應式設計 */
@media (max-width: 480px) {
  .upgrade-header {
    margin-bottom: 16px;
  }

  .upgrade-title {
    font-size: 22px;
  }



  .main-icon {
    font-size: 40px;
  }

  .upgrade-features {
    margin-bottom: 20px;
    gap: 6px;
  }

  .feature-upgrade-dialog .feature-item {
    padding: 6px 14px;
    min-height: 28px;
  }

  .upgrade-actions {
    margin-bottom: 16px;
    gap: 8px;
  }

  .upgrade-primary-btn {
    padding: 12px 20px;
    min-height: 44px;
  }

  .upgrade-secondary-btn {
    padding: 10px 20px;
    min-height: 40px;
  }

  .upgrade-trust {
    gap: 16px;
  }

  .trust-item {
    gap: 2px;
  }

  .trust-text {
    font-size: 11px;
  }
}

/* 深色模式支援 */
@media (prefers-color-scheme: dark) {
  .feature-upgrade-content {
    background: #1C1C1E;
    color: #FFFFFF;
  }

  .feature-upgrade-content::before {
    background: linear-gradient(135deg,
        rgba(0, 122, 255, 0.1) 0%,
        rgba(175, 82, 222, 0.1) 50%,
        rgba(255, 149, 0, 0.1) 100%);
  }

  .upgrade-title {
    color: #FFFFFF;
  }



  .upgrade-description p {
    color: #AEAEB2;
  }

  .feature-upgrade-dialog .feature-item {
    background: #2C2C2E !important;
    color: #FFFFFF !important;
    align-items: center !important;
  }

  .feature-upgrade-dialog .feature-item:hover {
    background: #3A3A3C !important;
  }

  .feature-upgrade-dialog .feature-text {
    color: #FFFFFF !important;
  }

  .upgrade-secondary-btn {
    color: var(--apple-blue);
    border-color: rgba(0, 122, 255, 0.5);
  }

  .upgrade-secondary-btn:hover {
    background: rgba(0, 122, 255, 0.1);
  }

  .upgrade-trust {
    border-top-color: #38383A;
  }
}

/* 動畫效果 */
.feature-upgrade-content {
  animation: dialogSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dialogSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }

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

/* 無障礙設計 */
.upgrade-primary-btn:focus,
.upgrade-secondary-btn:focus {
  outline: 2px solid var(--apple-blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

  .feature-upgrade-content,
  .main-icon,
  .icon-glow,
  .upgrade-primary-btn::before {
    animation: none;
  }

  .feature-upgrade-dialog .upgrade-primary-btn,
  .feature-upgrade-dialog .upgrade-secondary-btn,
  .feature-upgrade-dialog .feature-item {
    transition: none;
  }
}
.home-page {
  position: relative;
  background:
    radial-gradient(circle at top, rgba(14, 165, 233, 0.12), transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, #f7f9fc 36%, #eef3f8 100%);
  color: rgba(0, 0, 0, 0.85);
  color: var(--color-text-primary, rgba(0, 0, 0, 0.85));
}

.home-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}

.home-link-button .ui-button__content,
.home-hero__authButton .ui-button__content {
  gap: 10px;
}

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: calc(68px + 88px) 0 40px;
  padding: calc(var(--top-nav-height, 68px) + 88px) 0 40px;
}

.home-hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(244, 248, 252, 0.16)),
    radial-gradient(circle at 14% 20%, rgba(245, 158, 11, 0.16), transparent 24%),
    radial-gradient(circle at 78% 16%, rgba(14, 165, 233, 0.14), transparent 24%),
    radial-gradient(circle at 84% 74%, rgba(16, 185, 129, 0.1), transparent 24%);
  filter: saturate(1.02);
  transform: scale(1.01);
}

.home-hero__backdropImage {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero__backdrop::before,
.home-hero__backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
}

.home-hero__backdrop::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.42) 34%, rgba(255, 255, 255, 0.14) 60%, rgba(255, 255, 255, 0.34) 100%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.18), transparent 18%, rgba(226, 232, 240, 0.16) 100%);
}

.home-hero__backdrop::after {
  background:
    radial-gradient(circle at 22% 32%, rgba(255, 255, 255, 0.46), transparent 28%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.16) 0%, rgba(248, 250, 252, 0.02) 40%, rgba(241, 245, 249, 0.48) 100%);
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  grid-template-areas:
    'content visual'
    'actions visual';
  grid-gap: 48px;
  gap: 48px;
  align-items: start;
}

.home-hero__content {
  grid-area: content;
  color: #10233a;
}

.home-hero h1 {
  margin: 20px 0 24px;
  border-bottom: none;
  padding-bottom: 0;
  text-align: left;
  font-family: 'Avenir Next', 'SF Pro Display', 'Segoe UI', sans-serif;
  font-size: clamp(3.2rem, 6.4vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  color: #10233a;
  text-wrap: balance;
  text-shadow: 0 12px 28px rgba(255, 255, 255, 0.4);
}

.home-hero__titleSegment {
  display: inline;
}

.home-hero__titleSegment--noBreak {
  white-space: nowrap;
  word-break: keep-all;
}

.home-hero__subtitle {
  max-width: 640px;
  margin: 0;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  line-height: 1.75;
  color: rgba(16, 35, 58, 0.72);
}

.home-hero__actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: -4px;
  align-items: stretch;
}

.home-hero__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: clamp(232px, 24vw, 292px);
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 18px;
}

.home-hero__action--primary {
  min-width: clamp(232px, 24vw, 292px);
}

.home-hero__action--secondary {
  min-width: clamp(232px, 24vw, 292px);
}

.home-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.94rem;
}

.home-hero__metaItem {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.home-hero__visual {
  grid-area: visual;
  position: relative;
  z-index: 1;
}

.home-hero__visual::before {
  content: '';
  position: absolute;
  inset: 6% 4% 2%;
  border-radius: 44px;
  background:
    radial-gradient(circle at center, rgba(14, 165, 233, 0.12), transparent 52%),
    radial-gradient(circle at 18% 18%, rgba(245, 158, 11, 0.12), transparent 30%);
  filter: blur(18px);
  transform: translateY(24px);
  pointer-events: none;
}

.home-marketPreviewShell {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(252, 254, 255, 0.92), rgba(243, 248, 252, 0.96)),
    rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 38px 90px rgba(120, 140, 162, 0.22),
    0 8px 22px rgba(120, 140, 162, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
  animation: homePreviewFloat 8.5s ease-in-out infinite;
}

.home-marketPreviewShell--loading {
  min-height: 340px;
  display: grid;
  place-items: center;
  padding: 18px;
  animation: none;
}

.home-marketPreviewShell::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.42), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.22)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 30%);
  pointer-events: none;
}

.home-marketPreviewShell::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.08), transparent);
  pointer-events: none;
}

.home-marketPreviewShell__gauge .msiArcGauge__frame {
  pointer-events: none;
  border-radius: 28px;
  box-shadow:
    0 24px 50px rgba(15, 23, 42, 0.09),
    0 0 32px color-mix(in srgb, var(--msi-accent) 10%, transparent);
}

.home-marketPreviewShell__gauge .msiArcGauge__headline {
  display: grid;
  justify-items: center;
  grid-gap: 2px;
  gap: 2px;
  margin-top: 6px;
  margin-bottom: -8px;
  color: #334155;
}

.home-hero__loading,
.home-historyPreview--loading,
.home-pricePreview--loading {
  width: 100%;
}

.home-hero__loading {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  grid-template-areas:
    'copy visual'
    'actions visual';
  grid-gap: 48px;
  gap: 48px;
  align-items: start;
  min-height: min(100vh, 980px);
}

.home-hero__loadingCopy {
  grid-area: copy;
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  align-content: start;
  padding-top: 26px;
}

.home-hero__loadingVisual {
  grid-area: visual;
}

.home-hero__loadingTitle,
.home-hero__loadingText,
.home-hero__loadingButton,
.home-hero__loadingBadge,
.home-historyPreview__loadingTitle,
.home-historyPreview__loadingBody,
.home-historyPreview__loadingChart,
.home-pricePreview__loadingTitle,
.home-pricePreview__loadingBody,
.home-pricePreview__loadingStatLabel,
.home-pricePreview__loadingStatValue,
.home-pricePreview__loadingChart {
  display: block;
}

.home-hero__loadingTitle--primary {
  width: min(100%, 84%);
  height: clamp(3rem, 6vw, 5rem);
  border-radius: 24px;
}

.home-hero__loadingTitle--secondary {
  width: min(100%, 66%);
  height: clamp(2.4rem, 4.2vw, 3.5rem);
  border-radius: 22px;
}

.home-hero__loadingText {
  width: min(100%, 82%);
  height: 18px;
  border-radius: 999px;
}

.home-hero__loadingText--short {
  width: min(100%, 62%);
}

.home-hero__loadingActions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.home-hero__loadingButton {
  width: 180px;
  height: 52px;
  border-radius: 16px;
}

.home-hero__loadingButton--secondary {
  width: 210px;
}

.home-hero__loadingGauge {
  width: min(100%, 520px);
  height: 240px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 42%, rgba(15, 118, 110, 0.14), transparent 28%),
    radial-gradient(circle at 20% 18%, rgba(14, 165, 233, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(226, 232, 240, 0.84), rgba(248, 250, 252, 0.98));
}

.home-hero__loadingGaugeFoot {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  margin-top: 18px;
}

.home-hero__loadingBadge {
  width: min(100%, 260px);
  height: 22px;
  border-radius: 999px;
}

.home-hero__loadingBadge--short {
  width: min(100%, 180px);
}

.home-historyPreview__loadingTitle {
  width: 52%;
  height: 1.6rem;
  border-radius: 18px;
}

.home-historyPreview__loadingBody {
  width: 100%;
  height: 78px;
  border-radius: 22px;
}

.home-historyPreview__chartShell--loading {
  min-height: 320px;
}

.home-historyPreview__loadingChart {
  width: 100%;
  min-height: 280px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 16% 20%, rgba(14, 165, 233, 0.12), transparent 24%),
    radial-gradient(circle at 82% 16%, rgba(245, 158, 11, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(226, 232, 240, 0.82), rgba(248, 250, 252, 0.96));
}

.home-pricePreview__loadingTitle {
  width: 54%;
  height: 1.6rem;
  border-radius: 18px;
}

.home-pricePreview__loadingBody {
  width: 100%;
  height: 78px;
  border-radius: 22px;
}

.home-pricePreview__loadingStatLabel {
  width: 72%;
  height: 14px;
  border-radius: 999px;
}

.home-pricePreview__loadingStatValue {
  width: 88%;
  height: 24px;
  margin-top: 10px;
  border-radius: 999px;
}

.home-pricePreview__chartShell--loading {
  min-height: 320px;
}

.home-pricePreview__loadingChart {
  width: 100%;
  min-height: 280px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 18%, rgba(210, 74, 147, 0.12), transparent 24%),
    radial-gradient(circle at 78% 24%, rgba(124, 58, 237, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(226, 232, 240, 0.82), rgba(248, 250, 252, 0.96));
}

.home-skeleton {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(226, 232, 240, 0.88) 0%, rgba(248, 250, 252, 0.98) 45%, rgba(226, 232, 240, 0.88) 100%);
  background-size: 240% 100%;
  animation: homeSkeletonShimmer 1.45s ease-in-out infinite;
}

.home-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 24%, rgba(255, 255, 255, 0.42) 50%, transparent 76%);
  transform: translateX(-120%);
  animation: homeSkeletonSweep 1.45s linear infinite;
}

@keyframes homeSkeletonShimmer {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 240% 50%;
  }
}

@keyframes homeSkeletonSweep {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

.home-marketPreviewShell__headlineLine {
  display: block;
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.home-marketPreviewShell__headlineLine:first-child {
  font-size: clamp(1.28rem, 1.8vw, 1.62rem);
}

.home-marketPreviewShell__headlineLine:last-child {
  font-size: clamp(1.42rem, 2.05vw, 1.88rem);
}

.home-marketPreviewShell__gauge .msiArcGauge__canvasWrap {
  animation: homePreviewGaugeDrift 7.2s ease-in-out infinite;
}

.home-marketPreviewShell__gauge .msiArcGauge__coreBadge {
  top: 54.5%;
  animation: homePreviewBadgeDrift 7.2s ease-in-out infinite;
}

.home-marketPreviewShell__gauge .msiArcGauge__frameFooter {
  min-height: 164px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.home-marketMomentPanel__content {
  display: grid;
  grid-template-rows: auto minmax(88px, 1fr);
  grid-gap: 14px;
  gap: 14px;
  min-height: 146px;
  animation: homePreviewMomentSwap 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-marketMomentPanel__dateBlock {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  text-align: center;
}

.home-marketMomentPanel__date {
  display: inline-flex;
  align-items: stretch;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(240, 244, 248, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 14px 30px rgba(15, 23, 42, 0.08);
}

.home-marketMomentPanel__dateSegment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  font-size: clamp(0.98rem, 1.4vw, 1.18rem);
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(15, 23, 42, 0.92);
}

.home-marketMomentPanel__dateSegment--year {
  color: rgba(15, 23, 42, 0.72);
}

.home-marketMomentPanel__dateSegment--day {
  color: rgba(15, 23, 42, 0.96);
}

.home-marketMomentPanel__dateDivider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.28) 50%, rgba(15, 23, 42, 0.08) 100%);
}

.home-marketMomentPanel__body {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 0;
  gap: 0;
  justify-items: center;
  text-align: center;
}

.home-marketMomentPanel__copy {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  justify-items: center;
  max-width: 420px;
  min-height: 88px;
  align-content: start;
}

.home-marketMomentPanel__title {
  font-size: 1.2rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.home-marketMomentPanel__description {
  margin: 0;
  color: rgba(0, 0, 0, 0.62);
  color: var(--color-text-secondary, rgba(0, 0, 0, 0.62));
  line-height: 1.62;
}

@media (min-width: 1441px) {
  .home-hero__content {
    max-width: 620px;
  }

  .home-hero h1 {
    margin: 16px 0 20px;
    font-size: clamp(3rem, 5.2vw, 5.2rem);
    line-height: 0.94;
  }

  .home-hero__subtitle {
    max-width: 56ch;
    font-size: clamp(1.02rem, 1.28vw, 1.22rem);
    line-height: 1.64;
  }

  .home-hero__actions {
    gap: 12px;
    margin-top: -10px;
  }

  .home-hero__action,
  .home-hero__action--primary,
  .home-hero__action--secondary {
    min-width: clamp(216px, 16vw, 260px);
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 17px;
  }
}

@media (max-width: 1440px) and (min-width: 1201px) {
  .home-hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 36px;
  }

  .home-hero__content {
    max-width: 580px;
  }

  .home-hero h1 {
    margin: 16px 0 18px;
    font-size: clamp(2.9rem, 4.5vw, 4.5rem);
    line-height: 0.94;
  }

  .home-hero__subtitle {
    max-width: 52ch;
    font-size: clamp(1rem, 1.15vw, 1.16rem);
    line-height: 1.62;
  }

  .home-hero__actions {
    gap: 12px;
    margin-top: -10px;
  }

  .home-hero__action,
  .home-hero__action--primary,
  .home-hero__action--secondary {
    min-width: clamp(208px, 18vw, 248px);
    min-height: 48px;
    padding: 12px 18px;
  }

  .home-marketPreviewShell {
    padding: 16px;
    border-radius: 32px;
  }
}

@media (max-width: 1366px) and (min-width: 1201px) {
  .home-hero__content {
    max-width: 540px;
  }

  .home-hero__visual {
    margin-top: -96px;
  }

  .home-hero__actions {
    gap: 10px;
  }

  .home-hero__action,
  .home-hero__action--primary,
  .home-hero__action--secondary {
    min-width: clamp(188px, 15.5vw, 220px);
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 16px;
  }
}

@media (min-width: 1201px) and (max-height: 900px) {
  .home-hero {
    padding: calc(68px + 72px) 0 32px;
    padding: calc(var(--top-nav-height, 68px) + 72px) 0 32px;
  }

  .home-hero__inner {
    gap: 32px;
  }

  .home-hero__content {
    max-width: 560px;
  }

  .home-hero h1 {
    margin: 12px 0 16px;
    font-size: clamp(2.7rem, 4.1vw, 4rem);
    line-height: 0.92;
  }

  .home-hero__subtitle {
    max-width: 50ch;
    font-size: clamp(0.98rem, 1.02vw, 1.08rem);
    line-height: 1.56;
  }

  .home-hero__actions {
    gap: 10px;
    margin-top: -14px;
  }
}

@keyframes homePreviewFloat {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -8px, 0);
  }
}

@keyframes homePreviewGaugeDrift {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(4px, -3px, 0) scale(1.006);
  }
}

@keyframes homePreviewBadgeDrift {

  0%,
  100% {
    transform: translate(-50%, -50%);
  }

  50% {
    transform: translate(calc(-50% + 2px), calc(-50% - 2px));
  }
}

@keyframes homePreviewSignalReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

@keyframes homePreviewMomentSwap {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {

  .home-marketPreviewShell,
  .home-marketPreviewShell__gauge .msiArcGauge__canvasWrap,
  .home-marketPreviewShell__gauge .msiArcGauge__coreBadge,
  .home-skeleton {
    animation: none;
  }

  .home-skeleton::after {
    animation: none;
  }
}

.home-snapshotCard {
  display: grid;
  grid-gap: 26px;
  gap: 26px;
  padding: 28px;
}

.home-snapshotCard__header,
.home-methodology__snapshotHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.home-snapshotCard__loading {
  color: rgba(0, 0, 0, 0.6);
  color: var(--color-text-secondary, rgba(0, 0, 0, 0.6));
  font-size: 0.9rem;
}

.home-snapshotCard__scoreWrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-gap: 20px;
  gap: 20px;
  align-items: center;
}

.home-snapshotCard__score {
  display: grid;
  place-items: center;
  width: 126px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.74);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.home-snapshotCard__scoreMeta {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.home-snapshotCard__label,
.home-snapshotCard__sectionLabel,
.home-methodology__kicker,
.home-frameworkCard__eyebrow,
.home-positioning__index,
.home-proof__date {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);
  color: var(--color-text-tertiary, rgba(0, 0, 0, 0.4));
}

.home-snapshotCard__scoreMeta strong {
  font-size: 1.4rem;
  line-height: 1.2;
}

.home-snapshotCard__scoreMeta span:last-child {
  color: rgba(0, 0, 0, 0.6);
  color: var(--color-text-secondary, rgba(0, 0, 0, 0.6));
}

.home-snapshotCard__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 14px;
  gap: 14px;
}

.home-snapshotCard__metric,
.home-methodology__previewCard,
.home-proof__card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.home-snapshotCard__metric {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  padding: 16px;
}

.home-snapshotCard__metric span {
  color: rgba(0, 0, 0, 0.6);
  color: var(--color-text-secondary, rgba(0, 0, 0, 0.6));
  font-size: 0.88rem;
}

.home-snapshotCard__metric strong {
  font-size: 1.18rem;
}

.home-snapshotCard__ingredients {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.home-snapshotCard__ingredient {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.home-snapshotCard__ingredientMeta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.94rem;
}

.home-snapshotCard__ingredientBar,
.home-methodology__distributionBars {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
}

.home-snapshotCard__ingredientFill,
.home-methodology__distributionBar {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.home-scrollCue {
  position: absolute;
  left: 50%;
  top: calc(100vh - clamp(92px, 12vh, 132px));
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-left: -23px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.66);
  color: rgba(15, 23, 42, 0.76);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  cursor: pointer;
  transition: transform 0.28s ease, background-color 0.28s ease;
}

.home-scrollCue:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.84);
}

.home-announcement {
  position: relative;
  z-index: 1;
  margin-top: -22px;
}

.home-announcement__card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.home-announcement__card p {
  margin: 0;
  line-height: 1.6;
}

.home-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.72s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.home-narrative {
  position: relative;
}

.home-narrative .ui-section-intro {
  max-width: 760px;
}

.home-storyBlock {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1.08fr);
  grid-gap: 32px;
  gap: 32px;
  align-items: center;
  padding: 36px 0;
}

.home-storyBlock+.home-storyBlock {
  margin-top: 22px;
}

.home-storyBlock__content {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  max-width: 520px;
}

.home-storyBlock__content h3 {
  margin: 0;
  border-bottom: none;
  padding-bottom: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
  color: #0f172a;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

.home-storyBlock__titleSegment--noBreak {
  white-space: nowrap;
  word-break: keep-all;
}

.home-storyBlock--sentiment .home-storyBlock__content h3 {
  background-image: linear-gradient(135deg, #0f766e 0%, #0ea5e9 46%, #f59e0b 100%);
}

.home-storyBlock--price .home-storyBlock__content h3 {
  background-image: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 48%, #d24a93 100%);
}

.home-storyBlock--watchlist .home-storyBlock__content h3 {
  background-image: linear-gradient(135deg, #0369a1 0%, #0f766e 52%, #10b981 100%);
}

.home-storyBlock__content p {
  margin: 0;
  color: rgba(0, 0, 0, 0.62);
  color: var(--color-text-secondary, rgba(0, 0, 0, 0.62));
  font-size: 1.04rem;
  line-height: 1.82;
}

.home-storyBlock__eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.48);
}

.home-storyMedia {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  padding: 30px;
}

.home-storyMedia::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-storyMedia--sentiment::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(56, 189, 248, 0.2), transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(245, 158, 11, 0.18), transparent 24%);
}

.home-historyPreview {
  position: relative;
  z-index: 1;
  display: grid;
  grid-gap: 18px;
  gap: 18px;
}

.home-historyPreview__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.home-historyPreview__header h3 {
  margin: 8px 0 0;
  font-size: 1.45rem;
  line-height: 1.16;
}

.home-historyPreview__body {
  max-width: 640px;
  margin: 0;
  color: rgba(0, 0, 0, 0.66);
  color: var(--color-text-secondary, rgba(0, 0, 0, 0.66));
  line-height: 1.76;
}

.home-historyPreview__chartShell {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 10px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(241, 245, 249, 0.84)),
    rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.home-historyPreview__chart {
  height: 320px;
}

.home-historyPreview__chart canvas {
  width: 100% !important;
  height: 100% !important;
}

.home-historyPreview__empty {
  margin: 0;
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  color: rgba(0, 0, 0, 0.6);
  color: var(--color-text-secondary, rgba(0, 0, 0, 0.6));
}

.home-storyBlock--price {
  grid-template-columns: minmax(420px, 1.2fr) minmax(320px, 0.8fr);
}

.home-storyMedia--price {
  background:
    radial-gradient(circle at 18% 18%, rgba(210, 74, 147, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.9));
}

.home-pricePreview {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  width: 100%;
}

.home-pricePreview__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.home-pricePreview__header h3 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.16;
}

.home-pricePreview__body {
  margin: 0;
  color: rgba(0, 0, 0, 0.66);
  color: var(--color-text-secondary, rgba(0, 0, 0, 0.66));
  line-height: 1.76;
}

.home-pricePreview__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.home-pricePreview__stats div {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.08);
  justify-items: center;
  text-align: center;
}

.home-pricePreview__stats span {
  font-size: 0.88rem;
  color: rgba(0, 0, 0, 0.6);
  color: var(--color-text-secondary, rgba(0, 0, 0, 0.6));
}

.home-pricePreview__stats strong {
  font-size: 1.16rem;
  line-height: 1.2;
}

.home-pricePreview__stats .sentiment-extremeOptimism {
  color: #D24A93;
}

.home-pricePreview__stats .sentiment-optimism {
  color: #F0B8CE;
}

.home-pricePreview__stats .sentiment-neutral {
  color: #708090;
}

.home-pricePreview__stats .sentiment-pessimism {
  color: #5B9BD5;
}

.home-pricePreview__stats .sentiment-extremePessimism {
  color: #0000FF;
}

.home-pricePreview__chartShell {
  padding: 16px 16px 10px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.home-pricePreview__chart {
  height: 340px;
}

.home-pricePreview__chart canvas {
  width: 100% !important;
  height: 100% !important;
}

.home-pricePreview__empty {
  margin: 0;
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  color: rgba(0, 0, 0, 0.6);
  color: var(--color-text-secondary, rgba(0, 0, 0, 0.6));
}

.home-storyMedia__panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.home-storyMedia__panel h3 {
  margin: 8px 0 0;
  font-size: 1.45rem;
  line-height: 1.16;
}

.home-storyMedia__scoreWrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-gap: 20px;
  gap: 20px;
  align-items: center;
  margin-top: 44px;
}

.home-storyMedia__score {
  display: grid;
  place-items: center;
  width: 152px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78)),
    rgba(255, 255, 255, 0.8);
  font-size: 3.35rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.home-storyMedia__scoreMeta {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.home-storyMedia__scoreMeta strong {
  font-size: 1.65rem;
  line-height: 1.1;
}

.home-storyMedia__scoreMeta span:last-child {
  color: rgba(0, 0, 0, 0.6);
  color: var(--color-text-secondary, rgba(0, 0, 0, 0.6));
}

.home-storyMedia__body {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 28px 0 0;
  color: rgba(0, 0, 0, 0.66);
  color: var(--color-text-secondary, rgba(0, 0, 0, 0.66));
  line-height: 1.78;
}

.home-storyMedia__distribution {
  position: relative;
  z-index: 1;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  margin-top: 26px;
}

.home-storyMedia--watchlist {
  min-height: 420px;
  background:
    radial-gradient(circle at 14% 18%, rgba(56, 189, 248, 0.16), transparent 30%),
    radial-gradient(circle at 84% 14%, rgba(59, 130, 246, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.92));
  color: #0f172a;
  color: var(--color-text-primary, #0f172a);
}

.home-storyMedia--watchlist::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 36%),
    radial-gradient(circle at 76% 18%, rgba(255, 255, 255, 0.52), transparent 24%);
}

.home-storyMedia__watchlistStack {
  position: relative;
  z-index: 1;
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  max-width: 420px;
  margin-top: 20px;
}

.home-storyMedia__watchRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.82)),
    rgba(255, 255, 255, 0.72);
  box-shadow:
    0 18px 34px rgba(148, 163, 184, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.home-storyMedia__watchIdentity {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}

.home-storyMedia__watchRow strong {
  font-size: 1.18rem;
  letter-spacing: 0.03em;
}

.home-storyMedia__watchIdentity span {
  color: rgba(0, 0, 0, 0.62);
  color: var(--color-text-secondary, rgba(0, 0, 0, 0.62));
  font-size: 0.92rem;
}

.home-storyMedia__watchTag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.home-storyMedia__watchTag.sentiment-neutral {
  color: #708090;
}

.home-storyMedia__watchTag.sentiment-fear {
  color: #5B9BD5;
}

.home-storyMedia__watchTag.sentiment-extremeFear {
  color: #0000FF;
}

.home-storyMedia__watchTag.sentiment-greed {
  color: #F0B8CE;
}

.home-storyMedia__watchTag.sentiment-extremeGreed {
  color: #D24A93;
}

.home-storyMedia__watchRow--0 {
  transform: translateX(0);
}

.home-storyMedia__watchRow--1 {
  transform: translateX(30px);
}

.home-storyMedia__watchRow--2 {
  transform: translateX(12px);
}

.home-methodology__summary {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  grid-gap: 20px;
  gap: 20px;
}

.home-methodology__subsection {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  margin-top: 28px;
}

.home-methodology__subsectionIntro {
  max-width: 720px;
}

.home-methodology__subsectionIntro h3 {
  margin: 10px 0 8px;
  font-size: 1.5rem;
  line-height: 1.15;
}

.home-methodology__subsectionIntro p {
  margin: 0;
  color: rgba(0, 0, 0, 0.6);
  color: var(--color-text-secondary, rgba(0, 0, 0, 0.6));
  line-height: 1.7;
}

.home-methodology__snapshot,
.home-methodology__preview {
  padding: 26px;
}

.home-methodology__snapshotHeader h3,
.home-methodology__preview h3 {
  margin: 8px 0 0;
  font-size: 1.65rem;
  line-height: 1.15;
}

.home-methodology__snapshotBody,
.home-methodology__preview p,
.home-proof__card p,
.home-frameworkCard p,
.home-toolCard p {
  margin: 0;
  color: rgba(0, 0, 0, 0.6);
  color: var(--color-text-secondary, rgba(0, 0, 0, 0.6));
  line-height: 1.7;
}

.home-methodology__distribution {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  margin-top: 24px;
}

.home-methodology__distributionLead {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.85);
  color: var(--color-text-primary, rgba(0, 0, 0, 0.85));
}

.home-methodology__distributionSummary {
  margin: 0;
  color: rgba(0, 0, 0, 0.6);
  color: var(--color-text-secondary, rgba(0, 0, 0, 0.6));
  line-height: 1.65;
}

.home-methodology__preview {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.home-methodology__previewGrid {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  margin-top: 8px;
}

.home-methodology__previewCard {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  padding: 18px;
}

.home-methodology__previewLabel {
  font-size: 0.92rem;
  color: rgba(0, 0, 0, 0.6);
  color: var(--color-text-secondary, rgba(0, 0, 0, 0.6));
}

.home-methodology__previewCard strong {
  font-size: 1.8rem;
  line-height: 1;
}

.home-methodology__previewSentiment,
.home-proof__sentiment {
  font-weight: 600;
}

.home-frameworkGrid,
.home-proof__grid,
.home-journey__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 18px;
  gap: 18px;
  margin-top: 28px;
}

.home-proof__grid--inline {
  margin-top: 0;
}

.home-frameworkCard,
.home-toolCard {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  padding: 24px;
}

.home-journeyCard {
  position: relative;
  padding-top: 52px;
}

.home-journeyCard__step {
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(0, 0, 0, 0.4);
  color: var(--color-text-tertiary, rgba(0, 0, 0, 0.4));
}

.home-frameworkCard h3,
.home-toolCard h3,
.home-proof__card strong {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.2;
}

.home-proof__card {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  padding: 22px;
}

.home-proof__empty {
  padding: 24px;
}

.home-proof__empty p {
  margin: 0;
  color: rgba(0, 0, 0, 0.6);
  color: var(--color-text-secondary, rgba(0, 0, 0, 0.6));
}

.home-toolCard__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: #007aff;
  color: var(--accent-color-blue, #007aff);
  font-weight: 600;
  text-decoration: none;
}

.sentiment-extremeFear {
  color: #ea580c;
}

.home-snapshotCard__ingredientFill.sentiment-extremeFear,
.home-methodology__distributionBar.sentiment-extremeFear {
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

.sentiment-fear {
  color: #d97706;
}

.home-snapshotCard__ingredientFill.sentiment-fear,
.home-methodology__distributionBar.sentiment-fear {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.sentiment-neutral {
  color: #475569;
}

.home-snapshotCard__ingredientFill.sentiment-neutral,
.home-methodology__distributionBar.sentiment-neutral {
  background: linear-gradient(90deg, #94a3b8, #64748b);
}

.sentiment-greed {
  color: #059669;
}

.home-snapshotCard__ingredientFill.sentiment-greed,
.home-methodology__distributionBar.sentiment-greed {
  background: linear-gradient(90deg, #34d399, #10b981);
}

.sentiment-extremeGreed {
  color: #0f766e;
}

.home-snapshotCard__ingredientFill.sentiment-extremeGreed,
.home-methodology__distributionBar.sentiment-extremeGreed {
  background: linear-gradient(90deg, #2dd4bf, #14b8a6);
}

@media (max-width: 1200px) {

  .home-hero h1 {
    font-size: clamp(2.8rem, 5.6vw, 4.6rem);
  }

  .home-hero__content {
    max-width: min(100%, 760px);
  }

  .home-hero__subtitle {
    max-width: 58ch;
    font-size: clamp(1rem, 1.45vw, 1.2rem);
    line-height: 1.68;
  }

  .home-hero__inner,
  .home-methodology__summary {
    grid-template-columns: 1fr;
  }

  .home-hero__inner {
    grid-template-areas:
      'content'
      'visual'
      'actions';
  }

  .home-storyBlock {
    grid-template-columns: 1fr;
  }

  .home-frameworkGrid,
  .home-proof__grid,
  .home-journey__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {

  .home-scrollCue {
    top: calc(100vh - 88px);
  }

  .home-frameworkGrid,
  .home-proof__grid,
  .home-journey__grid {
    grid-template-columns: 1fr;
  }

  .home-snapshotCard__metrics {
    grid-template-columns: 1fr;
  }

  .home-marketPreview__signalStrip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .home-hero {
    min-height: auto;
    padding: calc(56px + 56px) 0 32px;
    padding: calc(var(--top-nav-height-mobile, 56px) + 56px) 0 32px;
  }

  .home-hero h1 {
    font-size: clamp(2.3rem, 9.8vw, 3.8rem);
    line-height: 1;
    letter-spacing: -0.045em;
  }

  .home-hero__inner {
    gap: 26px;
  }

  .home-hero__actions {
    margin-top: 0;
    gap: 8px;
    justify-content: center;
    align-items: center;
    justify-self: center;
    width: min(100%, 232px);
  }

  .home-hero__actions .ui-button,
  .home-hero__actions .home-link-button {
    min-height: 40px;
    padding: 10px 14px;
    font-size: 0.88rem;
  }

  .home-hero__action--primary {
    width: 100%;
    justify-content: center;
    border-radius: 16px;
  }

  .home-hero__action--secondary {
    width: 100%;
    justify-content: center;
    border-radius: 16px;
  }

  .home-hero__action--secondary:hover,
  .home-hero__action--secondary:focus-visible {
    transform: none;
    background: transparent;
    box-shadow: none;
    color: rgba(8, 47, 73, 0.96);
  }

  .home-snapshotCard {
    padding: 22px;
  }

  .home-snapshotCard__scoreWrap {
    grid-template-columns: 1fr;
  }

  .home-snapshotCard__score {
    width: 104px;
    font-size: 2.45rem;
  }

  .home-announcement__card {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-marketPreviewShell {
    padding: 14px;
    border-radius: 28px;
  }

  .home-storyBlock {
    gap: 22px;
    padding: 24px 0;
  }

  .home-storyMedia {
    min-height: auto;
    padding: 22px;
  }

  .home-storyMedia__panel,
  .home-historyPreview__header,
  .home-pricePreview__header {
    flex-direction: column;
  }

  .home-storyMedia__scoreWrap {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .home-storyMedia__score {
    width: 120px;
    font-size: 2.6rem;
  }

  .home-storyMedia__watchRow--1,
  .home-storyMedia__watchRow--2 {
    transform: none;
  }

  .home-pricePreview__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .home-pricePreview__stats div {
    padding: 14px 12px;
  }

  .home-pricePreview__stats strong {
    font-size: 1rem;
  }

  .home-marketMomentPanel__body {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .home-hero__actions {
    display: grid;
    width: min(100%, 220px);
    justify-content: center;
    justify-items: center;
    grid-gap: 4px;
    gap: 4px;
  }

  .home-hero__actions .ui-button,
  .home-hero__actions .home-link-button {
    width: 100%;
  }

  .home-hero__action--secondary {
    width: 100%;
    min-height: 40px;
    padding: 10px 14px;
    font-size: 0.88rem;
  }

  .home-hero__meta {
    display: grid;
    grid-gap: 12px;
    gap: 12px;
  }

  .home-snapshotCard__header,
  .home-methodology__snapshotHeader {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-snapshotCard__ingredientMeta {
    font-size: 0.88rem;
  }

  .home-storyBlock__content h3 {
    font-size: 1.8rem;
  }

  .home-storyMedia__watchRow {
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
  }

  .home-storyMedia__watchIdentity {
    flex: 1 1 auto;
    min-width: 0;
  }

  .home-storyMedia__watchIdentity span {
    font-size: 0.86rem;
    line-height: 1.35;
  }

  .home-storyMedia__watchTag {
    min-height: 30px;
    margin-left: auto;
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .home-scrollCue {
    display: none;
  }
}

.page-container {
  width: 100%;
  max-width: 95%;
  margin-left: auto;
  margin-right: auto;
  padding: 20px;
  box-sizing: border-box;
}

.page-container h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.analysis-description {
  margin: 10px 0 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  max-width: 100%;
  width: 100%;
  text-align: justify;
  -webkit-hyphens: auto;
          hyphens: auto;
  word-wrap: break-word;
}

.page-content {
  width: 100%;
}

@media (max-width: 768px) {
  .page-container {
    max-width: 100%;
    padding: 0px;
  }
  h1 {
    text-align: center;
  }
}

.ui-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: -webkit-fit-content;
  width: fit-content;
  border-radius: 999px;
  border-radius: var(--border-radius-pill, 999px);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  font-family: var(--font-family-sans, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif);
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.ui-badge--neutral {
  background: rgba(142, 142, 147, 0.12);
  color: rgba(60, 60, 67, 0.85);
}

.ui-badge--blue {
  background: rgba(0, 122, 255, 0.12);
  color: #007aff;
  color: var(--accent-color-blue, #007aff);
  border: 1px solid rgba(0, 122, 255, 0.18);
}

.ui-badge--premium {
  background: rgba(255, 149, 0, 0.14);
  color: #ff9500;
  color: var(--color-accent-premium, #ff9500);
  border: 1px solid rgba(255, 149, 0, 0.2);
}

.ui-badge--success {
  background: rgba(52, 199, 89, 0.12);
  background: var(--color-success-bg, rgba(52, 199, 89, 0.12));
  color: #34c759;
  color: var(--color-success, #34c759);
  border: 1px solid rgba(52, 199, 89, 0.24);
  border: 1px solid var(--color-success-border, rgba(52, 199, 89, 0.24));
}

.ui-badge--warning {
  background: #fff3cd;
  background: var(--color-warning-bg, #fff3cd);
  color: #856404;
  color: var(--color-warning-text, #856404);
  border: 1px solid #ffeaa7;
  border: 1px solid var(--color-warning-border, #ffeaa7);
}

.ui-badge--small {
  padding: 2px 8px;
  font-size: 10px;
}

.ui-badge--medium {
  padding: 4px 12px;
  font-size: 12px;
}

.ui-badge--large {
  padding: 6px 16px;
  font-size: 14px;
}

.ui-badge--icon-only {
  padding: 6px;
  aspect-ratio: 1;
}

.ui-badge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ui-badge__label {
  display: inline-flex;
  align-items: center;
}

@media (prefers-color-scheme: dark) {
  .ui-badge--neutral {
    background: rgba(142, 142, 147, 0.24);
    color: rgba(235, 235, 245, 0.85);
  }

  .ui-badge--blue {
    background: rgba(10, 132, 255, 0.18);
    color: #0a84ff;
    border-color: rgba(10, 132, 255, 0.28);
  }
}

.ui-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 14px;
  border-radius: var(--border-radius-large, 14px);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  font-family: var(--font-family-sans, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif);
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    background 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    border-color 0.3s ease,
    color 0.3s ease,
    opacity 0.3s ease;
  outline: none;
  overflow: hidden;
}

.ui-button:focus-visible {
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.3);
  box-shadow: var(--shadow-focus-ring, 0 0 0 4px rgba(0, 122, 255, 0.3));
}

.ui-button::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.ui-button--primary {
  background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
  background: var(--gradient-brand, linear-gradient(135deg, #007aff 0%, #5856d6 100%));
  color: #fff;
  box-shadow:
    0 8px 24px rgba(0, 122, 255, 0.28),
    0 4px 12px rgba(0, 122, 255, 0.16);
}

.ui-button--primary::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 50%);
}

.ui-button--primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow:
    0 12px 32px rgba(0, 122, 255, 0.34),
    0 6px 16px rgba(0, 122, 255, 0.2);
}

.ui-button--primary:hover:not(:disabled)::before {
  opacity: 1;
}

.ui-button--secondary {
  background: rgba(0, 122, 255, 0.12);
  background: var(--color-brand-soft, rgba(0, 122, 255, 0.12));
  color: #007aff;
  color: var(--accent-color-blue, #007aff);
  border-color: rgba(0, 122, 255, 0.18);
  box-shadow:
    0 2px 8px rgba(0, 122, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.ui-button--secondary::before {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.08) 0%, transparent 50%);
}

.ui-button--secondary:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(0, 122, 255, 0.28);
  background: rgba(0, 122, 255, 0.16);
}

.ui-button--secondary:hover:not(:disabled)::before {
  opacity: 1;
}

.ui-button--outline {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, #ffffff 100%);
  background: var(--gradient-surface, linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, #ffffff 100%));
  color: rgba(0, 0, 0, 0.85);
  color: var(--color-text-primary, rgba(0, 0, 0, 0.85));
  border-color: #d1d1d6;
  border-color: var(--color-border-default, #d1d1d6);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(0, 0, 0, 0.03));
}

.ui-button--outline::before {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.03) 0%, transparent 50%);
}

.ui-button--outline:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #b7bcc6;
  border-color: var(--color-border-strong, #b7bcc6);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-s, 0 2px 6px rgba(0, 0, 0, 0.05));
}

.ui-button--outline:hover:not(:disabled)::before {
  opacity: 1;
}

.ui-button--destructive {
  background: linear-gradient(135deg, #ff3b30 0%, #d70015 100%);
  background: var(--gradient-destructive, linear-gradient(135deg, #ff3b30 0%, #d70015 100%));
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 59, 48, 0.24);
}

.ui-button--destructive:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255, 59, 48, 0.32);
}

.ui-button--success {
  background: linear-gradient(135deg, #34c759 0%, #30d158 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(52, 199, 89, 0.22);
}

.ui-button--success:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(52, 199, 89, 0.3);
}

.ui-button--small {
  min-height: 32px;
  padding: 8px 16px;
  font-size: 14px;
}

.ui-button--medium {
  min-height: 44px;
  padding: 12px 24px;
  font-size: 16px;
}

.ui-button--large {
  min-height: 52px;
  padding: 16px 32px;
  font-size: 18px;
}

.ui-button--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.ui-button--loading {
  cursor: wait;
}

.ui-button--loading .ui-button__content {
  opacity: 0.75;
}

.ui-button__spinner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: ui-button-spin 1s linear infinite;
}

.ui-button__content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

@keyframes ui-button-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (prefers-color-scheme: dark) {
  .ui-button--secondary {
    background: rgba(10, 132, 255, 0.18);
    color: #0a84ff;
    border-color: rgba(10, 132, 255, 0.3);
  }

  .ui-button--outline {
    background: linear-gradient(135deg, rgba(58, 58, 60, 0.84) 0%, rgba(44, 44, 46, 0.96) 100%);
    color: rgba(235, 235, 245, 0.85);
    border-color: #48484a;
  }
}

.market-sentiment-gauge {
  --msi-arc-size: 420px;
  --msi-score-size: 30px;
  --msi-update-size: 13px;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  container-type: inline-size;
  container-name: msi-arc-gauge;
}

.msiArcGauge {
  --msi-accent: #64748b;
  --msi-accent-soft: rgba(100, 116, 139, 0.16);
  --msi-accent-strong: rgba(100, 116, 139, 0.24);
}

.msiArcGauge--extremeFear {
  --msi-accent: #0000FF;
  --msi-accent-soft: rgba(0, 0, 255, 0.16);
  --msi-accent-strong: rgba(0, 0, 255, 0.28);
}

.msiArcGauge--fear {
  --msi-accent: #5B9BD5;
  --msi-accent-soft: rgba(91, 155, 213, 0.16);
  --msi-accent-strong: rgba(91, 155, 213, 0.24);
}

.msiArcGauge--neutral {
  --msi-accent: #708090;
  --msi-accent-soft: rgba(112, 128, 144, 0.16);
  --msi-accent-strong: rgba(112, 128, 144, 0.24);
}

.msiArcGauge--greed {
  --msi-accent: #F0B8CE;
  --msi-accent-soft: rgba(240, 184, 206, 0.2);
  --msi-accent-strong: rgba(240, 184, 206, 0.3);
}

.msiArcGauge--extremeGreed {
  --msi-accent: #D24A93;
  --msi-accent-soft: rgba(210, 74, 147, 0.18);
  --msi-accent-strong: rgba(210, 74, 147, 0.28);
}

.msiArcGauge__frame {
  position: relative;
  padding: 20px 24px 18px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top, var(--msi-accent-soft) 0%, rgba(255, 255, 255, 0) 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 247, 250, 0.94) 100%);
  border: none;
  box-shadow:
    0 28px 56px rgba(15, 23, 42, 0.08),
    0 0 38px color-mix(in srgb, var(--msi-accent) 14%, transparent);
  overflow: hidden;
}

.msiArcGauge__frame::before {
  content: '';
  position: absolute;
  inset: 10px 16% auto;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--msi-accent-soft) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(16px);
  pointer-events: none;
}

.msiArcGauge__headline {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: -0.01em;
  margin-top: 10px;
  margin-bottom: -15px;
}

.msiArcGauge__canvasWrap {
  position: relative;
  width: min(100%, var(--msi-arc-size));
  margin: 0 auto;
  padding-bottom: 12px;
}

.msiArcGauge__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.msiArcGauge__track {
  fill: none;
  stroke: url(#msiArcGaugeTrack);
  stroke-width: 22;
  stroke-linecap: round;
}

.msiArcGauge__segment {
  fill: none;
  stroke: var(--msi-segment-color);
  stroke-width: 18;
  stroke-linecap: butt;
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.06));
}

.msiArcGauge__hitArea {
  fill: none;
  stroke: transparent;
  stroke-width: 30;
  cursor: pointer;
}

.msiArcGauge__hitArea:focus {
  outline: none;
  stroke: rgba(74, 144, 226, 0.18);
}

.msiArcGauge__locatorAura {
  fill: var(--msi-accent-soft);
  filter: url(#msiArcGaugeGlow);
}

.msiArcGauge__locatorBody {
  fill: rgba(255, 255, 255, 0.76);
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 1.1;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.12));
}

.msiArcGauge__locatorCore {
  fill: var(--msi-accent);
}

.msiArcGauge__locatorShine {
  fill: rgba(255, 255, 255, 0.9);
}

.msiArcGauge__coreBadge {
  position: absolute;
  left: 50%;
  top: 75%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 132px;
  padding: 0 8px;
  pointer-events: none;
}

.msiArcGauge__coreBadge::before {
  content: '';
  position: absolute;
  inset: -18px -24px -10px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, color-mix(in srgb, var(--msi-accent) 14%, white) 0%, rgba(255, 255, 255, 0) 72%);
  filter: blur(16px);
  z-index: -1;
}

.msiArcGauge__scoreRow {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1em;
  width: 100%;
}

.msiArcGauge__score {
  font-size: calc(var(--msi-score-size) + 20px);
  line-height: 0.84;
  font-weight: 700;
  letter-spacing: -0.035em;
  font-feature-settings: tabular-nums lining-nums;
  font-variant-numeric: tabular-nums lining-nums;
  color: transparent;
  background: linear-gradient(180deg, #0f172a 0%, #475569 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  text-shadow:
    0 8px 18px rgba(15, 23, 42, 0.07),
    0 0 22px rgba(255, 255, 255, 0.7),
    0 0 28px var(--msi-accent-soft);
}

.msiArcGauge__coreStatus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.44);
  color: var(--msi-accent);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.msiArcGauge__tooltip {
  position: absolute;
  z-index: 20;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  transform: translate(-50%, -120%);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  pointer-events: none;
  animation: msiArcGaugeFadeIn 0.18s ease-out;
}

.msiArcGauge__tooltip--extremeFear {
  background: linear-gradient(135deg, rgba(41, 98, 255, 0.96) 0%, rgba(74, 144, 255, 0.9) 100%);
}

.msiArcGauge__tooltip--fear {
  background: linear-gradient(135deg, rgba(77, 141, 255, 0.96) 0%, rgba(111, 165, 255, 0.9) 100%);
}

.msiArcGauge__tooltip--neutral {
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.96) 0%, rgba(148, 163, 184, 0.88) 100%);
}

.msiArcGauge__tooltip--greed {
  background: linear-gradient(135deg, rgba(240, 184, 206, 0.98) 0%, rgba(228, 142, 181, 0.92) 100%);
}

.msiArcGauge__tooltip--extremeGreed {
  background: linear-gradient(135deg, rgba(228, 95, 155, 0.96) 0%, rgba(236, 123, 174, 0.9) 100%);
}

.msiArcGauge--extremeFear .msiArcGauge__coreStatus,
.msiArcGauge--extremeGreed .msiArcGauge__coreStatus {
  animation: sentimentPulseIntense 1.5s ease-in-out infinite;
}

.msiArcGauge__analysis {
  display: flex;
  justify-content: center;
  padding-top: 12px;
}

.msiArcGauge__supplement {
  padding-top: 14px;
}

.msiArcGauge__analysisItem {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.msiArcGauge__analysisLabel {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

.msiArcGauge__analysisValue {
  font-size: 1.08rem;
  font-weight: 700;
}

.msiArcGauge__analysisValue--extremeFear {
  color: #2962ff;
}

.msiArcGauge__analysisValue--fear {
  color: #4d8dff;
}

.msiArcGauge__analysisValue--neutral {
  color: #64748b;
}

.msiArcGauge__analysisValue--greed {
  color: #f0873a;
}

.msiArcGauge__analysisValue--extremeGreed {
  color: #e45f9b;
}

.msiArcGauge__lastUpdate {
  width: 100%;
  text-align: center;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}

.msiArcGauge__state {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
}

@keyframes msiArcGaugeFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -100%);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -120%);
  }
}

@keyframes sentimentPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  25% {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  }

  50% {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  }

  75% {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  }
}

@keyframes sentimentPulseIntense {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
  }

  20% {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  }

  40% {
    transform: scale(1.12);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
  }

  60% {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  }

  80% {
    transform: scale(1.04);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  }
}

@container msi-arc-gauge (width < 460px) {
  .market-sentiment-gauge {
    --msi-arc-size: 300px;
    --msi-score-size: 22px;
    --msi-update-size: 10px;
  }

  .msiArcGauge__frame {
    padding: 18px 16px 16px;
    border-radius: 24px;
  }

  .msiArcGauge__headline {
    font-size: 1rem;
    margin-bottom: -15px;
  }

  .msiArcGauge__coreBadge {
    top: 73%;
    gap: 19px;
    min-width: 112px;
  }

  .msiArcGauge__score {
    font-size: calc(var(--msi-score-size) + 15px);
  }

  .msiArcGauge__coreStatus {
    min-height: 24px;
    padding: 0 10px;
    font-size: 0.98rem;
  }

  .msiArcGauge__tooltip {
    padding: 6px 10px;
    font-size: 0.68rem;
  }
}

@container msi-arc-gauge (460px <=width < 769px) {
  .market-sentiment-gauge {
    --msi-arc-size: 360px;
    --msi-score-size: 26px;
    --msi-update-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .msiArcGauge__tooltip {
    animation: none;
  }

  .msiArcGauge__coreStatus {
    animation: none !important;
  }
}

.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    background: var(--overlay-scrim, rgba(0, 0, 0, 0.45));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dialog-overlay--closing {
    animation: fadeOut 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.dialog {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(88, 86, 214, 0.08) 50%, rgba(255, 45, 85, 0.06) 100%), rgba(255, 255, 255, 0.95);
    background: var(--gradient-elevated, linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(88, 86, 214, 0.08) 50%, rgba(255, 45, 85, 0.06) 100%), rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    width: 90%;
    max-height: calc(100vh - 120px);
    position: relative;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.12),
        0 16px 32px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.04);
    animation: slideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 28px 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
}

.dialog--sm {
    max-width: 420px;
}

.dialog--md {
    max-width: 560px;
}

.dialog--lg {
    max-width: 720px;
}

.dialog--closing {
    animation: slideOut 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.dialog-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(120, 120, 128, 0.16);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: rgba(60, 60, 67, 0.7);
    font-size: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10;
}

.dialog-close:hover {
    background: rgba(255, 59, 48, 0.15);
    color: #ff3b30;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.2);
}

.dialog-close:active {
    transform: scale(0.9);
    background: rgba(255, 59, 48, 0.25);
}

.dialog-close::before,
.dialog-close::after {
    display: none;
}

.dialog-title {
    font-size: 28px;
    font-weight: 700;
    margin: 16px 0 12px;
    color: #1d1d1f;
    color: var(--color-text-primary, #1d1d1f);
    text-align: center;
    padding: 0 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.dialog-description {
    color: rgba(60, 60, 67, 0.7);
    color: var(--color-text-secondary, rgba(60, 60, 67, 0.7));
    margin: 0 0 32px;
    font-size: 17px;
    line-height: 1.47;
    text-align: center;
    padding: 0 8px;
    font-weight: 400;
}

.dialog-content {
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Apple-style gradient background applied to entire dialog */

/* Premium button styles */
.dialog-premium-button {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 17px;
    font-weight: 600;
    padding: 16px 32px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 8px 24px rgba(0, 122, 255, 0.25),
        0 4px 12px rgba(0, 122, 255, 0.15);
    min-width: 200px;
    letter-spacing: -0.2px;
}

.dialog-premium-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 32px rgba(0, 122, 255, 0.3),
        0 6px 16px rgba(0, 122, 255, 0.2);
}

.dialog-premium-button:active {
    transform: translateY(0);
}

/* Secondary button */
.dialog-secondary-button {
    background: rgba(120, 120, 128, 0.12);
    border: none;
    border-radius: 14px;
    color: #007AFF;
    font-size: 17px;
    font-weight: 500;
    padding: 14px 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dialog-secondary-button:hover {
    background: rgba(120, 120, 128, 0.2);
    transform: translateY(-1px);
}

/* Feature list styling */
.dialog-features {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    width: 100%;
}

.dialog-features li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    color: rgba(60, 60, 67, 0.8);
    font-size: 16px;
    line-height: 1.4;
}

.feature-icon {
    font-size: 20px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.feature-text {
    flex: 1 1;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

@keyframes fadeOut {
    from { 
        opacity: 1;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    to { 
        opacity: 0;
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
    }
    to {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }
}

/* Responsive design */
@media (max-width: 480px) {
    .dialog {
        width: 95%;
        max-width: none;
        margin: 20px;
        padding: 28px 20px 20px;
    }
    
    .dialog-title {
        font-size: 24px;
        margin: 12px 0 8px;
    }
    
    .dialog-description {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .dialog-premium-button {
        font-size: 16px;
        padding: 14px 28px;
        min-width: 180px;
    }
}

/* Quota Dialog Specific Styles */
.quota-dialog-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.quota-dialog-premium-icon {
    margin: 8px 0 16px;
}

.premium-crown {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
    border-radius: 50%;
    animation: crownFloat 3s ease-in-out infinite;
}

@keyframes crownFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
}



.premium-features {
    width: 100%;
}

.features-title {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    text-align: center;
    margin: 0 0 16px;
}

.quota-dialog-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: center;
}

.dialog-premium-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 280px;
}

.button-text {
    font-weight: 600;
}

.button-icon {
    font-size: 16px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.trust-indicators {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1 1;
}

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

.trust-text {
    font-size: 12px;
    color: rgba(60, 60, 67, 0.6);
    text-align: center;
    line-height: 1.3;
}

/* Responsive adjustments for quota dialog */
@media (max-width: 480px) {
    .quota-dialog-content {
        gap: 20px;
    }
    

    
    .features-title {
        font-size: 16px;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 12px;
    }
    
    .trust-item {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }
    
    .trust-text {
        font-size: 13px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .dialog {
        background: rgba(28, 28, 30, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .dialog-title {
        color: #f2f2f7;
    }
    
    .dialog-description {
        color: rgba(235, 235, 245, 0.6);
    }
    
    .features-title {
        color: #f2f2f7;
    }
    
    .dialog-features li {
        color: rgba(235, 235, 245, 0.8);
    }
    
    .trust-indicators {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .trust-text {
        color: rgba(235, 235, 245, 0.6);
    }
}

.user-profile {
    position: relative;
}

.user-profile__trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 20px;
    transition: background-color 0.2s ease;
}

.user-profile__trigger:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.user-profile__trigger:focus {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}

.user-profile__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-profile__avatar--default {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

.user-profile__name {
    font-size: 14px;
    color: #333;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-profile__menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 100;
    animation: menuSlideIn 0.2s ease;
}

.user-profile__menu-item {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.85);
    color: var(--color-text-primary, rgba(0, 0, 0, 0.85));
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
}

.user-profile__menu-item:hover {
    background-color: #f0f0f0;
    background-color: var(--color-bg-subtle, #f0f0f0);
}

.user-profile__menu-item:focus {
    outline: none;
    background-color: rgba(0, 122, 255, 0.1);
}

@keyframes menuSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 
.site-footer {
  background-color: #f8f9fa;
  padding: 40px 0 20px;
  margin-top: auto;
  border-top: 1px solid #e9ecef;
  font-size: 14px;
  color: #6c757d;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 頁尾導航樣式 */
.footer-navigation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 30px;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: #343a40;
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #6c757d;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section ul li a:hover {
  color: #0056b3;
}

/* 版權聲明區域樣式 */
.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid #dee2e6;
}

.copyright {
  margin-bottom: 15px;
  font-weight: 500;
}

.disclaimer {
  line-height: 1.6;
}

.disclaimer p {
  margin: 8px 0;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .site-footer {
    padding: 30px 0 15px;
  }
  
  .footer-content {
    padding: 0 15px;
  }
  
  .footer-navigation {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .footer-section h3 {
    font-size: 15px;
  }
  
  .disclaimer {
    font-size: 12px;
  }
} 
.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-switcher-button {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(191, 204, 218, 0.9);
  cursor: pointer;
  width: 38px;
  height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(15, 23, 42, 0.76);
  border-radius: 999px;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.language-switcher-button:hover {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(148, 163, 184, 0.95);
  color: #0f4c81;
  transform: translateY(-1px);
}

.language-dropdown {
  position: absolute;
  top: 100%; /* Position below the button */
  right: 0; /* Align to the right */
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  z-index: 100; /* Ensure it's above other content */
  min-width: 100px; /* Minimum width */
  padding: 5px 0;
}

.language-dropdown button {
  display: block;
  width: 100%;
  padding: 8px 15px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9em;
  color: #333;
}

.language-dropdown button:hover {
  background-color: #f0f0f0;
}

.language-dropdown button:disabled {
  cursor: default;
  opacity: 0.6;
  background-color: transparent;
} 

.loading-container {
    display: flex;
    flex-direction: row;      /* 橫向排列 */
    align-items: center;      /* 垂直置中 */
    justify-content: center;
    min-height: 50vh;
}

.loading-spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

.loading-text {
    font-size: 1.1em;
    color: #333;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 
.interstitial-ad-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7); /* 半透明黑色背景 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1050; /* 提高 z-index，使其高於 AdBanner (1000/1001) */
  cursor: pointer; /* 提示可以點擊關閉 */
  /* overlay 本身是 fixed 定位，可以作為 absolute 定位按鈕的容器 */
  /* 添加 backdrop-filter 以模糊背景 */
  -webkit-backdrop-filter: blur(3px);
          backdrop-filter: blur(3px); /* 模糊半徑為 5px，可以調整 */
  /* 為了更好的瀏覽器兼容性，可以考慮添加 -webkit- 前綴，但現代瀏覽器通常不需要 */
  /* -webkit-backdrop-filter: blur(5px); */
}

.interstitial-ad-modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  /* position: relative;  <-- 不再需要，因為按鈕已移出 */
  min-width: 300px;
  max-width: 90%;
  max-height: 90%;
  /* overflow: auto; <-- 移除此行以防止滾動條 */
  text-align: center;
  cursor: default;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* 添加 display: flex 和 flex-direction: column 可能有助於內部廣告的對齊 */
  display: flex;
  flex-direction: column;
  justify-content: center; /* 如果希望廣告垂直居中 */
}

.interstitial-ad-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgb(255, 255, 255);
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 0.9rem;
  color: rgb(89, 87, 87);
  cursor: pointer;
  text-align: center;
  z-index: 1051;
  /* --- 新增/修改 --- */
  opacity: 0; /* 初始透明度為 0 */
  visibility: hidden; /* 初始隱藏，輔助 opacity */
  pointer-events: none; /* 初始不可點擊 */
}

/* 新增：當按鈕有 'visible' class 時的樣式 */
.interstitial-ad-modal-close.visible {
  opacity: 1; /* 完全可見 */
  visibility: visible; /* 變為可見 */
  pointer-events: auto; /* 允許點擊 */
}

.interstitial-ad-modal-close:hover {
  /* 保持 hover 效果，但只在 visible 時有效 */
  color: #fff;
  background: rgba(0, 0, 0, 0.9);
}

/* 確保 AdSense 容器有基本樣式 */
.interstitial-ad-modal-content .adsbygoogle {
  margin-top: 0; /* 如果不需要額外間隔，可以設為 0 */
  min-height: 50px;
  background-color: #f0f0f0;
  /* 讓廣告嘗試填滿容器寬度 */
  display: block; /* 確保是塊級元素 */
  width: 100%; /* 嘗試佔滿 content 寬度 */
} 
/* Toast 通知 */
.toast {
    position: fixed;
    top: 90px;
    right: 24px;
    padding: 16px 24px;
    border-radius: 8px;
    background: #ffffff;
    color: #333333;
    z-index: 1000;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
    border-left: 4px solid #333333;
}

/* 成功樣式 */
.toast.toast-success {
    background: #f0fdf4;
    border-left-color: #22c55e;
    color: #166534;
}

/* 錯誤樣式 */
.toast.toast-error {
    background: #fef2f2;
    border-left-color: #ef4444;
    color: #991b1b;
}

/* 警告樣式 */
.toast.toast-warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
    color: #92400e;
}

/* 資訊樣式 */
.toast.toast-info {
    background: #f0f9ff;
    border-left-color: #0ea5e9;
    color: #075985;
}

/* 動畫效果 */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 添加圖示 */
.toast::before {
    content: '';
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.toast.toast-success::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27%2322c55e%27%3E%3Cpath d=%27M20.3 5.3L9 16.6l-5.3-5.3-1.4 1.4 6.7 6.7 12.7-12.7z%27%2F%3E%3C%2Fsvg%3E");
}

.toast.toast-error::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27%23ef4444%27%3E%3Cpath d=%27M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z%27%2F%3E%3C%2Fsvg%3E");
}

.toast.toast-warning::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27%23f59e0b%27%3E%3Cpath d=%27M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z%27%2F%3E%3C%2Fsvg%3E");
}

.toast.toast-info::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27%230ea5e9%27%3E%3Cpath d=%27M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z%27%2F%3E%3C%2Fsvg%3E");
}

/* 響應式設計 */
@media (max-width: 768px) {
    .toast {
        top: 50px;
        right: 16px;
        left: 16px;
        min-width: auto;
        max-width: none;
        text-align: left;
        padding: 12px 20px;
    }
}

/* 多個 Toast 堆疊時的間距 */
.toast + .toast {
    margin-bottom: 8px;
} 
