/**
 * SimulatorHNT - Simulator Controls Panel Styles
 * Refatoração Stitch: substitui todos os style="" inline dos painéis de controle.
 * NÃO alterar sem testar nos 5 simuladores: Shorts, Top, Calça-Legging, Moletom, Shorts-Legging.
 */

/* ─── DESIGN TOKENS (dark simulator theme) ─────────────────────────────── */
:root {
    --sim-bg: #0d0d0d;
    --sim-panel-bg: #141414;
    --sim-card-bg: #1a1a1a;
    --sim-border: #2a2a2a;
    --sim-border-accent: rgba(212, 175, 55, 0.35);
    --sim-text-primary: #ffffff;
    --sim-text-muted: #888888;
    --sim-text-accent: #D4AF37;
    --sim-text-info: #00b4d8;
    --sim-transition: 0.2s ease;
}

/* ─── TAB SYSTEM ───────────────────────────────────────────────────────── */
.category-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 15px;
    background: #000;
    padding: 2px;
    border-radius: 8px;
    border: 1px solid var(--sim-border);
}

.category-tab {
    flex: 1 1 0px;
    min-width: 0;
    padding: 8px 4px;
    text-align: center;
    background: transparent;
    color: var(--sim-text-muted);
    font-size: clamp(0.65rem, 0.9vw, 0.75rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 6px;
    transition: all var(--sim-transition);
    border: none;
    outline: none;
    word-break: normal;
    overflow-wrap: break-word;
    line-height: 1.15;
    box-sizing: border-box;
}

.category-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.category-tab.active {
    background: var(--sim-card-bg);
    color: var(--sim-text-accent);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* ─── HEADER BAR (topo do painel de controles) ──────────────────────────── */
.sim-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--sim-border) !important;
}

.sim-header-label {
    color: var(--sim-text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sim-id-chip {
    background: #1a1a1a;
    color: var(--sim-text-muted);
    font-size: 0.72rem;
    padding: 2px 10px;
    border: 1px solid #333;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.sim-header-left,
.sim-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sim-header-left span,
.sim-header-left input {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
}

/* ─── ORDER INPUT ───────────────────────────────────────────────────────── */
.sim-order-input {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    color: var(--sim-text-muted) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.72rem !important;
    padding: 2px 10px !important;
    width: 70px !important;
    text-align: center !important;
    border-radius: 20px !important;
    outline: none !important;
    transition: all var(--sim-transition) !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

.sim-order-input:focus {
    border-color: var(--sim-text-accent) !important;
    background: #222 !important;
    color: #fff !important;
}

/* ─── ACTION BUTTONS ROW ────────────────────────────────────────────────── */
.sim-action-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

/* ─── SECTION CARDS (substitui .category-group) ─────────────────────────── */
.sim-section-card {
    background: var(--sim-card-bg);
    border: 1px solid var(--sim-border);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
    transition: border-color var(--sim-transition);
}

.sim-section-card:hover {
    border-color: var(--sim-border-accent);
}

/* ─── SECTION HEADER (substitui .category-header) ───────────────────────── */
.sim-section-header {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--sim-text-accent) !important;
    /* Gold over Cyan */
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--sim-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    text-shadow: none !important;
}

.sim-id-label {
    color: var(--sim-text-muted) !important;
    font-size: 0.72rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0 !important;
    line-height: 1;
}

.sim-section-header .sim-header-info {
    color: var(--sim-text-info);
    font-weight: bold;
}

/* ─── ZONE TITLE (dentro das seções de personalização) ──────────────────── */
.sim-zone-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--sim-text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sim-zone-price-badge {
    color: var(--sim-text-info);
    font-weight: bold;
    font-size: 0.82rem;
}

.sim-zone-fee-badge {
    color: var(--sim-text-accent);
    margin-left: 6px;
    font-size: 0.82rem;
}

/* ─── FINAL FORM ────────────────────────────────────────────────────────── */
.sim-obs-block {
    margin-top: 10px;
    border-top: 1px solid var(--sim-border);
    padding-top: 10px;
}

.sim-obs-label {
    font-weight: bold;
    display: block;
    color: var(--sim-text-primary);
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.sim-obs-textarea {
    width: 100%;
    height: 60px;
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 8px;
    font-size: 0.85rem;
    resize: vertical;
    transition: border-color var(--sim-transition);
    box-sizing: border-box;
}

.sim-obs-textarea:focus {
    border-color: var(--sim-text-accent);
    outline: none;
}

/* ─── PHONE BLOCK ───────────────────────────────────────────────────────── */
.sim-phone-block {
    margin-top: 10px;
    background: rgba(255, 243, 205, 0.05);
    padding: 10px;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

.sim-phone-label {
    font-weight: bold;
    display: block;
    color: #c8a200;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.sim-phone-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #555;
    border-radius: 4px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.9rem;
    box-sizing: border-box;
    transition: border-color var(--sim-transition);
}

.sim-phone-input:focus {
    border-color: var(--sim-text-accent);
    outline: none;
}

.sim-warning-block {
    margin-top: 15px;
    background: #111;
    border: 1px solid var(--sim-border);
    border-left: 3px solid var(--sim-text-accent);
    padding: 12px;
    border-radius: 4px;
    color: #888;
    font-size: 0.78rem;
    line-height: 1.5;
    flex-shrink: 0;
    height: auto;
    min-height: fit-content;
}

#summary-checkout-inputs,
.sim-checkout-block {
    flex-shrink: 0 !important;
    height: auto !important;
    min-height: fit-content !important;
}

.sim-warning-block p {
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.sim-warning-block p:last-of-type {
    margin-bottom: 12px;
}

.sim-warning-title {
    color: var(--sim-text-accent);
}

.sim-warning-link {
    color: var(--sim-text-accent);
    text-decoration: underline;
}

.sim-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: #fff;
    font-weight: bold;
    font-size: 0.85rem;
}

.sim-terms-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.sim-required {
    color: red;
}

/* ─── INFO CARD (ImageUploader) ─────────────────────────────────────────── */
.sim-info-card {
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border: 1px solid var(--sim-border);
}

.sim-info-origin {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #007bff;
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.sim-info-charge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.sim-info-filename {
    font-size: 0.65rem;
    color: #666;
    margin-top: 2px;
}

/* ─── EMB MANAGER BLOCKS ─────────────────────────────────────────────────── */
.emb-art-block {
    background: #151515;
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden;
}

.emb-art-block+.emb-art-block {
    margin-top: 10px;
}

.emb-block-header {
    padding: 12px;
    cursor: pointer;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: filter var(--sim-transition);
}

.emb-block-header:hover {
    filter: brightness(1.2);
}

.emb-block-header--pending {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.emb-block-header--cobrada {
    background: rgba(255, 77, 77, 0.08);
    border: 1px solid rgba(255, 77, 77, 0.5);
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.1);
}

.emb-block-header--isenta-casa {
    background: rgba(40, 167, 69, 0.08);
    border: 1px solid rgba(40, 167, 69, 0.5);
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.1);
}

.emb-block-header--isenta-emb {
    background: rgba(0, 123, 255, 0.08);
    border: 1px solid rgba(0, 123, 255, 0.5);
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.1);
}

.emb-block-thumb {
    width: 45px;
    height: 45px;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
    border: 1px solid #555;
}

.emb-block-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.emb-block-meta {
    flex: 1;
    min-width: 0;
}

.emb-block-status {
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.emb-block-filename {
    color: #fff;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
}

.emb-block-toggle {
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.3);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.emb-block-body {
    padding: 15px;
    border-top: 1px solid #333;
    display: none;
    background: #121212;
}

.emb-option-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.emb-option-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: #444;
}

.emb-option-card.selected {
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--sim-text-accent);
}

.emb-option-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #555;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s ease;
}

.emb-option-card.selected .emb-option-radio {
    border-color: var(--sim-text-accent);
}

.emb-option-card.selected .emb-option-radio::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sim-text-accent);
    box-shadow: 0 0 8px var(--sim-text-accent);
}

.emb-option-content {
    flex: 1;
}

.emb-option-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emb-option-desc {
    font-size: 0.72rem;
    color: #888;
    line-height: 1.4;
}

.emb-aviso-box {
    color: #ffc107;
    font-weight: 700;
    font-style: italic;
    background: rgba(212, 175, 55, 0.05);
    padding: 4px 6px;
    border-radius: 4px;
    margin-top: 4px;
    display: inline-block;
}

.emb-management-header {
    background: #1a472a;
    padding: 12px;
    border-left: 4px solid #28a745;
    border-radius: 4px;
    margin-bottom: 10px;
}

.emb-management-title {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    color: #fff;
}

.emb-arts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* === IMAGE UPLOADER AUX === */
.sim-limit-wrap {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.sim-limit-label {
    font-size: 0.85rem;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
}

.sim-grid-2cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
}

.sim-fee-hint {
    grid-column: 1 / -1;
    font-size: 0.7rem;
    color: #aaa;
    text-align: center;
    margin-bottom: 8px;
}

.info-card-header-block {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.accent-text {
    color: var(--accent);
}

.info-card {
    margin-top: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 6px;
}

.info-card-origin {
    color: #007bff;
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.info-card-status {
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.info-card-status.pending {
    color: #ffc107;
}

.info-card-status.charged {
    color: #ff4d4d;
}

.info-card-status.free {
    color: #28a745;
}

.info-card-filename {
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 10px;
}

.scale-control-label {
    font-size: 0.72rem;
    color: #D4AF37;
    margin-bottom: 4px;
    font-weight: bold;
}

.scale-flex-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.scale-num-wrap {
    flex-shrink: 0;
}

.scale-number-input-small {
    width: 60px !important;
    height: 32px !important;
    padding: 0 4px !important;
    text-align: center !important;
    font-size: 0.9rem !important;
    border-radius: 6px !important;
    background: #000 !important;
    border: 1px solid #444 !important;
    color: var(--sim-text-accent) !important;
    font-family: 'Bebas Neue', sans-serif !important;
    letter-spacing: 0.5px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

.scale-number-input-small:focus {
    border-color: var(--sim-text-accent) !important;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4) !important;
    outline: none;
}

.sim-obs-block {
    margin-top: 15px;
    border-top: 1px solid var(--sim-border);
    padding-top: 15px;
}

.sim-obs-label {
    font-weight: bold;
    display: block;
    color: var(--sim-text-primary);
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.sim-obs-textarea {
    width: 100%;
    height: 60px;
    background: #1a1a1a;
    color: #fff;
    border: 1px solid var(--sim-border);
    border-radius: 4px;
    padding: 8px;
    font-size: 0.85rem;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.sim-obs-textarea:focus {
    border-color: var(--sim-text-accent);
    outline: none;
}

.sim-phone-block {
    margin-top: 15px;
    background: rgba(255, 243, 205, 0.04);
    padding: 12px;
    border-left: 3px solid var(--sim-text-accent);
    border-radius: 4px;
}

.sim-phone-label {
    font-weight: bold;
    display: block;
    color: var(--sim-text-accent);
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.sim-phone-input {
    width: 100%;
    padding: 8px;
    background: #000;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    font-family: inherit;
}

.sim-warning-block {
    margin-top: 20px;
    background: #0a0a0a;
    border: 1px solid var(--sim-border);
    padding: 15px;
    border-radius: 6px;
    color: var(--sim-text-muted);
    font-size: 0.75rem;
    line-height: 1.6;
    flex-shrink: 0;
    height: auto;
}

.sim-warning-title {
    color: var(--sim-text-accent);
    display: block;
    margin-bottom: 8px;
}

.sim-warning-link {
    color: var(--sim-text-accent);
    text-decoration: underline;
}

.sim-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: #fff;
    font-weight: bold;
    margin-top: 12px;
    font-size: 0.8rem;
}

.sim-terms-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.sim-required {
    color: #ff4d4d;
}

/* ─── SISTEMA DE NAVEGAÇÃO POR PASSOS (UX PREMIUM) ────────────────────────── */
.step-progress-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 25px;
    padding: 0 10px;
    background: #000;
    border: 1px solid var(--sim-border);
    border-radius: 12px;
    height: 60px;
}

.step-progress-line {
    position: absolute;
    top: 50%;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #222;
    z-index: 1;
    transform: translateY(-50%);
}

.step-progress-line-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--sim-text-accent), #fff);
    transition: width 0.3s ease;
    width: 0%;
}

.step-node {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #111;
    border: 2px solid #333;
    color: var(--sim-text-muted);
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-node:hover {
    color: #fff;
    border-color: #555;
    background: #222;
}

.step-node.active {
    background: #000;
    border-color: var(--sim-text-accent);
    color: var(--sim-text-accent);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
    transform: scale(1.15);
}

.step-node.completed {
    background: var(--sim-text-accent);
    border-color: var(--sim-text-accent);
    color: #000;
}

.step-node-label {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.58rem;
    font-weight: 800;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sim-text-muted);
    transition: color 0.2s ease;
}

.step-node.active .step-node-label {
    color: var(--sim-text-accent);
}

/* ─── STEP ACCORDIONS ────────────────────────────────────────────────────── */
.step-accordion-card {
    background: var(--sim-card-bg);
    border: 1px solid var(--sim-border);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color var(--sim-transition), box-shadow var(--sim-transition);
}

.step-accordion-card.active {
    border-color: var(--sim-border-accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.step-accordion-header {
    padding: 14px 16px;
    background: #141414;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--sim-transition);
    user-select: none;
}

.step-accordion-header:hover {
    background: #1c1c1c;
}

.step-accordion-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-accordion-number {
    font-size: 0.8rem;
    font-weight: 800;
    background: #000;
    color: var(--sim-text-accent);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--sim-border-accent);
}

.step-accordion-card.active .step-accordion-number {
    background: var(--sim-text-accent);
    color: #000;
    border-color: var(--sim-text-accent);
}

.step-accordion-title {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
}

.step-accordion-card.active .step-accordion-title {
    color: var(--sim-text-accent);
}

.step-accordion-arrow {
    font-size: 0.75rem;
    color: var(--sim-text-muted);
    transition: transform 0.25s ease;
}

.step-accordion-card.active .step-accordion-arrow {
    transform: rotate(180deg);
    color: var(--sim-text-accent);
}

.step-accordion-body {
    padding: 16px;
    border-top: 1px solid var(--sim-border);
    background: #0a0a0a;
}

/* ─── SELETOR DE ABAS DE MÍDIAS (TABS CONDICIONAIS) ─────────────────────── */
.media-tabs-nav {
    display: flex;
    gap: 6px;
    background: #000000;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid #222222;
    margin-bottom: 12px;
    flex-wrap: nowrap;
}

.media-tab-btn {
    flex: 1;
    min-width: 0;
    padding: 10px 6px 8px;
    background: #000000;
    border: 2px solid var(--accent, #00f0ff);
    outline: none;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s ease;
    text-align: center;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.25);
    line-height: 1.25;
}

.media-tab-btn .btn-label {
    white-space: normal !important;
    word-break: break-word;
    font-size: 0.62rem !important;
    letter-spacing: 0.3px;
    line-height: 1.3;
    color: #ffffff !important;
    text-align: center;
    max-width: 100%;
}

.media-tab-btn:hover {
    color: #ffffff;
    background: #080808;
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
    transform: translateY(-1px);
}

.media-tab-btn.active {
    background: rgba(0, 240, 255, 0.15) !important;
    border-color: var(--accent, #00f0ff) !important;
    box-shadow: 0 0 15px var(--accent, #00f0ff), inset 0 0 8px rgba(0, 240, 255, 0.3) !important;
}

/* 🎯 SINALIZAÇÃO VERDE EXCLUSIVA DO CARD DIGITAR TEXTO (ATIVADO / CUSTOMIZADO) */
.media-tab-btn.media-tab-texto.active,
.media-tab-btn.media-tab-texto.customized-green {
    background: rgba(16, 185, 129, 0.18) !important;
    border: 2px solid #10b981 !important;
    color: #10b981 !important;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.45), inset 0 0 10px rgba(16, 185, 129, 0.25) !important;
}
.media-tab-btn.media-tab-texto.active .btn-icon-box,
.media-tab-btn.media-tab-texto.customized-green .btn-icon-box {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.28) !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.5) !important;
}
.media-tab-btn.media-tab-texto.active .btn-icon-box svg,
.media-tab-btn.media-tab-texto.customized-green .btn-icon-box svg {
    stroke: #10b981 !important;
    filter: drop-shadow(0 0 4px #10b981) !important;
}
.media-tab-btn.media-tab-texto.active .btn-label,
.media-tab-btn.media-tab-texto.customized-green .btn-label {
    color: #10b981 !important;
    font-weight: 800 !important;
}

/* 🎯 ESTILOS MODERNOS DO NOVO EDITOR DE TEXTO INLINE */
.hnt-line-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    transition: all 0.25s ease;
}
.hnt-line-block.has-text {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.04);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}
.hnt-line-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.hnt-line-tag {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--accent, #D4AF37);
    min-width: 32px;
}
.hnt-line-block.has-text .hnt-line-tag {
    color: #10b981;
}
.hnt-line-input {
    flex: 1;
    background: #0a0a0a !important;
    border: 1px solid var(--accent, #D4AF37) !important;
    color: #ffffff !important;
    padding: 9px 12px !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}
.hnt-line-input:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.35) !important;
}
.hnt-line-options-box {
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px dashed rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: simFadeIn 0.22s ease;
}
.hnt-line-options-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 6px;
    margin-bottom: 4px;
}
.hnt-line-options-title {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--accent, #D4AF37);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.hnt-btn-toggle-options {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ccc;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.hnt-btn-toggle-options:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    color: #10b981;
}
.hnt-btn-add-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px dashed var(--accent, #D4AF37);
    color: var(--accent, #D4AF37);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 6px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.hnt-btn-add-line:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    border-style: solid;
    color: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}
.hnt-btn-remove-line {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ff6b6b;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.hnt-btn-remove-line:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
}

/* 🎯 CONTROLES DE PROPORÇÃO & ESCALA DE TEXTO (INDIVIDUAL E GERAL) */
.hnt-scale-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}
.hnt-scale-badge.state-normal {
    color: var(--accent, #D4AF37);
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.35);
}
.hnt-scale-badge.state-enlarged {
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
}
.hnt-scale-badge.state-reduced {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.hnt-scale-controls-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.hnt-scale-step-btn {
    width: 26px;
    height: 26px;
    min-width: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #18181b;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.hnt-scale-step-btn:hover {
    border-color: var(--accent, #D4AF37);
    color: var(--accent, #D4AF37);
    background: rgba(212, 175, 55, 0.15);
}

.hnt-scale-slider {
    accent-color: var(--accent, #D4AF37);
    height: 6px;
    cursor: pointer;
}

.hnt-scale-num-input {
    width: 52px;
    padding: 4px 6px;
    text-align: center;
    background: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #444444 !important;
    border-radius: 4px !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    outline: none !important;
}
.hnt-scale-num-input:focus {
    border-color: var(--accent, #D4AF37) !important;
}

.hnt-scale-reset-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #aaaaaa;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.hnt-scale-reset-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--accent, #D4AF37);
    color: var(--accent, #D4AF37);
}

.hnt-global-scale-box {
    margin-top: 10px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: simFadeIn 0.22s ease;
}
.hnt-global-scale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.hnt-global-scale-title {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--accent, #D4AF37);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.hnt-global-scale-desc {
    font-size: 0.68rem;
    color: #888888;
    margin-top: -2px;
}

.btn-icon-box {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    border: 2px solid var(--accent, #00f0ff) !important;
    border-radius: 6px !important;
    background: rgba(0, 240, 255, 0.08) !important;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.4), inset 0 0 4px rgba(0, 240, 255, 0.2) !important;
    flex-shrink: 0 !important;
    transition: all 0.25s ease !important;
}

.media-tab-btn:hover .btn-icon-box,
.zone-btn:hover .btn-icon-box {
    border-color: #ffffff !important;
    background: rgba(0, 240, 255, 0.2) !important;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.7) !important;
}

.btn-icon-box svg {
    width: 16px !important;
    height: 16px !important;
    stroke: var(--accent, #00f0ff) !important;
    fill: none !important;
    filter: drop-shadow(0 0 3px var(--accent, #00f0ff)) !important;
    transition: stroke 0.25s ease !important;
}

.media-tab-btn:hover .btn-icon-box svg,
.zone-btn:hover .btn-icon-box svg {
    stroke: #ffffff !important;
}

.media-tab-panel {
    display: none;
    animation: simFadeIn 0.25s ease;
}

.media-tab-panel.active {
    display: block;
}

@keyframes simFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── BANNERS E TOOLTIPS EXPLICATIVOS ─────────────────────────────────────── */
.premium-info-banner {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.04), rgba(255, 255, 255, 0.01));
    border-left: 3px solid var(--sim-text-accent);
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 0.76rem;
    line-height: 1.5;
    color: #aaa;
}

.premium-info-banner strong {
    color: #fff;
}

.step-navigation-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
    border-top: 1px solid var(--sim-border);
    padding-top: 15px;
}

.btn-step-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 0.78rem;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #333;
    background: #161616;
    color: #fff;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.btn-step-nav:hover {
    background: #222;
    border-color: #555;
    color: #fff;
}

.btn-step-nav.next {
    background: linear-gradient(135deg, var(--sim-text-accent), #b8960c);
    color: #000;
    border: none;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
}

.btn-step-nav.next:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(212, 175, 55, 0.3);
}

/* === INTERACTIVE TOOLTIPS SYSTEM === */
.sim-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 6px;
    color: var(--sim-text-accent, #D4AF37);
    font-size: 0.8rem;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    user-select: none;
    vertical-align: middle;
    transition: all 0.2s ease;
}
.sim-tooltip:hover {
    background: var(--sim-text-accent, #D4AF37);
    color: #000;
}
.sim-tooltip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0e0f11;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    line-height: 1.4;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.8);
    border: 1px solid #333;
    z-index: 10000;
    font-family: var(--font-sub, sans-serif);
    font-weight: normal;
    text-transform: none;
}
.sim-tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}
@media (max-width: 600px) {
    .sim-tooltip::after {
        left: auto;
        right: 0;
        transform: none;
        white-space: normal;
        width: 180px;
    }
    .sim-tooltip:hover::after {
        transform: translateY(-2px);
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   ESTÚDIO TIPOGRÁFICO & PERSONALIZAÇÃO AVANÇADA POR LINHA (v2026.10)
══════════════════════════════════════════════════════════════════════════════ */

/* Controles Segmentados (Linhas e Alinhamento) */
.hnt-segmented-group {
    display: flex;
    gap: 4px;
    background: #0a0a0d;
    padding: 3px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    box-sizing: border-box;
}

.hnt-segmented-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #9aa0a6;
    padding: 7px 8px;
    font-size: 0.76rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.hnt-segmented-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.hnt-segmented-btn.active {
    background: var(--sim-text-accent, #D4AF37);
    color: #000000;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

/* Botão de Destaque da Janela de Ajuste por Linha */
.hnt-text-studio-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    margin-top: 6px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(20, 20, 25, 0.95) 100%);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    text-align: left;
}

.hnt-text-studio-btn:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.22) 0%, rgba(30, 30, 38, 0.98) 100%);
    border-color: var(--sim-text-accent, #D4AF37);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.25);
}

.hnt-text-studio-badge {
    background: rgba(212, 175, 55, 0.25);
    color: var(--sim-text-accent, #D4AF37);
    border: 1px solid rgba(212, 175, 55, 0.5);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Card Suspenso Sugestivo de Ajuste por Linha (Efeito Cascata) */
.hnt-text-studio-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 13px 15px;
    margin-top: 6px;
    background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.16) 0%, rgba(15, 17, 23, 0.98) 100%);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    transition: all 0.25s ease;
    cursor: pointer;
    text-align: left;
}

.hnt-text-studio-card:hover {
    border-color: var(--sim-text-accent, #D4AF37);
    box-shadow: 0 6px 22px rgba(212, 175, 55, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.hnt-text-studio-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.hnt-text-studio-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.hnt-text-studio-card-desc {
    font-size: 0.73rem;
    color: #a0a6b5;
    line-height: 1.45;
    margin: 0;
}

.hnt-text-studio-card-chips {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 2px;
}

.hnt-text-studio-card-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 0.72rem;
    color: #ddd;
}

.hnt-text-studio-card-chip strong {
    color: var(--sim-text-accent, #D4AF37);
    font-size: 0.72rem;
}

.hnt-text-studio-card-chip span.chip-details {
    color: #888;
    font-size: 0.68rem;
}

.hnt-text-studio-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 12px;
    margin-top: 4px;
    background: linear-gradient(135deg, var(--sim-text-accent, #D4AF37) 0%, #b89128 100%);
    border: none;
    border-radius: 6px;
    color: #000000;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35);
    transition: all 0.2s ease;
}

.hnt-text-studio-cta:hover {
    background: linear-gradient(135deg, #ffd95c 0%, var(--sim-text-accent, #D4AF37) 100%);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.5);
    transform: translateY(-1px);
}

/* Modal / Drawer Backdrop */
.hnt-text-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.hnt-text-modal-backdrop.is-active {
    opacity: 1;
    visibility: visible;
}

/* Modal Dialog */
.hnt-text-modal-dialog {
    background: #0f1014;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 14px;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(212, 175, 55, 0.12);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    box-sizing: border-box;
}

.hnt-text-modal-backdrop.is-active .hnt-text-modal-dialog {
    transform: translateY(0) scale(1);
}

/* Header */
.hnt-text-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #14151a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hnt-text-modal-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.hnt-text-modal-subtitle {
    font-size: 0.72rem;
    color: #8f95a0;
    margin-top: 2px;
}

.hnt-text-modal-close {
    background: transparent;
    border: none;
    color: #888;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.hnt-text-modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Body com Rolagem Suave */
.hnt-text-modal-body {
    padding: 18px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.hnt-text-modal-body::-webkit-scrollbar {
    width: 6px;
}
.hnt-text-modal-body::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 4px;
}

/* Live Preview Card */
.hnt-text-preview-card {
    background: radial-gradient(circle at center, #1a1b22 0%, #090a0d 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 10px;
    padding: 16px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hnt-text-preview-label {
    position: absolute;
    top: 6px;
    left: 8px;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(212, 175, 55, 0.7);
}

.hnt-text-preview-content {
    width: 100%;
    margin-top: 10px;
}

/* Cards em Efeito Cascata por Linha */
.hnt-text-line-card {
    background: #14151b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hnt-text-line-card.is-expanded {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.hnt-text-line-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #171821;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}

.hnt-text-line-header:hover {
    background: #1d1e2a;
}

.hnt-text-line-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
}

.hnt-text-line-tag {
    font-size: 0.65rem;
    color: #9aa0a6;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: normal;
}

.hnt-text-line-chevron {
    color: #888;
    font-size: 0.8rem;
    transition: transform 0.25s ease;
}

.hnt-text-line-card.is-expanded .hnt-text-line-chevron {
    transform: rotate(180deg);
    color: var(--sim-text-accent, #D4AF37);
}

.hnt-text-line-body {
    padding: 14px;
    display: none;
    flex-direction: column;
    gap: 12px;
    background: #111217;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.hnt-text-line-card.is-expanded .hnt-text-line-body {
    display: flex;
}

/* Presets Rápidos de Tamanho */
.hnt-preset-pills {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.hnt-preset-pill {
    flex: 1;
    background: #181922;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #aaa;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}

.hnt-preset-pill:hover {
    color: #fff;
    border-color: rgba(212, 175, 55, 0.35);
}

.hnt-preset-pill.active {
    background: rgba(212, 175, 55, 0.2);
    color: var(--sim-text-accent, #D4AF37);
    border-color: var(--sim-text-accent, #D4AF37);
}

/* Footer do Modal */
.hnt-text-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #14151a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hnt-btn-reset-text {
    background: transparent;
    border: 1px solid #333;
    color: #aaa;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.hnt-btn-reset-text:hover {
    color: #fff;
    border-color: #555;
    background: rgba(255, 255, 255, 0.05);
}

.hnt-btn-apply-text {
    background: var(--sim-text-accent, #D4AF37);
    border: none;
    color: #000000;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.hnt-btn-apply-text:hover {
    background: #e6c34e;
    transform: translateY(-1px);
}

/* Responsividade Mobile (Bottom Sheet Moderno) */
@media (max-width: 768px) {
    .hnt-text-modal-backdrop {
        padding: 0;
        align-items: flex-end;
    }
    
    .hnt-text-modal-dialog {
        max-width: 100%;
        max-height: 88vh;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
    }

    .hnt-text-modal-backdrop.is-active .hnt-text-modal-dialog {
        transform: translateY(0);
    }
    
    .hnt-text-modal-header {
        padding: 14px 16px;
    }
    
    .hnt-text-modal-body {
        padding: 14px 16px;
    }
    
    .hnt-text-modal-footer {
        padding: 12px 16px;
    }
}

/* ─── BLOCO AGRUPADO DE TEXTO NA IMAGEM (DESLOCAMENTO UNIFICADO) ─── */
.hnt-formatted-text-block {
    display: block;
    width: 100%;
    pointer-events: none;
    user-select: none;
    cursor: move;
}

.hnt-text-line-item {
    display: block;
    width: 100%;
    pointer-events: none;
    user-select: none;
    cursor: move;
}

.dynamic-layer[data-type="text"],
.fixed-text-layer[data-type="text"] {
    cursor: move !important;
    touch-action: none;
    user-select: none;
}

/* ─── EFEITO CASCATA / PROGRESSIVE DISCLOSURE EM CONTROLES E AVISOS ─── */
.sim-clean-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.74rem;
    color: #cbd5e1;
    margin-top: 8px;
    line-height: 1.35;
}

.sim-clean-alert.gold {
    background: rgba(212, 175, 55, 0.06);
    border-color: rgba(212, 175, 55, 0.25);
    color: #e2e8f0;
}

.sim-clean-alert strong {
    color: #D4AF37;
}

.sim-cascade-details {
    margin-top: 8px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.sim-cascade-details[open] {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.03);
}

.sim-cascade-summary {
    padding: 7px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #D4AF37;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

.sim-cascade-summary:hover {
    background: rgba(255, 255, 255, 0.04);
}

.sim-cascade-content {
    padding: 8px 12px 10px 12px;
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.45;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}


/* ─── FLUID CASCADE PERSONALIZATION CARDS ────────────────────────────────── */
.sim-zone-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sim-zone-card.is-collapsed {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sim-zone-card.is-collapsed:hover {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.03);
}

.sim-zone-card.is-unlocked {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.sim-subcontrol-bar {
    animation: simFadeDown 0.2s ease-out;
}

.sim-limit-pill-control {
    cursor: pointer;
    transition: all 0.2s ease;
}

.sim-limit-pill-control:hover {
    background: rgba(0, 0, 0, 0.55);
}

.cascade-color-wrap {
    animation: simFadeDown 0.2s ease-out;
}

@keyframes simFadeDown {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── DESIGN CLEAN & ELEGANTE DOS CARDS DE BORDADO ───────────────────────── */
.sim-zone-card {
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 9px !important;
}

.sim-zone-card:not(.is-collapsed) {
    background: rgba(24, 26, 33, 0.85) !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
}

.sim-zone-card.is-costas-zone:not(.is-collapsed) {
    background: rgba(20, 26, 34, 0.85) !important;
    border: 1px solid rgba(0, 240, 255, 0.35) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
}

.sim-zone-card.customized-zone-item {
    background: rgba(16, 185, 129, 0.05) !important;
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.12) !important;
}

.sim-zone-card.is-collapsed {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.sim-zone-card.is-collapsed:hover {
    border-color: rgba(212, 175, 55, 0.3) !important;
    background: rgba(255, 255, 255, 0.035) !important;
}

.sim-zone-card .sim-zone-title {
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px;
}

.sim-zone-card:not(.customized-zone-item) .sim-zone-title { color: #f3f4f6 !important; }

.sim-zone-header-row {
    transition: background 0.15s ease, opacity 0.15s ease;
    border-radius: 6px;
    padding: 3px 4px;
}
.sim-zone-header-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.sim-card-collapse-icon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    color: #9ca3af;
    user-select: none;
    transition: all 0.15s ease;
}

.sim-zone-active-summary {
    animation: simFadeDown 0.18s ease-out;
}

.sim-zone-remove-btn {
    transition: all 0.15s ease;
}

.sim-limit-subtle-toggle {
    transition: opacity 0.15s ease;
}
.sim-limit-subtle-toggle:hover {
    opacity: 1 !important;
    color: #a1a1aa !important;
}

.sim-zone-card .sim-subcontrol-bar {
    background: transparent !important;
    border: none !important;
    padding: 2px 0 6px 0 !important;
}

.sim-zone-card .sim-subcontrol-bar > span { color: #9ca3af !important; }
.sim-zone-card.is-collapsed .sim-zone-header-row + div { color: #9ca3af !important; }
