:root{
    --bg:#050507;
    --card:#121318;
    --card2:#181923;
    --line:rgba(255,255,255,.10);
    --text:#fff;
    --muted:rgba(255,255,255,.66);
    --muted2:rgba(255,255,255,.48);
    --pink:#ec3d89;
    --violet:#7c3cff;
    --violet2:#2b205f;
    --green:#42e89b;
    --shadow:0 22px 60px rgba(0,0,0,.38);
}

*{box-sizing:border-box;}

html,body{margin:0;min-height:100%;}

body{
    font-family:'Poppins', sans-serif;
    color:var(--text);
    background:
        radial-gradient(circle at 16% -10%, rgba(124,60,255,.22), transparent 28%),
        radial-gradient(circle at 84% 6%, rgba(236,61,137,.16), transparent 30%),
        linear-gradient(180deg,#09090c 0%,#020203 72%);
}

a{color:inherit;}

.container{
    width:100%;
    max-width:1120px;
    margin:0 auto;
    padding:0 24px;
}

.dash-header{
    position:sticky;
    top:0;
    z-index:20;
    background:rgba(4,4,6,.78);
    border-bottom:1px solid var(--line);
    backdrop-filter:blur(16px);
}

.header-inner{
    min-height:76px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
}

.brand{display:inline-flex;align-items:center;text-decoration:none;}
.brand img{height:44px;width:auto;display:block;filter:drop-shadow(0 10px 24px rgba(236,61,137,.22));}
.logo{font-size:22px;font-weight:800;}
.logo img{height:44px;width:auto;display:block;}

.user-box{display:flex;gap:12px;align-items:center;font-weight:700;}
.logout{
    color:#fff;
    text-decoration:none;
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.08);
    padding:9px 14px;
    border-radius:12px;
    transition:.18s;
}
.logout:hover{background:rgba(236,61,137,.28);transform:translateY(-1px);}

.dashboard-shell{padding-top:28px;padding-bottom:52px;}

.hero-card{
    position:relative;
    overflow:hidden;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:24px;
    padding:30px;
    border:1px solid var(--line);
    border-radius:28px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
        radial-gradient(circle at top right, rgba(236,61,137,.22), transparent 34%),
        var(--card);
    box-shadow:var(--shadow);
    margin-bottom:18px;
}
.hero-card:after{
    content:"";
    position:absolute;
    inset:auto -80px -120px auto;
    width:260px;
    height:260px;
    background:radial-gradient(circle, rgba(124,60,255,.32), transparent 68%);
    pointer-events:none;
}
.eyebrow{
    display:inline-flex;
    color:#ff9fcd;
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.08em;
    margin-bottom:8px;
}
.hero-card h1{margin:0 0 8px;font-size:32px;line-height:1.1;}
.hero-card p{margin:0;color:var(--muted);max-width:650px;font-size:15px;}
.plan-pill{
    min-width:150px;
    padding:15px 18px;
    border-radius:20px;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.12);
    text-align:right;
}
.plan-pill span{display:block;color:var(--muted2);font-size:12px;margin-bottom:3px;}
.plan-pill strong{font-size:20px;}

.upgrade-alert{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:18px;
    padding:16px 18px;
    border-radius:20px;
    border:1px solid rgba(236,61,137,.35);
    background:linear-gradient(135deg, rgba(236,61,137,.16), rgba(124,60,255,.12));
    margin:0 0 18px;
}
.upgrade-alert p{margin:4px 0 0;color:var(--muted);font-size:13px;}

.quick-actions{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
    margin:18px 0 34px;
}
.quick-card{
    position:relative;
    min-height:178px;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:space-between;
    text-align:left;
    padding:24px;
    border-radius:26px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)),
        var(--card);
    border:1px solid var(--line);
    text-decoration:none;
    color:#fff;
    box-shadow:0 14px 34px rgba(0,0,0,.22);
    transition:transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
    overflow:hidden;
}
.quick-card:before{
    content:"";
    position:absolute;
    inset:-1px;
    background:radial-gradient(circle at top right, rgba(236,61,137,.28), transparent 34%);
    opacity:0;
    transition:.18s;
    pointer-events:none;
}
.quick-card:hover{
    transform:translateY(-5px);
    border-color:rgba(236,61,137,.46);
    box-shadow:0 20px 52px rgba(236,61,137,.14), 0 18px 38px rgba(0,0,0,.32);
}
.quick-card:hover:before{opacity:1;}
.featured-card{background:linear-gradient(145deg, rgba(124,60,255,.20), rgba(236,61,137,.12)), var(--card);}
.quick-icon{
    width:52px;
    height:52px;
    display:grid;
    place-items:center;
    border-radius:18px;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.10);
    font-size:25px;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.10);
}
.quick-card h3{position:relative;margin:18px 0 8px;font-size:20px;line-height:1.1;}
.quick-card p{position:relative;margin:0;color:var(--muted);font-size:13px;line-height:1.5;}
.locked-card{opacity:.72;cursor:not-allowed;}
.card-badge{
    position:absolute;
    top:18px;
    right:18px;
    padding:6px 10px;
    border-radius:999px;
    background:rgba(236,61,137,.22);
    border:1px solid rgba(236,61,137,.32);
    color:#ffd7e9;
    font-size:11px;
    font-weight:800;
}

.section-head{
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:18px;
    margin:0 0 14px;
}
.section-head h2{margin:0;font-size:26px;}
.analytics-lock-note{
    max-width:520px;
    padding:12px 14px;
    border-radius:18px;
    border:1px solid rgba(236,61,137,.32);
    background:linear-gradient(135deg, rgba(236,61,137,.14), rgba(124,60,255,.10));
    color:var(--muted);
    font-size:13px;
    line-height:1.45;
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    margin-bottom:18px;
}
.stat-card{
    position:relative;
    overflow:hidden;
    min-height:132px;
    padding:18px;
    border-radius:22px;
    border:1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)),
        #101116;
}
.stat-card:after{
    content:"";
    position:absolute;
    right:-38px;
    top:-38px;
    width:112px;
    height:112px;
    border-radius:999px;
    background:rgba(124,60,255,.18);
}
.stat-label{display:block;color:var(--muted);font-size:12px;font-weight:700;margin-bottom:10px;}
.stat-card strong{display:block;font-size:34px;line-height:1;font-weight:800;letter-spacing:-.03em;}
.stat-card small{display:block;margin-top:12px;color:var(--muted2);font-size:12px;line-height:1.35;}
.accent-stat:after{background:rgba(236,61,137,.22);}

.charts-grid{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:16px;
    margin-top:18px;
}
.chart-card{
    padding:22px;
    border-radius:26px;
    border:1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)),
        #101116;
    box-shadow:0 18px 44px rgba(0,0,0,.24);
}
.chart-title{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px;}
.chart-title h3{margin:0 0 5px;font-size:18px;}
.chart-title p{margin:0;color:var(--muted);font-size:12px;line-height:1.45;}

/* Compatibilidad con pantallas existentes */
.welcome-card{
    background:var(--card);
    border:1px solid var(--line);
    padding:22px;
    border-radius:22px;
    margin-bottom:20px;
}
.plan{display:inline-block;margin-top:10px;font-size:12px;color:var(--muted);}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
.card{
    display:flex;flex-direction:column;align-items:center;text-align:center;padding:22px;border-radius:22px;background:var(--card);border:1px solid var(--line);text-decoration:none;color:#fff;transition:.2s;
}
.card:hover{transform:translateY(-3px);border-color:rgba(236,61,137,.42);}
.card .icon{font-size:32px;margin-bottom:10px;}
.card h3{margin:0 0 6px;}.card p{font-size:13px;color:var(--muted);}.card.disabled{opacity:.4;pointer-events:none;}
.dash-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;border-radius:14px;text-decoration:none;background:linear-gradient(135deg,var(--violet),var(--pink));color:#fff;font-size:13px;font-weight:800;border:0;}
.dash-btn.secondary{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.10);}

.event-card{background:var(--card);border:1px solid var(--line);border-radius:22px;padding:20px;margin-bottom:16px;display:flex;justify-content:space-between;align-items:center;gap:18px;}
.event-info h3{margin:0 0 10px;}.event-info p{margin:5px 0;color:var(--muted);font-size:13px;}.event-info strong{color:#fff;}.event-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;}

.qr-card{grid-template-columns:1fr 320px;gap:22px;align-items:center;background:linear-gradient(180deg,#121315,#0b0b0c);border:1px solid var(--line);border-radius:24px;padding:22px;box-shadow:var(--shadow);}.qr-info h3{margin:0 0 12px;font-size:26px;}.qr-info p{margin:6px 0;color:var(--muted);font-size:14px;}.qr-info strong{color:#fff;}.qr-url-box{margin:16px 0;padding:12px;border-radius:14px;background:#17181c;border:1px solid rgba(255,255,255,.12);color:rgba(255,255,255,.78);font-size:13px;word-break:break-all;}.qr-actions{display:flex;flex-wrap:wrap;gap:10px;}.qr-image-box{background:#fff;padding:14px;border-radius:22px;}.qr-image-box img{width:100%;display:block;border-radius:14px;}

@media (max-width:980px){
    .quick-actions{grid-template-columns:1fr;}
    .section-head{align-items:flex-start;flex-direction:column;}
    .analytics-lock-note{max-width:none;width:100%;}
    .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
    .charts-grid{grid-template-columns:1fr;}
    .hero-card{align-items:flex-start;flex-direction:column;}
    .plan-pill{text-align:left;}
}
@media (max-width:640px){
    .container{padding:0 16px;}
    .header-inner{min-height:68px;}
    .brand img,.logo img{height:36px;}
    .user-box span{display:none;}
    .hero-card{padding:22px;border-radius:24px;}
    .hero-card h1{font-size:26px;}
    .stats-grid{grid-template-columns:1fr;}
    .quick-card{min-height:150px;}
    .event-card{align-items:flex-start;flex-direction:column;}
    .event-actions{justify-content:flex-start;}
    .qr-card{grid-template-columns:1fr;}
    .qr-image-box{max-width:320px;width:100%;margin:auto;}
    .qr-actions .dash-btn{width:100%;}
}

/* Header reutilizable */
.brand-logo{display:inline-flex;align-items:center;text-decoration:none;}
.brand-logo img{height:44px;width:auto;display:block;filter:drop-shadow(0 10px 24px rgba(236,61,137,.22));}
.logout.is-active{background:linear-gradient(135deg,var(--violet),var(--pink));border-color:rgba(255,255,255,.18);}
@media (max-width:640px){.brand-logo img{height:36px;}.user-box{gap:8px;}.logout{padding:8px 10px;font-size:12px;}}

/* Configurar evento */
.config-hero{margin-bottom:22px;}
.config-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:28px;}
.config-card{min-height:190px;display:flex;flex-direction:column;justify-content:space-between;}
.dashboard-alert{padding:14px 16px;border-radius:18px;margin:0 0 18px;font-size:14px;font-weight:700;}
.success-alert{background:rgba(66,232,155,.12);border:1px solid rgba(66,232,155,.32);color:#baffdc;}
.error-alert{background:rgba(255,84,84,.12);border:1px solid rgba(255,84,84,.32);color:#ffd4d4;}
.email-verify-alert form{margin:0;display:flex;justify-content:flex-end;}
.email-verify-alert .dash-btn{white-space:nowrap;}
@media (max-width:640px){.email-verify-alert form,.email-verify-alert .dash-btn{width:100%;}}
.theme-preview-card{display:flex;align-items:center;gap:14px;padding:16px;border-radius:20px;background:rgba(255,255,255,.06);border:1px solid var(--line);}
.theme-preview-card span{display:block;color:var(--muted);font-size:12px;margin-top:4px;}
.theme-dot{width:46px;height:46px;border-radius:16px;box-shadow:0 12px 28px rgba(0,0,0,.28);}
.backstage-head{align-items:flex-start;}
.section-subtitle{margin:6px 0 0;color:var(--muted);font-size:13px;}
.upload-card{margin-bottom:22px;}
.backstage-upload-form{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:end;}
.form-field{display:flex;flex-direction:column;gap:7px;}
.form-field span{font-size:12px;color:var(--muted);font-weight:800;}
.form-field input,.form-field textarea{width:100%;border:1px solid rgba(255,255,255,.12);background:#171820;color:#fff;border-radius:15px;padding:12px 14px;font-family:'Poppins',sans-serif;outline:none;}
.form-field input:focus,.form-field textarea:focus{border-color:rgba(236,61,137,.55);box-shadow:0 0 0 4px rgba(236,61,137,.08);}
.form-field-wide{grid-column:1 / -1;}
.backstage-editor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
.backstage-editor-card{overflow:hidden;border-radius:24px;background:var(--card);border:1px solid var(--line);box-shadow:0 14px 34px rgba(0,0,0,.22);}
.backstage-editor-image{position:relative;height:210px;background:#0b0b0e;}
.backstage-editor-image img{width:100%;height:100%;object-fit:cover;display:block;}
.gallery-badge{position:absolute;left:12px;top:12px;padding:6px 10px;border-radius:999px;background:rgba(0,0,0,.52);border:1px solid rgba(255,255,255,.16);font-size:11px;font-weight:800;backdrop-filter:blur(8px);}
.backstage-editor-body{padding:16px;display:flex;flex-direction:column;gap:12px;}
.form-field.compact input,.form-field.compact textarea{border-radius:13px;padding:10px 12px;font-size:13px;}
.toggle-line{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:13px;font-weight:700;}
.editor-actions{display:flex;justify-content:flex-end;margin:18px 0 0;}
.delete-zone{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px;}
.delete-photo-btn{border:1px solid rgba(255,84,84,.24);background:rgba(255,84,84,.10);color:#ffd4d4;border-radius:999px;padding:8px 12px;font-family:'Poppins',sans-serif;font-size:12px;cursor:pointer;}
.empty-config-state{margin-top:0;}
@media (max-width:980px){.config-grid,.backstage-upload-form{grid-template-columns:1fr;}.backstage-editor-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:640px){.backstage-editor-grid{grid-template-columns:1fr;}.backstage-editor-image{height:220px;}.editor-actions .dash-btn{width:100%;}.delete-zone{flex-direction:column;}.delete-photo-btn{width:100%;}}

/* Editor backstage horizontal - version cuidada */
.backstage-manager-list{
    display:flex;
    flex-direction:column;
    gap:16px;
    margin-bottom:36px;
}

.backstage-photo-row{
    display:block !important;
    width:100% !important;
    padding:0 !important;
    margin:0 !important;
    border-radius:20px !important;
    background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)), var(--card) !important;
    border:1px solid var(--line) !important;
    box-shadow:0 14px 34px rgba(0,0,0,.24) !important;
    overflow:hidden !important;
}

.backstage-photo-thumb{
    position:relative;
    display:block;
    width:100%;
    min-height:142px;
    padding:0;
    border:0;
    border-radius:18px;
    overflow:hidden;
    background:#09090c;
    cursor:pointer;
}

.backstage-photo-thumb img{
    width:100%;
    height:100%;
    min-height:142px;
    object-fit:cover;
    display:block;
    transition:transform .18s ease, opacity .18s ease;
}

.backstage-photo-thumb:hover img{
    transform:scale(1.04);
    opacity:.82;
}

.thumb-edit-hint{
    position:absolute;
    left:10px;
    right:10px;
    bottom:10px;
    display:block;
    padding:7px 9px;
    border-radius:999px;
    background:rgba(0,0,0,.58);
    border:1px solid rgba(255,255,255,.16);
    color:#fff;
    font-size:11px;
    font-weight:800;
    text-align:center;
    backdrop-filter:blur(8px);
    opacity:0;
    transform:translateY(4px);
    transition:.18s;
}

.backstage-photo-thumb:hover .thumb-edit-hint{
    opacity:1;
    transform:translateY(0);
}

.backstage-photo-content{
    position:relative;
    display:grid;
    grid-template-columns:minmax(0,1fr) 92px;
    gap:12px;
    align-items:start;
}

.backstage-photo-form{
    min-width:0;
}

.photo-form-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) 160px;
    gap:12px;
}

.photo-title-field{
    min-width:0;
}

.form-field.compact input,
.form-field.compact textarea{
    min-height:42px;
}

.form-field.compact textarea{
    min-height:76px;
    resize:vertical;
}

.order-field{
    max-width:none;
}

.order-control-group{
    display:grid;
    grid-template-columns:1fr 38px 38px;
    gap:6px;
}

.order-control-group input{
    text-align:center;
}

.order-btn{
    width:38px;
    height:42px;
    display:grid;
    place-items:center;
    border-radius:12px;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.08);
    color:#fff;
    cursor:pointer;
    font-size:16px;
    font-weight:900;
}

.order-btn:hover{
    border-color:rgba(236,61,137,.45);
    background:rgba(236,61,137,.18);
}

.photo-row-actions{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-top:12px;
}

.photo-action-buttons{
    display:flex;
    gap:8px;
}

.photo-delete-form{
    align-self:end;
    margin:0;
}

.delete-photo-btn{
    width:100%;
    min-height:42px;
    border:1px solid rgba(255,84,84,.28);
    background:rgba(255,84,84,.12);
    color:#ffd4d4;
    border-radius:14px;
    padding:10px 13px;
    font-family:'Poppins',sans-serif;
    font-size:12px;
    font-weight:900;
    cursor:pointer;
}

.delete-photo-btn:hover{
    background:rgba(255,84,84,.20);
}

.hidden-photo-form{
    display:none;
}

@media (max-width:860px){
    .backstage-photo-row{
        grid-template-columns:1fr;
    }
    .backstage-photo-thumb,
    .backstage-photo-thumb img{
        min-height:220px;
    }
    .backstage-photo-content{
        grid-template-columns:1fr;
    }
    .photo-delete-form{
        align-self:stretch;
    }
}

@media (max-width:640px){
    .photo-form-grid{
        grid-template-columns:1fr;
    }
    .photo-row-actions{
        align-items:flex-start;
        flex-direction:column;
    }
    .photo-action-buttons,
    .photo-action-buttons .dash-btn{
        width:100%;
    }
}

/* Safety fix: logo/header nunca debe crecer de más */
.dash-header .brand-logo img,
.dash-header .brand img,
.dash-header .logo img{
    height:44px !important;
    width:auto !important;
    max-width:160px !important;
    object-fit:contain !important;
    display:block !important;
}
.dash-header .header-inner{min-height:76px;}
.dash-header .user-box{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}

/* Mis eventos mejorado */
.events-list{display:flex;flex-direction:column;gap:16px;}
.event-card{
    background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)), var(--card) !important;
    border:1px solid var(--line) !important;
    border-radius:24px !important;
    padding:22px !important;
    display:flex !important;
    justify-content:space-between !important;
    align-items:center !important;
    gap:20px !important;
    box-shadow:0 14px 34px rgba(0,0,0,.22);
}
.event-info h3{margin:0 0 10px;font-size:20px;}
.event-status-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px;}
.event-badge{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;font-size:11px;font-weight:900;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.07);color:#fff;}
.event-badge.active{background:rgba(66,232,155,.12);border-color:rgba(66,232,155,.32);color:#baffdc;}
.event-badge.hidden{background:rgba(255,84,84,.12);border-color:rgba(255,84,84,.32);color:#ffd4d4;}
.event-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px;}
.event-detail{padding:11px 12px;border-radius:15px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08);}
.event-detail span{display:block;color:var(--muted2);font-size:11px;font-weight:800;margin-bottom:3px;}
.event-detail strong{display:block;font-size:13px;}
.event-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;min-width:310px;}
@media (max-width:820px){.event-card{flex-direction:column;align-items:flex-start !important;}.event-actions{min-width:0;width:100%;justify-content:flex-start;}.event-actions .dash-btn{flex:1;}.event-details{grid-template-columns:1fr;}}
@media (max-width:640px){.dash-header .brand-logo img,.dash-header .brand img,.dash-header .logo img{height:36px !important;max-width:130px !important;}.event-actions .dash-btn{width:100%;}}


/* =========================================================
   FOTO BACKSTAGE - EDITOR HORIZONTAL FINAL LIMPIO
   ========================================================= */

.backstage-manager-list{
    display:flex !important;
    flex-direction:column !important;
    gap:16px !important;
    margin:0 0 36px !important;
}

.backstage-photo-row{
    width:100% !important;
    border-radius:20px !important;
    background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)), var(--card) !important;
    border:1px solid var(--line) !important;
    box-shadow:0 14px 34px rgba(0,0,0,.24) !important;
    overflow:hidden !important;
}

.backstage-photo-form{
    display:grid !important;
    grid-template-columns:170px minmax(0,1fr) !important;
    gap:18px !important;
    padding:16px !important;
    align-items:stretch !important;
}

.backstage-photo-thumb{
    position:relative !important;
    width:100% !important;
    height:150px !important;
    min-height:150px !important;
    border-radius:16px !important;
    overflow:hidden !important;
    background:#08080b !important;
    border:1px solid rgba(255,255,255,.10) !important;
    cursor:pointer !important;
}

.backstage-photo-thumb img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    display:block !important;
}

.backstage-photo-thumb input[type="file"]{
    position:absolute !important;
    inset:0 !important;
    opacity:0 !important;
    cursor:pointer !important;
}

.backstage-photo-content{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 145px !important;
    gap:16px !important;
    align-items:stretch !important;
    min-width:0 !important;
}

.photo-form-grid{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 220px !important;
    gap:12px !important;
    align-items:start !important;
    min-width:0 !important;
}

.photo-form-grid .form-field-wide{
    grid-column:1 / -1 !important;
}

.order-control-group{
    display:grid !important;
    grid-template-columns:1fr 38px 38px !important;
    gap:8px !important;
}

.order-control-group input,
.order-btn{
    height:38px !important;
}

.order-btn{
    width:38px !important;
    display:grid !important;
    place-items:center !important;
    border-radius:10px !important;
    border:1px solid rgba(255,255,255,.13) !important;
    background:rgba(255,255,255,.08) !important;
    color:#fff !important;
    cursor:pointer !important;
    font-weight:900 !important;
    padding:0 !important;
}

.photo-row-actions{
    display:flex !important;
    flex-direction:column !important;
    justify-content:space-between !important;
    align-items:stretch !important;
    gap:12px !important;
}

.photo-action-buttons{
    display:flex !important;
    flex-direction:column !important;
    gap:8px !important;
}

.photo-action-buttons .dash-btn,
.photo-action-buttons .delete-photo-btn{
    width:100% !important;
    justify-content:center !important;
    text-align:center !important;
}

.toggle-line{
    display:flex !important;
    align-items:flex-start !important;
    gap:8px !important;
    color:var(--muted) !important;
    font-size:12px !important;
    font-weight:700 !important;
    line-height:1.25 !important;
}

.hidden-photo-form{
    display:none !important;
}

@media (max-width:900px){
    .backstage-photo-content{
        grid-template-columns:1fr !important;
    }

    .photo-row-actions{
        flex-direction:row !important;
        align-items:center !important;
    }

    .photo-action-buttons{
        flex-direction:row !important;
    }
}

@media (max-width:760px){
    .backstage-photo-form{
        grid-template-columns:1fr !important;
    }

    .backstage-photo-thumb{
        height:220px !important;
    }

    .photo-form-grid{
        grid-template-columns:1fr !important;
    }

    .photo-row-actions,
    .photo-action-buttons{
        flex-direction:column !important;
        align-items:stretch !important;
        width:100% !important;
    }

    .photo-action-buttons .dash-btn,
    .photo-action-buttons .delete-photo-btn{
        width:100% !important;
    }
}
/* Selector visual para subir foto de Backstage */
.backstage-upload-picker-field{
    min-width:0;
}

.backstage-upload-picker{
    position:relative;
    display:grid;
    place-items:center;
    width:100%;
    min-height:98px;
    border:1px dashed rgba(255,255,255,.22);
    border-radius:18px;
    overflow:hidden;
    background:
        radial-gradient(circle at top left, rgba(124,60,255,.16), transparent 38%),
        rgba(255,255,255,.045);
    cursor:pointer;
    transition:border-color .18s ease, background .18s ease, transform .18s ease;
}

.backstage-upload-picker:hover{
    border-color:rgba(236,61,137,.58);
    background:
        radial-gradient(circle at top left, rgba(124,60,255,.22), transparent 40%),
        rgba(236,61,137,.08);
    transform:translateY(-1px);
}

.backstage-upload-picker input[type="file"]{
    position:absolute;
    inset:0;
    opacity:0;
    cursor:pointer;
    z-index:3;
}

.upload-picker-empty{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    padding:18px;
    text-align:center;
    color:#fff;
    z-index:1;
}

.upload-picker-empty strong{
    font-size:14px;
    font-weight:900;
}

.upload-picker-empty small{
    color:var(--muted);
    font-size:12px;
    line-height:1.35;
}

.backstage-upload-picker img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    opacity:0;
    transition:opacity .18s ease, transform .18s ease;
}

.backstage-upload-picker.is-previewing{
    min-height:150px;
    border-style:solid;
    border-color:rgba(66,232,155,.38);
}

.backstage-upload-picker.is-previewing img{
    opacity:1;
}

.backstage-upload-picker.is-previewing:hover img{
    transform:scale(1.03);
}

.backstage-upload-picker.is-previewing .upload-picker-empty{
    opacity:0;
}

.upload-picker-change{
    position:absolute;
    left:12px;
    right:12px;
    bottom:12px;
    z-index:2;
    display:block;
    padding:8px 10px;
    border-radius:999px;
    background:rgba(0,0,0,.60);
    border:1px solid rgba(255,255,255,.16);
    color:#fff;
    font-size:12px;
    font-weight:900;
    text-align:center;
    backdrop-filter:blur(8px);
    opacity:0;
    transform:translateY(4px);
    transition:.18s;
}

.backstage-upload-picker.is-previewing .upload-picker-change,
.backstage-upload-picker:hover .upload-picker-change{
    opacity:1;
    transform:translateY(0);
}

/* =========================================================
   BACKSTAGE UPLOAD - selector premium en miniatura
   Oculta completamente el input nativo y deja solo la card.
   ========================================================= */
.backstage-upload-card{
    padding:22px !important;
}

.backstage-upload-form{
    display:grid !important;
    grid-template-columns:240px minmax(0,1fr) !important;
    gap:16px 18px !important;
    align-items:start !important;
}

.backstage-upload-picker-field{
    min-width:0 !important;
}

.backstage-upload-label{
    display:block !important;
    margin:0 0 8px !important;
    color:var(--muted) !important;
    font-size:12px !important;
    font-weight:900 !important;
}

.backstage-upload-picker{
    position:relative !important;
    display:block !important;
    width:100% !important;
    height:154px !important;
    min-height:154px !important;
    padding:0 !important;
    border-radius:22px !important;
    overflow:hidden !important;
    cursor:pointer !important;
    border:1px solid rgba(255,255,255,.12) !important;
    background:
        radial-gradient(circle at 28% 18%, rgba(236,61,137,.24), transparent 34%),
        radial-gradient(circle at 76% 76%, rgba(124,60,255,.22), transparent 38%),
        linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.10), 0 14px 34px rgba(0,0,0,.22) !important;
    transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}

.backstage-upload-picker:hover{
    transform:translateY(-2px) !important;
    border-color:rgba(236,61,137,.58) !important;
    box-shadow:0 18px 44px rgba(236,61,137,.14), 0 16px 38px rgba(0,0,0,.30) !important;
}

.backstage-upload-picker input[type="file"],
.backstage-upload-photo-input{
    position:absolute !important;
    left:-9999px !important;
    top:auto !important;
    width:1px !important;
    height:1px !important;
    opacity:0 !important;
    overflow:hidden !important;
    pointer-events:none !important;
    appearance:none !important;
    -webkit-appearance:none !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    background:transparent !important;
    color:transparent !important;
}

.upload-picker-empty{
    position:absolute !important;
    inset:0 !important;
    z-index:1 !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:6px !important;
    padding:18px !important;
    text-align:center !important;
    color:#fff !important;
}

.upload-picker-icon{
    width:42px !important;
    height:42px !important;
    display:grid !important;
    place-items:center !important;
    border-radius:16px !important;
    background:linear-gradient(135deg,var(--violet),var(--pink)) !important;
    color:#fff !important;
    font-size:26px !important;
    line-height:1 !important;
    font-weight:900 !important;
    box-shadow:0 12px 26px rgba(236,61,137,.22) !important;
}

.upload-picker-empty strong{
    font-size:14px !important;
    font-weight:900 !important;
}

.upload-picker-empty small{
    max-width:170px !important;
    color:rgba(255,255,255,.66) !important;
    font-size:11px !important;
    line-height:1.35 !important;
}

.backstage-upload-picker img{
    position:absolute !important;
    inset:0 !important;
    z-index:0 !important;
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    display:block !important;
    opacity:0 !important;
    transition:opacity .18s ease, transform .18s ease !important;
}

.backstage-upload-picker.is-previewing{
    border-color:rgba(66,232,155,.42) !important;
    background:#08080b !important;
}

.backstage-upload-picker.is-previewing img{
    opacity:1 !important;
}

.backstage-upload-picker.is-previewing .upload-picker-empty{
    opacity:0 !important;
    pointer-events:none !important;
}

.backstage-upload-picker.is-previewing:hover img{
    transform:scale(1.04) !important;
}

.upload-picker-change{
    position:absolute !important;
    left:12px !important;
    right:12px !important;
    bottom:12px !important;
    z-index:2 !important;
    display:block !important;
    padding:8px 10px !important;
    border-radius:999px !important;
    background:rgba(0,0,0,.62) !important;
    border:1px solid rgba(255,255,255,.16) !important;
    color:#fff !important;
    font-size:12px !important;
    font-weight:900 !important;
    text-align:center !important;
    backdrop-filter:blur(8px) !important;
    opacity:0 !important;
    transform:translateY(5px) !important;
    transition:.18s !important;
}

.backstage-upload-picker.is-previewing .upload-picker-change,
.backstage-upload-picker:hover .upload-picker-change{
    opacity:1 !important;
    transform:translateY(0) !important;
}

.backstage-upload-form .form-field:nth-of-type(1){
    align-self:start !important;
}

.backstage-upload-form .form-field-wide{
    grid-column:1 / -1 !important;
}

.backstage-upload-form .upload-actions{
    grid-column:1 / -1 !important;
}

@media (max-width:760px){
    .backstage-upload-form{
        grid-template-columns:1fr !important;
    }

    .backstage-upload-picker{
        height:190px !important;
        min-height:190px !important;
    }
}

/* =========================================================
   BACKSTAGE UPLOAD - layout final con boton abajo derecha
   ========================================================= */
.backstage-upload-card{
    padding:22px !important;
}

.backstage-upload-form{
    display:grid !important;
    grid-template-columns:240px minmax(0,1fr) !important;
    grid-template-rows:auto auto 1fr !important;
    gap:14px 18px !important;
    align-items:start !important;
}

.backstage-upload-picker-field{
    grid-column:1 !important;
    grid-row:1 / 4 !important;
    min-width:0 !important;
}

.backstage-upload-picker{
    height:218px !important;
    min-height:218px !important;
}

.backstage-upload-form > label.form-field:not(.form-field-wide){
    grid-column:2 !important;
    grid-row:1 !important;
}

.backstage-upload-form .form-field-wide{
    grid-column:2 !important;
    grid-row:2 !important;
}

.backstage-upload-form .form-field-wide textarea{
    min-height:86px !important;
    resize:vertical !important;
}

.backstage-upload-form .upload-actions{
    grid-column:2 !important;
    grid-row:3 !important;
    display:flex !important;
    justify-content:flex-end !important;
    align-items:flex-end !important;
    min-height:38px !important;
    margin:0 !important;
}

.backstage-upload-form .upload-actions .dash-btn{
    min-width:112px !important;
    justify-content:center !important;
}

@media (max-width:760px){
    .backstage-upload-form{
        grid-template-columns:1fr !important;
        grid-template-rows:auto !important;
    }

    .backstage-upload-picker-field,
    .backstage-upload-form > label.form-field:not(.form-field-wide),
    .backstage-upload-form .form-field-wide,
    .backstage-upload-form .upload-actions{
        grid-column:1 !important;
        grid-row:auto !important;
    }

    .backstage-upload-picker{
        height:190px !important;
        min-height:190px !important;
    }

    .backstage-upload-form .upload-actions{
        justify-content:flex-start !important;
    }
}
/* =========================================================
   THEME SELECTOR - FestApp
   ========================================================= */

.theme-config-card{
   /* grid-column:auto !important;*/
   grid-column: inherit;
}

.theme-form{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.theme-selector-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:16px;
}

.theme-choice{
    position:relative;
    display:flex;
    flex-direction:column;
    gap:10px;
    cursor:pointer;
}

.theme-choice input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.theme-choice-preview{
    position:relative;
    display:block;
    height:148px;
    border-radius:24px;
    overflow:hidden;
    background:
        radial-gradient(
            circle at 82% 12%,
            color-mix(in srgb, var(--preview-primary) 30%, transparent),
            transparent 34%
        ),
        radial-gradient(
            circle at 12% 88%,
            color-mix(in srgb, var(--preview-secondary) 22%, transparent),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            var(--preview-bg),
            color-mix(in srgb, var(--preview-bg) 84%, #000 16%)
        );
    border:1px solid rgba(255,255,255,.12);
    box-shadow:0 14px 34px rgba(0,0,0,.24);
    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.theme-choice-top{
    display:block;
    height:44px;
    background:
        linear-gradient(
            90deg,
            var(--preview-primary),
            var(--preview-secondary)
        );
    opacity:.95;
}

.theme-choice-mini-card{
    position:absolute;
    left:14px;
    right:14px;
    bottom:14px;
    height:66px;
    border-radius:18px;
    background:var(--preview-card);
    border:1px solid rgba(255,255,255,.12);
    box-shadow:0 12px 26px rgba(0,0,0,.20);
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:10px;
    padding:13px;
}

.theme-choice-line{
    display:block;
    width:68%;
    height:8px;
    border-radius:999px;
    background:color-mix(in srgb, var(--preview-text) 72%, transparent);
    opacity:.7;
}

.theme-choice-button{
    display:block;
    width:76%;
    height:14px;
    border-radius:999px;
    background:
        linear-gradient(
            90deg,
            var(--preview-primary),
            var(--preview-secondary)
        );
}

.theme-choice-name{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:22px;
    color:var(--text);
    font-size:13px;
    font-weight:900;
    text-align:center;
}

.theme-choice:hover .theme-choice-preview{
    transform:translateY(-3px);
    border-color:color-mix(in srgb, var(--preview-primary) 58%, rgba(255,255,255,.12));
    box-shadow:
        0 20px 46px
        color-mix(in srgb, var(--preview-primary) 22%, transparent),
        0 14px 34px rgba(0,0,0,.32);
}

.theme-choice input:checked + .theme-choice-preview{
    border:2px solid var(--preview-primary);
    box-shadow:
        0 0 0 4px
        color-mix(in srgb, var(--preview-primary) 20%, transparent),
        0 22px 54px
        color-mix(in srgb, var(--preview-primary) 28%, transparent);
}

.theme-choice input:checked + .theme-choice-preview::after{
    content:"✓";
    position:absolute;
    top:10px;
    right:10px;
    width:28px;
    height:28px;
    display:grid;
    place-items:center;
    border-radius:999px;
    background:linear-gradient(135deg, var(--preview-primary), var(--preview-secondary));
    color:#fff;
    font-size:15px;
    font-weight:900;
    box-shadow:0 10px 22px rgba(0,0,0,.28);
}

.theme-save-btn{
    align-self:flex-start;
}

@media (max-width:900px){
    .theme-selector-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }
}

@media (max-width:560px){
    .theme-selector-grid{
        grid-template-columns:1fr;
    }

    .theme-choice-preview{
        height:158px;
    }

    .theme-save-btn{
        width:100%;
    }
}

/* =========================================================
   THEME CONFIG PREMIUM
   ========================================================= */

.theme-config-layout{
    grid-template-columns:3fr 1fr !important;
    align-items:start;
    gap:18px;
}

.theme-config-card{
    min-height:0 !important;
}

.theme-form{
    display:flex !important;
    flex-direction:column !important;
    gap:18px !important;
}

.theme-selector-grid{
    display:grid !important;
    grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
    gap:12px !important;
}

.theme-choice{
    position:relative !important;
    display:flex !important;
    flex-direction:column !important;
    gap:9px !important;
    cursor:pointer !important;
}

.theme-choice input{
    position:absolute !important;
    opacity:0 !important;
    pointer-events:none !important;
}

.theme-choice-preview{
    position:relative !important;
    display:block !important;
    height:96px !important;
    border-radius:22px !important;
    overflow:hidden !important;
    background:
        radial-gradient(circle at 80% 10%, color-mix(in srgb, var(--preview-primary) 34%, transparent), transparent 34%),
        radial-gradient(circle at 12% 88%, color-mix(in srgb, var(--preview-secondary) 26%, transparent), transparent 36%),
        linear-gradient(180deg, var(--preview-bg), color-mix(in srgb, var(--preview-bg) 82%, #000 18%)) !important;
    border:1px solid rgba(255,255,255,.12) !important;
    box-shadow:0 14px 34px rgba(0,0,0,.24) !important;
    transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}

.theme-choice-orb{
    position:absolute;
    top:10px;
    left:10px;
    width:22px;
    height:22px;
    border-radius:9px;
    background:linear-gradient(135deg, var(--preview-primary), var(--preview-secondary));
    box-shadow:0 8px 18px color-mix(in srgb, var(--preview-primary) 32%, transparent);
}

.theme-choice-mini-card{
    position:absolute !important;
    left:10px !important;
    right:10px !important;
    bottom:10px !important;

    height:40px !important;

    border-radius:12px !important;

    background:var(--preview-card) !important;

    border:1px solid rgba(255,255,255,.12) !important;

    padding:8px !important;

    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;

    gap:5px !important;
}

.theme-choice-line{
    width:58%;
    height:4px;
    border-radius:999px;
    background:color-mix(in srgb, var(--preview-text) 70%, transparent);
    opacity:.72;
}

.theme-choice-line.short{
    width:36%;
    opacity:.45;
}

.theme-choice-button{
    width:68%;
    height:7px;
    border-radius:999px;
    background:linear-gradient(90deg, var(--preview-primary), var(--preview-secondary));
}

.theme-choice-name{
    text-align:center !important;
    color:var(--text) !important;
    font-size:11px !important;
    font-weight:800 !important;
    line-height:1.1;
}

.theme-choice:hover .theme-choice-preview{
    transform:translateY(-3px) !important;
    border-color:color-mix(in srgb, var(--preview-primary) 58%, rgba(255,255,255,.12)) !important;
    box-shadow:
        0 20px 46px color-mix(in srgb, var(--preview-primary) 22%, transparent),
        0 14px 34px rgba(0,0,0,.32) !important;
}

.theme-choice input:checked + .theme-choice-preview{
    border:2px solid var(--preview-primary) !important;
    box-shadow:
        0 0 0 4px color-mix(in srgb, var(--preview-primary) 20%, transparent),
        0 22px 54px color-mix(in srgb, var(--preview-primary) 28%, transparent) !important;
}

.theme-choice input:checked + .theme-choice-preview::after{
    content:"✓";
    position:absolute;
    top:10px;
    right:10px;
    width:28px;
    height:28px;
    display:grid;
    place-items:center;
    border-radius:999px;
    background:linear-gradient(135deg, var(--preview-primary), var(--preview-secondary));
    color:#fff;
    font-size:15px;
    font-weight:900;
}

.theme-save-btn{
    align-self:flex-start !important;
}

.live-preview-card{
    min-height:0 !important;
}

.theme-login-preview{
    min-height:250px;

    border-radius:22px;

    overflow:hidden;

    background:
        radial-gradient(circle at 82% 8%, color-mix(in srgb, var(--live-primary) 32%, transparent), transparent 32%),
        radial-gradient(circle at 16% 92%, color-mix(in srgb, var(--live-secondary) 22%, transparent), transparent 34%),
        linear-gradient(180deg, var(--live-bg), color-mix(in srgb, var(--live-bg) 88%, #000 12%));

    border:1px solid rgba(255,255,255,.12);

    box-shadow:0 18px 44px rgba(0,0,0,.28);

    padding:14px;

    transition:background .18s ease;
}

.theme-login-top{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
    margin-bottom:14px;
}

.theme-login-logo-img{
    width:72px;
    height:auto;
    object-fit:contain;
}

.theme-login-pill{
    padding:5px 10px;
    border-radius:999px;
    color:var(--live-text);
    background:rgba(255,255,255,.10);
    border:1px solid rgba(255,255,255,.12);
    font-size:10px;
    font-weight:900;
}

.theme-login-top strong{
    color:var(--live-text);
    font-size:15px;
    line-height:1.1;
}

.theme-login-card{
    border-radius:18px;
    background:var(--live-card);
    border:1px solid rgba(255,255,255,.12);
    padding:14px;
    box-shadow:0 14px 30px rgba(0,0,0,.22);
}

.theme-login-card h4{
    margin:0 0 6px;
    color:var(--live-text);
    font-size:16px;
    line-height:1.05;
}

.theme-login-card p{
    margin:0 0 12px;
    color:var(--live-muted);
    font-size:10px;
    line-height:1.45;
}

.theme-login-input{
    display:block;
    height:24px;
    border-radius:10px;
    margin-bottom:8px;
    background:color-mix(in srgb, var(--live-card) 82%, #000 18%);
    border:1px solid rgba(255,255,255,.14);
}

.theme-login-button{
    display:grid;
    place-items:center;

    height:28px;

    border-radius:10px;

    margin-top:10px;

    background:linear-gradient(90deg, var(--live-primary), var(--live-secondary));

    color:#fff;

    font-size:10px;
    font-weight:900;

    box-shadow:0 10px 22px color-mix(in srgb, var(--live-primary) 28%, transparent);
}

.theme-preview-link{
    margin-top:12px;
    width:100%;
    font-size:12px;
    padding:10px 14px;
}

@media (max-width:980px){
    .theme-config-layout{
        grid-template-columns:1fr !important;
    }
}

@media (max-width:760px){
    .theme-selector-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width:520px){
    .theme-selector-grid{
        grid-template-columns:1fr !important;
    }
}
.live-preview-card{
    position:sticky;
    top:92px;
}

.theme-login-preview{
    max-width:100%;
}

.theme-choice-preview{
    max-width:100%;
}

.theme-config-layout{
    align-items:start !important;
}

.theme-config-card,
.live-preview-card{
    width:100%;
}
/* FIX layout selector + preview lado a lado */
@media (min-width:761px){
    .theme-config-layout{
        display:grid !important;
        grid-template-columns:minmax(0, 3fr) minmax(230px, 1fr) !important;
        align-items:start !important;
        gap:18px !important;
    }

    .theme-config-card{
        grid-column:auto !important;
    }

    .live-preview-card{
        grid-column:auto !important;
        position:sticky !important;
        top:92px !important;
    }

    .theme-selector-grid{
        grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
        gap:10px !important;
    }

    .theme-choice-preview{
        height:82px !important;
        border-radius:18px !important;
    }

    .theme-choice-mini-card{
        height:34px !important;
        left:8px !important;
        right:8px !important;
        bottom:8px !important;
        border-radius:11px !important;
        padding:7px !important;
    }

    .theme-choice-orb{
        width:18px !important;
        height:18px !important;
        top:8px !important;
        left:8px !important;
        border-radius:8px !important;
    }

    .theme-choice-name{
        font-size:10px !important;
    }

    .theme-login-preview{
        min-height:230px !important;
        padding:12px !important;
    }
}

@media (max-width:760px){
    .theme-config-layout{
        grid-template-columns:1fr !important;
    }

    .theme-selector-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    }
}

/* =========================================================
   FIX FINAL - layout tema + preview lado a lado
   ========================================================= */

section.config-grid.theme-config-layout{
    display:grid !important;
    grid-template-columns:minmax(0, 3fr) minmax(260px, 1fr) !important;
    gap:18px !important;
    align-items:start !important;
}

section.config-grid.theme-config-layout .theme-config-card{
    grid-column:auto !important;
    width:100% !important;
}

section.config-grid.theme-config-layout .live-preview-card{
    grid-column:auto !important;
    width:100% !important;
    position:sticky !important;
    top:92px !important;
}

section.config-grid.theme-config-layout .theme-selector-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
    gap:10px !important;
}

section.config-grid.theme-config-layout .theme-choice-preview{
    height:78px !important;
    border-radius:18px !important;
}

section.config-grid.theme-config-layout .theme-choice-mini-card{
    height:32px !important;
    left:8px !important;
    right:8px !important;
    bottom:8px !important;
    border-radius:10px !important;
    padding:7px !important;
}

section.config-grid.theme-config-layout .theme-choice-orb{
    width:18px !important;
    height:18px !important;
    top:8px !important;
    left:8px !important;
    border-radius:8px !important;
}

section.config-grid.theme-config-layout .theme-choice-name{
    font-size:10px !important;
}

section.config-grid.theme-config-layout .theme-login-preview{
    min-height:235px !important;
    padding:12px !important;
}

section.config-grid.theme-config-layout .theme-login-logo-img{
    width:76px !important;
}

/* Solo en celulares chicos apilamos */
@media (max-width:620px){
    section.config-grid.theme-config-layout{
        grid-template-columns:1fr !important;
    }

    section.config-grid.theme-config-layout .theme-selector-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    }

    section.config-grid.theme-config-layout .live-preview-card{
        position:relative !important;
        top:auto !important;
    }
}
.theme-config-card{
   /* grid-column:auto !important;*/
   grid-column: inherit;
}
/* =========================================================
   FIX FINAL THEME CONFIG - mantiene el diseño original
   y solo corrige altura/alineacion de las dos columnas.
   ========================================================= */
section.config-grid.theme-config-layout{
    display:grid !important;
    grid-template-columns:minmax(0, 3fr) minmax(236px, 1fr) !important;
    gap:18px !important;
    align-items:stretch !important;
}

section.config-grid.theme-config-layout .theme-config-card,
section.config-grid.theme-config-layout .live-preview-card{
    grid-column:auto !important;
    width:100% !important;
    min-height:0 !important;
    height:100% !important;
    display:flex !important;
    flex-direction:column !important;
}

section.config-grid.theme-config-layout .chart-title{
    flex:0 0 auto !important;
}

section.config-grid.theme-config-layout .theme-form{
    flex:1 1 auto !important;
    display:flex !important;
    flex-direction:column !important;
    gap:18px !important;
}

section.config-grid.theme-config-layout .theme-selector-grid{
    display:grid !important;
    grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
    gap:14px 12px !important;
    align-items:start !important;
}

section.config-grid.theme-config-layout .theme-choice{
    display:grid !important;
    grid-template-rows:78px 18px !important;
    gap:8px !important;
    min-height:104px !important;
}

section.config-grid.theme-config-layout .theme-choice-preview{
    height:78px !important;
    min-height:78px !important;
    border-radius:18px !important;
}

section.config-grid.theme-config-layout .theme-choice-mini-card{
    height:32px !important;
    left:8px !important;
    right:8px !important;
    bottom:8px !important;
    border-radius:10px !important;
    padding:7px !important;
}

section.config-grid.theme-config-layout .theme-choice-orb{
    width:18px !important;
    height:18px !important;
    top:8px !important;
    left:8px !important;
    border-radius:8px !important;
}

section.config-grid.theme-config-layout .theme-choice-name{
    min-height:18px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    margin:0 !important;
    font-size:10px !important;
    line-height:1.1 !important;
}

section.config-grid.theme-config-layout .theme-save-btn{
    margin-top:auto !important;
    align-self:flex-start !important;
}

section.config-grid.theme-config-layout .live-preview-card{
    position:sticky !important;
    top:92px !important;
}

section.config-grid.theme-config-layout .theme-login-preview{
    min-height:235px !important;
    padding:12px !important;
    flex:1 1 auto !important;
}

section.config-grid.theme-config-layout .theme-login-logo-img{
    width:76px !important;
    max-width:76px !important;
    height:auto !important;
    object-fit:contain !important;
}

section.config-grid.theme-config-layout .theme-preview-link{
    margin-top:12px !important;
    flex:0 0 auto !important;
}

@media (max-width:760px){
    section.config-grid.theme-config-layout{
        grid-template-columns:1fr !important;
        align-items:start !important;
    }

    section.config-grid.theme-config-layout .theme-config-card,
    section.config-grid.theme-config-layout .live-preview-card{
        height:auto !important;
    }

    section.config-grid.theme-config-layout .live-preview-card{
        position:relative !important;
        top:auto !important;
    }

    section.config-grid.theme-config-layout .theme-selector-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width:520px){
    section.config-grid.theme-config-layout .theme-selector-grid{
        grid-template-columns:1fr !important;
    }
}
/* Ajuste fino altura themes */
.theme-selector-grid{
    gap:14px !important;
}

.theme-choice-preview{
    height:102px !important;
}

.theme-choice-mini-card{
    height:42px !important;
    bottom:10px !important;
}

.theme-choice-name{
    margin-top:2px !important;
}
/* Ajuste final: agrandar previews de temas */
section.config-grid.theme-config-layout .theme-choice-preview{
    height:102px !important;
}

section.config-grid.theme-config-layout .theme-choice-mini-card{
    height:42px !important;
    bottom:10px !important;
}

section.config-grid.theme-config-layout .theme-choice-orb{
    width:20px !important;
    height:20px !important;
}

section.config-grid.theme-config-layout .theme-selector-grid{
    gap:14px !important;
}
/* =========================================================
   AJUSTE DEFINITIVO - themes mas altos sin romper el layout
   Importante: tambien actualiza la fila del grid interno.
   ========================================================= */
section.config-grid.theme-config-layout .theme-selector-grid{
    gap:16px 14px !important;
}

section.config-grid.theme-config-layout .theme-choice{
    grid-template-rows:112px 20px !important;
    min-height:140px !important;
    gap:8px !important;
}

section.config-grid.theme-config-layout .theme-choice-preview{
    height:112px !important;
    min-height:112px !important;
    border-radius:20px !important;
}

section.config-grid.theme-config-layout .theme-choice-mini-card{
    height:46px !important;
    left:10px !important;
    right:10px !important;
    bottom:10px !important;
    border-radius:12px !important;
    padding:8px !important;
}

section.config-grid.theme-config-layout .theme-choice-line{
    height:5px !important;
}

section.config-grid.theme-config-layout .theme-choice-button{
    height:8px !important;
}

section.config-grid.theme-config-layout .theme-choice-orb{
    width:22px !important;
    height:22px !important;
    top:10px !important;
    left:10px !important;
}

section.config-grid.theme-config-layout .theme-choice-name{
    min-height:20px !important;
    font-size:10px !important;
}

section.config-grid.theme-config-layout .theme-save-btn{
    margin-top:22px !important;
}

@media (max-width:760px){
    section.config-grid.theme-config-layout .theme-choice{
        grid-template-rows:112px 20px !important;
        min-height:140px !important;
    }
}


/* =========================================================
   DASHBOARD USER MENU - dropdown estilo webapp
   ========================================================= */
.dashboard-header-actions{
    position:relative;
    display:flex !important;
    align-items:center !important;
    gap:12px !important;
    flex-wrap:nowrap !important;
}

.dashboard-nav-actions{
    display:flex;
    align-items:center;
    gap:10px;
}

.dashboard-user-menu{
    position:relative;
    flex:0 0 auto;
}

.dashboard-user-pill{
    min-height:42px;
    display:inline-flex;
    align-items:center;
    gap:9px;
    padding:8px 12px 8px 10px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.055);
    color:#fff;
    font-family:'Poppins', sans-serif;
    font-size:13px;
    font-weight:800;
    cursor:pointer;
    appearance:none;
    -webkit-appearance:none;
    outline:none;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
    transition:transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.dashboard-user-pill:hover,
.dashboard-user-menu.is-open .dashboard-user-pill{
    transform:translateY(-1px);
    border-color:rgba(236,61,137,.46);
    background:rgba(236,61,137,.12);
    box-shadow:0 14px 34px rgba(236,61,137,.12), inset 0 1px 0 rgba(255,255,255,.10);
}

.dashboard-user-avatar{
    width:24px;
    height:24px;
    display:grid;
    place-items:center;
    border-radius:999px;
    background:linear-gradient(135deg,var(--violet),var(--pink));
    color:#fff;
    font-size:11px;
    font-weight:900;
    line-height:1;
    box-shadow:0 8px 18px rgba(236,61,137,.22);
}

.dashboard-user-name{
    max-width:160px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.dashboard-user-chevron{
    color:#ff9fcd;
    font-size:14px;
    line-height:1;
    transform:translateY(-1px);
    transition:transform .18s ease;
}

.dashboard-user-menu.is-open .dashboard-user-chevron{
    transform:rotate(180deg) translateY(1px);
}

.dashboard-user-dropdown{
    position:absolute;
    top:calc(100% + 12px);
    right:0;
    width:245px;
    padding:8px;
    border-radius:20px;
    background:
        radial-gradient(circle at top right, rgba(236,61,137,.16), transparent 36%),
        linear-gradient(180deg, rgba(24,25,35,.98), rgba(10,10,13,.98));
    border:1px solid rgba(255,255,255,.12);
    box-shadow:0 24px 62px rgba(0,0,0,.48);
    backdrop-filter:blur(16px);
    z-index:120;
    display:none;
}

.dashboard-user-menu.is-open .dashboard-user-dropdown{
    display:block;
    animation:dashboardUserMenuIn .16s ease forwards;
}

.dashboard-user-dropdown::before{
    content:"";
    position:absolute;
    top:-7px;
    right:24px;
    width:14px;
    height:14px;
    background:rgba(24,25,35,.98);
    border-left:1px solid rgba(255,255,255,.12);
    border-top:1px solid rgba(255,255,255,.12);
    transform:rotate(45deg);
}

.dashboard-user-dropdown-link{
    position:relative;
    z-index:1;
    display:flex;
    align-items:center;
    gap:11px;
    width:100%;
    min-height:46px;
    padding:11px 12px;
    border-radius:14px;
    color:#fff;
    text-decoration:none;
    font-size:13px;
    font-weight:800;
    line-height:1.25;
    transition:background .18s ease, transform .18s ease, color .18s ease;
}

.dashboard-user-dropdown-link:hover{
    color:#fff;
    background:rgba(255,255,255,.075);
    transform:translateX(1px);
}

.dashboard-menu-icon{
    width:22px;
    height:22px;
    display:grid;
    place-items:center;
    color:#ff9fcd;
    font-size:15px;
    flex:0 0 22px;
}

.dashboard-user-dropdown-danger .dashboard-menu-icon{
    color:#ff7c9f;
}

@keyframes dashboardUserMenuIn{
    from{opacity:0;transform:translateY(-6px) scale(.98);}
    to{opacity:1;transform:translateY(0) scale(1);}
}

@media (max-width:760px){
    .dashboard-header-actions{
        gap:8px !important;
    }

    .dashboard-nav-actions{
        display:none;
    }

    .dashboard-user-name{
        max-width:118px;
    }

    .dashboard-user-dropdown{
        width:min(245px, calc(100vw - 32px));
    }
}

@media (max-width:420px){
    .dashboard-user-pill{
        padding:8px 10px;
    }

    .dashboard-user-name{
        max-width:92px;
    }
}
/* =========================================================
   USER DROPDOWN - dashboard
   ========================================================= */

.dashboard-user-menu{
    position:relative;
}

.dashboard-user-trigger{
    height:44px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:0 16px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.04);
    color:#fff;
    text-decoration:none;
    cursor:pointer;
    transition:.18s ease;
    backdrop-filter:blur(12px);
}

.dashboard-user-trigger:hover{
    border-color:rgba(236,61,137,.35);
    background:rgba(236,61,137,.08);
}

.dashboard-user-avatar{
    width:24px;
    height:24px;
    border-radius:999px;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,var(--violet),var(--pink));
    color:#fff;
    font-size:12px;
    font-weight:900;
}

.dashboard-user-name{
    font-size:14px;
    font-weight:800;
    color:#fff;
}

.dashboard-user-chevron{
    width:16px;
    height:16px;
    opacity:.7;
    transition:transform .18s ease;
}

.dashboard-user-menu.is-open .dashboard-user-chevron{
    transform:rotate(180deg);
}

.dashboard-user-dropdown{
    position:absolute;
    top:56px;
    right:0;
    min-width:240px;
    padding:10px;
    border-radius:22px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)),
        #0b0c11;
    border:1px solid rgba(255,255,255,.10);
    box-shadow:0 24px 60px rgba(0,0,0,.45);
    backdrop-filter:blur(20px);

    opacity:0;
    visibility:hidden;
    transform:translateY(8px);

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s;
    
    z-index:200;
}

.dashboard-user-menu.is-open .dashboard-user-dropdown{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.dashboard-user-dropdown::before{
    content:"";
    position:absolute;
    top:-6px;
    right:22px;
    width:12px;
    height:12px;
    background:#11131a;
    border-left:1px solid rgba(255,255,255,.10);
    border-top:1px solid rgba(255,255,255,.10);
    transform:rotate(45deg);
}

.dashboard-user-dropdown a{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 14px;
    border-radius:14px;
    color:#fff;
    text-decoration:none;
    font-size:14px;
    font-weight:700;
    transition:.18s ease;
}

.dashboard-user-dropdown a:hover{
    background:rgba(255,255,255,.06);
}

.dashboard-user-dropdown a.logout-link:hover{
    background:rgba(255,84,84,.14);
    color:#ffd4d4;
}
/* =========================================================
   PLAN BADGE PREMIUM
   ========================================================= */

.plan-pill{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:14px;
}

.plan-badge{
    width:42px;
    height:42px;
    border-radius:999px;
    display:grid;
    place-items:center;
    position:relative;
    flex:0 0 auto;
    font-size:16px;
    font-weight:900;
    color:#fff;
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,.22),
        0 10px 24px rgba(0,0,0,.28);
}

.plan-badge::before{
    content:"";
    position:absolute;
    inset:3px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.22);
}

.plan-badge.free{
    background:
        linear-gradient(135deg,#6e6e72,#4d4d52);
}

.plan-badge.standard,
.plan-badge.evento{
    background:
        linear-gradient(135deg,#b86a2f,#7a3d16);
}

.plan-badge.premium,
.plan-badge.oro{
    background:
        radial-gradient(circle at 32% 25%, #fff6cf 0%, #ffe48a 18%, transparent 34%),
        linear-gradient(135deg, #ffe27a 0%, #f5c84c 35%, #b67a12 70%, #fff1a6 100%);
    color:#4a2b00 !important;
    border:1px solid rgba(255,230,150,.75);
    box-shadow:
        inset 0 2px 5px rgba(255,255,255,.55),
        inset 0 -4px 8px rgba(120,74,0,.24),
        0 0 0 4px rgba(255,211,90,.10),
        0 14px 30px rgba(255,198,60,.20);
}

.plan-badge.premium span,
.plan-badge.oro span{
    color:#4a2b00;
    text-shadow:0 1px 0 rgba(255,255,255,.55);
}

.plan-badge.platino{
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,.22), transparent 28%),

        linear-gradient(
            115deg,
            #050505 0%,
            #79bda5 10%,
            #0a0a0a 22%,
            #8fd6bc 34%,
            #050505 48%,
            #79bda5 60%,
            #050505 74%,
            #9ce8cc 88%,
            #050505 100%
        );

    color:#dffff2 !important;

    border:1px solid rgba(180,255,225,.42);

    box-shadow:
        inset 0 2px 5px rgba(255,255,255,.12),
        inset 0 -3px 8px rgba(0,0,0,.45),
        0 0 0 4px rgba(121,189,165,.08),
        0 16px 34px rgba(121,189,165,.20);

    position:relative;
    overflow:hidden;
}

.plan-badge.platino::after{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(
            135deg,
            transparent 0%,
            rgba(255,255,255,.16) 48%,
            transparent 54%
        );
    mix-blend-mode:screen;
    opacity:.55;
}

.plan-badge.platino span{
    color:#e9fff7;
    text-shadow:
        0 0 10px rgba(180,255,225,.18),
        0 1px 0 rgba(0,0,0,.55);
}
/* =========================================================
   CREAR EVENTO
   ========================================================= */

.create-event-shell{
    display:flex;
    flex-direction:column;
    gap:22px;
}

.create-event-form-card{
    padding:28px;
}

.create-event-form{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:18px 20px;
}

.create-event-form .form-field{
    gap:8px;
}

.create-event-form .form-field span{
    font-size:12px;
    color:var(--muted);
    font-weight:800;
}

.create-event-form input,
.create-event-form select,
.create-event-form textarea{
    width:100%;
    border:1px solid rgba(255,255,255,.12);
    background:#171820;
    color:#fff;
    border-radius:16px;
    padding:14px 15px;
    font-family:'Poppins',sans-serif;
    font-size:14px;
    outline:none;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.create-event-form input:focus,
.create-event-form select:focus,
.create-event-form textarea:focus{
    border-color:rgba(236,61,137,.48);
    box-shadow:0 0 0 4px rgba(236,61,137,.10);
    background:#1b1c26;
}

.create-event-form textarea{
    min-height:120px;
    resize:vertical;
}

.create-event-form .form-field-wide{
    grid-column:1 / -1;
}

.create-event-actions{
    grid-column:1 / -1;
    display:flex;
    justify-content:flex-end;
    gap:12px;
    margin-top:10px;
}

.create-event-cancel{
    background:rgba(255,255,255,.07) !important;
    border:1px solid rgba(255,255,255,.10) !important;
}

.create-event-cancel:hover{
    background:rgba(255,255,255,.12) !important;
}

.create-event-helper{
    margin-top:6px;
    color:var(--muted2);
    font-size:12px;
    line-height:1.45;
}

.create-event-icon{
    width:58px;
    height:58px;
    border-radius:20px;
    display:grid;
    place-items:center;
    background:
        linear-gradient(135deg,
        rgba(124,60,255,.22),
        rgba(236,61,137,.18));
    border:1px solid rgba(255,255,255,.10);
    font-size:28px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 14px 34px rgba(0,0,0,.24);
}

.create-event-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
}

.create-event-header-content{
    flex:1;
}

.create-event-meta{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:16px;
}

.create-event-meta-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:9px 12px;
    border-radius:999px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.10);
    color:#fff;
    font-size:12px;
    font-weight:800;
}

@media (max-width:860px){

    .create-event-form{
        grid-template-columns:1fr;
    }

    .create-event-actions{
        justify-content:stretch;
        flex-direction:column;
    }

    .create-event-actions .dash-btn{
        width:100%;
    }

    .create-event-header{
        flex-direction:column;
    }
}
/* =========================================================
   QR EVENTO
   ========================================================= */

.qr-shell{
    display:flex;
    flex-direction:column;
    gap:24px;
}

.qr-card{
    padding:30px;
}

.qr-card-grid{
    display:grid;
    grid-template-columns:minmax(420px, 560px) minmax(320px, 420px);
    justify-content:space-between;
    align-items:center;
    gap:48px;
}

.qr-event-top h2{
    font-size:40px;
    line-height:1.05;
    margin-top:10px;
}

.qr-meta-list{
    margin-top:24px;
    display:flex;
    flex-direction:column;
    gap:14px;
}

.qr-meta-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:14px 16px;
    border-radius:16px;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(255,255,255,.08);
}

.qr-meta-item span{
    color:var(--muted);
    font-size:13px;
    font-weight:700;
}

.qr-meta-item strong{
    color:#fff;
    font-size:14px;
    font-weight:800;
}

.status-live{
    color:#67ff9a !important;
}

.qr-link-box{
    margin-top:26px;
    display:flex;
    gap:12px;
}

.qr-link-box input{
    flex:1;
    height:50px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.10);
    background:#171820;
    color:#fff;
    padding:0 16px;
    font-family:'Poppins',sans-serif;
    font-size:13px;
}

.qr-actions{
    margin-top:22px;
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.qr-visual{
    display:flex;
    justify-content:center;
}

.qr-frame{
    padding:18px;
    border-radius:32px;
    background:
        linear-gradient(180deg,
        rgba(255,255,255,.10),
        rgba(255,255,255,.04));
    border:1px solid rgba(255,255,255,.10);

    box-shadow:
        0 30px 60px rgba(0,0,0,.35),
        inset 0 1px 0 rgba(255,255,255,.08);
}

.qr-frame img{
    width:100%;
    max-width:320px;
    display:block;
    border-radius:22px;
    background:#fff;
}

@media (max-width:980px){

    .qr-card-grid{
        grid-template-columns:1fr;
    }

    .qr-event-top h2{
        font-size:32px;
    }

    .qr-link-box{
        flex-direction:column;
    }

    .qr-actions{
        flex-direction:column;
    }

    .qr-actions .dash-btn{
        width:100%;
    }

    .qr-frame img{
        max-width:260px;
    }
}
.qr-event-info{
    max-width:560px;
}

.qr-visual{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
}

.qr-frame{
    width:100%;
    max-width:360px;
}
/* QR layout balanceado */
.qr-card{
    padding:30px !important;
}

.qr-card-grid{
    display:grid !important;
    grid-template-columns:minmax(0, 1fr) 380px !important;
    gap:34px !important;
    align-items:stretch !important;
}

.qr-event-info{
    max-width:none !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
}

.qr-visual{
    width:100% !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}

.qr-frame{
    width:100% !important;
    max-width:360px !important;
    min-height:360px !important;
    display:grid !important;
    place-items:center !important;
}

.qr-frame img{
    width:100% !important;
    max-width:310px !important;
}

.qr-meta-list{
    max-width:460px !important;
}

.qr-link-box{
    max-width:520px !important;
}

.qr-actions{
    max-width:520px !important;
}

.qr-basic-card{
    padding:24px !important;
}

.qr-basic-grid{
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    gap:24px;
    align-items:center;
}

.qr-basic-grid > div:first-child{
    min-width:0;
}

.qr-basic-card .qr-link-box{
    max-width:100% !important;
    margin-top:16px;
    flex-wrap:wrap;
    align-items:center;
}

.qr-basic-card .qr-link-box input{
    min-width:220px;
}

.qr-basic-card .qr-link-box .dash-btn{
    min-height:44px;
    padding-inline:14px;
}

.qr-mini-box{
    width:clamp(156px, 22vw, 220px);
    aspect-ratio:1;
    justify-self:end;
    display:grid;
    place-items:center;
    padding:10px;
    border-radius:20px;
    background:#fff;
    box-shadow:0 18px 45px rgba(0,0,0,.28);
}

.qr-mini-box img{
    width:100%;
    height:100%;
    display:block;
    object-fit:contain;
    border-radius:12px;
}

@media (max-width:980px){
    .qr-card-grid{
        grid-template-columns:1fr !important;
    }

    .qr-frame{
        min-height:auto !important;
        max-width:320px !important;
    }
}

@media (max-width:760px){
    .qr-basic-grid{
        grid-template-columns:1fr;
    }

    .qr-basic-card .qr-link-box{
        flex-direction:column;
        align-items:stretch;
    }

    .qr-basic-card .qr-link-box input,
    .qr-basic-card .qr-link-box .dash-btn{
        width:100%;
    }

    .qr-mini-box{
        justify-self:center;
        width:min(68vw, 220px);
    }
}
/* =========================================================
   PERFIL ADMINISTRADOR
   ========================================================= */

.profile-shell{
    display:flex;
    flex-direction:column;
    gap:22px;
}

.profile-hero{
    align-items:center;
}

.profile-hero-main{
    display:flex;
    align-items:center;
    gap:20px;
    min-width:0;
}

.profile-avatar-xl{
    width:74px;
    height:74px;
    display:grid;
    place-items:center;
    flex:0 0 74px;
    border-radius:26px;
    background:linear-gradient(135deg,var(--violet),var(--pink));
    color:#fff;
    font-size:30px;
    font-weight:900;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.18),
        0 18px 42px rgba(236,61,137,.20);
}

.profile-meta-row{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:14px;
}

.profile-chip{
    display:inline-flex;
    align-items:center;
    gap:8px;
    max-width:100%;
    padding:9px 12px;
    border-radius:999px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.10);
    color:#fff;
    font-size:12px;
    font-weight:800;
}

.profile-plan-pill{
    min-width:220px;
}

.profile-grid{
    display:grid;
    grid-template-columns:minmax(0, 1fr) 360px;
    gap:18px;
    align-items:start;
}

.profile-card{
    padding:24px;
}

.profile-form{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:16px;
}

.profile-form .form-field{
    gap:8px;
}

.profile-form .form-field span{
    font-size:12px;
    color:var(--muted);
    font-weight:900;
}

.profile-form input,
.profile-form textarea{
    width:100%;
    border:1px solid rgba(255,255,255,.12);
    background:#171820;
    color:#fff;
    border-radius:16px;
    padding:14px 15px;
    font-family:'Poppins',sans-serif;
    font-size:14px;
    outline:none;
    transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.profile-form input:focus,
.profile-form textarea:focus{
    border-color:rgba(236,61,137,.48);
    box-shadow:0 0 0 4px rgba(236,61,137,.10);
    background:#1b1c26;
}

.profile-form textarea{
    min-height:120px;
    resize:vertical;
}

.profile-actions{
    grid-column:1 / -1;
    display:flex;
    justify-content:flex-end;
    margin-top:4px;
}

.profile-side{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.profile-summary-card{
    padding:24px;
    text-align:center;
}

.profile-summary-avatar{
    width:76px;
    height:76px;
    display:grid;
    place-items:center;
    margin:0 auto 14px;
    border-radius:28px;
    background:linear-gradient(135deg,var(--violet),var(--pink));
    color:#fff;
    font-size:30px;
    font-weight:900;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.18),
        0 18px 42px rgba(236,61,137,.18);
}

.profile-summary-card h3{
    margin:0 0 6px;
    font-size:22px;
}

.profile-summary-card p{
    margin:0;
    color:var(--muted);
    font-size:13px;
    word-break:break-word;
}

.profile-summary-list{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:20px;
}

.profile-summary-list div{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:12px 14px;
    border-radius:16px;
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.08);
    text-align:left;
}

.profile-summary-list span{
    color:var(--muted);
    font-size:12px;
    font-weight:800;
}

.profile-summary-list strong{
    color:#fff;
    font-size:13px;
    font-weight:900;
}

@media (max-width:980px){
    .profile-grid{
        grid-template-columns:1fr;
    }

    .profile-side{
        display:grid;
        grid-template-columns:1fr 1fr;
    }
}

@media (max-width:760px){
    .profile-hero-main{
        flex-direction:column;
        align-items:flex-start;
    }

    .profile-plan-pill{
        min-width:0;
        width:100%;
        justify-content:flex-start;
    }

    .profile-form{
        grid-template-columns:1fr;
    }

    .profile-actions{
        justify-content:stretch;
    }

    .profile-actions .dash-btn{
        width:100%;
    }

    .profile-side{
        display:flex;
    }
}
.profile-info-card{
    padding:24px;
}

.profile-info-card h3{
    margin:0 0 6px;
    font-size:20px;
}

.profile-info-card p{
    margin:0 0 18px;
    color:var(--muted);
    font-size:13px;
}

.profile-info-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
}

.profile-info-grid div{
    padding:14px;
    border-radius:16px;
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.08);
}

.profile-info-grid span{
    display:block;
    color:var(--muted2);
    font-size:11px;
    font-weight:900;
    margin-bottom:5px;
}

.profile-info-grid strong{
    display:block;
    color:#fff;
    font-size:13px;
}

@media(max-width:760px){
    .profile-info-grid{
        grid-template-columns:1fr;
    }
}
/* =========================================================
   PERFIL - layout balanceado + plan upgrade
   ========================================================= */

.profile-grid-balanced{
    grid-template-columns:minmax(0, 1fr) 360px !important;
}

.profile-main-column{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.profile-side{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.profile-info-card{
    padding:24px;
}

.profile-info-card h3{
    margin:0 0 6px;
    font-size:20px;
}

.profile-info-card p{
    margin:0 0 18px;
    color:var(--muted);
    font-size:13px;
    line-height:1.55;
}

.profile-info-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
}

.profile-info-grid div{
    padding:14px;
    border-radius:16px;
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.08);
}

.profile-info-grid span{
    display:block;
    color:var(--muted2);
    font-size:11px;
    font-weight:900;
    margin-bottom:5px;
}

.profile-info-grid strong{
    display:block;
    color:#fff;
    font-size:13px;
}

.profile-plan-card{
    padding:24px;
    overflow:hidden;
    position:relative;
}

.profile-plan-card::after{
    content:"";
    position:absolute;
    right:-54px;
    top:-54px;
    width:150px;
    height:150px;
    border-radius:999px;
    background:radial-gradient(circle, rgba(236,61,137,.18), transparent 68%);
    pointer-events:none;
}

.profile-plan-card-top{
    position:relative;
    z-index:1;
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:14px;
}

.profile-plan-card-top h3{
    margin:4px 0 0;
    font-size:24px;
}

.profile-plan-card p{
    position:relative;
    z-index:1;
    margin:0 0 16px;
    color:var(--muted);
    font-size:13px;
    line-height:1.6;
}

.profile-upgrade-btn,
.profile-plan-status{
    position:relative;
    z-index:1;
    width:100%;
}

.profile-plan-status{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:10px 14px;
    border-radius:14px;
    background:rgba(66,232,155,.10);
    border:1px solid rgba(66,232,155,.26);
    color:#baffdc;
    font-size:13px;
    font-weight:900;
}

.profile-password-card .profile-form,
.profile-password-form{
    grid-template-columns:1fr !important;
}

@media(max-width:980px){
    .profile-grid-balanced{
        grid-template-columns:1fr !important;
    }

    .profile-side{
        display:grid;
        grid-template-columns:1fr 1fr;
        align-items:start;
    }

    .profile-summary-card{
        grid-column:1 / -1;
    }
}

@media(max-width:760px){
    .profile-side{
        display:flex;
    }

    .profile-info-grid{
        grid-template-columns:1fr;
    }
}
/* =========================================================
   PERFIL - reordenado segun layout final
   ========================================================= */

.profile-hero{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
}

.profile-plan-hero-card{
    width:310px;
    max-width:100%;
    padding:18px;
    border-radius:22px;
    background:rgba(255,255,255,.075);
    border:1px solid rgba(255,255,255,.12);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 18px 42px rgba(0,0,0,.18);
}

.profile-plan-hero-card .profile-plan-card-top{
    margin-bottom:12px;
}

.profile-plan-hero-card p{
    margin:0 0 14px;
    color:var(--muted);
    font-size:12px;
    line-height:1.5;
}

.profile-plan-hero-card .profile-upgrade-btn,
.profile-plan-hero-card .profile-plan-status{
    width:100%;
    min-height:38px;
}

.profile-side-info-card .profile-info-grid,
.profile-info-grid-side{
    grid-template-columns:1fr !important;
}

.profile-side-info-card{
    padding:24px;
}

.profile-main-column .profile-password-card{
    min-height:0;
}

.profile-main-column .profile-password-form{
    grid-template-columns:repeat(3, minmax(0,1fr)) !important;
    align-items:end;
}

.profile-main-column .profile-password-form .profile-actions{
    grid-column:1 / -1;
}

@media(max-width:980px){
    .profile-hero{
        align-items:flex-start !important;
        flex-direction:column !important;
    }

    .profile-plan-hero-card{
        width:100%;
    }

    .profile-side{
        display:flex !important;
    }

    .profile-main-column .profile-password-form{
        grid-template-columns:1fr !important;
    }
}

@media(max-width:760px){
    .profile-plan-hero-card{
        padding:16px;
    }
}

/* El nombre del usuario del header se fuerza visible en desktop */
.dashboard-user-name{
    display:inline-block !important;
}

@media(max-width:640px){
    .dashboard-user-name{
        max-width:120px;
    }
}
/* =========================================================
   CURSOR POINTER GLOBAL
   ========================================================= */

a,
button,
input[type="submit"],
input[type="button"],
select,
summary,
[role="button"],
.dash-btn,
.quick-card,
.card,
.logout,
.dashboard-user-trigger,
.dashboard-user-pill,
.theme-choice,
.backstage-photo-thumb,
.backstage-upload-picker,
.order-btn,
.delete-photo-btn{
    cursor:pointer !important;
}

/* =========================================================
   USUARIOS Y PERMISOS
========================================================= */

.users-grid{
    display:grid;
    grid-template-columns:minmax(0, 1fr) 330px;
    gap:18px;
    align-items:start;
    margin-top:28px;
}

.users-form-card,
.users-help-card{
    padding:26px;
}

.users-form{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:16px;
}

.users-form .form-field{
    gap:8px;
}

.users-form input,
.users-form select{
    width:100%;
    border:1px solid rgba(255,255,255,.12);
    background:#171820;
    color:#fff;
    border-radius:16px;
    padding:14px 15px;
    font-family:'Poppins',sans-serif;
    font-size:14px;
    outline:none;
}

.users-form select option,
.users-inline-edit select option{
    background:#1f2027;
    color:#fff;
}

.password-input-wrap{
    position:relative;
}

.password-input-wrap input{
    padding-right:48px;
}

.password-toggle{
    position:absolute;
    right:10px;
    top:50%;
    transform:translateY(-50%);
    width:34px;
    height:34px;
    border-radius:12px;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.08);
    color:#fff;
    cursor:pointer;
}

.users-actions{
    grid-column:1 / -1;
    display:flex;
    justify-content:flex-end;
}

.users-help-icon{
    width:58px;
    height:58px;
    border-radius:20px;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,rgba(124,60,255,.24),rgba(236,61,137,.16));
    border:1px solid rgba(255,255,255,.12);
    font-size:28px;
    margin-bottom:18px;
}

.users-role-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.users-role-list div{
    padding:14px;
    border-radius:16px;
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.08);
}

.users-role-list strong{
    display:block;
    margin-bottom:5px;
}

.users-role-list p{
    margin:0;
    color:var(--muted);
    font-size:13px;
    line-height:1.45;
}

.users-list{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.users-row{
    display:grid;
    grid-template-columns:56px minmax(0,1fr) auto;
    gap:18px;
    align-items:center;
    padding:22px;
    border-radius:24px;
    background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)), var(--card);
    border:1px solid var(--line);
}

.users-avatar{
    width:56px;
    height:56px;
    border-radius:20px;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,var(--violet),var(--pink));
    color:#fff;
    font-size:24px;
    font-weight:900;
}

.users-row-title{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.users-row-title h3{
    margin:0;
    font-size:18px;
}

.users-row-main p{
    margin:4px 0 0;
    color:var(--muted);
    font-size:13px;
}

.users-assigned-events{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:12px;
}

.users-assigned-event{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    align-items:center;
}

.users-row-actions{
    display:flex;
    flex-direction:column;
    gap:12px;
    align-items:flex-end;
}

.users-action-buttons{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    justify-content:flex-end;
}

.users-inline-edit{
    display:grid;
    grid-template-columns:minmax(170px,1fr) minmax(170px,1fr) auto;
    gap:10px;
    align-items:end;
    padding:12px;
    border-radius:18px;
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.08);
}

.users-inline-edit label{
    display:flex;
    flex-direction:column;
    gap:6px;
    color:var(--muted);
    font-size:11px;
    font-weight:900;
}

.users-inline-edit select{
    height:42px;
    border:1px solid rgba(255,255,255,.12);
    background:#1f2027;
    color:#fff;
    border-radius:14px;
    padding:0 12px;
    font-family:'Poppins',sans-serif;
}

.dash-btn.danger-soft{
    background:rgba(255,84,84,.12) !important;
    border:1px solid rgba(255,84,84,.35) !important;
    color:#ffd4d4 !important;
}

.users-form-note{
    grid-column:1 / -1;
    color:var(--muted);
    font-size:12px;
}

@media(max-width:980px){
    .users-grid{
        grid-template-columns:1fr;
    }

    .users-row{
        grid-template-columns:56px minmax(0,1fr);
    }

    .users-row-actions{
        grid-column:1 / -1;
        align-items:stretch;
    }

    .users-action-buttons{
        justify-content:flex-start;
    }

    .users-inline-edit{
        grid-template-columns:1fr;
    }
}

@media(max-width:640px){
    .users-form{
        grid-template-columns:1fr;
    }

    .users-row{
        grid-template-columns:1fr;
    }

    .users-avatar{
        width:52px;
        height:52px;
    }

    .users-action-buttons .dash-btn,
    .users-inline-edit .dash-btn{
        width:100%;
    }
}


/* =========================================================
   QR EDITOR - layout final tipo persianas + preview fijo
========================================================= */

.qr-editor-card{
    padding:26px !important;
    overflow:visible !important;
}

.qr-editor-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:18px;
    margin-bottom:22px;
}

.qr-editor-head h2{
    margin:4px 0 8px;
    font-size:32px;
    line-height:1.1;
}

.qr-editor-head p{
    margin:0;
    color:var(--muted);
    font-size:13px;
    line-height:1.5;
}

.qr-editor-head-actions{
    display:none !important;
}

.qr-editor{
    display:grid !important;
    grid-template-columns:390px minmax(0,1fr) !important;
    gap:22px !important;
    align-items:start !important;
}

.qr-editor-panel,
.qr-tools-grid{
    display:flex !important;
    flex-direction:column !important;
    gap:12px !important;
    min-width:0 !important;
}

.qr-panel-block,
.qr-tool-item{
    padding:0 !important;
    overflow:hidden !important;
    border-radius:22px !important;
    background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)), #17181e !important;
    border:1px solid rgba(255,255,255,.09) !important;
    box-shadow:none !important;
}

.qr-tool-toggle{
    width:100% !important;
    min-height:64px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:14px !important;
    padding:0 18px !important;
    border:0 !important;
    background:transparent !important;
    color:#fff !important;
    font-family:'Poppins',sans-serif !important;
    font-size:16px !important;
    font-weight:900 !important;
    line-height:1.2 !important;
    text-align:left !important;
    cursor:pointer !important;
}

.qr-tool-arrow{
    width:32px !important;
    height:32px !important;
    min-width:32px !important;
    display:grid !important;
    place-items:center !important;
    border-radius:999px !important;
    background:rgba(255,255,255,.08) !important;
    border:1px solid rgba(255,255,255,.12) !important;
    color:#fff !important;
    font-size:15px !important;
    line-height:1 !important;
    transform:none !important;
    transition:transform .18s ease, background .18s ease, border-color .18s ease !important;
}

.qr-tool-item.is-open .qr-tool-arrow{
    transform:rotate(180deg) !important;
    background:rgba(236,61,137,.18) !important;
    border-color:rgba(236,61,137,.38) !important;
}

.qr-tool-body{
    display:none !important;
    padding:0 16px 16px !important;
}

.qr-tool-item.is-open .qr-tool-body{
    display:block !important;
}

.qr-template-grid{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
}

.qr-template-option{
    display:flex !important;
    flex-direction:column !important;
    gap:8px !important;
    padding:8px !important;
    border-radius:16px !important;
    border:1px solid rgba(255,255,255,.10) !important;
    background:rgba(255,255,255,.04) !important;
    color:#fff !important;
    font-family:'Poppins',sans-serif !important;
    cursor:pointer !important;
    text-align:center !important;
    transition:.18s ease !important;
}

.qr-template-option:hover,
.qr-template-option.is-active{
    border-color:rgba(236,61,137,.56) !important;
    background:rgba(236,61,137,.10) !important;
    transform:translateY(-1px) !important;
}

.qr-template-option strong{
    font-size:11px !important;
    line-height:1.2 !important;
}

.qr-template-preview{
    height:58px !important;
    border-radius:13px !important;
    display:block !important;
    border:1px solid rgba(255,255,255,.12) !important;
    overflow:hidden !important;
    position:relative !important;
}

.qr-template-preview:after{
    content:"";
    position:absolute;
    left:50%;
    bottom:7px;
    width:28px;
    height:28px;
    border-radius:4px;
    background-color:#fff;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Crect width='28' height='28' fill='white'/%3E%3Cpath fill='%230b0b0f' d='M3 3h8v8H3zM5 5v4h4V5H5zm12-2h8v8h-8zM19 5v4h4V5h-4zM3 17h8v8H3zM5 19v4h4v-4H5zm11-5h3v3h-3zm5 0h2v2h-2zm-8 3h2v3h-2zm4 3h3v2h-3zm5-2h3v3h-3zm-9 6h2v2h-2zm4-1h2v3h-2zm4 1h4v2h-4zM13 4h2v2h-2zm1 5h2v3h-2zm9 7h2v2h-2z'/%3E%3C/svg%3E");
    background-size:100% 100%;
    image-rendering:pixelated;
    box-shadow:0 8px 18px rgba(0,0,0,.24);
    transform:translateX(-50%);
}

.qr-template-preview-festapp_neon{background:linear-gradient(135deg,#13071f,#ec3d89,#7c3cff);}
.qr-template-preview-minimal_blanco{background:linear-gradient(135deg,#fff,#ececf2);}
.qr-template-preview-elegante_oscuro{background:linear-gradient(135deg,#050507,#30214d);}
.qr-template-preview-boda_luz{background:linear-gradient(135deg,#fff8ef,#f4dfc8);}
.qr-template-preview-cumple_color{background:linear-gradient(135deg,#ff7ab6,#7c3cff,#ffce4a);}
.qr-template-preview-entrada_directa{background:linear-gradient(135deg,#101116,#252633,#ec3d89);}
.qr-template-preview-dorado_premium{background:linear-gradient(135deg,#130d03,#c8962c,#fff0a8);}
.qr-template-preview-marble_soft{background:linear-gradient(135deg,#f7f1ec,#d9cfc8,#fff);}
.qr-template-preview-tropical_party{background:linear-gradient(135deg,#013d3a,#16c79a,#ffd166);}
.qr-template-preview-tech_glow{background:linear-gradient(135deg,#020617,#00d4ff,#7c3cff);}
.qr-template-preview-romantica{background:linear-gradient(135deg,#fff0f5,#ff8fab,#ffe5ec);}
.qr-template-preview-kids_fun{background:linear-gradient(135deg,#7bdff2,#f7d6e0,#f2b5d4);}

.qr-panel-title-row{
    display:flex;
    justify-content:flex-end;
    margin-bottom:10px;
}

.qr-panel-help{
    margin:0 0 12px;
    color:var(--muted);
    font-size:12px;
    line-height:1.45;
}

.qr-no-text-check{
    display:inline-flex;
    align-items:center;
    gap:9px;
    min-height:38px;
    padding:8px 12px;
    border-radius:14px;
    background:rgba(255,255,255,.07);
    border:1px solid rgba(255,255,255,.12);
    color:#fff;
    font-size:12px;
    font-weight:900;
    cursor:pointer;
}

.qr-no-text-check input{
    width:16px;
    height:16px;
    accent-color:#ec3d89;
}

.qr-upload-design{
    position:relative;
    min-height:118px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:18px;
    border-radius:18px;
    border:1px dashed rgba(255,255,255,.22);
    background:rgba(255,255,255,.045);
    cursor:pointer;
    text-align:center;
    transition:.18s;
}

.qr-upload-design:hover{
    border-color:rgba(236,61,137,.55);
    background:rgba(236,61,137,.08);
}

.qr-upload-design input{
    position:absolute;
    inset:0;
    opacity:0;
    cursor:pointer;
}

.qr-upload-design span{font-weight:900;}
.qr-upload-design small{margin-top:5px;color:var(--muted);font-size:12px;line-height:1.35;}

.qr-full-btn{width:100%;margin-top:10px;}

.qr-range-control{
    display:flex;
    flex-direction:column;
    gap:8px;
    color:var(--muted);
    font-size:12px;
    font-weight:900;
}

.qr-range-control input{
    width:100%;
    accent-color:var(--pink);
}

.qr-format-buttons{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-top:14px;
}

.qr-format-buttons .is-active{
    background:linear-gradient(135deg,var(--violet),var(--pink)) !important;
}

.qr-panel-actions{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:10px !important;
    margin-top:10px !important;
}

.qr-panel-actions .dash-btn{
    width:100% !important;
    min-height:48px !important;
    justify-content:center !important;
}

.qr-editor-status{
    min-height:20px;
    margin:0;
    color:var(--muted);
    font-size:12px;
    font-weight:800;
}
.qr-editor-status.is-success,
.qr-editor-status.is-ok{color:#baffdc;}
.qr-editor-status.is-error{color:#ffd4d4;}

.qr-editor-stage-wrap{
    position:sticky !important;
    top:96px !important;
    align-self:start !important;
    min-width:0 !important;
    padding:18px !important;
    border-radius:26px !important;
    background:radial-gradient(circle at top right, rgba(236,61,137,.15), transparent 34%),linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)),#101116 !important;
    border:1px solid rgba(255,255,255,.10) !important;
    box-shadow:0 24px 70px rgba(0,0,0,.38) !important;
}

.qr-stage-toolbar{
    display:flex !important;
    justify-content:space-between !important;
    align-items:center !important;
    gap:14px !important;
    margin-bottom:16px !important;
}

.qr-stage-toolbar strong{
    display:block;
    font-size:18px;
}

.qr-stage-toolbar span{
    display:block;
    color:var(--muted);
    font-size:12px;
    margin-top:3px;
}

.qr-preview-actions{
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    flex-wrap:wrap !important;
    justify-content:flex-end !important;
}

.qr-preview-actions .dash-btn{
    min-height:42px !important;
    white-space:nowrap !important;
}

.qr-stage-scroll{
    width:100%;
    overflow:auto;
    padding:8px;
    display:grid;
    place-items:center;
}

.qr-design-stage{
    position:relative;
    width:min(100%,420px) !important;
    aspect-ratio:9/16;
    margin:0 auto;
    border-radius:28px;
    overflow:hidden;
    background:#111;
    box-shadow:0 28px 70px rgba(0,0,0,.42);
    user-select:none;
    touch-action:none;
}

.qr-design-stage.format-square{aspect-ratio:1/1;width:min(100%,520px) !important;}
.qr-design-stage[data-template="festapp_neon"]{background:radial-gradient(circle at 80% 10%,rgba(236,61,137,.42),transparent 34%),radial-gradient(circle at 12% 84%,rgba(124,60,255,.45),transparent 38%),linear-gradient(145deg,#13071f,#050507);}
.qr-design-stage[data-template="minimal_blanco"]{background:radial-gradient(circle at 80% 12%,rgba(236,61,137,.10),transparent 34%),linear-gradient(145deg,#fff,#ececf2);}
.qr-design-stage[data-template="elegante_oscuro"]{background:radial-gradient(circle at 50% 10%,rgba(255,255,255,.10),transparent 28%),linear-gradient(145deg,#050507,#161722,#30214d);}
.qr-design-stage[data-template="boda_luz"]{background:radial-gradient(circle at 80% 10%,rgba(212,175,55,.18),transparent 34%),linear-gradient(145deg,#fff8ef,#f4dfc8,#fff);}
.qr-design-stage[data-template="cumple_color"]{background:radial-gradient(circle at 18% 18%,rgba(255,206,74,.55),transparent 22%),linear-gradient(145deg,#ff7ab6,#7c3cff,#ffce4a);}
.qr-design-stage[data-template="entrada_directa"]{background:linear-gradient(145deg,#101116,#252633 58%,#ec3d89);}
.qr-design-stage[data-template="dorado_premium"]{background:radial-gradient(circle at 30% 20%,rgba(255,240,168,.34),transparent 24%),linear-gradient(145deg,#130d03,#c8962c,#fff0a8);}
.qr-design-stage[data-template="marble_soft"]{background:linear-gradient(145deg,#f7f1ec,#d9cfc8,#fff);}
.qr-design-stage[data-template="tropical_party"]{background:radial-gradient(circle at 18% 20%,rgba(255,209,102,.45),transparent 22%),linear-gradient(145deg,#013d3a,#16c79a,#ffd166);}
.qr-design-stage[data-template="tech_glow"]{background:radial-gradient(circle at 70% 12%,rgba(0,212,255,.46),transparent 28%),linear-gradient(145deg,#020617,#111827,#7c3cff);}
.qr-design-stage[data-template="romantica"]{background:linear-gradient(145deg,#fff0f5,#ff8fab,#ffe5ec);}
.qr-design-stage[data-template="kids_fun"]{background:radial-gradient(circle at 20% 18%,rgba(255,255,255,.40),transparent 20%),linear-gradient(145deg,#7bdff2,#f7d6e0,#f2b5d4);}

.qr-custom-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;pointer-events:none;}
.qr-design-stage.has-custom-bg:after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.10);z-index:1;pointer-events:none;}
.qr-design-content{position:absolute;inset:0;z-index:60;pointer-events:none;}
.qr-text-layer{position:absolute;inset:0;z-index:5;pointer-events:none;}

.qr-code-draggable{
    position:absolute;
    z-index:80 !important;
    display:grid;
    place-items:center;
    padding:12px;
    border-radius:24px;
    background:#fff;
    box-shadow:0 18px 45px rgba(0,0,0,.28);
    cursor:grab;
    touch-action:none !important;
    pointer-events:auto !important;
}
.qr-code-draggable.is-dragging{cursor:grabbing;box-shadow:0 24px 60px rgba(236,61,137,.28);}
.qr-code-draggable img{width:100%;height:100%;display:block;object-fit:contain;pointer-events:none;}

.qr-text-list{display:flex;flex-direction:column;gap:10px;margin-bottom:12px;}
.qr-text-empty{padding:14px;border-radius:14px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08);color:var(--muted);font-size:13px;text-align:center;}
.qr-text-control{display:grid;grid-template-columns:1fr;gap:8px;padding:12px;border-radius:16px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08);}
.qr-text-control input[type="text"],.qr-text-control select{width:100%;min-height:38px;border:1px solid rgba(255,255,255,.12);background:#171820;color:#fff;border-radius:12px;padding:0 10px;font-family:'Poppins',sans-serif;font-size:12px;outline:none;}
.qr-text-control select option{background:#1f2027;color:#fff;}
.qr-text-control input[type="range"]{width:100%;accent-color:var(--pink);}
.qr-text-control input[type="color"]{width:100%;height:38px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:#171820;padding:4px;}
.qr-delete-text{height:36px;border-radius:12px;border:1px solid rgba(255,84,84,.24);background:rgba(255,84,84,.08);color:#ffd4d4;cursor:pointer;}
.qr-text-item{position:absolute;max-width:88%;min-width:80px;width:max-content;overflow:visible;word-break:normal;overflow-wrap:normal;white-space:normal;line-height:1.08;text-align:center;text-wrap:balance;z-index:60;pointer-events:auto;cursor:grab;user-select:none;touch-action:none;padding:7px 10px;border:1px dashed transparent;border-radius:10px;text-shadow:0 3px 12px rgba(0,0,0,.42);}
.qr-text-item:hover,.qr-text-item.is-dragging{border-color:rgba(255,255,255,.55);background:rgba(0,0,0,.12);box-shadow:0 10px 24px rgba(0,0,0,.20);}

@media(max-width:980px){
    .qr-editor{grid-template-columns:1fr !important;}
    .qr-editor-stage-wrap{position:relative !important;top:auto !important;}
}

@media(max-width:760px){
    .qr-editor-card{padding:18px !important;}
    .qr-editor-head{flex-direction:column;}
    .qr-template-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
    .qr-stage-toolbar{flex-direction:column;align-items:stretch !important;}
    .qr-preview-actions{justify-content:stretch !important;}
    .qr-preview-actions .dash-btn{width:100% !important;}
    .qr-panel-actions{grid-template-columns:1fr !important;}
    .qr-format-buttons{grid-template-columns:1fr;}
}

@media(max-width:430px){
    .qr-template-grid{grid-template-columns:1fr !important;}
    .qr-design-stage{width:100% !important;border-radius:22px;}
}
/* =========================================================
   MERCADO PAGO / PLANES
   ========================================================= */

.mp-plans-shell,
.mp-checkout-shell,
.mp-return-shell{
    gap:24px;
}

.mp-plans-hero,
.mp-checkout-hero{
    align-items:center;
}

.mp-plan-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
}

.mp-plan-card,
.mp-checkout-card,
.mp-checkout-side,
.mp-subscription-panel,
.mp-webhook-panel{
    border:1px solid var(--line);
    border-radius:22px;
    background:var(--card);
    box-shadow:var(--shadow);
}

.mp-plan-card{
    min-height:520px;
    padding:24px;
    display:flex;
    flex-direction:column;
    gap:16px;
    position:relative;
    overflow:hidden;
}

.mp-plan-card.featured{
    border-color:rgba(236,61,137,.58);
    background:
        linear-gradient(180deg,rgba(236,61,137,.13),rgba(255,255,255,.035)),
        var(--card);
}

.mp-plan-card.current{
    border-color:rgba(44,214,154,.45);
}

.mp-plan-card-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    min-height:32px;
}

.mp-plan-badge,
.mp-current-badge{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:7px 10px;
    border-radius:10px;
    font-size:11px;
    font-weight:900;
    text-transform:uppercase;
}

.mp-plan-badge{
    color:#fff;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.08);
}

.mp-current-badge{
    color:#081611;
    background:var(--green);
}

.mp-plan-card h2,
.mp-checkout-side h2,
.mp-subscription-panel h2,
.mp-webhook-panel h2{
    margin:0;
}

.mp-plan-card p,
.mp-checkout-side p,
.mp-subscription-panel p,
.mp-webhook-panel p{
    margin:0;
    color:var(--muted);
    line-height:1.6;
}

.mp-plan-price{
    display:flex;
    flex-direction:column;
    gap:2px;
    padding:16px 0;
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
}

.mp-plan-price strong{
    font-size:30px;
    line-height:1;
}

.mp-plan-price span{
    color:var(--muted);
    font-size:13px;
    font-weight:800;
}

.mp-plan-card ul,
.mp-checkout-side ul{
    margin:0;
    padding:0;
    list-style:none;
    display:grid;
    gap:10px;
    color:#fff;
    font-weight:700;
    font-size:13px;
    line-height:1.45;
}

.mp-plan-card li,
.mp-checkout-side li{
    display:grid;
    grid-template-columns:16px 1fr;
    gap:8px;
}

.mp-plan-card li::before,
.mp-checkout-side li::before{
    content:"";
    width:8px;
    height:8px;
    margin-top:6px;
    border-radius:50%;
    background:var(--green);
}

.mp-plan-card .dash-btn{
    width:100%;
    margin-top:auto;
}

.mp-subscription-panel,
.mp-webhook-panel{
    padding:22px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
}

.mp-webhook-panel code{
    max-width:520px;
    overflow:auto;
    padding:12px 14px;
    border-radius:12px;
    background:rgba(0,0,0,.24);
    border:1px solid rgba(255,255,255,.08);
    color:#fff;
    font-size:12px;
}

.mp-checkout-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 330px;
    gap:18px;
    align-items:start;
}

.mp-checkout-card,
.mp-checkout-side{
    padding:24px;
}

.mp-checkout-summary{
    min-width:220px;
    padding:22px;
    border-radius:20px;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.055);
    display:grid;
    gap:6px;
}

.mp-checkout-summary span,
.mp-checkout-summary small,
.mp-checkout-summary em{
    color:var(--muted);
    font-style:normal;
    font-weight:800;
}

.mp-checkout-summary strong{
    font-size:34px;
    line-height:1;
}

.mp-checkout-status{
    margin:0 0 16px;
    padding:12px 14px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.10);
    background:rgba(255,255,255,.06);
    color:#fff;
    font-weight:800;
}

.mp-checkout-status.success{
    border-color:rgba(44,214,154,.32);
    background:rgba(44,214,154,.13);
}

.mp-checkout-status.error{
    border-color:rgba(255,85,120,.38);
    background:rgba(255,85,120,.13);
}

@media(max-width:1180px){
    .mp-plan-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .mp-checkout-layout{
        grid-template-columns:1fr;
    }
}

@media(max-width:680px){
    .mp-plan-grid{
        grid-template-columns:1fr;
    }

    .mp-subscription-panel,
    .mp-webhook-panel,
    .mp-checkout-hero{
        align-items:stretch;
        flex-direction:column;
    }

    .mp-webhook-panel code{
        max-width:100%;
    }
}
/* =========================================================
   MERCADO PAGO BRICKS FIX
   ========================================================= */

.mp-bricks-container{
    width:100%;
}

.mp-bricks-container iframe{
    border-radius:18px !important;
}

.mp-checkout-card{
    overflow:hidden;
}

.mp-checkout-card form{
    width:100%;
}

.mp-checkout-card input,
.mp-checkout-card select{
    font-family:'Poppins',sans-serif !important;
}

.wallet-container,
.mp-wallet-container,
.mp-checkout-bricks{
    width:100%;
}

.mp-checkout-card .andes-card,
.mp-checkout-card .andes-form-control,
.mp-checkout-card .andes-dropdown__trigger{
    border-radius:16px !important;
}

.mp-checkout-card .andes-form-control{
    background:#171820 !important;
    border:1px solid rgba(255,255,255,.12) !important;
}

.mp-checkout-card .andes-form-control input{
    color:#fff !important;
}

.mp-checkout-card .andes-form-control input::placeholder{
    color:rgba(255,255,255,.45) !important;
}

.mp-checkout-card .andes-dropdown__trigger{
    background:#171820 !important;
    color:#fff !important;
}

.mp-checkout-card .andes-button{
    border-radius:16px !important;
    font-family:'Poppins',sans-serif !important;
    font-weight:800 !important;
    min-height:52px !important;
    background:linear-gradient(135deg,var(--violet),var(--pink)) !important;
    border:0 !important;
}

.mp-checkout-card .andes-button__content{
    font-weight:800 !important;
}

.mp-checkout-card .andes-form-control--focused{
    border-color:rgba(236,61,137,.48) !important;
    box-shadow:0 0 0 4px rgba(236,61,137,.10) !important;
}

.mp-checkout-card .andes-message{
    border-radius:14px !important;
}

/* FIX colores verdes horribles */
.mp-checkout-card input:-webkit-autofill,
.mp-checkout-card input:-webkit-autofill:hover,
.mp-checkout-card input:-webkit-autofill:focus{
    -webkit-text-fill-color:#fff !important;
    transition:background-color 999999s ease-in-out 0s;
    box-shadow:0 0 0px 1000px #171820 inset !important;
}

/* Responsive */
@media(max-width:760px){

    .mp-checkout-card{
        padding:18px !important;
    }

    .mp-checkout-summary{
        width:100%;
    }

    .mp-checkout-hero{
        flex-direction:column;
        align-items:flex-start !important;
    }
}

/* =========================================================
   WATERMARK CONFIG
   ========================================================= */

.watermark-config-card{
    margin-bottom:28px;
    padding:24px;
}

.watermark-config-card .chart-title{
    align-items:flex-start;
}

.watermark-config-card .plan-pill{
    flex:0 0 auto;
}

.watermark-plan-state{
    display:flex;
    align-items:center;
    gap:18px;
    padding:18px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.10);
    background:rgba(255,255,255,.055);
}

.watermark-plan-state strong{
    display:block;
    margin-bottom:4px;
    color:#fff;
    font-size:16px;
}

.watermark-plan-state p{
    margin:0;
    color:var(--muted);
    font-size:13px;
    line-height:1.55;
}

.watermark-logo-preview,
.watermark-logo-picker{
    width:180px;
    min-height:112px;
    border-radius:18px;
    border:1px dashed rgba(255,255,255,.18);
    background:
        linear-gradient(45deg, rgba(255,255,255,.06) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,.06) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,.06) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.06) 75%),
        #15161d;
    background-size:18px 18px;
    background-position:0 0,0 9px,9px -9px,-9px 0;
    display:grid;
    place-items:center;
    padding:16px;
    color:#fff;
    text-align:center;
}

.watermark-logo-preview img,
.watermark-logo-picker img{
    max-width:100%;
    max-height:78px;
    object-fit:contain;
    display:block;
}

.watermark-logo-preview:not(.has-logo) span{
    width:56px;
    height:56px;
    display:grid;
    place-items:center;
    border-radius:16px;
    background:linear-gradient(135deg,var(--violet),var(--pink));
    font-weight:900;
}

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

.watermark-logo-picker{
    position:relative;
    width:100%;
    min-height:152px;
    cursor:pointer;
    overflow:hidden;
    transition:border-color .2s ease, transform .2s ease, background-color .2s ease;
}

.watermark-logo-picker:hover{
    border-color:rgba(236,61,137,.48);
    transform:translateY(-1px);
}

.watermark-logo-picker input[type="file"]{
    position:absolute;
    inset:0;
    opacity:0;
    cursor:pointer;
}

.watermark-logo-picker strong,
.watermark-logo-picker span{
    font-weight:900;
}

.watermark-logo-picker small{
    color:var(--muted);
    font-size:12px;
    font-weight:800;
}

.watermark-logo-picker img[src=""]{
    display:none;
}

.watermark-logo-picker.is-previewing strong,
.watermark-logo-picker.is-previewing small{
    display:none;
}

.watermark-logo-picker.is-previewing img{
    display:block;
}

.watermark-settings{
    display:flex;
    flex-direction:column;
    gap:14px;
    padding:18px;
    border-radius:18px;
    background:rgba(255,255,255,.045);
    border:1px solid rgba(255,255,255,.09);
}

.watermark-toggle{
    align-items:flex-start;
}

.watermark-note{
    margin:0;
    color:var(--muted);
    font-size:13px;
    line-height:1.55;
}

.watermark-remove{
    color:#ffb7c8;
}

.watermark-settings .dash-btn{
    width:max-content;
}

@media(max-width:780px){
    .watermark-plan-state,
    .watermark-layout{
        grid-template-columns:1fr;
        flex-direction:column;
        align-items:stretch;
    }

    .watermark-logo-preview{
        width:100%;
    }

    .watermark-settings .dash-btn{
        width:100%;
    }
}
