:root {
    --brand: #e74c3c;
    --brand-dark: #c0392b;
    --brand-light: #fef7f0;
    --bg: #f8f9fa;
    --card: #ffffff;
    --border: #e2e8f0;
    --text: #1a252f;
    --text-muted: #64748b;
}

* { box-sizing: border-box; }
html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.bg-pattern {
    background-image:
        radial-gradient(circle at 25% 25%, rgba(231, 76, 60, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(231, 76, 60, 0.03) 0%, transparent 50%),
        linear-gradient(180deg, #f8f9fa 0%, #f1f3f5 100%);
}

.glass {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.glass-header {
    background: linear-gradient(135deg, #1a252f 0%, #0f1419 100%);
}

.text-brand { color: var(--brand) !important; }
.bg-brand   { background: var(--brand) !important; }
.ring-brand { --tw-ring-color: var(--brand); }

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    box-shadow: 0 4px 14px rgba(231, 76, 60, 0.25);
    transition: all 0.2s ease;
}
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(231, 76, 60, 0.35); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-secondary:hover:not(:disabled) { background: #f8fafc; }
.btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

.input-field {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    background: #fff;
    transition: all 0.2s;
    font-family: inherit;
}
.input-field:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1); }

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(231, 76, 60, 0.15);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.spinner-dot {
    width: 18px; height: 18px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.fade-in { animation: fadeIn 0.4s ease-out both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.success-pop { animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
