/* ==========================================================================
   KVtools - Estilos personalizados
   Complementan Tailwind (cargado por CDN) con utilidades, componentes y
   variables propias del sistema de diseño.
   ========================================================================== */

:root {
    --color-kv-black:      #050505;
    --color-kv-dark:       #0A0A0A;
    --color-kv-gray-dark:  #1F1F1F;
    --color-kv-orange:     #FF5A00;
    --color-kv-orange-hot: #FF3B00;
    --color-kv-blue:       #0047BA;
    --color-kv-white:      #FFFFFF;
    --color-kv-gray-light: #A1A1AA;
    --color-kv-surface:    #0A0A0A;
    --color-kv-card:       #121212;
    --color-kv-border:     #27272A;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

body {
    background-color: var(--color-kv-black);
    color: var(--color-kv-white);
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Cada section ancla con offset para que no quede oculta bajo el navbar fijo */
section[id] {
    scroll-margin-top: 90px;
}

/* Headings comunes */
h1, h2 {
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
}

/* ==========================================================================
   Accesibilidad
   ========================================================================== */

/* Skip link visible solo cuando recibe foco (lectores de pantalla / Tab) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 1000;
    padding: 0.75rem 1.25rem;
    background: var(--color-kv-orange);
    color: var(--color-kv-black);
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; outline: 2px solid #fff; outline-offset: 2px; }

/* Mejor estado de foco para teclado en todos los interactivos */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--color-kv-orange);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Respetar preferencia de movimiento reducido del sistema operativo */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .animate-marquee { animation: none !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0A0A0A; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #F47920; }

.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background-color: rgba(255,255,255,0.1); border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background-color: rgba(244,121,32,0.5); }

/* ==========================================================================
   Componentes
   ========================================================================== */

.glass-panel {
    background: rgba(15, 15, 15, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.05), 0 8px 32px 0 rgba(0,0,0,0.5);
}

.bg-grid-pattern {
    background-size: 32px 32px;
    background-image:
        linear-gradient(to right,  rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
}

.bg-kv-gradient-orange { background: linear-gradient(135deg, #F47920, #FF6B00); }
.bg-kv-gradient-card   { background: linear-gradient(180deg, #1E1E1E 0%, #141414 100%); }

.shadow-kv-glow { box-shadow: 0 0 40px rgba(244, 121, 32, 0.2); }
.text-glow      { text-shadow: 0 0 30px rgba(244, 121, 32, 0.4); }

/* ==========================================================================
   Botones
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
    background: linear-gradient(135deg, #F47920, #FF6B00);
    color: #050505;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-primary:hover {
    box-shadow: 0 0 30px rgba(244,121,32,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
    transform: translateY(-2px);
}
.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 0 15px rgba(244,121,32,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn:disabled, .btn[aria-busy="true"] {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
    pointer-events: none;
}

/* Spinner para estado de carga */
.btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-right: 0.5rem;
    vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
}
.btn-outline:hover {
    background: #fff;
    color: #050505;
    border-color: #fff;
}

.btn-full { width: 100%; justify-content: center; }
.btn-sm   { padding: 0.5rem 1.25rem; font-size: 0.75rem; }

/* ==========================================================================
   Animaciones
   ========================================================================== */

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-marquee {
    animation: marquee 30s linear infinite;
}

@keyframes ping {
    75%, 100% { transform: scale(2); opacity: 0; }
}
.animate-ping { animation: ping 1.5s cubic-bezier(0,0,0.2,1) infinite; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}
.animate-pulse { animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }

@keyframes loader-bar {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
#loader-bar {
    animation: loader-bar 1s linear infinite;
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    will-change: opacity, transform;
}
.reveal[data-reveal="left"]  { transform: translateX(-30px); }
.reveal[data-reveal="right"] { transform: translateX(30px); }
.reveal[data-reveal="up"]    { transform: translateY(30px); }
.reveal[data-reveal="down"]  { transform: translateY(-30px); }

.reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Hero indicator fill */
.hero-indicator-fill {
    transition: width 0s linear;
}
.hero-indicator.is-active .hero-indicator-fill {
    width: 100%;
    transition: width 6s linear;
}

/* ==========================================================================
   Utilidades adicionales
   ========================================================================== */

/* Mejor render de imágenes */
img { -webkit-user-drag: none; }

/* Gradient masks usados por Tailwind arbitrary classes en CDN */
.bg-radial-gradient {
    background: radial-gradient(circle, var(--tw-gradient-stops, rgba(244,121,32,0.2), transparent));
}

/* ==========================================================================
   Iframe del admin
   ========================================================================== */

#preview-frame {
    transform-origin: top left;
}

/* ==========================================================================
   Editor admin (campos dinámicos)
   ========================================================================== */

.editor-section {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.editor-section-header {
    width: 100%;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.4);
    cursor: pointer;
    transition: background 0.2s ease;
    border: 0;
    color: rgba(255,255,255,0.8);
}
.editor-section-header:hover { background: rgba(255,255,255,0.05); }
.editor-section-header .label {
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.editor-section-body {
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.2);
}
.editor-field { margin-bottom: 1rem; }
.editor-field label {
    display: block;
    font-size: 10px;
    color: var(--color-kv-orange);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.375rem;
    font-weight: 700;
}
.editor-field input[type="text"],
.editor-field input[type="number"],
.editor-field input[type="url"],
.editor-field input[type="email"],
.editor-field textarea {
    width: 100%;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #fff;
    font-family: inherit;
    transition: border-color 0.2s ease;
}
.editor-field input:focus,
.editor-field textarea:focus {
    outline: none;
    border-color: rgba(255,90,0,0.5);
}
.editor-field textarea { min-height: 80px; resize: vertical; }
.editor-field-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.editor-field-checkbox input[type="checkbox"] {
    width: 1rem; height: 1rem;
    accent-color: var(--color-kv-orange);
}
.editor-field-checkbox label {
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

.editor-list {
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.02);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}
.editor-list-item {
    border-left: 2px solid rgba(255,255,255,0.1);
    padding: 0.5rem 0 0.5rem 1rem;
    margin-bottom: 1rem;
    position: relative;
}
.editor-list-item .delete-btn {
    position: absolute;
    left: -10px;
    top: 0.4rem;
    background: var(--color-kv-black);
    color: rgba(255,255,255,0.4);
    transition: color 0.15s ease;
    border: 0;
    cursor: pointer;
    padding: 0.15rem;
    border-radius: 4px;
}
.editor-list-item .delete-btn:hover { color: #f87171; }
.editor-list .add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-kv-orange);
    background: transparent;
    border: 1px dashed rgba(255,90,0,0.3);
    border-radius: 0.5rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.15s ease;
}
.editor-list .add-btn:hover { background: rgba(255,90,0,0.1); }

.editor-object {
    margin-bottom: 1.5rem;
}
.editor-object > .object-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

/* Belt-and-suspenders: prevenir scroll horizontal causado por blobs decorativos */
html { overflow-x: hidden; }

/* ==========================================================================
   Skeleton shimmer (loader)
   ========================================================================== */
.skeleton-shimmer {
    position: relative;
    overflow: hidden;
}
.skeleton-shimmer::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        transparent 0,
        rgba(255, 90, 0, 0.08) 50%,
        transparent 100%
    );
    animation: shimmer 1.6s infinite;
}
@keyframes shimmer {
    100% { transform: translateX(100%); }
}

/* ==========================================================================
   Bento cards clickables (sensacion app premium)
   ========================================================================== */
.bento-card {
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    cursor: pointer;
    will-change: transform;
}
.bento-card:active {
    transform: translateY(-1px) scale(0.985);
    transition-duration: 0.1s;
}

/* Shine: barrido de luz al hover, tipo iOS / app store */
.bento-shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        115deg,
        transparent 0%,
        transparent 35%,
        rgba(255, 255, 255, 0.06) 50%,
        transparent 65%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}
.bento-card:hover .bento-shine {
    transform: translateX(100%);
}

/* Pequeno indicador "external link" en boxes con http */
.bento-card[target="_blank"]::after {
    content: '';
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 8px;
    height: 8px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
    opacity: 0;
    color: rgba(255, 255, 255, 0.4);
    transition: opacity 0.3s, transform 0.3s, color 0.3s;
    z-index: 2;
}
.bento-card[target="_blank"]:hover::after {
    opacity: 1;
    transform: rotate(45deg) translate(2px, -2px);
}

/* ==========================================================================
   Cookie banner entrada
   ========================================================================== */
#cookie-banner.is-visible {
    animation: cookie-slide-up 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes cookie-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Admin: section header con icono + color
   ========================================================================== */
.editor-section-header {
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
}
.editor-section-header .sec-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.editor-section-header .label {
    flex: 1;
    text-align: left;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.9) !important;
}
.editor-section-header .caret {
    color: rgba(255, 90, 0, 0.8);
    font-size: 0.875rem;
}

/* ==========================================================================
   Admin: campo IMAGEN con preview + upload inline
   ========================================================================== */
.editor-field-image {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 90, 0, 0.04);
    border: 1px solid rgba(255, 90, 0, 0.15);
    border-radius: 0.75rem;
}
.editor-field-image > label {
    display: block;
    font-size: 11px;
    color: var(--color-kv-orange);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.editor-field-image .img-preview {
    width: 100%;
    height: 140px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}
.editor-field-image .img-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.editor-field-image .img-empty {
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    font-style: italic;
}
.editor-field-image .img-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}
.img-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}
.img-btn-primary {
    background: var(--color-kv-orange);
    color: var(--color-kv-black);
}
.img-btn-primary:hover {
    background: #ff8f4a;
    transform: translateY(-1px);
}
.img-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
}
.img-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #f87171;
}
.img-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}
.img-progress {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-left: auto;
}
.editor-field-image .img-url {
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'JetBrains Mono', monospace;
}
.editor-field-image .img-url:focus {
    outline: none;
    border-color: rgba(255, 90, 0, 0.5);
}

/* Admin: URL field con boton "probar" */
.editor-field .url-row {
    display: flex;
    gap: 0.5rem;
}
.editor-field .url-row input {
    flex: 1;
}
.url-test-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    background: var(--color-kv-orange);
    color: var(--color-kv-black);
    border-radius: 0.5rem;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}
.url-test-btn:hover {
    background: #ff8f4a;
    transform: translateY(-1px);
}
.url-test-btn.disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

/* Admin: list item */
.editor-list-title {
    display: flex !important;
    align-items: center;
}
.editor-list-count {
    margin-left: 0.5rem;
    background: rgba(255, 90, 0, 0.15);
    color: var(--color-kv-orange);
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 10px;
    text-transform: none;
    letter-spacing: normal;
}
.editor-list-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.editor-list-item-head .idx {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-kv-orange);
    background: rgba(255, 90, 0, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}
.editor-list-item .delete-btn {
    position: static !important;
    background: rgba(248, 113, 113, 0.1);
    color: rgba(248, 113, 113, 0.8);
    border: 0;
    border-radius: 4px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.15s ease;
    opacity: 1 !important;
}
.editor-list-item .delete-btn:hover {
    background: rgba(248, 113, 113, 0.25);
    color: #fff;
}

/* Admin: textarea HTML */
.editor-field textarea.code-area {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.7);
    line-height: 1.5;
}

/* ==========================================================================
   Admin: Welcome panel (checklist primeros pasos)
   ========================================================================== */
.welcome-panel {
    background: linear-gradient(135deg, rgba(255, 90, 0, 0.08), rgba(0, 71, 186, 0.06));
    border: 1px solid rgba(255, 90, 0, 0.25);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px -6px rgba(255, 90, 0, 0.15);
}
.welcome-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.welcome-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.25rem;
    text-transform: none;
    letter-spacing: normal;
    font-family: 'Inter', sans-serif;
}
.welcome-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.4;
}
.welcome-progress-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}
.welcome-progress-circle::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #111;
}
.welcome-progress-circle span {
    position: relative;
    z-index: 1;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-kv-orange);
}
.welcome-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.welcome-checklist li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    padding: 0.4rem 0.5rem;
    border-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.welcome-checklist li.is-done {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
    background: rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.15);
}
.welcome-checklist li .check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 90, 0, 0.15);
    color: var(--color-kv-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}
.welcome-checklist li.is-done .check {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}
.welcome-hint {
    margin: 1rem 0 0;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.4rem;
    border-left: 2px solid rgba(255, 90, 0, 0.4);
}

/* ==========================================================================
   Admin: Toast notifications
   ========================================================================== */
.kv-toast {
    padding: 0.75rem 1.25rem;
    border-radius: 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5);
    transform: translateX(110%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    pointer-events: auto;
    min-width: 200px;
    max-width: 360px;
}
.kv-toast.is-visible {
    transform: translateX(0);
    opacity: 1;
}
