@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Primary brand — los themes sobrescriben main-color* */
    --main-color: #06b6d4;
    --main-color-dark: #0891b2;
    --main-color-lighten: #22d3ee;

    /* Accent — sigue al theme activo (cyan solo en Modern Default) */
    --accent: var(--main-color);
    --accent-hover: var(--main-color-dark);
    --accent-light: var(--main-color-lighten);
    --accent-muted: color-mix(in srgb, var(--main-color) 12%, transparent);
    --accent-glow: color-mix(in srgb, var(--main-color) 28%, transparent);
    --brand-text-end: #ecfeff;
    --nav-vip-color: #fef08a;
    --header-accent-line: linear-gradient(
        90deg,
        color-mix(in srgb, var(--main-color-lighten) 70%, white) 0%,
        var(--main-color-lighten) 22%,
        var(--main-color) 52%,
        var(--main-color-dark) 82%,
        color-mix(in srgb, var(--main-color-dark) 72%, black) 100%
    );
    --footer-accent-line: var(--header-accent-line);
    --anchor-text-color: var(--main-color);
    --heading-color: #0f172a;

    /* Superficies */
    --page-bg: #f1f5f9;
    --surface-color: #ffffff;
    --box-bg: #ffffff;
    --box-border: #e2e8f0;
    --border-color: #cbd5e1;
    --text-color: #334155;
    --supress-text-color: #64748b;
    --text-shadow: transparent;

    /* Nav / botones oscuros */
    --secondary-color: #1e293b;
    --secondary-gradient: #0f172a;
    --secondary-color-hover: #334155;
    --white-color-hover: rgba(255, 255, 255, 0.08);
    --border-left: rgba(255, 255, 255, 0.08);
    --border-right: rgba(255, 255, 255, 0.04);
    --white-color: #ffffff;

    /* Layout */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.1);
    --transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1);

    /* Header / footer — cyan */
    --header-bg-color: #0891b2;
    --header-bg-image: linear-gradient(135deg, #22d3ee 0%, #06b6d4 42%, #0891b2 78%, #0e7490 100%);

    /* Estados */
    --vip-highlight-bg: var(--accent-muted);
    --vip-success-text: #059669;
    --vip-danger-color: #ef4444;
    --vip-danger-bg: rgba(239, 68, 68, 0.08);
    --status-on: #22c55e;

    /* Flecha para campos <select> */
    --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, a, input, textarea, select, button {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body, a {
    color: var(--text-color);
}

html {
    height: 100%;
}

body {
    background: var(--page-bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100%;
    min-height: 100dvh;
}

.content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.site-header {
    flex-shrink: 0;
}

img, iframe {
    max-width: 100%;
}

a {
    text-decoration: none;
    color: var(--accent);
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.02em;
}

input:not([type=radio]):not([type=checkbox]), textarea {
    outline: none;
    display: block;
    max-width: 100%;
    padding: 10px 14px;
    font-weight: 400;
    font-size: 0.925rem;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--surface-color);
    border: 1px solid var(--box-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}

select {
    outline: none;
    display: block;
    max-width: 100%;
    padding: 10px 2.75rem 10px 14px;
    font-weight: 400;
    font-size: 0.925rem;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--surface-color);
    background-image: var(--select-chevron);
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    border: 1px solid var(--box-border);
    border-radius: var(--radius-sm);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
}

input:not([type=radio]):not([type=checkbox]):focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

button, .btn {
    padding: 0 18px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-grid;
    place-content: center;
    border-radius: var(--radius-sm);
    height: 38px;
    line-height: 38px;
    border: 1px solid transparent;
    background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent) 50%, var(--accent-hover) 100%);
    color: var(--white-color);
    box-shadow: 0 2px 8px var(--accent-glow);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

button:hover, .btn:hover {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-hover) 100%);
    box-shadow: 0 4px 14px var(--accent-glow);
}

button:active, .btn:active {
    transform: translateY(1px);
}

label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #475569;
}

fieldset {
    padding: 18px 20px;
    border: 1px solid var(--box-border);
    border-radius: var(--radius);
    background: var(--surface-color);
}

form, .grey-box {
    padding: 24px;
    border: 1px solid var(--box-border);
    border-radius: var(--radius-lg);
    background: var(--box-bg);
    box-shadow: var(--shadow-sm);
}

/* ── Header + Nav (barra horizontal) ── */

header.site-header,
header {
    position: relative;
    margin-bottom: 0;
}

header.site-header::after,
header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--header-accent-line);
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 2px 10px var(--accent-glow);
}

footer {
    margin: 0;
    padding: 0;
}

/* ── Footer ── */

.site-footer {
    position: relative;
    flex-shrink: 0;
    margin-top: auto;
    background-color: var(--header-bg-color);
    background-image: var(--header-bg-image);
    overflow: hidden;
    box-shadow: 0 -4px 24px var(--accent-glow);
}

.footer-accent {
    height: 4px;
    background: var(--footer-accent-line);
    box-shadow: 0 2px 10px var(--accent-glow);
}

.footer-inner {
    position: relative;
    z-index: 1;
    width: min(94vw, 1180px);
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 0 22px;
}

.footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.88);
}

.footer-bar a {
    color: #fff;
    font-weight: 600;
}

.footer-bar a:hover {
    color: #ecfeff;
}

@media (max-width: 768px) {
    .footer-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.head-bg {
    position: absolute;
    inset: 0;
    background-color: var(--header-bg-color);
    background-image: var(--header-bg-image);
    background-size: cover;
    background-position: center;
    min-height: 0;
    height: 100%;
    border-bottom: none;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.header-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    width: min(94vw, 1180px);
    max-width: 1180px;
    margin: 0 auto;
    min-height: 68px;
    padding: 10px 0;
}

.content-wrapper {
    width: min(94vw, 1180px);
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    flex: 1 0 auto;
    padding: 28px 0 56px;
}

.header-inner .brand-container {
    margin: 0;
    flex-shrink: 0;
    width: auto;
    padding: 0;
    text-decoration: none;
    color: var(--white-color);
}

.brand-container {
    color: var(--white-color);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-container .site-logo {
    display: block;
    max-height: 42px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.brand-container.brand-display-logo_only .title {
    display: none;
}

.brand-container .title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
    white-space: nowrap;
    background: linear-gradient(135deg, #fff 0%, #ecfeff 55%, #cffafe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 1px rgba(15, 23, 42, 0.12));
}

.brand-container .description {
    display: none;
}

nav {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    box-shadow: none;
    height: auto;
    min-height: 0;
    line-height: normal;
    margin: 0;
    padding: 0;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    padding: 0;
    width: auto;
    background: transparent;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
}

nav li {
    border: none;
    height: auto;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

nav li:hover {
    background: rgba(255, 255, 255, 0.14);
}

nav li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: none;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
}

.nav-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.92;
}

nav li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

nav li a.nav-vip {
    color: var(--nav-vip-color);
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.15);
}

@media (max-width: 900px) {
    .header-inner {
        gap: 16px;
        padding: 12px 0 14px;
        min-height: auto;
    }

    nav li a {
        padding: 8px 10px;
        font-size: 0.72rem;
    }
}

/* ── Forms flotantes ── */

.input-area {
    margin: 18px 10px 10px;
    display: grid;
    grid-template-columns: 1fr;
}

.input-area input,
.input-area label {
    grid-column: 1/2;
    grid-row: 1/2;
    font-weight: normal;
}

.input-area input + label,
.input-area input:focus + label {
    transform: translateY(-26px);
    transition: all 0.25s ease;
    font-size: 0.78rem;
    color: var(--accent);
    padding: 10px 0;
    opacity: 1;
    z-index: 1;
}

.input-area input:placeholder-shown + label {
    transform: none;
    padding: 10px 14px;
    pointer-events: none;
    color: var(--supress-text-color);
}

.login-box {
    width: min(100%, 380px);
    margin: 0 auto;
    padding: 8px 0;
}

.center-box {
    display: grid;
    justify-items: center;
}

.center-box .input-area small {
    justify-self: end;
    margin-top: 5px;
}

.center {
    text-align: center;
}

.center > * {
    margin: 0 auto;
}

.danger {
    color: var(--vip-danger-color);
}

form.new-form {
    margin: 10px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

.input-title {
    font-size: 1.25rem;
    width: calc(100% - 20px);
    padding: 12px 14px;
    font-weight: 600;
}

/* ── Tabs ── */

.tabs {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    grid-auto-flow: column;
    border-left: 1px solid var(--box-border);
    border-bottom: 1px solid var(--box-border);
    border-top-left-radius: var(--radius);
    margin-bottom: -1px;
    overflow: hidden;
}

.tabs li {
    text-align: center;
    border: 1px solid var(--box-border);
    border-left: none;
    background: #f8fafc;
    cursor: pointer;
    color: var(--supress-text-color);
    height: 38px;
    line-height: 38px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background var(--transition), color var(--transition);
}

.tabs li div {
    border: none;
    border-bottom: none;
    overflow: hidden;
    height: 38px;
}

.tabs li.active,
.tabs li.active > div {
    background: var(--surface-color);
    color: var(--accent);
    border-bottom: 1px solid var(--surface-color);
    box-shadow: inset 0 -2px 0 var(--accent);
}

/* ── Paste view panel ── */

.paste-panel {
    width: 100%;
    border: 1px solid var(--box-border);
    border-radius: var(--radius-lg);
    background: var(--box-bg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.paste-panel-head {
    padding: 20px 22px 18px;
    border-bottom: 1px solid var(--box-border);
}

.paste-panel-title {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.3;
    color: var(--heading-color);
}

.paste-panel-body {
    padding: 18px 22px 0;
}

.paste-panel-content.tab_container {
    position: relative;
    z-index: 2;
    margin-top: 0;
    padding: 22px;
    border: 1px solid var(--box-border);
    border-radius: 0 var(--radius) var(--radius) var(--radius);
    background: var(--surface-color);
    box-shadow: none;
}

.paste-panel-foot {
    padding: 0 22px 20px;
}

.paste-panel-foot .paste-actions-divider {
    margin: 18px 0 16px;
}

.paste-panel-foot .paste-actions-bar {
    margin: 0;
}

/* Pestañas estilo carpeta (vista paste) */

.tabs.show_tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 4px;
    margin: 0;
    padding: 0;
    border: none;
    overflow: visible;
}

.tabs.show_tabs li {
    flex: 0 0 auto;
    width: auto;
    min-width: 120px;
    max-width: 100%;
    text-align: center;
    border: 1px solid var(--box-border);
    border-bottom: none;
    border-left: 1px solid var(--box-border);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    background: color-mix(in srgb, var(--box-bg) 82%, var(--page-bg));
    margin: 0;
    padding: 0 18px;
    position: relative;
    z-index: 1;
}

.tabs.show_tabs li div {
    height: 38px;
    padding: 0 2px;
}

.tabs.show_tabs li.active {
    background: var(--surface-color);
    color: var(--accent);
    border-bottom: 1px solid var(--surface-color);
    margin-bottom: -1px;
    z-index: 3;
    box-shadow: inset 0 -2px 0 var(--accent);
}

.tabs.show_tabs li.active > div {
    background: transparent;
    border-bottom: none;
}

.tab_container {
    display: grid;
    grid-gap: 14px;
    border: 1px solid var(--box-border);
    background: var(--surface-color);
    padding: 22px;
    border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-sm);
    word-wrap: break-word;
    word-break: break-all;
}

.show_container {
    border: 1px solid var(--box-border);
    border-radius: var(--radius-lg);
    padding: 22px;
    background: var(--box-bg);
    box-shadow: var(--shadow-sm);
}

.tab_container button {
    justify-self: center;
}

.tab_content {
    display: none;
}

.tab_content.active {
    display: block;
    animation: fade-in 0.3s ease;
}

.tab_content input {
    justify-self: center;
}

.tab_content textarea {
    font-family: inherit;
    width: calc(100% - 30px);
    min-height: 50vh;
    padding: 14px;
    border-radius: var(--radius-sm);
}

.bbuttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bbuttons .btn {
    margin-bottom: 5px;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Paste view actions ── */

.paste-actions-divider {
    border-top: 1px dashed var(--box-border);
    margin-bottom: 16px;
}

.paste-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.paste-actions-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.paste-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.paste-action-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.paste-action-edit {
    border: 1px solid var(--box-border);
    background: var(--surface-color);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.paste-action-edit:hover {
    border-color: color-mix(in srgb, var(--accent) 35%, var(--box-border));
    background: var(--accent-muted);
    color: var(--accent-hover);
}

.paste-action-report {
    border: 1px solid transparent;
    background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent) 50%, var(--accent-hover) 100%);
    color: var(--white-color);
    box-shadow: 0 2px 8px var(--accent-glow);
}

.paste-action-report:hover {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: var(--white-color);
    box-shadow: 0 4px 14px var(--accent-glow);
}

.paste-actions-stats {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.88rem;
    color: var(--supress-text-color);
    margin-left: auto;
}

.paste-actions-stats strong {
    color: var(--text-color);
    font-weight: 700;
}

/* ── Admin layout (sidebar) ── */

.admin-layout {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.admin-sidebar {
    position: sticky;
    top: 16px;
    border: 1px solid var(--box-border);
    border-radius: var(--radius-lg);
    background: var(--box-bg);
    box-shadow: var(--shadow-sm);
    padding: 10px;
}

.admin-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-sidebar-list > li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.admin-sidebar-item {
    width: 100%;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--supress-text-color);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.admin-sidebar-icon-slot {
    width: 18px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-sidebar-icon {
    width: 16px;
    height: 16px;
    display: block;
    opacity: 0.9;
}

.admin-sidebar-label {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.2;
}

.admin-sidebar-sublink {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr);
    column-gap: 8px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 7px 8px 7px 0;
    border-radius: var(--radius-sm);
    color: var(--supress-text-color);
    font-weight: 500;
    font-size: 0.84rem;
    line-height: 1.3;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.admin-sidebar-sublink-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    justify-self: center;
    flex-shrink: 0;
}

.admin-sidebar-sublink-dot:not(.pay-subnav-dot) {
    visibility: hidden;
}

.admin-sidebar-sublink-label {
    min-width: 0;
    line-height: 1.3;
}

.admin-sidebar-link:hover,
.admin-sidebar-sublink:hover {
    background: var(--accent-muted);
    color: var(--accent);
}

.admin-sidebar-link.active,
.admin-sidebar-sublink.active {
    background: var(--accent-muted);
    color: var(--accent);
    font-weight: 700;
    box-shadow: inset 0 -2px 0 var(--accent);
}

.admin-sidebar-subwrap {
    width: 100%;
    padding: 2px 10px 6px 40px;
    box-sizing: border-box;
}

.admin-sidebar-sub {
    list-style: none;
    margin: 0;
    padding: 2px 0 2px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-left: 2px solid var(--box-border);
}

.admin-sidebar-sub > li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.admin-sidebar .pay-subnav-dot {
    width: 8px;
    height: 8px;
    background: var(--box-border);
}

.admin-sidebar .pay-subnav-dot.on {
    background: var(--status-on, #22c55e);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--status-on, #22c55e) 25%, transparent);
}

.admin-main {
    min-width: 0;
}

.admin-main > form,
.admin-main > .list-container,
.admin-main > .pay-alert {
    margin-top: 0;
}

@media (max-width: 900px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }
}

/* ── Admin nav (legacy horizontal) ── */

.bottom-badge,
.admin-nav {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 5px;
    margin-bottom: 22px;
    border: 1px solid var(--box-border);
    border-radius: var(--radius);
    background: var(--box-bg);
    box-shadow: var(--shadow-sm);
}

.admin-nav li {
    flex: 1 1 auto;
    min-width: 88px;
}

.admin-nav a {
    display: block;
    text-align: center;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--supress-text-color);
    font-weight: 600;
    font-size: 0.85rem;
    transition: background var(--transition), color var(--transition);
}

.admin-nav a:hover {
    background: var(--accent-muted);
    color: var(--accent);
}

.admin-nav a.active {
    background: var(--accent-muted);
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    box-shadow: inset 0 -2px 0 var(--accent);
}

.list-container h1 {
    margin-bottom: 10px;
    font-size: 1.45rem;
    color: var(--heading-color);
}

/* ── Home ── */

.content-home {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
}

.content-home .home-title {
    width: 100%;
    text-align: left;
    font-size: 1.45rem;
    margin: 0 0 4px;
}

.home-search {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.home-search-input {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
    height: auto;
    min-height: 52px;
    padding: 14px 18px;
    border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--box-border));
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    background: var(--box-bg);
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.4;
    box-shadow: none;
}

.home-search-input::placeholder {
    color: var(--supress-text-color);
}

.home-search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.home-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid var(--accent-hover);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent) 50%, var(--accent-hover) 100%);
    color: var(--white-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
    transition: background var(--transition), border-color var(--transition);
}

.home-search-btn:hover {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-color: var(--accent);
    transform: none;
}

.home-search-btn:active {
    transform: none;
}

.home-search-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@media (max-width: 560px) {
    .home-search-btn {
        padding: 0 16px;
        font-size: 0;
        letter-spacing: 0;
    }

    .home-search-btn .home-search-icon {
        margin: 0;
    }
}

.paste-list {
    list-style: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.paste-list li {
    border: 1px solid var(--box-border);
    border-radius: var(--radius);
    background: var(--box-bg);
    box-shadow: var(--shadow-sm);
    font-size: 1rem;
    padding: 0;
    font-weight: 500;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.paste-list li:hover {
    background: var(--box-bg);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--box-border));
    box-shadow: var(--shadow-md);
}

.paste-list li:nth-child(1) {
    border-top: 1px solid var(--box-border);
}

.paste-list li a {
    display: block;
    padding: 14px 18px;
    color: var(--text-color);
    font-weight: 500;
}

.paste-list li a:hover {
    color: var(--accent);
}

.content-home .pagination {
    width: 100%;
    justify-content: flex-start;
    margin-top: 4px;
}

/* ── Pagination ── */

.pagination {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pagination.right { justify-content: flex-end; }
.pagination.left  { justify-content: flex-start; }

.pagination a {
    padding: 8px 13px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    border: 1px solid var(--box-border);
    background: var(--box-bg);
    color: var(--text-color);
    transition: all var(--transition);
}

.pagination a:hover {
    border-color: var(--accent);
    background: var(--accent-muted);
    color: var(--accent);
}

.paginate_button {
    border: 1px solid var(--box-border);
    border-radius: var(--radius-sm);
}

.pagination .active a,
.pagination .current a,
.pagination .active,
.pagination .current {
    font-weight: 700;
    background: var(--accent);
    border-color: var(--accent-hover);
    color: #fff !important;
}

/* ── VIP / misc ── */

.ad-container {
    margin: 10px 0;
    display: grid;
    justify-items: center;
}

.jdbtn {
    height: 40px;
    width: min(100%, 320px);
    border: 1px solid var(--accent) !important;
    color: var(--accent) !important;
    background: var(--box-bg) !important;
    border-radius: var(--radius-sm);
    box-shadow: none !important;
}

.jdbtn:hover {
    background: var(--accent-muted) !important;
}

.jd {
    width: min(100%, 320px);
    background: none;
    margin-top: 10px;
}

.vip {
    border: 1px solid var(--box-border);
    border-radius: var(--radius);
    padding: 14px 18px;
    background: var(--box-bg);
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* ── Tablas ── */

table, th, td { border: none; }

table {
    width: 100%;
    border-collapse: collapse;
}

table.striped > tbody > tr:nth-child(odd) {
    background-color: #f8fafc;
}

table.highlight > tbody > tr {
    transition: background-color 0.15s ease;
}

table.highlight > tbody > tr:hover {
    background-color: var(--accent-muted);
}

table.centered thead tr th,
table.centered tbody tr td {
    text-align: center;
}

tr {
    border-bottom: 1px solid var(--box-border);
}

td, th {
    padding: 14px 12px;
    text-align: left;
    vertical-align: middle;
    font-size: 0.9rem;
}

th {
    font-weight: 600;
    color: #475569;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.left {
    justify-self: start;
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: 6px;
}

.right { justify-self: end; }

.native-table-head,
.native-table-footer {
    display: grid;
    grid-template-columns: auto auto;
}

.native-table-head {
    padding: 0 !important;
    align-items: center;
}

.native-table-head #search {
    width: 100%;
}

#table {
    border: 1px solid var(--box-border);
    padding: 20px 22px;
    border-radius: var(--radius-lg);
    background: var(--box-bg);
    box-shadow: var(--shadow-md);
}

.swal2-actions button {
    height: auto !important;
    border-radius: var(--radius-sm) !important;
}

@media (max-width: 720px) {
    nav li a {
        padding: 7px 10px;
        font-size: 0.8rem;
    }

    .brand-container .title {
        font-size: 1.4rem;
    }

    form, .grey-box, #table {
        padding: 16px;
        border-radius: var(--radius);
    }
}
