/* style.css — theme design system, plain CSS. */

/* Tokens — dark "HTB-like": deep navy surfaces, neon green accent with DARK
   text on primary buttons (--color-primary-fg). In this dark palette the -600/
   -700 steps run BRIGHTER than -500 where they color text on dark grounds. */
:root {
    /* Brand (neon green). RGB triplet without rgb()/commas → opacity via rgb(var(--x) / 0.5). */
    --color-primary-50: 45 31 78;
    /* dark green tint (selected/hover fills) */
    --color-primary-100: 57 39 96;
    --color-primary-200: 76 48 130;
    --color-primary-500: 124 58 237;
    /* #7C3AED */
    --color-primary-600: 109 40 217;
    /* #6D28D9 */
    --color-primary-700: 167 139 250;
    /* #A78BFA */
    --color-primary-900: 221 214 254;
    /* #DDD6FE */
    --color-primary-fg: 221 214 255;

    /* Sidebar */
    --color-sidebar: 21 22 42;
    --color-sidebar-fg: 248 250 252;

    /* Page backgrounds */
    --color-page: 15 16 32;
    --color-page-public: 15 16 32;

    /* Surfaces and UI grays (navy scale) */
    --color-surface: 27 29 50;
    --color-surface-muted: 34 36 59;
    --color-border: 48 51 77;
    --color-border-soft: 42 44 68;
    --color-text: 248 250 252;
    --color-text-soft: 165 172 191;
    --color-text-muted: 111 118 143;

    /* Shape */
    --radius: 0.75rem;
    --radius-control: 0.625rem;
    --radius-pill: 9999px;
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.20);
    --shadow-control: 0 2px 8px rgba(0, 0, 0, 0.12);
    --shadow-menu: 0 12px 35px rgba(0, 0, 0, 0.35);
    /* Typography: tenants override only this var (plus their own @font-face for web fonts). */
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Base */
body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    /* public by default; .app--auth → row */
    background: rgb(var(--color-page-public));
    color: rgb(var(--color-text));
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

/* Form controls don't inherit body font-family by default; force it. */
button,
input,
select,
textarea {
    font-family: inherit;
}

body.app--auth {
    flex-direction: row;
    background: rgb(var(--color-page));
}

/* Auth/public visibility (.hidden is toggled on the ui-*-only elements). */
.hidden {
    display: none !important;
}

[x-cloak] {
    display: none !important;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

/* Layout (app shell) */

/* Mobile sidebar overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 30;
}

@media (min-width: 1024px) {
    .overlay {
        display: none;
    }
}

/* Sidebar */
.sidebar {
    position: fixed;
    inset-block: 0;
    left: 0;
    z-index: 40;
    width: 240px;
    min-height: 100vh;
    background: rgb(var(--color-sidebar));
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transform: translateX(-100%);
    transition: transform 0.2s;
}

.sidebar.is-open {
    transform: translateX(0);
}

@media (min-width: 1024px) {
    .sidebar {
        transform: translateX(0);
    }
}

.sidebar-logo {
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1.25rem;
}

.sidebar-logo img {
    height: 2rem;
    object-fit: contain;
}

.sidebar-brand {
    font-size: 1.125rem;
    font-weight: 700;
    color: rgb(var(--color-sidebar-fg));
    letter-spacing: -0.025em;
}

/* ==========================================
   SEGUIDORES LU — SIDEBAR NAVIGATION
   ========================================== */

.nav-section {
    display: flex;
    flex-direction: column;
}

.nav-group {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgb(var(--color-sidebar-fg) / 0.07);
}

.nav-section-title {
    padding: 0 0.75rem;
    margin-bottom: 0.45rem;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(var(--color-sidebar-fg) / 0.35);
}


/* Nuevo pedido — acción principal */

/* NUEVA ORDEN */
.sidebar .nav-link--primary {
    margin-bottom: 0.45rem;

    color: #ffffff;

    background: linear-gradient(135deg,
            #7c3aed 0%,
            #2563eb 100%);

    border: 1px solid rgba(124, 58, 237, 0.30);
    border-radius: 0.75rem;

    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.18);

    font-weight: 700;
}

.sidebar .nav-link--primary:hover {
    color: #ffffff;

    background: linear-gradient(135deg,
            #8b5cf6 0%,
            #3b82f6 100%);

    transform: translateY(-1px);

    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.25);
}

.sidebar .nav-link--primary.is-active {
    color: #ffffff;

    background: linear-gradient(135deg,
            #7c3aed 0%,
            #2563eb 100%);
}

.nav-link--primary:hover {
    background: rgb(var(--color-primary-500) / 0.16);
    color: rgb(var(--color-primary-900));
}

.nav-link--primary.is-active {
    background: rgb(var(--color-primary-500) / 0.18);
    color: rgb(var(--color-primary-500));
}


/* Separación visual entre grupos */

.nav-group .nav-link {
    margin-bottom: 2px;
}


/* Iconos */

.nav-link svg,
.nav-link i {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}


/* Texto */

.nav-link span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Mejor estado activo */

.nav-link.is-active {
    font-weight: 600;
}


/* En pantallas pequeñas */

@media (max-width: 1023px) {

    .nav-section-title {
        padding-left: 0.75rem;
    }

    .nav-group {
        margin-top: 1rem;
        padding-top: 0.85rem;
    }

}

.sidebar-logout {
    padding: 0 0.75rem 0.75rem;
}

@media (min-width: 1024px) {
    .sidebar-logout {
        display: none;
    }
}

/* Main wrapper */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

@media (min-width: 1024px) {
    body.app--auth .main-wrapper {
        margin-left: 240px;
    }
}

/* Header */
.header {
    background: rgb(var(--color-surface));
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 20;
}

.header--auth {
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.header--public {
    width: 100%;
}

.header-inner {
    max-width: 72rem;
    margin: 0 auto;
    width: 100%;
    height: 3.5rem;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .header--auth {
        padding: 0 1.5rem;
    }

    .header-inner {
        padding: 0 1.5rem;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 15px;
    color: rgb(var(--color-text));
    letter-spacing: -0.025em;
    text-decoration: none;
}

.header-brand img {
    height: 1.5rem;
    object-fit: contain;
}

/* Header icon button (hamburger, etc.) */
.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: rgb(var(--color-text-soft));
    display: inline-flex;
    align-items: center;
    transition: color 0.15s;
    padding: 0;
}

.icon-btn:hover {
    color: rgb(var(--color-text));
}

.icon-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

@media (min-width: 1024px) {
    .icon-btn--mobile {
        display: none;
    }
}

/* Panel name hidden in the navbar by request; re-enable via display + font styles. */
.header-mobile-brand {
    display: none;
}

/* Header action button (balance, language, currency, logout) */
.header-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: none;
    border: none;
    cursor: pointer;
    color: rgb(var(--color-text) / 0.7);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-control);
    font-size: 12px;
    transition: all 0.15s;
    text-decoration: none;
}

.header-btn:hover {
    color: rgb(var(--color-text));
    background: rgb(255 255 255 / 0.06);
}

.header-btn svg {
    width: 0.875rem;
    height: 0.875rem;
}

.header-btn--balance {
    color: rgb(var(--color-text));
    font-weight: 500;
    padding: 0.25rem 0.625rem;
}

.header-btn--balance:hover {
    color: rgb(var(--color-primary-500));
    background: rgb(var(--color-primary-50));
}

.header-btn--balance svg {
    color: rgb(var(--color-text-muted));
}

.header-btn--logout:hover {
    color: rgb(255 94 94);
    background: rgb(255 62 62 / 0.12);
}

.desktop-only {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-only {
        display: flex;
    }
}

/* Public nav links */
.pubnav {
    display: none;
    align-items: center;
    gap: 0.25rem;
    font-size: 13px;
    font-weight: 500;
}

@media (min-width: 768px) {
    .pubnav {
        display: flex;
    }
}

.pubnav-link {
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-control);
    color: rgb(var(--color-text-soft));
    text-decoration: none;
    transition: all 0.15s;
}

.pubnav-link:hover {
    color: rgb(var(--color-text));
    background: rgb(var(--color-surface-muted) / 0.8);
}

.menu-btn {
    display: inline-flex;
}

@media (min-width: 768px) {
    .menu-btn {
        display: none;
    }
}

.pubmenu-mobile {
    border-top: 1px solid rgb(var(--color-border-soft));
    background: rgb(var(--color-surface));
    padding: 0.5rem;
    position: relative;
    z-index: 50;
}

@media (min-width: 768px) {
    .pubmenu-mobile {
        display: none;
    }
}

.pubmenu-mobile a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-control);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(var(--color-text-soft));
    text-decoration: none;
    transition: all 0.15s;
}

.pubmenu-mobile a:hover {
    color: rgb(var(--color-primary-500));
    background: rgb(var(--color-primary-500) / 0.05);
}

/* Dropdowns (language / currency) */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    margin-top: 0.25rem;
    background: rgb(var(--color-surface));
    border: 1px solid rgb(var(--color-border-soft));
    border-radius: var(--radius-control);
    box-shadow: var(--shadow-menu);
    padding: 0.25rem 0;
    min-width: 120px;
    z-index: 50;
}

.dropdown-menu--right {
    right: 0;
}

.dropdown-menu--left {
    left: 0;
}

/* Shared header switchers (langSwitcher/currencySwitcher partials) carry no
   alignment modifier: the header context decides. */
.header--auth .dropdown-menu {
    right: 0;
}

.header--public .dropdown-menu {
    left: 0;
}

/* Full-width scrollable menu (new_order category/service select). */
.dropdown-menu--full {
    left: 0;
    right: 0;
    width: 100%;
    max-height: 16rem;
    overflow-y: auto;
}

.dropdown-item.is-selected {
    background: rgb(var(--color-primary-50));
    color: rgb(var(--color-primary-700));
}

.dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.375rem 0.75rem;
    font-size: 12px;
    color: rgb(var(--color-text-soft));
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
}

.dropdown-item:hover {
    color: rgb(var(--color-text));
    background: rgb(var(--color-surface-muted));
}

/* Main / footer */
.main {
    flex: 1;
    padding: 0.5rem 1rem 1rem;
    overflow-y: auto;
}

@media (min-width: 768px) {
    .main {
        padding: 0.75rem 1.5rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .main {
        padding: 0.75rem 2.5rem 2.5rem;
    }
}

.container {
    max-width: 72rem;
    margin: 0 auto;
    width: 100%;
}

/* Instant click feedback: while a navigation request is in flight, htmx marks
   #content (hx-indicator on <body>) and the outgoing page dims immediately. */
#content {
    transition: opacity 0.12s;
}

#content.htmx-request {
    opacity: 0.55;
}

/* The authenticated app is data-dense (10-column order tables): give it more
   room than the public pages. Wide-screen space goes to the tables instead of
   dead side margins. */
body.app--auth .container {
    max-width: 88rem;
}

.footer {
    flex-shrink: 0;
    background: rgb(var(--color-surface) / 0.5);
    padding: 1rem;
    font-size: 11px;
    color: rgb(var(--color-text-soft) / 0.6);
    text-align: center;
}

@media (min-width: 768px) {
    .footer {
        padding: 1rem 1.5rem;
    }
}

/* Floating chat buttons (WhatsApp / Telegram) */
.chat-fab-stack {
    position: fixed;
    bottom: 1.5rem;
    z-index: 50;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 0.75rem;
}

.chat-fab-stack--left {
    left: 1.5rem;
}

.chat-fab-stack--right {
    right: 1.5rem;
}

.chat-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-pill);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease-out;
}

.chat-fab:hover {
    filter: brightness(1.08);
}

.chat-fab--whatsapp {
    background: linear-gradient(to bottom, #2EE373, #1FA855);
}

.chat-fab--telegram {
    background: linear-gradient(to bottom, #36B0EE, #1A88BC);
}

.chat-fab svg {
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}

.chat-fab--whatsapp svg {
    width: 1.75rem;
    height: 1.75rem;
}

.chat-fab--telegram svg {
    width: 2.25rem;
    height: 2.25rem;
}

/* Components */

/* Card */
.card {
    background: rgb(var(--color-surface));
    border-radius: var(--radius);
    border: 1px solid rgb(var(--color-border-soft));
}

.card--pad {
    padding: 1.25rem;
}

@media (min-width: 768px) {
    .card--pad {
        padding: 1.5rem;
    }
}

/* Form controls */
.label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgb(var(--color-text-soft));
    margin-bottom: 0.375rem;
}

.input,
.select,
.textarea,
.select-trigger {
    width: 100%;
    border: 1px solid rgb(var(--color-border));
    border-radius: var(--radius-control);
    background: rgb(var(--color-surface));
    padding: 9px 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    /* uniform height across inputs, selects and triggers */
    color: rgb(var(--color-text));
    box-shadow: var(--shadow-control);
    transition: all 0.15s;
    font-family: inherit;
}

.input:focus,
.select:focus,
.textarea:focus,
.select-trigger:focus {
    outline: none;
    border-color: rgb(var(--color-primary-500));
    box-shadow: 0 0 0 2px rgb(var(--color-primary-500) / 0.1);
}

/* Button replacing a native <select>: label left, chevron right. */
.select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    text-align: left;
    cursor: pointer;
}

.select-trigger>span:first-child {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.5rem;
}

.select-trigger .trigger-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select-trigger img {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.select-trigger .chevron {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: rgb(var(--color-text-muted));
    transition: transform 0.15s;
}

.select-trigger .chevron.is-open {
    transform: rotate(180deg);
}

/* Search with magnifier on the left (new_order autocomplete); cf. .search (button right). */
.search-left {
    position: relative;
}

.search-left>svg {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: rgb(var(--color-text-muted));
    pointer-events: none;
}

.search-left .input {
    padding-left: 2.25rem;
}

.input:disabled,
.select:disabled,
.textarea:disabled {
    background: rgb(var(--color-surface-muted) / 0.8);
    color: rgb(var(--color-text-soft));
    cursor: not-allowed;
}

.textarea {
    resize: vertical;
}

.select {
    appearance: none;
    cursor: pointer;
}

.checkbox {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    border-radius: 0.25rem;
    border: 1px solid rgb(var(--color-border));
    accent-color: rgb(var(--color-primary-500));
}

.field {
    margin-bottom: 0;
}

.help {
    margin-top: 0.25rem;
    font-size: 12px;
    color: rgb(var(--color-text-soft));
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 9px 1.25rem;
    border-radius: var(--radius-control);
    transition: all 0.15s;
    cursor: pointer;
    border: none;
    text-decoration: none;
    line-height: 1.25rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn--block {
    width: 100%;
}

.btn--sm {
    padding: 0.375rem 0.75rem;
    font-size: 13px;
}

.btn--primary {
    background: rgb(var(--color-primary-500));
    color: rgb(var(--color-primary-fg));
}

.btn--primary:hover:not(:disabled) {
    filter: brightness(1.1);
}

.btn--primary:active {
    filter: brightness(0.95);
}

.btn--outline {
    background: rgb(var(--color-surface));
    color: rgb(var(--color-text));
    border: 1px solid rgb(var(--color-border));
    box-shadow: var(--shadow-control);
}

.btn--outline:hover:not(:disabled) {
    background: rgb(var(--color-surface-muted));
}

/* Square icon button */
.btn--icon {
    padding: 0.375rem;
    gap: 0;
}

/* Very small row action buttons (tables). */
.btn--xs {
    padding: 0.125rem 0.5rem;
    font-size: 11px;
    border-radius: var(--radius-control);
}

/* Colored semantic actions (refill=success, cancel=danger). */
.btn--success {
    background: rgb(46 231 182 / 0.1);
    color: #2ee7b6;
    border: 1px solid rgb(46 231 182 / 0.35);
    box-shadow: var(--shadow-control);
}

.btn--success:hover:not(:disabled) {
    background: rgb(46 231 182 / 0.18);
}

.btn--danger {
    background: rgb(255 62 62 / 0.1);
    color: #ff6b6b;
    border: 1px solid rgb(255 62 62 / 0.35);
    box-shadow: var(--shadow-control);
}

.btn--danger:hover:not(:disabled) {
    background: rgb(255 62 62 / 0.18);
}

/* Accent links */
.link {
    font-weight: 500;
    color: rgb(var(--color-primary-500));
    transition: color 0.15s;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
}

.link:hover {
    color: rgb(var(--color-primary-500) / 0.8);
}

/* Chip (network-logo filter on new_order) */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    flex-shrink: 0;
    border-radius: var(--radius-control);
    border: 1px solid rgb(var(--color-border-soft));
    background: rgb(var(--color-surface));
    color: rgb(var(--color-text-soft));
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.chip:hover {
    background: rgb(var(--color-surface-muted));
}

.chip img,
.chip svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.chip.is-active {
    border-color: rgb(var(--color-primary-500));
    background: rgb(var(--color-primary-50));
    color: rgb(var(--color-primary-700));
    box-shadow: 0 0 0 2px rgb(var(--color-primary-500) / 0.1);
}

/* Readout (read-only box: description, charge, average time) */
.readout {
    width: 100%;
    border: 1px solid rgb(var(--color-border-soft));
    border-radius: var(--radius-control);
    background: rgb(var(--color-surface-muted));
    padding: 9px 0.75rem;
    font-size: 0.875rem;
    color: rgb(var(--color-text-soft));
    white-space: pre-line;
}

.readout--value {
    color: rgb(var(--color-text));
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* Search (input with embedded button/magnifier) */
.search {
    position: relative;
    width: 100%;
}

@media (min-width: 640px) {
    .search {
        width: 18rem;
    }
}

.search .input {
    padding-right: 3rem;
}

.search-btn {
    position: absolute;
    inset-block: 0;
    right: 0;
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    border: none;
    border-radius: 0 var(--radius-control) var(--radius-control) 0;
    background: rgb(var(--color-primary-500));
    color: rgb(var(--color-primary-fg));
    cursor: pointer;
    transition: filter 0.15s;
}

.search-btn:hover {
    filter: brightness(1.1);
}

.search-btn svg {
    width: 1rem;
    height: 1rem;
}

/* Data table */
.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    text-align: left;
    font-size: 0.875rem;
    border-collapse: collapse;
}

.table thead tr {
    border-bottom: 1px solid rgb(var(--color-border-soft));
}

.table th {
    padding: 0.625rem 0.75rem;
    font-size: 11px;
    font-weight: 600;
    color: rgb(var(--color-text-soft) / 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.table td {
    padding: 0.625rem 0.75rem;
    vertical-align: top;
}

.table tbody tr {
    border-top: 1px solid rgb(var(--color-border-soft));
}

.table tbody tr:hover {
    background: rgb(var(--color-surface-muted) / 0.5);
}

.table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Long URL in a cell: truncate with ellipsis instead of letting it dictate the
   table width (the full link stays in href/title). */
.table .cell-trunc {
    display: inline-block;
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.table-empty {
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgb(var(--color-text-soft));
}

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-pill);
    padding: 0.125rem 0.5rem;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.badge--pending {
    background: rgb(255 175 0 / 0.12);
    color: #ffbe33;
}

/* amber */
.badge--processing {
    background: rgb(77 163 255 / 0.12);
    color: #4da3ff;
}

/* blue */
.badge--in-progress {
    background: rgb(56 189 248 / 0.12);
    color: #38bdf8;
}

/* sky */
.badge--completed {
    background: rgb(159 239 0 / 0.12);
    color: #9fef00;
}

/* neon green */
.badge--partial {
    background: rgb(255 159 67 / 0.12);
    color: #ff9f43;
}

/* orange */
.badge--canceled {
    background: rgb(164 177 205 / 0.12);
    color: #a4b1cd;
}

/* slate */
.badge--rejected {
    background: rgb(255 62 62 / 0.12);
    color: #ff5e5e;
}

/* red */
.badge--answered {
    background: rgb(77 163 255 / 0.12);
    color: #4da3ff;
}

.badge--closed {
    background: rgb(164 177 205 / 0.1);
    color: #8f9cb8;
}

.badge--welcome {
    background: rgb(167 139 250 / 0.12);
    color: #a78bfa;
}

.badge--neutral {
    background: rgb(164 177 205 / 0.12);
    color: #a4b1cd;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: rgb(var(--color-text-soft));
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-btn {
    border: 1px solid rgb(var(--color-border));
    border-radius: var(--radius-control);
    background: rgb(var(--color-surface));
    /* Buttons do NOT inherit text color — without this the ‹ › arrows render
       in the UA default (near-black) and vanish on the dark surface. */
    color: rgb(var(--color-text-soft));
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1;
    box-shadow: var(--shadow-control);
    cursor: pointer;
    transition: all 0.15s;
}

.page-btn:hover:not(:disabled) {
    background: rgb(var(--color-surface-muted));
    color: rgb(var(--color-text));
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Skeleton */
@keyframes pulse {
    50% {
        opacity: 0.5;
    }
}

.skeleton {
    background: rgb(var(--color-border-soft));
    border-radius: var(--radius-control);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.skeleton-line {
    height: 2.5rem;
}

/* Spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    width: 1rem;
    height: 1rem;
    animation: spin 1s linear infinite;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
}

.modal-box {
    position: relative;
    width: 100%;
    max-width: 32rem;
    background: rgb(var(--color-surface));
    border-radius: var(--radius);
    box-shadow: var(--shadow-menu);
    padding: 1.25rem;
    max-height: 80vh;
    overflow-y: auto;
}

@media (min-width: 768px) {
    .modal-box {
        padding: 1.5rem;
    }
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: rgb(var(--color-text-muted));
    font-size: 1.25rem;
    line-height: 1;
}

.modal-close:hover {
    color: rgb(var(--color-text-soft));
}

/* Alert */
.alert {
    border-radius: var(--radius-control);
    padding: 0.5rem 0.75rem;
    font-size: 13px;
}

.alert--warning {
    border: 1px solid rgb(255 175 0 / 0.35);
    background: rgb(255 175 0 / 0.08);
    color: #ffd166;
}

/* Toast (created dynamically at runtime) */
.toast {
    position: fixed;
    top: 1.75rem;
    right: 1.75rem;

    width: min(520px, calc(100vw - 2rem));
    max-width: 520px;

    padding: 1.15rem 1.25rem;

    border-radius: 12px;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.18);

    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.55;

    white-space: pre-line;
    word-break: break-word;

    z-index: 9999;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;

    animation: toastIn 0.25s ease;
}

.toast--ok {
    background: #dff5e7;
    color: #159447;
    border: 1px solid rgba(21, 148, 71, 0.18);
}

.toast--error {
    background: #ffe3e3;
    color: #c62828;
    border: 1px solid rgba(198, 40, 40, 0.18);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .toast {
        top: 1rem;
        right: 1rem;
        left: 1rem;

        width: auto;
        max-width: none;

        font-size: 0.88rem;
    }
}

/* Auth (login / signup / reset) */
.auth-page {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 3rem;
}

.auth-box {
    width: 100%;
    max-width: 380px;
    padding: 0 1rem;
}

.auth-card {
    padding: 2rem;
}

.auth-title {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 600;
    color: rgb(var(--color-text));
}

.auth-alt {
    text-align: center;
    font-size: 13px;
    color: rgb(var(--color-text-soft));
    padding-top: 0.25rem;
}

/* Status/help paragraph on auth pages ("email sent", "invalid token"). */
.auth-hint {
    text-align: center;
    font-size: 13px;
    color: rgb(var(--color-text-soft));
}

@media (min-width: 768px) {
    .auth-page {
        align-items: center;
        padding-top: 0;
        min-height: 75vh;
    }

    .auth-box {
        padding: 0;
    }
}

/* Card section title (h2 inside .card--pad). Keeps the browser's default top
   margin — collapses against the card padding exactly like the old inline style. */
.card-title {
    font-size: 13px;
    font-weight: 600;
    color: rgb(var(--color-text));
    margin-bottom: 1rem;
}

/* Responsive form grid (account page et al). --wide = the profile variant. */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-grid--wide {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Submit row spanning the whole grid. */
.form-actions {
    grid-column: 1 / -1;
    padding-top: 0.25rem;
}

/* Inline error message under a form control. */
.error-text {
    font-size: 12px;
    color: #ff5e5e;
}

/* Highlighted amount box (addfunds modals: "amount to pay"). */
.amount-box {
    text-align: center;
    border-radius: var(--radius-control);
    background: rgb(var(--color-primary-50));
    border: 1px solid rgb(var(--color-primary-200));
    padding: 0.625rem 0.75rem;
    margin-bottom: 1rem;
}

.amount-box--copy {
    cursor: pointer;
}

.amount-box-label {
    font-size: 11px;
    font-weight: 500;
    color: rgb(var(--color-primary-700));
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 0.125rem;
}

.amount-box-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: rgb(var(--color-primary-900));
}

/* Tiny uppercase section label (Endpoint / Request / Response, modal kickers). */
.eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgb(var(--color-text-soft));
}

/* Inline code chip (API docs). Pair with .mono. */
.code-chip {
    border-radius: var(--radius-control);
    background: rgb(var(--color-surface-muted));
    padding: 0.125rem 0.375rem;
    font-size: 13px;
    color: rgb(var(--color-text));
}

/* Code block (API docs request/response). --dark = the request variant. */
.code-block {
    background: rgb(var(--color-surface-muted));
    color: rgb(var(--color-text-soft));
    padding: 0.75rem 1rem;
    border-radius: var(--radius-control);
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    line-height: 1.625;
    box-shadow: 0 0 0 1px rgb(var(--color-border-soft));
}

.code-block--dark {
    background: #0f172a;
    color: #e2e8f0;
    box-shadow: none;
}

/* Utilities */
.stack>*+* {
    margin-top: 1rem;
}

/* column with uniform spacing */
.form-stack>*+* {
    margin-top: 1rem;
}

/* semantic alias for forms */
.stack-sm>*+* {
    margin-top: 0.5rem;
}

.stack-lg>*+* {
    margin-top: 1.5rem;
}

/* Label + link row (e.g. "Password" + "forgot my password"). */
.field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.375rem;
}

.row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.grow {
    flex: 1;
}

.muted {
    color: rgb(var(--color-text-soft));
}

.strong {
    font-weight: 600;
    color: rgb(var(--color-text));
}

.center {
    text-align: center;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* THE id style: every entity/reference id in tables and lists renders the same
   way — small mono, tabular digits, no wrap. Pair with `muted` (plain id) or
   `link` (clickable id); color comes from that pairing. */
.cell-id {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.75rem;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Dimmest text tier (placeholder dashes, de-emphasized hints). */
.dim {
    color: rgb(var(--color-text-muted));
}

.nowrap {
    white-space: nowrap;
}

/* Type-size helpers (match the sizes the theme already uses everywhere). */
.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 12px;
}

.text-2xs {
    font-size: 11px;
}

/* Flex row that wraps (button + input pairs, etc.). */
.row-wrap {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* =========================================================
   SEGUIDORES LU — NAVEGACIÓN DEL PANEL
   Corrección y diseño del menú lateral
   ========================================================= */

.sidebar .nav {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    padding: 0.75rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar .nav-link {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;

    width: 100%;
    min-height: 40px;

    margin: 0 0 3px 0;
    padding: 0.65rem 0.75rem;

    border: 0;
    border-radius: 0.625rem;

    background: transparent;

    color: rgb(var(--color-sidebar-fg) / 0.62);

    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;

    text-decoration: none !important;

    cursor: pointer;

    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.sidebar .nav-link:hover {
    color: rgb(var(--color-sidebar-fg));
    background: rgb(var(--color-sidebar-fg) / 0.06);
    text-decoration: none !important;
}

.sidebar .nav-link.is-active {
    color: rgb(var(--color-primary-500));
    background: rgb(var(--color-primary-500) / 0.10);
    font-weight: 600;
    text-decoration: none !important;
}

.sidebar .nav-link svg,
.sidebar .nav-link i {
    display: block;
    width: 18px;
    min-width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.8;
}

.sidebar .nav-link span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   GRUPOS DEL MENÚ
   ========================================================= */

.sidebar .nav-group {
    width: 100%;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgb(var(--color-sidebar-fg) / 0.07);
}

.sidebar .nav-section-title {
    display: block;
    width: 100%;

    margin: 0 0 0.45rem;
    padding: 0 0.75rem;

    color: rgb(var(--color-sidebar-fg) / 0.35);

    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* =========================================================
   BOTÓN NUEVO PEDIDO
   ========================================================= */

.sidebar .nav-link--primary {
    margin-bottom: 0.45rem;

    color: #ffffff;

    background: linear-gradient(135deg,
            rgb(var(--color-primary-500)),
            #2563eb);

    border: 1px solid rgb(var(--color-primary-500) / 0.25);

    box-shadow:
        0 6px 18px rgba(124, 58, 237, 0.20);

    font-weight: 700;
}

.sidebar .nav-link--primary:hover {
    color: #ffffff;

    background: linear-gradient(135deg,
            #8b5cf6,
            #3b82f6);

    transform: translateY(-1px);

    box-shadow:
        0 8px 22px rgba(124, 58, 237, 0.28);
}

.sidebar .nav-link--primary.is-active {
    color: #ffffff;

    background: linear-gradient(135deg,
            #7c3aed,
            #2563eb);
}


/* =========================================================
   SCROLLBAR DEL MENÚ
   ========================================================= */

.sidebar .nav::-webkit-scrollbar {
    width: 5px;
}

.sidebar .nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar .nav::-webkit-scrollbar-thumb {
    background: rgb(var(--color-sidebar-fg) / 0.10);
    border-radius: 999px;
}

.sidebar .nav::-webkit-scrollbar-thumb:hover {
    background: rgb(var(--color-sidebar-fg) / 0.18);
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 1023px) {

    .sidebar .nav {
        padding: 0.75rem;
    }

    .sidebar .nav-link {
        min-height: 44px;
        padding: 0.7rem 0.8rem;
        font-size: 14px;
    }

    .sidebar .nav-link svg,
    .sidebar .nav-link i {
        width: 19px;
        min-width: 19px;
        height: 19px;
    }

}

/* =========================================================
   SEGUIDORES LU — BRANDING SIDEBAR
   ========================================================= */

.sidebar-logo {
    min-height: 72px;
    height: auto;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 0.75rem;

    padding: 0.85rem 1rem;

    border-bottom: 1px solid rgb(var(--color-sidebar-fg) / 0.06);
}


.sidebar-logo-mark {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: linear-gradient(135deg,
            #7c3aed,
            #2563eb);

    box-shadow:
        0 6px 18px rgba(124, 58, 237, 0.20);

    color: #ffffff;

    font-size: 13px;
    font-weight: 800;
}


.sidebar-logo-mark img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    border-radius: 10px;
}


.sidebar-brand-wrap {
    min-width: 0;

    display: flex;
    flex-direction: column;
}


.sidebar-brand {
    font-size: 15px;
    font-weight: 750;

    line-height: 1.2;

    color: #ffffff;

    white-space: nowrap;
}


.sidebar-brand-subtitle {
    margin-top: 3px;

    font-size: 10px;
    font-weight: 500;

    color:
        rgb(var(--color-sidebar-fg) / 0.42);

    letter-spacing: 0.04em;

    text-transform: uppercase;
}


/* =========================================================
   HEADER AUTENTICADO
   ========================================================= */

.header--auth {
    min-height: 60px;
    height: 60px;

    padding: 0 1.25rem;

    border-bottom: 1px solid rgb(var(--color-border-soft) / 0.75);

    background:
        rgb(var(--color-surface) / 0.96);

    backdrop-filter: blur(12px);
}


.header-left {
    display: flex;
    align-items: center;

    gap: 0.9rem;

    min-width: 0;
}


/* Marca dentro del header */

.header-brand-auth {
    display: flex;
    align-items: center;

    gap: 0.65rem;

    min-width: 0;
}


.header-brand-auth-mark {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: linear-gradient(135deg,
            #7c3aed,
            #2563eb);

    color: #ffffff;

    font-size: 11px;
    font-weight: 800;
}


.header-brand-auth-mark img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    border-radius: 8px;
}


.header-brand-auth-text {
    display: flex;
    flex-direction: column;

    min-width: 0;
}


.header-brand-auth-name {
    font-size: 13px;
    line-height: 1.2;

    font-weight: 700;

    color: rgb(var(--color-text));
}


.header-brand-auth-subtitle {
    margin-top: 2px;

    font-size: 10px;

    color: rgb(var(--color-text-muted));
}


/* =========================================================
   SALDO
   ========================================================= */

.header-btn--balance {
    display: flex;
    align-items: center;

    gap: 0.6rem;

    min-height: 40px;

    padding: 0.35rem 0.75rem;

    border: 1px solid rgb(var(--color-border-soft));

    border-radius: 10px;

    background:
        rgb(var(--color-surface-muted) / 0.45);
}


.header-btn--balance:hover {
    background:
        rgb(var(--color-primary-500) / 0.08);

    border-color:
        rgb(var(--color-primary-500) / 0.24);
}


.balance-icon {
    width: 27px;
    height: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background:
        rgb(var(--color-primary-500) / 0.12);

    color: #a78bfa;
}


.balance-icon svg {
    width: 15px;
    height: 15px;
}


.balance-content {
    display: flex;
    flex-direction: column;

    line-height: 1.1;
}


.balance-label {
    margin-bottom: 2px;

    font-size: 9px;

    color: rgb(var(--color-text-muted));

    text-transform: uppercase;

    letter-spacing: 0.05em;
}


.balance-content strong {
    font-size: 12px;

    color: rgb(var(--color-text));

    font-variant-numeric: tabular-nums;
}


/* =========================================================
   BOTÓN AÑADIR FONDOS
   ========================================================= */

.header-addfunds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 0.45rem;

    min-height: 38px;

    padding: 0.5rem 0.8rem;

    border-radius: 9px;

    background: linear-gradient(135deg,
            #7c3aed,
            #2563eb);

    color: #ffffff;

    font-size: 12px;
    font-weight: 650;

    text-decoration: none;

    box-shadow:
        0 5px 14px rgba(124, 58, 237, 0.18);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;
}


.header-addfunds-btn:hover {
    color: #ffffff;

    transform: translateY(-1px);

    filter: brightness(1.08);

    box-shadow:
        0 7px 18px rgba(124, 58, 237, 0.24);
}


.header-addfunds-btn svg {
    width: 14px;
    height: 14px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (min-width: 1024px) {

    .header-brand-auth {
        display: none;
    }

}


@media (max-width: 767px) {

    .header--auth {
        height: 56px;
        min-height: 56px;

        padding: 0 0.75rem;
    }


    .header-actions {
        gap: 0.25rem;
    }


    .header-brand-auth-subtitle {
        display: none;
    }


    .header-brand-auth-name {
        font-size: 12px;
    }


    .header-brand-auth-mark {
        width: 30px;
        height: 30px;
    }


    .header-btn--balance {
        min-height: 36px;

        padding: 0.3rem 0.55rem;
    }


    .balance-label {
        display: none;
    }


    .balance-content strong {
        font-size: 11px;
    }


    .balance-icon {
        display: none;
    }


    .header-addfunds-btn {
        width: 34px;
        min-width: 34px;
        height: 34px;
        min-height: 34px;

        padding: 0;

        border-radius: 9px;
    }


    .header-addfunds-btn span {
        display: none;
    }

}


@media (max-width: 420px) {

    .header-brand-auth-text {
        display: none;
    }

}

/* =========================================================
   FIX HEADER — SEGUIDORES LU
   PEGAR AL FINAL ABSOLUTO DE style.css
   ========================================================= */


/* HEADER GENERAL */
.header--auth {
    height: 60px !important;
    min-height: 60px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    padding: 0 20px !important;

    background: rgb(var(--color-surface)) !important;

    border-bottom: 1px solid rgb(var(--color-border-soft)) !important;
}


/* LADO IZQUIERDO */
.header-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}


/* =========================================================
   MARCA DEL HEADER
   Solo se verá en móvil
   ========================================================= */

.header-brand-auth {
    display: flex;
    align-items: center;

    gap: 8px;

    min-width: 0;
}


.header-brand-auth-mark {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;

    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;

    border-radius: 9px;

    background: linear-gradient(135deg,
            #7c3aed,
            #2563eb);
}


.header-brand-auth-mark img {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    height: 100% !important;
    max-height: 100% !important;

    object-fit: contain !important;
}


.header-brand-auth-text {
    display: flex;
    flex-direction: column;
}


.header-brand-auth-name {
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    line-height: 1.15;
}


.header-brand-auth-subtitle {
    margin-top: 2px;

    color: rgb(var(--color-text-muted));

    font-size: 10px;

    line-height: 1.1;
}


/* =========================================================
   ACCIONES DEL HEADER
   ========================================================= */

.header-actions {
    display: flex !important;

    align-items: center !important;

    justify-content: flex-end !important;

    gap: 8px !important;

    margin-left: auto !important;
}


/* =========================================================
   SALDO
   ========================================================= */

.header-btn--balance {
    display: flex !important;

    align-items: center !important;

    gap: 8px !important;

    height: 38px !important;

    padding: 5px 10px !important;

    margin: 0 !important;

    border: 1px solid rgb(var(--color-border-soft)) !important;

    border-radius: 9px !important;

    background:
        rgb(var(--color-surface-muted) / 0.50) !important;

    color: rgb(var(--color-text)) !important;

    text-decoration: none !important;
}


.balance-icon {
    width: 26px !important;
    min-width: 26px !important;

    height: 26px !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    border-radius: 7px;

    background:
        rgb(var(--color-primary-500) / 0.12);

    color: #a78bfa;
}


.balance-icon svg {
    width: 15px !important;
    height: 15px !important;
}


.balance-content {
    display: flex !important;
    flex-direction: column !important;

    line-height: 1.05 !important;
}


.balance-label {
    color: rgb(var(--color-text-muted));

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .04em;
}


.balance-content strong {
    color: #ffffff;

    font-size: 12px;

    font-weight: 700;
}


/* =========================================================
   BOTÓN AÑADIR FONDOS
   ========================================================= */

.header-addfunds-btn {
    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    gap: 7px !important;

    height: 38px !important;

    padding: 0 14px !important;

    margin: 0 !important;

    border: none !important;

    border-radius: 9px !important;

    background: linear-gradient(135deg,
            #7c3aed 0%,
            #2563eb 100%) !important;

    color: #ffffff !important;

    font-size: 12px !important;

    font-weight: 700 !important;

    line-height: 1 !important;

    text-decoration: none !important;

    box-shadow:
        0 5px 16px rgba(124, 58, 237, 0.20);

    cursor: pointer;

    transition:
        transform .18s ease,
        filter .18s ease;
}


.header-addfunds-btn:hover {
    color: #ffffff !important;

    text-decoration: none !important;

    transform: translateY(-1px);

    filter: brightness(1.08);
}


/* IMPORTANTÍSIMO:
   evita que el SVG + se vuelva gigante */
.header-addfunds-btn svg {
    display: block !important;

    width: 15px !important;
    min-width: 15px !important;
    max-width: 15px !important;

    height: 15px !important;
    min-height: 15px !important;
    max-height: 15px !important;
}


/* =========================================================
   ESCRITORIO
   La marca ya está en el sidebar.
   NO repetimos Seguidores LU arriba.
   ========================================================= */

@media (min-width: 1024px) {

    .header-brand-auth {
        display: none !important;
    }

}


/* =========================================================
   TABLET / MÓVIL
   ========================================================= */

@media (max-width: 767px) {

    .header--auth {
        height: 56px !important;

        min-height: 56px !important;

        padding: 0 10px !important;
    }


    .header-actions {
        gap: 5px !important;
    }


    .header-brand-auth-mark {
        width: 30px !important;
        min-width: 30px !important;
        max-width: 30px !important;

        height: 30px !important;
        min-height: 30px !important;
        max-height: 30px !important;
    }


    .header-brand-auth-subtitle {
        display: none !important;
    }


    .header-btn--balance {
        height: 34px !important;

        padding: 4px 8px !important;
    }


    .balance-icon,
    .balance-label {
        display: none !important;
    }


    .header-addfunds-btn {
        width: 34px !important;

        min-width: 34px !important;

        height: 34px !important;

        padding: 0 !important;
    }


    .header-addfunds-btn span {
        display: none !important;
    }

}


/* Móviles pequeños */
@media (max-width: 430px) {

    .header-brand-auth-text {
        display: none !important;
    }

}

/* =========================================================
   SEGUIDORES LU — NUEVA ORDEN
   Mejoras visuales conservando la lógica original
   ========================================================= */


/* =========================
   ENCABEZADO
   ========================= */

.new-order-header {
    display: flex;
    align-items: center;

    gap: 0.85rem;

    padding-bottom: 1.1rem;

    margin-bottom: 0.25rem;

    border-bottom: 1px solid rgb(var(--color-border-soft) / 0.65);
}


.new-order-header-icon {
    width: 42px;
    min-width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: linear-gradient(135deg,
            #7c3aed,
            #2563eb);

    color: #ffffff;

    box-shadow:
        0 6px 18px rgba(124, 58, 237, 0.20);
}


.new-order-header-icon svg {
    width: 19px;
    height: 19px;
}


.new-order-title {
    margin: 0;

    color: rgb(var(--color-text));

    font-size: 18px;
    font-weight: 750;

    line-height: 1.25;
}


.new-order-subtitle {
    margin: 4px 0 0;

    color: rgb(var(--color-text-soft));

    font-size: 12px;

    line-height: 1.45;
}


/* =========================
   ETIQUETA DE SECCIÓN
   ========================= */

.new-order-section-label {
    margin-bottom: -0.5rem;

    color: rgb(var(--color-text-muted));

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.07em;

    text-transform: uppercase;
}


/* =========================
   COSTO DEL PEDIDO
   ========================= */

.order-cost-box {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 1rem;

    width: 100%;

    padding: 0.85rem 1rem;

    border: 1px solid rgb(var(--color-primary-500) / 0.22);

    border-radius: 0.75rem;

    background:
        linear-gradient(135deg,
            rgb(var(--color-primary-500) / 0.08),
            rgb(37 99 235 / 0.05));
}


.order-cost-left {
    display: flex;

    align-items: center;

    gap: 0.7rem;
}


.order-cost-icon {
    width: 34px;
    min-width: 34px;

    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 9px;

    background:
        rgb(var(--color-primary-500) / 0.13);

    color: #a78bfa;
}


.order-cost-icon svg {
    width: 17px;
    height: 17px;
}


.order-cost-label {
    display: block;

    color: rgb(var(--color-text));

    font-size: 12px;

    font-weight: 650;
}


.order-cost-hint {
    display: block;

    margin-top: 2px;

    color: rgb(var(--color-text-muted));

    font-size: 10px;
}


.order-cost-value {
    flex-shrink: 0;

    color: #ffffff;

    font-size: 18px;

    font-weight: 750;

    font-variant-numeric: tabular-nums;
}


/* =========================
   REALIZAR PEDIDO
   ========================= */

.order-submit-btn {
    min-height: 46px;

    border-radius: 0.7rem;

    background: linear-gradient(135deg,
            #7c3aed 0%,
            #2563eb 100%);

    color: #ffffff;

    font-weight: 700;

    box-shadow:
        0 7px 20px rgba(124, 58, 237, 0.18);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;
}


.order-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);

    filter: brightness(1.08);

    box-shadow:
        0 9px 24px rgba(124, 58, 237, 0.25);
}


.order-submit-btn:disabled {
    transform: none;

    box-shadow: none;

    opacity: 0.45;
}


.order-submit-content {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 0.5rem;
}


.order-submit-content svg {
    width: 17px;
    height: 17px;
}


/* =========================
   MÓVIL
   ========================= */

@media (max-width: 600px) {

    .new-order-header {
        align-items: flex-start;
    }


    .new-order-header-icon {
        width: 38px;
        min-width: 38px;

        height: 38px;

        border-radius: 10px;
    }


    .new-order-title {
        font-size: 16px;
    }


    .new-order-subtitle {
        font-size: 11px;
    }


    .order-cost-box {
        padding: 0.75rem;
    }


    .order-cost-icon {
        display: none;
    }


    .order-cost-value {
        font-size: 16px;
    }


    .order-submit-btn {
        min-height: 44px;
    }

}

/* =========================================================
   SEGUIDORES LU - LOGIN / AUTH
   ========================================================= */

.auth-page--brand {
    width: 100%;
    min-height: calc(100vh - 130px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.auth-layout {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 72px;
    align-items: center;
}


/* PRESENTACIÓN */

.auth-brand-panel {
    display: flex;
    align-items: center;
}

.auth-brand-content {
    max-width: 650px;
}

.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    margin-bottom: 22px;
    border: 1px solid rgb(var(--color-border-soft));
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: rgb(var(--color-surface));
}

.auth-brand-title {
    margin: 0 0 18px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -2px;
    font-weight: 800;
}

.auth-brand-title span {
    display: block;
    color: rgb(var(--color-primary));
}

.auth-brand-description {
    max-width: 600px;
    margin: 0 0 32px;
    font-size: 17px;
    line-height: 1.7;
    opacity: 0.82;
}


/* BENEFICIOS */

.auth-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 30px;
}

.auth-benefit {
    display: flex;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgb(var(--color-border-soft));
    border-radius: 14px;
    background: rgb(var(--color-surface));
}

.auth-benefit-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgb(var(--color-primary));
    color: white;
    font-weight: 800;
}

.auth-benefit strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.auth-benefit p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    opacity: 0.7;
}


/* BOTONES */

.auth-brand-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 10px;
}

.auth-brand-register {
    min-width: 170px;
    text-align: center;
}

.auth-brand-services {
    font-weight: 600;
    text-decoration: none;
    color: rgb(var(--color-text));
    opacity: 0.8;
}

.auth-brand-services:hover {
    opacity: 1;
}

.auth-brand-note {
    margin-top: 26px;
    max-width: 540px;
    font-size: 12px;
    line-height: 1.6;
    opacity: 0.55;
}


/* LOGIN */

.auth-login-panel {
    width: 100%;
    display: flex;
    justify-content: center;
}

.auth-login-panel .auth-box {
    width: 100%;
    max-width: 440px;
}

.auth-login-panel .auth-card {
    width: 100%;
    padding: 34px;
}

.auth-login-heading {
    margin-bottom: 26px;
}

.auth-login-kicker {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgb(var(--color-primary));
}

.auth-login-heading .auth-title {
    margin-bottom: 8px;
}

.auth-login-subtitle {
    margin: 0;
    font-size: 13px;
    opacity: 0.65;
}

.auth-login-button {
    min-height: 46px;
    font-weight: 700;
}

.auth-divider {
    height: 1px;
    margin: 6px 0;
    background: rgb(var(--color-border-soft));
}

.auth-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
    font-size: 11px;
    opacity: 0.5;
}

.auth-security-note p {
    margin: 0;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

    .auth-layout {
        max-width: 700px;
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .auth-brand-content {
        max-width: none;
        text-align: center;
    }

    .auth-brand-description {
        margin-left: auto;
        margin-right: auto;
    }

    .auth-brand-actions {
        justify-content: center;
    }

    .auth-brand-note {
        margin-left: auto;
        margin-right: auto;
    }

    .auth-login-panel .auth-box {
        max-width: 500px;
    }

}

/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 640px) {

    .auth-page--brand {
        padding: 32px 16px;
        min-height: auto;
    }

    .auth-layout {
        gap: 30px;
    }

    .auth-brand-title {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .auth-brand-description {
        font-size: 15px;
    }

    .auth-benefits {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .auth-brand-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-brand-register {
        width: 100%;
    }

    .auth-brand-services {
        text-align: center;
        padding: 8px 0;
    }

    .auth-login-panel .auth-card {
        padding: 24px;
    }

}

/* =========================================================
   SEGUIDORES LU - SIGNUP
   ========================================================= */

.signup-terms {
    padding: 14px 16px;
    border: 1px solid rgb(var(--color-border-soft));
    border-radius: 12px;
    background: rgb(var(--color-surface));
}

.signup-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: rgb(var(--color-text-soft));
}

.signup-terms-label .checkbox {
    flex: 0 0 auto;
    margin-top: 3px;
}

.signup-terms-note {
    margin: 8px 0 0 26px;
    font-size: 11px;
    line-height: 1.5;
    opacity: 0.55;
}

.signup-confirmation {
    text-align: center;
    padding: 16px 0 4px;
}

.signup-confirmation-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgb(var(--color-border-soft));
    background: rgb(var(--color-surface));
    font-size: 23px;
}

.signup-confirmation h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.signup-confirmation .auth-hint {
    margin-bottom: 20px;
    line-height: 1.6;
}

/* =========================================================
   SEGUIDORES LU - FOOTER
   ========================================================= */

.footer--lu {
    padding: 18px 24px;
}

.footer-inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-copyright {
    font-size: 12px;
    line-height: 1.5;
    opacity: 0.62;
}

.footer-copyright strong {
    font-weight: 700;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a {
    font-size: 12px;
    text-decoration: none;
    color: inherit;
    opacity: 0.62;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
}

/* MÓVIL */

@media (max-width: 760px) {

    .footer-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    .footer-links {
        justify-content: center;
        gap: 10px 16px;
    }

}

/* =========================================================
   SEGUIDORES LU - FOOTER
   ========================================================= */

.footer--lu {
    padding: 18px 24px;
}

.footer-inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-copyright {
    font-size: 12px;
    line-height: 1.5;
    opacity: 0.65;
}

.footer-copyright strong {
    font-weight: 700;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    font-size: 12px;
    opacity: 0.65;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
}

@media (max-width: 760px) {
    .footer-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    .footer-links {
        justify-content: center;
        gap: 10px 16px;
    }
}

/* =========================================================
   SEGUIDORES LU - FOOTER
   ========================================================= */

.footer {
    padding: 18px 24px;
}

.footer-content {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-copyright {
    font-size: 12px;
    line-height: 1.5;
    color: rgb(var(--color-text-soft));
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgb(var(--color-text-soft));
    text-decoration: none;
    font-size: 12px;
    line-height: 1.5;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-links a:hover {
    color: rgb(var(--color-primary));
}

.footer-links a:visited {
    color: rgb(var(--color-text-soft));
}

.footer-links a:focus-visible {
    outline: 2px solid rgb(var(--color-primary));
    outline-offset: 3px;
    border-radius: 4px;
}

/* MÓVIL */
@media (max-width: 760px) {

    .footer {
        padding: 18px 16px;
    }

    .footer-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    .footer-links {
        justify-content: center;
        gap: 8px 14px;
    }

}

/* =========================================================
   SEGUIDORES LU - AVISO NUEVO PEDIDO
   ========================================================= */

.neworder-notice {
    padding: 14px 16px;
    border: 1px solid rgb(var(--color-border-soft));
    border-radius: 12px;
    background: rgb(var(--color-surface));
}

.neworder-notice strong {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
}

.neworder-notice p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: rgb(var(--color-text-soft));
}

/* =========================================================
   SEGUIDORES LU - TOTAL DEL PEDIDO
   ========================================================= */

.neworder-total {
    padding: 16px 18px;
    border: 1px solid rgb(var(--color-border-soft));
    border-radius: 12px;
    background: rgb(var(--color-surface));

    outline: 2px solid #7c3aed !important;
    padding: 20px !important;
}

.neworder-total-label {
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: rgb(var(--color-text-soft));
}

.neworder-total-value {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.neworder-total-help {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.5;
    color: rgb(var(--color-text-soft));
}

/* =========================================================
   SEGUIDORES LU - BOTÓN CONFIRMAR PEDIDO
   ========================================================= */

.neworder-submit {
    min-height: 46px;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: 12px;
    background: linear-gradient(135deg,
            #7c3aed 0%,
            #2563eb 100%);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.20);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease,
        opacity 0.18s ease;
}

.neworder-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.28);
}

/* =========================================================
   SEGUIDORES LU - PEDIDOS
   ========================================================= */

.orders-heading {
    margin-bottom: 8px;
}

.orders-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
    color: rgb(var(--color-text));
}

/* =========================================================
   SEGUIDORES LU - SERVICIOS
   ========================================================= */

.services-search {
    width: 100%;
    max-width: 520px;
}

/* =========================================================
   FIX — SELECTORES HEADER POR ENCIMA DEL CONTENIDO
   ========================================================= */

.header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    overflow: visible !important;
}

.header--auth,
.header--public,
.header-actions,
.header-inner {
    overflow: visible !important;
}

.header .dropdown {
    position: relative !important;
    z-index: 1100 !important;
}

.header .dropdown-menu {
    z-index: 1200 !important;
}

/* =========================================================
   FIX DEFINITIVO — MENÚ DE IDIOMA POR ENCIMA
   ========================================================= */

.header-actions {
    overflow: visible !important;
}

.header-actions>* {
    position: relative;
    z-index: 1;
}

.header-actions .lang-switcher {
    position: relative !important;
    z-index: 99998 !important;
}

.header-actions .lang-switcher .dropdown-menu {
    position: absolute !important;
    z-index: 99999 !important;

    top: calc(100% + 6px) !important;
    right: 0 !important;
    left: auto !important;

    min-width: 150px !important;

    overflow: visible !important;
}

/* =========================================================
   FIX POSICIÓN DEL SELECTOR DE IDIOMA
   ========================================================= */

.lang-switcher {
    position: relative !important;
}

.lang-switcher-menu {
    top: calc(100% + 12px) !important;
    right: 0 !important;
    left: auto !important;

    min-width: 160px !important;
    height: auto !important;
    max-height: none !important;

    padding: 6px 0 !important;

    overflow: visible !important;

    background: rgb(var(--color-surface)) !important;
    border: 1px solid rgb(var(--color-border-soft)) !important;
    border-radius: 10px !important;

    z-index: 99999 !important;
}

.lang-switcher-menu .dropdown-item {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 36px !important;

    padding: 9px 14px !important;

    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* =========================================================
   FIX VISIBILIDAD HEADER PÚBLICO / CLIENTE
   ========================================================= */

.ui-authenticated-only.hidden,
.ui-public-only.hidden {
    display: none !important;
}

/* =========================================================
   CONFIRMACIÓN DE NUEVO PEDIDO
   ========================================================= */

.order-success {
    position: relative;

    margin: 0.25rem 0 0.5rem;
    padding: 1rem 1.2rem;

    background: rgba(22, 163, 74, 0.10);

    border: 1px solid rgba(34, 197, 94, 0.30);
    border-radius: 12px;

    color: rgb(var(--color-text));

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.08);
}


/* TÍTULO */

.order-success-title {
    margin-bottom: 0.55rem;

    color: #4ade80;

    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
}


/* INFORMACIÓN */

.order-success-details {
    display: flex;
    flex-direction: column;

    gap: 0.22rem;

    padding-right: 2rem;

    font-size: 0.82rem;
    line-height: 1.5;
}


.order-success-details>div {
    min-width: 0;
}


.order-success-details strong {
    color: rgb(var(--color-text));
    font-weight: 700;
}


.order-success-details span {
    color: rgb(var(--color-text));
}


/* ENLACE */

.order-success-link {
    color: #4ade80;

    font-size: 0.82rem;
    font-weight: 600;

    text-decoration: none;

    overflow-wrap: anywhere;
    word-break: break-word;
}


.order-success-link:hover {
    text-decoration: underline;
}


/* CERRAR */

.order-success-close {
    position: absolute;

    top: 0.65rem;
    right: 0.75rem;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    padding: 0;

    border: 0;
    border-radius: 7px;

    background: transparent;

    color: rgb(var(--color-text-soft));

    font-size: 20px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}


.order-success-close:hover {
    background: rgba(255, 255, 255, 0.07);
    color: rgb(var(--color-text));
}


/* MÓVIL */

@media (max-width: 640px) {

    .order-success {
        padding: 0.9rem 1rem;
    }

    .order-success-details {
        padding-right: 1.5rem;

        font-size: 0.8rem;
        line-height: 1.55;
    }

    .order-success-link {
        font-size: 0.8rem;
        word-break: break-all;
    }

}