  :root {
      --gold: #c9a96e;
      --gold-light: #e8d5b0;
      --gold-dark: #a07840;
      --cream: #fdf6ec;
      --cream-dark: #f5e8d0;
      --text-dark: #4a3728;
      --text-mid: #7a5c45;
      --text-light: #a08060;
  }

  * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
  }

  body {
      background: var(--cream);
      font-family: 'Lato', sans-serif;
      color: var(--text-dark);
      min-height: 100vh;
      overflow-x: hidden;
  }

  /* ---------- ZARF EKRANI ---------- */
  #envelope-screen {
      position: fixed;
      inset: 0;
      z-index: 100;
      background: linear-gradient(135deg, #f9f0e1 0%, #ecdfc8 100%);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      transition: opacity 0.8s ease, visibility 0.8s ease;
  }

  #envelope-screen.hidden {
      opacity: 0;
      visibility: hidden;
  }

  .envelope-wrap {
      position: relative;
      width: min(320px, 88vw);
      animation: float 3s ease-in-out infinite;
  }

  @keyframes float {

      0%,
      100% {
          transform: translateY(0);
      }

      50% {
          transform: translateY(-10px);
      }
  }

  .envelope-wrap.opening {
      animation: none;
  }

  /* Zarf gövdesi */
  .env-body {
      width: 100%;
      padding-top: 60%;
      /* 5:3 oran */
      background: var(--cream-dark);
      border-radius: 4px 4px 12px 12px;
      border: 1.5px solid var(--gold);
      position: relative;
      box-shadow: 0 8px 40px rgba(160, 120, 64, 0.18);
      overflow: hidden;
  }

  /* Alt köşe üçgenleri */
  .env-body::before,
  .env-body::after {
      content: '';
      position: absolute;
      bottom: 0;
      border-style: solid;
  }

  .env-body::before {
      left: 0;
      border-width: 0 0 60px 80px;
      /* sol üçgen (yaklaşık) */
      border-color: transparent transparent var(--gold-light) transparent;
  }

  .env-body::after {
      right: 0;
      border-width: 0 80px 60px 0;
      border-color: transparent var(--gold-light) transparent transparent;
  }

  /* Üst kapak (flap) */
  .env-flap {
      position: absolute;
      top: 0;
      left: -1px;
      width: calc(100% + 2px);
      height: 55%;
      background: var(--cream-dark);
      border: 1.5px solid var(--gold);
      border-bottom: none;
      clip-path: polygon(0 0, 100% 0, 50% 100%);
      transform-origin: top center;
      transform: rotateX(0deg);
      transition: transform 0.7s cubic-bezier(.4, 0, .2, 1);
      z-index: 2;
  }

  .env-flap.open {
      transform: rotateX(-180deg);
  }

  /* Mühür */
  .env-seal {
      position: absolute;
      top: 42%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 44px;
      height: 44px;
      background: var(--gold);
      border-radius: 50%;
      border: 2px solid var(--gold-dark);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 3;
      font-family: 'Great Vibes', cursive;
      color: white;
      font-size: 18px;
      transition: transform 0.4s ease, opacity 0.4s ease;
  }

  .env-seal.hide {
      transform: translate(-50%, -50%) scale(0);
      opacity: 0;
  }

  /* Zarftan çıkan kart */
  .env-card-out {
      position: absolute;
      bottom: 10%;
      left: 50%;
      transform: translateX(-50%) translateY(20px);
      width: 82%;
      background: white;
      border-radius: 6px;
      border: 1px solid var(--gold-light);
      padding: 10px;
      text-align: center;
      z-index: 1;
      opacity: 0;
      transition: transform 0.7s 0.5s cubic-bezier(.2, 1, .3, 1), opacity 0.5s 0.5s;
  }

  .env-card-out.out {
      transform: translateX(-50%) translateY(-60px);
      opacity: 1;
  }

  .env-card-out p {
      font-family: 'Great Vibes', cursive;
      color: var(--gold-dark);
      font-size: 15px;
      line-height: 1.3;
  }

  /* Açılış butonu */
  .open-btn {
      margin-top: 32px;
      padding: 12px 36px;
      background: transparent;
      border: 1.5px solid var(--gold);
      border-radius: 50px;
      color: var(--gold-dark);
      font-family: 'Lato', sans-serif;
      font-size: 14px;
      letter-spacing: 2px;
      text-transform: uppercase;
      cursor: pointer;
      transition: background 0.3s, color 0.3s, transform 0.2s;
  }

  .open-btn:hover {
      background: var(--gold);
      color: white;
      transform: scale(1.04);
  }

  .open-btn:active {
      transform: scale(0.97);
  }

  /* ---------- DAVETİYE İÇERİĞİ ---------- */
  #invitation {
      opacity: 0;
      transition: opacity 1s ease;
      pointer-events: none;
  }

  #invitation.visible {
      opacity: 1;
      pointer-events: auto;
  }

  .divider {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 20px auto;
      max-width: 260px;
  }

  .divider::before,
  .divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--gold-light);
  }

  .divider span {
      color: var(--gold);
      font-size: 14px;
  }

  .section-card {
      background: white;
      border: 1px solid var(--gold-light);
      border-radius: 16px;
      padding: 28px 24px;
      margin: 0 auto 24px;
      max-width: 600px;
      box-shadow: 0 2px 20px rgba(160, 120, 64, 0.07);
  }

  /* Fotoğraf alanı */
  .photo-area {
      width: 100%;
      padding-top: 66%;
      background: linear-gradient(135deg, var(--cream-dark) 0%, #e8d5b0 100%);
      border-radius: 12px;
      border: 1.5px dashed var(--gold);
      position: relative;
      overflow: hidden;
  }

  .photo-area-inner {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
  }

  .photo-area-inner svg {
      color: var(--gold);
      opacity: 0.5;
  }

  .photo-area-inner p {
      color: var(--text-light);
      font-size: 13px;
      text-align: center;
      padding: 0 16px;
  }

  /* Countdown */
  .countdown-box {
      background: linear-gradient(135deg, var(--cream-dark), #f0e0c0);
      border: 1px solid var(--gold-light);
      border-radius: 12px;
      padding: 15px 5px; /* Padding'i biraz kıstık */
      display: flex;
      justify-content: center;
      gap: 2px; /* Gap'i küçülttük */
      flex-wrap: nowrap; /* BU ÇOK ÖNEMLİ: Aşağı satıra geçmeyi engeller */
      width: 100%;
      overflow: hidden;
  }

  .countdown-unit {
      display: flex;
      flex-direction: column;
      align-items: center;
      flex: 1; /* Birimlerin birbirine eşit yer kaplamasını sağlar */
      min-width: 0; /* Küçülmeye izin verir */
  }

  .countdown-sep {
      font-family: 'Playfair Display', serif;
      font-size: 20px; /* Ayırıcıyı biraz küçülttük */
      color: var(--gold-light);
      align-self: center;
      margin-bottom: 12px;
  }

  .countdown-num {
      font-family: 'Playfair Display', serif;
      font-size: clamp(20px, 6vw, 32px); /* Font boyutunu biraz kıstık */
      font-weight: 600;
      color: var(--gold-dark);
      line-height: 1;
  }
  
  .countdown-label {
      font-size: 9px; /* Etiket boyutunu ufak kıstık */
      letter-spacing: 0.5px;
      text-transform: uppercase;
      color: var(--text-light);
      margin-top: 4px;
  }

  /* Form */
  .form-input,
  .form-select,
  .form-textarea {
      width: 100%;
      padding: 12px 16px;
      border: 1.5px solid var(--gold-light);
      border-radius: 10px;
      background: var(--cream);
      color: var(--text-dark);
      font-family: 'Lato', sans-serif;
      font-size: 14px;
      outline: none;
      transition: border-color 0.3s;
      appearance: none;
  }

  .form-input:focus,
  .form-select:focus,
  .form-textarea:focus {
      border-color: var(--gold);
  }

  .form-textarea {
      resize: vertical;
      min-height: 90px;
  }

  .radio-group {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
  }

  .radio-label {
    flex: 1;
    min-width: 110px; /* 130px değerini 110px'e çektik */
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 8px; /* Padding'i biraz daralttık */
    border: 1.5px solid var(--gold-light);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
    background: var(--cream);
    white-space: nowrap; /* Yazının alt satıra geçmesini engeller */
    font-size: 13px;     /* Yazı boyutu uzun metinler için biraz ideal */
    }

  .radio-label input {
      display: none;
  }

  .radio-label.selected {
      border-color: var(--gold);
      background: var(--cream-dark);
  }

  .radio-label .dot {
      width: 16px;
      height: 16px;
      border: 1.5px solid var(--gold);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: background 0.3s;
  }

  .radio-label.selected .dot::after {
      content: '';
      width: 8px;
      height: 8px;
      background: var(--gold);
      border-radius: 50%;
      display: block;
  }

  .submit-btn {
      width: 100%;
      padding: 14px;
      background: var(--gold);
      border: none;
      border-radius: 50px;
      color: white;
      font-family: 'Lato', sans-serif;
      font-size: 14px;
      letter-spacing: 2px;
      text-transform: uppercase;
      cursor: pointer;
      transition: background 0.3s, transform 0.2s;
  }

  .submit-btn:hover {
      background: var(--gold-dark);
  }

  .submit-btn:active {
      transform: scale(0.98);
  }

  .location-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 12px 28px;
      border: 1.5px solid var(--gold);
      border-radius: 50px;
      color: var(--gold-dark);
      text-decoration: none;
      font-size: 13px;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      transition: background 0.3s, color 0.3s;
      font-family: 'Lato', sans-serif;
  }

  .location-btn:hover {
      background: var(--gold);
      color: white;
  }

  .success-msg {
      display: none;
      text-align: center;
      padding: 20px;
      background: #f0f9f0;
      border-radius: 12px;
      border: 1px solid #a8d5a2;
      color: #4a7c47;
  }

  .success-msg.show {
      display: block;
  }

  /* Dekoratif köşe */
  .corner-deco {
      position: absolute;
      width: 60px;
      height: 60px;
      opacity: 0.3;
  }

    /* Sayaç Grubu */
    .counter-group {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        padding: 10px;
        background: var(--cream);
        border: 1.5px solid var(--gold-light);
        border-radius: 10px;
    }

    .counter-btn {
        width: 40px;
        height: 40px;
        background: var(--gold-light);
        border: none;
        border-radius: 50%;
        color: var(--gold-dark);
        font-size: 20px;
        font-weight: bold;
        cursor: pointer;
        transition: background 0.3s, color 0.3s;
    }

    .counter-btn:hover {
        background: var(--gold);
        color: white;
    }

    .counter-num {
        font-size: 18px;
        font-weight: bold;
        color: var(--text-dark);
        min-width: 30px;
        text-align: center;
    }

    /* Yükleme Alanı */
.upload-zone {
    border: 2px dashed var(--gold);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    background: var(--cream-dark);
    transition: background 0.3s;
}

.upload-zone:hover {
    background: #f0e6d2;
}

.upload-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

/* Temel Tab Butonu */
.tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 50px;
    font-size: 10px;
    font-weight: bold;
    background: transparent;
    color: #999; /* Pasifken gri */
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Aktif olduğunda alacağı stil */
.tab-btn.active {
    background: white !important; /* Beyaz kutu */
    color: #b8860b !important;    /* Yazı rengi (gold tonu) */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    opacity: 1 !important;
}

/* Görünürlük yönetimi */
.hidden { display: none !important; }

/* Memory kutusunu düzelt */
.memory-upload-box { 
    height: 250px; 
    border: 2px dashed var(--gold-light); 
    border-radius: 20px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    background: #fdfaf6; 
    position: relative;
    margin-bottom: 15px;
}

/* Ses butonu stili */
.rec-btn { 
    background: #e11d48; 
    color: white; 
    padding: 12px 30px; 
    border-radius: 50px; 
    border: none; 
    font-size: 12px; 
    font-weight: bold; 
    cursor: pointer;
}

/* Butonun LCV butonu ile aynı olması için */
.submit-btn {
    text-transform: uppercase;
    transition: background 0.3s;
}
.submit-btn:hover { background: var(--gold); }

/* Mevcut diğer CSS kodların burada kalmaya devam edecek... */