:root {
    --kinzy-purple: #8A4FFF;
    --kinzy-light-purple: #A77BFF;
    --kinzy-dark-purple: #6A3CC7;
    --kinzy-orange: #FF9042;
    --kinzy-white: #FFFFFF;
    --kinzy-light-grey: #F2F2F2;
    --kinzy-grey: #DDDDDD;
    --kinzy-black: #333333;
    
    --primary-color: #8A4FFF;
    --secondary-color: #A77BFF;
    --accent-color: #FF9042;
    --text-color: #333333;
    --text-light: #6B7280;
    --background-color: var(--kinzy-light-grey);
    --card-color: var(--kinzy-white);
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: var(--kinzy-purple);
}

/* Main Container */
.main-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 70px 0 0 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Loading Container */
.loading-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 300px;
    margin: 40px auto;
}

.spinner {
    border: 6px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 6px solid var(--primary-color);
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 20px;
    color: var(--primary-color);
    font-weight: 500;
}

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

/* Error Display */
.error-container {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.error-icon {
    font-size: 4rem;
    color: #EF4444;
    margin-bottom: 20px;
}

.error-title {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.error-description {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.error-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.error-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 4px;
    background-color: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

/* Footer */
footer {
    background-color: var(--kinzy-purple);
    color: var(--kinzy-white);
    padding: 40px 20px 20px;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-text {
    margin-bottom: 20px;
    line-height: 1.5;
}

.footer-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.footer-btn {
    display: flex;
    align-items: center;
    background-color: var(--kinzy-white);
    color: var(--kinzy-purple);
    padding: 15px 30px;
    border-radius: 30px;
    gap: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.footer-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.footer-btn i {
    font-size: 24px;
}

.copyright {
    font-size: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 20px;
    opacity: 0.8;
}

.terms-links {
    margin-top: 10px;
}

.terms-links a {
    color: var(--kinzy-white);
    text-decoration: none;
    margin: 0 10px;
    opacity: 0.8;
}

.terms-links a:hover {
    text-decoration: underline;
    opacity: 1;
}