* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1a0b2e 0%, #2d1b4e 50%, #1a0b2e 100%);
    min-height: 100vh;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}

body::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    border-radius: 50%;
}

.container {
    max-width: 600px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.page {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: #8B5CF6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-link {
    color: #a78bfa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.back-link:hover {
    color: #c4b5fd;
}

/* Rules Page */
.title-section {
    text-align: center;
    margin-bottom: 40px;
}

.step-badge {
    display: inline-block;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid #8B5CF6;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.title .highlight {
    color: #8B5CF6;
}

.subtitle {
    color: #a0aec0;
    font-size: 16px;
    line-height: 1.6;
}

/* Rule Cards */
.rule-card {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s;
}

.rule-card:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateX(4px);
}

.rule-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8px;
}

.rule-number {
    width: 32px;
    height: 32px;
    background: #8B5CF6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.rule-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.rule-description {
    color: #a0aec0;
    font-size: 14px;
    line-height: 1.6;
    margin-left: 48px;
}

/* Checkbox Agreement */
.agreement {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #8B5CF6;
}

.checkbox-wrapper label {
    color: #a0aec0;
    font-size: 14px;
    line-height: 1.6;
    cursor: pointer;
}

/* Button */
.btn {
    width: 100%;
    background: #8B5CF6;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover:not(:disabled) {
    background: #7C3AED;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Form */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #e2e8f0;
}

.form-input {
    width: 100%;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    color: white;
    font-size: 15px;
    transition: all 0.3s;
}

.form-input::placeholder {
    color: #64748b;
}

.form-input:focus {
    outline: none;
    border-color: #8B5CF6;
    background: rgba(139, 92, 246, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.phone-input {
    display: flex;
    gap: 8px;
}

.phone-prefix {
    width: 80px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 14px 12px;
    color: #a0aec0;
}

.form-help {
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
    line-height: 1.5;
}

.form-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #64748b;
}

/* Success Page */
.success-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
    background: rgba(139, 92, 246, 0.2);
    border: 3px solid #8B5CF6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.6s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-icon svg {
    width: 60px;
    height: 60px;
    stroke: #8B5CF6;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.success-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.2;
}

.success-message {
    text-align: center;
    color: #a0aec0;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 48px;
}

.steps-box {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
}

.steps-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: #a0aec0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 28px;
    height: 28px;
    background: #8B5CF6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text {
    color: #e2e8f0;
    font-size: 15px;
    line-height: 1.6;
    padding-top: 4px;
}

.footer-text {
    text-align: center;
    color: #64748b;
    font-size: 13px;
    margin-top: 40px;
}

@media (max-width: 640px) {
    .title {
        font-size: 28px;
    }

    .success-title {
        font-size: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .rule-description {
        margin-left: 0;
        margin-top: 8px;
    }
}