/* RESET E VARIÁVEIS */

        * {

            margin: 0;

            padding: 0;

            box-sizing: border-box;

        }

        :root {

            --bg-body: #f4f5f8;

            --bg-sidebar: #111622;

            --bg-card: #ffffff;

            --purple-primary: #6a47f9;

            --purple-light: #f0edff;

            --text-main: #1f2937;

            --text-muted: #6b7280;

            --border-color: #e5e7eb;

            --border-radius-lg: 16px;

            --border-radius-md: 8px;

        }

        body {

            font-family: 'DM Sans', sans-serif;

            background-color: var(--bg-body);

            color: var(--text-main);

            min-height: 100vh;

        }

        /* SIDEBAR ESQUERDA PADRONIZADA (PADRÃO B) */

        .sidebar {

            width: 260px;

            background-color: var(--bg-sidebar);

            color: #CBD5E1;

            display: flex;

            flex-direction: column;

            position: sticky;

            top: 0;

            left: 0;

            height: 100vh;

            border-right: 1px solid rgba(255, 255, 255, 0.08);

            z-index: 100;

            box-sizing: border-box;

            padding: 0;

        }

        .sidebar-brand {

            padding: 24px 20px;

            display: flex;

            align-items: center;

            gap: 12px;

            border-bottom: 1px solid rgba(255, 255, 255, 0.06);

        }

        .store-logo-badge {

            width: 44px !important;

            height: 44px !important;

            min-width: 44px !important;

            max-width: 44px !important;

            min-height: 44px !important;

            max-height: 44px !important;

            aspect-ratio: 1 / 1 !important;

            background: linear-gradient(135deg, #2563EB, #1E3A8A);

            border-radius: 12px !important;

            display: flex !important;

            align-items: center !important;

            justify-content: center !important;

            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);

            flex-shrink: 0 !important;

            overflow: hidden !important;

        }

        .brand-text {

            display: flex;

            flex-direction: column;

        }

        .brand-title {

            font-size: 15px;

            font-weight: 800;

            color: #FFFFFF;

            letter-spacing: 0.5px;

        }

        .brand-subtitle {

            font-size: 11px;

            color: #94A3B8;

            font-weight: 500;

        }

        .close-sidebar-btn {

            display: none;

            margin-left: auto;

            color: #94A3B8;

            cursor: pointer;

        }

        .sidebar-nav {

            padding: 16px 12px;

            display: flex;

            flex-direction: column;

            gap: 4px;

            flex: 1;

            overflow-y: auto;

        }

        .nav-item {

            display: flex;

            align-items: center;

            gap: 12px;

            padding: 11px 14px;

            border-radius: 8px;

            font-size: 13.5px;

            font-weight: 600;

            color: #94A3B8;

            text-decoration: none;

            transition: all 0.2s ease;

            border-left: 3px solid transparent;

        }

        .nav-item svg {

            width: 19px;

            height: 19px;

            flex-shrink: 0;

            stroke: currentColor;

        }

        .nav-item:hover {

            background-color: rgba(255, 255, 255, 0.06);

            color: #FFFFFF;

            transform: translateX(2px);

        }

        .nav-item.active {

            background: linear-gradient(90deg, rgba(79, 70, 229, 0.25), rgba(79, 70, 229, 0.08)) !important;

            color: #818CF8 !important;

            border-left: 3px solid #818CF8 !important;

            box-shadow: none !important;

        }

        .nav-item.active svg {

            stroke: #818CF8 !important;

        }

        .sidebar-footer {

            padding: 16px 14px;

            border-top: 1px solid rgba(255, 255, 255, 0.06);

        }

        .btn-logout {

            display: flex;

            align-items: center;

            gap: 10px;

            padding: 10px 14px;

            border-radius: 8px;

            color: #F87171;

            font-size: 13px;

            font-weight: 600;

            text-decoration: none;

            transition: all 0.2s ease;

        }

        .btn-logout svg {

            width: 18px !important;

            height: 18px !important;

            min-width: 18px !important;

            max-width: 18px !important;

            min-height: 18px !important;

            max-height: 18px !important;

            stroke: currentColor !important;

            flex-shrink: 0 !important;

        }

        .btn-logout:hover {

            background-color: rgba(239, 68, 68, 0.12);

        }

        /* ÁREA PRINCIPAL */

        .main-wrapper {

            margin-left: 0;

            flex: 1;

            min-width: 0;

            display: flex;

            flex-direction: column;

        }

        /* CABEÇALHO SUPERIOR */

        .top-header {

            display: flex;

            justify-content: space-between;

            align-items: center;

            padding: 16px 40px;

            background-color: transparent;

            border-bottom: 1px solid var(--border-color);

        }

        .header-store-info h2 {

            font-size: 18px;

            font-weight: 700;

            color: var(--text-main);

        }

        .header-store-info p {

            font-size: 12px;

            color: var(--text-muted);

            margin-top: 2px;

        }

        .header-user {

            display: flex;

            align-items: center;

            gap: 16px;

        }

        .notification-icon {

            position: relative;

            width: 40px;

            height: 40px;

            background: white;

            border-radius: 50%;

            display: flex;

            align-items: center;

            justify-content: center;

            border: 1px solid var(--border-color);

            cursor: pointer;

        }

        .notification-badge {

            position: absolute;

            top: -2px;

            right: -2px;

            background: #ec4899;

            color: white;

            font-size: 10px;

            font-weight: bold;

            width: 16px;

            height: 16px;

            border-radius: 50%;

            display: flex;

            align-items: center;

            justify-content: center;

            border: 2px solid white;

        }

        .user-profile {

            display: flex;

            align-items: center;

            gap: 10px;

            cursor: pointer;

        }

        .user-avatar {

            width: 36px;

            height: 36px;

            border-radius: 50%;

            background-color: #1E3A8A;

            background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2280%22%20height%3D%2280%22%20viewBox%3D%220%200%2080%2080%22%3E%3Crect%20width%3D%2280%22%20height%3D%2280%22%20rx%3D%2240%22%20fill%3D%22%231E3A8A%22%2F%3E%3Ctext%20x%3D%2250%25%22%20y%3D%2254%25%22%20dominant-baseline%3D%22middle%22%20text-anchor%3D%22middle%22%20fill%3D%22%23FFFFFF%22%20font-family%3D%22Arial%2C%20sans-serif%22%20font-size%3D%2228%22%20font-weight%3D%22800%22%3ESM%3C%2Ftext%3E%3C%2Fsvg%3E");

            background-size: cover;

        }

        .user-info {

            display: flex;

            flex-direction: column;

        }

        .user-info strong {

            font-size: 13px;

        }

        .user-info span {

            font-size: 11px;

            color: var(--text-muted);

        }

        /* LAYOUT PRINCIPAL DO EDITOR (FORMULÁRIO + PREVIEW LATERAL) */

        .editor-layout {

            display: flex;

            align-items: flex-start;

            gap: 36px;

            padding: 24px 40px 60px 40px;

            width: 100%;

            min-width: 0;

            position: relative;

        }

        /* CONTEÚDO PRINCIPAL (FORMULÁRIO) */

        .main-content {

            flex: 1 1 0;

            min-width: 0;

            max-width: none;

            padding: 0;

            position: relative;

        }

        /* CARDS (ACORDEÕES) */

        details.card {

            background-color: var(--bg-card);

            border-radius: var(--border-radius-lg);

            margin-bottom: 24px;

            border: 1px solid var(--border-color);

            box-shadow: 0 2px 10px rgba(0,0,0,0.02);

            overflow: hidden;

        }

        details.card[open] {

            border-color: #d8d0ff;

        }

        details.card > summary {

            list-style: none;

            padding: 20px 24px;

            display: flex;

            align-items: center;

            cursor: pointer;

            background-color: #fcfcfd;

            border-bottom: 1px solid transparent;

        }

        

        details.card[open] > summary {

            border-bottom-color: var(--border-color);

        }

        details.card > summary::-webkit-details-marker {

            display: none;

        }

        .step-badge {

            width: 32px;

            height: 32px;

            background-color: var(--purple-light);

            color: var(--purple-primary);

            border-radius: 8px;

            display: flex;

            align-items: center;

            justify-content: center;

            font-weight: 700;

            margin-right: 16px;

            font-size: 14px;

        }

        .card-header-text h3 {

            font-size: 16px;

            font-weight: 700;

            display: flex;

            align-items: center;

            gap: 8px;

        }

        .badge-default {

            background-color: #e0f2fe;

            color: #0284c7;

            font-size: 11px;

            padding: 2px 8px;

            border-radius: 12px;

            font-weight: 500;

        }

        .card-header-text p {

            font-size: 13px;

            color: var(--text-muted);

            margin-top: 4px;

        }

        .arrow-icon {

            margin-left: auto;

            color: var(--purple-primary);

            transition: transform 0.3s ease;

        }

        details[open] .arrow-icon {

            transform: rotate(180deg);

        }

        .card-body {

            padding: 24px;

        }

        /* FORMULÁRIOS E INPUTS */

        .form-group {

            margin-bottom: 20px;

        }

        .form-group label {

            display: block;

            font-size: 13px;

            font-weight: 500;

            margin-bottom: 8px;

            color: var(--text-main);

        }

        input[type="text"], input[type="url"], select {

            width: 100%;

            padding: 12px 16px;

            border: 1px solid var(--border-color);

            border-radius: var(--border-radius-md);

            font-family: 'DM Sans', sans-serif;

            font-size: 14px;

            color: var(--text-main);

            outline: none;

            transition: 0.2s;

        }

        input[type="text"]:focus, input[type="url"]:focus, select:focus {

            border-color: var(--purple-primary);

            box-shadow: 0 0 0 3px rgba(106, 71, 249, 0.1);

        }

        .input-row {

            display: flex;

            gap: 16px;

            align-items: flex-end;

        }

        

        .input-row .form-group {

            flex: 1;

            margin-bottom: 0;

        }

        /* SEÇÃO 1: LOGO UPLOAD */

        .logo-upload-box {

            display: flex;

            align-items: center;

            gap: 16px;

            padding: 16px;

            background-color: #f8f9fa;

            border: 1px dashed #d1d5db;

            border-radius: var(--border-radius-md);

            margin-bottom: 24px;

        }

        .logo-preview {

            width: 64px;

            height: 64px;

            background-color: #e5e7eb;

            border-radius: 8px;

            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Crect width='150' height='150' fill='%23e0e7ff'/%3E%3Ccircle cx='75' cy='60' r='30' fill='%23818cf8'/%3E%3Cpath d='M25,140 C25,105 50,98 75,98 C100,98 125,105 125,140 Z' fill='%23818cf8'/%3E%3C/svg%3E");

            background-size: cover;

        }

        .banner-preview {

            width: 112px;

            height: 64px;

            flex: 0 0 112px;

            border-radius: 8px;

            background-color: #e5e7eb;

            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='400' viewBox='0 0 800 400'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23312e81'/%3E%3Cstop offset='100%25' stop-color='%234338ca'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='800' height='400' fill='url(%23g)'/%3E%3Ctext x='50%25' y='50%25' dominant-baseline='middle' text-anchor='middle' fill='%23a5b4fc' font-family='sans-serif' font-size='24' font-weight='600'%3EDuke Nexx%3C/text%3E%3C/svg%3E");

            background-position: center top;

            background-size: cover;

        }

        .logo-details {

            flex: 1;

        }

        .logo-details strong {

            display: block;

            font-size: 14px;

            color: var(--text-main);

            margin-bottom: 4px;

        }

        .logo-details span {

            font-size: 12px;

            color: var(--text-muted);

            display: block;

            margin-bottom: 12px;

        }

        .btn-outline {

            display: inline-flex;

            align-items: center;

            gap: 8px;

            padding: 8px 16px;

            background: white;

            border: 1px solid var(--border-color);

            border-radius: 6px;

            font-size: 13px;

            font-weight: 500;

            cursor: pointer;

            color: var(--text-main);

            transition: 0.2s;

        }

        .btn-outline:hover {

            background-color: #f3f4f6;

        }

        /* SEÇÃO 2: LINKS */

        .link-item {

            border: 1px solid var(--border-color);

            border-radius: var(--border-radius-md);

            padding: 16px;

            margin-bottom: 16px;

            background-color: #fafafa;

        }

        .btn-icon {

            width: 40px;

            height: 40px;

            border: 1px solid var(--border-color);

            background: white;

            border-radius: 6px;

            cursor: pointer;

            color: #ef4444;

            display: flex;

            align-items: center;

            justify-content: center;

            flex-shrink: 0;

        }

        .btn-text-purple {

            background: none;

            border: none;

            color: var(--purple-primary);

            font-weight: 500;

            font-size: 13px;

            cursor: pointer;

            display: flex;

            align-items: center;

            gap: 6px;

            padding: 8px 0;

            font-family: inherit;

        }

        .btn-add-link {

            width: 100%;

            padding: 16px;

            border: 1px dashed #a855f7;

            background-color: #faf9ff;

            color: var(--purple-primary);

            border-radius: var(--border-radius-md);

            cursor: pointer;

            font-weight: 500;

            font-size: 14px;

            margin-top: 10px;

            transition: 0.2s;

        }

        .btn-add-link:hover {

            background-color: var(--purple-light);

        }

        .help-text {

            font-size: 12px;

            color: var(--text-muted);

            background-color: #f3f4f6;

            padding: 12px 16px;

            border-radius: var(--border-radius-md);

            margin-top: 16px;

        }

        /* SEÇÃO 4: FONTES */

        .grid-3 {

            display: grid;

            grid-template-columns: repeat(3, 1fr);

            gap: 16px;

        }

        .font-card {

            border: 1px solid var(--border-color);

            border-radius: var(--border-radius-md);

            padding: 16px;

            background: white;

        }

        .font-icon {

            font-size: 20px;

            color: var(--purple-primary);

            margin-bottom: 12px;

            background: var(--purple-light);

            width: 36px;

            height: 36px;

            display: flex;

            align-items: center;

            justify-content: center;

            border-radius: 8px;

        }

        .font-card h4 {

            font-size: 13px;

            margin-bottom: 4px;

        }

        .font-card p {

            font-size: 11px;

            color: var(--text-muted);

            margin-bottom: 12px;

        }

        /* SEÇÃO 6: CORES */

        .radio-cards {

            display: flex;

            gap: 16px;

            margin-bottom: 24px;

        }

        .radio-card {

            flex: 1;

            border: 2px solid var(--border-color);

            border-radius: var(--border-radius-md);

            padding: 16px;

            display: flex;

            align-items: center;

            gap: 12px;

            cursor: pointer;

            font-size: 14px;

            font-weight: 500;

        }

        .radio-card.active {

            border-color: var(--purple-primary);

            background-color: #faf9ff;

            color: var(--purple-primary);

        }

        .radio-card input[type="radio"] {

            accent-color: var(--purple-primary);

            width: 16px;

            height: 16px;

        }

        .color-palette {

            display: flex;

            gap: 12px;

            margin-top: 12px;

            margin-bottom: 24px;

        }

        .color-circle {

            width: 32px;

            height: 32px;

            border-radius: 50%;

            border: 2px solid transparent;

            cursor: pointer;

            box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);

        }

        .color-circle.active {

            border-color: var(--purple-primary);

            box-shadow: 0 0 0 2px white, 0 0 0 4px var(--purple-primary);

        }

        .color-input-row {

            display: flex;

            gap: 16px;

            margin-top: 16px;

        }

        

        .color-input-row .form-group {

            flex: 1;

        }

        

        input[type="color"] {

            -webkit-appearance: none;

            border: 1px solid var(--border-color);

            border-radius: var(--border-radius-md);

            width: 100%;

            height: 44px;

            padding: 4px;

            cursor: pointer;

            background: white;

        }

        /* SEÇÃO 7: BOTÕES */

        .button-styles-grid {

            display: grid;

            grid-template-columns: repeat(3, 1fr);

            gap: 16px;

            margin-bottom: 24px;

        }

        .style-option {

            border: 2px solid var(--border-color);

            border-radius: var(--border-radius-md);

            padding: 16px;

            cursor: pointer;

            text-align: center;

            position: relative;

            background: white;

        }

        .style-option.active {

            border-color: var(--purple-primary);

            background-color: #faf9ff;

        }

        .style-option.active::after {

            content: '';

            position: absolute;

            top: 8px;

            right: 8px;

            width: 14px;

            height: 14px;

            border-radius: 50%;

            border: 4px solid var(--purple-primary);

            background: white;

            box-sizing: border-box;

        }

        .style-preview {

            background-color: var(--purple-light);

            color: var(--purple-primary);

            padding: 10px;

            border-radius: 6px;

            font-size: 12px;

            font-weight: 700;

            margin-bottom: 12px;

        }

        .style-preview.solid { background-color: var(--purple-primary); color: white; }

        .style-preview.glass { background-color: rgba(106, 71, 249, 0.2); color: var(--purple-primary); }

        .style-preview.outline { background-color: transparent; border: 1px solid var(--purple-primary); }

        .style-name {

            font-size: 13px;

            font-weight: 500;

            text-align: left;

        }

        /* PREVIEW DO CELULAR */

        .preview-container {

            width: 320px;

            flex-shrink: 0;

            position: -webkit-sticky;

            position: sticky;

            top: 24px;

            z-index: 50;

            pointer-events: auto;

            align-self: flex-start;

        }

        .preview-label {

            background-color: white;

            border-radius: 20px;

            padding: 8px 16px;

            font-size: 12px;

            font-weight: 500;

            color: var(--text-main);

            display: inline-flex;

            align-items: center;

            gap: 8px;

            box-shadow: 0 4px 12px rgba(0,0,0,0.05);

            margin-bottom: 16px;

        }

        .dot-green {

            width: 8px;

            height: 8px;

            background-color: #10b981;

            border-radius: 50%;

        }

        .phone-mockup {

            width: 320px;

            height: 650px;

            background-color: #16161f;

            border-radius: 40px;

            padding: 10px;

            box-shadow: 0 20px 40px rgba(0,0,0,0.15);

            position: relative;

        }

        .phone-screen {

            width: 100%;

            height: 100%;

            background-color: #f4f5f8;

            border-radius: 32px;

            overflow: hidden;

            display: flex;

            flex-direction: column;

            position: relative;

        }

        .phone-notch {

            width: 120px;

            height: 28px;

            background-color: #16161f;

            position: absolute;

            top: 0;

            left: 50%;

            transform: translateX(-50%);

            border-bottom-left-radius: 16px;

            border-bottom-right-radius: 16px;

            z-index: 10;

        }

        .status-bar {

            display: flex;

            justify-content: space-between;

            padding: 12px 20px 0;

            font-size: 11px;

            font-weight: 600;

            color: #111;

            z-index: 5;

            flex: 0 0 auto;

        }

        .phone-header {

            height: 110px;

            min-height: 110px;

            flex: 0 0 110px;

            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='400' viewBox='0 0 800 400'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23312e81'/%3E%3Cstop offset='100%25' stop-color='%234338ca'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='800' height='400' fill='url(%23g)'/%3E%3Ctext x='50%25' y='50%25' dominant-baseline='middle' text-anchor='middle' fill='%23a5b4fc' font-family='sans-serif' font-size='24' font-weight='600'%3EDuke Nexx%3C/text%3E%3C/svg%3E");

            background-size: cover;

            background-position: center top;

            position: relative;

            margin-top: 10px;

        }

        .phone-avatar {

            width: 76px;

            height: 76px;

            border-radius: 18px !important;

            background-color: #ffffff;

            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Crect width='150' height='150' fill='%23e0e7ff'/%3E%3Ccircle cx='75' cy='60' r='30' fill='%23818cf8'/%3E%3Cpath d='M25,140 C25,105 50,98 75,98 C100,98 125,105 125,140 Z' fill='%23818cf8'/%3E%3C/svg%3E");

            background-size: cover;

            background-position: center top;

            border: 3.5px solid #ffffff !important;

            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22) !important;

            position: absolute;

            bottom: -72px;

            left: 50%;

            transform: translateX(-50%);

            z-index: 2;

        }

        .phone-content {

            padding: 76px 16px 20px;

            flex: 1 1 0;

            min-height: 0;

            overflow-y: auto;

            scrollbar-width: none;

            display: flex;

            flex-direction: column;

        }

        .phone-content::-webkit-scrollbar {

            display: none;

        }

        .phone-content h2,

        #preview-name {

            text-align: center;

            font-size: 18px;

            margin-bottom: 4px;

            font-family: 'Manrope', sans-serif;

            color: var(--preview-title-color, #1f2937);

        }

        .phone-content p,

        #preview-description {

            text-align: center;

            font-size: 11px;

            color: var(--preview-title-color, #1f2937);

            margin-bottom: 12px;

            padding: 0 10px;

            line-height: 1.4;

        }

        .phone-link {

            background-color: white;

            border-radius: 10px;

            padding: 12px;

            display: flex;

            align-items: center;

            gap: 12px;

            margin-bottom: 10px;

            box-shadow: 0 2px 4px rgba(0,0,0,0.02);

        }

        .phone-link-icon {

            width: 32px;

            height: 32px;

            border-radius: 8px;

            display: flex;

            align-items: center;

            justify-content: center;

            font-size: 16px;

            color: white;

        }

        .phone-link-text {

            flex: 1;

        }

        .phone-link-text strong {

            display: block;

            font-size: 12px;

            color: #111;

            margin-bottom: 2px;

        }

        

        .phone-link-text span {

            font-size: 10px;

            color: var(--text-muted);

        }

        .phone-link-arrow {

            color: #9ca3af;

            font-size: 12px;

        }

        .phone-split-row {

            display: flex;

            gap: 10px;

            margin-bottom: 10px;

        }

        .phone-split-box {

            flex: 1;

            background-color: white;

            border-radius: 10px;

            padding: 10px;

            display: flex;

            align-items: center;

            gap: 8px;

            box-shadow: 0 2px 4px rgba(0,0,0,0.02);

            border-left: 3px solid transparent;

        }

        button.phone-split-box {

            width: 100%;

            border-top: 0;

            border-right: 0;

            border-bottom: 0;

            color: inherit;

            font: inherit;

            text-align: left;

            cursor: pointer;

        }

        button.phone-split-box:disabled {

            cursor: default;

            opacity: 0.7;

        }

        .phone-split-box.pix { border-left-color: #14b8a6; }

        .phone-split-box.map { border-left-color: #ef4444; }

        .phone-split-icon {

            font-size: 16px;

        }

        /* NOVO RODAPÉ DO CELULAR (PREVIEW) */

        .phone-footer {

            background-color: #e5e7eb; /* Cor padrão que será alterada */

            padding: 16px;

            flex: 0 0 auto;

            text-align: center;

            font-size: 10px;

            color: #6b7280;

            font-weight: 500;

            margin-top: auto; /* Empurra para o final da tela */

            border-top: 1px solid rgba(0,0,0,0.05);

        }

        [hidden] {

            display: none !important;

        }

        .upload-caption {

            display: block;

            margin-top: 6px;

            color: var(--text-muted);

            font-size: 11px;

        }

        .background-media-controls {

            display: grid;

            gap: 10px;

            margin-bottom: 20px;

        }

        .phone-background-video {

            position: absolute;

            inset: 0;

            z-index: 0;

            width: 100%;

            height: 100%;

            object-fit: cover;

        }

        .phone-screen > .status-bar,

        .phone-screen > .phone-header,

        .phone-screen > .phone-content,

        .phone-screen > .phone-footer {

            position: relative;

            z-index: 1;

        }

        .editor-actions {

            display: flex;

            align-items: center;

            justify-content: flex-end;

            flex-wrap: wrap;

            gap: 12px;

            margin: 8px 0 32px;

        }

        .editor-actions p {

            flex: 1;

            min-width: 220px;

            color: var(--text-muted);

            font-size: 13px;

        }

        .editor-actions p.error {

            color: #b91c1c;

        }

        .btn-save {

            padding: 10px 18px;

            border: 1px solid var(--purple-primary);

            border-radius: 8px;

            background: var(--purple-primary);

            color: white;

            font: inherit;

            font-weight: 700;

            cursor: pointer;

        }

        .btn-save:hover {

            background: #5836e8;

        }

        #preview-description span {

            display: block;

            color: inherit;

        }

        .preview-address {

            margin-top: 4px;

            color: inherit;

        }

        /* ==========================================================================

           MOTOR PROFISSIONAL DE APRESENTAÇÃO DOS BOTÕES E LINKS (NFC CONNECT)

           ========================================================================== */

        /* BARRA SUPERIOR DA PRÉVIA COM ALTERNADOR DE DISPOSITIVOS */

        .preview-top-toolbar {

            display: flex;

            align-items: center;

            justify-content: space-between;

            gap: 12px;

            margin-bottom: 16px;

            flex-wrap: wrap;

        }

        .device-switcher {

            display: inline-flex;

            background: #e2e8f0;

            padding: 3px;

            border-radius: 8px;

            gap: 2px;

        }

        .device-btn {

            border: none;

            background: transparent;

            padding: 6px 12px;

            border-radius: 6px;

            font-size: 11px;

            font-weight: 600;

            color: #475569;

            cursor: pointer;

            display: inline-flex;

            align-items: center;

            gap: 6px;

            transition: all 140ms ease;

        }

        .device-btn:hover {

            color: #0f172a;

        }

        .device-btn.active {

            background: #ffffff;

            color: var(--purple-primary, #6a47f9);

            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);

        }

        /* LARGURAS DINÂMICAS DO MOCKUP CONFORME O DISPOSITIVO */

        .phone-mockup {

            transition: max-width 240ms cubic-bezier(0.4, 0, 0.2, 1);

        }

        .phone-mockup.device-mobile {

            max-width: 340px;

            margin: 0 auto;

        }

        .phone-mockup.device-tablet {

            max-width: 520px;

            margin: 0 auto;

        }

        .phone-mockup.device-desktop {

            max-width: 760px;

            margin: 0 auto;

        }

        .phone-mockup.device-tablet .phone-header {
            height: 198px !important;
            min-height: 198px !important;
            flex: 0 0 198px !important;
        }

        .phone-mockup.device-tablet .phone-avatar {
            width: 86px !important;
            height: 86px !important;
            bottom: -84px !important;
        }

        .phone-mockup.device-tablet .phone-content {
            padding-top: 88px !important;
        }

        .phone-mockup.device-desktop .phone-header {
            height: 290px !important;
            min-height: 290px !important;
            flex: 0 0 290px !important;
        }

        .phone-mockup.device-desktop .phone-avatar {
            width: 96px !important;
            height: 96px !important;
            bottom: -94px !important;
        }

        .phone-mockup.device-desktop .phone-content {
            padding-top: 96px !important;
        }

        /* BOTÃO SELETOR DE ÍCONE NO FORMULÁRIO */

        .btn-link-icon-picker {

            width: 44px;

            height: 44px;

            border: 1px solid #d1d5db;

            background: #ffffff;

            border-radius: 8px;

            cursor: pointer;

            display: flex;

            align-items: center;

            justify-content: center;

            padding: 0;

            transition: border-color 150ms ease, transform 150ms ease;

        }

        .btn-link-icon-picker:hover {

            border-color: var(--purple-primary, #6a47f9);

            transform: scale(1.04);

        }

        .btn-link-icon-picker .link-icon-box {

            width: 36px;

            height: 36px;

            border-radius: 6px;

            display: flex;

            align-items: center;

            justify-content: center;

            color: var(--purple-primary);

            background: #faf5ff;

        }

        .btn-link-icon-picker .link-icon-box svg {

            width: 20px;

            height: 20px;

        }

        /* MODAL DA BIBLIOTECA DE ÍCONES */

        .icon-picker-modal-backdrop {

            position: fixed;

            inset: 0;

            background: rgba(15, 23, 42, 0.65);

            backdrop-filter: blur(4px);

            z-index: 9999;

            display: flex;

            align-items: center;

            justify-content: center;

            padding: 16px;

        }

        .icon-picker-modal-backdrop[hidden] {

            display: none !important;

        }

        .icon-picker-dialog {

            background: #ffffff;

            border-radius: 16px;

            width: 100%;

            max-width: 560px;

            box-shadow: 0 20px 40px rgba(0,0,0,0.24);

            overflow: hidden;

            display: flex;

            flex-direction: column;

            animation: modalFadeIn 200ms ease-out;

        }

        @keyframes modalFadeIn {

            from { opacity: 0; transform: scale(0.96); }

            to { opacity: 1; transform: scale(1); }

        }

        .icon-picker-header {

            display: flex;

            align-items: center;

            justify-content: space-between;

            padding: 18px 22px;

            border-bottom: 1px solid #f1f5f9;

        }

        .icon-picker-close-btn {

            background: none;

            border: none;

            font-size: 18px;

            cursor: pointer;

            color: #64748b;

            padding: 6px;

            border-radius: 6px;

            line-height: 1;

        }

        .icon-picker-close-btn:hover {

            color: #0f172a;

            background: #f1f5f9;

        }

        .icon-tab-btn {

            border: none;

            background: transparent;

            padding: 6px 12px;

            font-size: 12px;

            font-weight: 600;

            color: #64748b;

            border-radius: 6px;

            cursor: pointer;

            transition: all 120ms ease;

        }

        .icon-tab-btn:hover {

            color: #0f172a;

        }

        .icon-tab-btn.active {

            background: #ffffff;

            color: var(--purple-primary, #6a47f9);

            box-shadow: 0 1px 3px rgba(0,0,0,0.08);

        }

        .icon-card-btn {

            border: 1px solid #e2e8f0;

            background: #ffffff;

            border-radius: 10px;

            padding: 10px 6px;

            display: flex;

            flex-direction: column;

            align-items: center;

            justify-content: center;

            gap: 6px;

            cursor: pointer;

            transition: all 140ms ease;

        }

        .icon-card-btn:hover {

            border-color: var(--purple-primary, #6a47f9);

            transform: translateY(-2px);

            box-shadow: 0 4px 12px rgba(106, 71, 249, 0.12);

        }

        .icon-card-btn.selected {

            border-color: var(--purple-primary, #6a47f9);

            background: #faf5ff;

        }

        .icon-card-btn .icon-svg-wrapper {

            width: 28px;

            height: 28px;

            display: grid;

            place-items: center;

        }

        .icon-card-btn .icon-svg-wrapper svg {

            width: 24px;

            height: 24px;

        }

        .icon-card-btn .icon-card-name {

            font-size: 11px;

            color: #334155;

            font-weight: 600;

            text-align: center;

            white-space: nowrap;

            overflow: hidden;

            text-overflow: ellipsis;

            max-width: 100%;

        }

        .btn-picker-outline {

            border: 1px solid #cbd5e1;

            background: transparent;

            padding: 8px 14px;

            border-radius: 8px;

            font-size: 12px;

            font-weight: 600;

            color: #475569;

            cursor: pointer;

        }

        .btn-picker-outline:hover {

            background: #f1f5f9;

            color: #0f172a;

        }

        .btn-picker-primary {

            border: none;

            background: var(--purple-primary, #6a47f9);

            color: #ffffff;

            padding: 8px 18px;

            border-radius: 8px;

            font-size: 12px;

            font-weight: 700;

            cursor: pointer;

        }

        .btn-picker-primary:hover {

            opacity: 0.92;

        }

        /* ==========================================================================

           CONTÊINER #phone-links E AS 4 FORMAS DE ORGANIZAÇÃO

           ========================================================================== */

        #phone-links {

            width: 100%;

            box-sizing: border-box;

        }

        /* 1. Coluna — largura total */

        .phone-screen[data-link-layout="list"] #phone-links,

        #phone-links {

            display: flex;

            flex-direction: column;

            gap: 12px;

        }

        .phone-screen[data-link-layout="list"] #phone-links .phone-link {

            width: 100%;

            margin-bottom: 0;

        }

        /* 2. Grade compacta */

        .phone-screen[data-link-layout="grid-compact"] #phone-links,

        .phone-screen[data-link-layout="grid"] #phone-links {

            display: grid;

            grid-template-columns: repeat(2, minmax(0, 1fr));

            gap: 10px;

        }

        .phone-mockup.device-desktop .phone-screen[data-link-layout="grid-compact"] #phone-links,

        .phone-mockup.device-desktop .phone-screen[data-link-layout="grid"] #phone-links {

            grid-template-columns: repeat(3, minmax(0, 1fr));

        }

        .phone-screen[data-link-layout="grid-compact"] #phone-links .phone-link,

        .phone-screen[data-link-layout="grid"] #phone-links .phone-link {

            margin-bottom: 0;

            height: 100%;

        }

        /* 3. Grade de cartões */

        .phone-screen[data-link-layout="cards"] #phone-links {

            display: grid;

            grid-template-columns: repeat(2, minmax(0, 1fr));

            gap: 12px;

        }

        .phone-screen[data-link-layout="cards"] #phone-links .phone-link {

            margin-bottom: 0;

            height: 100%;

        }

        /* 4. Linha horizontal */

        .phone-screen[data-link-layout="horizontal"] #phone-links {

            display: flex !important;

            flex-direction: row !important;

            flex-wrap: wrap !important;

            justify-content: center !important;

            align-items: stretch !important;

            gap: 10px !important;

        }

        .phone-mockup.device-desktop .phone-screen[data-link-layout="horizontal"] #phone-links .phone-link {

            flex: 1 1 calc(33.333% - 10px) !important;

        }

        .phone-screen[data-link-layout="horizontal"] #phone-links .phone-link {

            flex: 1 1 calc(50% - 10px) !important;

            min-width: 0 !important;

            max-width: 100% !important;

            margin-bottom: 0 !important;

        }

        .phone-screen[data-link-layout="horizontal"] #phone-links .phone-link-arrow {

            display: none !important;

        }

        /* Somente ícones (compatibilidade legada) */

        .phone-screen[data-link-layout="icons"] #phone-links {

            display: flex;

            flex-direction: row;

            flex-wrap: wrap;

            justify-content: center;

            align-items: center;

            gap: 12px;

        }

        .phone-screen[data-link-layout="icons"] #phone-links .phone-link {

            width: 52px;

            height: 52px;

            justify-content: center;

            padding: 8px;

            margin-bottom: 0;

        }

        .phone-screen[data-link-layout="icons"] #phone-links .phone-link-text,

        .phone-screen[data-link-layout="icons"] #phone-links .phone-link-arrow {

            display: none !important;

        }

        /* ==========================================================================

           ESTRUTURA BASE DO BOTÃO .phone-link

           ========================================================================== */

        #phone-links .phone-link {

            box-sizing: border-box;

            text-decoration: none;

            position: relative;

            display: flex;

            align-items: center;

            gap: 12px;

            padding: 12px 16px;

            min-height: 54px;

            color: inherit;

            background-color: var(--preview-button-color, #ffffff);

            border: 1px solid rgba(0,0,0,0.06);

            border-radius: 12px;

            box-shadow: 0 2px 8px rgba(0,0,0,0.04);

            transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;

            min-width: 0;

            overflow-wrap: break-word;

            word-break: break-word;

            outline: none;

        }

        #phone-links .phone-link:hover {

            transform: translateY(-2px);

            box-shadow: 0 6px 16px rgba(0,0,0,0.09);

        }

        #phone-links .phone-link:active {

            transform: translateY(0);

        }

        #phone-links .phone-link:focus-visible {

            outline: 2px solid var(--purple-primary, #6a47f9);

            outline-offset: 2px;

        }

        #phone-links .phone-link-placeholder {

            justify-content: center;

            border: 1px dashed #9ca3af;

            background: rgba(255, 255, 255, 0.7);

            color: #6b7280;

            font-size: 11px;

            text-align: center;

            box-shadow: none;

        }

        /* ÍCONE */

        #phone-links .phone-link-icon {

            position: relative;

            flex: 0 0 34px;

            width: 34px;

            height: 34px;

            border-radius: 8px;

            display: flex;

            align-items: center;

            justify-content: center;

            background-color: var(--purple-primary);

            color: #ffffff;

            background-position: center top;

            background-repeat: no-repeat;

            background-size: cover;

            overflow: hidden;

            flex-shrink: 0;

        }

        #phone-links .phone-link-icon svg {

            width: 18px;

            height: 18px;

            display: block;

        }

        /* TEXTOS */

        #phone-links .phone-link-text {

            flex: 1;

            min-width: 0;

            display: flex;

            flex-direction: column;

            text-align: left;

        }

        #phone-links .phone-link-text strong {

            display: block;

            font-size: 13px;

            line-height: 1.3;

            color: inherit;

            margin-bottom: 2px;

            font-weight: 700;

            overflow-wrap: break-word;

            word-break: break-word;

        }

        #phone-links .phone-link-text span {

            font-size: 10.5px;

            color: inherit;

            opacity: 0.78;

            line-height: 1.35;

            overflow-wrap: break-word;

            word-break: break-word;

        }

        #phone-links .phone-link-arrow {

            color: inherit;

            opacity: 0.6;

            font-size: 15px;

            font-weight: 700;

            margin-left: auto;

            flex-shrink: 0;

        }

        /* ==========================================================================

           5 MODELOS VISUAIS DOS BOTÕES

           ========================================================================== */

        /* MODELO 1: MODERNO (PADRÃO RECOMENDADO) */

        .phone-screen[data-button-style="modern"] #phone-links .phone-link {

            background-color: var(--preview-button-color, #ffffff);

            color: var(--preview-button-text-color, #1f2937);

            border: 1px solid rgba(0, 0, 0, 0.08);

            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

        }

        .phone-screen[data-button-style="modern"] #phone-links .phone-link:hover {

            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);

        }

        /* MODELO 2: MINIMALISTA */

        .phone-screen[data-button-style="minimal"] #phone-links .phone-link {

            background: transparent !important;

            border: 1px solid rgba(0, 0, 0, 0.18) !important;

            color: var(--preview-button-color, #1e293b) !important;

            box-shadow: none !important;

        }

        .phone-screen[data-button-style="minimal"] #phone-links .phone-link:hover {

            background: rgba(0, 0, 0, 0.04) !important;

            border-color: rgba(0, 0, 0, 0.35) !important;

        }

        /* MODELO 3: PREENCHIDO */

        .phone-screen[data-button-style="solid"] #phone-links .phone-link {

            background-color: var(--preview-button-color, #6a47f9) !important;

            color: var(--preview-button-text-color, #ffffff) !important;

            border: 1px solid transparent !important;

            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16) !important;

        }

        .phone-screen[data-button-style="solid"] #phone-links .phone-link:hover {

            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22) !important;

        }

        /* MODELO 4: GRADE COMPACTA */

        .phone-screen[data-button-style="compact-grid"] #phone-links .phone-link {

            flex-direction: column !important;

            align-items: center !important;

            justify-content: center !important;

            text-align: center !important;

            padding: 12px 8px !important;

            gap: 8px !important;

        }

        .phone-screen[data-button-style="compact-grid"] #phone-links .phone-link-text {

            text-align: center !important;

            width: 100% !important;

        }

        .phone-screen[data-button-style="compact-grid"] #phone-links .phone-link-arrow {

            display: none !important;

        }

        /* MODELO 5: ÍCONES CIRCULARES */

        .phone-screen[data-button-style="circular-icons"] #phone-links {

            display: flex !important;

            flex-direction: row !important;

            flex-wrap: wrap !important;

            justify-content: center !important;

            gap: 14px !important;

        }

        .phone-screen[data-button-style="circular-icons"] #phone-links .phone-link {

            flex-direction: column !important;

            align-items: center !important;

            justify-content: center !important;

            width: 78px !important;

            min-height: auto !important;

            padding: 6px !important;

            background: transparent !important;

            border: none !important;

            box-shadow: none !important;

        }

        .phone-screen[data-button-style="circular-icons"] #phone-links .phone-link-icon {

            width: 48px !important;

            height: 48px !important;

            border-radius: 50% !important;

            margin: 0 auto 4px !important;

            box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;

        }

        .phone-screen[data-button-style="circular-icons"] #phone-links .phone-link-text {

            text-align: center !important;

        }

        .phone-screen[data-button-style="circular-icons"] #phone-links .phone-link-text strong {

            font-size: 11px !important;

            white-space: nowrap !important;

            overflow: hidden !important;

            text-overflow: ellipsis !important;

            max-width: 72px !important;

        }

        .phone-screen[data-button-style="circular-icons"] #phone-links .phone-link-text span,

        .phone-screen[data-button-style="circular-icons"] #phone-links .phone-link-arrow {

            display: none !important;

        }

        /* ESTILOS LEGADOS: VIDRO E CONTORNO */

        .phone-screen[data-button-style="glass"] #phone-links .phone-link {

            background-color: var(--preview-button-glass, rgba(106, 71, 249, 0.3)) !important;

            color: var(--preview-button-text-color, #ffffff) !important;

            backdrop-filter: blur(10px) !important;

            -webkit-backdrop-filter: blur(10px) !important;

            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42), 0 3px 12px rgba(31, 41, 55, 0.12) !important;

        }

        .phone-screen[data-button-style="outline"] #phone-links .phone-link {

            background: transparent !important;

            border: 1.5px solid var(--preview-button-color, #6a47f9) !important;

            color: var(--preview-button-color, #6a47f9) !important;

            box-shadow: none !important;

        }

        /* ==========================================================================

           PERSONALIZAÇÃO DOS CANTOS (STRAIGHT, SOFT, PILL)

           ========================================================================== */

        .phone-screen[data-button-radius="straight"] #phone-links .phone-link {

            border-radius: 0px !important;

        }

        .phone-screen[data-button-radius="soft"] #phone-links .phone-link {

            border-radius: 12px !important;

        }

        .phone-screen[data-button-radius="pill"] #phone-links .phone-link {

            border-radius: 999px !important;

        }

        /* ==========================================================================

           TAMANHOS DOS BOTÕES (COMPACT, MEDIUM, LARGE)

           ========================================================================== */

        .phone-screen[data-button-size="compact"] #phone-links .phone-link {

            min-height: 42px;

            padding: 8px 12px;

            gap: 8px;

        }

        .phone-screen[data-button-size="compact"] #phone-links .phone-link-icon {

            flex: 0 0 28px;

            width: 28px;

            height: 28px;

            border-radius: 6px;

        }

        .phone-screen[data-button-size="compact"] #phone-links .phone-link-text strong {

            font-size: 11.5px;

        }

        .phone-screen[data-button-size="compact"] #phone-links .phone-link-text span {

            font-size: 9.5px;

        }

        .phone-screen[data-button-size="medium"] #phone-links .phone-link {

            min-height: 52px;

            padding: 12px 16px;

            gap: 12px;

        }

        .phone-screen[data-button-size="large"] #phone-links .phone-link {

            min-height: 64px;

            padding: 16px 20px;

            gap: 14px;

        }

        .phone-screen[data-button-size="large"] #phone-links .phone-link-icon {

            flex: 0 0 40px;

            width: 40px;

            height: 40px;

            border-radius: 10px;

        }

        .phone-screen[data-button-size="large"] #phone-links .phone-link-text strong {

            font-size: 14.5px;

        }

        .phone-screen[data-button-size="large"] #phone-links .phone-link-text span {

            font-size: 11.5px;

        }

        /* ==========================================================================

           POSIÇÃO DO ÍCONE (LEFT, TOP, CENTER)

           ========================================================================== */

        .phone-screen[data-icon-pos="top"] #phone-links .phone-link {

            flex-direction: column !important;

            align-items: center !important;

            text-align: center !important;

            gap: 8px !important;

        }

        .phone-screen[data-icon-pos="top"] #phone-links .phone-link-text {

            text-align: center !important;

        }

        .phone-screen[data-icon-pos="top"] #phone-links .phone-link-arrow {

            display: none !important;

        }

        .phone-screen[data-icon-pos="center"] #phone-links .phone-link {

            justify-content: center !important;

            text-align: center !important;

        }

        .phone-screen[data-icon-pos="center"] #phone-links .phone-link-text {

            flex: initial !important;

            text-align: center !important;

        }

        .phone-screen[data-icon-pos="center"] #phone-links .phone-link-arrow {

            display: none !important;

        }

        /* ==========================================================================

           HIERARQUIA VISUAL

           ========================================================================== */

        #phone-links .phone-link.is-primary {

            background-color: var(--preview-button-color, #6a47f9) !important;

            color: var(--preview-button-text-color, #ffffff) !important;

            box-shadow: 0 4px 16px rgba(106, 71, 249, 0.28) !important;

            font-weight: 800 !important;

        }

        #phone-links .phone-link.is-secondary {

            background-color: rgba(243, 244, 246, 0.8) !important;

            border: 1px solid rgba(0, 0, 0, 0.08) !important;

            color: #4b5563 !important;

            box-shadow: none !important;

        }

        /* ANIMAÇÕES */

        .animation-pulse .phone-link-icon {

            animation: link-pulse 1.4s ease-in-out infinite;

        }

        .animation-pop .phone-link-icon {

            animation: link-pop 1.2s ease-in-out infinite;

        }

        .animation-orbital .phone-link-icon {

            outline: none;

        }

        .animation-orbital .phone-link-icon::after {

            content: "";

            position: absolute;

            inset: -5px;

            border: 1px dashed currentColor;

            border-radius: 12px;

            animation: link-orbit 2.4s linear infinite;

        }

        .animation-sparkle .phone-link-icon {

            animation: link-sparkle 1.3s ease-in-out infinite;

        }

        /* ACESSIBILIDADE */

        @media (prefers-reduced-motion: reduce) {

            #phone-links .phone-link,

            .device-btn,

            .phone-mockup,

            .animation-pulse .phone-link-icon,

            .animation-pop .phone-link-icon,

            .animation-orbital .phone-link-icon::after,

            .animation-sparkle .phone-link-icon {

                transition: none !important;

                transform: none !important;

                animation: none !important;

            }

        }

        #preview-map {

            color: inherit;

            text-decoration: none;

        }

        #preview-map[aria-disabled="true"] {

            opacity: 0.55;

            pointer-events: none;

        }

        @keyframes link-pulse {

            50% { opacity: 0.55; }

        }

        @keyframes link-pop {

            50% { transform: scale(1.12); }

        }

        @keyframes link-orbit {

            to { transform: rotate(360deg); }

        }

        @keyframes link-sparkle {

            50% { filter: brightness(1.45); box-shadow: 0 0 12px rgba(106, 71, 249, 0.7); }

        }

        @media (max-width: 1100px) {

            .editor-layout {

                flex-direction: column;

                padding: 24px 20px 60px 20px;

                gap: 24px;

            }

            .preview-container {

                position: static;

                width: 320px;

                max-width: 100%;

                margin: 0 auto 32px;

            }

            .main-wrapper {

                min-width: 0;

            }

            .main-content {

                max-width: 100%;

                padding: 0;

                width: 100%;

            }

        }

        @media (max-height: 760px) and (min-width: 1101px) {

            .preview-container {

                top: 12px;

            }

            .preview-label {

                margin-bottom: 8px;

                padding: 4px 12px;

            }

            .phone-mockup {

                height: calc(100vh - 80px);

                min-height: 500px;

                max-height: 650px;

            }

        }

        @media (max-width: 760px) {

            body {

                display: block;

            }

            .sidebar {

                position: static;

                width: 100%;

                height: auto;

                padding: 16px;

            }

            .brand {

                margin-bottom: 16px;

            }

            .nav-menu {

                flex-direction: row;

                flex-wrap: wrap;

            }

            .nav-item {

                padding: 8px;

                font-size: 12px;

            }

            .main-wrapper {

                margin-left: 0;

            }

            .top-header {

                padding: 16px;

            }

            .editor-layout {

                padding: 16px;

                gap: 20px;

            }

            .main-content {

                padding: 0;

            }

            .input-row,

            .grid-3 {

                grid-template-columns: 1fr;

                flex-direction: column;

                align-items: stretch;

            }

            .input-row .form-group {

                width: 100%;

            }

            .editor-actions {

                align-items: stretch;

            }

            .editor-actions p {

                flex-basis: 100%;

            }

            .preview-container {

                max-width: calc(100% - 32px);

            }

        }

/* ==========================================================================

   ESTILOS PREMIUM SAAS: SEÇÃO 7 & MOCKUP

   ========================================================================== */

.form-section-header {

    display: flex;

    justify-content: space-between;

    align-items: baseline;

    margin-bottom: 10px;

}

.form-section-header label {

    font-size: 13.5px;

    font-weight: 700;

    color: #0f172a;

    margin: 0;

}

.section-hint {

    font-size: 11.5px;

    color: #64748b;

}

/* 1. CARDS ILUSTRADOS DOS MODELOS VISUAIS */

.models-grid {

    display: grid !important;

    grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)) !important;

    gap: 12px !important;

    margin-bottom: 20px !important;

}

.models-grid .style-option {

    position: relative;

    background: #ffffff;

    border: 1.5px solid #e2e8f0;

    border-radius: 14px;

    padding: 12px 10px 14px;

    cursor: pointer;

    text-align: center;

    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);

    display: flex;

    flex-direction: column;

    align-items: center;

    box-shadow: 0 1px 3px rgba(0,0,0,0.02);

}

.models-grid .style-option:hover {

    border-color: #cbd5e1;

    transform: translateY(-2px);

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);

}

.models-grid .style-option.active {

    border-color: #6a47f9 !important;

    background: #fbfaff !important;

    box-shadow: 0 0 0 3px rgba(106, 71, 249, 0.14), 0 8px 20px rgba(106, 71, 249, 0.08) !important;

}

.models-grid .style-option::after {

    display: none !important; /* Remove bolinha feia anterior */

}

.model-badge {

    position: absolute;

    top: 8px;

    right: 8px;

    font-size: 9px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.4px;

    padding: 2px 6px;

    border-radius: 999px;

    background: #f1f5f9;

    color: #475569;

}

.style-option.active .model-badge {

    background: #6a47f9;

    color: #ffffff;

}

.model-badge.solid-badge {

    background: #ede9fe;

    color: #6a47f9;

}

/* PALCO DO MICRO-PREVIEW ILUSTRADO */

.model-canvas {

    width: 100%;

    height: 64px;

    background: #f8fafc;

    border-radius: 10px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 10px;

    border: 1px solid #f1f5f9;

    overflow: hidden;

    padding: 6px;

    box-sizing: border-box;

}

.style-option.active .model-canvas {

    background: #f5f3ff;

    border-color: #ede9fe;

}

/* MICRO ELEMENTOS */

.micro-btn {

    width: 90%;

    height: 34px;

    border-radius: 8px;

    display: flex;

    align-items: center;

    gap: 6px;

    padding: 0 8px;

    box-sizing: border-box;

}

/* Moderno Micro */

.modern-micro {

    background: #ffffff;

    border: 1px solid #e2e8f0;

    box-shadow: 0 2px 6px rgba(0,0,0,0.04);

}

.micro-icon {

    width: 18px;

    height: 18px;

    border-radius: 5px;

    background: #6a47f9;

    flex-shrink: 0;

}

.micro-lines {

    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 3px;

}

.line-title {

    width: 60%;

    height: 5px;

    background: #334155;

    border-radius: 3px;

}

.line-title.white {

    background: #ffffff;

}

.line-sub {

    width: 40%;

    height: 3px;

    background: #cbd5e1;

    border-radius: 2px;

}

.micro-arrow {

    font-size: 13px;

    color: #94a3b8;

    line-height: 1;

}

/* Minimalista Micro */

.minimal-micro {

    background: transparent;

    border: 1px solid #94a3b8;

}

.minimal-icon {

    background: #475569;

}

/* Preenchido Micro */

.solid-micro {

    background: linear-gradient(135deg, #6a47f9 0%, #4f46e5 100%);

    box-shadow: 0 3px 8px rgba(99, 102, 241, 0.3);

}

.solid-icon {

    background: rgba(255, 255, 255, 0.25);

}

/* Grade Compacta Micro */

.micro-grid-pair {

    display: flex;

    gap: 6px;

    width: 90%;

    justify-content: center;

}

.micro-card {

    flex: 1;

    height: 44px;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 7px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 4px;

    box-shadow: 0 2px 4px rgba(0,0,0,0.03);

}

.micro-icon-top {

    width: 16px;

    height: 16px;

    border-radius: 4px;

    background: #6a47f9;

}

.line-micro {

    width: 70%;

    height: 4px;

    background: #64748b;

    border-radius: 2px;

}

/* Ícones Circulares Micro */

.micro-circles-row {

    display: flex;

    gap: 8px;

    align-items: center;

    justify-content: center;

}

.micro-circle-item {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 3px;

}

.circle-badge {

    width: 24px;

    height: 24px;

    border-radius: 50%;

    background: #6a47f9;

    box-shadow: 0 2px 5px rgba(106, 71, 249, 0.25);

}

.circle-dot {

    width: 12px;

    height: 3px;

    border-radius: 2px;

    background: #94a3b8;

}

.models-grid .style-name {

    font-size: 13px;

    font-weight: 700;

    color: #1e293b;

    margin-bottom: 2px;

    text-align: center;

}

.models-grid .style-desc {

    font-size: 10.5px;

    color: #64748b;

    line-height: 1.25;

    text-align: center;

}

/* 2. SEGMENTED CONTROLS (ESTILO APPLE / LINEAR / STRIPE) */

.segmented-control {

    background: #f1f5f9;

    padding: 4px;

    border-radius: 12px;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 4px;

    border: 1px solid #e2e8f0;

}

.segmented-control .style-option {

    position: relative;

    background: transparent;

    border: none;

    border-radius: 9px;

    padding: 10px 12px;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    color: #64748b;

    font-size: 12.5px;

    font-weight: 600;

    transition: all 0.18s ease;

    user-select: none;

}

.segmented-control .style-option::after {

    display: none !important;

}

.segmented-control .style-option:hover {

    color: #1e293b;

    background: rgba(255, 255, 255, 0.5);

}

.segmented-control .style-option.active {

    background: #ffffff !important;

    color: #0f172a !important;

    font-weight: 700;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);

}

.segment-label {

    line-height: 1;

}

.segment-sub {

    font-size: 10.5px;

    color: #94a3b8;

    font-weight: 500;

}

.style-option.active .segment-sub {

    color: #6a47f9;

}

/* Ícones de Formas */

.shape-icon {

    display: inline-block;

    width: 14px;

    height: 14px;

    border: 2px solid currentColor;

}

.shape-straight { border-radius: 0px; }

.shape-soft { border-radius: 4px; }

.shape-pill { border-radius: 999px; }

/* Indicadores de Tamanho */

.size-indicator {

    display: inline-block;

    background: currentColor;

    border-radius: 2px;

}

.size-s { width: 10px; height: 10px; }

.size-m { width: 12px; height: 14px; }

.size-l { width: 14px; height: 18px; }

/* 3. CARDS DE CORES DOS ÍCONES */

.color-mode-cards {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 10px;

}

.color-mode-cards .style-option {

    position: relative;

    background: #ffffff;

    border: 1.5px solid #e2e8f0;

    border-radius: 12px;

    padding: 12px 14px;

    display: flex;

    align-items: center;

    gap: 12px;

    cursor: pointer;

    transition: all 0.2s ease;

}

.color-mode-cards .style-option::after {

    display: none !important;

}

.color-mode-cards .style-option:hover {

    border-color: #cbd5e1;

    transform: translateY(-1px);

}

.color-mode-cards .style-option.active {

    border-color: #6a47f9;

    background: #faf8ff;

    box-shadow: 0 0 0 3px rgba(106, 71, 249, 0.12);

}

.color-mode-badge {

    width: 36px;

    height: 36px;

    border-radius: 10px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

}

.store-badge {

    background: #ede9fe;

}

.store-badge .badge-ring {

    width: 16px;

    height: 16px;

    border-radius: 50%;

    background: #6a47f9;

    box-shadow: 0 0 0 3px #ffffff, 0 0 0 4px #6a47f9;

}

.official-badge {

    background: #fef2f2;

    gap: 3px;

}

.dot-brand {

    width: 8px;

    height: 8px;

    border-radius: 50%;

}

.dot-ig { background: #e4405f; }

.dot-wa { background: #25d366; }

.dot-yt { background: #ff0000; }

.custom-badge {

    background: #f0fdf4;

    font-size: 16px;

}

.color-mode-info {

    display: flex;

    flex-direction: column;

    text-align: left;

}

.color-mode-info strong {

    font-size: 13px;

    color: #0f172a;

    font-weight: 700;

}

.color-mode-info span {

    font-size: 11px;

    color: #64748b;

}

/* PAINEL DE CORES PERSONALIZADAS */

.saas-custom-color-panel {

    margin-top: 14px;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 14px;

    padding: 14px 18px;

    box-shadow: 0 4px 12px rgba(0,0,0,0.03);

}

.panel-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 12px;

}

.panel-title strong {

    display: block;

    font-size: 13px;

    color: #0f172a;

}

.panel-title span {

    font-size: 11px;

    color: #64748b;

}

.saas-hex-badge {

    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    font-size: 12px;

    font-weight: 700;

    color: #4338ca;

    background: #eef2ff;

    padding: 3px 8px;

    border-radius: 6px;

    border: 1px solid #c7d2fe;

}

.panel-palette-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 16px;

    flex-wrap: wrap;

}

.preset-swatches {

    display: flex;

    align-items: center;

    gap: 8px;

}

.swatch-btn {

    width: 28px;

    height: 28px;

    border-radius: 50%;

    border: 2px solid #ffffff;

    box-shadow: 0 1px 4px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.08);

    cursor: pointer;

    transition: transform 0.15s ease, box-shadow 0.15s ease;

}

.swatch-btn:hover {

    transform: scale(1.18);

    box-shadow: 0 4px 8px rgba(0,0,0,0.22);

}

.custom-picker-box {

    display: flex;

    align-items: center;

    gap: 8px;

}

.saas-color-input {

    width: 32px;

    height: 32px;

    padding: 0;

    border: none;

    border-radius: 8px;

    cursor: pointer;

    background: transparent;

}

.picker-label {

    font-size: 12px;

    font-weight: 600;

    color: #475569;

    cursor: pointer;

}

/* 4. REFINAMENTO DO MOCKUP (IPHONE LUXURY FRAME) */

.phone-mockup {

    border-radius: 46px !important;

    border: 8px solid #0f172a !important;

    padding: 8px !important;

    background-color: #0f172a !important;

    box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.12) !important;

}

.phone-screen {

    border-radius: 36px !important;

}

/* Dynamic Island */

.phone-notch {

    width: 82px !important;

    height: 20px !important;

    background-color: #0f172a !important;

    border-radius: 20px !important;

    top: 9px !important;

}

/* Legibilidade perfeita com sombra de texto */

.phone-content h2 {

    text-shadow: 0 1px 3px rgba(0,0,0,0.45);

}

.phone-content p {

    text-shadow: 0 1px 2px rgba(0,0,0,0.35);

}

/* Harmonização dos cantos dos blocos inferiores */

.phone-screen[data-button-radius="straight"] .phone-link,

.phone-screen[data-button-radius="straight"] .phone-split-box,

.phone-screen[data-button-radius="straight"] .phone-info-card {

    border-radius: 0px !important;

}

.phone-screen[data-button-radius="soft"] .phone-link,

.phone-screen[data-button-radius="soft"] .phone-split-box,

.phone-screen[data-button-radius="soft"] .phone-info-card {

    border-radius: 12px !important;

}

.phone-screen[data-button-radius="pill"] .phone-link,

.phone-screen[data-button-radius="pill"] .phone-split-box,

.phone-screen[data-button-radius="pill"] .phone-info-card {

    border-radius: 999px !important;

}

/* Acabamento Luxury para Botões Sólidos */

.phone-screen[data-button-style="solid"] #phone-links .phone-link {

    border: 1px solid rgba(255, 255, 255, 0.14) !important;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 4px 14px rgba(0, 0, 0, 0.18) !important;

}

/* ==========================================================================

   CORREÇÃO CRÍTICA: TEXTOS NUNCA QUEBRAM EM LETRAS VERTICAIS (SAAS PRO)

   ========================================================================== */

#phone-links .phone-link-text {

    flex: 1;

    min-width: 0 !important;

    overflow: hidden !important;

}

#phone-links .phone-link-text strong {

    display: block !important;

    font-size: 13px !important;

    line-height: 1.35 !important;

    color: inherit !important;

    margin-bottom: 2px !important;

    font-weight: 700 !important;

    white-space: nowrap !important;

    overflow: hidden !important;

    text-overflow: ellipsis !important;

    max-width: 100% !important;

    word-break: normal !important;

    overflow-wrap: normal !important;

}

#phone-links .phone-link-text span {

    display: block !important;

    font-size: 10.5px !important;

    color: inherit !important;

    opacity: 0.78 !important;

    line-height: 1.3 !important;

    white-space: nowrap !important;

    overflow: hidden !important;

    text-overflow: ellipsis !important;

    max-width: 100% !important;

    word-break: normal !important;

    overflow-wrap: normal !important;

}

/* ==========================================================================

   GRAPES / GRADES COMPACTAS RESPONSIVAS SEM DEFORMAÇÃO

   ========================================================================== */

.phone-screen[data-link-layout="grid-compact"] #phone-links,

.phone-screen[data-link-layout="grid"] #phone-links {

    display: grid !important;

    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

    gap: 10px !important;

    align-items: stretch !important;

}

.phone-mockup.device-desktop .phone-screen[data-link-layout="grid-compact"] #phone-links,

.phone-mockup.device-desktop .phone-screen[data-link-layout="grid"] #phone-links {

    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

}

.phone-screen[data-link-layout="grid-compact"] #phone-links .phone-link,

.phone-screen[data-link-layout="grid"] #phone-links .phone-link {

    flex-direction: column !important;

    align-items: center !important;

    justify-content: center !important;

    text-align: center !important;

    padding: 12px 8px !important;

    min-height: 74px !important;

    margin-bottom: 0 !important;

    height: 100% !important;

    gap: 8px !important;

}

.phone-screen[data-link-layout="grid-compact"] #phone-links .phone-link-text,

.phone-screen[data-link-layout="grid"] #phone-links .phone-link-text {

    text-align: center !important;

    width: 100% !important;

    min-width: 0 !important;

}

.phone-screen[data-link-layout="grid-compact"] #phone-links .phone-link-arrow,

.phone-screen[data-link-layout="grid"] #phone-links .phone-link-arrow {

    display: none !important;

}

/* GRADE DE CARTÕES (CARDS) */

.phone-screen[data-link-layout="cards"] #phone-links {

    display: grid !important;

    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

    gap: 10px !important;

    align-items: stretch !important;

}

.phone-screen[data-link-layout="cards"] #phone-links .phone-link {

    padding: 10px 10px !important;

    gap: 8px !important;

    min-height: 52px !important;

    margin-bottom: 0 !important;

    height: 100% !important;

}

.phone-screen[data-link-layout="cards"] #phone-links .phone-link-arrow {

    display: none !important;

}

/* MODELO 4: GRADE COMPACTA (SE ESCOLHIDO COMO MODELO VISUAL) */

.phone-screen[data-button-style="compact-grid"] #phone-links {

    display: grid !important;

    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

    gap: 10px !important;

    align-items: stretch !important;

}

.phone-mockup.device-desktop .phone-screen[data-button-style="compact-grid"] #phone-links {

    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

}

.phone-screen[data-button-style="compact-grid"] #phone-links .phone-link {

    flex-direction: column !important;

    align-items: center !important;

    justify-content: center !important;

    text-align: center !important;

    padding: 14px 8px !important;

    min-height: 76px !important;

    margin-bottom: 0 !important;

    height: 100% !important;

    gap: 8px !important;

}

.phone-screen[data-button-style="compact-grid"] #phone-links .phone-link-text {

    text-align: center !important;

    width: 100% !important;

    min-width: 0 !important;

}

.phone-screen[data-button-style="compact-grid"] #phone-links .phone-link-arrow {

    display: none !important;

}

/* MODELO 5: ÍCONES CIRCULARES */

.phone-screen[data-button-style="circular-icons"] #phone-links {

    display: flex !important;

    flex-direction: row !important;

    flex-wrap: wrap !important;

    justify-content: center !important;

    align-items: flex-start !important;

    gap: 16px 14px !important;

    padding: 6px 0 !important;

}

.phone-screen[data-button-style="circular-icons"] #phone-links .phone-link {

    flex-direction: column !important;

    align-items: center !important;

    justify-content: center !important;

    width: 74px !important;

    min-width: 74px !important;

    max-width: 82px !important;

    min-height: auto !important;

    padding: 4px !important;

    background: transparent !important;

    border: none !important;

    box-shadow: none !important;

}

.phone-screen[data-button-style="circular-icons"] #phone-links .phone-link-icon {

    width: 48px !important;

    height: 48px !important;

    border-radius: 50% !important;

    margin: 0 auto 6px !important;

    box-shadow: 0 4px 14px rgba(0,0,0,0.15) !important;

    flex-shrink: 0 !important;

}

.phone-screen[data-button-style="circular-icons"] #phone-links .phone-link-text {

    text-align: center !important;

    width: 100% !important;

}

.phone-screen[data-button-style="circular-icons"] #phone-links .phone-link-text strong {

    font-size: 11px !important;

    font-weight: 600 !important;

    white-space: nowrap !important;

    overflow: hidden !important;

    text-overflow: ellipsis !important;

    color: inherit !important;

    max-width: 100% !important;

}

.phone-screen[data-button-style="circular-icons"] #phone-links .phone-link-text span,

.phone-screen[data-button-style="circular-icons"] #phone-links .phone-link-arrow {

    display: none !important;

}

/* MODELO 1: MODERNO (PADRÃO) */

.phone-screen[data-button-style="modern"] #phone-links .phone-link {

    background-color: var(--preview-button-color, #ffffff) !important;

    color: var(--preview-button-text-color, #1f2937) !important;

    border: 1px solid rgba(0, 0, 0, 0.08) !important;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;

}

/* MODELO 2: MINIMALISTA */

.phone-screen[data-button-style="minimal"] #phone-links .phone-link {

    background: rgba(255, 255, 255, 0.12) !important;

    backdrop-filter: blur(8px) !important;

    -webkit-backdrop-filter: blur(8px) !important;

    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;

    color: #ffffff !important;

    box-shadow: none !important;

}

.phone-screen[data-button-style="minimal"] #phone-links .phone-link strong {

    color: #ffffff !important;

}

/* MODELO 3: PREENCHIDO (SOLID) */

.phone-screen[data-button-style="solid"] #phone-links .phone-link {

    background-color: var(--preview-button-color, #000000) !important;

    color: var(--preview-button-text-color, #ffffff) !important;

    border: 1px solid rgba(255, 255, 255, 0.15) !important;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 4px 14px rgba(0, 0, 0, 0.22) !important;

}

.phone-screen[data-button-style="solid"] #phone-links .phone-link strong {

    color: var(--preview-button-text-color, #ffffff) !important;

}

/* ==========================================================================

   ESTILO SAAS LUXURY: BLOCOS INFORMATIVOS EM VIDRO FOSCO (GLASSMORPHISM)

   ========================================================================== */

.phone-info-card {

    background: rgba(255, 255, 255, 0.16) !important;

    backdrop-filter: blur(16px) !important;

    -webkit-backdrop-filter: blur(16px) !important;

    border: 1px solid rgba(255, 255, 255, 0.28) !important;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;

    color: #ffffff !important;

    padding: 10px 14px !important;

    display: flex !important;

    align-items: center !important;

    gap: 10px !important;

    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;

    text-align: left !important;

    box-sizing: border-box !important;

}

.phone-info-card:hover {

    background: rgba(255, 255, 255, 0.24) !important;

    border-color: rgba(255, 255, 255, 0.45) !important;

    transform: translateY(-1px) !important;

}

.phone-info-card strong {

    color: #ffffff !important;

    font-weight: 700 !important;

    font-size: 12px !important;

    line-height: 1.3 !important;

    display: block !important;

}

.phone-info-card span {

    color: rgba(255, 255, 255, 0.82) !important;

    font-size: 10px !important;

    line-height: 1.3 !important;

    display: block !important;

}

.phone-info-icon {

    width: 32px !important;

    height: 32px !important;

    border-radius: 8px !important;

    background: rgba(255, 255, 255, 0.2) !important;

    color: #ffffff !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    flex-shrink: 0 !important;

}

.phone-info-icon svg {

    display: block !important;

    width: 17px !important;

    height: 17px !important;

}

.phone-split-row {

    display: grid !important;

    grid-template-columns: 1fr 1fr;

    gap: 10px !important;

    margin-top: 10px !important;

    margin-bottom: 10px !important;

    width: 100% !important;

}

.phone-split-box {

    margin-bottom: 0 !important;

    border: none !important;

    border-left: none !important;

}

/* Quando não houver vídeo/imagem de fundo (fundo claro nativo) */

.phone-screen:not(:has(.phone-background-video)):not(:has(.phone-header img)) .phone-info-card {

    background: rgba(255, 255, 255, 0.85) !important;

    border: 1px solid rgba(0, 0, 0, 0.08) !important;

    color: #1e293b !important;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;

}

.phone-screen:not(:has(.phone-background-video)):not(:has(.phone-header img)) .phone-info-card strong {

    color: #0f172a !important;

}

.phone-screen:not(:has(.phone-background-video)):not(:has(.phone-header img)) .phone-info-card span {

    color: #64748b !important;

}

.phone-screen:not(:has(.phone-background-video)):not(:has(.phone-header img)) .phone-info-icon {

    background: rgba(106, 71, 249, 0.1) !important;

    color: #6a47f9 !important;

}

/* ==========================================================================

   CARDS DE INFORMAÇÃO COMPLEMENTAR (HORÁRIO, PIX, COMO CHEGAR) - SAAS PREMIUM

   ========================================================================== */

/* Esconde quando vazio ou oculto */

.phone-info-card[hidden],

.phone-split-box[hidden],

.phone-split-row[hidden],

.phone-info-card.is-hidden,

.phone-split-box.is-hidden,

.phone-split-row.is-hidden,

[data-hidden="true"] {

    display: none !important;

}

.phone-info-card {

    background: rgba(255, 255, 255, 0.14);

    backdrop-filter: blur(16px);

    -webkit-backdrop-filter: blur(16px);

    border: 1px solid rgba(255, 255, 255, 0.22);

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);

    color: #ffffff;

    padding: 10px 14px;

    display: flex;

    align-items: center;

    gap: 11px;

    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);

    text-align: left;

    box-sizing: border-box;

    text-decoration: none;

    position: relative;

    overflow: hidden;

    cursor: pointer;

}

.phone-info-card:hover {

    background: rgba(255, 255, 255, 0.22);

    border-color: rgba(255, 255, 255, 0.38);

    transform: translateY(-1px);

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);

}

/* ==========================================================================

   CARDS DE METADADOS: COMO CHEGAR E ATENDIMENTO (EXATO AO MOCKUP)

   ========================================================================== */

.phone-store-meta-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 8px;

    align-items: stretch;

    width: 100%;

    margin-top: 0;

    margin-bottom: 14px;

    box-sizing: border-box;

}

.meta-card-item {

    background: #ffffff;

    border-radius: 14px;

    border: 1px solid rgba(0, 0, 0, 0.07);

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);

    padding: 12px 6px 10px 6px;

    box-sizing: border-box;

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    justify-content: flex-start;

    text-decoration: none;

    color: inherit;

    min-width: 0;

    transition: transform 0.15s ease, box-shadow 0.15s ease;

}

a.meta-card-item {

    cursor: pointer;

}

a.meta-card-item:hover {

    transform: translateY(-1px);

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

}

/* Sincronização de cantos */

[data-button-radius="straight"] .meta-card-item,

.phone-screen[data-button-radius="straight"] .meta-card-item {

    border-radius: 0px !important;

}

[data-button-radius="soft"] .meta-card-item,

.phone-screen[data-button-radius="soft"] .meta-card-item {

    border-radius: 14px !important;

}

[data-button-radius="pill"] .meta-card-item,

.phone-screen[data-button-radius="pill"] .meta-card-item {

    border-radius: 20px !important;

}

/* Suporte a vídeo ou capa escura */

.phone-screen:has(.phone-background-video) .meta-card-item,

.phone-screen:has(.phone-header img) .meta-card-item {

    background: rgba(255, 255, 255, 0.94) !important;

    color: #111827 !important;

}

/* Bolhas de ícone */

.meta-icon-bubble {

    width: 32px;

    height: 32px;

    border-radius: 8px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 7px;

    flex-shrink: 0;

}

.meta-icon-bubble.bubble-purple {

    background: #f3f0ff;

    color: #7c3aed;

}

.meta-icon-bubble.bubble-green {

    background: #ecfdf5;

    color: #059669;

}

/* Título */

.meta-card-title {

    font-size: 13px !important;

    font-weight: 700 !important;

    color: #111827 !important;

    line-height: 1.25 !important;

    margin-bottom: 4px;

    display: block;

}

/* Subtítulo (Endereço e Horário sem corte) */

.meta-card-sub,

#preview-map-address,

#preview-hours {

    font-size: 10px !important;

    color: #6b7280 !important;

    line-height: 1.35 !important;

    white-space: normal !important;

    overflow: visible !important;

    text-overflow: clip !important;

    word-break: break-word !important;

    display: block !important;

    width: 100% !important;

    max-width: 100% !important;

    text-align: center !important;

}

/* Link Ver localização */

.meta-action-link {

    font-size: 11px !important;

    color: #7c3aed !important;

    font-weight: 600 !important;

    margin-top: auto;

    padding-top: 6px;

    line-height: 1.2;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 3px;

    text-decoration: none;

}

.meta-action-link:hover {

    text-decoration: underline;

}

/* Badge Aberto agora / Fechado agora */

.store-status-badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 2.5px 9px;

    border-radius: 999px;

    font-size: 10px;

    font-weight: 700;

    line-height: 1.2;

    margin-bottom: 5px;

    letter-spacing: 0.1px;

}

.store-status-badge.status-open {

    background: #d1fae5;

    color: #047857;

    border: none;

}

.store-status-badge.status-closed {

    background: #fee2e2;

    color: #b91c1c;

    border: none;

}

/* Border radius sincronizado com o estilo selecionado */

[data-button-radius="straight"] .phone-info-card,

.phone-screen[data-button-radius="straight"] .phone-info-card,

[data-button-radius="sharp"] .phone-info-card,

.phone-screen[data-button-radius="sharp"] .phone-info-card {

    border-radius: 0px !important;

}

[data-button-radius="soft"] .phone-info-card,

.phone-screen[data-button-radius="soft"] .phone-info-card,

[data-button-radius="rounded"] .phone-info-card,

.phone-screen[data-button-radius="rounded"] .phone-info-card {

    border-radius: 12px !important;

}

[data-button-radius="pill"] .phone-info-card,

.phone-screen[data-button-radius="pill"] .phone-info-card {

    border-radius: 999px !important;

}

/* Tamanho sincronizado para cards informativos */

.phone-screen[data-button-size="compact"] .phone-info-card {

    min-height: 40px !important;

    padding: 8px 14px !important;

}

.phone-screen[data-button-size="compact"] .phone-info-card strong {

    font-size: 11px !important;

}

.phone-screen[data-button-size="compact"] .phone-info-card span {

    font-size: 9.5px !important;

}

.phone-screen[data-button-size="compact"] .phone-info-icon {

    width: 28px !important;

    height: 28px !important;

}

.phone-screen[data-button-size="compact"] .phone-info-icon svg {

    width: 15px !important;

    height: 15px !important;

}

.phone-screen[data-button-size="large"] .phone-info-card {

    min-height: 52px !important;

    padding: 13px 18px !important;

}

.phone-screen[data-button-size="large"] .phone-info-card strong {

    font-size: 13.5px !important;

}

.phone-screen[data-button-size="large"] .phone-info-card span {

    font-size: 11.5px !important;

}

.phone-screen[data-button-size="large"] .phone-info-icon {

    width: 36px !important;

    height: 36px !important;

}

.phone-screen[data-button-size="large"] .phone-info-icon svg {

    width: 20px !important;

    height: 20px !important;

}

/* Alinhamento de ícone centralizado */

.phone-screen[data-icon-pos="center"] .phone-info-card,

.phone-screen[data-icon-position="center"] .phone-info-card {

    justify-content: center !important;

    text-align: center !important;

}

.phone-screen[data-icon-pos="center"] .phone-info-card .phone-link-text,

.phone-screen[data-icon-position="center"] .phone-info-card .phone-link-text {

    flex: initial !important;

    text-align: center !important;

}

/* Alinhamento de ícone acima do texto */

.phone-screen[data-icon-pos="top"] .phone-info-card,

.phone-screen[data-icon-position="top"] .phone-info-card {

    flex-direction: column !important;

    justify-content: center !important;

    text-align: center !important;

    gap: 6px !important;

}

.phone-screen[data-icon-pos="top"] .phone-info-card .phone-link-text,

.phone-screen[data-icon-position="top"] .phone-info-card .phone-link-text {

    flex: initial !important;

    text-align: center !important;

}

.phone-info-card .phone-link-text {

    flex: 1;

    min-width: 0;

    display: flex;

    flex-direction: column;

    justify-content: center;

}

.phone-info-card strong {

    color: #ffffff;

    font-weight: 700;

    font-size: 12px;

    line-height: 1.3;

    display: block;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}

.phone-info-card span {

    color: rgba(255, 255, 255, 0.82);

    font-size: 10.5px;

    line-height: 1.3;

    display: block;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    font-weight: 500;

}

.phone-info-icon {

    width: 32px;

    height: 32px;

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.18);

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    transition: transform 0.2s ease;

}

[data-button-radius="pill"] .phone-info-icon,

.phone-screen[data-button-radius="pill"] .phone-info-icon {

    border-radius: 999px;

}

.phone-info-icon svg {

    display: block;

    width: 17px;

    height: 17px;

}

/* Ícone do Pix (Verde Menta / Banco Central) */

.phone-split-box.pix .phone-info-icon {

    background: rgba(45, 212, 191, 0.22);

    color: #2dd4bf;

}

/* Ícone do Como Chegar (Coral / Mapa) */

.phone-split-box.map .phone-info-icon {

    background: rgba(248, 113, 113, 0.22);

    color: #f87171;

}

/* Container de ações divididas (Pix + Como Chegar) */

.phone-split-row {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 8px;

    margin-top: 10px;

    margin-bottom: 10px;

    width: 100%;

    box-sizing: border-box;

}

.phone-split-box {

    margin-bottom: 0;

    border: 1px solid rgba(255, 255, 255, 0.22);

    width: 100%;

}

/* Feedback visual de Pix copiado */

.phone-split-box.pix.copied {

    background: rgba(45, 212, 191, 0.28) !important;

    border-color: #2dd4bf !important;

}

/* Fundo claro nativo (quando não houver imagem/vídeo ou cor muito escura) */

.phone-screen:not(:has(.phone-background-video)):not(:has(.phone-header img)) .phone-info-card {

    background: rgba(255, 255, 255, 0.88);

    border: 1px solid rgba(0, 0, 0, 0.08);

    color: #1e293b;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);

}

.phone-screen:not(:has(.phone-background-video)):not(:has(.phone-header img)) .phone-info-card:hover {

    background: #ffffff;

    border-color: rgba(0, 0, 0, 0.14);

}

.phone-screen:not(:has(.phone-background-video)):not(:has(.phone-header img)) .phone-info-card strong {

    color: #0f172a;

}

.phone-screen:not(:has(.phone-background-video)):not(:has(.phone-header img)) .phone-info-card span {

    color: #64748b;

}

.phone-screen:not(:has(.phone-background-video)):not(:has(.phone-header img)) .phone-info-hours .phone-info-icon {

    background: rgba(106, 71, 249, 0.12);

    color: #6a47f9;

}

.phone-screen:not(:has(.phone-background-video)):not(:has(.phone-header img)) .phone-split-box.pix .phone-info-icon {

    background: rgba(16, 185, 129, 0.12);

    color: #059669;

}

.phone-screen:not(:has(.phone-background-video)):not(:has(.phone-header img)) .phone-split-box.map .phone-info-icon {

    background: rgba(239, 68, 68, 0.12);

    color: #dc2626;

}

/* ==========================================================================

   BOTÃO DE DESTAQUE: VER CATÁLOGO (CTA MODERNO E ELEGANTE NA PRÉVIA)

   ========================================================================== */

.store-catalog-cta-wrapper {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    margin-top: 6px;

    margin-bottom: 6px;

    box-sizing: border-box;

    position: relative;

}

.btn-ver-catalogo {

    display: flex;

    align-items: center;

    justify-content: space-between;

    width: 100%;

    min-height: 52px;

    padding: 12px 18px;

    box-sizing: border-box;

    text-decoration: none;

    background-color: var(--preview-button-color, #e1eafe);

    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(0, 0, 0, 0.08) 100%);

    color: var(--preview-button-text-color, #212121) !important;

    border: 1px solid rgba(255, 255, 255, 0.25);

    border-radius: 16px;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);

    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;

    cursor: pointer;

    position: relative;

    overflow: hidden;

    -webkit-tap-highlight-color: transparent;

    font-family: inherit;

}

.btn-ver-catalogo:hover {

    transform: translateY(-2px);

    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18), 0 4px 10px rgba(0, 0, 0, 0.08);

    filter: brightness(1.06);

}

.btn-ver-catalogo:active {

    transform: translateY(0);

}

.btn-ver-catalogo:focus-visible {

    outline: 2px solid var(--preview-button-color, #3b82f6);

    outline-offset: 3px;

}

.phone-screen[data-button-radius="straight"] .btn-ver-catalogo {

    border-radius: 6px !important;

}

.phone-screen[data-button-radius="soft"] .btn-ver-catalogo {

    border-radius: 16px !important;

}

.phone-screen[data-button-radius="pill"] .btn-ver-catalogo {

    border-radius: 999px !important;

}

.btn-ver-catalogo-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--preview-button-text-color, #212121);

    flex-shrink: 0;

    margin-right: 10px;

}

.btn-ver-catalogo-title {

    flex: 1;

    text-align: center;

    font-size: 15px;

    font-weight: 700;

    color: var(--preview-button-text-color, #212121);

    letter-spacing: 0.3px;

    white-space: nowrap;

}

.btn-ver-catalogo-arrow {

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--preview-button-text-color, #212121);

    flex-shrink: 0;

    margin-left: 10px;

    opacity: 0.95;

    transition: transform 0.2s ease;

}

.btn-ver-catalogo:hover .btn-ver-catalogo-arrow {

    transform: translateX(3px);

    opacity: 1;

}

/* ==========================================================================

   VITRINE DE PRODUTOS EM DESTAQUE (PRÉVIA NA LOJA)

   ========================================================================== */

.featured-showcase-section {

    width: 100% !important;

    margin-top: 18px !important;

    box-sizing: border-box !important;

    display: flex !important;

    flex-direction: column !important;

    align-items: center !important;

}

.featured-showcase-header {

    display: flex !important;

    flex-direction: column !important;

    align-items: center !important;

    justify-content: center !important;

    margin-bottom: 12px !important;

    text-align: center !important;

    width: 100% !important;

}

.featured-title-row {

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    gap: 6px !important;

    margin-bottom: 2px !important;

}

.featured-star-icon {

    font-size: 16px !important;

    line-height: 1 !important;

    display: inline-flex !important;

    align-items: center !important;

}

.featured-showcase-title {

    font-size: 15.5px !important;

    font-weight: 800 !important;

    color: var(--preview-title-color, #0f172a) !important;

    margin: 0 !important;

    line-height: 1.3 !important;

    letter-spacing: -0.2px !important;

    text-align: center !important;

}

.featured-showcase-subtitle {

    font-size: 11.5px !important;

    color: var(--preview-title-color, #64748b) !important;

    opacity: 0.8 !important;

    margin: 0 !important;

    line-height: 1.4 !important;

    display: block !important;

    width: 100% !important;

    text-align: center !important;

}

.featured-grid {

    width: 100% !important;

    box-sizing: border-box !important;

    margin: 0 auto !important;

    overflow: visible !important;

    padding: 2px 0 !important;

}

/* Quando houver apenas 1 produto */

.featured-grid.featured-count-1 {

    display: flex !important;

    justify-content: center !important;

    align-items: center !important;

    width: 100% !important;

}

.featured-grid.featured-count-1 .catalog-card {

    width: 100% !important;

    max-width: 250px !important;

    margin: 0 auto !important;

}

.featured-grid.featured-count-1 .catalog-card-media-wrapper {

    height: 140px !important;

}

/* Quando houver 2 produtos */

.featured-grid.featured-count-2 {

    display: grid !important;

    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

    gap: 10px !important;

    width: 100% !important;

}

.featured-grid.featured-count-2 .catalog-card-media-wrapper {

    height: 110px !important;

}

/* Quando houver 3 ou mais */

.featured-grid.featured-count-3,

.featured-grid.featured-count-4 {

    display: grid !important;

    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

    gap: 10px !important;

    width: 100% !important;

}

.featured-grid.featured-count-3 .catalog-card:last-child {

    grid-column: span 2 !important;

    max-width: 220px !important;

    margin: 0 auto !important;

}

/* Cards de produto na vitrine */

.featured-grid .catalog-card {

    background: #ffffff !important;

    border: 1px solid rgba(0, 0, 0, 0.08) !important;

    border-radius: 12px !important;

    overflow: hidden !important;

    display: flex !important;

    flex-direction: column !important;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05) !important;

    cursor: pointer !important;

    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important;

    text-align: left !important;

    user-select: none !important;

    position: relative !important;

    box-sizing: border-box !important;

}

.featured-grid .catalog-card:hover {

    transform: translateY(-3px) !important;

    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12) !important;

    border-color: rgba(0, 0, 0, 0.16) !important;

}

.featured-grid .catalog-card-media-wrapper {

    position: relative !important;

    width: 100% !important;

    height: 120px;

    overflow: hidden !important;

    background: #f1f5f9 !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

}

.featured-grid .catalog-card-slide {

    position: absolute !important;

    inset: 0 !important;

    width: 100% !important;

    height: 100% !important;

    background-size: cover !important;

    background-position: center !important;

    background-repeat: no-repeat !important;

    transition: transform 0.3s ease !important;

}

.featured-grid .catalog-card:hover .catalog-card-slide.active {

    transform: scale(1.04) !important;

}

.featured-grid .catalog-card-img-placeholder {

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 26px;

    background: #f1f5f9;

}

.featured-grid .catalog-card-info {

    padding: 8px 10px !important;

    display: flex !important;

    flex-direction: column !important;

    gap: 3px !important;

    background: #ffffff !important;

    flex: 1 0 auto !important;

}

.featured-grid .catalog-card-name {

    font-size: 12px !important;

    font-weight: 700 !important;

    color: #1e293b !important;

    line-height: 1.35 !important;

    display: -webkit-box !important;

    -webkit-line-clamp: 2 !important;

    -webkit-box-orient: vertical !important;

    overflow: hidden !important;

    text-overflow: ellipsis !important;

    margin: 0 !important;

    word-break: break-word !important;

    white-space: normal !important;

}

.featured-grid .catalog-card-price {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 2px 0 0 0 !important;
    letter-spacing: -0.2px !important;
}

.featured-showcase-footer {

    margin-top: 14px !important;

    width: 100% !important;

    display: flex !important;

    justify-content: center !important;

}

.btn-ver-todos-catalogo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 8px 18px !important;
    width: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    background: #ffffff !important;
    border: 1.5px solid rgba(15, 23, 42, 0.18) !important;
    border-radius: 999px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.btn-ver-todos-catalogo:hover {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16) !important;
}

.btn-ver-todos-catalogo svg {

    transition: transform 0.2s ease !important;

    stroke: currentColor !important;

}

.btn-ver-todos-catalogo:hover svg {

    transform: translateX(3px) !important;

}

/* ==========================================================================
   TOAST DE CONFIRMAÇÃO AO SALVAR ALTERAÇÕES
   ========================================================================== */
.btn-save:disabled {
    opacity: 0.72;
    cursor: wait;
}

.save-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(420px, calc(100vw - 32px));
    padding: 13px 20px;
    border-radius: 12px;
    background: #0f172a;
    color: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.28);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.save-toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    cursor: pointer;
}

.save-toast-icon {
    flex-shrink: 0;
}

.save-toast-icon--success {
    color: #10b981;
}

.save-toast-icon--error {
    display: none;
    color: #fecaca;
}

.save-toast.is-error {
    background: #dc2626;
    border-color: rgba(254, 202, 202, 0.35);
}

.save-toast.is-error .save-toast-icon--success {
    display: none;
}

.save-toast.is-error .save-toast-icon--error {
    display: block;
}

@media (max-width: 600px) {
    .save-toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
}


/* =========================================================================
   ENQUADRAMENTO E ZOOM DO BANNER DO CARTÃO
   ========================================================================= */

.banner-upload-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.banner-upload-actions [hidden] {
    display: none !important;
}

body.banner-crop-open {
    overflow: hidden;
}

.banner-crop-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10020;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.banner-crop-modal-backdrop[hidden] {
    display: none !important;
}

.banner-crop-dialog {
    background: #ffffff;
    border-radius: 18px;
    width: 100%;
    max-width: 620px;
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
    animation: modalFadeIn 180ms ease-out;
}

.banner-crop-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #f1f5f9;
}

.banner-crop-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.banner-crop-header p {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.4;
}

.banner-crop-body {
    padding: 18px 22px 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.banner-crop-preview-shell {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 16px 12px;
}

.banner-crop-stage-wrap {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto 28px;
}

.banner-crop-stage-wrap[data-crop-kind="logo"] {
    max-width: 260px;
    margin-bottom: 10px;
}

.banner-crop-stage-wrap[data-crop-kind="background"] {
    width: min(210px, 56vw);
    max-width: 230px;
    margin-bottom: 10px;
}

.banner-crop-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1200 / 458;
    border-radius: 14px 14px 8px 8px;
    overflow: hidden;
    background: #e2e8f0;
    box-shadow: 0 0 0 2px #6a47f9, 0 10px 24px rgba(15, 23, 42, 0.14);
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.banner-crop-stage[data-crop-kind="logo"] {
    aspect-ratio: 1 / 1;
    border-radius: 26px;
}

.banner-crop-stage[data-crop-kind="background"] {
    aspect-ratio: 9 / 16;
    border-radius: 24px;
}

.banner-crop-guide-toggle[hidden],
.banner-crop-avatar-guide[hidden],
#adjust-background-media[hidden],
#adjust-logo[hidden] {
    display: none !important;
}

.banner-crop-stage.is-dragging {
    cursor: grabbing;
}

.banner-crop-stage canvas {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.banner-crop-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 150ms ease;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.35) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
    background-size: 33.333% 33.333%;
}

.banner-crop-stage.is-dragging .banner-crop-grid,
.banner-crop-stage:hover .banner-crop-grid {
    opacity: 0.7;
}

.banner-crop-snap-x,
.banner-crop-snap-y {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    transition: opacity 120ms ease;
    z-index: 3;
}

.banner-crop-snap-x {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: rgba(106, 71, 249, 0.9);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.banner-crop-snap-y {
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    transform: translateY(-50%);
    background: rgba(106, 71, 249, 0.9);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.banner-crop-snap-x.visible,
.banner-crop-snap-y.visible {
    opacity: 1;
}

.banner-crop-avatar-guide {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 22%;
    aspect-ratio: 1 / 1;
    transform: translate(-50%, 50%);
    border-radius: 22%;
    border: 2.5px dashed rgba(106, 71, 249, 0.85);
    background-color: rgba(255, 255, 255, 0.78);
    background-size: cover;
    background-position: center;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 4;
    opacity: 0.82;
    transition: opacity 160ms ease;
}

.banner-crop-avatar-guide span {
    font-size: 11px;
    font-weight: 700;
    color: #4c1d95;
    background: rgba(255, 255, 255, 0.86);
    padding: 2px 7px;
    border-radius: 999px;
}

.banner-crop-avatar-guide.has-logo span {
    font-size: 10px;
    padding: 2px 6px;
    background: rgba(15, 23, 42, 0.68);
    color: #ffffff;
}

.banner-crop-avatar-guide.is-hidden {
    opacity: 0;
}

.banner-crop-hint {
    margin: 6px 0 0;
    font-size: 11.5px;
    color: #64748b;
    text-align: center;
}

.banner-crop-quick-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.banner-crop-pill {
    appearance: none;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 140ms ease;
}

.banner-crop-pill:hover {
    border-color: #6a47f9;
    color: #6a47f9;
    background: #f5f3ff;
}

.banner-crop-pill.active {
    border-color: #6a47f9;
    background: #6a47f9;
    color: #ffffff;
}

.banner-crop-guide-toggle {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.banner-crop-guide-toggle input {
    width: 15px;
    height: 15px;
    accent-color: #6a47f9;
    cursor: pointer;
    margin: 0;
}

.banner-crop-control-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.banner-crop-control-label {
    flex: 0 0 92px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin: 0;
}

.banner-crop-zoom-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.banner-crop-zoom-group input[type="range"] {
    flex: 1;
    height: 6px;
    accent-color: #6a47f9;
    cursor: pointer;
    margin: 0;
    padding: 0;
    border: none;
}

.banner-crop-step-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 140ms ease;
}

.banner-crop-step-btn:hover {
    border-color: #6a47f9;
    color: #6a47f9;
    background: #f5f3ff;
}

.banner-crop-zoom-badge {
    min-width: 48px;
    text-align: right;
    font-size: 12.5px;
    font-weight: 700;
    color: #475569;
    font-variant-numeric: tabular-nums;
}

.banner-crop-bg-swatches {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.banner-bg-swatch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 140ms ease;
}

.banner-bg-swatch:hover {
    border-color: #6a47f9;
}

.banner-bg-swatch.active {
    border-color: #6a47f9;
    background: #f5f3ff;
    color: #5b21b6;
    box-shadow: 0 0 0 1px #6a47f9;
}

.banner-bg-swatch-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.22);
    display: inline-block;
    flex-shrink: 0;
}

.banner-bg-custom-label input[type="color"] {
    width: 18px;
    height: 18px;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.2);
    border-radius: 50%;
    cursor: pointer;
    background: transparent;
}

.banner-crop-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

@media (max-width: 600px) {
    .banner-crop-dialog {
        border-radius: 14px;
    }

    .banner-crop-header,
    .banner-crop-body,
    .banner-crop-footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    .banner-crop-control-row {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .banner-crop-control-label {
        flex: none;
    }

    .banner-crop-guide-toggle {
        margin-left: 0;
        width: 100%;
    }
}


/* ==========================================================================
   AGENDADOR VISUAL DE HORÁRIOS DE FUNCIONAMENTO (SEG A DOM + INTERVALO)
   ========================================================================== */
.store-status-badge.status-interval {
    background: #fef3c7 !important;
    color: #b45309 !important;
    border: none !important;
}

.store-hours-group {
    margin-bottom: 22px;
}

.hours-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.hours-header-row label {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-main);
}

.hours-live-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
}

.hours-live-status-pill.status-open {
    background: #d1fae5;
    color: #065f46;
}

.hours-live-status-pill.status-open .hours-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
    animation: statusPulse 2s infinite ease-in-out;
}

.hours-live-status-pill.status-interval {
    background: #fef3c7;
    color: #92400e;
}

.hours-live-status-pill.status-interval .hours-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.hours-live-status-pill.status-closed {
    background: #fee2e2;
    color: #991b1b;
}

.hours-live-status-pill.status-closed .hours-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
}

.store-hours-scheduler {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.hours-blocks-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hours-block-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hours-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hours-block-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
}

.btn-remove-block {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.btn-remove-block:hover {
    color: #ef4444;
    background: #fee2e2;
}

/* PRESETS RÁPIDOS */
.hours-presets-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.hours-preset-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    margin-right: 4px;
}

.btn-hours-preset {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-hours-preset:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* BOTÕES DE DIAS DA SEMANA (SEG A DOM) */
.hours-days-btn-group {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.btn-day-toggle {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 8px 0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.btn-day-toggle:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #1e293b;
}

.btn-day-toggle.is-active {
    background: var(--purple-primary, #6a47f9) !important;
    border-color: var(--purple-primary, #6a47f9) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(106, 71, 249, 0.25);
}

/* LINHAS DE HORÁRIOS / PERÍODOS */
.hours-periods-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.hours-period-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hours-period-tag {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    min-width: 90px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.hours-inputs-pair {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hours-time-field {
    width: 96px !important;
    padding: 6px 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    text-align: center;
}

.hours-time-sep {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.hours-interval-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.hours-interval-box .hours-period-tag {
    color: #92400e;
}

.btn-remove-interval {
    background: transparent;
    border: none;
    color: #b45309;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-remove-interval:hover {
    background: #fef3c7;
    color: #78350f;
}

.btn-add-interval {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #475569;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    align-self: flex-start;
}

.btn-add-interval:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.hours-actions-bar {
    margin-top: 12px;
    display: flex;
}

.btn-hours-action {
    background: #ffffff;
    border: 1px dashed #94a3b8;
    color: var(--purple-primary, #6a47f9);
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    width: 100%;
    justify-content: center;
}

.btn-hours-action:hover {
    background: #f5f3ff;
    border-color: var(--purple-primary, #6a47f9);
}

/* RESUMO E CAMPO DE TEXTO */
.hours-text-summary-wrapper {
    margin-top: 12px;
}

.hours-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.hours-summary-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.btn-toggle-manual-hours {
    background: transparent;
    border: none;
    color: var(--purple-primary, #6a47f9);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    text-decoration: underline;
}

.btn-toggle-manual-hours:hover {
    color: #4f46e5;
}


/* Header Responsivo & Botão Hambúrguer */
.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-primary, #0f172a);
  cursor: pointer;
  border-radius: 8px;
}

@media (max-width: 1024px) {
  .hamburger-btn {
    display: inline-flex !important;
  }
}
