@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&family=Rajdhani:wght@500;600;700&display=swap');

:root {
    --main-color: #f97316;
    --main-color-glow: rgba(249, 115, 22, 0.35);
    --t-color: #f59e0b;
    --t-color-glow: rgba(245, 158, 11, 0.3);
    --ct-color: #38bdf8;
    --ct-color-glow: rgba(56, 189, 248, 0.3);
    --bg-dark: #070b14;
    --bg-surface: rgba(13, 19, 33, 0.75);
    --bg-card: rgba(15, 23, 42, 0.65);
    --bg-card-hover: rgba(22, 34, 62, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(249, 115, 22, 0.5);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    --font-heading: 'Rajdhani', 'Chakra Petch', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--main-color);
    color: #fff;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: rgba(3, 7, 18, 0.8);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--main-color);
}

/* Ambient Glow Orbs */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
}
.glow-orange {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, var(--main-color) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}
.glow-blue {
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    bottom: -80px;
    left: -80px;
}

/* Loading Spinner Overlay */
#loading {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    position: fixed;
    top: 0;
    left: 0;
    place-items: center;
    align-content: center;
    z-index: 9999;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(7, 11, 20, 0.82);
    display: none;
    flex-direction: column;
    gap: 16px;
    transition: opacity 0.25s ease;
}
#loading[data-loading="true"],
#loading[data-loading] {
    display: flex;
}

.loader-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid rgba(255, 255, 255, 0.08);
    border-top: 4px solid var(--main-color);
    border-right: 4px solid var(--main-color);
    border-radius: 50%;
    animation: spin 0.85s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    box-shadow: 0 0 25px var(--main-color-glow);
}
.loader-text {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Global Buttons & Inputs */
.main-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--main-color), #c2410c);
    border: 1px solid rgba(255, 255, 255, 0.15);
    outline: none;
    color: #fff;
    fill: #fff;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 6px 20px var(--main-color-glow);
}
.main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.45);
    border-color: rgba(255, 255, 255, 0.3);
}
.main-btn:active {
    transform: translateY(0);
}

/* Toast Messages Container */
#messages {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
#messages .message {
    pointer-events: auto;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    display: flex;
    align-items: center;
    gap: 12px;
}
#messages .message.success {
    border-color: rgba(52, 211, 153, 0.4);
    box-shadow: 0 10px 25px rgba(52, 211, 153, 0.2);
}
#messages .message.error {
    border-color: rgba(244, 63, 94, 0.4);
    box-shadow: 0 10px 25px rgba(244, 63, 94, 0.2);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
