/* ============================================================
   WEDDING SAAS — EDITORIAL ATELIER DESIGN SYSTEM
   Inspirado en revistas independientes (Cereal, Apartamento)
   y studios boutique (Pentagram, Order). Tipografía variable
   Fraunces, paleta ivory cálido + terracota + sage moss,
   composición editorial asimétrica.
   ============================================================ */

:root {
    /* ─── Color: warm editorial palette ─── */
    --ink:           #1a1208;        /* espresso oscuro */
    --ink-soft:      #3d3024;
    --ink-mute:      #6b5d4f;
    --ink-faint:     #a89d8d;

    --paper:         #fbf7f0;        /* ivory cálido — el fondo principal */
    --paper-warm:    #f5efe4;        /* cream surface */
    --paper-deep:    #ebe3d2;
    --paper-cool:    #ffffff;

    --terracotta:    #c4543a;        /* primary accent — terracota romántica */
    --terracotta-dk: #9a3e2a;
    --terracotta-lt: #e8b8a8;

    --sage:          #7c8b66;        /* secondary accent — verde sauce */
    --sage-dk:       #5e6b4d;
    --sage-lt:       #cdd5bf;

    --gold:          #b8924f;        /* metálico sutil */

    --line:          rgba(26, 18, 8, .1);
    --line-strong:   rgba(26, 18, 8, .2);
    --line-faint:    rgba(26, 18, 8, .06);

    --success:       #5e6b4d;
    --error:         #9a3e2a;
    --warning:       #b8924f;
    --info:          #4a5c6b;

    /* ─── Compat aliases (para no romper código existente) ─── */
    --primary:       var(--terracotta);
    --primary-dark:  var(--terracotta-dk);
    --primary-light: var(--terracotta-lt);
    --secondary:     var(--ink);
    --accent:        var(--paper-warm);
    --text:          var(--ink);
    --text-light:    var(--ink-soft);
    --text-muted:    var(--ink-mute);
    --bg:            var(--paper);
    --bg-soft:       var(--paper-warm);
    --border:        var(--line);

    /* ─── Typography stack ─── */
    --font-display:  'Fraunces', 'Iowan Old Style', Georgia, serif;
    --font-heading:  'Fraunces', 'Iowan Old Style', Georgia, serif;
    --font-body:     'Plus Jakarta Sans', 'Söhne', system-ui, -apple-system, sans-serif;
    --font-mono:     'JetBrains Mono', 'SF Mono', ui-monospace, monospace;

    /* ─── Scale ─── */
    --radius-sm: 4px;
    --radius:    8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 0 var(--line-faint);
    --shadow:    0 12px 32px -16px rgba(26,18,8,.18), 0 2px 8px -4px rgba(26,18,8,.06);
    --shadow-lg: 0 24px 60px -20px rgba(26,18,8,.22), 0 4px 12px -4px rgba(26,18,8,.08);
    --shadow-xl: 0 40px 100px -30px rgba(26,18,8,.3),  0 8px 24px -8px rgba(26,18,8,.1);

    --ease:        cubic-bezier(.22, 1, .36, 1);
    --ease-snappy: cubic-bezier(.65, 0, .35, 1);
    --transition:  .4s var(--ease);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "ss01" 1;
    /* Subtle paper grain — sin texturas pesadas */
    background-image:
        radial-gradient(ellipse 1200px 800px at 20% 0%, rgba(196,84,58,.025) 0%, transparent 70%),
        radial-gradient(ellipse 1000px 600px at 80% 100%, rgba(124,139,102,.03) 0%, transparent 70%);
    background-attachment: fixed;
}

::selection { background: var(--terracotta); color: var(--paper); }

/* ============================================================
   TYPOGRAPHY — el corazón del diseño
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ink);
    font-variation-settings: "SOFT" 50, "opsz" 144;
}

h1 {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    line-height: .95;
    letter-spacing: -0.035em;
    font-weight: 400;
    font-variation-settings: "SOFT" 30, "opsz" 144;
}
h2 {
    font-size: clamp(1.875rem, 4.5vw, 3.25rem);
    line-height: 1;
    letter-spacing: -0.025em;
    font-variation-settings: "SOFT" 50, "opsz" 96;
}
h3 {
    font-size: clamp(1.35rem, 2.5vw, 1.875rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    font-variation-settings: "SOFT" 60, "opsz" 36;
}
h4 { font-size: 1.15rem; font-weight: 500; line-height: 1.25; }

/* Display variant — gigante con itálica */
.display {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(3rem, 9vw, 7rem);
    line-height: .9;
    letter-spacing: -0.045em;
    font-variation-settings: "SOFT" 20, "opsz" 144;
}

/* Eyebrow — etiqueta sobre los títulos */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--terracotta);
    margin-bottom: 1.5rem;
}
.eyebrow::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: currentColor;
}

/* Mono — para datos, números, metadata */
.mono {
    font-family: var(--font-mono);
    font-size: 0.85em;
    letter-spacing: -0.01em;
}

/* Pull quote / lead paragraph */
.lead {
    font-family: var(--font-display);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    line-height: 1.5;
    color: var(--ink-soft);
    letter-spacing: -0.005em;
    max-width: 38em;
}

p { max-width: 65ch; }
strong, b { font-weight: 600; color: var(--ink); }

a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: text-decoration-color .25s var(--ease), color .25s var(--ease);
}
a:hover {
    color: var(--terracotta);
    text-decoration-color: var(--terracotta);
}

img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}
@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }
}

/* ============================================================
   BUTTONS — sharp, character-rich
   ============================================================ */
.btn {
    --btn-bg: var(--ink);
    --btn-color: var(--paper);
    --btn-border: var(--ink);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    background: var(--btn-bg);
    color: var(--btn-color);
    border: 1px solid var(--btn-border);
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .15s var(--ease-snappy);
    position: relative;
    -webkit-user-select: none;
    user-select: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
    --btn-bg: var(--terracotta);
    --btn-color: var(--paper);
    --btn-border: var(--terracotta);
}
.btn-primary:hover {
    --btn-bg: var(--terracotta-dk);
    --btn-border: var(--terracotta-dk);
    color: var(--paper);
}

.btn-secondary {
    --btn-bg: var(--ink);
    --btn-color: var(--paper);
    --btn-border: var(--ink);
}
.btn-secondary:hover { --btn-bg: var(--ink-soft); --btn-border: var(--ink-soft); color: var(--paper); }

.btn-ghost {
    --btn-bg: transparent;
    --btn-color: var(--ink);
    --btn-border: transparent;
}
.btn-ghost:hover { --btn-bg: var(--paper-deep); color: var(--ink); }

.btn-outline {
    --btn-bg: transparent;
    --btn-color: var(--ink);
    --btn-border: var(--ink);
}
.btn-outline:hover { --btn-bg: var(--ink); color: var(--paper); }

.btn-danger {
    --btn-bg: var(--error);
    --btn-color: var(--paper);
    --btn-border: var(--error);
}

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.78rem; }
.btn-lg { padding: 1.1rem 2.2rem; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* Arrow afterglyph */
.btn[href*=" "]::after,
.btn .arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   FORMS — minimalist, line-based
   ============================================================ */
.form-group { margin-bottom: 1.5rem; }

.form-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ink-mute);
    margin-bottom: 0.6rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.85rem 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line-strong);
    border-radius: 0;
    transition: border-color .2s var(--ease);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-bottom-color: var(--terracotta);
}
.form-input::placeholder { color: var(--ink-faint); }
.form-textarea { min-height: 100px; resize: vertical; }

.form-input[type="file"] {
    border-bottom: 1px dashed var(--line-strong);
    padding: 1rem 0;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.form-help {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--ink-mute);
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
}
.form-error { font-size: 0.85rem; color: var(--error); margin-top: 0.4rem; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }

/* Forms con look "card" (override en auth) */
.form-boxed .form-input,
.form-boxed .form-select,
.form-boxed .form-textarea {
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    background: var(--paper-cool);
}
.form-boxed .form-input:focus {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(196,84,58,.08);
}

/* ============================================================
   CARDS — editorial, hairline-based
   ============================================================ */
.card {
    background: var(--paper-cool);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.card:hover { border-color: var(--line-strong); }
.card-title { font-size: 1.3rem; margin-bottom: 0.75rem; }

/* ============================================================
   FLASH MESSAGES — editorial banner
   ============================================================ */
.flash {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    margin: 1.5rem auto;
    max-width: 1280px;
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 3px solid;
    border-radius: 0;
    background: var(--paper-warm);
}
.flash::before {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.flash-success { color: var(--sage-dk); border-color: var(--sage); background: rgba(124,139,102,.08); }
.flash-success::before { content: 'ok —'; color: var(--sage); }
.flash-error   { color: var(--terracotta-dk); border-color: var(--terracotta); background: rgba(196,84,58,.06); }
.flash-error::before   { content: 'err —'; color: var(--terracotta); }
.flash-warning { color: var(--gold); border-color: var(--gold); background: rgba(184,146,79,.08); }
.flash-warning::before { content: '! —'; color: var(--gold); }
.flash-info    { color: var(--info); border-color: var(--info); background: rgba(74,92,107,.06); }
.flash-info::before    { content: 'i —'; color: var(--info); }

/* ============================================================
   BADGES — minimal, mono
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: var(--paper-deep);
    color: var(--ink-soft);
    border: 1px solid var(--line);
}
.badge::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}
.badge-primary { background: rgba(196,84,58,.08); color: var(--terracotta-dk); border-color: rgba(196,84,58,.2); }
.badge-success { background: rgba(124,139,102,.1); color: var(--sage-dk); border-color: rgba(124,139,102,.25); }
.badge-warning { background: rgba(184,146,79,.1); color: var(--gold); border-color: rgba(184,146,79,.25); }
.badge-danger  { background: rgba(154,62,42,.08); color: var(--terracotta-dk); border-color: rgba(154,62,42,.2); }
.badge-info    { background: rgba(74,92,107,.08); color: var(--info); border-color: rgba(74,92,107,.2); }
.badge-muted   { background: var(--paper-deep); color: var(--ink-mute); }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--ink-mute); }
.text-primary { color: var(--terracotta); }
.text-error  { color: var(--error); }
.text-success { color: var(--success); }

.mt-1 { margin-top: 0.5rem; }    .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }    .mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }      .mt-8 { margin-top: 4rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.p-1 { padding: 0.5rem; }        .p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }        .p-4 { padding: 2rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; } .gap-4 { gap: 2rem; }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.75rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }

.hidden { display: none !important; }
.w-full { width: 100%; }

/* Hairline divider with optional label */
.divider {
    border: none;
    border-top: 1px solid var(--line);
    margin: 3rem 0;
}
.divider-label {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 3rem 0;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--ink-mute);
}
.divider-label::before,
.divider-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* ============================================================
   ERROR PAGE — editorial 404
   ============================================================ */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--paper);
}
.error-container {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 640px;
}
.error-code {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(8rem, 22vw, 16rem);
    line-height: .85;
    color: var(--terracotta);
    margin-bottom: 1rem;
    font-variation-settings: "SOFT" 20, "opsz" 144;
    letter-spacing: -0.05em;
}
.error-title { font-size: 2rem; margin-bottom: 1rem; }
.error-message {
    color: var(--ink-mute);
    margin: 0 auto 2.5rem;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 28em;
    line-height: 1.5;
}

/* ============================================================
   MODAL — sharp editorial
   ============================================================ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 18, 8, .55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), visibility .35s var(--ease);
    padding: 1.5rem;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal {
    background: var(--paper-cool);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px) scale(.97);
    transition: transform .4s var(--ease);
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}
.modal-header h3 { letter-spacing: -0.02em; }
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--ink-mute);
    line-height: 1;
    padding: 0;
    transition: color .2s var(--ease);
}
.modal-close:hover { color: var(--terracotta); }

/* ============================================================
   TABLES — editorial, hairline-based
   ============================================================ */
.table-wrap {
    overflow-x: auto;
    background: var(--paper-cool);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
    padding: 1.1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
    vertical-align: middle;
}
.table th {
    background: transparent;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-mute);
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .2s var(--ease); }
.table tbody tr:hover { background: var(--paper); }

/* ============================================================
   AUTH PAGES — editorial split / centered
   ============================================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    background:
        radial-gradient(ellipse 600px 400px at 20% 30%, rgba(196,84,58,.06) 0%, transparent 60%),
        radial-gradient(ellipse 500px 400px at 80% 70%, rgba(124,139,102,.08) 0%, transparent 60%),
        var(--paper);
    position: relative;
    overflow: hidden;
}
.auth-page::before,
.auth-page::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 100%;
    background: var(--line);
    top: 0;
}
.auth-page::before { left: 8%; }
.auth-page::after  { right: 8%; }
@media (max-width: 768px) {
    .auth-page::before, .auth-page::after { display: none; }
}

.auth-card {
    background: var(--paper-cool);
    padding: 3rem 2.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    max-width: 460px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow);
    z-index: 1;
}
.auth-brand {
    text-align: center;
    margin-bottom: 2.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--terracotta);
}
.auth-brand .brand-icon { display: none; }
.auth-brand::before {
    content: '— ';
    color: var(--ink-faint);
}
.auth-brand::after {
    content: ' —';
    color: var(--ink-faint);
}
.auth-title {
    text-align: center;
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(2rem, 4vw, 2.5rem);
    line-height: 1;
    letter-spacing: -0.03em;
}
.auth-subtitle {
    text-align: center;
    color: var(--ink-mute);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    max-width: 26em;
    margin-left: auto;
    margin-right: auto;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    color: var(--ink-mute);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}
.auth-divider::before { margin-right: 1.25rem; }
.auth-divider::after  { margin-left: 1.25rem; }

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.88rem;
    color: var(--ink-mute);
}
.auth-footer a { color: var(--terracotta); font-weight: 500; }

/* En auth, los forms usan look boxed */
.auth-card .form-input,
.auth-card .form-select,
.auth-card .form-textarea {
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    background: var(--paper);
}
.auth-card .form-input:focus {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(196,84,58,.08);
}

/* ============================================================
   ANIMATIONS — page-load orchestration
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(.97); }
    to   { opacity: 1; transform: scale(1); }
}

/* Auto-reveal on page load */
.reveal { animation: fadeUp .8s var(--ease) both; }
.reveal-1 { animation-delay: .05s; }
.reveal-2 { animation-delay: .15s; }
.reveal-3 { animation-delay: .25s; }
.reveal-4 { animation-delay: .35s; }
.reveal-5 { animation-delay: .45s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }
    .auth-card { padding: 2rem 1.5rem; }
    .modal { padding: 1.75rem; }
    .table th, .table td { padding: 0.85rem 1rem; }
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* ============================================================
   PAYMENT STATUS PAGES
   ============================================================ */
.payment-status-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem;
}

.payment-status {
    background: var(--paper-cool);
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    padding: 3rem 2rem;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.payment-status h2 {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--ink);
}

.payment-status p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.payment-status.success {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(94, 107, 77, 0.05), transparent);
}

.payment-status.success h2 {
    color: var(--success);
}

.payment-status.failure {
    border-color: var(--error);
    background: linear-gradient(135deg, rgba(154, 62, 42, 0.05), transparent);
}

.payment-status.failure h2 {
    color: var(--error);
}

.payment-status.pending {
    border-color: var(--warning);
    background: linear-gradient(135deg, rgba(184, 146, 79, 0.05), transparent);
}

.payment-status.pending h2 {
    color: var(--warning);
}

.payment-status.failure ul {
    text-align: left;
    display: inline-block;
    list-style: none;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    background: var(--paper-warm);
}

.payment-status.failure li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

.payment-status.failure li::before {
    content: "• ";
    color: var(--error);
    font-weight: 600;
    margin-right: 0.5rem;
}

.payment-status .btn {
    margin-top: 2rem;
}
