@font-face {
    font-family: 'Spicy Sale';
    src: url('../Spicy Sale.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --color-bg: #1E90FF;
    --color-card: linear-gradient(180deg, #1565C0 0%, #0D47A1 100%);
    --color-card-solid: #1565C0;
    
    --color-text: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.7);
    
    --color-success: #4ade80;
    --color-error: #ef4444;
    --color-warning: #fbbf24;
    
    --font-display: 'Spicy Sale', 'Bangers', cursive;
    --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-button: 0 4px 0 #000;
    
    --transition: 200ms ease;
    
    --header-height: 70px;
    --max-width: 1200px;
}

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

html {
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    line-height: 1.5;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    height: var(--header-height);
    background: var(--color-bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: white;
    text-shadow: 
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000;
}

.nav {
    display: flex;
    gap: 12px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.nav-link.back-link {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-link.back-link:hover {
    background: rgba(255, 255, 255, 0.25);
}

.nav-icon {
    width: 18px;
    height: 18px;
}

.main-content {
    flex: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 24px 60px;
    width: 100%;
}

.footer {
    padding: 24px;
    text-align: center;
    background: rgba(0, 0, 0, 0.1);
}

.footer-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-separator {
    margin: 0 8px;
    opacity: 0.5;
}

.card {
    background: var(--color-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: white;
    border: 3px solid #000;
    border-radius: var(--radius-lg);
    color: #000;
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: var(--shadow-button);
    transition: var(--transition);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #000;
}

.btn-primary:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #000;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.hidden {
    display: none !important;
}

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--color-card-solid);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    animation: slideIn 0.3s ease;
}

.toast.success { border-left: 4px solid var(--color-success); }
.toast.error { border-left: 4px solid var(--color-error); }
.toast.warning { border-left: 4px solid var(--color-warning); }

.toast-icon {
    width: 20px;
    height: 20px;
}

.toast.success .toast-icon { color: var(--color-success); }
.toast.error .toast-icon { color: var(--color-error); }
.toast.warning .toast-icon { color: var(--color-warning); }

.toast-message {
    color: white;
    font-weight: 500;
}

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

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--color-card);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 450px;
    width: 100%;
    box-shadow: var(--shadow-card);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: white;
    text-shadow: 
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000;
}

.modal-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.modal-input-group {
    margin-bottom: 24px;
}

.modal-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.modal-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
}

.modal-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
}

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

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .header-content {
        padding: 0 16px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .nav-link span:not(.nav-icon) {
        display: none;
    }

    .nav-link {
        padding: 10px 14px;
    }

    .main-content {
        padding: 24px 16px 40px;
    }

    .modal-content {
        padding: 24px;
    }

    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}
