
@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/bricolage-grotesque/bricolage-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/assets/fonts/bricolage-grotesque/bricolage-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/bricolage-grotesque/bricolage-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/bricolage-grotesque/bricolage-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/assets/fonts/bricolage-grotesque/bricolage-800.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/assets/fonts/plus-jakarta/plus-jakarta-sans-v12-latin-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/plus-jakarta/plus-jakarta-sans-v12-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/assets/fonts/plus-jakarta/plus-jakarta-sans-v12-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/plus-jakarta/plus-jakarta-sans-v12-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/plus-jakarta/plus-jakarta-sans-v12-latin-700.woff2') format('woff2');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/jetbrains-mono/jetbrains-mono-v24-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/assets/fonts/jetbrains-mono/jetbrains-mono-v24-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/jetbrains-mono/jetbrains-mono-v24-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/orbitron/orbitron-v35-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/orbitron/orbitron-v35-latin-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Orbitron';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('/assets/fonts/orbitron/orbitron-v35-latin-900.woff2') format('woff2');
}

@font-face {
    font-family: 'Space Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/space-mono/space-mono-v17-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Space Mono';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/space-mono/space-mono-v17-latin-700.woff2') format('woff2');
}

:root {
    /* Font Families */
    --font-heading: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Monaco', 'Menlo', 'Courier New', monospace;
    --font-sans: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
   
    /* Font Weights */
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-extrabold: 800;
    
    /* Font Sizes - More Reasonable Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 2.75rem;
    
    /* Line Heights */
    --leading-tight: 1.2;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 1.75;
    
    /* Letter Spacing */
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;

    --bg-primary: #0E1116;
    --bg-secondary: #151A24;
    --glass-fill: rgba(220, 235, 255, 0.08);
    --glass-stroke: rgba(255, 255, 255, 0.18);
    --glass-stroke-bright: rgba(255, 255, 255, 0.38);
    --glass-blur: 18px;
    --text-primary: #E6EBF2;
    --text-secondary: #9AA4B2;
    --text-muted: #6B7280;
    --text-disabled: #4B5563;
    --accent: #2DE2E6;
    --positive: #2BD97C;
    --negative: #FF4D6D;
    --warning: #FBBF24;
    --border-radius: 18px;
    --panel-radius: 20px;
    --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.35);

}

/* Base Typography Reset */
body {
    font-family: var(--font-body);
    font-weight: var(--weight-regular);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    letter-spacing: var(--tracking-normal);
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11'; /* Enable font features */
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(120% 120% at 20% 20%, rgba(45, 226, 230, 0.07), transparent 40%), linear-gradient(140deg, var(--bg-primary) 0%, #0B1220 50%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}


*,
*::before,
*::after {
    box-sizing: border-box;
}


h1, h2, h3, h4, h5 {
    font-family: var(--font-sans);
    margin: 0;
    font-weight: 600;
}

p {
    margin: 0;
}

button {
    font-family: var(--font-sans);
    border: none;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.app-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px 60px;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand .banner {
	position:relative;
	width:100%;
}

.brand .banner img {
	width:100%;
}

.brand .developer {
	position: absolute;
	right:12px;
	top:24px;
	width:48px;
}

.brand .developer button {
	background:var(--glass-stroke);
	margin-bottom:8px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(45, 226, 230, 0.45), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 30px rgba(45, 226, 230, 0.15);
}

.brand-text h1 {
    font-size: 24px;
    letter-spacing: 0.3px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.status-pill {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(220, 235, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 13px;
}

.status-pill.subtle {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.app-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
}

.panel {
    background: var(--glass-fill);
    border: 1px solid var(--glass-stroke);
    border-left: 1px solid var(--glass-stroke-bright);
    border-top: 1px solid var(--glass-stroke-bright);
    border-radius: var(--panel-radius);
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow-soft);
    padding: 12px 16px;
}

.panel.wide {
    grid-column: span 2;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.controls {
    display: flex;
    gap: 10px;
}

.card-actions {
    margin-top: 8px;
    align-items: center;
}

.spacer {
    flex: 1;
}

.primary-btn {
    background: linear-gradient(130deg, rgba(45, 226, 230, 0.9), rgba(45, 226, 230, 0.7));
    color: #0A0D12;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    font-weight: 600;
    border: 1px solid rgba(45, 226, 230, 0.6);
    box-shadow: 0 10px 24px rgba(45, 226, 230, 0.25);
}

.primary-btn:hover {
    transform: translateY(-1px);
}

.secondary-btn {
    background: rgba(220, 235, 255, 0.08);
    color: var(--text-primary);
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.ghost-btn {
    background: transparent;
    color: var(--text-secondary);
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.watch-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 14px;
    position: relative;
    overflow: hidden;
    transition: border 0.2s ease, transform 0.2s ease;
}

.watch-card:hover {
    border-color: rgba(45, 226, 230, 0.35);
    transform: translateY(-1px);
}

.watch-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.watch-title {
    font-size: 16px;
    font-weight: 600;
}

.symbol {
    color: var(--text-secondary);
    font-size: 13px;
}

.sparkline {
    height: 60px;
    margin-top: 8px;
    width: 100%;
}

.price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 10px;
}

.price {
    font-size: 24px;
    font-weight: 700;
}

.change {
    font-size: 14px;
    font-weight: 600;
}

.change.up {
    color: var(--positive);
}

.change.down {
    color: var(--negative);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tag.accent {
    border-color: rgba(45, 226, 230, 0.85);
    color: var(--accent);
    background: rgba(45, 226, 230, 0.15);
}

.tag.up, .tag.positive {
    border-color: rgba(43, 217, 124, 0.9);
    color: #0fdd7b;
    background: rgba(43, 217, 124, 0.16);
}

.tag.down, .tag.negative {
    border-color: rgba(255, 77, 109, 0.9);
    color: #ff4d6d;
    background: rgba(255, 77, 109, 0.16);
}

.list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list .item {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

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

.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.metric {
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.metric .label {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 6px;
}

.metric .value {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.metric .hint {
    color: var(--text-muted);
    font-size: 12px;
}

.activity-log {
    font-family: var(--font-mono);
	margin-top:12px;
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    padding: 12px;
    min-height: 40px;
}

.empty-state {
    text-align: center;
    padding: 30px 0;
    color: var(--text-secondary);
}

.toast {
    font-family: var(--font-mono);
    position: fixed;
    bottom: 40px;
    left: 12px;
    right: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(14, 17, 22, 0.9);
    border: 1px solid rgba(45, 226, 230, 0.45);
    color: var(--text-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    animation: fadeIn 0.25s ease;
}

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

.alert-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255, 189, 89, 0.08);
    border: 1px solid rgba(255, 189, 89, 0.3);
    color: var(--text-primary);
    padding: 12px 14px;
    border-radius: 16px;
    margin-bottom: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 20px;
}

.modal {
    background: rgba(17, 22, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 18px;
    width: min(520px, 100%);
    box-shadow: var(--shadow-soft);
}

.modal h3 {
    margin-bottom: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.input {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-size: 14px;
}

.input:focus {
    outline: 1px solid rgba(45, 226, 230, 0.6);
}

.controls .input[type="number"] {
    width: 120px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

.provider-options {
    display: grid;
    gap: 6px;
    padding: 6px;
}

.provider-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-primary);
}

.suggestions {
    position: relative;
}

.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(14, 17, 22, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 6px;
    margin-top: 4px;
    max-height: 180px;
    overflow-y: auto;
    z-index: 20;
}

.suggestion-item {
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    color: var(--text-primary);
}

.suggestion-item:hover {
    background: rgba(45, 226, 230, 0.08);
}

.suggestion-meta {
    color: var(--text-secondary);
    font-size: 12px;
}

html, body {
    touch-action: pan-x pan-y;
}

@media (max-width: 960px) {
    .app-main {
        grid-template-columns: 1fr;
    }
    .panel.wide {
        grid-column: span 1;
    }
    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .header-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}
