/* ═══════════════════════════════════════════════════════════════════════
   GLOBAL STYLES
   ═══════════════════════════════════════════════════════════════════════ */

* { 
    box-sizing: border-box; 
}

body { 
    background: #08080c; 
    font-family: 'Outfit', sans-serif; 
    overflow-x: hidden; 
}

/* ═══════════════════════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════════════════════ */

::-webkit-scrollbar { 
    width: 6px; 
    height: 6px; 
}

::-webkit-scrollbar-track { 
    background: #0f1018; 
}

::-webkit-scrollbar-thumb { 
    background: #1e2030; 
    border-radius: 3px; 
}

::-webkit-scrollbar-thumb:hover { 
    background: #2a2e44; 
}

/* ═══════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════ */

@keyframes pulse-dot { 
    0%, 100% { opacity: 1; transform: scale(1); } 
    50% { opacity: 0.5; transform: scale(1.5); } 
}

.pulse-dot { 
    animation: pulse-dot 2s ease-in-out infinite; 
}

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

.fade-up { 
    animation: fadeUp 0.5s ease-out forwards; 
    opacity: 0; 
}

@keyframes slideIn { 
    from { transform: translateX(100%); opacity: 0; } 
    to { transform: translateX(0); opacity: 1; } 
}

@keyframes slideOut { 
    from { transform: translateX(0); opacity: 1; } 
    to { transform: translateX(100%); opacity: 0; } 
}

.toast-in { 
    animation: slideIn 0.3s ease-out forwards; 
}

.toast-out { 
    animation: slideOut 0.3s ease-in forwards; 
}

/* ═══════════════════════════════════════════════════════════════════════
   EFFECTS
   ═══════════════════════════════════════════════════════════════════════ */

.noise::before {
    content: ''; 
    position: absolute; 
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none; 
    z-index: 0;
}

.glow-accent { 
    box-shadow: 0 0 20px rgba(240,180,41,0.15), 0 0 60px rgba(240,180,41,0.05); 
}

/* ═══════════════════════════════════════════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════════════════════════════════════════ */

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a4e6a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; 
    background-position: right 10px center; 
    padding-right: 30px;
}

/* ═══════════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════════════ */

.tool-active {
    background: rgba(240,180,41,0.15) !important;
    border-color: #f0b429 !important;
    color: #f0b429 !important;
}

/* Peak / Bottom marker toggles — "On" visual feedback (classes flipped by
   setMarkerToggleUI in dock.js). Peak = accent yellow, Bottom = bull green. */
.active-peak {
    background: rgba(240,180,41,0.15) !important;
    border-color: rgba(240,180,41,0.6) !important;
    color: #f0b429 !important;
}
.active-bottom {
    background: rgba(34,197,94,0.15) !important;
    border-color: rgba(34,197,94,0.6) !important;
    color: #22c55e !important;
}

/* Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    z-index: 50;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: block;
}

/* ═══════════════════════════════════════════════════════════════════════
   ADDITIONAL ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════ */

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

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

.slide-up {
    animation: slideUp 0.35s ease;
}

.toast-anim {
    animation: slideUp 0.3s ease;
}

/* ═══════════════════════════════════════════════════════════════════════
   TRADING PAGES
   ═══════════════════════════════════════════════════════════════════════ */

.tab-active {
    border-bottom: 2px solid currentColor;
    background: #1a2030;
}

/* ═══════════════════════════════════════════════════════════════════════
   WATCHERS PAGE
   ═══════════════════════════════════════════════════════════════════════ */

.coin-row,
.chart-row {
    transition: background 0.15s ease;
    background: transparent;
}
.coin-row:hover,
.chart-row:hover {
    background: #2a3047;
}
.coin-row:focus-visible,
.chart-row:focus-visible {
    outline: 1px solid #f0b429;
    outline-offset: -1px;
}
.chart-row.active {
    background: rgba(34,197,94,0.06);
}
.chart-row.active:hover {
    background: rgba(34,197,94,0.12);
}

.watch-mini {
    transition: all 0.15s ease;
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.25);
    color: #22c55e;
}
.watch-mini:hover {
    background: rgba(34,197,94,0.18);
    border-color: rgba(34,197,94,0.5);
}
.watch-mini.active {
    background: #22c55e;
    border-color: #22c55e;
    color: #08080c;
    font-weight: 600;
}
.watch-mini.active:hover {
    background: #16a34a;
    border-color: #16a34a;
}
.watch-mini:disabled {
    opacity: 0.5;
    cursor: wait;
}

.alert-row {
    transition: background 0.15s ease;
}
.alert-row:hover {
    background: #2a3047;
}

.badge-enter { background: rgba(34,197,94,0.15);  color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.badge-still  { background: rgba(240,180,41,0.15); color: #f0b429; border: 1px solid rgba(240,180,41,0.3); }
.badge-leave  { background: rgba(239,68,68,0.15);  color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }

/* ═══════════════════════════════════════════════════════════════════════
   KUCOIN PAGE
   ═══════════════════════════════════════════════════════════════════════ */

.scrollbar-thin::-webkit-scrollbar       { width: 5px; }
.scrollbar-thin::-webkit-scrollbar-track { background: #0e1220; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: #1c2338; border-radius: 3px; }
