/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 140, 66, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    z-index: -1;
}

/* Server Status */
.server-status {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    z-index: 1000;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.5);
}

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

.server-info {
    font-size: 13px;
    color: #a1a1aa;
    line-height: 1.4;
}

/* Header */
.header {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: #ff6b35;
    text-shadow: 0 0 16px rgba(255, 107, 53, 0.3);
    letter-spacing: 3px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-indicator {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #a1a1aa;
    font-weight: 500;
    font-size: 14px;
}

.progress-bar {
    width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #ff8c42);
    width: 33.33%;
    border-radius: 3px;
    transition: width 0.5s ease;
    box-shadow: 0 0 12px rgba(255, 107, 53, 0.4);
}

/* Main Container */
.register-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
}

.register-box {
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 107, 53, 0.1);
    border-radius: 16px;
    padding: 32px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Register Header */
.register-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.page-subtitle {
    font-size: 16px;
    color: #a1a1aa;
    margin-bottom: 32px;
    font-weight: 400;
    line-height: 1.4;
}

.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.progress-step {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #71717a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.progress-step.active {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
    transform: translateY(-1px);
}

.progress-arrow {
    color: #3f3f46;
    font-size: 14px;
    font-weight: bold;
}

/* Messages */
.error-message {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.2);
}

.success-message {
    background: linear-gradient(135deg, #059669, #10b981);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.2);
}

.error-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* Form Sections */
.form-section {
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(15px);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-icon {
    font-size: 18px;
    filter: grayscale(0.2);
}

/* Form Rows and Groups */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Labels */
.form-label {
    display: block;
    font-weight: 600;
    color: #f4f4f5;
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: -0.01em;
}

.required {
    color: #ff6b35;
    margin-left: 3px;
    font-size: 14px;
}

/* Inputs */
.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-height: 44px;
}

.form-input:focus {
    outline: none;
    border-color: #ff6b35;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 0 0 2px rgba(255, 107, 53, 0.1),
        0 4px 12px rgba(255, 107, 53, 0.1);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: #71717a;
    font-weight: 400;
}

.form-input.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

/* Password Groups */
.password-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #71717a;
    cursor: pointer;
    font-size: 16px;
    padding: 6px;
    z-index: 2;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.password-toggle:hover {
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
}

/* Help Text */
.form-help {
    font-size: 12px;
    color: #71717a;
    margin-top: 6px;
    line-height: 1.4;
    font-weight: 400;
}

/* Form Errors */
.form-error {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
    padding: 8px 12px;
    background: rgba(239, 68, 68, 0.05);
    border-radius: 6px;
    border-left: 3px solid #ef4444;
    font-weight: 500;
}

/* Checkboxes */
.checkbox-group {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.checkbox-input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #ff6b35;
    cursor: pointer;
}

.checkbox-label {
    color: #e4e4e7;
    line-height: 1.5;
    cursor: pointer;
    font-weight: 400;
    font-size: 14px;
}

.checkbox-label a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.checkbox-label a:hover {
    color: #ff8c42;
    text-decoration: underline;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Buttons */
.submit-btn {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
    text-transform: none;
    letter-spacing: -0.01em;
    min-width: 220px;
    justify-content: center;
    min-height: 44px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, #ff8c42, #ffab40);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(3px);
}

.btn-full {
    width: 100%;
    min-width: auto;
}

/* Login Link */
.login-link {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a1a1aa;
    font-weight: 400;
    font-size: 14px;
}

.login-link a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: #ff8c42;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 0 16px;
    }
    
    .logo {
        font-size: 24px;
        letter-spacing: 2px;
    }
    
    .progress-indicator {
        flex-direction: column;
        gap: 8px;
    }
    
    .progress-bar {
        width: 160px;
    }
    
    .register-container {
        margin: 20px auto;
        padding: 0 16px;
    }
    
    .register-box {
        padding: 24px 20px;
        border-radius: 12px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-section {
        padding: 20px 16px;
        margin-bottom: 24px;
    }
    
    .section-title {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .progress-steps {
        flex-direction: column;
        gap: 8px;
    }
    
    .progress-arrow {
        transform: rotate(90deg);
    }
    
    .form-actions {
        margin-top: 20px;
        padding-top: 16px;
    }
    
    .submit-btn {
        min-width: auto;
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .server-status {
        position: relative;
        top: auto;
        right: auto;
        margin: 12px;
        text-align: center;
    }
}

/* Step-specific styles */
.step-1 .progress-fill { width: 33.33%; }
.step-2 .progress-fill { width: 66.66%; }
.step-3 .progress-fill { width: 100%; }

/* Progress step completed state */
.progress-step.completed {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border-color: rgba(76, 175, 80, 0.3);
}

/* Spawn Location Cards */
.spawn-locations {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.spawn-card {
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.spawn-card:hover {
    border-color: rgba(255, 107, 53, 0.3);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.spawn-card.selected {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.05);
    box-shadow: 0 0 0 1px rgba(255, 107, 53, 0.2);
}

.spawn-selector {
    display: block;
    cursor: pointer;
    width: 100%;
}

.spawn-selector input[type="radio"] {
    display: none;
}

.spawn-content {
    padding: 24px;
}

.spawn-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.location-image {
    position: relative;
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.location-icon {
    font-size: 24px;
    filter: grayscale(0.3);
}

.selection-indicator {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: #ff6b35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.spawn-card.selected .selection-indicator {
    opacity: 1;
    transform: scale(1);
}

.checkmark {
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.location-info {
    flex: 1;
}

.location-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.location-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.location-tags span {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.danger-tag.low {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.danger-tag.medium {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.danger-tag.high {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.danger-tag.extreme {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.area-tag, .state-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #a1a1aa;
}

.spawn-description {
    margin-bottom: 16px;
}

.spawn-description p {
    color: #b0b0b0;
    line-height: 1.5;
    font-size: 14px;
}

.spawn-stats {
    margin-bottom: 16px;
}

.stat-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.stat-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 12px;
    color: #71717a;
    font-weight: 500;
}

.stat-value {
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
}

.spawn-actions {
    display: flex;
    justify-content: center;
}

.details-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 16px;
    color: #a1a1aa;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.details-btn:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
    color: #ff6b35;
}

/* Secondary Button */
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px 24px;
    color: #a1a1aa;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-height: 44px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Form Actions for two buttons */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 16px;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: rgba(15, 15, 15, 0.98);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.modal-subtitle {
    font-size: 14px;
    color: #a1a1aa;
}

.close-btn {
    background: none;
    border: none;
    color: #71717a;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.close-icon {
    font-size: 16px;
}

.modal-body {
    padding: 24px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.detail-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
}

.detail-section.full-width {
    grid-column: 1 / -1;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.section-icon {
    font-size: 16px;
}

.condition-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.condition-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.condition-label {
    font-size: 13px;
    color: #a1a1aa;
    font-weight: 500;
}

.condition-value {
    font-size: 13px;
    color: #ffffff;
    font-weight: 600;
}

.condition-bar-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 120px;
}

.condition-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.bar-text {
    font-size: 12px;
    color: #a1a1aa;
    font-weight: 500;
    min-width: 50px;
    text-align: right;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.resource-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 16px;
}

.resource-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.resource-icon {
    font-size: 14px;
}

.resource-name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.resource-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.resource-bar-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bar-label {
    font-size: 11px;
    color: #71717a;
    min-width: 60px;
}

.resource-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.resource-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.bar-percentage {
    font-size: 11px;
    color: #a1a1aa;
    min-width: 30px;
    text-align: right;
}

.equipment-content, .features-content {
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.5;
}

.no-resources {
    color: #71717a;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Mobile Modal Adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .detail-section.full-width {
        grid-column: 1;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-group {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-secondary, .submit-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Character Creation Specific Styles */

/* Radio Grids for Character Options */
.radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.radio-option {
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

.radio-option:hover {
    border-color: rgba(255, 107, 53, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.radio-option.selected {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.05);
    box-shadow: 0 0 0 1px rgba(255, 107, 53, 0.2);
}

.radio-option input[type="radio"] {
    display: none;
}

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

.option-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

.option-description {
    font-size: 12px;
    color: #a1a1aa;
    line-height: 1.4;
}

/* Profession Grid */
.profession-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.profession-option {
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

.profession-option:hover {
    border-color: rgba(255, 107, 53, 0.3);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
}

.profession-option.selected {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.05);
    box-shadow: 0 0 0 1px rgba(255, 107, 53, 0.2);
}

.profession-option input[type="radio"] {
    display: none;
}

.profession-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.profession-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 4px;
}

.profession-info {
    flex: 1;
}

.profession-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.profession-description {
    font-size: 13px;
    color: #a1a1aa;
    line-height: 1.5;
    margin-bottom: 8px;
}

.profession-bonus {
    font-size: 12px;
    font-weight: 600;
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.stat-info {
    flex: 1;
}

.stat-name {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    display: block;
}

.stat-description {
    font-size: 12px;
    color: #a1a1aa;
    line-height: 1.4;
}

.stat-select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    min-width: 60px;
    text-align: center;
}

.stat-select:focus {
    outline: none;
    border-color: #ff6b35;
    background: rgba(255, 255, 255, 0.08);
}

.stat-select option {
    background: #1a1a1a;
    color: #ffffff;
}

/* Stats Note */
.stats-note {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    color: #ff9800;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

/* Live Points Counter */
.points-counter-live {
    background: rgba(33, 150, 243, 0.1);
    border: 2px solid rgba(33, 150, 243, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.points-counter-live.low {
    background: rgba(255, 152, 0, 0.1);
    border-color: rgba(255, 152, 0, 0.3);
}

.points-counter-live.perfect {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
}

.points-counter-live.over-limit {
    background: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.3);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.counter-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.counter-label {
    font-size: 16px;
    font-weight: 600;
    color: #a1a1aa;
}

.counter-value {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    min-width: 40px;
    text-align: center;
}

.points-counter-live.perfect .counter-value {
    color: #4caf50;
}

.points-counter-live.low .counter-value {
    color: #ff9800;
}

.points-counter-live.over-limit .counter-value {
    color: #f44336;
}

.counter-total {
    font-size: 16px;
    font-weight: 600;
    color: #71717a;
}

.counter-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.counter-bar-fill {
    height: 100%;
    background: #2196f3;
    border-radius: 4px;
    transition: all 0.4s ease;
    width: 0%;
}

/* Points Warning */
.points-warning {
    grid-column: 1 / -1;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.warning-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.warning-text {
    color: #f44336;
    font-size: 14px;
    font-weight: 600;
}

/* Profession Bonus Display */
.profession-bonus-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 6px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bonus-icon {
    font-size: 16px;
}

.bonus-text {
    color: #ff6b35;
    font-size: 12px;
    font-weight: 600;
}

/* Stat Items with Bonuses */
.stat-item.has-bonus {
    border-color: rgba(255, 107, 53, 0.3);
    background: rgba(255, 107, 53, 0.02);
}

.stat-item.has-bonus .stat-name {
    color: #ff6b35;
}

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.summary-label {
    font-size: 13px;
    color: #a1a1aa;
    font-weight: 500;
}

.summary-value {
    font-size: 13px;
    color: #ffffff;
    font-weight: 600;
}

/* Points Counter (dynamically added) */
.points-counter {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

/* Mobile Adjustments for Character Creation */
@media (max-width: 768px) {
    .radio-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .profession-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .profession-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Smooth animations */
.register-box {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff8c42, #ffab40);
}