/* ============================================================
   VIDEOFLOW v3.0 — LIGHT MINIMALIST THEME
   ============================================================ */

/* --- DESIGN TOKENS --- */
:root {
    /* Clean Studio Color Palette */
    --bg: #f8f9fa;
    /* Bright gray for main background */
    --bg-secondary: #ffffff;
    /* Pure white for panels */
    --bg-tertiary: #f1f3f5;
    /* Slightly darker gray for inset areas */

    --panel: #ffffff;
    --panel-border: #e9ecef;

    /* Interactive Accents: Cobalt Blue / Violet */
    --accent: #4338ca;
    /* Indigo 700 */
    --accent-hover: #3730a3;
    /* Indigo 800 */
    --accent-soft: rgba(67, 56, 202, 0.08);
    --accent-glow: rgba(67, 56, 202, 0.15);

    /* Status Colors */
    --warn: #d97706;
    /* Amber 600 */
    --danger: #dc2626;
    /* Red 600 */
    --success: #16a34a;
    /* Green 600 */

    /* Tracks Colors (softer) */
    --track-1: #e0e7ff;
    /* Indigo 100 */
    --track-2: #dcfce7;
    /* Green 100 */
    --track-3: #f3e8ff;
    /* Purple 100 */
    --track-4: #ffedd5;
    /* Orange 100 */

    /* Typography */
    --text: #111827;
    /* Gray 900 */
    --text-secondary: #4b5563;
    /* Gray 600 */
    --text-tertiary: #9ca3af;
    /* Gray 400 */

    /* Borders */
    --border: #e5e7eb;
    /* Gray 200 */
    --border-strong: #d1d5db;
    /* Gray 300 */

    /* Sizing & Effects */
    --radius: 6px;
    /* Sharper more professional corners */
    --radius-sm: 4px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: 0.2s ease-out;
}

/* --- RESET & BASE --- */
body {
    margin: 0;
    padding: 0;
    background: var(--bg-secondary);
    color: var(--text);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    user-select: none;
    font-size: 12px;
    letter-spacing: 0.1px;
    -webkit-font-smoothing: antialiased;
}

/* --- HEADER --- */
header {
    height: 48px;
    background: var(--bg);
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--border);
    gap: 10px;
    z-index: 100;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

h3 {
    margin: 0;
    font-size: 15px;
    letter-spacing: 0.3px;
    color: var(--text);
    font-weight: 400;
}

h3 span {
    color: var(--accent);
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
}

.sub-title {
    font-size: 9px;
    color: var(--text-tertiary);
    margin-left: 5px;
    font-weight: 400;
}

/* --- BUTTONS --- */
button {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 6px 14px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

button:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

button:active {
    transform: scale(0.97);
}

button.pro-render {
    background: var(--accent);
    color: #fff;
    border: none;
    font-weight: 800;
    font-size: 11px;
    margin-right: 10px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

button.pro-render:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

button.secondary {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

button.secondary:hover {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent);
}

button.reconnect {
    background: var(--danger);
    color: white;
    border: none;
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
    animation: pulseReconnect 2s infinite;
}

@keyframes pulseReconnect {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

/* --- LAYOUT --- */
#main-container {
    display: flex;
    flex-direction: row;
    /* Inspector a la Izquierda, Preview a la Derecha */
    flex: none;
    height: calc(100vh - 48px);
    overflow: hidden;
    background: var(--bg-tertiary);
}

.work-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    min-width: 0;
}

.top-section {
    flex: 1;
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    min-height: 200px;
    background: var(--bg-tertiary);
}

.ad-zone {
    width: 300px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    display: none;
    /* Oculto temporalmente si no hay ads */
}

/* --- PREVIEW --- */
.preview-zone {
    flex: 1;
    background: var(--bg-tertiary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

canvas#canvas {
    max-width: 98%;
    max-height: 95%;
    border: 1px solid var(--border);
    background: #000;
    cursor: default;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

canvas#vizCanvas {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    pointer-events: none;
    opacity: 0.6;
}

/* --- TIMELINE --- */
.timeline-container {
    height: 240px;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    flex-shrink: 0;
    border-top: 1px solid var(--border);
}

.timeline-toolbar {
    padding: 4px 12px;
    background: var(--bg);
    display: flex;
    gap: 6px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    height: 38px;
    box-sizing: border-box;
    overflow: hidden;
}

.ruler-wrapper {
    height: 22px;
    background: var(--bg-secondary);
    position: relative;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.tracks-scroll {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
}

.tracks-wrapper {
    position: relative;
    height: 165px;
}

.track-row {
    height: 44px;
    border-bottom: 1px solid var(--border);
    position: relative;
    background: var(--bg);
    box-sizing: border-box;
}

.track-label {
    position: sticky;
    left: 0;
    top: 0;
    z-index: 20;
    width: 70px;
    height: 100%;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
}

/* --- CLIP ITEMS --- */
.clip-item {
    position: absolute;
    height: 32px;
    top: 6px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.12);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--text);
    text-shadow: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* Sombra más sutil */
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: var(--bg-tertiary);
}

.clip-item:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

@keyframes selectPulse {

    0%,
    100% {
        box-shadow: 0 0 0 1px var(--accent), 0 0 0 3px rgba(67, 56, 202, 0.2);
        border-color: var(--accent);
    }

    50% {
        box-shadow: 0 0 0 1px var(--accent), 0 0 0 5px rgba(67, 56, 202, 0.1);
        border-color: var(--accent-hover);
    }
}

.clip-item.selected {
    animation: selectPulse 2s infinite ease-in-out;
    z-index: 10;
    border-width: 1px;
}

.clip-item.missing {
    border: 2px solid var(--danger);
    opacity: 0.5;
    background-image: none !important;
}

.clip-item.missing::after {
    content: '⚠️';
    font-size: 14px;
}

.clip-name {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    padding: 1px 5px;
    font-size: 8px;
    color: var(--text);
    border-bottom-right-radius: 4px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 4;
    font-weight: 600;
}

/* Track-specific clip colors */
.t-main .clip-item {
    background-color: var(--track-1);
}

.t-overlay .clip-item {
    background-color: var(--track-2);
}

.t-text .clip-item {
    background-color: var(--track-3);
}

.t-audio .clip-item {
    background-color: var(--track-4);
}

/* --- RESIZE HANDLES --- */
.resize-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10px;
    background: rgba(0, 0, 0, 0.05);
    cursor: col-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background var(--transition);
}

.resize-handle:hover {
    background: rgba(59, 130, 246, 0.15);
}

.resize-handle.right {
    right: 0;
}

.resize-handle.left {
    left: 0;
}

.resize-handle::after {
    content: '⋮';
    color: var(--text-tertiary);
    font-size: 8px;
}

/* --- CHAIN LINK / TRANSITIONS --- */
.chain-link {
    position: absolute;
    top: 8px;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 12px;
    z-index: 100;
    text-shadow: none;
    cursor: pointer;
    background: var(--bg);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border);
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.chain-link:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateX(-50%) scale(1.15);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.chain-link.active-trans {
    background: var(--warn);
    color: white;
    border: 1px solid var(--warn);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* --- PLAYHEAD & SNAP --- */
.playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--danger);
    /* Playhead en rojo clásico */
    z-index: 50;
    pointer-events: none;
    box-shadow: 0 0 4px rgba(220, 38, 38, 0.3);
}

.playhead::before {
    content: '';
    position: absolute;
    top: 0;
    left: -5px;
    width: 12px;
    height: 12px;
    background: var(--danger);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.snap-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--accent);
    z-index: 60;
    pointer-events: none;
    display: none;
    box-shadow: 0 0 3px rgba(67, 56, 202, 0.3);
}

.kf-indicator {
    position: absolute;
    bottom: 2px;
    left: 5px;
    width: 6px;
    height: 6px;
    background: var(--warn);
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(245, 158, 11, 0.5);
    display: none;
}

/* --- FOOTER --- */
footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 5px;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 10px;
    flex-shrink: 0;
}

/* --- SIDEBAR (PROPERTIES) --- */
.sidebar {
    width: 320px;
    background: var(--bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100%;
    z-index: 20;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.03);
}

.props-header {
    padding: 10px 15px;
    background: var(--bg);
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    text-transform: uppercase;
    font-size: 11px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.props-content {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
}

.control-group {
    margin-bottom: 12px;
}

label {
    display: block;
    margin-bottom: 4px;
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

input,
select {
    width: 100%;
    box-sizing: border-box;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

input:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    margin: 8px 0;
    background: transparent;
    padding: 0;
    border: none;
}

input[type="range"]:focus {
    outline: none;
    box-shadow: none;
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: var(--border-strong);
    border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type="range"]::-moz-range-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: var(--border-strong);
    border-radius: 4px;
}

input[type="range"]::-moz-range-thumb {
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition);
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* --- STUDIO PANEL (AUDIO) --- */
.studio-panel {
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    padding: 12px;
    border-radius: var(--radius);
    margin-bottom: 15px;
}

.studio-title {
    color: var(--text);
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
    padding-bottom: 6px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

/* --- EQUALIZER --- */
.eq-container {
    display: flex;
    justify-content: space-between;
    height: 100px;
    margin-bottom: 10px;
    align-items: flex-end;
}

.eq-band {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 12%;
}

.eq-slider {
    -webkit-appearance: slider-vertical;
    appearance: slider-vertical;
    width: 100%;
    height: 80px;
    accent-color: var(--accent);
}

.eq-freq {
    font-size: 8px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

/* --- TYPE DISPLAY --- */
.type-display {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 700;
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}

.type-icon {
    font-size: 16px;
}

/* --- CHECKBOXES --- */
.cb-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    cursor: pointer;
}

.cb-container input {
    width: auto;
    margin: 0;
    accent-color: var(--accent);
}

.cb-label {
    color: var(--text);
    font-size: 11px;
    font-weight: 500;
}

/* --- MODALS --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loader {
    border: 3px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    animation: spin 0.8s infinite linear;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- INIT MODAL --- */
#initModal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.ratio-options {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.ratio-card {
    background: var(--bg);
    border: 2px solid var(--border);
    padding: 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition);
    width: 120px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.ratio-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
}

.ratio-icon {
    display: block;
    margin: 0 auto 10px;
    border: 2px solid var(--border-strong);
    background: var(--bg-secondary);
    border-radius: 3px;
}

.ratio-169 {
    width: 64px;
    height: 36px;
}

.ratio-916 {
    width: 36px;
    height: 64px;
}

.ratio-11 {
    width: 48px;
    height: 48px;
}

/* --- CONFIG MODAL --- */
.config-modal-content {
    background: var(--bg);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    width: 360px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow-lg);
}

.neon-btn {
    background: var(--accent);
    color: white;
    font-weight: 700;
    border: none;
    padding: 12px;
    font-size: 13px;
    cursor: pointer;
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.neon-btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
    transform: translateY(-1px);
}

.cancel-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 10px;
    cursor: pointer;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all var(--transition);
}

.cancel-btn:hover {
    background: var(--bg-secondary);
    color: var(--text);
    border-color: var(--border-strong);
}

.error-msg {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
    padding: 10px;
    border-radius: var(--radius-sm);
    margin-top: 10px;
    font-size: 11px;
    display: none;
}

/* --- NAV MENU (DROPDOWN) --- */
.nav-menu {
    position: relative;
    display: inline-block;
    margin-left: 20px;
    z-index: 500;
}

.nav-btn {
    background: transparent;
    color: var(--text-secondary);
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: all var(--transition);
}

.nav-menu:hover .nav-btn {
    background: var(--bg-secondary);
    color: var(--text);
    border-color: var(--border);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg);
    min-width: 170px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    top: 100%;
    left: 0;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text-secondary);
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    font-size: 11px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.dropdown-content a:hover {
    background-color: var(--accent-soft);
    color: var(--accent);
    padding-left: 18px;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.nav-menu:hover .dropdown-content {
    display: block;
}

/* --- INIT MODAL (ONBOARDING) --- */
#initModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at top right, #e0e7ff 0%, #f8f9fa 40%, #ffffff 100%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Outfit', sans-serif;
}

.init-dialog {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 60px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(67, 56, 202, 0.15), 0 0 0 1px rgba(67, 56, 202, 0.05);
    max-width: 800px;
    width: 90%;
    animation: dialogEnter 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes dialogEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.init-title {
    color: var(--text);
    font-weight: 300;
    letter-spacing: 4px;
    margin: 0;
    font-size: 42px;
}

.init-title span {
    color: var(--accent);
    font-weight: 900;
}

.init-subtitle {
    color: var(--text-tertiary);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 5px;
    margin-bottom: 30px;
}

.init-lang-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid var(--border);
    margin-bottom: 40px;
}

.init-lang-select {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    appearance: none;
    padding-right: 15px;
}

.init-prompt {
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 25px;
}

.ratio-options {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.ratio-card {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 20px;
    width: 150px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.ratio-card:hover {
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 20px 25px -5px rgba(67, 56, 202, 0.1), 0 8px 10px -6px rgba(67, 56, 202, 0.1);
    transform: translateY(-8px);
}

.ratio-icon {
    color: var(--text-tertiary);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.ratio-card:hover .ratio-icon {
    color: var(--accent);
}

.ratio-text {
    color: var(--text);
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 4px;
}

.ratio-subtext {
    color: var(--text-tertiary);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}