:root {
    --color-primary: #8b5cf6;
    --color-secondary: #06b6d4;
    --color-pink: #ec4899;
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.8);
    --color-text-muted: rgba(255, 255, 255, 0.6);
    --color-text-placeholder: #9ca3af;
    --color-bg-dark: #0f0f23;
    --color-bg-card: rgba(255, 255, 255, 0.05);
    --color-border: rgba(255, 255, 255, 0.1);
    --color-success: #22c55e;
    --color-processing: #3b82f6;
    --color-draft: #f59e0b;
    --color-danger: #ef4444;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', 'Arial', sans-serif;
    background: linear-gradient(137deg, #0f0f23 0%, #1a1a3a 70.9%, #2d1b69 141.8%);
    color: var(--color-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(164deg, var(--color-primary) 0%, var(--color-secondary) 233.09%);
    color: var(--color-text-primary);
    box-shadow: 0px 10px 30px 0px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0px 12px 35px 0px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-text-primary);
    backdrop-filter: blur(1px);
}

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

/* Generic loader styles for global and step loaders */
.card-loading {
    display: none;
    align-items: center;
    justify-content: center;
}

.card-loading.active {
    display: flex;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.loader .spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--color-primary), var(--color-secondary));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 0);
    mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 0);
    animation: rotate 1s linear infinite;
}

.loader .loader-text {
    color: var(--color-text-secondary);
    font-weight: 600;
    font-size: 14px;
}

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