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

:root {
    --accent: #f2b749;
    --bg: #1a1a1c;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: #1a1a1c;
    color: #ffffff;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.hidden {
    display: none !important;
}

/* Header */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 5%;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2100;
    background: #1a1a1c; /* Solid background to prevent overlap transparency issues */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    cursor: pointer;
}

.logo .box {
    background: var(--accent);
    color: #000;
    padding: 4px 10px;
    border-radius: 6px;
}

.header-nav {
    display: flex;
    gap: 30px;
}

.header-nav a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

.header-nav a:hover, .header-nav a.active {
    color: #fff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-input-wrap {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 0px 18px;
    width: 100%;
}

.search-input-wrap input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    outline: none;
    font-size: 13px;
    margin: 0;
}

.btn-login {
    background: var(--accent);
    color: #000;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-size: 13px;
    margin: 0;
}

.loader {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

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

/* Profile Styles */
.profile-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 12px;
}

#auth-screen, #demo-block-screen {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: rgba(30, 30, 32, 0.98) !important;
    padding: 40px !important;
    border-radius: 24px !important;
    width: 90% !important;
    max-width: 400px !important;
    z-index: 9999 !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin: 0 !important;
}

.center-box h2 {
    margin-top: 0;
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
}

.center-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 12px;
    color: #fff;
    margin-bottom: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.center-box input:focus {
    border-color: var(--accent);
}

.center-box button {
    width: 100%;
    background: var(--accent);
    color: #000;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s;
}

.center-box button:active {
    transform: scale(0.98);
}

.center-box button.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    margin-top: 10px;
}

/* Auth Background */
#auth-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
    z-index: 1;
}

.auth-bg-rotated {
    position: absolute;
    top: -25%;
    left: -25%;
    width: 150%;
    height: 150%;
    transform: rotate(-15deg);
}

.auth-bg-scroll {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.auth-bg-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: scrollBg 60s linear infinite;
}

.auth-bg-col:nth-child(even) {
    animation-direction: reverse;
}

.auth-bg-col img {
    width: 180px;
    border-radius: 10px;
    opacity: 0.3;
    filter: grayscale(0.2);
}

@keyframes scrollBg {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.auth-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, #1a1a1c 90%);
    z-index: 2;
}

@media (max-width: 768px) {
    .top-header {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    .header-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
}

/* Extracted inline styles and utilities */
.btn-api-key-toggle {
    margin-top: 20px;
    background: none !important;
    border: none !important;
    color: #888 !important;
    cursor: pointer;
}

.demo-ended-title {
    color: #f44336;
}

.demo-ended-desc {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.5;
}

.demo-ended-link {
    display: block;
    margin-top: 15px;
    color: #888;
    font-size: 0.8rem;
}

.search-icon-wrap {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    color: #fff;
}

.profile-key-status {
    margin: 10px 0;
    color: #888;
}

.profile-key-subtext {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.profile-key-link {
    color: #f2b749;
}

.btn-sm {
    padding: 8px 20px !important;
    font-size: 14px !important;
}

.btn-xs {
    padding: 5px 15px !important;
}

.mt-5 {
    margin-top: 5px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-15 {
    margin-top: 15px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.my-15 {
    margin: 15px 0;
}

.flex-between-spaced {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-dialog-sm {
    max-width: 500px !important;
}

.modal-dialog-md {
    max-width: 600px !important;
}

.modal-flex-row {
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-select-field {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    border-radius: 5px;
}

.modal-action-row {
    margin: 15px 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.flex-1-no-margin {
    flex: 1;
    margin: 0 !important;
}

.btn-inline-add {
    width: auto !important;
    margin-top: 0 !important;
    padding: 14px 25px !important;
}

.loader-centered {
    margin: 50px auto !important;
}

.nav-badge {
    background: #ff3333;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    padding: 0 4px;
    vertical-align: middle;
    line-height: 1;
}
