/* Nitro panel hub styles extracted from panel-piloto.php and panel-equipo.php */

:root {
    --sn-red: #dc2626;
    --sn-red-rgb: 220, 38, 38;
    --sn-bg-dark: #060b14;
    --sn-bg-panel: rgba(10, 17, 28, 0.95);
    --sn-border-alpha: rgba(255, 255, 255, 0.12);
    --sn-text-muted: rgba(255, 255, 255, 0.45);

    /* Membership Tiers */
    --sn-tier-free: #3b4a60;
    --sn-tier-basic: #2563eb;
    --sn-tier-plus: #0f766e;
    --sn-tier-pro: #dc2626;
}

.sn-pilot-hub {
    position: relative;
    width: min(1460px, calc(100vw - 24px));
    max-width: 1440px;
    margin: 8px auto 12px;
    padding: 12px;
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 0%, rgba(220, 38, 38, 0.15), transparent 40%),
        radial-gradient(circle at 90% 100%, rgba(37, 99, 235, 0.12), transparent 40%),
        linear-gradient(150deg, #060b14 0%, #0a111d 45%, #080d16 100%);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
}

.sn-pilot-hub__glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
    opacity: .65;
}

.sn-pilot-hub__glow--left {
    top: -140px;
    left: -90px;
    background: rgba(232, 30, 12, 0.42);
}

.sn-pilot-hub__glow--right {
    right: -120px;
    bottom: -170px;
    background: rgba(25, 94, 221, 0.36);
}

.sn-pilot-hub__frame {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.sn-pilot-hub .sn-panel {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(155deg, rgba(7, 12, 22, 0.92), rgba(10, 16, 28, 0.95));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.sn-pilot-hub__sidebar {
    position: relative;
    top: 0;
    align-self: start;
    overflow: visible;
    padding: 14px;
}

.sn-pilot-hub__sidebar-head {
    display: none;
}

.sn-pilot-hub__profile-card {
    margin: 4px 4px 14px;
    padding: 14px 12px 12px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 90% 10%, rgba(20, 125, 255, .22), transparent 42%),
        linear-gradient(145deg, rgba(17, 27, 47, 0.95), rgba(10, 17, 31, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.09);
    text-align: center;
}

.sn-pilot-hub__profile-photo {
    width: 94px;
    height: 94px;
    margin: 0 auto 10px;
    position: relative;
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
    overflow: hidden;
}

.sn-pilot-hub__profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sn-pilot-hub__status-dot {
    position: absolute;
    right: 3px;
    bottom: 5px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #35c759;
    border: 2px solid rgba(5, 10, 20, .8);
}

.sn-pilot-hub__profile-card h2 {
    margin: 0;
    font-size: 1.22rem;
    line-height: 1.12;
    color: #f7fbff;
    text-transform: uppercase;
    letter-spacing: .01em;
}

.sn-pilot-hub__profile-meta {
    margin: 6px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .86rem;
    color: #d2dcf0;
}

.sn-pilot-hub__flag {
    width: 28px;
    height: 20px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .15);
    display: inline-block;
}

.sn-pilot-hub__flag-emoji {
    font-size: .9rem;
    line-height: 1;
}

.sn-pilot-hub__membership-line {
    margin: 11px auto 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .78rem;
    text-transform: uppercase;
    color: rgba(240, 246, 255, .72);
    letter-spacing: .08em;
}

.sn-pilot-hub__membership-line strong {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 5px;
    font-size: .84rem;
    letter-spacing: .05em;
    color: #fff;
    background: linear-gradient(135deg, #3b4a60, #2b3648);
    border: 1px solid rgba(255, 255, 255, .18);
}

.sn-pilot-hub__membership-badge--free {
    background: #3b4a60 !important;
}

.sn-pilot-hub__membership-badge--basic {
    background: #2563eb !important;
}

.sn-pilot-hub__membership-badge--plus {
    background: #0f766e !important;
}

.sn-pilot-hub__membership-badge--pro {
    background: #dc2626 !important;
}

.sn-pilot-hub__upgrade-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 36px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    background: linear-gradient(135deg, #c90d05, #790802);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 8px 20px rgba(201, 13, 5, .30);
}

.sn-pilot-hub__upgrade-btn:hover,
.sn-pilot-hub__upgrade-btn:focus {
    color: #fff;
    text-decoration: none;
    filter: brightness(1.08);
}

.sn-pilot-hub__nav {
    display: grid;
    gap: 10px;
}

.sn-pilot-hub__nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 11px 14px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: linear-gradient(145deg, rgba(14, 20, 34, 0.95), rgba(8, 13, 22, 0.95));
    color: #d7deec;
    font-weight: 600;
    line-height: 1;
    transition: .2s ease;
}

.sn-pilot-hub__nav-link>i.fa-solid:first-child {
    width: 18px;
    text-align: center;
    font-size: .95rem;
    flex: 0 0 18px;
}

.sn-pilot-hub__nav-link:hover,
.sn-pilot-hub__nav-link:focus {
    color: #ffffff;
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.18);
    background: linear-gradient(145deg, rgba(24, 34, 54, 0.96), rgba(11, 18, 30, 0.95));
}

.sn-pilot-hub__nav-link.is-active {
    color: #fff;
    border-color: rgba(201, 13, 5, 0.82);
    background: linear-gradient(140deg, #c90d05 0%, #790802 100%);
    box-shadow: 0 10px 26px rgba(201, 13, 5, 0.36);
}

.sn-pilot-hub__nav-link.is-locked,
.sn-pilot-hub__mobile-link.is-locked {
    opacity: .86;
}

.sn-pilot-hub__lock {
    margin-left: auto;
    font-size: .8rem;
    color: rgba(255, 255, 255, .86);
}

.sn-pilot-hub__content {
    min-width: 0;
    display: grid;
    gap: 10px;
    align-content: start;
}

.sn-pilot-hub__hero {
    padding: 14px 18px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 4px !important;
    min-height: 80px !important;
    background: linear-gradient(145deg, rgba(12, 18, 32, 0.95), rgba(7, 10, 18, 0.98)) !important;
    border-bottom: 1px solid var(--sn-border-alpha) !important;
}

.sn-pilot-hub__hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sn-pilot-hub__hero-meta h1 {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.sn-pilot-hub__pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(var(--sn-red-rgb), 0.1);
    border: 1px solid rgba(var(--sn-red-rgb), 0.25);
    color: #ff4d4d;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
}

/* Hero copy handled above in desktop, keeping this for mobile/fallback refs if any */

.sn-pilot-hub__mobile-tabs {
    display: none;
}

.sn-pilot-hub__canvas {
    padding: 10px;
    min-height: 0;
    overflow: visible;
}

.sn-pilot-hub__canvas :is(.sn-shell__title, .sn-shell__subtitle, .sn-title, .sn-subtitle) {
    display: none !important;
}

.sn-pilot-hub__canvas :is(.sn-cuentas-pilotos-wrapper, #sn-fotos-piloto, #sn-perifericos, #sn-redes, #sn-galeria-piloto, #sn-membresias-piloto) {
    margin: 0 !important;
    padding: 10px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.sn-membership-panel {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--sn-border-alpha);
    border-radius: 14px;
    padding: 14px;
}

.sn-pilot-hub__canvas :is(.sn-shell__title, .sn-title, h2.sn-title, h3.sn-shell__title) {
    margin-top: 0;
    margin-bottom: 10px;
}

.sn-pilot-hub__canvas :is(.sn-subtitle, .sn-shell__subtitle, p) {
    margin-top: 0;
}

.sn-pilot-hub__canvas .sn-table-wrap {
    margin-top: 12px;
    margin-bottom: 10px;
    border-radius: 12px;
    overflow: auto;
}

.sn-pilot-hub__canvas .sn-table {
    width: 100%;
}

.sn-pilot-hub__canvas table.sn-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 0 !important;
}

.sn-pilot-hub__canvas table.sn-table th {
    font-size: .7rem !important;
    text-transform: uppercase !important;
    letter-spacing: .1em !important;
    color: var(--sn-text-muted) !important;
    padding: 12px 10px !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border: none !important;
    text-align: left !important;
}

.sn-pilot-hub__canvas table.sn-table td {
    padding: 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    color: #e2e8f0 !important;
    background: transparent !important;
    font-size: 0.85rem !important;
}

.sn-pilot-hub__canvas table.sn-table tr:hover td {
    background: rgba(255, 255, 255, 0.02) !important;
}

.sn-pilot-hub__canvas .sn-cuentas-table {
    table-layout: fixed;
}

.sn-pilot-hub__canvas .sn-cuentas-table th:nth-child(1),
.sn-pilot-hub__canvas .sn-cuentas-table td:nth-child(1) {
    width: 70px;
    text-align: center;
}

.sn-pilot-hub__canvas .sn-cuentas-table th:nth-child(2),
.sn-pilot-hub__canvas .sn-cuentas-table td:nth-child(2) {
    width: auto;
}

.sn-pilot-hub__canvas .sn-cuentas-table th:nth-child(3),
.sn-pilot-hub__canvas .sn-cuentas-table td:nth-child(3) {
    width: 70px;
    text-align: center;
}

.sn-pilot-hub__canvas .sn-cuentas-table td {
    padding-top: 9px;
    padding-bottom: 9px;
}

.sn-pilot-hub__canvas .sn-cuentas-table td:nth-child(4) :is(.sn-btn, button, a.sn-btn, input[type="submit"]) {
    width: auto !important;
    min-width: 120px;
    max-width: 100%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: normal;
    padding-left: 12px;
    padding-right: 12px;
}

.sn-pilot-hub__canvas .sn-cuentas-cards :is(.sn-btn, button, a.sn-btn, input[type="submit"]) {
    width: auto !important;
    min-width: 150px;
    max-width: 100%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: normal;
}

/* Membership Section Improvements */
.sn-membership-panel {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--sn-border-alpha);
    border-radius: 14px;
    padding: 16px;
}

.sn-membership-panel__title {
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    color: var(--sn-text-muted) !important;
    margin-bottom: 16px !important;
    font-weight: 700 !important;
    border-left: 3px solid var(--sn-red);
    padding-left: 10px;
}

.sn-membership-current {
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.4), rgba(10, 15, 25, 0.6));
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sn-membership-current__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.sn-membership-current__eyebrow {
    font-size: 0.68rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    color: var(--sn-text-muted) !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
}

.sn-membership-current h4 {
    font-size: 1.4rem !important;
    font-weight: 850 !important;
    margin: 0 !important;
    color: #fff !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2;
}

.sn-membership-current__badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
}

.sn-membership-current__badge--free {
    background: var(--sn-tier-free);
}

.sn-membership-current__badge--basic {
    background: var(--sn-tier-basic);
}

.sn-membership-current__badge--plus {
    background: var(--sn-tier-plus);
}

.sn-membership-current__badge--pro {
    background: var(--sn-tier-pro);
}

.sn-membership-current__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.sn-membership-current__grid div small {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    color: var(--sn-text-muted);
    margin-bottom: 4px;
}

.sn-membership-current__grid div strong {
    font-size: 0.9rem;
    color: #fff;
}

.sn-pilot-hub__canvas #sn-galeria-piloto .sn-gallery-form {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
    padding: 16px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 12px !important;
    border: 1px solid var(--sn-border-alpha) !important;
    margin-bottom: 20px !important;
}

.sn-gallery-status {
    font-size: 0.75rem !important;
    color: var(--sn-text-muted) !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid var(--sn-border-alpha) !important;
}

.sn-gallery-item {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid var(--sn-border-alpha) !important;
    border-radius: 14px !important;
    margin-bottom: 12px !important;
    overflow: hidden !important;
}

.sn-gallery-item__grid {
    display: grid !important;
    grid-template-columns: 100px 1fr !important;
    gap: 0 !important;
}

.sn-gallery-item__thumb img {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover !important;
}

.sn-gallery-item__body {
    padding: 14px !important;
}

.sn-gallery-item__head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
}

.sn-gallery-item__title {
    font-size: 0.9rem !important;
    color: #fff !important;
    font-weight: 700 !important;
    display: block !important;
}

.sn-gallery-item__badge {
    display: inline-block !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    font-size: 0.55rem !important;
    font-weight: 850 !important;
    text-transform: uppercase !important;
    background: var(--sn-gallery-badge, #666) !important;
    color: #fff !important;
    margin-top: 4px !important;
}

.sn-gallery-item__desc {
    font-size: 0.78rem !important;
    color: var(--sn-text-muted) !important;
    margin-top: 8px !important;
    line-height: 1.4 !important;
}

.sn-gallery-item__meta {
    font-size: 0.7rem !important;
    color: var(--sn-text-muted) !important;
    margin-top: 8px !important;
}

.sn-pilot-hub__canvas #sn-redes .sn-row {
    display: flex !important;
    gap: 10px !important;
    margin-top: 20px !important;
    padding: 15px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 12px !important;
    border: 1px solid var(--sn-border-alpha) !important;
    align-items: center !important;
}

.sn-td-img img {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain !important;
}

.sn-td-actions {
    display: flex !important;
    gap: 6px !important;
    justify-content: flex-end !important;
}

.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-edit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "title save"
        "subtitle save"
        "progress save"
        "form form";
    gap: 8px 12px;
    padding: 8px !important;
}

.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-edit .sn-title {
    grid-area: title;
    margin: 0;
    font-size: 1.22rem;
}

.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-edit .sn-subtitle {
    grid-area: subtitle;
    margin: 0;
    font-size: .92rem;
    line-height: 1.2;
}

.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-edit .sn-progress {
    grid-area: progress;
    margin: 2px 0 0;
    min-height: 30px;
    position: relative;
    overflow: hidden;
    display: block;
}

.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-edit .sn-progress .sn-bar {
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 1;
}

.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-edit .sn-progress .sn-text {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    width: 100% !important;
    text-align: center !important;
    font-weight: 700;
    font-size: .82rem;
    line-height: 1;
    text-indent: 0 !important;
    transform: none !important;
    pointer-events: none;
}

.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-edit .sn-save-top {
    grid-area: save;
    margin: 0;
    align-self: end;
    min-width: 170px;
}

.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-edit .sn-subtext {
    display: none;
}

.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-edit .sn-form {
    grid-area: form;
    margin-top: 4px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 8px 10px;
    align-items: start;
}

.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: rgba(255, 255, 255, .02);
    margin: 0;
    overflow: hidden;
}

.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section--datos {
    grid-column: 1;
}

.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section--ubicacion {
    grid-column: 2;
}

.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section--sobre-mi,
.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section--pro {
    grid-column: 1 / -1;
}

.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section--pro {
    display: none !important;
}

.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section--datos,
.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section--ubicacion {
    min-height: 330px;
}

.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section>h3 {
    margin: 0 !important;
    padding: 10px 12px;
    cursor: pointer;
    background: linear-gradient(145deg, rgba(18, 26, 43, .95), rgba(10, 15, 26, .95));
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: .95rem !important;
}

.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section.is-open>h3 {
    color: #fff;
}

.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section.is-accordion:not(.is-open)> :not(h3) {
    display: none;
}

.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section .sn-row {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 8px 10px;
}

.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section .sn-row label,
.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section .sn-row .sn-label,
.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section .sn-row .sn-full,
.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section .sn-row .edad-toggle {
    margin: 0;
}

.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-edit .sn-form h3 {
    margin: 9px 0 6px;
    font-size: 1.02rem;
}

.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-edit .sn-row {
    gap: 8px;
    margin-bottom: 6px;
}

.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section .sn-row.sn-row--names,
.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section .sn-row.sn-row--birth,
.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section .sn-row.sn-row--mail-nick,
.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section .sn-row.sn-row--phone {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: end;
}

.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section .sn-row.sn-row--doc,
.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section .sn-row.sn-row--residencia {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-items: end;
}

.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section .sn-contact-title {
    margin: 0;
    padding: 4px 10px 0;
    font-size: .84rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(240, 246, 255, .72);
}

.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-edit :is(input, select, textarea),
.sn-pilot-hub__canvas .sn-gallery-form :is(input, select, textarea),
.sn-pilot-hub__canvas #sn-redes .sn-row :is(input, select) {
    min-height: 32px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    font-size: 0.82rem !important;
    background-color: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid var(--sn-border-alpha) !important;
    color: #fff !important;
}

.sn-pilot-hub__section {
    display: none;
}

.sn-pilot-hub__section.is-active {
    display: block;
}

.sn-membership-lock-state {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 18px;
    background: linear-gradient(145deg, rgba(19, 25, 40, .95), rgba(8, 12, 22, .95));
    text-align: center;
}

.sn-membership-lock-state h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    color: #f4f8ff;
}

.sn-membership-lock-state p {
    margin: 0 0 12px;
    color: #c7d1e6;
}

.sn-membership-lock-state .sn-pilot-hub__upgrade-btn {
    max-width: 240px;
    margin: 0 auto;
}

.sn-membership-modal[hidden] {
    display: none !important;
}

.sn-membership-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.sn-membership-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 7, 14, .72);
    backdrop-filter: blur(3px);
}

.sn-membership-modal__dialog {
    position: relative;
    width: min(440px, calc(100vw - 26px));
    margin: 15vh auto 0;
    padding: 20px;
    text-align: center;
}

.sn-membership-modal__dialog h3 {
    margin: 0 0 8px;
    font-size: 1.18rem;
}

.sn-membership-modal__dialog p {
    margin: 0 0 14px;
    color: #c7d1e6;
}

.sn-membership-modal__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(0, 0, 0, .28);
    color: #fff;
    cursor: pointer;
}

body.sn-lock-modal-open {
    overflow: hidden;
}

.sn-pilot-hub__section>.sn-wrapper.sn-profile-edit {
    background: transparent;
    box-shadow: none;
    border: 0;
    padding: 8px;
}

.sn-pilot-hub__section>.sn-wrapper.sn-profile-edit .sn-title {
    margin-top: 0;
    font-size: clamp(1.35rem, 2.3vw, 1.85rem);
}

@media (max-width: 1080px) {
    .sn-pilot-hub__frame {
        grid-template-columns: 1fr;
    }

    .sn-pilot-hub__sidebar {
        display: none;
    }

    .sn-pilot-hub__mobile-tabs {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding: 4px 0 2px;
        scrollbar-width: thin;
    }

    .sn-pilot-hub__mobile-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 38px;
        padding: 8px 13px;
        border-radius: 999px;
        text-decoration: none;
        white-space: nowrap;
        font-size: .85rem;
        color: #d3daea;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.09);
    }

    .sn-pilot-hub__mobile-link.is-active {
        color: #fff;
        background: linear-gradient(140deg, #c90d05 0%, #790802 100%);
        border-color: rgba(201, 13, 5, 0.85);
    }

    .sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-edit {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "subtitle"
            "progress"
            "save"
            "form";
    }

    .sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-edit .sn-form {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section--datos,
    .sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section--ubicacion,
    .sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section--sobre-mi,
    .sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section--pro {
        grid-column: 1;
    }

    .sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section--datos,
    .sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section--ubicacion {
        min-height: 0;
    }

    .sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section .sn-row.sn-row--doc,
    .sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section .sn-row.sn-row--residencia {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .sn-pilot-hub {
        margin: 4px auto 12px;
        width: calc(100vw - 8px);
        padding: 12px;
        border-radius: 18px;
    }

    .sn-pilot-hub__hero,
    .sn-pilot-hub__canvas {
        padding: 12px;
        border-radius: 14px;
    }
}

/* Team hub overrides */
.sn-pilot-hub.sn-team-hub {
    position: relative;
    width: min(1460px, calc(100vw - 24px));
    max-width: 1440px;
    margin: 8px auto 12px;
    padding: 12px;
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 0%, rgba(201, 13, 5, 0.28), transparent 44%),
        radial-gradient(circle at 85% 100%, rgba(20, 125, 255, 0.18), transparent 42%),
        linear-gradient(150deg, #060b14 0%, #0a111d 44%, #0b1220 100%);
    box-shadow: 0 24px 68px rgba(0, 0, 0, 0.52);
}

.sn-team-hub .sn-pilot-hub__glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
    opacity: .65;
}

.sn-team-hub .sn-pilot-hub__glow--left {
    top: -140px;
    left: -90px;
    background: rgba(232, 30, 12, 0.42);
}

.sn-team-hub .sn-pilot-hub__glow--right {
    right: -120px;
    bottom: -170px;
    background: rgba(25, 94, 221, 0.36);
}

.sn-team-hub .sn-pilot-hub__frame {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.sn-team-hub .sn-panel {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(155deg, rgba(7, 12, 22, 0.92), rgba(10, 16, 28, 0.95));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.sn-team-hub .sn-pilot-hub__sidebar {
    padding: 14px;
}

.sn-team-profile-card {
    margin: 4px 4px 14px;
    padding: 14px 12px 12px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 90% 10%, rgba(20, 125, 255, .22), transparent 42%),
        linear-gradient(145deg, rgba(17, 27, 47, 0.95), rgba(10, 17, 31, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.09);
    text-align: center;
}

.sn-team-profile-card__brand {
    width: 94px;
    height: 94px;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
    position: relative;
    border-radius: 24px;
    border: 3px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
    overflow: hidden;
    background: linear-gradient(145deg, rgba(201, 13, 5, .36), rgba(121, 8, 2, .9));
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
}

.sn-team-profile-card__brand img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sn-team-hub .sn-pilot-hub__profile-card h2,
.sn-team-card h3,
.sn-team-access h3,
.sn-team-empty h3,
.sn-team-alert h3 {
    margin: 0;
    color: #f4f7fb;
}

.sn-team-hub .sn-pilot-hub__profile-meta,
.sn-team-card p,
.sn-team-stat span,
.sn-team-access p,
.sn-team-card__head p {
    margin: 0;
    color: #95a3bc;
}

.sn-team-hub .sn-pilot-hub__profile-meta {
    justify-content: center;
}

.sn-team-hub .sn-pilot-hub__membership-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #95a3bc;
}

.sn-team-hub .sn-pilot-hub__membership-badge,
.sn-team-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #fff;
}

.sn-team-membership-badge {
    background: linear-gradient(135deg, rgba(201, 13, 5, .92), rgba(121, 8, 2, .98));
}

.sn-team-hub .sn-pilot-hub__upgrade-btn,
.sn-team-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.sn-team-hub .sn-pilot-hub__upgrade-btn:hover,
.sn-team-btn:hover {
    transform: translateY(-1px);
}

.sn-team-hub .sn-pilot-hub__upgrade-btn,
.sn-team-btn--primary {
    background: linear-gradient(140deg, #c90d05, #790802);
    color: #fff;
}

.sn-team-btn--ghost {
    background: rgba(255, 255, 255, .04);
    color: #d7deec;
    border-color: rgba(255, 255, 255, .1);
}

.sn-team-btn--danger {
    background: rgba(251, 113, 133, .12);
    color: #ffd7df;
    border-color: rgba(251, 113, 133, .28);
}

.sn-team-hub .sn-pilot-hub__nav {
    display: grid;
    gap: 10px;
}

.sn-team-hub .sn-pilot-hub__nav-link,
.sn-team-hub .sn-pilot-hub__mobile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #d7deec;
    text-decoration: none;
}

.sn-team-hub .sn-pilot-hub__nav-link.is-active,
.sn-team-hub .sn-pilot-hub__mobile-link.is-active {
    background: linear-gradient(140deg, rgba(201, 13, 5, .95), rgba(121, 8, 2, .98));
    color: #fff;
    border-color: rgba(201, 13, 5, .66);
}

.sn-team-hub .sn-pilot-hub__nav-link.is-disabled,
.sn-team-hub .sn-pilot-hub__mobile-link.is-disabled {
    opacity: .42;
    pointer-events: none;
}

.sn-team-hub .sn-pilot-hub__content {
    display: grid;
    gap: 16px;
    min-width: 0;
    align-content: start;
}

.sn-team-hub .sn-pilot-hub__hero,
.sn-team-hub .sn-pilot-hub__canvas {
    padding: 24px;
}

.sn-team-hub .sn-pilot-hub__hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.sn-team-hub .sn-pilot-hub__hero.is-compact {
    padding: 16px 24px;
    align-items: center;
}

.sn-team-hub .sn-pilot-hub__hero.is-hidden {
    display: none;
}

.sn-team-hub .sn-pilot-hub__hero-meta {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.sn-team-hub .sn-pilot-hub__hero-meta p {
    margin: 0;
    color: #95a3bc;
}

.sn-team-hub .sn-pilot-hub__hero-meta h1 {
    margin: 0;
    color: #f4f7fb;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: .95;
    text-transform: uppercase;
    text-wrap: balance;
}

.sn-team-hub .sn-pilot-hub__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.05);
    color: #f3f6fc;
    font-size: .76rem;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.sn-team-hub .sn-pilot-hub__hero-copy {
    max-width: 360px;
    margin: 0;
    color: #a8b4c8;
    font-size: .98rem;
    line-height: 1.65;
}

.sn-team-hub .sn-pilot-hub__hero.is-compact .sn-pilot-hub__hero-meta h1 {
    font-size: clamp(1.5rem, 2.2vw, 2.2rem);
    line-height: 1;
}

.sn-team-hub .sn-pilot-hub__hero.is-compact .sn-pilot-hub__hero-copy {
    max-width: 420px;
    font-size: .92rem;
}

.sn-team-hub .sn-pilot-hub__mobile-tabs {
    display: none;
}

.sn-team-panel {
    display: none;
    gap: 16px;
}

.sn-team-panel.is-active {
    display: grid;
}

.sn-team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.sn-team-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.sn-team-stat,
.sn-team-card,
.sn-team-empty,
.sn-team-alert,
.sn-team-access {
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .03);
    min-width: 0;
}

.sn-team-stat strong {
    display: block;
    margin-top: 10px;
    color: #f4f7fb;
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1;
}

.sn-team-alert.is-warning {
    border-color: rgba(251, 191, 36, .26);
    background: rgba(251, 191, 36, .08);
}

.sn-team-form {
    display: grid;
    gap: 14px;
}

.sn-team-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sn-team-form__grid--wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sn-team-form label {
    display: grid;
    gap: 8px;
    color: #d7deec;
    font-size: .92rem;
}

.sn-team-form :is(input, textarea, select) {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(6, 12, 22, .92);
    color: #f5f7fb;
}

.sn-team-form textarea {
    min-height: 110px;
    resize: vertical;
}

.sn-team-filterable-field {
    display: grid;
    gap: 10px;
}

.sn-team-filter-input {
    min-height: 42px;
}

.sn-team-filterable-field select {
    min-height: 180px;
}

.sn-team-actions,
.sn-team-row__actions,
.sn-team-row__meta,
.sn-team-row__head,
.sn-team-role-assign,
.sn-team-access__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.sn-team-row__head {
    justify-content: space-between;
}

.sn-team-list {
    display: grid;
    gap: 12px;
}

.sn-team-row {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .07);
    background: rgba(255, 255, 255, .03);
}

.sn-team-row__title {
    color: #f4f7fb;
    font-weight: 700;
}

.sn-team-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.sn-team-gallery__item {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .03);
}

.sn-team-gallery__item img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.sn-team-gallery__body {
    padding: 12px;
    display: grid;
    gap: 8px;
}

.sn-team-invite-search {
    display: grid;
    gap: 12px;
}

.sn-team-invite-results {
    display: grid;
    gap: 10px;
}

.sn-team-invite-result {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 13px 14px;
    text-align: left;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .03);
    color: #f4f7fb;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.sn-team-invite-result:hover {
    transform: translateY(-1px);
    border-color: rgba(201, 13, 5, .42);
    background: rgba(201, 13, 5, .08);
}

.sn-team-invite-result__name {
    font-weight: 700;
}

.sn-team-invite-result__meta {
    color: #95a3bc;
    font-size: .88rem;
}

.sn-team-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    min-width: 260px;
    max-width: 420px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(7, 14, 24, .92);
    color: #f8fafc;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .32);
}

.sn-team-empty--compact {
    padding: 14px 16px;
    border-radius: 16px;
}

.sn-team-toast.is-error {
    border-color: rgba(251, 113, 133, .3);
    color: #ffe1e7;
}

.sn-team-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.sn-team-card__head h3 {
    margin-top: 4px;
}

.sn-team-access {
    display: grid;
    gap: 20px;
    background:
        linear-gradient(140deg, rgba(201, 13, 5, .14), rgba(255, 255, 255, .02) 55%),
        rgba(10, 18, 31, .9);
}

.sn-team-access__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
    gap: 18px;
    align-items: stretch;
}

.sn-team-access__copy {
    display: grid;
    gap: 12px;
    align-content: start;
}

.sn-team-access__eyebrow {
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #ffb4ae;
}

.sn-team-access__copy h3 {
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: .92;
    text-transform: uppercase;
    max-width: 18ch;
    text-wrap: balance;
}

.sn-team-access__summary {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(5, 12, 23, .72);
    border: 1px solid rgba(255, 255, 255, .08);
}

.sn-team-access__summary strong {
    font-size: 1.1rem;
    color: #fff;
}

.sn-team-access__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.sn-team-access__meta article {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
}

.sn-team-access__meta span {
    display: block;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #95a3bc;
}

.sn-team-access__meta strong {
    display: block;
    margin-top: 8px;
    font-size: 1.35rem;
    line-height: 1.05;
    color: #fff;
}

.sn-team-access__notice {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(251, 191, 36, .08);
    border: 1px solid rgba(251, 191, 36, .18);
    color: #fef0c7;
}

.sn-team-hub.is-onboarding .sn-team-canvas {
    padding: 24px;
}

.sn-team-hub.is-onboarding .sn-team-access {
    width: 100%;
    padding: 28px;
}

.sn-team-hub.is-onboarding .sn-team-access__actions .sn-team-btn {
    min-width: 220px;
}

@media (max-width: 1180px) {

    .sn-team-hub .sn-pilot-hub__frame,
    .sn-team-grid,
    .sn-team-split,
    .sn-team-form__grid--wide,
    .sn-team-access__hero {
        grid-template-columns: 1fr;
    }

    .sn-team-hub .sn-pilot-hub__sidebar {
        display: none;
    }

    .sn-team-hub .sn-pilot-hub__mobile-tabs {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        gap: 10px;
        overflow: auto;
        padding-bottom: 4px;
    }
}

@media (max-width: 860px) {

    .sn-team-grid,
    .sn-team-form__grid,
    .sn-team-gallery,
    .sn-team-access__meta {
        grid-template-columns: 1fr;
    }

    .sn-team-hub.is-onboarding .sn-team-access {
        padding: 20px;
    }

    .sn-team-access__copy h3 {
        max-width: none;
    }
}

@media (max-width: 780px) {
    .sn-pilot-hub.sn-team-hub {
        width: calc(100vw - 8px);
        margin: 4px auto 12px;
        padding: 12px;
        border-radius: 18px;
    }

    .sn-team-hub .sn-pilot-hub__hero,
    .sn-team-hub .sn-pilot-hub__canvas,
    .sn-team-stat,
    .sn-team-card,
    .sn-team-access {
        padding: 16px;
        border-radius: 18px;
    }

    .sn-team-hub .sn-pilot-hub__hero {
        display: grid;
    }

    .sn-team-hub .sn-pilot-hub__hero-copy {
        max-width: none;
    }

    .sn-team-hub .sn-pilot-hub__hero.is-compact {
        padding: 16px;
    }

    .sn-team-hub.is-onboarding .sn-team-access__actions .sn-team-btn {
        width: 100%;
        min-width: 0;
    }
}

/* ------------------------------------------------------------------
   Marzo 2026 - Refinamientos UI piloto
   ------------------------------------------------------------------ */

.sn-pilot-hub__hero-meta h1,
.sn-pilot-hub__pill {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
}

/* Formularios del perfil: filas más compactas sin reducir tipografía */
.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section .sn-row {
    margin-bottom: 8px;
    gap: 10px;
}

.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-edit :is(input, select, textarea) {
    min-height: 40px !important;
    padding: 8px 12px !important;
    font-size: 0.92rem !important;
    line-height: 1.2 !important;
}

.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section>h3 {
    padding: 8px 12px;
    font-size: .96rem !important;
}

.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section .sn-row label,
.sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section .sn-row .sn-label {
    font-size: 0.9rem !important;
}

/* Sección Cuentas: shortcodes anidados */
.sn-pilot-hub__canvas .sn-cuentas-pilotos-wrapper {
    display: grid;
    gap: 14px;
}

.sn-pilot-hub__canvas .sn-cuentas-table {
    background: rgba(10, 16, 28, 0.75);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    table-layout: fixed;
    width: 100%;
}

/* Forzar distribución de columnas de Cuentas (shortcode) */
.sn-pilot-hub .sn-cuentas-pilotos-wrapper .sn-cuentas-table {
    table-layout: fixed !important;
    width: 100% !important;
}

.sn-pilot-hub .sn-cuentas-pilotos-wrapper .sn-cuentas-table th,
.sn-pilot-hub .sn-cuentas-pilotos-wrapper .sn-cuentas-table td {
    padding: 12px 14px !important;
    font-size: 0.92rem;
    background: transparent;
    vertical-align: middle;
    text-align: left;
}

.sn-pilot-hub .sn-cuentas-pilotos-wrapper .sn-cuentas-table th:nth-child(1),
.sn-pilot-hub .sn-cuentas-pilotos-wrapper .sn-cuentas-table td:nth-child(1) {
    width: 72px !important;
    text-align: center !important;
}

.sn-pilot-hub .sn-cuentas-pilotos-wrapper .sn-cuentas-table th:nth-child(2),
.sn-pilot-hub .sn-cuentas-pilotos-wrapper .sn-cuentas-table td:nth-child(2) {
    width: 30% !important;
}

.sn-pilot-hub .sn-cuentas-pilotos-wrapper .sn-cuentas-table th:nth-child(3),
.sn-pilot-hub .sn-cuentas-pilotos-wrapper .sn-cuentas-table td:nth-child(3) {
    width: 12% !important;
    text-align: center !important;
}

.sn-pilot-hub .sn-cuentas-pilotos-wrapper .sn-cuentas-table th:nth-child(4),
.sn-pilot-hub .sn-cuentas-pilotos-wrapper .sn-cuentas-table td:nth-child(4) {
    width: 46% !important;
}

.sn-pilot-hub .sn-cuentas-pilotos-wrapper .sn-cuentas-table td:last-child {
    text-align: right !important;
}

.sn-pilot-hub .sn-cuentas-pilotos-wrapper .sn-cuentas-table td:last-child>* {
    display: inline-flex !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

.sn-pilot-hub .sn-cuentas-pilotos-wrapper .sn-cuentas-table td:last-child :is(a, button, .sn-btn) {
    min-height: 34px !important;
    padding: 0 14px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
}

.sn-pilot-hub__canvas .sn-cuentas-table th,
.sn-pilot-hub__canvas .sn-cuentas-table td {
    padding: 12px 14px !important;
    font-size: 0.92rem;
    background: transparent;
    vertical-align: middle;
    text-align: left;
}

.sn-pilot-hub__canvas .sn-cuentas-table td:last-child {
    text-align: right;
}

.sn-pilot-hub__canvas .sn-cuentas-table td:last-child>* {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.sn-pilot-hub__canvas .sn-cuentas-table td:last-child :is(a, button, .sn-btn) {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 10px;
    font-weight: 700;
}

.sn-pilot-hub__canvas .sn-cuentas-table th:nth-child(1),
.sn-pilot-hub__canvas .sn-cuentas-table td:nth-child(1) {
    width: 72px;
    text-align: center;
}

.sn-pilot-hub__canvas .sn-cuentas-table th:nth-child(2),
.sn-pilot-hub__canvas .sn-cuentas-table td:nth-child(2) {
    width: 32%;
}

.sn-pilot-hub__canvas .sn-cuentas-table th:nth-child(3),
.sn-pilot-hub__canvas .sn-cuentas-table td:nth-child(3) {
    width: 12%;
    text-align: center;
}

.sn-pilot-hub__canvas .sn-cuentas-table th:nth-child(4),
.sn-pilot-hub__canvas .sn-cuentas-table td:nth-child(4) {
    width: 46%;
}

.sn-pilot-hub__canvas .sn-cuentas-table img {
    display: block;
    margin: 0 auto;
}

.sn-pilot-hub__canvas .sn-cuentas-cards {
    display: grid;
    gap: 12px;
}

.sn-pilot-hub__canvas .sn-cuentas-cards .sn-card {
    border-radius: 14px;
    border: 1px solid var(--sn-border-alpha);
    background: linear-gradient(145deg, rgba(12, 18, 30, 0.92), rgba(6, 10, 18, 0.95));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Redes sociales */
.sn-pilot-hub__canvas #sn-redes .sn-row {
    align-items: flex-start !important;
    padding: 14px 16px !important;
    border-radius: 14px !important;
    border: 1px solid var(--sn-border-alpha) !important;
    background: rgba(12, 18, 30, 0.78) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.36);
}

.sn-pilot-hub__canvas #sn-redes .sn-table {
    border-radius: 14px;
    overflow: hidden;
    background: rgba(10, 16, 28, 0.82);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.36);
}

.sn-pilot-hub__canvas #sn-redes .sn-table th,
.sn-pilot-hub__canvas #sn-redes .sn-table td {
    padding: 12px 14px !important;
    font-size: 0.92rem;
}

.sn-pilot-hub__canvas #sn-redes .sn-row label {
    font-size: 0.9rem !important;
    font-weight: 600;
}

.sn-pilot-hub__canvas #sn-redes .sn-row :is(input, select) {
    min-height: 40px !important;
    padding: 8px 12px !important;
    font-size: 0.92rem !important;
}

/* Periféricos */
.sn-pilot-hub__canvas #sn-perifericos .sn-table {
    border-radius: 14px;
    overflow: hidden;
    background: rgba(10, 16, 28, 0.82);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.36);
}

.sn-pilot-hub__canvas #sn-perifericos .sn-table th,
.sn-pilot-hub__canvas #sn-perifericos .sn-table td {
    padding: 12px 14px !important;
    font-size: 0.92rem;
}

.sn-pilot-hub__canvas #sn-perifericos .sn-row {
    gap: 12px !important;
    padding: 14px 16px !important;
    border-radius: 14px !important;
    border: 1px solid var(--sn-border-alpha) !important;
    background: rgba(12, 18, 30, 0.78) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.36);
}

.sn-pilot-hub__canvas #sn-perifericos .sn-row :is(select, button) {
    min-height: 40px !important;
    padding: 8px 12px !important;
    font-size: 0.92rem !important;
}

/* Galería */
.sn-pilot-hub__canvas #sn-galeria-piloto .sn-gallery-form {
    border-radius: 16px;
    border: 1px solid var(--sn-border-alpha);
    background: rgba(10, 16, 28, 0.82);
    padding: 14px 16px;
}

.sn-pilot-hub__canvas #sn-galeria-piloto .sn-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.sn-pilot-hub__canvas #sn-galeria-piloto .sn-gallery-item {
    border-radius: 16px !important;
    border: 1px solid var(--sn-border-alpha) !important;
    background: linear-gradient(145deg, rgba(13, 18, 30, 0.9), rgba(7, 11, 20, 0.95)) !important;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.sn-pilot-hub__canvas #sn-galeria-piloto .sn-gallery-item__title {
    font-size: 1rem !important;
}

.sn-pilot-hub__canvas #sn-galeria-piloto .sn-gallery-item__meta,
.sn-pilot-hub__canvas #sn-galeria-piloto .sn-gallery-item__desc {
    font-size: 0.88rem !important;
}

.sn-pilot-hub__canvas #sn-galeria-piloto .sn-gallery-item__thumb img {
    min-height: 160px;
    object-fit: cover;
}

/* Membresías */
.sn-pilot-hub__canvas #sn-membresias-piloto .sn-shell {
    border-radius: 16px;
    border: 1px solid var(--sn-border-alpha);
    background: rgba(10, 16, 28, 0.82);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.36);
}

.sn-pilot-hub__canvas #sn-membresias-piloto .sn-shell__title {
    font-size: 1.05rem !important;
}

.sn-pilot-hub__canvas #sn-membresias-piloto .sn-table {
    border-radius: 14px;
    overflow: hidden;
}

.sn-pilot-hub__canvas #sn-membresias-piloto .sn-table th,
.sn-pilot-hub__canvas #sn-membresias-piloto .sn-table td {
    padding: 12px 14px !important;
    font-size: 0.92rem;
}

/* ------------------- Mobile refinements ------------------- */
@media (max-width: 1080px) {
    .sn-pilot-hub__frame {
        grid-template-columns: 1fr;
    }

    .sn-pilot-hub__sidebar,
    .sn-pilot-hub__nav {
        display: none !important;
    }

    .sn-pilot-hub__mobile-tabs {
        display: flex !important;
        gap: 10px;
        overflow-x: auto;
        padding: 6px 0 2px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .sn-pilot-hub__mobile-link {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .sn-pilot-hub__canvas {
        padding: 10px;
    }

    /* Tables: scroll horizontally instead of overflowing */
    .sn-pilot-hub__canvas .sn-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sn-pilot-hub__canvas .sn-table {
        min-width: 620px;
    }

    .sn-pilot-hub__canvas #sn-cuentas-piloto .sn-table,
    .sn-pilot-hub__canvas #sn-cuentas-piloto table {
        min-width: 520px;
    }

    .sn-pilot-hub__canvas #sn-perifericos .sn-table,
    .sn-pilot-hub__canvas #sn-redes .sn-table,
    .sn-pilot-hub__canvas #sn-membresias-piloto .sn-table {
        min-width: 520px;
    }

    .sn-pilot-hub__canvas #sn-cuentas-piloto .sn-table {
        min-width: 520px;
    }

    /* Gallery grid stacks */
    .sn-pilot-hub__canvas #sn-galeria-piloto .sn-gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .sn-pilot-hub {
        padding: 10px;
    }

    .sn-pilot-hub__canvas {
        padding: 8px;
    }

    .sn-pilot-hub__hero {
        padding: 10px;
    }

    .sn-pilot-hub__hero-meta h1 {
        font-size: 1.1rem;
    }

    .sn-pilot-hub__pill {
        font-size: .78rem;
    }

    .sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-edit .sn-form {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .sn-pilot-hub__canvas #sn-panel-perfil .sn-profile-section .sn-row {
        grid-template-columns: 1fr !important;
    }

    .sn-pilot-hub__canvas :is(.sn-cuentas-table, .sn-redes, .sn-perifs, .sn-table) th,
    .sn-pilot-hub__canvas :is(.sn-cuentas-table, .sn-redes, .sn-perifs, .sn-table) td {
        font-size: 0.9rem;
    }

    .sn-pilot-hub__canvas #sn-galeria-piloto .sn-gallery-form {
        padding: 12px;
    }

    /* Stack key tables to cards on mobile */
    .sn-pilot-hub__canvas #sn-perifericos .sn-table,
    .sn-pilot-hub__canvas #sn-redes .sn-table,
    .sn-pilot-hub__canvas #sn-cuentas-piloto .sn-table,
    .sn-pilot-hub__canvas #sn-membresias-piloto .sn-table {
        min-width: 100%;
        width: 100%;
        border-spacing: 0;
    }

    .sn-pilot-hub__canvas #sn-perifericos .sn-table thead,
    .sn-pilot-hub__canvas #sn-redes .sn-table thead,
    .sn-pilot-hub__canvas #sn-cuentas-piloto .sn-table thead,
    .sn-pilot-hub__canvas #sn-membresias-piloto .sn-table thead {
        display: none;
    }

    .sn-pilot-hub__canvas #sn-perifericos .sn-table tr,
    .sn-pilot-hub__canvas #sn-redes .sn-table tr,
    .sn-pilot-hub__canvas #sn-cuentas-piloto .sn-table tr,
    .sn-pilot-hub__canvas #sn-membresias-piloto .sn-table tr {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 12px;
        border-bottom: 1px solid var(--sn-border-alpha);
    }

    .sn-pilot-hub__canvas #sn-perifericos .sn-table tr:last-child,
    .sn-pilot-hub__canvas #sn-redes .sn-table tr:last-child,
    .sn-pilot-hub__canvas #sn-cuentas-piloto .sn-table tr:last-child,
    .sn-pilot-hub__canvas #sn-membresias-piloto .sn-table tr:last-child {
        border-bottom: none;
    }

    .sn-pilot-hub__canvas #sn-perifericos .sn-table td,
    .sn-pilot-hub__canvas #sn-redes .sn-table td,
    .sn-pilot-hub__canvas #sn-cuentas-piloto .sn-table td,
    .sn-pilot-hub__canvas #sn-membresias-piloto .sn-table td {
        display: block;
        width: 100%;
        text-align: left;
        padding: 6px 0 !important;
        word-break: break-word;
        position: relative;
    }

    .sn-pilot-hub__canvas #sn-cuentas-piloto .sn-table td:last-child,
    .sn-pilot-hub__canvas #sn-perifericos .sn-table td:last-child,
    .sn-pilot-hub__canvas #sn-redes .sn-table td:last-child {
        text-align: left;
    }

    /* pseudo labels */
    .sn-pilot-hub__canvas #sn-cuentas-piloto .sn-table td:nth-child(1)::before {
        content: 'Imagen';
        display: block;
        font-weight: 700;
        color: #9fb4d8;
    }

    .sn-pilot-hub__canvas #sn-cuentas-piloto .sn-table td:nth-child(2)::before {
        content: 'Plataforma';
        display: block;
        font-weight: 700;
        color: #9fb4d8;
    }

    .sn-pilot-hub__canvas #sn-cuentas-piloto .sn-table td:nth-child(3)::before {
        content: 'Slots';
        display: block;
        font-weight: 700;
        color: #9fb4d8;
    }

    .sn-pilot-hub__canvas #sn-cuentas-piloto .sn-table td:nth-child(4)::before {
        content: 'Conexión';
        display: block;
        font-weight: 700;
        color: #9fb4d8;
    }

    .sn-pilot-hub__canvas #sn-redes .sn-table td:nth-child(1)::before {
        content: 'Red';
        display: block;
        font-weight: 700;
        color: #9fb4d8;
    }

    .sn-pilot-hub__canvas #sn-redes .sn-table td:nth-child(2)::before {
        content: 'Nombre';
        display: block;
        font-weight: 700;
        color: #9fb4d8;
    }

    .sn-pilot-hub__canvas #sn-redes .sn-table td:nth-child(3)::before {
        content: 'Canal';
        display: block;
        font-weight: 700;
        color: #9fb4d8;
    }

    .sn-pilot-hub__canvas #sn-redes .sn-table td:nth-child(4)::before {
        content: 'Acciones';
        display: block;
        font-weight: 700;
        color: #9fb4d8;
    }

    .sn-pilot-hub__canvas #sn-perifericos .sn-table td:nth-child(1)::before {
        content: 'Tipo';
        display: block;
        font-weight: 700;
        color: #9fb4d8;
    }

    .sn-pilot-hub__canvas #sn-perifericos .sn-table td:nth-child(2)::before {
        content: 'Marca';
        display: block;
        font-weight: 700;
        color: #9fb4d8;
    }

    .sn-pilot-hub__canvas #sn-perifericos .sn-table td:nth-child(3)::before {
        content: 'Periférico';
        display: block;
        font-weight: 700;
        color: #9fb4d8;
    }

    .sn-pilot-hub__canvas #sn-perifericos .sn-table td:nth-child(4)::before {
        content: 'Acciones';
        display: block;
        font-weight: 700;
        color: #9fb4d8;
    }

    .sn-pilot-hub__canvas #sn-membresias-piloto .sn-table td:nth-child(1)::before {
        content: 'Plan';
        display: block;
        font-weight: 700;
        color: #9fb4d8;
    }

    .sn-pilot-hub__canvas #sn-membresias-piloto .sn-table td:nth-child(2)::before {
        content: 'Inicio';
        display: block;
        font-weight: 700;
        color: #9fb4d8;
    }

    .sn-pilot-hub__canvas #sn-membresias-piloto .sn-table td:nth-child(3)::before {
        content: 'Vencimiento';
        display: block;
        font-weight: 700;
        color: #9fb4d8;
    }

    .sn-pilot-hub__canvas #sn-membresias-piloto .sn-table td:nth-child(4)::before {
        content: 'Origen';
        display: block;
        font-weight: 700;
        color: #9fb4d8;
    }

    /* Gallery upload layout */
    .sn-pilot-hub__canvas #sn-galeria-piloto .sn-gallery-form .sn-gallery-form__row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sn-pilot-hub__canvas #sn-galeria-piloto .sn-gallery-form button[type="submit"] {
        width: 100%;
    }
}