/**
 * Dedicated Deleted / Archive Gifts Section Styles
 * Exclusive glassmorphic iOS design for rare Telegram Star Gifts.
 * Responsive: Compact & native on mobile, spacious on desktop.
 */

.deleted-gifts-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 80px;
  animation: deletedGiftsFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (min-width: 768px) {
  .deleted-gifts-section {
    gap: 18px;
    padding-bottom: 90px;
  }
}

@keyframes deletedGiftsFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── 1. Top Navigation Bar ────────────────────────────── */
.dg-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.dg-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-glass-subtle, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.1));
  color: var(--text-primary, #ffffff);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 12px;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: manipulation;
}

[data-theme="light"] .dg-back-btn {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.dg-back-btn:hover {
  background: var(--border-glass-hover, rgba(255, 255, 255, 0.12));
  transform: translateX(-2px);
}

[data-theme="light"] .dg-back-btn:hover {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.12);
}

.dg-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(0, 136, 204, 0.1);
  border: 1px solid rgba(0, 136, 204, 0.25);
  color: #38bdf8;
  backdrop-filter: blur(10px);
}

[data-theme="light"] .dg-verified-pill {
  background: rgba(0, 136, 204, 0.08);
  border-color: rgba(0, 136, 204, 0.2);
  color: #0284c7;
}

.dg-verified-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ── 2. Hero Atmospheric Banner (Luxury Bento Style) ─────── */
.dg-hero-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%), var(--bg-surface-elevated, #131722);
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
  border-radius: 18px;
  padding: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

@media (min-width: 768px) {
  .dg-hero-banner {
    border-radius: 24px;
    padding: 24px 28px;
    box-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.4);
  }
}

[data-theme="light"] .dg-hero-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 6px 24px -4px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.dg-hero-glow {
  position: absolute;
  top: -30%;
  right: -5%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, rgba(56, 189, 248, 0.08) 50%, transparent 70%);
  filter: blur(45px);
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .dg-hero-glow {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, rgba(56, 189, 248, 0.06) 50%, transparent 70%);
}

.dg-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dg-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fbbf24;
  width: fit-content;
}

[data-theme="light"] .dg-hero-tag {
  color: #d97706;
}

.dg-hero-title {
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .dg-hero-title {
    font-size: 26px;
  }
}

[data-theme="light"] .dg-hero-title {
  color: #0f172a;
}

.dg-hero-desc {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary, #94a3b8);
  margin: 0;
  max-width: 720px;
}

@media (min-width: 768px) {
  .dg-hero-desc {
    font-size: 14px;
  }
}

[data-theme="light"] .dg-hero-desc {
  color: #64748b;
}

.dg-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}

@media (min-width: 768px) {
  .dg-metrics-row {
    gap: 14px;
    max-width: 600px;
  }
}

.dg-metric-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

[data-theme="light"] .dg-metric-card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.05);
}

.dg-metric-num {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
}

@media (min-width: 768px) {
  .dg-metric-num {
    font-size: 15px;
  }
}

[data-theme="light"] .dg-metric-num {
  color: #0f172a;
}

.dg-metric-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary, #94a3b8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="light"] .dg-metric-label {
  color: #64748b;
}

/* ── 3. Apple iOS Glass Segmented Control ────────────────── */
.dg-segmented-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin: 2px 0 4px 0;
}

@media (min-width: 768px) {
  .dg-segmented-wrapper {
    margin: 4px 0 8px 0;
  }
}

.dg-segmented-bar {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3.5px;
  border-radius: 13px;
  background: var(--bg-glass-subtle, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.04), 0 2px 8px rgba(0, 0, 0, 0.12);
  width: 100%;
  max-width: 440px;
}

[data-theme="light"] .dg-segmented-bar {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.dg-seg-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary, #94a3b8);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6.5px 10px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: manipulation;
  user-select: none;
}

[data-theme="light"] .dg-seg-tab {
  color: #64748b;
}

.dg-seg-tab:hover {
  color: var(--text-primary, #ffffff);
}

[data-theme="light"] .dg-seg-tab:hover {
  color: #0f172a;
}

.dg-seg-tab.active {
  background: var(--bg-surface-elevated, #1b202c) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--text-primary, #ffffff) !important;
  font-weight: 700 !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28), 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .dg-seg-tab.active {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.04) !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.dg-seg-icon {
  font-size: 11.5px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.dg-seg-text {
  letter-spacing: -0.01em;
}

.dg-seg-count {
  font-family: 'JetBrains Mono', -apple-system, monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 1.5px 5.5px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary, #94a3b8);
  transition: all 0.2s ease;
}

[data-theme="light"] .dg-seg-count {
  background: rgba(0, 0, 0, 0.05);
  color: #64748b;
}

.dg-seg-tab.active .dg-seg-count {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary, #ffffff);
}

[data-theme="light"] .dg-seg-tab.active .dg-seg-count {
  background: rgba(0, 0, 0, 0.08);
  color: #0f172a;
}

.dg-seg-count.dg-count-purple {
  color: #c084fc;
}

[data-theme="light"] .dg-seg-count.dg-count-purple {
  color: #7e22ce;
}

.dg-seg-count.dg-count-gold {
  color: #fbbf24;
}

[data-theme="light"] .dg-seg-count.dg-count-gold {
  color: #d97706;
}

/* ── 4. Cards Grid ────────────────────────────────────── */
.dg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}

@media (min-width: 768px) {
  .dg-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.dg-card {
  position: relative;
  background: var(--bg-surface-elevated, #161a24);
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  cursor: pointer;
}

@media (min-width: 768px) {
  .dg-card {
    border-radius: 20px;
    padding: 14px;
    gap: 10px;
  }
}

[data-theme="light"] .dg-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.07);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

.dg-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 8px 24px -4px rgba(0, 136, 204, 0.25);
}

[data-theme="light"] .dg-card:hover {
  border-color: rgba(0, 136, 204, 0.3);
  box-shadow: 0 8px 24px -4px rgba(0, 136, 204, 0.15);
}

.dg-card-glow {
  position: absolute;
  top: -20%;
  right: -20%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
  filter: blur(24px);
  pointer-events: none;
  z-index: 0;
}

.dg-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  position: relative;
  z-index: 2;
}

.dg-tag-archive {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
}

[data-theme="light"] .dg-tag-archive {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.25);
  color: #7e22ce;
}

.dg-tag-regular {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #22d3ee;
}

[data-theme="light"] .dg-tag-regular {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.25);
  color: #0891b2;
}

.dg-stock-tag {
  font-size: 9.5px;
  font-weight: 600;
  color: #10b981;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.dg-image-wrap {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  margin: 2px 0;
}

@media (min-width: 768px) {
  .dg-image-wrap {
    height: 130px;
    margin: 6px 0;
  }
}

.dg-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.25);
}

.dg-card:hover .dg-image {
  transform: scale(1.08) rotate(2deg);
}

.dg-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  z-index: 2;
}

.dg-card-title {
  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="light"] .dg-card-title {
  color: #0f172a;
}

.dg-card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  margin-top: 1px;
}

.dg-price-primary {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
}

[data-theme="light"] .dg-price-primary {
  color: #0f172a;
}

.dg-price-stars {
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

[data-theme="light"] .dg-price-stars {
  color: #d97706;
}

.dg-buy-btn {
  width: 100%;
  height: 32px;
  border-radius: 9px;
  background: var(--text-primary, #ffffff);
  color: var(--text-inverse, #090a0f);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
  position: relative;
  z-index: 2;
  touch-action: manipulation;
}

@media (min-width: 768px) {
  .dg-buy-btn {
    height: 38px;
    border-radius: 11px;
    font-size: 13px;
  }
}

[data-theme="light"] .dg-buy-btn {
  background: #0f172a;
  color: #ffffff;
}

.dg-buy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.dg-buy-btn:active {
  transform: scale(0.97);
}

/* ── 5. Bento Information FAQ Section ─────────────────── */
.dg-info-box {
  background: var(--bg-surface-elevated, #131722);
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

@media (min-width: 768px) {
  .dg-info-box {
    border-radius: 22px;
    padding: 22px;
    gap: 16px;
  }
}

[data-theme="light"] .dg-info-box {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.dg-info-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dg-info-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="light"] .dg-info-icon-badge {
  background: rgba(0, 136, 204, 0.1);
  border-color: rgba(0, 136, 204, 0.2);
  color: #0284c7;
}

.dg-info-title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
}

[data-theme="light"] .dg-info-title {
  color: #0f172a;
}

.dg-info-sub {
  font-size: 11px;
  color: var(--text-secondary, #94a3b8);
}

[data-theme="light"] .dg-info-sub {
  color: #64748b;
}

.dg-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 768px) {
  .dg-info-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

.dg-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
}

@media (min-width: 768px) {
  .dg-info-item {
    padding: 14px 16px;
  }
}

[data-theme="light"] .dg-info-item {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.05);
}

.dg-info-item-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary, #ffffff);
}

[data-theme="light"] .dg-info-item-head {
  color: #0f172a;
}

.dg-step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.12);
}

[data-theme="light"] .dg-step-num {
  color: #0284c7;
  background: rgba(0, 136, 204, 0.08);
}

.dg-info-item-desc {
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-secondary, #94a3b8);
}

[data-theme="light"] .dg-info-item-desc {
  color: #64748b;
}
