* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: radial-gradient(circle at 20% 30%, #0a0c12 0%, #030507 100%);
  font-family: 'Vazir', 'Vazirmatn', sans-serif;
  font-family: 'Segoe UI', 'Poppins', 'Vazirmatn', system-ui, -apple-system, 'Roboto', sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

/* main container - senior friendly & elegant */
.vault-container {
  max-width: 880px;
  width: 100%;
  background: rgba(12, 15, 22, 0.78);
  backdrop-filter: blur(14px);
  border-radius: 3rem;
  border: 1px solid rgba(210, 180, 140, 0.25);
  box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.vault-header {
  padding: 1.8rem 2rem 1rem 2rem;
  border-bottom: 1px solid rgba(220, 190, 130, 0.3);
  background: rgba(0, 0, 0, 0.3);
}

.title-badge {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #e9dfc7, #c2a15b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 3px rgba(0,0,0,0.2);
}

.sub {
  color: #9e8b6e;
  font-size: 0.85rem;
  font-weight: 400;
  border-left: 2px solid #c2a15b;
  padding-left: 0.7rem;
  letter-spacing: 0.3px;
}

.lang-selector {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.lang-btn {
  background: rgba(25, 30, 40, 0.7);
  border: 1px solid rgba(200, 170, 110, 0.5);
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  color: #d4c6ae;
  backdrop-filter: blur(4px);
  font-family: inherit;
}

.lang-btn.active {
  background: #c2a15b;
  border-color: #f3e3c2;
  color: #0b0b12;
  box-shadow: 0 5px 12px rgba(194, 161, 91, 0.3);
}

.lang-btn:active {
  transform: scale(0.96);
}

.quote-card {
  padding: 2.4rem 2rem;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-text {
  font-size: 1.55rem;
  line-height: 1.55;
  font-weight: 450;
  color: #f2ebdd;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: opacity 0.2s ease;
  word-break: break-word;
  white-space: pre-wrap;
  font-family: 'Vazirmatn', 'Segoe UI', system-ui, sans-serif;
}

.quote-text[dir="rtl"] {
  text-align: right;
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
}

.quote-text[dir="ltr"] {
  text-align: left;
}

.loading-text {
  color: #9e8b6e;
  font-style: italic;
  text-align: center;
  padding: 2rem;
}

.vault-footer {
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem 2rem 1.5rem 2rem;
  border-top: 1px solid rgba(210, 180, 140, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.tag-area {
  display: flex;
  gap: 0.7rem;
}

.beef-tag, .disback-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  background: #1e1a14;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.beef-tag {
  border-left: 4px solid #b5651e;
  color: #e3b87c;
}

.disback-tag {
  border-left: 4px solid #8b5a2b;
  color: #bbaa86;
}

.future-note {
  font-size: 0.7rem;
  color: #827a66;
  background: rgba(0,0,0,0.4);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
}

@media (max-width: 620px) {
  .vault-container {
    border-radius: 2rem;
  }
  .quote-text {
    font-size: 1.25rem;
    line-height: 1.45;
  }
  .quote-card {
    padding: 1.8rem 1.4rem;
  }
  .lang-btn {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }
  h1 {
    font-size: 1.6rem;
  }
}

button {
  touch-action: manipulation;
}

.quote-text {
  transition: all 0.25s;
}