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

:root {
    --green: #00c853;
    --green-dark: #00a844;
    --green-light: rgba(0, 200, 83, 0.2);
    --bg-dark: #111827;
    --bg-card: rgba(31, 41, 55, 0.5);
    --border: #374151;
    --text: #ffffff;
    --text-gray: #9ca3af;
    --text-dark: #6b7280;
    --yellow: #eab308;
    --red: #ef4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(to bottom, #111827, #000000);
    min-height: 100vh;
    color: var(--text);
}

.container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-btn {
    padding: 0.5rem;
    color: var(--text-gray);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
}

.back-btn:hover {
    color: var(--text);
}

.header-title {
    font-size: 1.125rem;
    font-weight: 700;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 0;
}

.logo-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--green);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
}

.logo-text span {
    color: var(--green);
}

/* Cards */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(55, 65, 81, 0.5);
    margin: 0 1.5rem;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.step-circle.completed {
    background: var(--green);
    color: white;
}

.step-circle.active {
    background: var(--green);
    color: white;
    box-shadow: 0 0 0 4px rgba(0, 200, 83, 0.3);
}

.step-circle.pending {
    background: #374151;
    color: var(--text-gray);
}

.step-label {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.step-label.active {
    color: var(--green);
}

.progress-line {
    flex: 1;
    height: 4px;
    background: #374151;
    margin: 0 0.5rem;
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.progress-line.completed {
    background: var(--green);
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    color: var(--text-gray);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    background: rgba(55, 65, 81, 0.5);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(0, 200, 83, 0.2);
}

.form-input::placeholder {
    color: var(--text-dark);
}

.form-select {
    width: 100%;
    background: rgba(55, 65, 81, 0.5);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
}

.form-select:focus {
    outline: none;
    border-color: var(--green);
}

.form-select option {
    background: #1f2937;
    color: var(--text);
}

/* Buttons */
.btn {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: var(--green);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 200, 83, 0.25);
}

.btn-primary:hover {
    background: var(--green-dark);
    transform: scale(1.02);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: #374151;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

/* Vehicle Selection */
.vehicle-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.vehicle-option {
    padding: 1rem;
    border-radius: 0.75rem;
    border: 2px solid var(--border);
    background: rgba(55, 65, 81, 0.3);
    color: var(--text-gray);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.vehicle-option:hover {
    border-color: var(--text-gray);
}

.vehicle-option.active {
    background: var(--green-light);
    border-color: var(--green);
    color: var(--green);
}

.vehicle-option input {
    display: none;
}

.vehicle-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* File Upload */
.file-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 2px dashed var(--border);
    background: rgba(55, 65, 81, 0.3);
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload:hover {
    border-color: var(--text-gray);
}

.file-upload.has-file {
    background: var(--green-light);
    border-color: var(--green);
    color: var(--green);
}

.file-upload input {
    display: none;
}

/* Integration Options */
.integration-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.integration-option {
    padding: 1rem;
    border-radius: 0.75rem;
    border: 2px solid var(--border);
    background: rgba(55, 65, 81, 0.3);
    color: var(--text-gray);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.integration-option.active {
    background: var(--green-light);
    border-color: var(--green);
    color: var(--green);
}

.integration-option input {
    display: none;
}

/* Alert Boxes */
.alert {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.875rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}

.alert-success {
    background: rgba(0, 200, 83, 0.2);
    border: 1px solid rgba(0, 200, 83, 0.5);
    color: var(--green);
}

.alert-warning {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: var(--yellow);
}

/* Status Card */
.status-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border-radius: 1rem;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

.status-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.status-icon.locked {
    background: rgba(55, 65, 81, 0.5);
}

.status-icon.warning {
    background: rgba(234, 179, 8, 0.2);
}

.status-icon.success {
    background: var(--green-light);
}

/* Earnings Simulation */
.earnings-box {
    background: var(--green-light);
    border: 1px solid rgba(0, 200, 83, 0.3);
    border-radius: 1rem;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.earnings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.earnings-label {
    color: var(--text-gray);
}

.earnings-value {
    color: var(--text);
    font-weight: 700;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.25rem;
    accent-color: var(--green);
}

.checkbox-group label {
    color: var(--text-gray);
    font-size: 0.875rem;
    line-height: 1.5;
}

.checkbox-group a {
    color: var(--green);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Link Buttons */
.link-btn {
    background: none;
    border: none;
    color: var(--green);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.5rem;
}

.link-btn:hover {
    text-decoration: underline;
}

.text-center {
    text-align: center;
}

.text-gray {
    color: var(--text-gray);
}

.text-sm {
    font-size: 0.875rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.flex-1 {
    flex: 1;
}

/* Loader */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.loader-spinner {
    width: 4rem;
    height: 4rem;
    border: 4px solid rgba(0, 200, 83, 0.3);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    color: white;
    margin-top: 1.5rem;
    font-size: 1.125rem;
    animation: pulse 2s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Success Animation */
.success-icon {
    width: 6rem;
    height: 6rem;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 30px rgba(0, 200, 83, 0.3);
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.feature-item {
    background: rgba(55, 65, 81, 0.3);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.feature-text {
    font-size: 0.875rem;
    color: var(--text);
}

/* Stats */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* Footer */
.footer {
    padding: 1.5rem;
    text-align: center;
}

.footer-text {
    color: var(--text-dark);
    font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
    }

    .card {
        margin: 0 1rem;
        padding: 1.25rem;
    }

    .progress-bar {
        padding: 1rem;
    }

    .step-circle {
        width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
    }

    .step-label {
        font-size: 0.625rem;
    }
}
