/* Kişisel arşiv sayfası: astroloji.css'in üzerine. */

.page { padding-top: 24px; }
section.card, .tab-panel { padding-top: 0; }
.tab-panel { display: grid; gap: 14px; margin-top: 14px; }
.tab-panel[hidden] { display: none; }

/* --- Hesap başlığı --- */
.account { display: grid; grid-template-columns: 84px 1fr auto; gap: 18px; align-items: center; margin-top: 24px; padding: 20px; }
.avatar { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; color: #070914; background: radial-gradient(circle at 35% 30%, #fff1c9, var(--gold) 55%, #b9822f); font-family: var(--serif); font-size: 2.4rem; font-weight: 700; box-shadow: 0 0 30px rgba(243, 194, 107, 0.35); }
.account h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.1; }
.account-meta { color: var(--muted); font-size: 0.9rem; }
.balance-chip { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding: 12px 18px; border: 1px solid var(--card-border); border-radius: 18px; color: var(--muted); background: rgba(243, 194, 107, 0.06); font: inherit; font-size: 0.78rem; cursor: pointer; }
.balance-chip b { color: var(--gold); font-family: var(--serif); font-size: 2rem; line-height: 1; }

/* --- Sekmeler --- */
.tabs { position: sticky; top: calc(var(--ust, 64px) + 6px); z-index: 5; display: flex; gap: 6px; margin-top: 14px; padding: 6px; overflow-x: auto; border: 1px solid var(--card-border); border-radius: 999px; background: rgba(7, 9, 20, 0.85); backdrop-filter: blur(10px); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1 0 auto; padding: 10px 16px; border: 0; border-radius: 999px; color: var(--foreground); background: none; font: inherit; font-weight: 700; white-space: nowrap; cursor: pointer; }
.tabs button[aria-selected="true"] { color: #070914; background: var(--gold); }

/* --- Formlar --- */
.card h2 { font-size: 1.6rem; margin-bottom: 4px; }
.profile-form .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.profile-form .wide { grid-column: 1 / -1; }
.profile-form label, .profile-form .field, .password-form label { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 0.9rem; font-weight: 700; }
.profile-form small, .password-form small { color: var(--muted); font-weight: 500; }
.profile-form input, .profile-form select, .password-form input[type="password"], .password-form input[type="text"] {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-weight: 500;
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
}
.profile-form select option { color: #111; }
.profile-form input:focus, .profile-form select:focus, .password-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(243, 194, 107, 0.15); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { padding: 8px 14px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; color: var(--foreground); background: rgba(255, 255, 255, 0.04); font: inherit; font-size: 0.86rem; cursor: pointer; }
.chips button[aria-pressed="true"] { border-color: var(--gold); background: rgba(243, 194, 107, 0.2); }
.form-actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.saved { color: #8ff0b8; font-weight: 800; animation: rise 0.3s ease both; }
.password-form { display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.password-form label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; cursor: pointer; }
.logout-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

/* --- Kontör --- */
.wallet { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; background: radial-gradient(circle at 10% 20%, rgba(243, 194, 107, 0.16), transparent 60%), var(--card); }
.wallet-balance { display: flex; align-items: center; gap: 16px; }
.wallet-balance .coin { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff1c9, #d9a650 50%, #8a5d22); font-size: 2.2rem; box-shadow: 0 0 30px rgba(243, 194, 107, 0.4); animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-5px) rotate(-6deg); } }
.wallet-balance b { display: block; color: var(--gold); font-family: var(--serif); font-size: 3.2rem; line-height: 1; font-variant-numeric: lining-nums; }
.wallet-load { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.wallet-load .section-note { flex-basis: 100%; }
.badge.soon { color: #070914; background: var(--gold); }
.table-wrap { overflow-x: auto; margin-top: 10px; }
.moves { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.moves th, .moves td { padding: 10px 8px; border-bottom: 1px dashed rgba(255, 255, 255, 0.08); text-align: left; white-space: nowrap; }
.moves th { color: var(--muted); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; }
.moves td:nth-child(2) { white-space: normal; }
.moves .num { text-align: right; font-variant-numeric: tabular-nums; }
.moves .arti { color: #8ff0b8; font-weight: 800; }
.moves .eksi { color: #ffb4b4; font-weight: 800; }
.empty { margin-top: 10px; color: var(--muted); }
.orders li.empty { display: block; margin: 0; border: 0; background: none; padding: 4px 0; }

/* --- Analizler --- */
.panel-head { margin-bottom: 10px; }
.orders, .analyses { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.orders li, .analyses li a { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; color: var(--foreground); background: rgba(255, 255, 255, 0.02); text-decoration: none; transition: border-color 0.2s, background 0.2s; }
.analyses li a:hover, .orders li:hover { border-color: rgba(243, 194, 107, 0.45); background: rgba(243, 194, 107, 0.05); }
.orders img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.analyses .ikon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); font-size: 1.3rem; }
.orders b, .analyses b { display: block; font-size: 0.96rem; }
.orders small, .analyses small { color: var(--muted); font-size: 0.8rem; }
.status { padding: 4px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 800; white-space: nowrap; }
.status.sirada { color: #f6dca0; background: rgba(243, 194, 107, 0.14); }
.status.inceleniyor { color: #b9d4ff; background: rgba(120, 160, 255, 0.16); }
.status.hazir { color: #070914; background: #8ff0b8; }
.go { color: var(--gold); font-size: 0.86rem; font-weight: 800; white-space: nowrap; }
.filter { margin-bottom: 12px; }
.more { display: block; margin: 12px auto 0; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 680px) {
  .account { grid-template-columns: 64px 1fr; padding: 16px; }
  .avatar { width: 64px; height: 64px; font-size: 1.8rem; }
  .balance-chip { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .tabs { border-radius: 18px; }
  .profile-form .grid { grid-template-columns: 1fr; }
  .wallet { grid-template-columns: 1fr; }
  .orders li, .analyses li a { grid-template-columns: 40px 1fr; }
  .orders li > :last-child, .analyses li a > :last-child { grid-column: 2; justify-self: start; }
}

/* Kontör paketleri ve kupon */
.packs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.pack { position: relative; display: grid; justify-items: center; gap: 2px; padding: 18px 10px 14px; border: 1px solid rgba(243, 194, 107, 0.35); border-radius: 18px; color: var(--foreground); background: radial-gradient(circle at 50% 0%, rgba(243, 194, 107, 0.16), transparent 70%), rgba(0, 0, 0, 0.25); font: inherit; cursor: pointer; transition: transform 0.15s, border-color 0.15s; }
.pack:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--gold); }
.pack:disabled { cursor: default; opacity: 0.75; }
.pack-pop { border-color: var(--gold); }
.pack-pop::before { content: "En çok tercih edilen"; position: absolute; top: -10px; padding: 2px 10px; border-radius: 999px; color: #070914; background: var(--gold); font-size: 0.68rem; font-weight: 800; white-space: nowrap; }
.pack-coin { font-size: 1.6rem; }
.pack b { color: var(--gold); font-family: var(--serif); font-size: 2.2rem; line-height: 1; }
.pack small { color: var(--muted); font-size: 0.78rem; }
.pack-price { margin-top: 8px; padding: 4px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-weight: 800; }
.pay-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; line-height: 1.5; }
.pay-consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); }
.pay-consent a, .wallet-load a { color: var(--gold); }
.pay-secure { margin: 8px 0 0; color: var(--muted); font-size: 0.8rem; }
.pay-banner { padding: 10px 14px; border-radius: 12px; font-weight: 700; }
.pay-banner.ok { color: #8fe3a5; background: rgba(143, 227, 165, 0.1); border: 1px solid rgba(143, 227, 165, 0.4); }
.pay-banner.bad { color: #ffb4a0; background: rgba(255, 140, 110, 0.08); border: 1px solid rgba(255, 140, 110, 0.4); }
.coupon { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.coupon input { flex: 1 1 220px; min-width: 0; padding: 12px 14px; border: 1px solid var(--card-border); border-radius: 12px; color: #fff; background: rgba(0, 0, 0, 0.35); font: 1.05rem ui-monospace, Menlo, monospace; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 600px) { .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; } }

/* Hediye kupon */
.gift-designs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 12px; }
.gift-design { display: grid; gap: 6px; padding: 6px; border: 2px solid transparent; border-radius: 14px; color: var(--foreground); background: rgba(0, 0, 0, 0.25); font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.gift-design img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 9px; }
.gift-design[aria-checked="true"] { border-color: var(--gold); box-shadow: 0 0 18px rgba(243, 194, 107, 0.3); }
.gift-preview { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 16px; border: 1px solid rgba(243, 194, 107, 0.35); background: #0b0d1c; }
.gift-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; align-items: end; }
.gift-form label { display: grid; gap: 5px; font-size: 0.86rem; font-weight: 700; }
.gift-form .genis { grid-column: 1 / -1; }
.gift-form input:not([type="checkbox"]), .gift-form select { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid var(--card-border); border-radius: 12px; color: #fff; background: rgba(0, 0, 0, 0.35); font: inherit; }
.gift-form select option { color: #000; }
.gift-form .pay-consent { display: flex; font-weight: 500; }
.gift-sent h3 { margin: 22px 0 8px; }
.gift-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gift-list li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; background: rgba(0, 0, 0, 0.2); }
.gift-meta { color: var(--muted); font-size: 0.8rem; }
.gift-state { max-width: 260px; text-align: right; font-size: 0.82rem; font-weight: 700; color: #f3d58a; }
.gift-state.kullanildi { color: #8fe3a5; }
.gift-state.devredildi { color: var(--muted); }
@media (max-width: 700px) { .gift-form { grid-template-columns: 1fr; } .gift-designs { gap: 6px; } .gift-list li { grid-template-columns: 1fr; } .gift-state { max-width: none; text-align: left; } }
.gift-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0 14px; }
.gift-stat { display: grid; justify-items: center; padding: 10px 6px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; background: rgba(0, 0, 0, 0.22); }
.gift-stat b { color: var(--gold); font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; font-variant-numeric: lining-nums; }
.gift-stat span { color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.gift-stat.aktif b { color: #f3d58a; }
.gift-stat.kullanildi b { color: #8fe3a5; }
.gift-list li > div { display: grid; gap: 2px; }
.gift-code { color: var(--muted); font: 0.78rem ui-monospace, Menlo, monospace; letter-spacing: 0.06em; }
@media (max-width: 600px) { .gift-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
