/* Your Virtual Gifts Dashboard Styles */

.vgift-dash-body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f4f6f9;
  color: #334155;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Sky Blue Hero */
.vgift-hero-section {
  background-color: #0099e6;
  background: linear-gradient(180deg, #0092e0 0%, #00a4fa 100%);
  color: #ffffff;
  padding: 38px 20px 42px;
  text-align: center;
}

.vgift-hero-title {
  font-size: 32px;
  font-weight: 400;
  margin: 0 0 10px 0;
  letter-spacing: 0.3px;
}

.vgift-hero-subtitle {
  font-size: 13.5px;
  font-weight: 500;
  color: #e0f2fe;
  margin: 0;
}

/* Main Container */
.vgift-main-container {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: -24px auto 60px;
  padding: 0 20px;
}

/* Base Card */
.vgift-card {
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  margin-bottom: 24px;
}

/* Snapshot Card */
.snapshot-card {
  padding: 24px 32px 30px;
}

.snapshot-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.vgift-card-title {
  font-size: 22px;
  font-weight: 400;
  color: #475569;
  margin: 0;
  text-align: center;
  flex: 1;
}

.btn-vgift-settings {
  padding: 6px 18px;
  border-radius: 20px;
  border: none;
  background: #0099e6;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-vgift-settings:hover {
  background: #0284c7;
}

.snapshot-body-grid {
  display: flex;
  align-items: center;
  gap: 48px;
}

.snapshot-art-col {
  flex-shrink: 0;
  padding-left: 10px;
}

.snapshot-metrics-col {
  flex: 1;
}

.snapshot-metrics-table {
  width: 100%;
  border-collapse: collapse;
}

.snapshot-metrics-table td {
  padding: 5px 0;
  font-size: 13px;
}

.metric-key {
  font-weight: 700;
  color: #1e293b;
  width: 260px;
}

.metric-val {
  color: #475569;
}

.badge-level-pill {
  display: inline-flex;
  align-items: center;
  background: #38bdf8;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 12px;
  margin-left: 6px;
}

.snapshot-metrics-table .level-crown-badge {
  height: 22px !important;
  width: auto !important;
  max-width: none !important;
  flex-shrink: 0 !important;
  object-fit: contain;
  vertical-align: middle !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
  transition: transform 0.2s ease;
}

.snapshot-metrics-table .level-crown-badge:hover {
  transform: scale(1.06);
}

.get-credits-link {
  color: #0284c7;
  font-weight: 600;
  margin-left: 6px;
  text-decoration: underline;
}

.help-question-mark {
  color: #0284c7;
  font-size: 12px;
  cursor: pointer;
}

.snapshot-footnotes {
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

.footnote-line {
  font-size: 10px;
  color: #64748b;
  margin: 2px 0;
}

/* Tables Card */
.table-card {
  padding: 16px 20px 20px;
}

.table-card-header {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.table-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.vgift-log-table {
  width: 100%;
  border-collapse: collapse;
}

.vgift-log-table th {
  padding: 8px 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: #1e293b;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.vgift-log-table td {
  padding: 12px 12px;
  font-size: 12px;
  color: #475569;
  border-bottom: 1px solid #f8fafc;
}

.gift-cell-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gift-icon-box {
  font-size: 26px;
  width: 36px;
  display: flex;
  justify-content: center;
}

.gift-badge-hello {
  background: #f43f5e;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.user-link {
  color: #0284c7;
  font-weight: 600;
  cursor: pointer;
}

.gift-subtext {
  font-size: 10.5px;
  color: #94a3b8;
  margin-top: 2px;
}

.red-points {
  color: #dc2626;
  font-weight: 700;
  text-decoration: line-through;
}

.col-date {
  width: 15%;
}

.col-points {
  width: 15%;
}

.col-source {
  width: 12%;
}

.table-action-center {
  display: flex;
  justify-content: center;
  padding-top: 16px;
}

.btn-table-pill {
  padding: 7px 24px;
  border-radius: 20px;
  border: none;
  background: #38bdf8;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-table-pill:hover {
  background: #0284c7;
}

/* Info Footer Card */
.vgift-info-footer-card {
  background: #ffffff;
  border-radius: 6px;
  padding: 20px 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.info-footer-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px 0;
}

.info-footer-desc {
  font-size: 12px;
  line-height: 1.55;
  color: #64748b;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Full 6-Column Blue Footer
   -------------------------------------------------------------------------- */
.sub-history-footer {
  background: #0088cc;
  background: linear-gradient(180deg, #0081c2 0%, #0072ad 100%);
  color: #ffffff;
  padding: 44px 20px 30px;
  margin-top: auto;
}

.footer-columns-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 14px 0;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #e0f2fe;
  font-size: 11.5px;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom-copyright {
  max-width: 960px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  font-size: 11px;
  color: #bae6fd;
}

/* --------------------------------------------------------------------------
   Virtual Gift Settings Modal
   -------------------------------------------------------------------------- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: 6px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.vgift-modal-header {
  background: #0099e6;
  background: linear-gradient(180deg, #0099e6 0%, #0284c7 100%);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
}

.vgift-modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

.vgift-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #ffffff;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.vgift-modal-body {
  padding: 26px 28px 24px;
  color: #334155;
  font-size: 13px;
}

.vgift-modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.vgift-modal-row-label {
  font-weight: 700;
  color: #334155;
  font-size: 13px;
}

.vgift-modal-row-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #475569;
  cursor: pointer;
}

.vgift-modal-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.btn-update-privacy {
  padding: 8px 30px;
  border-radius: 20px;
  border: none;
  background: #38bdf8;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-update-privacy:hover {
  background: #0284c7;
  transform: translateY(-1px);
}

.vgift-modal-notice {
  text-align: center;
  font-size: 11px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* ==========================================================================
   Mobile Responsiveness for Virtual Gifts Activity
   ========================================================================== */
@media (max-width: 768px) {
  .vgift-main-container {
    padding: 0 12px;
    margin-top: 14px;
  }

  .snapshot-card {
    padding: 18px 14px;
  }

  .snapshot-header-row {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
  }

  .snapshot-body-grid {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
  }

  .snapshot-art-col {
    padding: 0;
  }

  .vgift-table-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .vgift-modal-content {
    width: 94% !important;
    padding: 20px 16px !important;
  }
}

/* ==========================================================================
   UNIVERSAL DARK MODE OVERRIDES (VGIFT-ACTIVITY.CSS)
   ========================================================================== */
html[data-theme="dark"] .vgift-body,
html.dark .vgift-body {
  background-color: var(--bg-page);
  color: var(--text-primary);
}

html[data-theme="dark"] .snapshot-card,
html.dark .snapshot-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .vgift-table-card,
html.dark .vgift-table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .vgift-table-header-row th,
html.dark .vgift-table-header-row th {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
}

html[data-theme="dark"] .vgift-table-row td,
html.dark .vgift-table-row td {
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

html[data-theme="dark"] .vgift-modal-content,
html.dark .vgift-modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Button contrast */
.btn-update-privacy,
.btn-vgift-action {
  background: var(--firetalk-primary, #0084ff) !important;
  color: #ffffff !important;
}
