:root {
    --brand-950: #831843;
    --brand-900: #9d174d;
    --brand-800: #9d174d;
    --brand-700: #be185d;
    --brand-600: #c92b6c;
    --brand-100: #fce7f3;
    --brand-50: #fdf2f8;
    --accent-700: #5b21b6;
    --accent-600: #6d28d9;
    --accent-500: #7c3aed;
    --accent-100: #f5f3ff;
    --ink-950: #1f172a;
    --ink-800: #413849;
    --ink-600: #716a78;
    --ink-400: #9f96a3;
    --surface: #ffffff;
    --surface-soft: #fff7fb;
    --surface-warm: #fdf2f8;
    --line: #ede4ea;
    --success: #6d28d9;
    --success-bg: #f5f3ff;
    --warning: #b45309;
    --warning-bg: #fffbeb;
    --danger: #b91c1c;
    --danger-bg: #fef2f2;
    --info: #1d4ed8;
    --info-bg: #eff6ff;
    --gold: #fbbf24;
    --shadow-sm: none;
    --shadow-md: none;
    --radius-sm: .65rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --sidebar-width: 248px;
    --sidebar-bg: #0C1428;
    --sidebar-surface: #151F35;
    --sidebar-surface-hover: #1A2640;
    --sidebar-border: rgba(255, 255, 255, 0.07);
    --sidebar-text: #AAB6CC;
    --sidebar-text-muted: #657695;
    --sidebar-heading: #5E6F90;
    --sidebar-icon: #8FA0BD;
    --sidebar-hover: rgba(255, 255, 255, 0.055);
    --sidebar-active: #31206B;
    --sidebar-active-hover: #39267A;
    --sidebar-active-accent: #8B3DFF;
    --sidebar-active-text: #FFFFFF;
}

.asset-icon {
    display: inline-block;
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    vertical-align: middle;
}

.asset-icon-xl {
    width: 6rem;
    height: 6rem;
}

.asset-icon-lg {
    width: 5rem;
    height: 5rem;
}

.asset-icon-md {
    width: 3.5rem;
    height: 3.5rem;
}

.asset-icon-sm {
    width: 1.25rem;
    height: 1.25rem;
}

.asset-icon-xs {
    width: 1rem;
    height: 1rem;
}

html {
    scroll-behavior: smooth;
}

/* Custom sleek scrollbars */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(157, 23, 77, 0.22) transparent;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(157, 23, 77, 0.2);
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(157, 23, 77, 0.38);
}

::-webkit-scrollbar-thumb:active {
    background: rgba(157, 23, 77, 0.55);
}

::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

body.regalo-app {
    margin: 0;
    color: var(--ink-950);
    background: var(--surface-soft);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: .9375rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--ink-950);
    letter-spacing: -.025em;
}

a {
    color: var(--accent-600);
}

.text-primary {
    color: var(--brand-700) !important;
}

.text-muted {
    color: var(--ink-600) !important;
}

.bg-light {
    background-color: var(--surface-soft) !important;
}

/* Core controls */
.btn {
    min-height: 42px;
    border-radius: .75rem;
    padding: .55rem 1rem;
    font-weight: 650;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:focus-visible {
    outline: 3px solid rgba(109, 40, 217, .22);
    outline-offset: 2px;
    box-shadow: none;
}

.btn-primary {
    background: var(--brand-700);
    border-color: var(--brand-700);
    box-shadow: none;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--brand-800);
    border-color: var(--brand-800);
    box-shadow: none;
}

.btn-outline-primary {
    color: var(--brand-700);
    border-color: #e5a9c4;
}

.btn-outline-primary:hover {
    background: var(--brand-50);
    color: var(--brand-900);
    border-color: var(--brand-700);
}

.btn-secondary {
    color: var(--accent-600);
    background: #fff;
    border-color: var(--line);
    box-shadow: none;
}

.btn-secondary:hover,
.btn-secondary:focus {
    color: var(--accent-700);
    background: var(--accent-100);
    border-color: var(--accent-600);
}

.btn-success {
    color: #fff;
    background: var(--accent-600);
    border-color: var(--accent-600);
    box-shadow: none;
}

.btn-success:hover,
.btn-success:focus {
    color: #fff;
    background: var(--accent-700);
    border-color: var(--accent-700);
}

.btn-outline-success {
    color: var(--accent-700);
    border-color: #c4b5fd;
    background: transparent;
}

.btn-outline-success:hover,
.btn-outline-success:focus {
    color: #fff;
    border-color: var(--accent-600);
    background: var(--accent-600);
}

.btn-primary:active,
.primary-action:active {
    background: var(--brand-950);
    border-color: var(--brand-950);
}

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
}

.btn-sm {
    min-height: 34px;
    border-radius: .6rem;
}

.form-label {
    margin-bottom: .45rem;
    color: var(--ink-800);
    font-size: .84rem;
    font-weight: 650;
}

.form-control,
.form-select,
.input-group-text {
    min-height: 46px;
    border-color: var(--line);
    border-radius: .75rem;
    background-color: var(--surface);
}

.form-control,
.form-select {
    padding: .65rem .85rem;
}

.form-control::placeholder,
textarea::placeholder {
    color: var(--ink-600);
    opacity: 1;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-600);
    box-shadow: 0 0 0 .2rem rgba(109, 40, 217, .12);
}

.input-group> :not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group> :not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.form-check-input:checked {
    background-color: var(--brand-700);
    border-color: var(--brand-700);
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: none;
}

.card.shadow-sm {
    box-shadow: none !important;
}

.rounded-4 {
    border-radius: var(--radius-lg) !important;
}

.badge {
    border-radius: 999px;
    padding: .42em .7em;
    font-weight: 650;
    letter-spacing: .005em;
    color: white;
}

.badge.bg-primary,
.badge.bg-info {
    background: var(--brand-100) !important;
    color: var(--brand-900) !important;
}

.badge.bg-secondary,
.badge.bg-secondary-subtle,
.badge-inactive {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
}

.badge.bg-success {
    background: var(--success-bg) !important;
    color: var(--success) !important;
}

.badge.bg-warning {
    background: var(--warning-bg) !important;
    color: var(--warning) !important;
}

.badge.bg-danger {
    background: var(--danger-bg) !important;
    color: var(--danger) !important;
}

.alert {
    border: 0;
    border-radius: var(--radius-md);
}

.alert-info {
    background: var(--brand-50);
    color: var(--brand-900);
}

.modal {
    padding: clamp(.75rem, 2vw, 1.25rem);
}

.modal-dialog {
    width: min(100%, 520px);
    margin: auto;
}

.modal-dialog.modal-sm {
    width: min(100%, 400px);
}

.modal-dialog.modal-lg {
    width: min(100%, 800px);
}

.modal-dialog.modal-xl {
    width: min(100%, 1080px);
}

.modal-content {
    width: 100%;
    border: 0;
    border-radius: var(--radius-lg);
    box-shadow: none;
}

.modal-header,
.modal-footer {
    align-items: center;
    gap: .75rem;
    padding: 1rem clamp(1.15rem, 3vw, 1.5rem);
    border-color: var(--line);
}

.modal-header {
    min-height: 64px;
}

.modal-title,
.modal-header h2,
.modal-header h3,
.modal-header h4,
.modal-header h5,
.modal-header h6 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.modal-body {
    padding: 1.25rem clamp(1.15rem, 3vw, 1.5rem);
}

.modal-footer {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dropdown-menu {
    border: 1px solid var(--line);
    border-radius: .85rem;
    padding: .5rem;
    box-shadow: none;
}

.dropdown-item {
    border-radius: .55rem;
    padding: .55rem .7rem;
}

.dropdown-item:active {
    background: var(--accent-600);
}

/* Public navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(255, 255, 255, .95);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.site-container {
    max-width: 1180px;
}

.site-navigation {
    min-height: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: var(--brand-950);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -.035em;
    text-decoration: none;
    white-space: nowrap;
}

.brand-lockup>span:last-child span {
    color: var(--accent-600);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: .8rem;
    color: #fff;
    background: var(--brand-700);
    box-shadow: none;
}

.brand-logo-img {
    height: 34px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
}

.app-sidebar .brand-logo-img {
    height: auto;
    max-height: 38px;
    max-width: 140px;
    object-fit: contain;
}

.site-navigation-panel {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-links {
    display: flex;
    align-items: center;
    gap: .1rem;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.site-links a {
    position: relative;
    display: block;
    padding: 1.55rem .72rem;
    color: var(--ink-600);
    font-weight: 600;
    text-decoration: none;
}

.site-links a:hover,
.site-links a.active {
    color: var(--brand-900);
}

.site-links a.active::after {
    content: "";
    position: absolute;
    left: .72rem;
    right: .72rem;
    bottom: 0;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: var(--accent-600);
}

.site-menu-toggle {
    display: none;
    min-height: 40px;
    margin-left: auto;
    padding: .45rem .75rem;
    border: 1px solid var(--line);
    border-radius: .65rem;
    background: #fff;
    font-weight: 650;
}

.site-navigation-backdrop,
.mobile-navigation-header {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.header-icon-link {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: .7rem;
    color: var(--ink-800);
    font-size: 1.2rem;
}

.header-icon-link:hover {
    background: var(--surface-soft);
    color: var(--brand-700);
}

.public-content {
    min-height: 62vh;
    background: var(--surface);
}

.header-balance-link,
.header-text-link {
    color: var(--ink-800);
    font-weight: 620;
    text-decoration: none;
    white-space: nowrap;
}

.account-menu {
    position: relative;
}

.account-menu-trigger {
    min-height: 42px;
    max-width: 230px;
    overflow: hidden;
    padding: .55rem .85rem;
    border: 1px solid #c9b7c0;
    border-radius: .7rem;
    color: var(--brand-900);
    background: #fff;
    font-weight: 680;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-menu-trigger::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin: 0 0 3px .55rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.account-menu-panel {
    position: absolute;
    top: calc(100% + .45rem);
    right: 0;
    z-index: 1060;
    width: 200px;
    margin: 0;
    padding: .45rem;
    border: 1px solid var(--line);
    border-radius: .8rem;
    background: #fff;
    box-shadow: none;
    list-style: none;
}

.account-menu-panel a,
.account-menu-panel button {
    display: block;
    width: 100%;
    padding: .62rem .7rem;
    border: 0;
    border-radius: .55rem;
    color: var(--ink-800);
    background: transparent;
    text-align: left;
    text-decoration: none;
}

.account-menu-panel a:hover,
.account-menu-panel button:hover {
    background: var(--surface-soft);
}

.account-menu-divider {
    height: 1px;
    margin: .35rem .2rem;
    background: var(--line);
}

.account-menu-logout {
    color: var(--danger) !important;
}

/* Public home */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 510px;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    background: linear-gradient(118deg, #fff7fb 0%, #ffffff 57%, #fce7f3 100%) !important;
}

.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::before {
    width: 390px;
    height: 390px;
    right: 3%;
    top: 7%;
    background: var(--accent-100);
    opacity: .72;
}

.hero-section::after {
    width: 260px;
    height: 260px;
    right: 13%;
    top: 20%;
    border: 42px solid rgba(109, 40, 217, .08);
}

.hero-section .container {
    position: relative;
    z-index: 1;
    text-align: left !important;
}

.hero-section h1 {
    max-width: 790px;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: .98;
    letter-spacing: -.065em;
}

.hero-section .lead {
    max-width: 650px;
    color: var(--ink-600) !important;
    font-size: 1.15rem;
}

.hero-section .d-flex {
    justify-content: flex-start !important;
}

.hero-section .btn {
    min-height: 52px;
    border-radius: .85rem !important;
    box-shadow: none !important;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: 1.25rem;
    padding: .42rem .72rem;
    border: 1px solid rgba(190, 24, 93, .16);
    border-radius: 999px;
    color: var(--brand-800);
    background: rgba(255, 255, 255, .68);
    font-size: .78rem;
    font-weight: 750;
}

.hero-kicker i {
    color: var(--accent-600);
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 2rem;
    color: var(--ink-600);
    font-size: .8rem;
    font-weight: 600;
}

.hero-proof i {
    margin-right: .25rem;
    color: var(--brand-700);
}

.gift-card-stage {
    position: relative;
    height: 330px;
    perspective: 900px;
}

.gift-card-demo {
    position: absolute;
    width: 390px;
    max-width: 94%;
    height: 235px;
    border-radius: 1.4rem;
}

.gift-card-back {
    top: 15px;
    right: 5px;
    transform: rotate(8deg);
    background: var(--accent-500);
    opacity: .38;
}

.gift-card-front {
    top: 52px;
    right: 28px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.65rem;
    color: #fff;
    transform: rotate(-4deg);
    background: linear-gradient(135deg, var(--brand-700), var(--accent-600));
    box-shadow: none;
}

.gift-card-logo {
    font-size: 1.1rem;
    font-weight: 800;
}

.gift-card-message {
    font-size: 1.25rem;
    line-height: 1.3;
}

.gift-card-message strong {
    font-size: 1.55rem;
}

.gift-card-amount {
    font-size: 1.2rem;
    font-weight: 800;
}

.gift-float {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 1rem;
    color: #fff;
    box-shadow: none;
}

.gift-float-heart {
    top: 24px;
    left: 10px;
    background: var(--accent-600);
    transform: rotate(-8deg);
}

.gift-float-star {
    right: 5px;
    bottom: 15px;
    color: var(--ink-950);
    background: var(--gold);
    transform: rotate(10deg);
}

.discovery-wrap {
    position: relative;
    z-index: 3;
    margin-top: -2.8rem;
}

.discovery-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .98);
    box-shadow: none;
}

.discovery-heading {
    margin-bottom: 1.25rem;
}

.discovery-heading .eyebrow {
    margin-bottom: .2rem;
    color: var(--accent-600);
}

#purchase-options {
    padding-top: 3.5rem !important;
    padding-bottom: 2.5rem !important;
}

#purchase-options .row {
    justify-content: stretch !important;
}

#purchase-options .col-lg-5 {
    flex: 0 0 50%;
    max-width: 50%;
}

#purchase-options .card-body {
    text-align: left !important;
    padding: 2rem !important;
}

#purchase-options .card-body>.text-primary {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 1.5rem !important;
    border-radius: 1rem;
    background: var(--brand-100);
}

#purchase-options .card-body>.text-primary i {
    font-size: 1.55rem !important;
}

#purchase-options h3 {
    font-size: 1.35rem;
}

#purchase-options .btn {
    width: auto !important;
    align-self: flex-start;
    border-radius: .75rem !important;
    padding: .65rem 1rem !important;
}

.hover-card:hover,
.model-card:hover,
.merchant-card:hover,
.action-pill:hover {
    transform: translateY(-3px);
    box-shadow: none !important;
}

.action-pill {
    border-color: var(--line) !important;
    box-shadow: none !important;
    border-radius: var(--radius-md) !important;
}

.action-pill:hover {
    border-color: #d9b4c7 !important;
}

.card-carousel {
    gap: 1rem !important;
    scroll-padding-left: 1rem;
}

.carousel-card {
    min-width: 260px !important;
    max-width: 260px !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
}

.carousel-card .card-img-top {
    border-radius: 0 !important;
}

.favorite-btn {
    box-shadow: none !important;
}

/* Catalogs and public forms */
.public-content>.container {
    max-width: 1180px;
}

.public-content .display-5 {
    font-size: clamp(2.1rem, 4vw, 3.35rem);
    letter-spacing: -.05em;
}

.auth-page {
    min-height: 68vh;
    display: flex;
    align-items: center;
    padding: 3rem 1rem 5rem;
    background: linear-gradient(140deg, var(--brand-50), #fff 48%, var(--surface-warm));
}

.auth-page .card {
    margin-top: 0 !important;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: none !important;
}

.auth-page .card-body {
    padding: clamp(1.5rem, 5vw, 2.5rem) !important;
}

.auth-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    border-radius: 1rem;
    color: var(--brand-900);
    background: var(--brand-100);
    font-size: 1.35rem;
}

.merchant-card {
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.merchant-card .logo-img,
.merchant-card .logo-placeholder {
    width: 64px;
    height: 64px;
    object-fit: cover;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: var(--brand-50);
    color: var(--ink-800);
}

.table> :not(caption)>*>* {
    padding: .9rem 1rem;
    border-bottom-color: var(--line);
}

.table thead th {
    color: var(--ink-600);
    background: var(--surface-soft) !important;
    font-size: .73rem;
    font-weight: 750;
    letter-spacing: .045em;
    text-transform: uppercase;
    white-space: nowrap;
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table-responsive {
    border-radius: inherit;
}

.app-shell {
    min-height: 100vh;
    background: var(--surface-soft);
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    color: var(--sidebar-text);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    box-sizing: border-box;
}

.app-sidebar-brand {
    height: 84px;
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid var(--sidebar-border);
    background: transparent;
    flex-shrink: 0;
    box-sizing: border-box;
}

.app-sidebar .brand-lockup {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
}

.sidebar-close {
    display: none;
    border: 0;
    color: var(--sidebar-text);
    background: transparent;
    font-size: 1.25rem;
    padding: 6px;
    cursor: pointer;
    border-radius: 8px;
    line-height: 1;
    transition: color 160ms ease, background-color 160ms ease;
}

.sidebar-close:hover {
    color: #FFFFFF;
    background: var(--sidebar-hover);
}

.sidebar-workspace {
    padding: 18px 16px 8px;
    flex-shrink: 0;
}

.sidebar-workspace-label {
    display: block;
    padding: 0 8px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #71809F;
}

.sidebar-workspace-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--sidebar-surface);
    border: 1px solid var(--sidebar-border);
    border-radius: 12px;
    padding: 12px 14px;
    min-height: 54px;
    box-sizing: border-box;
}

.sidebar-workspace-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.sidebar-workspace-info i,
.sidebar-workspace-info .bi {
    width: 18px;
    height: 18px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #8FA0BD;
}

.sidebar-workspace-title {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-workspace-chevron {
    color: #71809F;
    font-size: 14px;
    margin-left: 6px;
    flex-shrink: 0;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 14px 16px;
    border: 0;
    flex-shrink: 0;
}

.eyebrow {
    display: block;
    color: var(--ink-400);
    font-size: .7rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 0 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.sidebar-nav::-webkit-scrollbar,
.app-sidebar::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.sidebar-nav::-webkit-scrollbar-track,
.app-sidebar::-webkit-scrollbar-track {
    background: transparent;
    margin: 6px 0;
}

.sidebar-nav::-webkit-scrollbar-thumb,
.app-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 9999px;
    transition: background-color .2s ease;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover,
.app-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.28);
}

.sidebar-nav::-webkit-scrollbar-thumb:active,
.app-sidebar::-webkit-scrollbar-thumb:active {
    background: rgba(255, 255, 255, 0.45);
}

.sidebar-nav::-webkit-scrollbar-button,
.app-sidebar::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.sidebar-label {
    display: block;
    padding: 24px 22px 8px;
    color: var(--sidebar-heading);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sidebar-nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 44px;
    min-height: 44px;
    margin: 3px 12px;
    padding: 0 14px;
    border-radius: 10px;
    color: var(--sidebar-text);
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease;
    box-sizing: border-box;
    user-select: none;
}

.sidebar-nav a i,
.sidebar-nav a .bi {
    width: 18px;
    height: 18px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--sidebar-icon);
    transition: color 160ms ease;
}

.sidebar-nav a span {
    color: inherit;
    font-size: 14px;
    font-weight: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-nav a:hover {
    background: var(--sidebar-hover);
    color: #FFFFFF;
}

.sidebar-nav a:hover i,
.sidebar-nav a:hover .bi {
    color: #FFFFFF;
}

.sidebar-nav a.active {
    background: var(--sidebar-active);
    color: var(--sidebar-active-text);
    font-weight: 600;
}

.sidebar-nav a.active:hover {
    background: var(--sidebar-active-hover);
    color: #FFFFFF;
}

.sidebar-nav a.active i,
.sidebar-nav a.active .bi {
    color: #FFFFFF;
}

.sidebar-nav a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--sidebar-active-accent);
}

.sidebar-nav a:focus-visible,
.app-sidebar button:focus-visible,
.sidebar-user-footer button:focus-visible,
.sidebar-close:focus-visible {
    outline: 2px solid #A973FF;
    outline-offset: 2px;
}

.sidebar-nav a.disabled,
.sidebar-nav a[aria-disabled="true"] {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}

.sidebar-user-footer {
    min-height: 76px;
    padding: 12px 18px;
    border-top: 1px solid var(--sidebar-border);
    background: transparent;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: #362176;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.sidebar-user-name {
    font-size: 12px;
    font-weight: 600;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.sidebar-user-role {
    font-size: 11px;
    color: #7889A8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.sidebar-logout-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--sidebar-text-muted);
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 160ms ease, color 160ms ease;
    font-size: 16px;
    padding: 0;
}

.sidebar-logout-btn:hover {
    background: var(--sidebar-hover);
    color: #FFFFFF;
}

.sidebar-login-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 8px;
    width: 100%;
    transition: background-color 160ms ease, color 160ms ease;
}

.sidebar-login-link:hover {
    background: var(--sidebar-hover);
    color: #FFFFFF;
}

.app-main {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    overflow-x: hidden;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 0 clamp(.75rem, 3vw, 2.25rem);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .93);
    backdrop-filter: blur(12px);
}

.topbar-title {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.sidebar-toggle {
    display: none;
    min-width: 56px;
    height: 40px;
    padding: 0 .65rem;
    border: 1px solid var(--line);
    border-radius: .7rem;
    background: #fff;
    font-size: .76rem;
    font-weight: 700;
}

.topbar-title strong {
    font-size: 1rem;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-left: auto;
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: .45rem .7rem;
    color: var(--ink-800);
    font-weight: 620;
    text-decoration: none;
}

.icon-button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: .7rem;
    color: var(--ink-800);
    background: #fff;
}

.user-chip {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .45rem .72rem;
    border: 1px solid var(--line);
    border-radius: .7rem;
    color: var(--ink-800);
    background: #fff;
    font-weight: 650;
}

.user-avatar {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: .55rem;
    color: var(--brand-900);
    background: var(--brand-100);
}

.app-content {
    max-width: 1500px;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2.25rem);
}

.app-content>.d-flex:first-child {
    gap: 1rem;
    flex-wrap: wrap;
}

.app-content>.d-flex:first-child h1,
.app-content>.d-flex:first-child h2,
.app-content>.d-flex:first-child h3 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 750;
}

.app-content>.card,
.app-content>form>.card {
    border-color: var(--line);
    box-shadow: none;
}

.app-content .card-header {
    padding: 1rem 1.2rem;
    border-color: var(--line);
    background: #fff;
    font-weight: 700;
}

.app-content .card-body {
    padding: 1.2rem;
}

/* Admin content patterns */
.app-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
}

.app-page-header>div:first-child {
    min-width: 0;
}

.app-page-header .eyebrow {
    margin-bottom: .35rem;
    color: var(--brand-600);
}

.app-page-header h1 {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 780;
    letter-spacing: -.045em;
}

.app-page-header p {
    max-width: 680px;
    margin: .45rem 0 0;
    color: var(--ink-600);
}

.app-page-header>.btn,
.app-page-header>div:last-child:not(:first-child) {
    flex: 0 0 auto;
}

.app-page-header .btn {
    white-space: nowrap;
}

.admin-table {
    width: 100%;
    min-width: 0 !important;
    margin: 0;
}

.admin-table th,
.admin-table td {
    padding: .85rem .75rem;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.admin-table td:first-child {
    padding-left: 1rem;
}

.admin-table th:first-child {
    padding-left: 1rem;
}

.admin-table td:last-child,
.admin-table th:last-child {
    padding-right: 1rem;
}

.admin-table a {
    overflow-wrap: anywhere;
}

.admin-actions-cell {
    white-space: nowrap;
}

.admin-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .35rem;
}

.admin-actions-cell .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    white-space: nowrap;
}

.icon-action {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
}

.btn-outline-secondary {
    border-color: #d6cbd1;
    color: var(--ink-800);
}

.btn-outline-danger {
    border-color: #e6a3a3;
    color: var(--danger);
}

.btn-outline-warning {
    border-color: #e8bd7c;
    color: #9a5c13;
}

.danger-modal {
    overflow: hidden;
    border: 0 !important;
}

.danger-modal .modal-header {
    color: var(--danger);
    background: var(--danger-bg);
    border-top: 4px solid var(--danger);
}

.danger-modal .modal-title {
    color: var(--danger);
}

.danger-modal .btn-secondary {
    background: #fff;
    border-color: #d6cbd1;
    color: var(--ink-800);
}

.admin-tabs {
    display: inline-flex;
    list-style: none !important;
    margin: 0 0 1.25rem 0;
    padding: .3rem;
    gap: .3rem;
    border: 1px solid var(--line);
    border-radius: .85rem;
    background: #f1f5f9;
}

.admin-tabs li,
.admin-tabs .nav-item {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.admin-tabs .nav-link,
.admin-tabs button {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .85rem;
    border: 0;
    border-radius: .62rem;
    color: #475569;
    font-weight: 600;
    font-size: .88rem;
    text-decoration: none !important;
    background: transparent;
    cursor: pointer;
    transition: all .2s ease;
}

.admin-tabs .nav-link:hover,
.admin-tabs button:hover {
    color: #0f172a;
    text-decoration: none !important;
}

.admin-tabs .nav-link.active,
.admin-tabs button.active {
    color: var(--accent-700);
    background: #fff;
    box-shadow: none;
    font-weight: 700;
    text-decoration: none !important;
}

.empty-state {
    display: flex;
    min-height: 300px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    border: 1px dashed #cbd7d4;
    border-radius: var(--radius-lg);
    text-align: center;
    background: #fbfcfc;
}

.empty-state-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 1rem;
    border-radius: 1rem;
    color: var(--brand-700);
    background: var(--brand-100);
    font-size: 1.45rem;
}

.empty-state p {
    max-width: 470px;
    margin-bottom: 1.25rem;
    color: var(--ink-600);
}

.featured-admin-page {
    padding-top: .25rem;
}

.featured-section-card {
    overflow: hidden;
    border-color: var(--line);
    box-shadow: none;
}

.featured-section-card>.card-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 78px;
    padding: 1rem 1.1rem;
    background: #fff;
}

.featured-section-card>.card-header p {
    color: var(--ink-600);
    font-size: .78rem;
}

.section-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: .75rem;
    color: var(--brand-800);
    background: var(--brand-100);
    font-size: 1.05rem;
}

.featured-picker {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .5rem;
}

.featured-picker .form-select {
    width: 100%;
    min-width: 0;
}

.featured-picker .btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
}

.featured-card-list {
    border-radius: .75rem;
    overflow: hidden;
}

.featured-card-list .list-group-item {
    min-height: 70px;
    padding: .7rem .75rem;
    border-color: var(--line);
}

.featured-card-name {
    min-width: 0;
    overflow: hidden;
}

.featured-card-name strong,
.featured-card-name small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.featured-order-actions {
    flex: 0 0 auto;
}

.featured-order-actions .btn {
    min-width: 34px;
    min-height: 34px;
    padding: .35rem .45rem;
}

.list-group-item {
    border-color: var(--line);
}

.list-group-item.active {
    color: #fff;
    background: var(--accent-600);
    border-color: var(--accent-600);
}

.admin-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.admin-overview-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 1rem;
    min-height: 174px;
    padding: 1.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--ink-950);
    background: #fff;
    text-decoration: none;
    box-shadow: none;
    transition: transform .18s ease, border-color .18s ease;
}

.admin-overview-card:hover {
    color: var(--ink-950);
    transform: translateY(-2px);
    border-color: #c4b5fd;
    box-shadow: none;
}

.admin-overview-card.priority {
    background: linear-gradient(135deg, #fff 55%, var(--brand-50));
}

.overview-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: .85rem;
    color: var(--brand-800);
    background: var(--brand-100);
    font-size: 1.2rem;
}

.overview-label {
    color: var(--brand-600);
    font-size: .7rem;
    font-weight: 750;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.admin-overview-card h2 {
    margin: .25rem 0 .35rem;
    font-size: 1.08rem;
}

.admin-overview-card p {
    margin: 0;
    color: var(--ink-600);
    font-size: .86rem;
}

.overview-arrow {
    align-self: center;
    color: var(--ink-400);
}

.admin-secondary-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
}

.admin-secondary-panel p {
    color: var(--ink-600);
}

/* Validation and loading */
.valid.modified:not([type=checkbox]) {
    border-color: var(--success);
}

.form-control.invalid,
.form-select.invalid,
.form-control.is-invalid,
.form-select.is-invalid,
input.invalid,
select.invalid,
textarea.invalid,
.checkout-field-invalid {
    border-color: var(--danger, #b91c1c) !important;
    background-color: var(--danger-bg, #fef2f2) !important;
    box-shadow: 0 0 0 .16rem rgba(185, 28, 28, .1) !important;
    outline: none !important;
}

.validation-message,
.invalid-feedback,
.checkout-field-error {
    display: block;
    margin-top: .35rem;
    color: var(--danger, #b91c1c) !important;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.35;
}

#blazor-error-ui {
    position: fixed;
    z-index: 2000;
    right: 1rem;
    bottom: 1rem;
    display: none;
    padding: .8rem 1rem;
    border-radius: .8rem;
    color: #fff;
    background: var(--danger);
    box-shadow: none;
}

.app-loading {
    display: grid;
    place-items: center;
    padding-top: 20vh;
}

.loading-progress {
    width: 7rem;
    height: 7rem;
}

.loading-progress circle {
    fill: none;
    stroke: #f7ddea;
    stroke-width: 9;
}

.loading-progress circle:last-child {
    stroke: var(--brand-700);
    stroke-dasharray: calc(2.64 * var(--blazor-load-percentage, 0%)) 500%;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dasharray .18s ease-out;
}

.loading-progress-text {
    margin-top: 1rem;
    text-align: center;
    color: var(--ink-700);
    font-weight: 650;
}

.loading-progress-text span::after {
    content: var(--blazor-load-percentage-text, "0%");
}

.loading-progress-hint {
    margin-top: .3rem;
    color: var(--ink-500);
    font-size: .82rem;
}

.flex-field-container {
    min-height: 46px;
    padding: .55rem .75rem;
    border: 1px solid var(--line);
    border-radius: .75rem;
    background: #fff;
}

.flex-field-container iframe {
    width: 100%;
    height: 24px;
}

.flex-field-container.is-valid {
    border-color: var(--success);
}

.flex-field-container.is-invalid {
    border-color: var(--danger);
}

@media (max-width: 991.98px) {
    .header-actions {
        align-items: stretch;
        margin-top: .5rem;
        padding-top: .8rem;
        border-top: 1px solid var(--line);
    }

    .header-actions .primary-action {
        flex: 1;
    }

    .hero-section {
        min-height: 440px;
    }

    .hero-section::before {
        width: 260px;
        height: 260px;
        right: -100px;
    }

    .hero-section::after {
        display: none;
    }

    .app-sidebar {
        transform: translateX(-100%);
        transition: transform 200ms ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
        width: min(84vw, 300px);
        min-width: unset;
        background: var(--sidebar-bg);
        height: 100vh;
        height: 100dvh;
    }

    .app-main {
        margin-left: 0;
    }

    .sidebar-toggle,
    .sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .app-overlay {
        position: fixed;
        inset: 0;
        z-index: 1035;
        visibility: hidden;
        background: rgba(5, 8, 18, .55);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        opacity: 0;
        transition: opacity 200ms ease, visibility 200ms ease;
    }

    .sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .sidebar-open .app-overlay {
        visibility: visible;
        opacity: 1;
    }

    .action-label {
        display: none;
    }

    .admin-actions-cell .btn:not(.icon-action) {
        width: 38px;
        min-width: 38px;
        height: 38px;
        min-height: 38px;
        padding: 0;
    }

    .admin-overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .brand-lockup {
        font-size: 1.05rem;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .hero-section {
        min-height: 470px;
        padding: 2rem 0 !important;
    }

    .hero-section h1 {
        font-size: clamp(2.4rem, 12vw, 3.4rem);
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .hero-section .d-flex {
        align-items: stretch;
    }

    #purchase-options .col-lg-5 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .discovery-wrap {
        margin-top: -1.25rem;
    }

    .public-content>.container {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .app-topbar {
        min-height: 68px;
        padding: 0 .9rem;
    }

    .app-content {
        padding: 1rem;
    }

    .app-content>.d-flex:first-child {
        align-items: stretch !important;
    }

    .app-content>.d-flex:first-child>.d-flex,
    .app-content>.d-flex:first-child>.btn {
        width: 100%;
    }

    .app-page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .app-page-header>.btn {
        align-self: flex-start;
    }

    .app-page-header>div:last-child:not(:first-child) {
        width: 100%;
    }

    .app-page-header>div:last-child:not(:first-child) .form-select {
        min-width: 0;
        flex: 1;
    }

    .table-responsive .table:not(.admin-table) {
        min-width: 720px;
    }

    .admin-table {
        min-width: 620px !important;
    }

    .admin-table th,
    .admin-table td {
        padding: .72rem .55rem;
    }

    .featured-picker {
        grid-template-columns: 1fr;
    }

    .featured-picker .btn {
        justify-content: center;
    }

    .admin-secondary-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .modal-dialog {
        width: 100%;
        margin: auto;
    }

    footer.bg-dark {
        text-align: left !important;
    }

    /* Topbar compact: hide long texts */
    .topbar-title strong {
        font-size: .9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 38vw;
    }

    .topbar-link {
        padding: .45rem .5rem;
        font-size: .82rem;
    }

    .user-chip span {
        font-size: .82rem;
    }
}

@media (max-width: 479.98px) {
    .app-topbar {
        min-height: 58px;
        gap: .5rem;
    }

    .sidebar-toggle {
        min-width: 48px;
        height: 36px;
        font-size: .72rem;
    }

    .topbar-title strong {
        max-width: 28vw;
        font-size: .82rem;
    }

    .topbar-link {
        display: none;
    }

    .app-content {
        padding: .75rem;
    }

    /* Cards y contenedores: quitar padding horizontal extra */
    .app-content>.card .card-body {
        padding: .85rem;
    }

    /* Tabs: scroll horizontal en paneles muy pequeños */
    .admin-tabs {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
        white-space: nowrap;
        flex-wrap: nowrap;
    }

    .admin-tabs::-webkit-scrollbar {
        display: none;
    }

    /* Modales: full screen en xs */
    .modal-dialog {
        margin: 0;
        max-width: 100%;
    }

    .modal-content {
        border-radius: 0;
        border: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Public storefront: restrained editorial system */
.public-shell {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.public-shell .btn {
    border-radius: .55rem;
    box-shadow: none;
    font-weight: 650;
}

.public-shell .btn:hover {
    transform: none;
}

.public-shell .btn-primary {
    background: var(--brand-700);
    border-color: var(--brand-700);
    box-shadow: none;
}

.public-shell .btn-primary:hover {
    background: var(--brand-800);
    border-color: var(--brand-800);
    box-shadow: none;
}

.public-shell .btn-outline-primary {
    color: var(--brand-800);
    border-color: #e3a5c1;
    background: transparent;
}

.public-shell .btn-outline-primary:hover {
    color: var(--brand-900);
    border-color: var(--brand-800);
    background: var(--brand-50);
}

.public-shell .btn:focus,
.public-shell .btn:focus-visible {
    border-color: var(--brand-700);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, .14) !important;
}

.public-shell .header-actions .dropdown-toggle.show,
.public-shell .header-actions .dropdown-toggle:active {
    color: var(--brand-900) !important;
    border-color: var(--brand-700) !important;
    background: var(--brand-50) !important;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, .14) !important;
}

.public-shell .site-header {
    position: relative;
    background: #fff;
    backdrop-filter: none;
}

.public-shell .site-header .navbar {
    min-height: 68px;
}

.public-shell .brand-lockup {
    gap: .55rem;
    font-size: 1.02rem;
}

.public-shell .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-700), var(--accent-600));
    box-shadow: none;
    font-family: Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
}

.public-shell .brand-lockup>span:last-child span {
    color: var(--accent-600);
}

.public-shell .site-header .nav-link {
    padding: 1.35rem .65rem;
    font-size: .88rem;
}

.public-shell .site-header .nav-link.active::after {
    height: 2px;
    background: var(--brand-700);
}

.header-balance-link {
    margin-right: .35rem;
    color: var(--ink-800);
    font-size: .84rem;
    font-weight: 600;
    text-decoration: none;
}

/* ==========================================================================
   Home Pública & Public Components (Estilos modulares en componentes scoped)
   ========================================================================== */




.corporate-visual>div:last-child {
    border-bottom: 0;
}

.corporate-visual span {
    grid-row: 1 / 3;
    color: var(--accent-600);
    font-size: .72rem;
}

.corporate-visual strong {
    font-size: 1rem;
}

.corporate-visual small {
    color: var(--ink-600);
}

/* Merchant storefront */
.commerce-public-shell {
    min-height: 100vh;
    background: var(--surface);
}

.commerce-access-header {
    position: relative;
    z-index: 10;
    min-height: 64px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.commerce-access-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.commerce-access-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.commerce-login-link,
.commerce-register-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: .55rem .9rem;
    border-radius: .55rem;
    font-size: .84rem;
    font-weight: 700;
    text-decoration: none;
}

.commerce-login-link {
    color: var(--ink-800);
}

.commerce-login-link:hover {
    color: var(--brand-900);
    background: var(--brand-50);
}

.commerce-register-link {
    color: #fff;
    background: var(--brand-700);
}

.commerce-register-link:hover {
    color: #fff;
    background: var(--brand-800);
}

.storefront-hero {
    position: relative;
    height: clamp(230px, 24vw, 310px);
    overflow: hidden;
    background: var(--brand-100);
}

.storefront-hero-image,
.storefront-hero-fallback {
    width: 100%;
    height: 100%;
}

.storefront-hero-image {
    display: block;
    object-fit: cover;
    object-position: center;
}

.storefront-hero-fallback {
    background: linear-gradient(135deg, var(--brand-100), var(--accent-100));
}

.storefront-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(180deg, rgba(31, 23, 42, .04) 25%, rgba(31, 23, 42, .78) 100%);
}

.storefront-brand-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.55rem;
}

.storefront-logo {
    width: 68px;
    height: 68px;
    flex: 0 0 auto;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .86);
    border-radius: .65rem;
    background: #fff;
}

.storefront-brand-summary h1 {
    margin: .2rem 0 .15rem;
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.08;
}

.storefront-brand-summary p {
    margin: 0;
    color: rgba(255, 255, 255, .86);
    font-size: .88rem;
}

.storefront-eyebrow {
    color: #ffd8ce;
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.storefront-carousel-control {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0 0 .15rem;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    color: var(--brand-950);
    background: rgba(255, 255, 255, .9);
    font-size: 1.45rem;
    line-height: 1;
    transform: translateY(-50%);
}

.storefront-carousel-control.previous {
    left: 1rem;
}

.storefront-carousel-control.next {
    right: 1rem;
}

.storefront-carousel-control:hover,
.storefront-carousel-control:focus-visible {
    background: #fff;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .28);
}

.storefront-page {
    padding: 2.75rem 0 4.25rem;
}


.storefront-main {
    min-width: 0;
}

.storefront-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.storefront-section-heading h2 {
    margin: .2rem 0 0;
    font-size: 1.55rem;
    line-height: 1.15;
}

.storefront-section-heading .eyebrow,
.storefront-info-card>.eyebrow {
    color: var(--accent-700);
}

.storefront-count {
    color: var(--ink-600);
    font-size: .76rem;
    white-space: nowrap;
}

.storefront-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .85rem;
}

.storefront-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: .7rem;
    background: var(--surface);
    transition: border-color .18s ease;
}

.storefront-card:hover {
    border-color: #dcaac1;
}

.storefront-card-media {
    aspect-ratio: 1.6 / 1;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.storefront-card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.storefront-card-media>span {
    color: rgba(56, 25, 38, .72);
    font-size: .74rem;
    font-weight: 700;
}

.storefront-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.storefront-card-body h3 {
    min-height: 2.55em;
    margin: 0;
    font-size: .92rem;
    line-height: 1.28;
    letter-spacing: -.012em;
}

.storefront-price {
    align-self: flex-start;
    margin: .65rem 0 .85rem;
    padding: .22rem .52rem;
    border-radius: 999px;
    color: var(--accent-700);
    background: var(--accent-100);
    font-size: .72rem;
    font-weight: 750;
}

.storefront-card-action {
    width: 100%;
    min-height: 38px !important;
    margin-top: auto;
    font-size: .8rem;
}

.storefront-empty {
    padding: 2.5rem;
    border: 1px solid var(--line);
    border-radius: .7rem;
    background: #fff;
    text-align: center;
}

.storefront-empty h3 {
    margin: 0 0 .35rem;
    font-size: 1.05rem;
}

.storefront-empty p {
    margin: 0;
    color: var(--ink-600);
}

.storefront-locations {
    margin-top: 2.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
}

.storefront-section-heading.compact {
    margin-bottom: .9rem;
}

.storefront-section-heading.compact h2 {
    font-size: 1.25rem;
}

.storefront-location-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
}

.storefront-location {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .7rem;
    height: 100%;
    padding: .75rem;
    border: 1px solid var(--line);
    border-radius: .65rem;
    background: rgba(255, 255, 255, .62);
    overflow: hidden;
    transition: transform .2s ease-in-out, box-shadow .2s ease-in-out;
}

.storefront-location:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.storefront-location:focus-within {
    outline: 3px solid rgba(99, 102, 241, .3);
    outline-offset: 2px;
}

.storefront-location-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
}

.storefront-location-map {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: .55rem;
    background: var(--accent-100);
}

.storefront-location-map-tile {
    position: absolute;
    width: 256px;
    height: 256px;
    max-width: none;
    user-select: none;
    pointer-events: none;
}

.storefront-location-map-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 20px;
    height: 20px;
    color: #635bff;
    filter: drop-shadow(0 2px 2px rgba(31, 23, 42, .28));
    transform: translate(-50%, -88%);
}

.storefront-location-map-attribution {
    position: absolute;
    right: 2px;
    bottom: 1px;
    z-index: 2;
    padding: 0 2px;
    color: rgba(31, 23, 42, .68);
    background: rgba(255, 255, 255, .78);
    font-size: 5px;
    line-height: 1.25;
}

.storefront-location-map-loading {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, #f2eff7 20%, #faf9fc 40%, #f2eff7 60%);
    background-size: 200% 100%;
    animation: location-map-loading 1.25s linear infinite;
}

.storefront-location-map.is-unavailable .storefront-location-map-loading {
    animation: none;
    background: repeating-linear-gradient(135deg, #f4f1f7 0 8px, #eeebf3 8px 16px);
}

@keyframes location-map-loading {
    to {
        background-position-x: -200%;
    }
}

.storefront-location-copy {
    min-width: 0;
    padding: .05rem .15rem 0;
}

.storefront-location h3 {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin: 0 0 .25rem;
    font-size: .82rem;
}

.storefront-location h3 svg {
    flex-shrink: 0;
    color: var(--bs-primary, #6366f1);
}

.storefront-location p {
    margin: 0 0 0 1.65rem;
    color: var(--ink-600);
    font-size: .75rem;
    line-height: 1.45;
}

.storefront-aside {
    position: sticky;
    top: 1.25rem;
    display: grid;
    gap: .9rem;
}

.storefront-info-card {
    padding: 1.3rem;
    border: 1px solid var(--line);
    border-radius: .75rem;
    background: #fff;
}

.storefront-info-card h2 {
    margin: .25rem 0 1rem;
    font-size: 1.08rem;
    line-height: 1.25;
}

.storefront-contact-list {
    display: grid;
    gap: .75rem;
    margin: 0;
}

.storefront-contact-list div {
    min-width: 0;
}

.storefront-contact-list dt {
    margin-bottom: .12rem;
    color: var(--ink-600);
    font-size: .68rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.storefront-contact-list dd {
    overflow-wrap: anywhere;
    margin: 0;
    color: var(--ink-800);
    font-size: .8rem;
}

.storefront-contact-list a {
    color: inherit;
    text-decoration-color: #dcaac1;
    text-underline-offset: 3px;
}

.storefront-social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem .7rem;
    margin-top: 1rem;
    padding-top: .9rem;
    border-top: 1px solid var(--line);
}

.storefront-social-links>span {
    width: 100%;
    color: var(--ink-600);
    font-size: .72rem;
}

.storefront-social-links a {
    color: var(--brand-800);
    font-size: .78rem;
    font-weight: 650;
    text-decoration: none;
}

.storefront-social-links a:hover {
    color: var(--accent-700);
}

/* Info del comercio al pie de página */
.storefront-info-footer {
    padding: 2rem 0 3rem;
    background: var(--surface-soft, #faf9fc);
    border-top: 1px solid var(--line);
}

.storefront-info-footer .storefront-info-card {
    max-width: 720px;
    background: transparent;
    border: none;
    padding: 0;
}

.storefront-info-footer .storefront-contact-list {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* Botón volver atrás sobre el hero */
.storefront-back-bar {
    position: absolute;
    z-index: 3;
    top: .85rem;
    left: 0;
    right: 0;
}

/* Layout de tienda: ahora columna única (se eliminó el aside lateral) */
.storefront-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: start;
}

/* ==========================================================================
   STOREFRONT OPTION 4 — Sistema de diseño fiel a la propuesta aprobada
   Prefijo: sf4-
   ========================================================================== */

.sf4-page-root {
    background-color: #FFFFFF;
    min-height: 100vh;
    color: #171026;
    font-family: inherit;
    overflow-x: hidden;
}

.sf4-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: 24px;
}

/* ── Estado de carga y error ───────────────────────────────────────────────── */
.sf4-loading-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 16px;
}

.sf4-spinner {
    width: 2.75rem;
    height: 2.75rem;
    color: #6D28D9;
}

.sf4-loading-text {
    color: #665C70;
    font-size: 14px;
    font-weight: 600;
}

.sf4-not-found-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 65vh;
    padding: 32px 16px;
}

.sf4-not-found-card {
    text-align: center;
    max-width: 460px;
    background: #FAF7FC;
    border: 1px solid #EFE4F7;
    border-radius: 24px;
    padding: 40px 32px;
}

.sf4-not-found-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #EDE0F7;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
}

.sf4-not-found-title {
    font-size: 22px;
    font-weight: 800;
    color: #171026;
    margin: 0 0 8px;
}

.sf4-not-found-desc {
    font-size: 14px;
    color: #665C70;
    line-height: 1.5;
    margin: 0 0 24px;
}

/* ── Barra superior para volver al saldo ──────────────────────────────────── */
.sf4-back-bar {
    padding-top: 18px;
    padding-bottom: 6px;
}

.sf4-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 650;
    color: #6D28D9;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    background: #F4EDFA;
    transition: background 150ms ease;
}

.sf4-back-link:hover {
    background: #EDE0F7;
    color: #5B21B6;
}

/* ── 1. HERO SECTION ───────────────────────────────────────────────────────── */
.sf4-hero-section {
    padding: 36px 0 32px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAF8FD 100%);
}

.sf4-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.sf4-hero-info {
    max-width: 580px;
}

.sf4-merchant-lockup {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.sf4-merchant-badge {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #6D28D9;
    color: #FFFFFF;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(109, 40, 217, 0.2);
}

.sf4-merchant-badge.has-logo,
.sf4-merchant-badge:has(.sf4-merchant-badge-img) {
    background: transparent;
    box-shadow: none;
}

.sf4-merchant-badge-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf4-store-icon {
    width: 32px;
    height: 32px;
}

.sf4-merchant-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sf4-eyebrow-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #6D28D9;
    text-transform: uppercase;
}

.sf4-merchant-name {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    color: #171026;
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.sf4-location-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 650;
    color: #6B7280;
    background: #F3EEF8;
    padding: 2px 10px;
    border-radius: 999px;
    margin-top: 4px;
    align-self: flex-start;
}

.sf4-pin-icon {
    width: 12px;
    height: 12px;
    color: #6D28D9;
    flex-shrink: 0;
}

.sf4-hero-headline-wrap {
    margin-top: 8px;
}

.sf4-hero-title {
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #171026;
    margin: 0 0 16px;
}

.sf4-highlight-magenta {
    color: #C9145B;
    background: linear-gradient(135deg, #C9145B 0%, #9D174D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sf4-hero-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #665C70;
    max-width: 500px;
    margin: 0 0 24px;
}

.sf4-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 22px;
    background: #C9145B;
    color: #FFFFFF !important;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    box-shadow: 0 6px 18px rgba(201, 20, 91, 0.25);
    transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
    cursor: pointer;
}

.sf4-btn-primary:hover {
    background: #AD104D;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(201, 20, 91, 0.32);
}


.sf4-shield-check-icon {
    width: 16px;
    height: 16px;
    color: #6D28D9;
    flex-shrink: 0;
}

/* ── Visual 3D Hero / Banner ───────────────────────────────────────────────── */
.sf4-hero-visual {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sf4-banner-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(46, 18, 91, 0.12);
    border: 1px solid #EFE4F7;
    background: #FAF5FD;
}

.sf4-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sf4-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #171026;
    font-size: 18px;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background 150ms ease;
    z-index: 2;
}

.sf4-carousel-prev {
    left: 12px;
}

.sf4-carousel-next {
    right: 12px;
}

.sf4-3d-scene {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sf4-3d-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 20, 91, 0.12) 0%, rgba(109, 40, 217, 0.08) 50%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

.sf4-3d-podium-wrap {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(46, 18, 91, 0.08);
    border: 1px solid #EFE4F7;
    background: #FAF5FD;
}

.sf4-3d-bg-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}



.sf4-card-3d-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.sf4-card-3d-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #6D28D9;
    color: #FFFFFF;
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(109, 40, 217, 0.3);
}

.sf4-card-3d-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf4-card-3d-name {
    font-size: 10.5px;
    font-weight: 800;
    color: #171026;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}

.sf4-card-3d-title {
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #7C3AED;
    text-transform: uppercase;
}

/* ── 2. SECCIÓN DE TARJETAS ────────────────────────────────────────────────── */
.sf4-cards-section {
    padding: 44px 0 52px;
    background: #FFFFFF;
    border-top: 1px solid #F3EDF8;
}

.sf4-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.sf4-section-eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #6D28D9;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.sf4-section-title {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    color: #171026;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.sf4-section-sub {
    font-size: 14px;
    color: #665C70;
    margin: 0;
    max-width: 520px;
}

.sf4-btn-outline-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid #E5DCEB;
    background: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    color: #5B4E6B;
    text-decoration: none;
    transition: all 150ms ease;
    white-space: nowrap;
}

.sf4-btn-outline-pill:hover {
    border-color: #6D28D9;
    color: #6D28D9;
    background: #FAF5FD;
}

.sf4-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.sf4-card-item {
    background: #FFFFFF;
    border: 1px solid #EFE8F5;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.sf4-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(46, 18, 91, 0.08);
    border-color: #D8BCE8;
}

.sf4-card-media-wrap {
    position: relative;
    aspect-ratio: 1.25 / 1;
    background: #F8F3FB;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sf4-card-box-img {
    width: 76%;
    height: auto;
    object-fit: contain;
    transition: transform 250ms ease;
}

.sf4-card-item:hover .sf4-card-box-img {
    transform: scale(1.06);
}

.sf4-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf4-card-top-row {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.sf4-card-badge-soon {
    font-size: 9.5px;
    font-weight: 800;
    color: #FFFFFF;
    background: #2E125B;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.04em;
}

.sf4-card-badge-available {
    font-size: 9.5px;
    font-weight: 800;
    color: #FFFFFF;
    background: #C9145B;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.04em;
}

.sf4-card-price-tag {
    font-size: 12.5px;
    font-weight: 800;
    color: #171026;
    background: rgba(255, 255, 255, 0.85);
    padding: 2px 6px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.sf4-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sf4-card-title {
    font-size: 13px;
    font-weight: 750;
    color: #171026;
    margin: 0 0 4px;
    line-height: 1.3;
}

.sf4-card-desc {
    font-size: 11.5px;
    color: #766B80;
    margin: 0 0 14px;
    flex: 1;
    line-height: 1.4;
}

.sf4-card-btn-disabled {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ECE2F2;
    background: #FAF6FC;
    color: #8F8299;
    font-size: 12px;
    font-weight: 700;
    cursor: not-allowed;
    text-align: center;
}

.sf4-card-btn-active {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: none;
    background: #C9145B;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background 150ms ease;
}

.sf4-card-btn-active:hover {
    background: #AD104D;
}

/* ── 3. SECCIÓN SUCURSALES Y PUNTOS DE CANJE (ESTILO SF4) ──────────────────── */
.sf4-locations-section {
    padding: 48px 0 56px;
    background: #FAF8FD;
    border-top: 1px solid #F3EDF8;
}

.sf4-locations-count-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #EDE0F7;
    color: #6D28D9;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    border: 1px solid #E2D2F0;
    white-space: nowrap;
}

.sf4-locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.sf4-location-single-wrap {
    max-width: 600px;
    margin: 0 auto;
}

.sf4-location-card {
    background: #FFFFFF;
    border: 1px solid #EFE6F5;
    border-radius: 20px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 4px 16px rgba(46, 18, 91, 0.03);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.sf4-location-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(46, 18, 91, 0.08);
    border-color: #D8BCE8;
}

.sf4-location-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.sf4-location-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.sf4-location-icon-pin {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #EDE0F7;
    color: #6D28D9;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(109, 40, 217, 0.1);
}

.sf4-location-icon-pin svg {
    width: 19px;
    height: 19px;
}

.sf4-location-meta {
    min-width: 0;
    flex: 1;
}

.sf4-location-name {
    font-size: 15px;
    font-weight: 800;
    color: #171026;
    margin: 0 0 3px;
    line-height: 1.25;
}

.sf4-location-addr {
    font-size: 12px;
    color: #665C70;
    margin: 0;
    line-height: 1.4;
}

.sf4-location-city-pill {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 750;
    color: #6D28D9;
    background: #F4EDFA;
    border: 1px solid #E9DDF5;
    padding: 3px 10px;
    border-radius: 999px;
    flex-shrink: 0;
}

.sf4-location-map-wrap {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #EFE4F7;
    background: #F8F5FA;
}

.sf4-location-map {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #F6F0FA;
}

.sf4-location-map .storefront-location-map-tile {
    position: absolute;
    width: 256px;
    height: 256px;
    max-width: none;
    user-select: none;
    pointer-events: none;
}

.sf4-location-map .storefront-location-map-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    width: 26px;
    height: 26px;
    color: #C9145B;
    filter: drop-shadow(0 3px 6px rgba(201, 20, 91, 0.4));
    transform: translate(-50%, -90%);
    transition: transform 200ms ease;
}

.sf4-location-card:hover .sf4-location-map .storefront-location-map-marker {
    transform: translate(-50%, -98%) scale(1.08);
}

.sf4-location-map .storefront-location-map-attribution {
    position: absolute;
    right: 4px;
    bottom: 3px;
    z-index: 3;
    padding: 1px 5px;
    color: rgba(23, 16, 38, 0.65);
    background: rgba(255, 255, 255, 0.88);
    font-size: 8.5px;
    border-radius: 4px;
    backdrop-filter: blur(3px);
    line-height: 1.25;
}

.sf4-location-map-loading {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, #F3EDF8 20%, #FAF6FC 40%, #F3EDF8 60%);
    background-size: 200% 100%;
    animation: sf4-map-loading 1.25s linear infinite;
    z-index: 1;
}

.sf4-location-map.is-unavailable .sf4-location-map-loading {
    animation: none;
    background: repeating-linear-gradient(135deg, #F5F0F8 0 10px, #EFE8F5 10px 20px);
}

@keyframes sf4-map-loading {
    to {
        background-position-x: -200%;
    }
}

.sf4-location-map-overlay-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px);
    border: 1px solid #E5DCEB;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 750;
    color: #6D28D9;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(46, 18, 91, 0.08);
    transition: all 150ms ease;
}

.sf4-location-map-overlay-btn:hover {
    background: #6D28D9;
    color: #FFFFFF;
    border-color: #6D28D9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25);
}

.sf4-location-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    padding-top: 6px;
    border-top: 1px solid #F6F0FA;
    margin-top: auto;
}

.sf4-location-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #15803D;
    font-weight: 700;
    font-size: 11px;
}

.sf4-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16A34A;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}

.sf4-location-link-text {
    color: #6D28D9;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    font-size: 11.5px;
    transition: color 150ms ease;
}

.sf4-location-link-text:hover {
    color: #5B21B6;
    text-decoration: underline;
}

.sf4-locations-empty {
    text-align: center;
    padding: 40px 20px;
    background: #FFFFFF;
    border: 1px dashed #E2D2F0;
    border-radius: 20px;
    max-width: 540px;
    margin: 0 auto;
}

.sf4-locations-empty-icon {
    font-size: 36px;
    color: #A78BFA;
    display: block;
    margin-bottom: 10px;
}

.sf4-locations-empty-text {
    font-size: 13.5px;
    color: #665C70;
    margin: 0;
    line-height: 1.5;
}

/* ── 4. PIE DE PÁGINA DEL COMERCIO (STOREFRONT FOOTER) ─────────────────────── */
.sf4-store-footer,
.sf4-compact-footer {
    background: linear-gradient(145deg, #1C0938 0%, #2A0E4F 50%, #15062C 100%);
    color: #FFFFFF;
    padding: 36px 0 24px;
    border-radius: 24px;
    margin: 40px 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 48px -15px rgba(11, 2, 26, 0.7);
    position: relative;
    overflow: hidden;
}

.sf4-store-footer::before,
.sf4-compact-footer::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(201, 20, 91, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.sf4-store-footer::after,
.sf4-compact-footer::after {
    content: "";
    position: absolute;
    bottom: -60px;
    left: 10%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* 3-column grid container */
.sf4-ft-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1.15fr;
    gap: 24px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

/* Base Card Style */
.sf4-ft-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.sf4-ft-card:hover {
    border-color: rgba(192, 132, 252, 0.28);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.5);
}

/* ── Card 1: Brand & Socials ── */
.sf4-ft-brand-card {
    gap: 16px;
}

.sf4-ft-brand-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sf4-ft-logo-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #FFFFFF;
    padding: 3px;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.sf4-ft-logo-box.has-logo {
    background: #FFFFFF;
}

.sf4-ft-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.sf4-ft-logo-icon {
    width: 26px;
    height: 26px;
    stroke: #6D28D9;
}

.sf4-ft-brand-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.sf4-ft-verified-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #34D399;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.25);
    padding: 2px 8px;
    border-radius: 999px;
    width: fit-content;
    line-height: 1.3;
}

.sf4-ft-brand-name {
    font-size: 17px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.25;
    word-break: break-word;
}

.sf4-ft-brand-desc {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
    margin: 0;
}

.sf4-ft-social-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sf4-ft-social-heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.55);
}

.sf4-ft-social-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.sf4-ft-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sf4-ft-social-btn i {
    font-size: 13px;
    color: #E9D5FF;
}

.sf4-ft-social-btn:hover {
    background: #C9145B;
    border-color: #C9145B;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 20, 91, 0.35);
}

.sf4-ft-social-btn:hover i {
    color: #FFFFFF;
}

/* ── Card Header (Common for Col 2 & 3) ── */
.sf4-ft-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.sf4-ft-header-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
}

.sf4-ft-header-icon-box.contact {
    background: rgba(192, 132, 252, 0.15);
    color: #C084FC;
    border: 1px solid rgba(192, 132, 252, 0.25);
}

.sf4-ft-header-icon-box.trust {
    background: rgba(52, 211, 153, 0.15);
    color: #34D399;
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.sf4-ft-card-title {
    font-size: 15px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.2;
}

.sf4-ft-card-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.58);
    display: block;
    margin-top: 2px;
}

/* ── Card 2: Contact List ── */
.sf4-ft-contact-card {
    gap: 12px;
}

.sf4-ft-contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sf4-ft-contact-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.sf4-ft-contact-pill:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(192, 132, 252, 0.35);
    transform: translateX(3px);
}

.sf4-ft-contact-pill-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 14px;
    flex-shrink: 0;
}

.sf4-ft-contact-pill-icon.phone {
    background: rgba(139, 92, 246, 0.2);
    color: #A78BFA;
}

.sf4-ft-contact-pill-icon.email {
    background: rgba(201, 20, 91, 0.2);
    color: #F472B6;
}

.sf4-ft-contact-pill-icon.location {
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
}

.sf4-ft-contact-pill-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.sf4-ft-contact-pill-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.55);
}

.sf4-ft-contact-pill-value {
    font-size: 12.5px;
    font-weight: 600;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf4-ft-pill-arrow {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.2s ease, color 0.2s ease;
}

.sf4-ft-contact-pill:hover .sf4-ft-pill-arrow {
    color: #C084FC;
    transform: translate(2px, -2px);
}

.sf4-ft-contact-empty {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Card 3: Trust & Warranty ── */
.sf4-ft-trust-card {
    gap: 14px;
}

.sf4-ft-trust-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sf4-ft-trust-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.sf4-ft-trust-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 2px;
}

.sf4-ft-trust-dot.success {
    background: rgba(52, 211, 153, 0.2);
    color: #34D399;
}

.sf4-ft-trust-dot.info {
    background: rgba(96, 165, 250, 0.2);
    color: #60A5FA;
}

.sf4-ft-trust-row-body strong {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.3;
}

.sf4-ft-trust-row-body p {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.68);
    margin: 2px 0 0;
    line-height: 1.4;
}

.sf4-ft-regalo-powered {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sf4-ft-regalo-logo {
    height: 20px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
}

.sf4-ft-regalo-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* ── Bottom Bar ── */
.sf4-ft-bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.sf4-ft-bottom-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}

.sf4-ft-bottom-copy strong {
    color: rgba(255, 255, 255, 0.9);
}

.sf4-ft-bottom-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sf4-ft-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
}

.sf4-ft-badge-pill i {
    font-size: 12px;
    color: #C084FC;
}

/* ==========================================================================
   RESPONSIVE — OPTION 4 STOREFRONT BREAKPOINTS
   ========================================================================== */

@media (max-width: 1200px) {
    .sf4-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .sf4-hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .sf4-hero-info {
        max-width: 100%;
    }

    .sf4-locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sf4-ft-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sf4-ft-trust-card {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .sf4-container {
        padding-inline: 16px;
    }

    .sf4-store-footer,
    .sf4-compact-footer {
        margin: 24px 12px 16px;
        border-radius: 20px;
        padding: 24px 16px 18px;
    }

    .sf4-hero-section {
        padding: 24px 0 20px;
    }

    .sf4-hero-title {
        font-size: 24px;
    }

    .sf4-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .sf4-locations-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sf4-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .sf4-btn-outline-pill {
        align-self: flex-start;
    }

    .sf4-ft-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sf4-ft-trust-card {
        grid-column: span 1;
    }

    .sf4-ft-card {
        padding: 18px;
    }

    .sf4-ft-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .sf4-ft-bottom-badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .sf4-merchant-lockup {
        gap: 12px;
    }

    .sf4-merchant-badge {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

    .sf4-cards-grid {
        grid-template-columns: 1fr;
    }

    .sf4-card-media-wrap {
        aspect-ratio: 1.6 / 1;
    }

    .sf4-card-box-img {
        width: 55%;
    }
}

.catalog-page {
    padding-top: 3.5rem;
    padding-bottom: 5rem;
}

.catalog-heading {
    max-width: 720px;
    margin-bottom: 2.4rem;
}

.catalog-heading h1 {
    margin: .35rem 0 .75rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -.05em;
}

.catalog-heading p {
    margin: 0;
    color: var(--ink-600);
}

.catalog-restricted-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.75rem;
    background: linear-gradient(135deg, #fff7fa 0%, #fdf2f8 100%);
    border: 1px solid #fbcfe8;
    border-radius: var(--radius-md, 0.85rem);
    box-shadow: none;
}

.catalog-restricted-banner .banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.catalog-restricted-banner .banner-icon {
    width: 36px;
    height: 36px;
    background: #fce7f3;
    color: var(--brand-700);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.catalog-restricted-banner .banner-text {
    font-size: 0.88rem;
    line-height: 1.4;
}

.catalog-restricted-banner .banner-title {
    color: var(--brand-950);
    font-weight: 700;
    margin-right: 0.35rem;
}

.catalog-restricted-banner .banner-desc {
    color: var(--ink-800);
}

.catalog-restricted-banner .banner-btn {
    min-height: 34px;
    background: #ffffff;
    color: var(--brand-700);
    border: 1.5px solid #f472b6;
    border-radius: 999px;
    padding: 0.35rem 0.95rem;
    font-size: 0.8rem;
    font-weight: 650;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.18s ease;
}

.catalog-restricted-banner .banner-btn:hover {
    background: var(--brand-700);
    color: #ffffff;
    border-color: var(--brand-700);
    transform: translateY(-1px);
    box-shadow: none;
}

.catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 2.2rem;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.catalog-category-filter,
.catalog-city-filter {
    min-width: 0;
}

.catalog-category-filter>.form-label,
.catalog-city-filter .form-label {
    display: block;
    min-height: 1.25rem;
    margin-bottom: .35rem;
}

.catalog-filter-navigation {
    min-width: 0;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

.catalog-filters {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding: 0 0 .4rem;
    scrollbar-width: thin;
    scrollbar-color: #c9b8d9 var(--accent-100);
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.catalog-filters::-webkit-scrollbar {
    height: 5px;
}

.catalog-filters::-webkit-scrollbar-track {
    border-radius: 5px;
    background: var(--accent-100);
}

.catalog-filters::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: #c9b8d9;
}

.catalog-filter {
    min-height: 38px;
    flex: 0 0 auto;
    padding: .45rem .95rem;
    border: 1px solid var(--line);
    border-radius: .5rem;
    color: var(--ink-600);
    background: #fff;
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.catalog-filter:hover {
    border-color: var(--accent-500, #8b5cf6);
    color: var(--accent-700, #5b21b6);
    background: var(--accent-50, #f7f1ff);
}

.catalog-filter.active {
    border-color: var(--accent-600);
    color: #fff;
    background: var(--accent-600);
}

.catalog-city-filter .form-select {
    min-height: 38px;
    padding-top: .4rem;
    padding-bottom: .4rem;
    border-radius: .5rem;
    font-size: .82rem;
}

.catalog-empty {
    min-height: 300px;
    display: grid;
    place-content: center;
    text-align: center;
}

.catalog-empty h2 {
    font-size: 1.4rem;
}

.catalog-card {
    overflow: hidden;
    cursor: pointer;
    border-radius: .65rem;
    transition: border-color .18s ease;
}

.catalog-card:hover {
    border-color: #dcaac1;
}

.catalog-card .card-img-container {
    height: 170px;
    overflow: hidden;
    border-radius: 0;
}

.catalog-card .card-img-container>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-card-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--brand-700);
    font-size: .8rem;
    font-weight: 700;
}

.catalog-card .card-body {
    padding: .9rem !important;
}

.catalog-card .card-body>.d-flex img {
    border-radius: .3rem !important;
}

.catalog-card .btn {
    min-height: 38px;
    font-size: .82rem;
}

/* Merchant workspace */
.merchant-workspace {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    color: var(--ink-950);
}

.merchant-page-heading {
    max-width: 760px;
    margin: 0 0 1.75rem;
}

.merchant-page-heading h1 {
    margin: .3rem 0 .45rem;
    font-size: clamp(1.85rem, 3.2vw, 2.45rem);
    line-height: 1.08;
    letter-spacing: -.045em;
}

.merchant-page-heading p {
    margin: 0;
    color: var(--ink-600);
    font-size: .94rem;
}

.merchant-page-heading-inline {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
}

.merchant-kicker {
    color: var(--accent-700);
    font-size: .7rem;
    font-weight: 750;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.merchant-loading {
    min-height: 280px;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: .75rem;
    color: var(--ink-600);
}

.notice {
    padding: .85rem 1rem;
    border: 1px solid var(--line);
    border-radius: .75rem;
    background: #fff;
}

.notice-danger {
    color: #8d2a2a;
    border-color: #efc6c6;
    background: #fff8f8;
}


.merchant-toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1080;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: min(390px, calc(100vw - 2rem));
    padding: .8rem .9rem;
    border: 1px solid var(--line);
    border-radius: .75rem;
    background: #fff;
    box-shadow: none;
}

.merchant-toast.is-error {
    border-left: 4px solid var(--danger);
}

.merchant-toast.is-success {
    border-left: 4px solid var(--success);
}

.merchant-toast-copy {
    flex: 1;
    font-size: .84rem;
}

.plain-close {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    color: var(--ink-600);
    background: var(--surface-soft);
    font-size: 1.15rem;
    line-height: 1;
}

/* Application confirmation dialog */
.app-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(31, 23, 42, .56);
    backdrop-filter: blur(3px);
}

.app-dialog {
    width: min(100%, 480px);
    padding: 1.45rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    color: var(--ink-950);
    background: #fff;
    box-shadow: none;
}

.app-dialog-heading {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.app-dialog-icon {
    flex: 0 0 auto;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    background: var(--warning-bg);
}

.app-dialog-icon.is-danger {
    background: var(--danger-bg);
}

.app-dialog-icon img {
    width: 23px;
    height: 23px;
}

.app-dialog-kicker {
    color: var(--ink-600);
    font-size: .66rem;
    font-weight: 750;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.app-dialog h2 {
    margin: .15rem 0 0;
    font-size: 1.22rem;
    letter-spacing: -.02em;
}

.app-dialog-message {
    margin: 1.15rem 0 .35rem;
    font-size: .94rem;
}

.app-dialog-detail {
    margin: 0;
    color: var(--ink-600);
    font-size: .82rem;
    line-height: 1.55;
}

.app-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: .65rem;
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.app-dialog-confirm {
    min-height: 40px;
    padding: .55rem 1rem;
    border: 1px solid var(--brand-700);
    border-radius: .6rem;
    color: #fff;
    background: var(--brand-700);
    font-size: .82rem;
    font-weight: 720;
}

.app-dialog-confirm.is-danger {
    border-color: var(--danger);
    background: var(--danger);
}

.app-dialog button:disabled {
    cursor: wait;
    opacity: .6;
}

.merchant-form-page {
    max-width: 920px;
}

.merchant-form-page>.row {
    margin: 0;
}

.merchant-form-page>.row>div {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.merchant-form-page>.row .card {
    border: 1px solid var(--line) !important;
    border-radius: .9rem;
    box-shadow: none !important;
}

.merchant-form-page>.row .card-body {
    padding: clamp(1.15rem, 3vw, 1.8rem) !important;
}

.merchant-intro-note {
    margin-bottom: 1.5rem;
    padding: .8rem 1rem;
    border-left: 3px solid var(--accent-500);
    color: var(--ink-800);
    background: var(--accent-100);
    font-size: .84rem;
}

.merchant-inline-form {
    border: 1px solid var(--line) !important;
    box-shadow: none;
}

.merchant-inline-form .validation-errors {
    margin: 0;
    padding: .75rem 1rem .75rem 2rem;
    border-radius: .65rem;
    background: var(--danger-bg);
    color: var(--danger);
}

.merchant-inline-form .validation-message {
    display: block;
    margin-top: .35rem;
    color: var(--danger);
    font-size: .82rem;
}

.merchant-success-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.merchant-form-section-title {
    margin: 1.4rem 0 .9rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-size: 1.05rem;
}

.merchant-form-section-title:first-of-type {
    margin-top: .25rem;
    padding-top: 0;
    border-top: 0;
}

.merchant-form-section-title span {
    margin-left: .4rem;
    color: var(--ink-600);
    font-size: .72rem;
    font-weight: 560;
}

.merchant-form-page .form-label,
.merchant-batch-page .form-label {
    font-size: .78rem;
}

.merchant-form-page .form-control,
.merchant-form-page .form-select,
.merchant-batch-page .form-control {
    min-height: 42px;
}

.merchant-form-page .mb-4 {
    margin-bottom: 1.1rem !important;
}

.merchant-form-page .alert {
    font-size: .82rem;
}

.merchant-form-page form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
}

.merchant-form-page form>.row,
.merchant-form-page form>h2,
.merchant-form-page form>hr,
.merchant-form-page form>.form-text,
.merchant-form-page form>.alert,
.merchant-form-page form>button[type="submit"] {
    grid-column: 1 / -1;
}

.merchant-form-page form>.mb-3,
.merchant-form-page form>.mb-4 {
    min-width: 0;
}

.merchant-batch-page {
    max-width: 1120px;
}

.merchant-batch-page>.row {
    margin: -.6rem;
}

.merchant-batch-page>.row>div {
    padding: .6rem;
}

.merchant-batch-page .card {
    height: 100%;
    border: 1px solid var(--line) !important;
    border-radius: .9rem;
    box-shadow: none !important;
}

.merchant-batch-page .card-body {
    padding: clamp(1.1rem, 2.5vw, 1.6rem);
}

.merchant-card-title {
    margin: 0 0 .55rem;
    font-size: 1.16rem;
}

.merchant-batch-page ul {
    padding-left: 1.2rem;
}

.merchant-batch-page li {
    margin-bottom: .3rem;
}

.merchant-redeem-page {
    max-width: 880px;
}

.merchant-redeem-page>.row {
    margin: 0;
}

.merchant-redeem-page>.row>div {
    width: min(100%, 660px);
    margin: 0 auto;
    padding: 0;
}

.merchant-redeem-page .card {
    overflow: hidden;
    border: 1px solid var(--line) !important;
    border-radius: .9rem;
    box-shadow: none !important;
}

.merchant-redeem-card-header {
    padding: 1.05rem 1.25rem;
    border-bottom: 1px solid var(--line);
    background: var(--brand-50);
}

.merchant-redeem-card-header h2 {
    margin: 0;
    font-size: 1.05rem;
}

.merchant-redeem-page .card-body {
    padding: clamp(1.1rem, 3vw, 1.6rem) !important;
}

.merchant-redeem-page .text-tracking-widest {
    letter-spacing: .3em;
}

.merchant-redeem-page .fs-3 {
    font-size: 1.45rem !important;
}

.merchant-redeem-page .btn-success {
    background: var(--brand-700);
    border-color: var(--brand-700);
}

@media (max-width: 991.98px) {
    .site-navigation {
        min-height: 62px;
        flex-wrap: nowrap;
        padding-block: .65rem;
    }

    .site-menu-toggle {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        padding: 0;
    }

    .site-menu-toggle span {
        width: 18px;
        height: 1.5px;
        border-radius: 2px;
        background: var(--ink-950);
    }

    .site-navigation-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1090;
        display: block;
        border: 0;
        background: rgba(56, 25, 38, .36);
        backdrop-filter: blur(2px);
    }

    .site-navigation-panel {
        position: fixed;
        inset: 0 0 0 auto;
        z-index: 1100;
        width: min(88vw, 360px);
        height: 100dvh;
        display: flex;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 0;
        overflow-y: auto;
        visibility: hidden;
        background: #fff;
        box-shadow: none;
        transform: translateX(104%);
        transition: transform .22s ease, visibility .22s ease;
        pointer-events: none;
    }

    .site-navigation-panel.is-open {
        visibility: visible;
        transform: translateX(0);
        pointer-events: auto;
    }

    .mobile-navigation-header {
        min-height: 70px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: .85rem 1rem;
        border-bottom: 1px solid var(--line);
    }

    .mobile-navigation-header .brand-lockup {
        font-size: 1rem;
    }

    .mobile-navigation-header .brand-mark {
        width: 34px;
        height: 34px;
    }

    .site-menu-close {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        padding: 0 0 .15rem;
        border: 0;
        border-radius: 50%;
        color: var(--ink-950);
        background: transparent;
        font-size: 2rem;
        font-weight: 300;
        line-height: 1;
    }

    .site-menu-close:hover {
        background: var(--surface-soft);
    }

    .site-links {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        margin: 0;
        padding: 1rem;
    }

    .site-links li+li {
        border-top: 1px solid var(--line);
    }

    .site-links a {
        padding: .9rem .15rem;
        color: var(--ink-950);
        font-size: 1rem;
    }

    .site-links a.active::after {
        inset: auto auto .45rem .15rem;
        width: 28px;
    }

    .header-actions {
        width: auto;
        align-items: stretch;
        justify-content: flex-start;
        flex-direction: column;
        gap: .65rem;
        margin: auto 1rem 0;
        padding: 1rem 0 1.3rem;
        border-top: 1px solid var(--line);
    }

    .header-balance-link {
        display: block;
        padding: .7rem 0;
        color: var(--ink-600);
    }

    .header-text-link,
    .header-actions .primary-action,
    .account-menu-trigger {
        width: 100%;
        max-width: none;
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--line);
        border-radius: .7rem;
        text-decoration: none;
    }

    .header-actions .primary-action {
        color: #fff;
        border-color: var(--brand-700);
        background: var(--brand-700);
    }

    .account-menu {
        width: 100%;
    }

    .account-menu-panel {
        position: static;
        width: 100%;
        margin-top: .45rem;
        box-shadow: none;
    }

    .hero-panel {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 300px;
    }

    .category-shelf {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 1.5rem;
    }

    .beneficiary-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .beneficiary-links a:first-child,
    .beneficiary-links button:first-child {
        border-left: 0;
    }

    .storefront-layout {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .storefront-aside {
        position: static;
        grid-template-columns: 1fr 1fr;
    }

    .merchant-summary {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .merchant-summary-actions {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 1199.98px) and (min-width: 768px) {
    .storefront-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: auto;
        padding: .8rem 0 1.5rem !important;
    }

    .hero-panel {
        min-height: 0;
        border-radius: .75rem;
    }

    .hero-copy {
        padding: 1.65rem 1.15rem 1.35rem;
    }

    .hero-kicker {
        margin-bottom: .65rem;
        font-size: .64rem;
    }

    .hero-section h1 {
        margin-bottom: .7rem;
        font-size: clamp(1.85rem, 9vw, 2.45rem);
        line-height: 1.02;
    }

    .hero-copy>p {
        font-size: .88rem;
        line-height: 1.5;
    }

    .hero-actions {
        gap: .5rem;
        margin-top: 1.1rem;
    }

    .hero-actions .btn {
        min-height: 40px;
        padding: .5rem .8rem;
        font-size: .8rem;
    }

    .hero-visual {
        min-height: 205px;
    }

    .hero-card {
        width: min(275px, 76%);
        padding: 1rem;
    }

    .storefront-page {
        padding: 2.1rem 0 3.4rem;
    }

    .storefront-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-page {
        padding-top: 2.25rem !important;
    }

    .catalog-toolbar {
        grid-template-columns: 1fr;
        gap: .85rem;
    }

    .catalog-card .card-img-container {
        height: 180px;
    }

    .merchant-page-heading {
        margin-bottom: 1.25rem;
    }

    .merchant-page-heading-inline {
        align-items: flex-start;
        flex-direction: column;
        gap: .75rem;
    }

    .merchant-summary {
        padding: 1.25rem;
    }

    .merchant-referral-link {
        width: 100%;
        max-width: 100%;
    }

    .merchant-panel .table-responsive {
        margin-right: -1rem;
        margin-left: -1rem;
        width: calc(100% + 2rem);
    }

    .merchant-batch-page>.row>div {
        width: 100%;
    }

    .merchant-form-page form {
        grid-template-columns: 1fr;
    }

    .merchant-form-page form>* {
        grid-column: 1 !important;
    }
}

@media (max-width: 575.98px) {
    .site-navigation {
        padding-inline: .85rem;
    }

    .site-navigation>.brand-lockup {
        font-size: .92rem;
    }

    .site-navigation>.brand-lockup .brand-mark {
        width: 32px;
        height: 32px;
    }

    footer.bg-dark {
        padding-top: 2.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    footer.bg-dark .row {
        margin: -.25rem;
    }

    footer.bg-dark .row>* {
        margin-top: .25rem !important;
        padding: .55rem;
    }

    footer.bg-dark h5 {
        margin-bottom: .75rem !important;
    }

    footer.bg-dark p {
        margin-bottom: .45rem;
        font-size: .78rem;
    }

    footer.bg-dark hr {
        margin-block: 1.25rem !important;
    }

    .storefront-hero {
        height: 225px;
    }

    .storefront-brand-summary {
        gap: .75rem;
        padding: 0 1rem 1.1rem;
    }

    .storefront-logo {
        width: 54px;
        height: 54px;
    }

    .storefront-brand-summary h1 {
        font-size: 1.55rem;
    }

    .storefront-brand-summary p {
        font-size: .76rem;
    }

    .storefront-carousel-control {
        width: 34px;
        height: 34px;
    }

    .storefront-carousel-control.previous {
        left: .55rem;
    }

    .storefront-carousel-control.next {
        right: .55rem;
    }

    .storefront-section-heading {
        align-items: flex-start;
    }

    .storefront-card-grid {
        gap: .65rem;
    }

    .storefront-card-body {
        padding: .8rem;
    }

    .storefront-card-body h3 {
        min-height: 2.55em;
        font-size: .84rem;
    }

    .storefront-card-action {
        padding-right: .5rem;
        padding-left: .5rem;
        font-size: .74rem;
    }

    .storefront-location-grid,
    .storefront-aside {
        grid-template-columns: 1fr;
    }

    .storefront-location-map {
        height: 150px;
    }
}

/* ==========================================================================
   MERCHANT MEDIA & BANNER CARDS
   ========================================================================== */
.merchant-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.merchant-media-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    transition: all 0.2s ease;
}

.merchant-media-card:hover {
    box-shadow: none;
}

.merchant-media-card.is-logo {
    grid-column: 1 / -1;
    max-width: 520px;
}

.merchant-media-preview {
    width: 100%;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.merchant-media-card.is-logo .merchant-media-preview {
    height: 160px;
    padding: 1.25rem;
}

.merchant-media-card.is-logo .merchant-media-preview img {
    max-width: 100%;
    max-height: 130px;
    object-fit: contain;
}

.merchant-media-preview.is-banner {
    aspect-ratio: 16 / 7;
    height: auto;
    max-height: 200px;
}

.merchant-media-preview.is-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.merchant-media-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: .84rem;
    padding: 1.5rem;
    text-align: center;
}

.merchant-media-copy {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    flex: 1;
    justify-content: space-between;
}

.merchant-media-copy strong {
    display: block;
    font-size: .95rem;
    color: #0f172a;
}

.merchant-media-copy span {
    display: block;
    font-size: .8rem;
    color: #64748b;
    margin-top: .15rem;
}

.merchant-media-actions {
    display: flex;
    gap: .5rem;
    align-items: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   CARD STUDIO & 3D MOCKUP
   ========================================================================== */
.flip-container {
    perspective: 1000px;
    width: 100%;
}

.flip-container.flipped .flipper {
    transform: rotateY(180deg);
}

.flipper {
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    position: relative;
    width: 100%;
}

.giftcard-mockup {
    width: 100%;
    aspect-ratio: 1.58 / 1;
    border-radius: 1rem;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    background-size: cover;
    background-position: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.giftcard-front {
    position: relative;
    z-index: 2;
    transform: rotateY(0deg);
    text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}

.giftcard-front::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 105%), linear-gradient(135deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.14) 100%);
    z-index: 1;
}

.giftcard-back {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateY(180deg);
    background: linear-gradient(145deg, #fff 0%, #f8fafc 60%, #e2e8f0 100%);
    color: #1e293b;
    border: 1px solid var(--line);
    padding: 1.25rem;
}

.giftcard-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.preview-chip {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.78rem;
    align-self: flex-start;
}

.preview-titulo {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.preview-message {
    font-size: 1.1rem;
    line-height: 1.35;
    word-break: break-word;
    max-height: 75px;
    overflow: hidden;
    margin: 0.5rem 0;
    font-style: italic;
}

.preview-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.82rem;
}

.font-button {
    padding: 0.55rem 0.75rem;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-size: 0.88rem;
}

.font-button:hover {
    border-color: var(--accent-500);
}

.font-button.active {
    border-color: var(--accent-600);
    background: var(--accent-100);
    color: var(--accent-800);
    font-weight: 700;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    box-shadow: none;
}

.color-swatch:hover {
    transform: scale(1.15);
}

.color-swatch.active {
    border-color: #0f172a;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent-600);
    transform: scale(1.1);
}

.font-inter {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.font-dancing {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
}

.font-pacifico {
    font-family: 'Pacifico', cursive;
}

/* ==========================================================================
   Activation Flow - Formalización del Acuerdo Comercial
   ========================================================================== */

.activation-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fbf9fb;
    color: var(--ink-950, #1f172a);
}

.activation-header {
    background: #ffffff;
    border-bottom: 1px solid var(--line, #ede4ea);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.activation-header-container {
    max-width: 960px;
    margin: 0 auto;
    padding-inline: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.activation-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.activation-brand-img {
    height: 32px;
    width: auto;
}

.activation-header-support {
    display: flex;
    align-items: center;
}

.activation-support-link {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: var(--ink-600, #716a78);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.activation-support-link:hover {
    color: var(--brand-700, #be185d);
    background: var(--brand-50, #fdf2f8);
    border-color: var(--brand-100, #fce7f3);
}

.activation-main {
    flex: 1 0 auto;
    padding: 36px 0 64px;
}

.activation-container {
    max-width: 960px;
    margin: 0 auto;
    padding-inline: 24px;
}

.activation-footer {
    background: #ffffff;
    border-top: 1px solid var(--line, #ede4ea);
    padding: 20px 0;
    font-size: 13px;
    color: var(--ink-600, #716a78);
    margin-top: auto;
}

.activation-footer-container {
    max-width: 960px;
    margin: 0 auto;
    padding-inline: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.activation-footer-copy {
    font-size: 13px;
}

.activation-footer-nav {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.activation-footer-link {
    color: var(--ink-600, #716a78);
    text-decoration: none;
    transition: color 0.15s ease;
}

.activation-footer-link:hover {
    color: var(--brand-700, #be185d);
    text-decoration: underline;
}

.activation-footer-divider {
    color: var(--ink-400, #9f96a3);
    font-size: 10px;
}

/* ── Step Progress Indicator ─────────────────────────────────────────────── */

.activation-progress-wrapper {
    margin-bottom: 28px;
}

.activation-steps-desktop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.activation-step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-600, #716a78);
}

.activation-step-item.is-completed {
    color: #059669;
}

.activation-step-item.is-active {
    color: var(--brand-700, #be185d);
    font-weight: 750;
}

.step-icon-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.step-icon-badge.completed {
    background: #d1fae5;
    color: #059669;
}

.step-icon-badge.active {
    background: var(--brand-700, #be185d);
    color: #ffffff;
    box-shadow: 0 0 0 3px var(--brand-100, #fce7f3);
}

.step-connector {
    width: 32px;
    height: 2px;
    background: #e2d9df;
    border-radius: 1px;
}

.step-connector.completed {
    background: #a7f3d0;
}

.activation-steps-mobile {
    display: none;
    text-align: center;
    margin-bottom: 12px;
}

.activation-mobile-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-700, #be185d);
    background: var(--brand-50, #fdf2f8);
    border: 1px solid var(--brand-100, #fce7f3);
    padding: 4px 12px;
    border-radius: 20px;
}

.activation-mobile-bar {
    width: 100%;
    max-width: 200px;
    height: 4px;
    background: #e5e0e5;
    border-radius: 2px;
    margin: 8px auto 0;
    overflow: hidden;
    position: relative;
}

.activation-mobile-bar-fill {
    width: 100%;
    height: 100%;
    background: var(--brand-700, #be185d);
    border-radius: 2px;
}

/* ── Hero / Encabezado Principal ────────────────────────────────────────── */

.activation-hero {
    text-align: center;
    margin-bottom: 36px;
}

.activation-hero-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-700, #be185d);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.activation-hero-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--ink-950, #1f172a);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.activation-hero-subtitle {
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink-600, #716a78);
    max-width: 620px;
    margin: 0 auto;
}

/* ── Merchant Summary Card ──────────────────────────────────────────────── */

.merchant-summary-card {
    background: #ffffff;
    border: 1px solid var(--line, #ede4ea);
    border-radius: 18px;
    padding: 24px 28px;
    margin-bottom: 28px;
    box-shadow: none;
}

.merchant-summary-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.merchant-summary-tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-700, #be185d);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.merchant-summary-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--ink-950, #1f172a);
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

.merchant-summary-email {
    font-size: 14px;
    color: var(--ink-600, #716a78);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.merchant-badge-vigente {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 650;
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 5px 12px;
    border-radius: 20px;
}

.merchant-badge-warning {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 650;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: 5px 12px;
    border-radius: 20px;
}

.merchant-summary-deadline {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line, #ede4ea);
    font-size: 13.5px;
    color: var(--ink-800, #413849);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Section Titles ─────────────────────────────────────────────────────── */

.activation-section-header {
    margin-bottom: 16px;
}

.activation-section-title {
    font-size: 20px;
    font-weight: 750;
    color: var(--ink-950, #1f172a);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.activation-section-desc {
    font-size: 14px;
    color: var(--ink-600, #716a78);
    margin: 0;
}

/* ── Economic Conditions Cards ──────────────────────────────────────────── */

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.condition-card {
    background: #ffffff;
    border: 1px solid var(--line, #ede4ea);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    box-shadow: none;
}

.condition-card:hover {
    border-color: rgba(190, 24, 93, 0.35);
    box-shadow: none;
}

.condition-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.condition-card-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-600, #716a78);
    margin: 0;
}

.condition-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--brand-50, #fdf2f8);
    color: var(--brand-700, #be185d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.condition-card-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--brand-700, #be185d);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.condition-card-microcopy {
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-600, #716a78);
    margin: 0;
}

.condition-special-card {
    grid-column: 1 / -1;
    background: #fdfafc;
    border: 1px dashed var(--line, #ede4ea);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 13.5px;
    color: var(--ink-800, #413849);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* ── Agreement Card & Preview ───────────────────────────────────────────── */

.agreement-card {
    background: #ffffff;
    border: 1px solid var(--line, #ede4ea);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.agreement-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line, #ede4ea);
}

.agreement-card-title {
    font-size: 18px;
    font-weight: 750;
    color: var(--ink-950, #1f172a);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.agreement-version-pill {
    font-size: 12px;
    font-weight: 650;
    background: var(--brand-50, #fdf2f8);
    color: var(--brand-700, #be185d);
    border: 1px solid var(--brand-100, #fce7f3);
    padding: 4px 10px;
    border-radius: 12px;
}

.agreement-preview-desktop {
    display: block;
}

.agreement-preview-scroll {
    max-height: 320px;
    overflow-y: auto;
    padding: 20px 22px;
    background: #faf8fa;
    border: 1px solid var(--line, #ede4ea);
    border-radius: 12px;
    margin-bottom: 14px;
}

.agreement-preview-mobile {
    display: none;
    padding: 16px;
    background: #faf8fa;
    border: 1px solid var(--line, #ede4ea);
    border-radius: 12px;
    text-align: center;
    margin-bottom: 14px;
}

.agreement-preview-mobile-text {
    font-size: 14px;
    color: var(--ink-600, #716a78);
    margin-bottom: 12px;
}

.agreement-action-bar {
    display: flex;
    justify-content: flex-end;
}

.btn-view-full-agreement {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-700, #be185d);
    background: transparent;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-view-full-agreement:hover {
    background: var(--brand-50, #fdf2f8);
    text-decoration: underline;
}

/* ── Rendered Legal Typography (NOT MONOSPACE) ──────────────────────────── */

.legal-document-body {
    font-family: inherit;
    font-size: 14px;
    line-height: 1.7;
    color: var(--ink-800, #413849);
}

.legal-document-body h1 {
    font-size: 17px;
    font-weight: 800;
    color: var(--ink-950, #1f172a);
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1.5px solid var(--line, #ede4ea);
}

.legal-document-body h2 {
    font-size: 15px;
    font-weight: 750;
    color: var(--ink-950, #1f172a);
    margin: 20px 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--line, #ede4ea);
}

.legal-document-body h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-950, #1f172a);
    margin: 14px 0 6px;
}

.legal-document-body p {
    margin: 0 0 12px;
}

.legal-document-body strong {
    font-weight: 700;
    color: var(--ink-950, #1f172a);
}

.legal-document-body ul,
.legal-document-body ol {
    margin: 0 0 14px;
    padding-left: 20px;
}

.legal-document-body li {
    margin-bottom: 4px;
}

/* ── Acceptance Checkbox Card ───────────────────────────────────────────── */

.acceptance-card {
    background: #FFF8FB;
    border: 1.5px solid rgba(190, 24, 93, 0.28);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 32px;
    transition: all 0.2s ease;
}

.acceptance-card.is-active {
    background: #fdf2f8;
    border-color: var(--brand-700, #be185d);
    box-shadow: 0 0 0 2px rgba(190, 24, 93, 0.15);
}

.acceptance-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.acceptance-input-check {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    margin-top: 2px;
    accent-color: var(--brand-700, #be185d);
    cursor: pointer;
}

.acceptance-label {
    font-size: 15px;
    font-weight: 650;
    line-height: 1.5;
    color: var(--ink-950, #1f172a);
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.acceptance-sublinks {
    margin-top: 8px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.acceptance-link-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--brand-700, #be185d);
    font-size: 13px;
    font-weight: 650;
    text-decoration: underline;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.acceptance-link-btn:hover {
    opacity: 0.8;
}

/* ── Password Setup Section ─────────────────────────────────────────────── */

.password-setup-card {
    background: #ffffff;
    border: 1px solid var(--line, #ede4ea);
    border-radius: 18px;
    padding: 24px 28px;
    margin-bottom: 32px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.password-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
}

.password-field-group {
    display: flex;
    flex-direction: column;
}

.password-field-label {
    font-size: 14px;
    font-weight: 650;
    color: var(--ink-950, #1f172a);
    margin-bottom: 6px;
}

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-text-input {
    width: 100%;
    height: 48px;
    padding: 10px 44px 10px 14px;
    border: 1.5px solid var(--line, #ede4ea);
    border-radius: 12px;
    font-size: 15px;
    background: #ffffff;
    color: var(--ink-950, #1f172a);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.password-text-input:focus {
    border-color: var(--brand-700, #be185d);
    outline: none;
    box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.12);
}

.password-text-input.is-valid-field {
    border-color: #10b981;
}

.password-text-input.is-invalid-field {
    border-color: var(--danger, #b91c1c);
}

.password-toggle-btn {
    position: absolute;
    right: 8px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--ink-600, #716a78);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.15s ease, color 0.15s ease;
}

.password-toggle-btn:hover {
    background: var(--surface-soft, #fff7fb);
    color: var(--ink-950, #1f172a);
}

.password-toggle-btn:focus-visible {
    outline: 2px solid var(--brand-700, #be185d);
    outline-offset: 2px;
}

.password-feedback-status {
    margin-top: 6px;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.password-feedback-status.neutral {
    color: var(--ink-600, #716a78);
}

.password-feedback-status.success {
    color: #059669;
    font-weight: 600;
}

.password-feedback-status.error {
    color: var(--danger, #b91c1c);
    font-weight: 600;
}

/* ── Primary CTA & Actions ──────────────────────────────────────────────── */

.activation-cta-wrapper {
    margin-bottom: 32px;
}

.btn-activate-primary {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 750;
    border: none;
    background: var(--brand-700, #be185d);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
}

.btn-activate-primary:hover:not(:disabled) {
    background: var(--brand-900, #9d174d);
    transform: translateY(-1px);
    box-shadow: none;
}

.btn-activate-primary:focus-visible {
    outline: 3px solid var(--brand-700, #be185d);
    outline-offset: 3px;
}

.btn-activate-primary:disabled {
    background: #e4dce1;
    color: #8c8289;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.activation-requirements-list {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
}

.req-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-600, #716a78);
}

.req-item.met {
    color: #059669;
    font-weight: 600;
}

.req-item.pending {
    color: var(--ink-600, #716a78);
}

.activation-trust-badge {
    text-align: center;
    margin-top: 14px;
    font-size: 13.5px;
    color: var(--ink-600, #716a78);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.activation-trust-badge i {
    color: #059669;
}

/* ── "What Happens Next?" Section ───────────────────────────────────────── */

.what-next-card {
    background: #ffffff;
    border: 1px solid var(--line, #ede4ea);
    border-radius: 18px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: none;
}

.what-next-title {
    font-size: 18px;
    font-weight: 750;
    color: var(--ink-950, #1f172a);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.what-next-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.what-next-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #faf8fa;
    border-radius: 12px;
    border: 1px solid var(--line, #ede4ea);
}

.what-next-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 8px;
    background: #d1fae5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.what-next-text {
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--ink-800, #413849);
    margin: 0;
    font-weight: 550;
}

/* ── Modal Dialog: Full Legal Agreement ─────────────────────────────────── */

.legal-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(2px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.15s ease;
}

.legal-modal-dialog {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    overflow: hidden;
    animation: slideUp 0.2s ease;
}

.legal-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--line, #ede4ea);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.legal-modal-title {
    font-size: 18px;
    font-weight: 750;
    color: var(--ink-950, #1f172a);
    margin: 0;
}

.btn-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: #f3eff2;
    color: var(--ink-600, #716a78);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.15s ease;
}

.btn-modal-close:hover {
    background: #e7dfec;
    color: var(--ink-950, #1f172a);
}

.legal-modal-body {
    padding: 28px 32px;
    overflow-y: auto;
    flex: 1 1 auto;
    background: #ffffff;
}

.legal-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--line, #ede4ea);
    background: #faf8fa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* ── Success & Expired State Cards ──────────────────────────────────────── */

.activation-state-card {
    background: #ffffff;
    border: 1px solid var(--line, #ede4ea);
    border-radius: 24px;
    padding: 48px 36px;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    box-shadow: none;
}

.state-icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.state-icon-circle.success {
    background: #ecfdf5;
    color: #059669;
    border: 2px solid #a7f3d0;
}

.state-icon-circle.expired {
    background: #fef2f2;
    color: var(--danger, #b91c1c);
    border: 2px solid #fecaca;
}

.activation-state-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--ink-950, #1f172a);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.activation-state-subtitle {
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink-600, #716a78);
    margin: 0 0 24px;
}

.activation-state-checklist {
    background: #fdfafc;
    border: 1px solid var(--line, #ede4ea);
    border-radius: 14px;
    padding: 16px 20px;
    text-align: left;
    margin-bottom: 28px;
}

.state-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-950, #1f172a);
    padding: 6px 0;
}

.state-check-row i {
    color: #059669;
}

.activation-state-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.btn-state-primary {
    width: 100%;
    max-width: 320px;
    height: 50px;
    border-radius: 14px;
    font-size: 15.5px;
    font-weight: 750;
    border: none;
    background: var(--brand-700, #be185d);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
    box-shadow: none;
}

.btn-state-primary:hover {
    background: var(--brand-900, #9d174d);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-state-secondary {
    color: var(--ink-600, #716a78);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.btn-state-secondary:hover {
    color: var(--brand-700, #be185d);
    text-decoration: underline;
}

/* ── Responsive Media Queries ───────────────────────────────────────────── */

@media (max-width: 768px) {
    .activation-steps-desktop {
        display: none;
    }

    .activation-steps-mobile {
        display: block;
    }

    .activation-hero-title {
        font-size: 28px;
    }

    .merchant-summary-card {
        padding: 20px;
    }

    .conditions-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .condition-card {
        padding: 16px;
    }

    .condition-card-value {
        font-size: 26px;
    }

    .password-inputs-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .what-next-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .agreement-preview-desktop {
        display: none;
    }

    .agreement-preview-mobile {
        display: block;
    }

    .legal-modal-dialog {
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .legal-modal-backdrop {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .conditions-grid {
        grid-template-columns: 1fr;
    }

    .activation-container {
        padding-inline: 18px;
    }

    .activation-state-card {
        padding: 32px 20px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {

    .legal-modal-backdrop,
    .legal-modal-dialog,
    .btn-activate-primary,
    .btn-state-primary {
        animation: none;
        transition: none;
    }
}

/* ==========================================================================
   Admin Agreements & Conditions Management & Editor
   ========================================================================== */

.admin-filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.admin-filter-pill-btn {
    border: 1.5px solid var(--line, #ede4ea);
    background: #ffffff;
    color: var(--ink-600, #716a78);
    border-radius: 20px;
    padding: 7px 18px;
    font-size: 13.5px;
    font-weight: 650;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-filter-pill-btn:hover {
    border-color: var(--brand-700, #be185d);
    color: var(--brand-700, #be185d);
    background: var(--brand-50, #fdf2f8);
}

.admin-filter-pill-btn.active {
    background: var(--brand-700, #be185d);
    color: #ffffff;
    border-color: var(--brand-700, #be185d);
    box-shadow: none;
}

.admin-filter-count {
    font-size: 11.5px;
    padding: 2px 7px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.08);
}

.admin-filter-pill-btn.active .admin-filter-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Doc Type Badges */
.badge-doc-comercio {
    background: #fdf2f8;
    color: var(--brand-700, #be185d);
    border: 1px solid #fce7f3;
    font-weight: 650;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.badge-doc-afiliado {
    background: #f5f3ff;
    color: var(--accent-700, #5b21b6);
    border: 1px solid #ede9fe;
    font-weight: 650;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.badge-doc-comprador {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
    font-weight: 650;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

/* Mobile Agreements Card View */
.agreements-cards-mobile {
    display: none;
}

.agreement-item-card {
    background: #ffffff;
    border: 1px solid var(--line, #ede4ea);
    border-radius: 16px;
    padding: 18px;
    box-shadow: none;
}

.agreement-card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
    flex-wrap: wrap;
}

.agreement-card-title-text {
    font-size: 15.5px;
    font-weight: 750;
    color: var(--ink-950, #1f172a);
    margin: 0 0 10px;
    line-height: 1.35;
}

.agreement-card-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--line, #ede4ea);
    margin-top: 12px;
    gap: 8px;
}

/* Editor Modal & Toolbar */
.editor-tabs-bar {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--line, #ede4ea);
    padding: 0 24px;
    background: #faf8fa;
}

.editor-tab-btn {
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 650;
    border: none;
    background: transparent;
    color: var(--ink-600, #716a78);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.editor-tab-btn:hover {
    color: var(--brand-700, #be185d);
}

.editor-tab-btn.active {
    color: var(--brand-700, #be185d);
    border-bottom-color: var(--brand-700, #be185d);
    background: #ffffff;
}

.markdown-toolbar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;

    .editor-mode-toggle {
        display: inline-flex;
        background: #f1ecf1 !important;
        border: 1px solid var(--line, #ede4ea) !important;
        border-radius: 12px !important;
        padding: 3px !important;
        gap: 3px !important;
    }

    .editor-mode-btn {
        padding: 6px 15px !important;
        font-size: 13px !important;
        font-weight: 650 !important;
        border: none !important;
        border-radius: 9px !important;
        background: transparent !important;
        color: var(--ink-600, #716a78) !important;
        cursor: pointer !important;
        transition: all 0.15s ease !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .editor-mode-btn:hover {
        color: var(--ink-950, #1f172a) !important;
    }

    .editor-mode-btn.active {
        background: var(--brand-700, #be185d) !important;
        color: #ffffff !important;
        box-shadow: none !important;
    }

    .editor-view-split {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .editor-view-split .markdown-editor-control,
    .editor-view-split .live-preview-box {
        min-height: 380px;
        max-height: 480px;
    }

    .markdown-toolbar {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
        align-items: center;
        background: #fdfafc;
        border: 1.5px solid var(--line, #ede4ea);
        border-radius: 12px 12px 0 0;
        padding: 8px 12px;
        border-bottom: none;
    }

    .toolbar-group {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        border-right: 1px solid var(--line, #ede4ea);
        padding-right: 8px;
        margin-right: 4px;
    }

    .toolbar-group:last-child {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
    }

    .toolbar-btn {
        background: #ffffff;
        border: 1px solid var(--line, #ede4ea);
        border-radius: 8px;
        padding: 5px 10px;
        font-size: 12px;
        font-weight: 650;
        color: var(--ink-800, #413849);
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        transition: all 0.15s ease;
    }

    .toolbar-btn:hover {
        background: var(--brand-50, #fdf2f8);
        color: var(--brand-700, #be185d);
        border-color: var(--brand-100, #fce7f3);
    }

    .toolbar-btn-accent {
        background: var(--brand-50, #fdf2f8);
        color: var(--brand-700, #be185d);
        border-color: var(--brand-100, #fce7f3);
    }

    .markdown-editor-control {
        border-radius: 0 0 12px 12px !important;
        font-family: ui-monospace, SFMono-Regular, Consolas, monospace !important;
        font-size: 13.5px !important;
        line-height: 1.65 !important;
        border: 1.5px solid var(--line, #ede4ea) !important;
    }

    .markdown-editor-control:focus {
        border-color: var(--brand-700, #be185d) !important;
        box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.12) !important;
    }

    .editor-footer-metrics {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 8px;
        font-size: 12px;
        color: var(--ink-600, #716a78);
    }

    .live-preview-box {
        min-height: 340px;
        max-height: 480px;
        overflow-y: auto;
        padding: 24px 28px;
        background: #ffffff;
        border: 1.5px solid var(--line, #ede4ea);
        border-radius: 12px;
    }

    .legal-modal-dialog {
        background: #ffffff;
        border-radius: 20px;
        width: 100%;
        max-height: 90vh;
        height: auto;
        display: flex;
        flex-direction: column;
        box-shadow: none;
        overflow: hidden;
        animation: slideUp 0.2s ease;
    }

    .legal-modal-form {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        max-height: calc(90vh - 70px);
        overflow: hidden;
    }

    .legal-modal-body {
        padding: 22px 28px 16px;
        overflow-y: auto;
        flex: 1 1 auto;
        min-height: 0;
        background: #ffffff;
    }

    .legal-modal-footer {
        padding: 16px 28px 20px;
        border-top: 1px solid var(--line, #ede4ea);
        background: #faf8fa;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        flex-shrink: 0;
        border-radius: 0 0 20px 20px;
    }

    @media (max-width: 992px) {
        .editor-view-split {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 768px) {
        .admin-agreements-table-desktop {
            display: none !important;
        }

        .agreements-cards-mobile {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .legal-modal-dialog {
            height: 100vh;
            max-height: 100vh;
            border-radius: 0;
        }

        .legal-modal-form {
            max-height: calc(100vh - 65px);
        }

        .legal-modal-body {
            padding: 20px 18px 14px;
        }

        .legal-modal-footer {
            padding: 16px 18px 20px;
            flex-direction: column-reverse;
            gap: 10px;
        }

        .legal-modal-footer>* {
            width: 100%;
        }
    }
}