/* ═══════════════════════════════════════════════════
   MYOBITUARYAPP — treasure-vault.css
   Page-specific styles for treasure-vault.blade.php
   Design: Dark Mode Premium — Golden Vault
═══════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --dark-bg:           #0f1117;
  --dark-bg-secondary: #161b22;
  --dark-card:         #1c2128;
  --dark-border:       #30363d;
  --gold:              #d4aa4a;
  --gold-light:        #e8c76e;
  --gold-pale:         #f0dfa8;
  --text-primary:      #e6edf3;
  --text-secondary:    #8b949e;
  --text-muted:        #6e7681;
  --r:                 14px;
  --r-lg:              22px;
  --r-xl:              32px;
  --ease:              cubic-bezier(0.25,0.46,0.45,0.94);
  --shadow-soft:       0 8px 40px rgba(0,0,0,0.4);
  --shadow-deep:       0 20px 60px rgba(0,0,0,0.6);
}

/* ── Base Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: 'Lora', serif; }
a { text-decoration: none; color: inherit; }
img { display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }

/* ══════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════ */
.btn-gold {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--gold); color: #000;
  padding: 14px 30px; border-radius: 50px;
  font-family: 'Inter', sans-serif; font-size: 0.88rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: all 0.3s var(--ease); text-decoration: none;
}
.btn-gold:hover {
  background: var(--gold-light); color: #000;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212,170,74,0.35);
}

.btn-ghost-light {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text-primary);
  padding: 13px 26px; border-radius: 50px;
  font-family: 'Inter', sans-serif; font-size: 0.88rem; font-weight: 500;
  border: 1.5px solid var(--dark-border); cursor: pointer;
  transition: all 0.3s var(--ease); text-decoration: none;
}
.btn-ghost-light:hover {
  background: var(--dark-card);
  border-color: var(--gold); color: var(--gold);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════
   SECTION LABELS & TITLES
══════════════════════════════════════════════════ */
.section-label {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--gold); }

.section-title {
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700; line-height: 1.2;
  color: var(--text-primary); margin-bottom: 12px;
}

.section-sub {
  font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; max-width: 500px;
}

/* ══════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════ */
.tv-hero-new {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark-bg);
  overflow: visible;
  padding-top: 80px;
  padding-bottom: 220px;
}

/* ── Hero Left ── */
.tv-hero-left {
  flex: 0 0 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  z-index: 2;
}

.tv-hero-content { max-width: 600px; width: 100%; }

.tv-hero-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-light);
  margin-bottom: 22px;
}
.tv-hero-label::before { content: ''; width: 28px; height: 1px; background: var(--gold-light); }

.tv-hero-title {
  font-family: 'Lora', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.01em;
  color: #fff; margin-bottom: 16px;
}
.tv-hero-title em { font-style: italic; color: var(--gold-pale); }

.tv-hero-subtitle {
  font-size: 0.95rem; line-height: 1.75;
  color: var(--text-secondary); margin-bottom: 32px;
}

/* ── Hero Feature Icons ── */
.tv-hero-features {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px; margin-bottom: 40px;
}

.tv-hero-feature-item {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 12px;
}

.tv-hero-feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(212,170,74,0.12);
  border: 1px solid rgba(212,170,74,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light); font-size: 1.2rem;
  transition: all 0.3s var(--ease);
}
.tv-hero-feature-item:hover .tv-hero-feature-icon {
  background: var(--gold); color: #000;
  border-color: var(--gold); transform: scale(1.1);
}

.tv-hero-feature-item h5 {
  font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 600;
  color: var(--text-primary); margin-bottom: 2px; line-height: 1.2;
}
.tv-hero-feature-item p {
  font-size: 0.75rem; font-weight: 500;
  color: var(--text-secondary); line-height: 1.4; margin: 0;
}

.tv-hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  position: relative; z-index: 20;
}

/* ── Hero Right ── */
.tv-hero-right {
  flex: 0 0 55%;
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tv-hero-right::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,14,20,0.4) 0%, rgba(22,27,34,0.2) 50%, transparent 100%);
  z-index: 1;
}
.tv-hero-right img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
}

/* ── Feature Overlay Badges (Right Side) ── */
.tv-vault-features-overlay {
  position: absolute; top: 50%; right: 20px;
  transform: translateY(-50%);
  width: 280px; display: flex; flex-direction: column; gap: 16px; z-index: 10;
}

.tv-feature-badge {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(0,0,0,0.5); padding: 12px; border-radius: 10px;
  border: 1px solid rgba(212,170,74,0.2); backdrop-filter: blur(10px);
}

.tv-feature-badge-icon {
  width: 40px; height: 40px; min-width: 40px; border-radius: 8px;
  background: rgba(212,170,74,0.15);
  border: 1px solid rgba(212,170,74,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light); font-size: 1rem;
}

.tv-feature-badge h5 {
  font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 600;
  color: #fff; margin-bottom: 2px; line-height: 1.2;
}
.tv-feature-badge p {
  font-size: 0.7rem; color: rgba(255,255,255,0.6); margin: 0; line-height: 1.3;
}

/* ── Bottom Features Bar ── */
.tv-bottom-features-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 60px 28px;
  background: linear-gradient(180deg, rgba(10,14,20,0) 0%, rgba(10,14,20,0.95) 100%);
  width: 100%; z-index: 15;
}

.tv-bottom-features-container { max-width: 1280px; margin: 0 auto; }

.tv-bottom-features-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 40px; align-items: center;
}

.tv-bottom-feature {
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; text-align: center; gap: 12px;
}

.tv-bottom-feature-icon {
  width: 50px; height: 50px; border-radius: 10px;
  background: rgba(212,170,74,0.15);
  border: 1px solid rgba(212,170,74,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light); font-size: 1.1rem; flex-shrink: 0;
}

.tv-bottom-feature span {
  font-size: 0.8rem; color: rgba(255,255,255,0.7);
  font-weight: 600; line-height: 1.3;
}

/* ══════════════════════════════════════════════════
   VAULT SHOWCASE SECTION
══════════════════════════════════════════════════ */
.tv-vault-showcase {
  position: relative; padding: 80px 0;
  background: linear-gradient(135deg, #0a0e14 0%, #161b22 50%, #1c2128 100%);
  z-index: 4;
}

.tv-vault-showcase-content {
  display: flex; justify-content: center;
  align-items: center; gap: 80px;
}

.tv-vault-showcase-image { flex: 0 0 auto; max-width: 500px; }
.tv-vault-showcase-image img {
  width: 100%; height: auto;
  border-radius: var(--r-lg); box-shadow: var(--shadow-deep);
}

.tv-vault-showcase-text { flex: 0 0 auto; max-width: 500px; }
.tv-vault-showcase-text .section-label { justify-content: flex-start; }

.tv-vault-showcase-text h2 {
  font-family: 'Lora', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700;
  color: var(--text-primary); margin-bottom: 16px; line-height: 1.2;
}
.tv-vault-showcase-text h2 em { font-style: italic; color: var(--gold-pale); }

.tv-vault-showcase-text p {
  font-size: 0.9rem; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 16px;
}

.tv-vault-features-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.tv-vault-features-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6;
}
.tv-vault-features-list li i {
  color: var(--gold); font-size: 0.9rem; margin-top: 3px; flex-shrink: 0;
}
.tv-vault-features-list li strong { color: var(--text-primary); font-weight: 600; }

/* ══════════════════════════════════════════════════
   FILES SECTION
══════════════════════════════════════════════════ */
.tv-files-section {
  padding: 100px 0; background: var(--dark-bg);
  border-top: 1px solid var(--dark-border);
}

.tv-files-header { text-align: center; margin-bottom: 56px; }
.tv-files-header .section-label { justify-content: center; }

.tv-files-header h2 {
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 700;
  color: var(--text-primary); margin-bottom: 12px; line-height: 1.2;
}
.tv-files-header h2 em { font-style: italic; color: var(--gold-pale); }

.tv-files-header p {
  font-size: 0.9rem; color: var(--text-secondary);
  max-width: 500px; margin: 16px auto 0; line-height: 1.7;
}

.tv-files-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-top: 56px;
}

.tv-file-card {
  background: var(--dark-card); border: 1px solid var(--dark-border);
  border-radius: var(--r-lg); padding: 32px 24px; text-align: center;
  transition: all 0.35s var(--ease);
}
.tv-file-card:hover {
  transform: translateY(-8px); box-shadow: var(--shadow-deep);
  border-color: var(--gold); background: #202730;
}
.tv-file-card i { font-size: 1.8rem; color: var(--gold); margin-bottom: 12px; display: block; }
.tv-file-card span {
  font-family: 'Inter', sans-serif; font-size: 0.85rem;
  font-weight: 600; color: var(--text-primary); display: block;
}

/* ══════════════════════════════════════════════════
   SECURITY SECTION
══════════════════════════════════════════════════ */
.tv-security-section {
  padding: 100px 0; background: var(--dark-bg-secondary);
  border-top: 1px solid var(--dark-border);
}

.tv-security-content {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center;
}

.tv-security-text .section-label { justify-content: flex-start; }

.tv-security-text h2 {
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 3vw, 2.4rem); font-weight: 700;
  color: var(--text-primary); margin-bottom: 16px; line-height: 1.2;
}
.tv-security-text h2 em { font-style: italic; color: var(--gold-pale); }

.tv-security-text p {
  font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px;
}

.tv-security-checklist {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.tv-security-checklist li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6;
}
.tv-security-checklist li i { color: var(--gold); font-size: 0.9rem; margin-top: 3px; flex-shrink: 0; }
.tv-security-checklist li strong { color: var(--text-primary); font-weight: 600; }

.tv-security-card {
  background: rgba(212,170,74,0.05);
  border: 1px solid rgba(212,170,74,0.2);
  border-radius: var(--r-lg); padding: 40px; text-align: center;
}
.tv-security-card i { font-size: 3rem; color: var(--gold); margin-bottom: 16px; display: block; }
.tv-security-card h3 {
  font-family: 'Lora', serif; font-size: 1.3rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 10px;
}
.tv-security-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin: 0; }

.tv-security-badges {
  display: flex; justify-content: center; gap: 10px; margin-top: 16px; flex-wrap: wrap;
}
.tv-security-badge {
  padding: 6px 14px; background: rgba(212,170,74,0.1); border-radius: 50px;
  font-size: 0.7rem; color: var(--gold-light); font-weight: 600; letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════════════
   FAMILY SHARING SECTION
══════════════════════════════════════════════════ */
.tv-sharing-section {
  padding: 100px 0; background: var(--dark-bg);
  border-top: 1px solid var(--dark-border);
}

.tv-sharing-content {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center;
}

.tv-sharing-image { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-deep); }
.tv-sharing-image img { width: 100%; height: auto; display: block; }

.tv-sharing-text .section-label { justify-content: flex-start; }

.tv-sharing-text h2 {
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 3vw, 2.4rem); font-weight: 700;
  color: var(--text-primary); margin-bottom: 16px; line-height: 1.2;
}
.tv-sharing-text h2 em { font-style: italic; color: var(--gold-pale); }

.tv-sharing-text p {
  font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px;
}

.tv-sharing-features {
  list-style: none; padding: 0; margin: 0 0 24px 0;
  display: flex; flex-direction: column; gap: 14px;
}
.tv-sharing-features li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6;
}
.tv-sharing-features li i { color: var(--gold); font-size: 0.9rem; margin-top: 3px; flex-shrink: 0; }
.tv-sharing-features li strong { color: var(--text-primary); font-weight: 600; }

/* ══════════════════════════════════════════════════
   FINAL CTA SECTION
══════════════════════════════════════════════════ */
.tv-cta-section {
  position: relative; padding: 100px 0; overflow: hidden;
  background: linear-gradient(135deg, #0a0e14 0%, #161b22 50%, #1c2128 100%);
  border-top: 1px solid var(--dark-border);
}

.tv-cta-bg { position: absolute; inset: 0; z-index: 0; }
.tv-cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }

.tv-cta-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,14,20,0.6) 0%, rgba(22,27,34,0.6) 100%);
}

.tv-cta-inner { position: relative; z-index: 2; text-align: center; }

.tv-cta-title {
  font-family: 'Lora', serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700;
  color: #fff; margin-bottom: 16px; line-height: 1.15;
}
.tv-cta-title em { font-style: italic; color: var(--gold-pale); }

.tv-cta-sub {
  font-size: 0.92rem; color: var(--text-secondary);
  max-width: 460px; margin: 16px auto 40px; line-height: 1.7;
}

.tv-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════ */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tv-hero-label    { animation: slideInLeft  0.7s var(--ease) 0.05s both; }
.tv-hero-title    { animation: slideInLeft  0.7s var(--ease) 0.15s both; }
.tv-hero-subtitle { animation: slideInLeft  0.7s var(--ease) 0.25s both; }
.tv-hero-features { animation: slideInLeft  0.7s var(--ease) 0.35s both; }
.tv-hero-actions  { animation: slideInLeft  0.7s var(--ease) 0.45s both; }
.tv-hero-right             { animation: slideInRight 0.8s var(--ease) 0.20s both; }
.tv-vault-features-overlay { animation: slideInRight 0.8s var(--ease) 0.30s both; }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .tv-vault-showcase-content { gap: 40px; }
  .tv-security-content       { gap: 40px; }
  .tv-sharing-content        { gap: 40px; }
  .tv-bottom-features-grid   { gap: 30px; }
}

@media (max-width: 991px) {
  .tv-hero-new { min-height: auto; flex-direction: column; padding-bottom: 200px; }
  .tv-hero-left { flex: 1; padding: 60px 40px; }
  .tv-hero-right { flex: 1; min-height: 400px; }
  .tv-vault-features-overlay {
    position: static; transform: none; width: 100%;
    flex-direction: row; flex-wrap: wrap; margin-top: 20px;
  }
  .tv-feature-badge { flex: 1; min-width: 150px; }
  .tv-files-grid           { grid-template-columns: repeat(3, 1fr); }
  .tv-vault-showcase-content { flex-direction: column; gap: 40px; }
  .tv-security-content     { grid-template-columns: 1fr; }
  .tv-sharing-content      { grid-template-columns: 1fr; }
  .tv-bottom-features-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
  .tv-hero-new   { padding-top: 130px; padding-bottom: 180px; }
  .tv-hero-left  { padding: 40px 28px; }
  .tv-hero-features { grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
  .tv-files-grid { grid-template-columns: repeat(2, 1fr); }
  .tv-bottom-features-bar  { padding: 40px 28px; }
  .tv-bottom-features-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .tv-files-section,
  .tv-security-section,
  .tv-sharing-section,
  .tv-cta-section { padding: 70px 0; }
}

@media (max-width: 480px) {
  .tv-hero-title { font-size: 2rem; }
  .tv-hero-actions { flex-direction: column; }
  .tv-hero-actions a { width: 100%; justify-content: center; }
  .tv-files-grid { grid-template-columns: 1fr; }
  .tv-bottom-features-grid   { grid-template-columns: 1fr 1fr; }
  .tv-vault-features-overlay { display: none; }
  .tv-hero-features { grid-template-columns: 1fr; }
}