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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    background: #f2f2f7;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.47;
    color: #1d1d1f;
}

.main-container {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.container {
    background: rgba(255, 255, 255, 0.8);
    border: 0.5px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.container.form-container {
    max-width: none;
}

/* Header Container Styles */
.container.header-container {
    max-width: none;
    padding: 20px 32px;
    margin-bottom: 0;
}

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

.logo-section {
    flex-shrink: 0;
}

.logo {
    height: 40px;
    width: auto;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.8;
}

.navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
}

.nav-link.active {
    background: rgba(0, 122, 255, 0.15);
    color: #007aff;
    font-weight: 590;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #007aff;
    border-radius: 1px;
}

.container.details-container {
    max-width: none;
    margin-top: 0;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.5px;
    background: rgba(0, 0, 0, 0.1);
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    color: #1d1d1f;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.003em;
}

.header p {
    color: #86868b;
    font-size: 17px;
    font-weight: 400;
    margin-bottom: 0;
}

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

.form-group label {
    display: block;
    color: #1d1d1f;
    font-weight: 590;
    margin-bottom: 8px;
    font-size: 17px;
    letter-spacing: -0.022em;
}

.form-group .help-text {
    color: #86868b;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 400;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 17px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    color: #1d1d1f;
}

.form-group input:focus {
    outline: none;
    border-color: #007aff;
    background: rgba(255, 255, 255, 0.95);
}

.form-group input::placeholder {
    color: #86868b;
    font-weight: 400;
}

.btn {
    width: 100%;
    padding: 16px 24px;
    background: #007aff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 590;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.022em;
}

.btn:hover {
    background: #0056b3;
}

.btn:active {
    background: #004499;
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #86868b;
    transform: none;
}

.message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 400;
    animation: slideIn 0.3s ease;
    font-size: 15px;
}

.message.success {
    background: rgba(52, 199, 89, 0.1);
    color: #1d1d1f;
    border: 0.5px solid rgba(52, 199, 89, 0.2);
}

.message.error {
    background: rgba(255, 59, 48, 0.1);
    color: #1d1d1f;
    border: 0.5px solid rgba(255, 59, 48, 0.2);
}

/* Success Banner */
.success-banner {
    background: rgba(52, 199, 89, 0.1);
    border: 0.5px solid rgba(52, 199, 89, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: slideIn 0.3s ease;
}

.success-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.success-content h3 {
    color: #1d1d1f;
    font-size: 17px;
    font-weight: 590;
    margin: 0 0 6px 0;
    letter-spacing: -0.022em;
}

.success-content p {
    color: #1d1d1f;
    font-size: 15px;
    line-height: 1.47;
    margin: 0;
    opacity: 0.8;
}

.info-box {
    background: rgba(0, 122, 255, 0.05);
    border: 0.5px solid rgba(0, 122, 255, 0.1);
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 20px;
}

.info-box h3 {
    color: #1d1d1f;
    font-size: 15px;
    font-weight: 590;
    margin-bottom: 6px;
    letter-spacing: -0.022em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box h3::before {
    content: "ℹ️";
    font-size: 14px;
}

.info-box p {
    color: #1d1d1f;
    font-size: 13px;
    line-height: 1.47;
    font-weight: 400;
    margin: 0;
    opacity: 0.8;
}

/* License Details Styles */
.license-details {
    margin-top: 24px;
    padding: 20px;
    background: rgba(0, 122, 255, 0.05);
    border: 0.5px solid rgba(0, 122, 255, 0.1);
    border-radius: 8px;
}

.license-details h3 {
    color: #1d1d1f;
    font-size: 17px;
    font-weight: 590;
    margin-bottom: 16px;
    letter-spacing: -0.022em;
}

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

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.6);
    border: 0.5px solid rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

.detail-label {
    font-weight: 590;
    color: #86868b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

.detail-value {
    color: #1d1d1f;
    font-size: 15px;
    font-weight: 400;
    word-break: break-all;
    line-height: 1.47;
}

.detail-value.empty-value {
    color: #ff3b30;
    font-style: italic;
}

.detail-value.status-active {
    color: #34c759;
    font-weight: 590;
}

.detail-value.status-inactive {
    color: #ff3b30;
    font-weight: 590;
}

.detail-value.status-blocked {
    color: #ff9500;
    font-weight: 590;
}

/* Special styling for important fields */
.detail-item.license-code {
    grid-column: 1 / -1;
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

.detail-item.license-code .detail-value {
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 4px;
    border: 0.5px solid rgba(0, 0, 0, 0.05);
}

.detail-item.licensed-domains {
    border-left: 2px solid #007aff;
}

.detail-item.licensed-domains .detail-value.empty-value {
    background: rgba(255, 59, 48, 0.1);
    padding: 8px 12px;
    border-radius: 4px;
    border: 0.5px solid rgba(255, 59, 48, 0.2);
}

.detail-item.status {
    border-left: 2px solid #34c759;
}

/* Step indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    gap: 12px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.step.active {
    background: #3b82f6;
    color: white;
}

.step.completed {
    background: #f1f5f9;
    color: #738297;
}

.step.pending {
    background: #f1f5f9;
    color: #64748b;
}

.step-number {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.step.active .step-number {
    background: rgba(255, 255, 255, 0.2);
}

.step.completed .step-number {
    background: #e2e8f0;
}

.step.pending .step-number {
    background: #e2e8f0;
    color: #64748b;
}

/* Action buttons container */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-secondary {
    background: rgba(142, 142, 147, 0.12);
    color: #1d1d1f;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(142, 142, 147, 0.18);
    border-color: rgba(0, 0, 0, 0.15);
}

/* Form buttons container */
.form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.form-buttons .btn {
    flex: 1;
    width: auto;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    color: #374151;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.btn-reset {
    background: #ff3b30;
    color: white;
}

.btn-reset:hover {
    background: #d70015;
}

.btn-reset:active {
    background: #b30000;
    transform: scale(0.98);
}

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

.loading {
    display: none;
    text-align: center;
    margin-top: 16px;
}

.spinner {
    border: 3px solid #f1f5f9;
    border-top: 3px solid #000000;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Enhanced mobile responsiveness */
@media (max-width: 1024px) {
    .main-container {
        gap: 20px;
    }
}

@media (max-width: 640px) {
    body {
        padding: 16px;
    }
    
    .main-container {
        gap: 20px;
    }
    
    .container {
        padding: 32px 24px;
        margin: 0;
        border-radius: 12px;
    }
    
    .container.header-container {
        padding: 16px 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .logo {
        height: 32px;
    }
    
    .navigation {
        width: 100%;
    }
    
    .nav-list {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .header h1 {
        font-size: 28px;
    }
    
    .header p {
        font-size: 15px;
    }
    
    .form-group input {
        padding: 14px 18px;
        font-size: 16px;
    }
    
    .btn {
        padding: 16px 20px;
        font-size: 15px;
    }
    
    .form-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-buttons .btn {
        width: 100%;
    }
    
    .license-details {
        padding: 20px 16px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .detail-item {
        padding: 14px;
    }
    
    .detail-label {
        font-size: 11px;
    }
    
    .detail-value {
        font-size: 14px;
    }
    
    .step-indicator {
        flex-direction: column;
        gap: 8px;
    }
    
    .step {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .empty-state {
        padding: 40px 20px;
    }
    
    .empty-state-icon {
        font-size: 36px;
    }
    
    .success-banner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .success-icon {
        font-size: 28px;
    }
    
    .success-content h3 {
        font-size: 16px;
    }
    
    .success-content p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 24px 20px;
    }
    
    .container.header-container {
        padding: 12px 16px;
    }
    
    .logo {
        height: 28px;
    }
    
    .nav-list {
        gap: 12px;
    }
    
    .nav-link {
        font-size: 13px;
        padding: 5px 10px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .header {
        margin-bottom: 32px;
    }
}
