/* ============================================
   ENTERPRISE-GRADE DARK THEME
   Modern, Professional, Futuristic Design
   ============================================ */

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

:root {
    /* Color Palette */
    --primary-color: #6366F1;
    --secondary-color: #8B5CF6;
    --accent-color: #10B981;
    --background-dark: #0A0A0F;
    --surface-color: #1A1A24;
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-bg: rgba(26, 26, 36, 0.7);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    --gradient-accent: linear-gradient(135deg, #10B981 0%, #059669 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.5);
    --glow-primary: 0 10px 30px rgba(239, 68, 68, 0.2);
    --glow-hover: 0 12px 35px rgba(239, 68, 68, 0.4);
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Animation Properties */
    --ripple-size: 300px;
    
    /* SVG Icons */
    --dropdown-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236366F1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background-dark);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Animated Gradient Orbs Background */
body::before {
    content: '';
    position: fixed;
    top: -300px;
    right: -300px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: float 20s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -200px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: float 25s ease-in-out infinite reverse;
    z-index: 0;
    pointer-events: none;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Header Styles */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
    transition: all 0.3s ease;
    position: sticky;
    top: 1rem;
    z-index: 100;
}

.header.hidden {
    transform: translateY(-120%);
    opacity: 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

.header h1 {
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.company-logo {
    display: flex;
    align-items: center;
    background: #000000;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.company-logo:hover {
    box-shadow: 0 6px 20px rgba(123, 193, 67, 0.4);
    transform: translateY(-2px) scale(1.02);
}

.agilysys-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    display: block;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-color);
    backdrop-filter: blur(10px);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color);
    animation: pulse 2s infinite;
}

/* Main Content */
.main-content {
    animation: fadeInUp 1s ease-out;
    position: relative;
}

/* Grid Overlay for Hero Section */
.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    opacity: 0.3;
    z-index: 0;
}

/* Card Styles */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--glow-primary);
    border-color: rgba(99, 102, 241, 0.3);
}

.card-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.card-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Form Styles */
.form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.label-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.form-select {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    background-image: var(--dropdown-arrow);
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 20px;
    padding-right: 3rem;
}

.form-select:hover {
    border-color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.05);
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background-color: var(--surface-color);
}

.form-select option {
    background: var(--surface-color);
    color: var(--text-primary);
    padding: 0.75rem;
}

/* Form Input */
.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-input:hover {
    border-color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.05);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background-color: var(--surface-color);
}

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

/* Validate Tenant Button - Override margin-top for smaller gap */
.validate-tenant-btn {
    margin-top: 0.75rem;
}

/* Customer Name Display */
.customer-name-display {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    color: var(--accent-color);
    font-size: 0.95rem;
    font-weight: 500;
}

.customer-name-display.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

/* Tenant Select Container */
.tenant-select-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tenant-search {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.tenant-search:focus {
    background: rgba(99, 102, 241, 0.05);
}

.tenant-search::placeholder {
    color: var(--text-secondary);
    font-style: italic;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

.btn:active::before {
    width: var(--ripple-size);
    height: var(--ripple-size);
}

.btn-icon {
    width: 20px;
    height: 20px;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-primary:active {
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--surface-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.btn-secondary:active {
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Alert Styles */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(10px);
    border: 1px solid;
    animation: fadeInUp 0.5s ease-out;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #FCA5A5;
    border-color: rgba(239, 68, 68, 0.3);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #6EE7B7;
    border-color: rgba(16, 185, 129, 0.3);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #FCD34D;
    border-color: rgba(245, 158, 11, 0.3);
}

/* Result Container */
.result-container {
    margin-top: 2rem;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--glow-primary);
    border-color: rgba(99, 102, 241, 0.3);
}

.info-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.info-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 2;
}

.info-icon-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #60A5FA;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.info-icon-green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.info-icon-purple {
    background: rgba(139, 92, 246, 0.1);
    color: #A78BFA;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.info-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.info-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 4rem;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Add red glow effect to Production Environment Setup modal */
#confirmationModal .modal-content {
    box-shadow: var(--shadow-xl), var(--glow-hover);
}

/* Add red glow effect to Ngrok Setup Progress modal */
#setupProgressModal .modal-content {
    box-shadow: var(--shadow-xl), var(--glow-hover);
}

/* Add red glow effect to Select Target Operating System modal */
#osSelectionModal .modal-content {
    box-shadow: var(--shadow-xl), var(--glow-hover);
}

/* Download Success Modal Styles */
#downloadSuccessModal .modal-content {
    box-shadow: var(--shadow-xl), 0 10px 30px rgba(16, 185, 129, 0.3);
    max-width: 600px;
}

.modal-success .modal-header {
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 2rem 1.5rem;
}

.success-icon-large {
    width: 64px;
    height: 64px;
    color: var(--accent-color);
    stroke-width: 2;
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.download-success-message {
    text-align: left;
}

.success-text {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem !important;
    line-height: 1.6;
}

.next-steps-container {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border-left: 3px solid var(--accent-color);
    margin-bottom: 1.5rem;
}

.next-steps-container h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.instructions-list {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin: 0;
}

.instructions-list li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.instructions-list li:last-child {
    margin-bottom: 0;
}

.instructions-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--gradient-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.info-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.info-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.info-note span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-body p {
    margin-bottom: 1.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Confirmation Modal Specific Styles */
.confirmation-message {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 1.25rem !important;
}

.confirmation-details {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.25rem;
    border-left: 3px solid var(--primary-color);
}

.confirmation-details li {
    padding: 0.5rem 0;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.confirmation-details li:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.confirmation-details strong {
    display: inline-block;
    min-width: 100px;
    color: var(--text-secondary);
    font-weight: 600;
}

.confirmation-details span {
    color: var(--text-primary);
}

.confirmation-question {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0 !important;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-color);
}

.progress-step.success {
    border-left-color: var(--accent-color);
    background: rgba(16, 185, 129, 0.05);
}

.progress-step.loading {
    border-left-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.08);
}

.progress-step.error {
    border-left-color: #EF4444;
    background: rgba(239, 68, 68, 0.05);
}

.step-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.step-icon.check {
    color: var(--accent-color);
}

.step-icon.spinner {
    color: var(--primary-color);
    animation: spin 1s linear infinite;
}

.step-text {
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* OS Selection Styles */
.os-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.os-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2.5rem 1.5rem;
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.os-card:hover {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.1);
    transform: translateY(-4px);
    box-shadow: var(--glow-hover);
}

.os-card:active {
    transform: translateY(-2px);
}

.os-icon {
    width: 56px;
    height: 56px;
    stroke: var(--primary-color);
}

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

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

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

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 1.5rem;
    }
    
    .card {
        padding: 2rem;
    }
    
    .card-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        position: relative;
        top: 0;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .card-header h2 {
        font-size: 1.75rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .os-options {
        grid-template-columns: 1fr;
    }
    
    body::before,
    body::after {
        width: 300px;
        height: 300px;
    }
}

/* Scroll-triggered animations class */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enterprise messaging highlights */
.enterprise-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    backdrop-filter: blur(10px);
}

/* ============================================
   TRAFFIC POLICY APPEND MODAL
   ============================================ */

/* Bounce-in animation for modal appearance */
@keyframes bounceIn {
    0% { 
        transform: scale(0.3); 
        opacity: 0; 
    }
    50% { 
        transform: scale(1.05); 
        opacity: 0.8; 
    }
    70% { 
        transform: scale(0.9); 
        opacity: 0.9; 
    }
    100% { 
        transform: scale(1); 
        opacity: 1; 
    }
}

/* Step fade-in animation */
@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Spinner dots animation */
@keyframes spinnerDots {
    0%, 20% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        opacity: 1;
    }
}

/* Traffic policy modal specific styles */
.traffic-policy-modal-content {
    animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 600px;
}

.traffic-policy-modal-body {
    padding: 2rem;
}

.traffic-policy-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
    min-height: 150px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    animation: stepFadeIn 0.4s ease-out;
}

.step-icon {
    font-size: 1.25rem;
    font-weight: bold;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-check {
    color: var(--text-secondary);
}

.step-success {
    color: #10b981;
}

.step-cross {
    color: #ef4444;
}

.step-error {
    color: #ef4444;
}

.step-spinner {
    color: var(--primary-color);
}

.spinner-dots {
    display: inline-block;
    animation: spinnerDots 1.4s infinite ease-in-out;
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
}

.step-text {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.step-error-text {
    color: #ef4444;
}

/* Checkbox section styling */
.checkbox-section {
    margin-top: 1.25rem;
    margin-bottom: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
}

.modal-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.checkbox-label {
    margin: 0;
    cursor: pointer;
    user-select: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--surface-color);
}

/* Responsive adjustments for traffic policy modal */
@media (max-width: 768px) {
    .traffic-policy-modal-content {
        max-width: 95%;
    }
    
    .progress-step {
        padding: 0.875rem;
        gap: 0.75rem;
    }
    
    .step-text {
        font-size: 0.875rem;
    }
    
    .modal-footer {
        flex-direction: column-reverse;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}
