/* =========================================================
   Ravalux Ödeme — v3 (Green trust theme, reference-based)
   Mobile-first, clean, fintech-grade.
   ========================================================= */

:root {
  /* Colors — Ravalux brand palette (logo-based) */
  --bg:           #FFFFFF;
  --surface:      #FFFFFF;
  --surface-2:    #FAF7F2;
  --surface-3:    #F4EFE6;
  --ink:          #2D2D33;
  --ink-2:        #5B5F66;
  --ink-3:        #9CA0A8;
  --line:         #ECE7DE;
  --line-2:       #D8D2C6;

  /* Brand: Ravalux orange */
  --brand:        #F39200;
  --brand-hover:  #D17F00;
  --brand-text:   #8C5A00;
  --brand-soft:   #FFF4E1;
  --brand-ring:   rgba(243, 146, 0, 0.22);

  /* Semantic success (Ödendi / başarılı) — kept green for UX clarity */
  --ok:           #16A34A;
  --ok-text:      #166534;
  --ok-soft:      #DCFCE7;
  --ok-border:    #BBF7D0;

  --error:        #DC2626;
  --error-soft:   #FEE2E2;
  --warn:         #EA580C;
  --warn-soft:    #FFEDD5;

  --overlay:      rgba(45, 45, 51, 0.55);

  /* Spacing */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.25rem;
  --s-6: 1.5rem;  --s-8: 2rem;   --s-10: 2.5rem; --s-12: 3rem;

  /* Radii */
  --r-md: 0.5rem; --r-lg: 0.75rem; --r-xl: 1rem; --r-2xl: 1.25rem; --r-full: 9999px;

  /* Shadow */
  --sh-sm: 0 1px 2px rgba(15,23,42,0.04);
  --sh-md: 0 4px 16px rgba(15,23,42,0.06);
  --sh-card: 0 1px 2px rgba(15,23,42,0.04), 0 4px 8px rgba(15,23,42,0.04);
  --sh-cta: 0 -10px 30px -10px rgba(15,23,42,0.08);
  --sh-modal: 0 24px 48px -12px rgba(15,23,42,0.25);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100vw; }

html {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  font-weight: 500;
}

a { color: var(--brand-text); text-decoration: none; }
a:hover { color: var(--brand); }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 16px; color: inherit; }

/* =========================================================
   App shell
   ========================================================= */
.rv-app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* =========================================================
   Topbar
   ========================================================= */
.rv-topbar {
  position: sticky; top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  z-index: 20;
  padding: var(--s-4) var(--s-4);
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}
.rv-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-width: 0;
}

.rv-brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-width: 0;
  flex-shrink: 1;
}
.rv-brand img {
  height: 56px;
  width: auto;
  max-width: min(50vw, 220px);
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .rv-brand img {
    height: 96px;
    max-width: 320px;
  }
}

.rv-brand-divider {
  width: 1px;
  height: 24px;
  background: var(--line);
  display: none;
}
.rv-brand-tag {
  display: none;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
}
.rv-brand-tag svg { width: 16px; height: 16px; color: var(--brand); }

@media (min-width: 640px) {
  .rv-brand-divider { display: block; }
  .rv-brand-tag { display: inline-flex; }
}

.rv-trust-mini {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
  flex-shrink: 0;
}
.rv-trust-mini svg { width: 16px; height: 16px; color: var(--brand); }
.rv-trust-mini span { display: none; }
@media (min-width: 480px) { .rv-trust-mini span { display: inline; } }

/* =========================================================
   Page layout
   ========================================================= */
.rv-page {
  flex: 1;
  padding: var(--s-6) var(--s-4) 8rem var(--s-4);
}
@media (min-width: 1024px) {
  .rv-page { padding: var(--s-10) var(--s-6) var(--s-12) var(--s-6); }
}

.rv-shell {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 1024px) {
  .rv-shell { grid-template-columns: 1.5fr 1fr; gap: var(--s-8); align-items: start; }
}

/* =========================================================
   Hero title (with shield icon)
   ========================================================= */
.rv-hero {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.rv-hero-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: var(--r-xl);
  background: var(--brand-soft);
  color: var(--brand-text);
  display: inline-flex; align-items: center; justify-content: center;
}
.rv-hero-icon svg { width: 22px; height: 22px; }
@media (min-width: 768px) {
  .rv-hero-icon { width: 56px; height: 56px; }
  .rv-hero-icon svg { width: 28px; height: 28px; }
}
.rv-hero-title {
  font-size: clamp(1.65rem, 4.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
  line-height: 1.1;
}

.rv-lead {
  color: var(--ink-2);
  margin: 0 0 var(--s-6);
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 400;
  max-width: 600px;
}
.rv-lead strong, .rv-lead .rv-emph {
  color: var(--brand-text);
  font-weight: 700;
}

/* =========================================================
   Amount card  (the prominent box in reference)
   ========================================================= */
.rv-amount-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  margin-bottom: var(--s-6);
  transition: border-color 0.2s, background 0.2s;
}
.rv-amount-card:focus-within {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--brand-ring);
}
.rv-amount-card .rv-amount-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
  margin: 0 0 var(--s-3);
  display: block;
}
.rv-amount-card .rv-amount-row {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
}
.rv-amount-card .rv-amount-prefix {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}
.rv-amount-card input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: clamp(2rem, 7vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--brand);
  padding: 0;
  min-width: 0;
  width: 100%;
  font-family: inherit;
  -moz-appearance: textfield;
}
.rv-amount-card input::-webkit-outer-spin-button,
.rv-amount-card input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rv-amount-card input::placeholder { color: var(--brand); opacity: 0.45; font-weight: 800; }

/* Read-only amount (link.php) */
.rv-amount-card .rv-amount-static {
  flex: 1;
  font-size: clamp(2rem, 7vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--brand);
  min-width: 0;
  word-break: break-word;
}

/* =========================================================
   Section labels (form group titles)
   ========================================================= */
.rv-section-label {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin: var(--s-6) 0 var(--s-3);
  letter-spacing: -0.005em;
}
.rv-section-label svg {
  width: 18px; height: 18px;
  color: var(--ink-2);
}

/* =========================================================
   Form fields (icon-leading inputs)
   ========================================================= */
.rv-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}
@media (min-width: 600px) {
  .rv-form-grid.two { grid-template-columns: 1fr 1fr; }
}

.rv-field {
  position: relative;
}
.rv-field-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--ink-3);
  pointer-events: none;
  transition: color 0.15s;
}
.rv-field.textarea .rv-field-icon { top: 18px; transform: none; }

.rv-field input,
.rv-field textarea {
  width: 100%;
  height: 54px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 0 14px 0 44px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}
.rv-field textarea {
  height: auto;
  min-height: 110px;
  padding: 14px 14px 14px 44px;
  resize: vertical;
  line-height: 1.5;
}
.rv-field input::placeholder,
.rv-field textarea::placeholder { color: var(--ink-3); font-weight: 500; }
.rv-field input:focus,
.rv-field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-ring);
}
.rv-field input:focus ~ .rv-field-icon,
.rv-field textarea:focus ~ .rv-field-icon { color: var(--brand); }
.rv-field .rv-opt {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 6px;
}

/* =========================================================
   Terms / Checkbox
   ========================================================= */
.rv-terms {
  margin-top: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.rv-check {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  cursor: pointer;
  padding: var(--s-1) 0;
  position: relative;
}
.rv-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.rv-check .rv-box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--line-2);
  border-radius: 6px;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  margin-top: 1px;
}
.rv-check .rv-box svg { width: 14px; height: 14px; color: white; opacity: 0; transform: scale(0.6); transition: all 0.15s ease; }
.rv-check input:checked + .rv-box { background: var(--brand); border-color: var(--brand); }
.rv-check input:checked + .rv-box svg { opacity: 1; transform: scale(1); }
.rv-check input:focus-visible + .rv-box { box-shadow: 0 0 0 4px var(--brand-ring); }
.rv-check .rv-check-text {
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.5;
  font-weight: 500;
}
.rv-check .rv-check-text a {
  color: var(--brand-text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.rv-check .rv-check-text a:hover { color: var(--brand); }

/* =========================================================
   Summary card (right)
   ========================================================= */
.rv-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  box-shadow: var(--sh-card);
}
@media (min-width: 1024px) {
  .rv-summary { position: sticky; top: 6rem; }
}

.rv-summary-head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.rv-summary-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-lg);
  background: var(--brand-soft);
  color: var(--brand-text);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rv-summary-icon svg { width: 18px; height: 18px; }
.rv-summary-head h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.rv-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-3) 0;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--line);
}
.rv-summary-row:last-of-type { border-bottom: none; }
.rv-summary-row .k { color: var(--ink-2); font-weight: 500; }
.rv-summary-row .v { color: var(--ink); font-weight: 700; }

.rv-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1.5px solid var(--ink);
}
.rv-summary-total .k {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.rv-summary-total .v {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand);
}

/* Inline info banner in summary */
.rv-info {
  margin-top: var(--s-5);
  background: var(--brand-soft);
  border: 1px solid #FFD898;
  border-radius: var(--r-lg);
  padding: var(--s-3) var(--s-4);
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
}
.rv-info-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: var(--r-md);
  background: var(--brand);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
}
.rv-info-icon svg { width: 14px; height: 14px; }
.rv-info-text {
  font-size: 0.82rem;
  color: var(--brand-text);
  font-weight: 500;
  line-height: 1.5;
}
.rv-info-text strong { font-weight: 800; }

/* Trust badges row */
.rv-trust-row {
  margin-top: var(--s-5);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
}
.rv-trust-cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-3) var(--s-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.rv-trust-cell .ico {
  width: 22px; height: 22px;
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.rv-trust-cell .ico svg { width: 22px; height: 22px; }
.rv-trust-cell strong {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}
.rv-trust-cell .desc {
  font-size: 0.7rem;
  color: var(--ink-3);
  line-height: 1.3;
}

/* =========================================================
   Buttons
   ========================================================= */
.rv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  background: var(--ink);
  color: white;
  font-weight: 700;
  font-size: 0.98rem;
  border: none;
  border-radius: var(--r-lg);
  padding: 0 var(--s-6);
  height: 54px;
  cursor: pointer;
  letter-spacing: -0.005em;
  transition: background 0.15s, transform 0.1s, opacity 0.15s, box-shadow 0.2s;
  width: 100%;
  font-family: inherit;
}
.rv-btn:hover:not(:disabled) { background: #1E293B; }
.rv-btn:active:not(:disabled) { transform: translateY(1px); }
.rv-btn:focus-visible { outline: 3px solid var(--brand-ring); outline-offset: 2px; }
.rv-btn:disabled { background: var(--ink-3); color: white; cursor: not-allowed; opacity: 0.6; }
.rv-btn svg { width: 18px; height: 18px; }

.rv-btn.brand { background: var(--brand); box-shadow: 0 4px 14px -4px rgba(22,163,74,0.5); }
.rv-btn.brand:hover:not(:disabled) { background: var(--brand-hover); }
.rv-btn.brand:disabled { background: var(--ink-3); color: white; opacity: 0.55; cursor: not-allowed; box-shadow: none; }

.rv-btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.rv-btn.ghost:hover:not(:disabled) { background: var(--surface-2); }
.rv-btn.ghost:disabled { background: transparent; color: var(--ink-3); opacity: 0.55; cursor: not-allowed; }

.rv-btn.outline-brand { background: transparent; color: var(--brand-text); border: 1.5px solid var(--brand); }
.rv-btn.outline-brand:hover:not(:disabled) { background: var(--brand-soft); }

.rv-btn.compact { height: 42px; padding: 0 var(--s-4); font-size: 0.86rem; }

/* =========================================================
   Desktop CTA / mobile sticky bar
   ========================================================= */
.rv-cta-desktop { display: none; }
@media (min-width: 1024px) {
  .rv-cta-desktop { display: block; margin-top: var(--s-6); }
}

.rv-cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: var(--sh-cta);
  padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.rv-cta-bar .rv-cta-meta { flex: 1; min-width: 0; }
.rv-cta-bar .rv-cta-meta .k {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-3); display: block;
}
.rv-cta-bar .rv-cta-meta .v {
  font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--brand); line-height: 1.1;
}
.rv-cta-bar .rv-btn { flex-shrink: 0; min-width: 170px; }
@media (min-width: 1024px) { .rv-cta-bar { display: none; } }

/* =========================================================
   Modal / Bottom sheet
   ========================================================= */
.rv-sheet-backdrop {
  position: fixed; inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.rv-sheet-backdrop.is-open { opacity: 1; visibility: visible; }

.rv-sheet {
  background: var(--surface);
  width: 100%;
  max-height: 92vh; max-height: 92dvh;
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
  box-shadow: var(--sh-modal);
}
.rv-sheet-backdrop.is-open .rv-sheet { transform: translateY(0); }
.rv-sheet-grab {
  width: 36px; height: 4px;
  background: var(--line-2);
  border-radius: var(--r-full);
  margin: 10px auto 0;
}
.rv-sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4) var(--s-5) var(--s-3);
  border-bottom: 1px solid var(--line);
}
.rv-sheet-head h3 { margin: 0; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.rv-sheet-close {
  background: var(--surface-2);
  border: none;
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.rv-sheet-close:hover { background: var(--line); }
.rv-sheet-close svg { width: 16px; height: 16px; }

.rv-sheet-body {
  padding: var(--s-5);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-2);
}
.rv-sheet-body h4 { color: var(--ink); margin: var(--s-5) 0 var(--s-2); font-size: 0.95rem; font-weight: 700; }
.rv-sheet-body h4:first-child { margin-top: 0; }
.rv-sheet-body p { margin: 0 0 var(--s-3); }
.rv-sheet-body strong { color: var(--ink); font-weight: 700; }
.rv-sheet-body a { color: var(--brand-text); font-weight: 600; }
.rv-sheet-body table { width: 100%; border-collapse: collapse; margin: var(--s-3) 0; font-size: 0.85rem; }
.rv-sheet-body td { border: 1px solid var(--line); padding: var(--s-2) var(--s-3); vertical-align: top; }
.rv-sheet-body td:first-child { background: var(--surface-2); font-weight: 700; color: var(--ink); width: 35%; }

.rv-sheet-foot {
  padding: var(--s-3) var(--s-5) calc(var(--s-3) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
}

@media (min-width: 768px) {
  .rv-sheet-backdrop { align-items: center; padding: var(--s-6); }
  .rv-sheet {
    max-width: 640px;
    max-height: 85vh;
    border-radius: var(--r-2xl);
    transform: translateY(20px) scale(0.97);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.25s ease;
  }
  .rv-sheet-backdrop.is-open .rv-sheet { transform: translateY(0) scale(1); opacity: 1; }
  .rv-sheet-grab { display: none; }
}

/* =========================================================
   Status pages
   ========================================================= */
.rv-status {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: var(--s-10) var(--s-6);
  max-width: 520px;
  margin: var(--s-6) auto;
  text-align: center;
  box-shadow: var(--sh-card);
}
.rv-status-icon {
  width: 76px; height: 76px;
  border-radius: var(--r-full);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-4);
}
.rv-status-icon svg { width: 36px; height: 36px; stroke-width: 2.5; }
.rv-status-icon.ok  { background: var(--ok-soft); color: var(--ok-text); }
.rv-status-icon.err { background: var(--error-soft); color: var(--error); }
.rv-status-icon.warn{ background: var(--warn-soft); color: var(--warn); }
.rv-status h1 {
  margin: 0 0 var(--s-2);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.rv-status p {
  color: var(--ink-2);
  margin: 0 0 var(--s-6);
  font-size: 0.95rem;
  line-height: 1.55;
}
.rv-status p strong { color: var(--ink); font-weight: 700; }
.rv-status .rv-btn { max-width: 320px; margin: 0 auto var(--s-3); }
.rv-status .rv-btn-row { display: flex; gap: var(--s-2); max-width: 380px; margin: 0 auto; flex-wrap: wrap; }
.rv-status .rv-btn-row .rv-btn { flex: 1; min-width: 140px; max-width: none; margin: 0; }

/* =========================================================
   Footer
   ========================================================= */
.rv-foot {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  margin-top: var(--s-10);
  padding: var(--s-8) var(--s-4) calc(var(--s-8) + 80px);
}
@media (min-width: 1024px) { .rv-foot { padding-bottom: var(--s-8); } }
.rv-foot-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 768px) { .rv-foot-inner { grid-template-columns: 2fr 1fr 1fr; } }
.rv-foot h5 {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink); margin: 0 0 var(--s-3);
}
.rv-foot p, .rv-foot li {
  margin: 0 0 var(--s-1);
  font-size: 0.86rem;
  color: var(--ink-2);
  line-height: 1.55;
}
.rv-foot ul { list-style: none; padding: 0; margin: 0; }
.rv-foot a { color: var(--ink-2); }
.rv-foot a:hover { color: var(--brand-text); }
.rv-foot-bottom {
  max-width: 1200px;
  margin: var(--s-8) auto 0;
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 0.78rem;
  color: var(--ink-3);
}

/* =========================================================
   PayTR iframe wrapper
   ========================================================= */
.rv-paytr-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s-4);
  overflow: hidden;
  box-shadow: var(--sh-card);
}
.rv-paytr-frame iframe { width: 100%; min-height: 600px; border: none; display: block; border-radius: var(--r-md); }

/* =========================================================
   Info list (key/value rows)
   ========================================================= */
.rv-info-list {
  display: flex;
  flex-direction: column;
  margin: var(--s-2) 0;
}
.rv-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
}
.rv-info-row:last-child { border-bottom: none; }
.rv-info-row .k {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-2);
}
.rv-info-row .v {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
  word-break: break-word;
}

/* =========================================================
   Receipt page
   ========================================================= */
.rv-receipt {
  max-width: 760px;
  margin: var(--s-6) auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: var(--s-8);
  box-shadow: var(--sh-card);
}
@media print {
  body { background: white !important; }
  .rv-topbar, .rv-foot, .rv-cta-bar, .rv-receipt-actions { display: none !important; }
  .rv-receipt { border: none; box-shadow: none; max-width: 100%; padding: 0; margin: 0; }
}
.rv-receipt-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: var(--s-6);
  border-bottom: 2px solid var(--ink);
  margin-bottom: var(--s-6);
  flex-wrap: wrap; gap: var(--s-4);
}
.rv-receipt-brand img { height: 56px; }
.rv-receipt-brand .label { font-size: 0.78rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-top: var(--s-2); }
.rv-receipt-meta { text-align: right; }
.rv-receipt-meta .tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 700;
  background: var(--ok-soft); color: var(--ok-text);
  padding: 5px 12px; border-radius: var(--r-full);
  margin-bottom: var(--s-2);
}
.rv-receipt-meta .tag svg { width: 12px; height: 12px; }
.rv-receipt-meta .oid {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--ink-2);
}
.rv-receipt-meta .date {
  font-size: 0.85rem;
  color: var(--ink-2);
  margin-top: 4px;
}

.rv-receipt-section { margin-bottom: var(--s-6); }
.rv-receipt-section h3 {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-3); margin: 0 0 var(--s-3);
}
.rv-receipt-grid {
  display: grid; grid-template-columns: 1fr;
  gap: var(--s-3);
  background: var(--surface-2);
  border-radius: var(--r-lg);
  padding: var(--s-4);
}
@media (min-width: 600px) { .rv-receipt-grid { grid-template-columns: 1fr 1fr; } }
.rv-receipt-grid .item .k {
  font-size: 0.75rem; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.rv-receipt-grid .item .v {
  font-size: 0.95rem; color: var(--ink); font-weight: 600;
  word-break: break-word;
}

.rv-receipt-total {
  background: var(--ok-soft);
  border: 1px solid var(--ok-border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex; justify-content: space-between; align-items: center;
}
.rv-receipt-total .k { font-size: 1rem; font-weight: 700; color: var(--ok-text); }
.rv-receipt-total .v { font-size: 2rem; font-weight: 800; color: var(--ok-text); letter-spacing: -0.025em; }

.rv-receipt-foot {
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--ink-3);
  line-height: 1.6;
}

.rv-receipt-actions {
  max-width: 760px;
  margin: var(--s-4) auto 0;
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.rv-receipt-actions .rv-btn { flex: 1; min-width: 160px; }

/* =========================================================
   Admin
   ========================================================= */
.rv-admin {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--s-8) var(--s-4) var(--s-12);
}
.rv-admin-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.rv-admin-head h1 { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.025em; }
.rv-admin-head .rv-eyebrow {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-3); margin: 0 0 var(--s-1);
}

.rv-admin-tabs {
  display: flex;
  gap: var(--s-1);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-6);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.rv-admin-tabs a {
  flex-shrink: 0;
  padding: var(--s-3) var(--s-4);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.rv-admin-tabs a:hover { color: var(--ink); }
.rv-admin-tabs a.active { color: var(--brand-text); border-bottom-color: var(--brand); }

.rv-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}
@media (min-width: 600px) { .rv-stats { grid-template-columns: repeat(3, 1fr); } }
.rv-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  box-shadow: var(--sh-card);
}
.rv-stat .k {
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-3); margin: 0 0 var(--s-2);
}
.rv-stat .v {
  font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1;
}
.rv-stat .v.brand { color: var(--brand); }

.rv-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--sh-card);
}
.rv-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.rv-table th, .rv-table td {
  padding: var(--s-3) var(--s-4);
  text-align: left;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--line);
}
.rv-table th {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-3); background: var(--surface-2);
}
.rv-table tr:last-child td { border-bottom: none; }
.rv-table strong { font-weight: 700; }
.rv-table .mono { font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace; font-size: 0.78rem; color: var(--ink-2); }

.rv-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 700;
}
.rv-tag.ok      { background: var(--ok-soft); color: var(--ok-text); }
.rv-tag.err     { background: var(--error-soft); color: var(--error); }
.rv-tag.pending { background: var(--surface-3); color: var(--ink-2); }

.rv-flash {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-lg);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: var(--s-5);
}
.rv-flash.ok { background: var(--ok-soft); color: var(--ok-text); border: 1px solid var(--ok-border); }
.rv-flash.err { background: var(--error-soft); color: var(--error); border: 1px solid #FECACA; }

.rv-empty {
  text-align: center;
  padding: var(--s-12) var(--s-6);
  background: var(--surface);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-xl);
}
.rv-empty h3 { margin: 0 0 var(--s-2); font-size: 1.15rem; font-weight: 700; }
.rv-empty p { color: var(--ink-2); font-size: 0.92rem; margin: 0 0 var(--s-4); }

.rv-link-display {
  background: var(--surface-2);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-lg);
  font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace;
  font-size: 0.82rem;
  color: var(--ink);
  word-break: break-all;
  border: 1px solid var(--line);
}

.rv-card-pad {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  box-shadow: var(--sh-card);
}

/* Utility */
.rv-hidden-mobile { display: none; }
@media (min-width: 1024px) { .rv-hidden-mobile { display: block; } }
.rv-hidden-desktop { display: block; }
@media (min-width: 1024px) { .rv-hidden-desktop { display: none; } }
.rv-stack { display: flex; flex-direction: column; gap: var(--s-3); }
.rv-row { display: flex; gap: var(--s-3); flex-wrap: wrap; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }
::selection { background: var(--brand-soft); color: var(--brand-text); }
