/* Modal Styles - Modal ve değişiklik geçmişi */

.changes-intro {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.changes-section {
  margin-bottom: 1rem;
}

.changes-section:last-child {
  margin-bottom: 0;
}

.changes-section h4 {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.change-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
}

.change-item:last-child {
  box-shadow: none;
}

.change-item-excluded-text {
  word-break: break-word;
  white-space: pre-wrap;
  min-width: 0;
}

.change-item .undo-btn {
  flex-shrink: 0;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
}

.modal-box-changes {
  max-width: 56rem;
  width: 95%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-box-changes .modal-body {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.changes-activity-list {
  max-height: 14rem;
  overflow-y: auto;
  border: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.35rem;
  background: var(--surface);
}

.change-activity-item {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.3rem 0.25rem;
  font-size: 0.8rem;
}

.change-activity-type {
  color: var(--accent);
  font-weight: 500;
  flex-shrink: 0;
}

.change-activity-msg {
  word-break: break-word;
  min-width: 0;
  color: var(--text);
}

.change-activity-time {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Overlay kilidi — genel kimlik ile uyumlu (modal-overlay ile birlikte kullanılır) */
.fullscreen-lock {
  position: fixed;
  inset: 0;
  background: var(--modal-overlay-bg);
  backdrop-filter: var(--modal-overlay-blur);
  -webkit-backdrop-filter: var(--modal-overlay-blur);
  z-index: var(--modal-z);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* E-posta doğrulama — modal-box kimliği (glass) */
.verify-modal {
  background: var(--modal-glass-bg);
  border: 1px solid var(--modal-border-glass);
  padding: 2rem 1.75rem;
  border-radius: var(--modal-radius-xl);
  max-width: 420px;
  width: min(420px, calc(100vw - 2rem));
  text-align: center;
  box-shadow: var(--modal-shadow);
  animation: modalSlideIn 0.22s var(--ease) forwards;
}

.verify-modal h2,
.modal-verify-header .modal-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* Doğrulama modalı — genel kimlik (modal-box--glass ile) */
.modal-verify-box {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.modal-verify-header {
  text-align: center;
  border: 0;
  padding: 0 0 var(--space-lg);
  margin-bottom: 0;
  box-shadow: none;
}
.modal-verify-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.15), rgba(var(--accent-rgb), 0.08));
  color: var(--accent);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}
.modal-verify-icon .material-symbols-rounded {
  font-size: 2.8rem;
  filter: drop-shadow(0 0 10px var(--accent));
}
.modal-verify-header .modal-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.modal-verify-header .modal-message {
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-secondary);
}
.modal-verify-body {
  padding: 0;
  width: 100%;
}
.modal-verify-input-wrap {
  margin-bottom: var(--space-xl);
  position: relative;
}
.modal-verify-input {
  text-align: center;
  font-size: 2rem;
  letter-spacing: 0.6rem;
  height: 4rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: var(--modal-radius-xl);
  color: var(--accent);
  font-weight: 700;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
  width: 100%;
}
.modal-verify-input-accent {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: var(--radius-full);
  box-shadow: 0 0 15px var(--accent);
}
.modal-verify-error {
  color: var(--error);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(239, 68, 68, 0.1);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
}
.modal-verify-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.modal-verify-actions .btn-block {
  width: 100%;
  height: 3.25rem;
  font-weight: 600;
  border-radius: var(--modal-radius-xl);
}
.modal-verify-footer {
  justify-content: center;
  border: 0;
  padding: 0;
  margin-top: var(--space-xl);
  box-shadow: none;
}
.modal-verify-logout {
  text-decoration: none;
  color: var(--text-muted);
  font-size: var(--text-xs);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  opacity: 0.8;
  transition: color 0.2s var(--ease);
  font-weight: 600;
}
.modal-verify-logout:hover {
  color: var(--text-primary);
}
.modal-verify-logout .material-symbols-rounded {
  font-size: 1.1rem;
}


.verify-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.verify-input-group input {
  width: 100%;
  text-align: center;
  font-size: 1.8rem;
  letter-spacing: 0.6rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  outline: none;
  font-family: inherit;
  font-weight: 600;
  margin-bottom: 1rem;
  transition: border-color 0.15s var(--ease);
}

.verify-input-group input:focus {
  border-color: var(--accent);
}

.verify-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  min-height: 1.2rem;
  font-weight: 500;
}

.verify-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.verify-footer {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: 0.85rem;
}

.verify-logout-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.verify-logout-link:hover {
  color: var(--text);
}

/* Mağaza modalı — genel kimlik (overlay + kutu) */
.store-modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--modal-overlay-bg);
  backdrop-filter: var(--modal-overlay-blur);
  -webkit-backdrop-filter: var(--modal-overlay-blur);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s var(--ease);
}

.store-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.store-modal {
  background: var(--surface);
  border: 1px solid var(--modal-border);
  border-radius: var(--modal-radius);
  width: 90%;
  max-width: 720px;
  max-height: 88vh;
  box-shadow: var(--modal-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.store-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border, #222);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.store-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text, #e5e5e5);
  display: flex;
  align-items: center;
  gap: 8px;
}

.store-title svg {
  color: var(--accent, #14b8a6);
}

.store-close {
  background: transparent;
  border: none;
  color: var(--muted, #8a97ab);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm, 6px);
  transition: color 0.15s var(--ease);
}

.store-close:hover {
  color: var(--text, #e5e5e5);
}

.store-tabs {
  display: flex;
  gap: 0;
  border-bottom: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
  background: var(--surface, #0a0a0a);
  flex-shrink: 0;
}

.store-tab {
  padding: 10px 20px;
  color: var(--muted, #8a97ab);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.15s var(--ease);
  letter-spacing: 0.02em;
}

.store-tab.active {
  color: var(--accent, #14b8a6);
  border-bottom-color: var(--accent, #14b8a6);
}

.store-tab:hover:not(.active) {
  color: var(--text, #e5e5e5);
}

.store-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.store-body::-webkit-scrollbar {
  width: 4px;
}

.store-body::-webkit-scrollbar-thumb {
  background: var(--border, #222);
  border-radius: 2px;
}

.store-pane {
  display: none;
}

.store-pane.active {
  display: block;
}

.store-section-desc {
  font-size: 0.8125rem;
  color: var(--muted, #8a97ab);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Kredi Paketleri */
.credit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.credit-card {
  background: var(--surface, #0a0a0a);
  border: 1px solid var(--border, #222);
  border-radius: var(--radius-md, 10px);
  padding: 16px;
  text-align: center;
  transition: border-color 0.15s var(--ease);
}

.credit-card:hover {
  border-color: var(--accent, #14b8a6);
}

.credit-icon {
  margin-bottom: 10px;
  display: inline-block;
  color: var(--accent, #14b8a6);
}

.credit-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text, #e5e5e5);
  margin-bottom: 2px;
}

.credit-price {
  font-size: 0.8125rem;
  color: var(--muted, #8a97ab);
  font-weight: 500;
  margin-bottom: 14px;
}

.credit-button {
  background: transparent;
  color: var(--accent, #14b8a6);
  border: 1px solid var(--border-active, #333);
  padding: 7px 14px;
  border-radius: var(--radius-sm, 6px);
  font-weight: 600;
  font-size: 0.8125rem;
  width: 100%;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.credit-button:hover:not(:disabled) {
  background: var(--accent, #14b8a6);
  border-color: var(--accent, #14b8a6);
  color: var(--black);
}

.credit-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Abonelik Planları */
.plan-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface, #0a0a0a);
  border: 1px solid var(--border, #222);
  border-radius: var(--radius-md, 10px);
  padding: 14px 16px;
  transition: border-color 0.15s var(--ease);
  gap: 12px;
}

.plan-row:hover {
  border-color: var(--border-active, #333);
}

.plan-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.plan-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text, #e5e5e5);
  white-space: nowrap;
}

.plan-desc {
  font-size: 0.75rem;
  color: var(--muted, #8a97ab);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plan-action {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.plan-cost {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text, #e5e5e5);
  white-space: nowrap;
  text-align: right;
  min-width: 80px;
}

.plan-button {
  background: transparent;
  color: var(--accent, #14b8a6);
  border: 1px solid var(--border-active, #333);
  padding: 6px 16px;
  border-radius: var(--radius-sm, 6px);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.plan-button:hover:not(:disabled) {
  background: var(--accent, #14b8a6);
  border-color: var(--accent, #14b8a6);
  color: var(--black);
}

.plan-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.plan-current {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--primary-glow);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.plan-balance-badge {
  font-size: 0.75rem;
  color: var(--muted, #8a97ab);
  text-align: right;
  margin-bottom: 12px;
}

.plan-balance-badge strong {
  color: var(--text, #e5e5e5);
}

/* Plan özellik listesi */
.plan-row {
  align-items: flex-start;
}

.plan-tag {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted, #8a97ab);
  background: var(--surface2, #0f0f0f);
  border: 1px solid var(--border, #222);
  border-radius: var(--radius-sm, 6px);
  padding: 2px 8px;
  vertical-align: middle;
  margin-left: 6px;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}

.plan-features span {
  font-size: 0.75rem;
  color: var(--muted, #8a97ab);
  line-height: 1.4;
}

.plan-features span:first-child {
  color: var(--text, #e5e5e5);
  font-weight: 500;
}

.plan-action {
  align-self: flex-start;
  flex-shrink: 0;
}

/* --- Ödeme / Kart bilgisi modalı (S5a, S5b) — bitiglab kimliği --- */
.checkout-modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--modal-overlay-bg);
  backdrop-filter: var(--modal-overlay-blur);
  -webkit-backdrop-filter: var(--modal-overlay-blur);
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.checkout-modal {
  background: var(--surface);
  border: 1px solid var(--modal-border);
  border-radius: var(--modal-radius);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--modal-shadow);
  padding: var(--space-lg);
}

.checkout-modal .checkout-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-md) 0;
}

.checkout-modal .checkout-amount {
  color: var(--muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-lg);
}

/* Kredi kartı görsel animasyonu (ön/arka yüz, CVV odakta çevirme) */
.checkout-card-wrap {
  perspective: 1000px;
  margin-bottom: var(--space-lg);
}

.checkout-card-inner {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  height: 180px;
  transition: transform 0.5s var(--ease);
  transform-style: preserve-3d;
}

.checkout-card-inner.flipped {
  transform: rotateY(180deg);
}

.checkout-card-front,
.checkout-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-sizing: border-box;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.checkout-card-back {
  transform: rotateY(180deg);
}

.checkout-card-front .card-chip {
  width: 36px;
  height: 28px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  border-radius: 6px;
  margin-bottom: var(--space-md);
}

.checkout-card-front .card-number-display {
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.95);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-sm);
  min-height: 1.4em;
}

.checkout-card-front .card-name-display {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.checkout-card-front .card-expiry-display {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
}

.checkout-card-back .card-stripe {
  height: 40px;
  background: rgba(0, 0, 0, 0.35);
  margin: -var(--space-md) -var(--space-md) var(--space-md);
  border-radius: 0;
}

.checkout-card-back .card-cvv-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}

.checkout-card-back .card-cvv-display {
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.95);
  font-variant-numeric: tabular-nums;
}

/* Kart bilgisi form alanları */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.checkout-form label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

.checkout-form .input {
  width: 100%;
  box-sizing: border-box;
  min-height: var(--size-input-min-h);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg);
  color: var(--text);
  font-size: var(--text-sm);
}

.checkout-form .input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.2);
}

.checkout-form .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.checkout-modal .checkout-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.checkout-modal .checkout-actions .btn {
  flex: 1;
}