:root {
    --color-bg-dark: #181818;
    --color-surface: #383838;
    --color-surface-hover: #404040;
    --color-text-primary: #efefef;
    --color-text-secondary: rgba(239, 239, 239, 0.75);
    --color-text-dark: #383838;
    --color-accent: #abe2c2;
    --color-accent-hover: #8cb89f;
    --color-accent-purple: #c4a0d0;
    --color-error: #ff6b6b;
    --color-success: #4caf50;
    --font-family: 'Inter', sans-serif;
}

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

html {
    height: 100%;
    background: rgb(54, 54, 54);
}

body {
    height: 100%;
    font-family: var(--font-family);
    font-size: 16px;
    color: var(--color-text-primary);
    background: linear-gradient(147.47deg, rgb(54, 54, 54) 8.13%, rgb(24, 24, 24) 89.63%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app {
    height: 100%;
}

/* Full-width background layer */
.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-dark);
    z-index: -1;
}

/* Content container - max-width 900px, centered */
.content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

/* Primary CTA button - mint green */
.btn-primary {
    width: 100%;
    height: 74px;
    background: var(--color-accent);
    color: var(--color-text-dark);
    border: none;
    border-radius: 20px;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.1px;
    line-height: 22px;
    cursor: pointer;
    transition: background-color 200ms;
    box-shadow: 1px 4px 4px 0px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
}

.btn-primary:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

.btn-primary:disabled {
    background: #383838;
    color: var(--color-text-primary);
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-primary .btn-arrow {
    color: var(--color-success);
}

/* Secondary button - gray */
.btn-secondary {
    width: 100%;
    height: 74px;
    background: var(--color-surface);
    color: var(--color-text-primary);
    border: none;
    border-radius: 20px;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.1px;
    line-height: 22px;
    cursor: pointer;
    transition: background-color 200ms;
    box-shadow: 1px 4px 4px 0px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: #484848;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 2px;
}

/* Loading screen */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 16px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-surface);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-text {
    color: rgba(239, 239, 239, 0.5);
    font-size: 14px;
}

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

@keyframes toast-slide-in {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes modal-scale-in {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes fade-scale-in {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Blazor error UI */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #333;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
