/* Rey OTP & Modern Auth — WooCommerce 11.3.0 & Rey Theme 3.5.0 Styles */
.rey-otp-shell {
  --otp-accent: var(--rey-otp-accent, var(--accent-color, #18181B));
  --otp-accent-text: var(--rey-otp-accent-text, #FFFFFF);
  --otp-surface: var(--rey-otp-surface, #FFFFFF);
  --otp-page-bg: var(--rey-otp-page-bg, #F7F6F2);
  --otp-text: var(--rey-otp-text, #18181B);
  --otp-muted: var(--rey-otp-muted, #6B6862);
  --otp-border: var(--rey-otp-border, #E5E2DC);
  --otp-radius: var(--rey-otp-radius, 4px);

  padding: 2.5rem 1rem;
  color: var(--otp-text);
  font-family: inherit;
}

/* Rey Theme 3.5.0 Account Panel Drawer uyumu */
.rey-accountPanel .rey-otp-shell {
  padding: 0;
}
.rey-accountPanel .rey-otp-editorial-pane {
  display: none;
}
.rey-accountPanel .rey-otp-card {
  border: none;
  box-shadow: none;
  grid-template-columns: 1fr;
}
.rey-accountPanel .rey-otp-form-pane {
  padding: 0.5rem 0;
}

.rey-otp-card {
  max-width: 1024px;
  margin: 0 auto;
  background: var(--otp-surface);
  border: 1px solid var(--otp-border);
  border-radius: var(--otp-radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

.rey-otp-layout--split_editorial .rey-otp-card {
  grid-template-columns: 0.9fr 1.1fr;
}

.rey-otp-card--narrow,
.rey-otp-layout--centered .rey-otp-card {
  max-width: 480px;
  grid-template-columns: 1fr;
}

.rey-otp-editorial-pane {
  position: relative;
  background-color: #18181b;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #f4f4f5;
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
}

.rey-otp-editorial-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
}

.rey-otp-brand-mark {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.rey-otp-editorial-copy {
  position: relative;
  z-index: 1;
}

.rey-otp-editorial-copy h2 {
  color: #ffffff;
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  font-weight: 500;
}

.rey-otp-editorial-copy p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

.rey-otp-form-pane {
  padding: 2.5rem;
}

.rey-otp-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--otp-page-bg);
  border: 1px solid var(--otp-border);
  border-radius: var(--otp-radius);
  margin-bottom: 1.75rem;
}

.rey-otp-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--otp-muted);
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: calc(var(--otp-radius) - 2px);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.rey-otp-tab.is-active {
  background: var(--otp-surface);
  color: var(--otp-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.rey-otp-header {
  margin-bottom: 1.5rem;
}

.rey-otp-kicker {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--otp-muted);
  margin-bottom: 0.5rem;
}

.rey-otp-title {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 600;
  color: var(--otp-text);
}

.rey-otp-subtitle {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--otp-muted);
}

.rey-otp-form {
  display: none;
}

.rey-otp-form.is-visible {
  display: block;
}

.rey-otp-field {
  margin-bottom: 1.15rem;
}

.rey-otp-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.45rem;
  color: var(--otp-text);
}

.rey-otp-field input[type="email"],
.rey-otp-field input[type="text"],
.rey-otp-field input[type="password"] {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--otp-border);
  border-radius: var(--otp-radius);
  background: var(--otp-surface);
  color: var(--otp-text);
  font-size: 0.9375rem;
  box-sizing: border-box;
  transition: border-color 150ms ease;
}

.rey-otp-field input:focus {
  outline: none;
  border-color: var(--otp-accent);
}

.rey-otp-digits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
  gap: 0.5rem;
}

.rey-otp-digit {
  height: 54px;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.35rem;
  font-weight: 600;
  border: 1px solid var(--otp-border);
  border-radius: var(--otp-radius);
  background: var(--otp-surface);
  color: var(--otp-text);
}

.rey-otp-digit:focus {
  outline: none;
  border-color: var(--otp-accent);
}

.rey-otp-btn-primary {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: var(--otp-radius);
  background: var(--otp-accent);
  color: var(--otp-accent-text);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 150ms ease;
}

.rey-otp-btn-primary:hover:not(:disabled) {
  opacity: 0.9;
}

.rey-otp-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.rey-otp-mode-switch {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--otp-border);
}

.rey-otp-btn-ghost {
  width: 100%;
  min-height: 42px;
  background: transparent;
  border: 1px solid var(--otp-border);
  border-radius: var(--otp-radius);
  color: var(--otp-text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

.rey-otp-sent-meta,
.rey-otp-meta-row,
.rey-otp-resend-row,
.rey-otp-footer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.rey-otp-resend-row,
.rey-otp-footer-link {
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 0;
}

.rey-otp-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--otp-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.85rem;
  cursor: pointer;
}

.rey-otp-link-btn:disabled {
  color: var(--otp-muted);
  text-decoration: none;
  cursor: default;
}

.rey-otp-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--otp-radius);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--otp-border);
  background: var(--otp-page-bg);
}

.rey-otp-alert.is-error {
  border-color: #dc2626;
  color: #991b1b;
  background: #fef2f2;
}

.rey-otp-alert.is-success {
  border-color: #16a34a;
  color: #166534;
  background: #f0fdf4;
}

.rey-otp-confirmation-pane {
  text-align: center;
}

.rey-otp-check-ring {
  width: 52px;
  height: 52px;
  margin: 0 auto 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--otp-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rey-otp-note {
  font-size: 0.825rem;
  color: var(--otp-muted);
  margin: 1rem 0 1.5rem;
}

@media (max-width: 768px) {
  .rey-otp-layout--split_editorial .rey-otp-card {
    grid-template-columns: 1fr;
  }
  .rey-otp-editorial-pane {
    padding: 1.75rem;
  }
  .rey-otp-form-pane {
    padding: 1.75rem;
  }
}

/* ==========================================================================
   WooCommerce 11.3.0 / Rey 3.5.0 — Modern Hesabım (My Account) Portalı
   ========================================================================== */
.rey-account-shell {
  --otp-accent: var(--rey-otp-accent, var(--accent-color, #18181B));
  --otp-accent-text: var(--rey-otp-accent-text, #FFFFFF);
  --otp-surface: var(--rey-otp-surface, #FFFFFF);
  --otp-page-bg: var(--rey-otp-page-bg, #eee);
  --otp-text: var(--rey-otp-text, #18181B);
  --otp-muted: var(--rey-otp-muted, #6B6862);
  --otp-border: var(--rey-otp-border, #E5E2DC);
  --otp-radius: var(--rey-otp-radius, 4px);

  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1rem 3.5rem;
  color: var(--otp-text);
}

.rey-account-topbar {
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--otp-border);
}

.rey-account-page-title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--otp-text);
}

.rey-account-page-subtitle {
  margin: 0.45rem 0 0;
  font-size: 0.925rem;
  color: var(--otp-muted);
}

.rey-account-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.rey-account-nav--topbar .rey-account-layout {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.rey-account-nav {
  background: var(--otp-surface);
  border: 1px solid var(--otp-border);
  border-radius: var(--otp-radius);
  padding: 1.25rem;
  width: 100% !important;
  float: none !important;
}

.rey-account-user-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--otp-border);
}

.rey-account-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--otp-accent);
  color: var(--otp-accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

.rey-account-user-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.rey-account-user-name {
  font-size: 0.9rem;
  color: var(--otp-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rey-account-user-email {
  font-size: 0.78rem;
  color: var(--otp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rey-account-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rey-account-nav--topbar .rey-account-user-card {
  display: none;
}

.rey-account-nav--topbar .rey-account-nav {
  padding: 0.5rem;
}

.rey-account-nav--topbar .rey-account-nav-list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.rey-account-nav-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  border-radius: calc(var(--otp-radius) - 1px);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--otp-muted);
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.rey-account-nav-list li a:hover {
  background: var(--otp-page-bg);
  color: var(--otp-text);
}

.rey-account-nav-list li.is-active a {
  background: var(--otp-accent);
  color: var(--otp-accent-text);
  font-weight: 600;
}

.rey-account-content {
  width: 100% !important;
  float: none !important;
  min-width: 0;
}

.rey-account-panel {
  background: var(--otp-surface);
  border: 1px solid var(--otp-border);
  border-radius: var(--otp-radius);
  padding: 2rem;
}

.rey-account-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--otp-border);
}

.rey-account-section-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--otp-text);
}

.rey-account-muted {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--otp-muted);
}

.rey-account-muted a {
  color: var(--otp-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rey-account-welcome-box {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--otp-border);
}

.rey-account-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.rey-account-quick-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem;
  border: 1px solid var(--otp-border);
  border-radius: var(--otp-radius);
  background: var(--otp-page-bg);
  text-decoration: none;
  color: var(--otp-text);
  transition: border-color 150ms ease, transform 150ms ease;
}

.rey-account-quick-card:hover {
  border-color: var(--otp-accent);
  transform: translateY(-1px);
}

.rey-account-quick-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--otp-muted);
}

.rey-account-quick-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.rey-account-quick-desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--otp-muted);
}

.rey-account-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.rey-account-table,
.rey-account-content table.shop_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 0;
  border: none;
}

.rey-account-table th,
.rey-account-content table.shop_table th {
  text-align: left;
  padding: 0.75rem 0.85rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--otp-muted);
  border-bottom: 1px solid var(--otp-border);
  font-weight: 600;
}

.rey-account-table td,
.rey-account-content table.shop_table td {
  padding: 0.95rem 0.85rem;
  border-bottom: 1px solid var(--otp-border);
  vertical-align: middle;
}

.rey-tabular {
  font-variant-numeric: tabular-nums;
}

.rey-align-right {
  text-align: right;
}

.rey-order-status {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--otp-radius);
  border: 1px solid var(--otp-border);
  background: var(--otp-page-bg);
  color: var(--otp-text);
}

.rey-order-status.status-completed {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.rey-order-status.status-processing,
.rey-order-status.status-on-hold {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.rey-order-status.status-cancelled,
.rey-order-status.status-failed {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.rey-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.rey-account-btn-sm,
.rey-account-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--otp-border);
  border-radius: var(--otp-radius);
  background: var(--otp-surface);
  color: var(--otp-text);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.rey-account-btn-sm:hover,
.rey-account-btn-outline:hover {
  border-color: var(--otp-accent);
  background: var(--otp-page-bg);
}

.rey-inline-btn {
  width: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.rey-account-addresses-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.rey-account-address-card {
  border: 1px solid var(--otp-border);
  border-radius: var(--otp-radius);
  padding: 1.35rem;
  background: var(--otp-page-bg);
  width: 100% !important;
  float: none !important;
}

.rey-account-address-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--otp-border);
}

.rey-account-address-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.rey-account-address-body {
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--otp-muted);
}

.rey-account-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.rey-account-form-fields .form-row {
  margin-bottom: 1rem;
}

.rey-account-form-fields label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.rey-account-form-fields input.input-text,
.rey-account-form-fields select {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--otp-border);
  border-radius: var(--otp-radius);
  background: var(--otp-surface);
  color: var(--otp-text);
  font-size: 0.9rem;
}

.rey-account-password-fieldset {
  margin: 1.75rem 0;
  padding: 1.5rem;
  border: 1px solid var(--otp-border);
  border-radius: var(--otp-radius);
  background: var(--otp-page-bg);
}

.rey-account-password-fieldset legend {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0 0.5rem;
}

.rey-field-hint {
  display: block;
  font-size: 0.76rem;
  color: var(--otp-muted);
  margin-top: 0.35rem;
}

.rey-account-form-actions {
  margin-top: 1.5rem;
}

.rey-account-empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  border: 1px dashed var(--otp-border);
  border-radius: var(--otp-radius);
  background: var(--otp-page-bg);
}

.rey-account-empty-state p {
  margin: 0 0 1.25rem;
  color: var(--otp-muted);
  font-size: 0.925rem;
}

.rey-account-order-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--otp-border);
}

.rey-account-order-hero-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rey-account-notes-box {
  margin-bottom: 1.75rem;
  padding: 1.25rem;
  border: 1px solid var(--otp-border);
  border-radius: var(--otp-radius);
  background: var(--otp-page-bg);
}

.rey-account-notes-box h3 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
}

.rey-account-notes-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.85rem;
}

.rey-note-date {
  font-size: 0.76rem;
  color: var(--otp-muted);
  margin-bottom: 0.2rem;
}

.rey-account-pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.rey-payment-methods-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rey-payment-methods-list li {
  border: 1px solid var(--otp-border);
  border-radius: var(--otp-radius);
  padding: 1rem;
}

.rey-payment-radio-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 500;
  cursor: pointer;
}

/* Redesigned Dashboard.php Styles (Modern & Responsive) */
.rey-dash-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--otp-border);
}

.rey-dash-hero-copy {
  max-width: 620px;
}

.rey-dash-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
}

.rey-dash-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--otp-page-bg);
  border: 1px solid var(--otp-border);
  border-radius: var(--otp-radius);
  color: var(--otp-text);
}

.rey-dash-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #16a34a;
}

.rey-dash-member-since {
  font-size: 0.75rem;
  color: var(--otp-muted);
}

.rey-dash-greeting {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--otp-text);
}

.rey-dash-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.rey-dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.rey-dash-stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--otp-border);
  border-radius: var(--otp-radius);
  background: var(--otp-page-bg);
  text-decoration: none;
  color: var(--otp-text);
  transition: border-color 150ms ease, background-color 150ms ease;
}

.rey-dash-stat-card:hover {
  border-color: var(--otp-accent);
  background: var(--otp-surface);
}

.rey-dash-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--otp-muted);
  font-weight: 600;
}

.rey-dash-stat-value {
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--otp-text);
}

.rey-dash-stat-hint {
  font-size: 0.75rem;
  color: var(--otp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rey-dash-spotlight {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.75rem;
  border: 1px solid var(--otp-border);
  border-left: 3px solid var(--otp-accent);
  border-radius: var(--otp-radius);
  background: var(--otp-page-bg);
}

.rey-dash-spotlight-kicker {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--otp-muted);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.rey-dash-spotlight-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  font-size: 1rem;
}

.rey-dash-spotlight-meta {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--otp-muted);
}

.rey-account-quick-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.rey-account-quick-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--otp-radius);
  background: var(--otp-surface);
  border: 1px solid var(--otp-border);
  color: var(--otp-text);
}

.rey-account-quick-arrow {
  font-size: 0.9rem;
  color: var(--otp-muted);
  transition: transform 150ms ease, color 150ms ease;
}

.rey-account-quick-card:hover .rey-account-quick-arrow {
  transform: translateX(3px);
  color: var(--otp-text);
}

.rey-dash-block-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.rey-dash-block-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--otp-text);
}

.rey-account-recent-orders {
  margin-bottom: 2rem;
}

.rey-dash-orders-mobile {
  display: none;
}

.rey-dash-order-card {
  border: 1px solid var(--otp-border);
  border-radius: var(--otp-radius);
  padding: 1rem;
  background: var(--otp-page-bg);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.rey-dash-order-card-top,
.rey-dash-order-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.rey-dash-order-date {
  display: block;
  font-size: 0.76rem;
  color: var(--otp-muted);
  margin-top: 0.15rem;
}

.rey-dash-order-total {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.82rem;
}

.rey-dash-order-total span {
  font-size: 0.74rem;
  color: var(--otp-muted);
}

.rey-dash-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  border: 1px dashed var(--otp-border);
  border-radius: var(--otp-radius);
  background: var(--otp-page-bg);
}

.rey-dash-empty-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--otp-text);
}

.rey-dash-empty .rey-account-btn-primary {
  margin-top: 1rem;
}

.rey-dash-addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.rey-dash-address-card {
  border: 1px solid var(--otp-border);
  border-radius: var(--otp-radius);
  padding: 1.15rem;
  background: var(--otp-page-bg);
}

.rey-dash-address-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.7rem;
  margin-bottom: 0.7rem;
  border-bottom: 1px solid var(--otp-border);
  font-size: 0.88rem;
}

@media (max-width: 960px) {
  .rey-account-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .rey-account-nav {
    padding: 0.85rem;
  }
  .rey-account-nav-list {
    flex-direction: row;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 0.35rem;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }
  .rey-account-nav-list li {
    flex-shrink: 0;
  }
  .rey-dash-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rey-account-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rey-account-addresses-grid,
  .rey-account-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .rey-account-shell {
    padding: 1.25rem 0.85rem 2.5rem;
  }
  .rey-account-page-title {
    font-size: 1.5rem;
  }
  .rey-account-panel {
    padding: 1.25rem;
  }
  .rey-dash-greeting {
    font-size: 1.35rem;
  }
  .rey-dash-hero-actions {
    width: 100%;
  }
  .rey-dash-hero-actions a {
    flex: 1;
  }
  .rey-account-quick-grid,
  .rey-dash-addresses {
    grid-template-columns: 1fr;
  }
  .rey-dash-spotlight {
    flex-direction: column;
    align-items: stretch;
  }
  .rey-dash-orders-desktop {
    display: none;
  }
  .rey-dash-orders-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* ==========================================================================
   Ödeme Sayfası (Checkout) Bireysel / Kurumsal OTP Kapısı
   ========================================================================== */
body.rey-checkout-gate-active form.checkout,
body.rey-checkout-gate-active .woocommerce-form-login-toggle,
body.rey-checkout-gate-active .woocommerce-form-coupon-toggle,
body.rey-checkout-gate-active form.woocommerce-form-login,
body.rey-checkout-gate-active form.checkout_coupon {
  display: none !important;
}

body.rey-customer-type--individual .rey-field-corporate {
  display: none !important;
}

body.rey-customer-type--corporate .rey-field-individual {
  display: none !important;
}

.rey-checkout-otp-shell {
  width: 100%;
  margin: 0 auto 2rem;
  font-family: inherit;
  color: var(--rey-otp-text);
}

.rey-checkout-verified-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.875rem 1.25rem;
  background: var(--rey-otp-surface);
  border: 1px solid var(--rey-otp-border);
  border-radius: var(--rey-otp-radius);
  margin-bottom: 1.5rem;
}

.rey-checkout-verified-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
}

.rey-checkout-verified-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--rey-otp-accent);
  color: var(--rey-otp-accent-text);
  border-radius: var(--rey-otp-radius);
}

.rey-checkout-verified-sep {
  color: var(--rey-otp-muted);
}

.rey-checkout-verified-status {
  font-size: 0.75rem;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 0.15rem 0.5rem;
  border-radius: var(--rey-otp-radius);
  font-weight: 600;
}

.rey-checkout-gate-card {
  max-width: 760px;
  margin: 1.5rem auto 2.5rem;
  background: var(--rey-otp-surface);
  border: 1px solid var(--rey-otp-border);
  border-radius: var(--rey-otp-radius);
  padding: 2.25rem 2.25rem 2.5rem;
  box-shadow: 0 22px 54px rgba(15, 15, 18, 0.06);
}

.rey-checkout-gate-header {
  margin-bottom: 1.5rem;
}

.rey-checkout-gate-title {
  margin: 0.45rem 0 0.4rem;
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--rey-otp-text);
}

.rey-checkout-gate-subtitle {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--rey-otp-muted);
}

.rey-checkout-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.rey-checkout-type-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.35rem;
  padding: 1.15rem 1.2rem;
  background: #faf9f6;
  border: 1px solid var(--rey-otp-border);
  border-radius: var(--rey-otp-radius);
  color: var(--rey-otp-text);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.rey-checkout-type-card:hover {
  border-color: var(--rey-otp-text);
}

.rey-checkout-type-card.is-selected {
  background: var(--rey-otp-surface);
  border-color: var(--rey-otp-accent);
  box-shadow: inset 0 0 0 1px var(--rey-otp-accent);
}

.rey-checkout-type-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.rey-checkout-type-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--rey-otp-muted);
  font-variant-numeric: tabular-nums;
}

.rey-checkout-type-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--rey-otp-border);
  position: relative;
  transition: all 0.15s ease;
}

.rey-checkout-type-card.is-selected .rey-checkout-type-check {
  border-color: var(--rey-otp-accent);
  background: var(--rey-otp-accent);
}

.rey-checkout-type-card.is-selected .rey-checkout-type-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid var(--rey-otp-accent-text);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.rey-checkout-type-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--rey-otp-text);
}

.rey-checkout-type-desc {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--rey-otp-muted);
}

.rey-checkout-type-meta {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--rey-otp-text);
  opacity: 0.8;
}

.rey-checkout-otp-box {
  border-top: 1px solid var(--rey-otp-border);
  padding-top: 1.35rem;
}

.rey-checkout-field-hint {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--rey-otp-muted);
}

.rey-checkout-loggedin-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: #faf9f6;
  border: 1px solid var(--rey-otp-border);
  border-radius: var(--rey-otp-radius);
}

.rey-checkout-loggedin-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.875rem;
}

.rey-checkout-loggedin-meta span {
  font-size: 0.75rem;
  color: var(--rey-otp-muted);
}

.rey-checkout-loggedin-box .rey-otp-btn-primary {
  width: auto;
  padding-inline: 1.4rem;
}

@media (max-width: 640px) {
  .rey-checkout-gate-card {
    padding: 1.5rem 1.15rem 1.75rem;
    margin: 0.75rem auto 1.5rem;
  }
  .rey-checkout-type-grid {
    grid-template-columns: 1fr;
  }
  .rey-checkout-loggedin-box .rey-otp-btn-primary {
    width: 100%;
  }
}
