/* ============================================================
   會員中心頁樣式
   ============================================================ */

/* 會員英雄區 */
.member-hero {
  position: relative;
  background: linear-gradient(135deg, #0e0b04, #1a1408, #2a1f0a);
  padding: 100px 0 60px;
  overflow: hidden;
}

.member-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(208, 188, 101, 0.08) 0%, transparent 60%);
}

.member-hero-content {
  position: relative;
  z-index: 1;
  padding: 20px 0;
}

.member-hero-content h1 {
  font-family: 'Noto Serif HK', serif;
  font-weight: 200;
  font-size: 52px;
  color: #fff;
  margin: 12px 0 16px;
  line-height: 1.1;
}

.member-hero-content p {
  font-size: 17px;
  color: rgba(228, 226, 223, 0.7);
  line-height: 1.8;
  margin-bottom: 28px;
}

.hero-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hs-value {
  font-family: 'Noto Serif HK', serif;
  font-weight: 300;
  font-size: 28px;
  color: var(--gold-1);
  line-height: 1;
}

.hs-label {
  font-size: 13px;
  color: rgba(228, 226, 223, 0.5);
}

/* 登入/注冊表單 */
.auth-box {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  margin: 20px 0;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-gold);
}

.auth-tab {
  flex: 1;
  padding: 16px;
  background: var(--bg-section);
  border: none;
  font-family: 'Noto Sans HK', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-tab.active {
  background: #fff;
  color: var(--gold-2);
  border-bottom: 2px solid var(--gold-2);
}

.auth-form {
  padding: 28px;
}

.auth-form .form-group {
  margin-bottom: 18px;
}

.auth-form label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: block;
}

.auth-form label i {
  color: var(--gold-2);
  margin-right: 6px;
}

.auth-form .form-control {
  border: 1px solid rgba(208, 188, 101, 0.3);
  border-radius: 4px;
  height: 44px;
  font-size: 15px;
  font-family: 'Noto Sans HK', sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-form .form-control:focus {
  border-color: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(208, 188, 101, 0.15);
  outline: none;
}

.input-password {
  position: relative;
}

.input-password .form-control {
  padding-right: 44px;
}

.toggle-pwd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  font-size: 16px;
}

.toggle-pwd:hover {
  color: var(--gold-2);
}

.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-options .checkbox-label {
  font-size: 14px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 400;
}

.forgot-link {
  font-size: 14px;
  color: var(--gold-2);
  text-decoration: none;
}

.forgot-link:hover {
  color: var(--gold-1);
}

.auth-submit {
  margin-top: 4px;
}

.auth-demo-hint {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  padding: 10px;
  background: var(--bg-section);
  border-radius: 4px;
}

.auth-demo-hint i {
  color: var(--gold-2);
  margin-right: 4px;
}

.auth-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* 會員等級卡片 */
.membership-tiers {
  display: flex;
  flex-wrap: wrap;
}

.tier-card {
  background: #fff;
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 28px 20px;
  margin-bottom: 24px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  height: 100%;
}

.tier-card:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}

.tier-featured {
  border-color: var(--gold-2) !important;
  background: linear-gradient(135deg, #fffdf5, #fff) !important;
}

.tier-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-2), var(--gold-4));
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.tier-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  background: rgba(208, 188, 101, 0.1);
  color: var(--text-muted);
  border: 1px solid rgba(208, 188, 101, 0.2);
}

.tier-badge-1 {
  background: rgba(208, 188, 101, 0.15);
  color: var(--gold-2);
  border-color: rgba(208, 188, 101, 0.4);
}

.tier-badge-2 {
  background: linear-gradient(135deg, rgba(208, 188, 101, 0.2), rgba(173, 131, 60, 0.15));
  color: var(--gold-2);
  border-color: rgba(208, 188, 101, 0.5);
}

.tier-badge-ib {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  border-color: rgba(99, 102, 241, 0.3);
}

.tier-icon {
  font-size: 36px;
  color: var(--gold-2);
  margin-bottom: 16px;
}

.tier-price {
  margin-bottom: 20px;
}

.price-free {
  font-family: 'Noto Serif HK', serif;
  font-weight: 300;
  font-size: 28px;
  color: var(--text-muted);
}

.price-amount {
  display: block;
  font-family: 'Noto Serif HK', serif;
  font-weight: 300;
  font-size: 28px;
  color: var(--gold-2);
  line-height: 1.2;
}

.price-period {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  text-align: left;
}

.tier-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(208, 188, 101, 0.08);
}

.tier-features li:last-child {
  border-bottom: none;
}

.feature-yes {
  color: var(--text-dark);
}

.feature-yes i {
  color: #22c55e;
  flex-shrink: 0;
}

.feature-no {
  color: var(--text-muted);
}

.feature-no i {
  color: #d1d5db;
  flex-shrink: 0;
}

.tier-return {
  background: var(--bg-section);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 16px;
}

.return-cap-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.return-cap-value {
  display: block;
  font-family: 'Noto Serif HK', serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--text-dark);
}

.return-cap-value.gold-text {
  color: var(--gold-2);
}

/* 會員儀表板 */
.member-dashboard-header {
  background: linear-gradient(135deg, #1a1408, #2a1f0a);
  padding: 30px 0;
  border-bottom: 1px solid rgba(208, 188, 101, 0.2);
}

.member-welcome {
  display: flex;
  align-items: center;
  gap: 20px;
}

.member-avatar {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-4));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif HK', serif;
  font-size: 26px;
  color: #fff;
  flex-shrink: 0;
}

.member-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}

.member-level-badge.level-1 {
  background: rgba(208, 188, 101, 0.2);
  color: var(--gold-1);
  border: 1px solid rgba(208, 188, 101, 0.4);
}

.member-level-badge.level-2 {
  background: linear-gradient(135deg, rgba(208, 188, 101, 0.3), rgba(173, 131, 60, 0.2));
  color: var(--gold-1);
  border: 1px solid rgba(208, 188, 101, 0.5);
}

.member-info h2 {
  font-family: 'Noto Serif HK', serif;
  font-weight: 300;
  font-size: 26px;
  color: #fff;
  margin: 0 0 6px;
}

.member-info p {
  font-size: 14px;
  color: rgba(228, 226, 223, 0.5);
  margin: 0;
}

/* 儀表板導航 */
.dashboard-nav {
  background: #fff;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  overflow: hidden;
  position: sticky;
  top: 90px;
}

.dashboard-nav ul {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}

.dashboard-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-dark);
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.dashboard-nav li a i {
  color: var(--text-muted);
  width: 16px;
  text-align: center;
  transition: color 0.3s ease;
}

.dashboard-nav li a:hover {
  color: var(--gold-2);
  background: rgba(208, 188, 101, 0.05);
  border-left-color: rgba(208, 188, 101, 0.3);
}

.dashboard-nav li a:hover i {
  color: var(--gold-2);
}

.dashboard-nav li.active a {
  color: var(--gold-2);
  background: rgba(208, 188, 101, 0.08);
  border-left-color: var(--gold-2);
  font-weight: 500;
}

.dashboard-nav li.active a i {
  color: var(--gold-2);
}

/* 統計卡片 */
.dash-stats {
  margin-bottom: 24px;
}

.dash-stat-card {
  background: #fff;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.dash-stat-card:hover {
  border-color: var(--gold-2);
  box-shadow: var(--shadow-gold);
}

.dsc-icon {
  font-size: 22px;
  color: var(--gold-2);
  margin-bottom: 10px;
}

.dsc-value {
  font-family: 'Noto Serif HK', serif;
  font-weight: 300;
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 4px;
  line-height: 1.2;
}

.dsc-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* 升級提示橫幅 */
.upgrade-banner {
  background: linear-gradient(135deg, #1a1408, #2a1f0a);
  border: 1px solid rgba(208, 188, 101, 0.3);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 28px;
}

.upgrade-banner h5 {
  font-family: 'Noto Sans HK', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--gold-1);
  margin: 0 0 8px;
}

.upgrade-banner p {
  font-size: 14px;
  color: rgba(228, 226, 223, 0.6);
  margin-bottom: 14px;
}

.upgrade-progress .progress-label {
  color: rgba(228, 226, 223, 0.55);
}

/* 投資列表 */
.dash-section-title {
  font-family: 'Noto Serif HK', serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--text-dark);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-gold);
}

.investment-list {
  margin-bottom: 24px;
}

.investment-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  transition: all 0.3s ease;
}

.investment-item:hover {
  border-color: var(--gold-2);
  box-shadow: var(--shadow-gold);
}

.inv-status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-active {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-pending {
  background: rgba(234, 179, 8, 0.1);
  color: #ca8a04;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.inv-info {
  flex: 1;
  min-width: 140px;
}

.inv-info h6 {
  font-family: 'Noto Sans HK', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 4px;
}

.inv-info span {
  font-size: 13px;
  color: var(--text-muted);
}

.inv-amount, .inv-return, .inv-date {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}

.inv-amount strong, .inv-return strong, .inv-date strong {
  font-size: 15px;
  color: var(--text-dark);
}

.inv-amount span, .inv-return span, .inv-date span {
  font-size: 12px;
  color: var(--text-muted);
}

.return-highlight {
  color: var(--gold-2) !important;
}

/* 通知列表 */
.notification-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notif-item {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 16px;
  transition: all 0.3s ease;
}

.notif-item.notif-new {
  border-left: 3px solid var(--gold-2);
}

.notif-item:hover {
  box-shadow: var(--shadow-gold);
}

.notif-icon {
  width: 36px;
  height: 36px;
  background: rgba(208, 188, 101, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-2);
  font-size: 16px;
  flex-shrink: 0;
}

.notif-content h6 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0 0 6px;
}

.notif-content p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0 0 6px;
  line-height: 1.5;
}

.notif-time {
  font-size: 12px;
  color: var(--text-muted);
}

/* 表格 */
.table-tickcash {
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  overflow: hidden;
}

.table-tickcash thead tr {
  background: linear-gradient(135deg, #1a1408, #2a1f0a);
}

.table-tickcash thead th {
  color: var(--gold-1);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 16px;
  border-bottom: none !important;
}

.table-tickcash tbody tr {
  border-bottom: 1px solid rgba(208, 188, 101, 0.1);
}

.table-tickcash tbody td {
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text-dark);
  vertical-align: middle;
}

.badge-status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-status.paid {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.badge-status.pending {
  background: rgba(234, 179, 8, 0.1);
  color: #ca8a04;
}

/* 回報摘要 */
.return-summary {
  display: flex;
  gap: 0;
  background: var(--bg-section);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 16px;
}

.rs-item {
  flex: 1;
  padding: 16px;
  text-align: center;
  border-right: 1px solid var(--border-gold);
}

.rs-item:last-child {
  border-right: none;
}

.rs-item span {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.rs-item strong {
  display: block;
  font-family: 'Noto Serif HK', serif;
  font-weight: 400;
  font-size: 20px;
  color: var(--text-dark);
}

/* 個人資料 */
.referral-code {
  display: flex;
  gap: 8px;
}

.referral-code .form-control {
  background: var(--bg-section);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.copy-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* 升級頁面 */
.upgrade-info {
  background: #fff;
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 28px;
}

.upgrade-current, .upgrade-target {
  text-align: center;
  padding: 20px;
}

.upgrade-current h5, .upgrade-target h5 {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.current-level, .target-level {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.current-level i { color: var(--gold-2); }
.target-level i { color: var(--gold-1); }

.upgrade-current p, .upgrade-target p {
  font-size: 14px;
  color: var(--text-muted);
}

.upgrade-progress-section {
  background: var(--bg-section);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.upgrade-hint {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 10px;
  margin-bottom: 0;
}

.upgrade-benefits {
  margin: 20px 0;
}

.upgrade-benefits h5 {
  font-family: 'Noto Serif HK', serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.benefit-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  background: var(--bg-section);
  border-radius: 6px;
  margin-bottom: 12px;
}

.benefit-item i {
  font-size: 20px;
  color: var(--gold-2);
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-item strong {
  display: block;
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.benefit-item p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.dash-tab-title {
  font-family: 'Noto Serif HK', serif;
  font-weight: 300;
  font-size: 24px;
  color: var(--text-dark);
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-gold);
}

/* 響應式 */
@media (max-width: 991px) {
  .member-hero-content h1 {
    font-size: 40px;
  }

  .auth-box {
    margin-top: 32px;
  }
}

@media (max-width: 767px) {
  .member-hero {
    padding: 80px 0 40px;
  }

  .member-hero-content h1 {
    font-size: 32px;
  }

  .hero-stats {
    gap: 16px;
  }

  .member-welcome {
    flex-wrap: wrap;
  }

  .investment-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .inv-amount, .inv-return, .inv-date {
    text-align: left;
  }

  .return-summary {
    flex-direction: column;
  }

  .rs-item {
    border-right: none;
    border-bottom: 1px solid var(--border-gold);
  }

  .rs-item:last-child {
    border-bottom: none;
  }
}
