/* ==========================================================================
   Generador Profesional de Códigos QR (Wi-Fi & URL / Texto)
   Modern & Premium Design System
   ========================================================================== */

:root {
    --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Colores Principales */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #e0e7ff;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #4338ca 100%);
    --accent: #06b6d4;
    --accent-hover: #0891b2;
    --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
    
    /* Superficies y Fondos */
    --bg-dark: #090d16;
    --bg-card: rgba(18, 24, 38, 0.75);
    --bg-card-hover: rgba(24, 32, 50, 0.85);
    --bg-input: rgba(13, 19, 33, 0.8);
    
    /* Bordes y Sombras */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(99, 102, 241, 0.6);
    --card-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    --glow-primary: 0 0 35px rgba(99, 102, 241, 0.25);
    
    /* Textos */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    /* Radios y Transiciones */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset básico */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
    padding: 2rem 1rem;
}

/* Luces difusas de fondo */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #4f46e5;
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 450px;
    height: 450px;
    background: #06b6d4;
    bottom: -100px;
    right: -100px;
    animation-delay: -7s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: #8b5cf6;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -40px) scale(1.08); }
    100% { transform: translate(-30px, 30px) scale(0.95); }
}

/* Contenedor Principal */
.app-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    position: relative;
}

/* ==========================================================================
   Contador de Visitas Adaptativo (Esquina en PC / Pie de Página en Móvil)
   ========================================================================== */
.visitor-counter-wrapper {
    position: fixed;
    top: 1.25rem;
    right: 1.5rem;
    z-index: 100;
}

.visitor-counter {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-muted);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
    user-select: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.visitor-counter:hover {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--text-main);
    transform: translateY(-1px);
}

.visitor-counter i {
    color: #38bdf8;
    font-size: 0.85rem;
}

.visitor-counter #visitCount {
    font-weight: 700;
    color: #f1f5f9;
}

.visitor-label {
    color: var(--text-dim);
}

/* En teléfonos y pantallas menores a 768px: pasa al pie de página */
@media (max-width: 768px) {
    .visitor-counter-wrapper {
        position: static;
        display: flex;
        justify-content: center;
        margin-bottom: 0.75rem;
    }
}

/* Encabezado */
.app-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-full);
    color: #a5b4fc;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.app-header h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #ffffff;
    line-height: 1.2;
}

.app-header h1 span {
    background: linear-gradient(135deg, #818cf8 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-header .subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 620px;
}

/* ==========================================================================
   Selector de Modo (Tabs Segmentadas)
   ========================================================================== */
.mode-tabs-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    background: rgba(18, 24, 38, 0.85);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    max-width: 600px;
    width: 100%;
    backdrop-filter: blur(16px);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.25rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.tab-btn i {
    font-size: 1.5rem;
    color: var(--text-dim);
    transition: var(--transition);
}

.tab-text {
    display: flex;
    flex-direction: column;
}

.tab-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #cbd5e1;
    transition: var(--transition);
}

.tab-desc {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

.tab-btn:hover .tab-title {
    color: #ffffff;
}

.tab-btn.active {
    background: var(--primary-gradient);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.tab-btn.active i {
    color: #ffffff;
    transform: scale(1.1);
}

.tab-btn.active .tab-title {
    color: #ffffff;
}

.tab-btn.active .tab-desc {
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 580px) {
    .mode-tabs {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Grid Principal & Tarjetas
   ========================================================================== */
.generator-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 860px) {
    .generator-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: var(--transition);
}

.preview-icon {
    background: rgba(6, 182, 212, 0.15);
    color: #38bdf8;
    border-color: rgba(6, 182, 212, 0.2);
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   Formularios y Paneles Dinámicos
   ========================================================================== */
.form-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tab-panel {
    display: none;
    flex-direction: column;
    gap: 1.25rem;
    animation: fadeIn 0.3s ease;
}

.tab-panel.active {
    display: flex;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    color: #cbd5e1;
}

.form-group label span i {
    color: #818cf8;
    margin-right: 0.35rem;
}

.required-badge {
    color: #f43f5e;
    font-weight: bold;
}

.input-wrapper, .select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

input[type="text"],
input[type="password"],
select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
    background: rgba(17, 24, 39, 0.95);
}

.clear-btn, .toggle-pwd-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    border-radius: 4px;
}

.clear-btn:hover, .toggle-pwd-btn:hover {
    color: var(--text-main);
}

.select-wrapper {
    position: relative;
}

select {
    appearance: none;
    cursor: pointer;
    padding-right: 2.5rem;
}

.select-arrow {
    position: absolute;
    right: 14px;
    pointer-events: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: var(--transition);
}

/* Checkbox de Red Oculta */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
    user-select: none;
    position: relative;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.checkbox-container input:checked ~ .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkmark::after {
    content: "";
    display: none;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.checkbox-container input:checked ~ .checkmark::after {
    display: block;
}

.checkbox-label strong {
    color: var(--text-main);
}

/* Prefijos rápidos en modo URL */
.quick-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.tag-label {
    color: var(--text-dim);
}

.quick-tag-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #93c5fd;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.quick-tag-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: #818cf8;
    color: #ffffff;
}

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: #bae6fd;
    font-size: 0.82rem;
    line-height: 1.4;
}

.info-box i {
    color: #38bdf8;
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-box code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    color: #ffffff;
    font-family: monospace;
}

/* ==========================================================================
   Acordeón de Personalización Visual
   ========================================================================== */
.customization-section {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.accordion-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.accordion-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
}

.accordion-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.accordion-btn.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
}

.accordion-content.open {
    display: flex;
}

.color-picker-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.color-control {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.color-control label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.color-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-input);
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

input[type="color"] {
    -webkit-appearance: none;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    background: none;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
}

.color-code {
    font-size: 0.85rem;
    font-family: monospace;
    color: var(--text-muted);
}

.dot-style-chips {
    display: flex;
    gap: 0.5rem;
}

.chip {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.chip:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
}

.chip.active {
    background: rgba(99, 102, 241, 0.18);
    border-color: #6366f1;
    color: #c7d2fe;
    font-weight: 600;
}

/* ==========================================================================
   Columna Derecha: Previsualización & Acciones
   ========================================================================== */
.preview-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.qr-canvas-container {
    width: 250px;
    height: 250px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.qr-canvas-container:hover {
    transform: scale(1.02);
}

#qrCodeTarget {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#qrCodeTarget canvas,
#qrCodeTarget svg {
    border-radius: var(--radius-md);
    max-width: 100%;
    max-height: 100%;
}

.qr-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
    color: #64748b;
    padding: 1rem;
}

.qr-placeholder i {
    font-size: 2.5rem;
    color: #94a3b8;
}

.qr-placeholder p {
    font-size: 0.85rem;
    color: #64748b;
}

/* Resumen Informativo */
.wifi-summary {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.summary-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summary-val {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-security {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #38bdf8;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
}

/* Botones de Acción */
.action-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.45);
    filter: brightness(1.1);
}

.btn-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-accent {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.25);
}

.btn-accent:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
}

.print-option-wrap {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-md);
    margin: 0.2rem 0;
}

.print-checkbox {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.btn-ghost {
    background: transparent;
    color: var(--text-dim);
    font-size: 0.85rem;
    padding: 0.5rem;
}

.btn-ghost:hover {
    color: var(--text-muted);
}

/* ==========================================================================
   Sección de Instrucciones
   ========================================================================== */
.instructions-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--card-shadow);
}

.instructions-section h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    text-align: center;
    color: var(--text-main);
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary-gradient);
    color: #ffffff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 1rem 0;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.app-footer strong {
    color: #cbd5e1;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 1000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast i {
    color: #10b981;
    font-size: 1.1rem;
}

/* ==========================================================================
   ESTILOS DE IMPRESIÓN (Plantilla Cartel Inteligente)
   ========================================================================== */

.print-sheet {
    display: none;
}

@media print {
    /* Ocultar todo el sitio interactivo */
    body {
        background: #ffffff !important;
        color: #0f172a !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .bg-blobs,
    .app-container,
    .toast {
        display: none !important;
    }

    /* Mostrar únicamente la hoja de cartel */
    .print-sheet {
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 100vw;
        min-height: 100vh;
        background: #ffffff;
    }

    .print-card-content {
        width: 100%;
        max-width: 480px;
        padding: 2.5rem;
        border: 2px solid #0f172a;
        border-radius: 24px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        box-sizing: border-box;
        page-break-inside: avoid;
    }

    .print-icon-wrap {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: #0f172a;
        color: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .print-title {
        font-size: 1.8rem;
        font-weight: 800;
        color: #0f172a;
        margin: 0;
    }

    .print-subtitle {
        font-size: 0.95rem;
        color: #475569;
        margin: 0.25rem 0 0 0;
    }

    .print-qr-wrapper {
        min-width: 220px;
        min-height: 220px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0.5rem 0;
    }

    .print-qr-wrapper canvas,
    .print-qr-wrapper svg,
    .print-qr-wrapper img {
        max-width: 280px !important;
        max-height: 280px !important;
        display: block !important;
        margin: 0 auto !important;
    }

    .print-details {
        width: 100%;
        background: #f1f5f9;
        border-radius: 12px;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        text-align: left;
    }

    .print-info-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.9rem;
    }

    .info-tag {
        font-weight: 600;
        color: #475569;
    }

    .info-value {
        font-weight: 800;
        color: #0f172a;
        font-family: monospace;
        font-size: 1rem;
        word-break: break-all;
    }

    .print-steps {
        display: flex;
        justify-content: space-around;
        width: 100%;
        border-top: 1px dashed #cbd5e1;
        padding-top: 1rem;
    }

    .print-step-item {
        font-size: 0.8rem;
        font-weight: 700;
        color: #334155;
        display: flex;
        align-items: center;
        gap: 0.35rem;
    }

    .p-num {
        display: inline-flex;
        width: 20px;
        height: 20px;
        background: #0f172a;
        color: #ffffff;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
    }

    .print-footer {
        font-size: 0.75rem;
        color: #94a3b8;
        margin-top: 0.5rem;
    }
}
