:root {
    --primary-blue: #0b769c;
    --primary-text-light: #ffffff;
    --primary-text-dark: #374151;
    --secondary-text: #6b7280;
    --input-border: #e2e8f0;
    --input-focus: #93c5fd;
    --btn-cancel: #f1f5f9;
    --btn-cancel-text: #64748b;
    --background-subtle: #f9fafb;
    --gap-standard: 20px;
    --gap-generous: 40px;
    --gap-subtle: 8px;
    --sidebar-padding: 30px;
    --radius-standard: 12px;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f4f8; 
}

.help-text a {
	color:#fff;
	text-decoration:none;
}

body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1200px;
    height: 1200px;
    background: radial-gradient(circle, rgba(0, 190, 241, 0.08) 0%, rgba(240, 244, 248, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.ossn-installer-window {
    display: grid;
    grid-template-columns: 300px 1fr;
    width: 95vw;
    max-width: 1200px;
    height: 85vh;
    margin: auto;
    background: #fff;
    border-radius: var(--radius-standard);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.installer-sidebar {
    background-color: var(--primary-blue);
    padding: var(--gap-generous) var(--sidebar-padding);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--primary-text-light);
}

.installer-sidebar:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.sidebar-logo {
    text-align: center;
    display: inline-block;
    padding: 15px 25px;
    background: #fff;
    backdrop-filter: blur(5px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, .5);    
    margin-bottom:10px;
}

.sidebar-img-logo {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    display: block;
    margin: 0 auto;
}

.sidebar-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    height: 24px;
}

.step-item .text {
    line-height: 1;
    display: inline-block;
    padding: 0;
    margin: 0;
    margin-top: -5px;
}

.step-item .circle {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.step-item.visited .circle {
    background-color: #fff;
    border-color: #fff;
}

.step-item.visited .circle::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid #00bef1;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.step-item.active .circle {
    background-color: #fff;
    border-color: #fff;
}

.step-item.active .text {
    color: #fff;
    font-weight: 700;
}

.step-item.visited .text {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.sidebar-help {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.help-icon {
    font-weight: bold;
    font-size: 16px;
}

.installer-content {
    background-color: #ffffff;
    padding: var(--gap-generous);
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: var(--gap-standard);
    overflow: hidden;
}

.content-header h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-text-dark);
    margin: 0;
    letter-spacing: -0.03em;
}

.content-header p {
    color: var(--secondary-text);
    margin-top: 5px;
}

.installer-form-area {
    overflow-y: auto;
    padding-right: 10px;
}

.ossn-form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ossn-form-label {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
}

.ossn-input {
    width: 100%;
    max-width: 480px;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background-color: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ossn-input:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.2);
}

.installer-footer {
    padding-top: var(--gap-standard);
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.installer-btn {
    padding: 0.85rem 2.5rem;
    font-weight: 600;
    border-radius: 12px;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.btn-cancel {
    background-color: var(--btn-cancel);
    color: var(--btn-cancel-text);
}

.btn-cancel:hover {
    background-color: #e2e8f0;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--primary-text-light);
}

.btn-primary:hover {
    background-color: #00a9d9;
}

@media (max-width: 768px) {
    .ossn-installer-window {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
    }
    
    .installer-sidebar {
        padding: var(--gap-standard);
        display: block;
        justify-content: center;
        text-align: center;
    }
    
    .sidebar-steps {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 10px;
    }
    
    .step-item {
        font-size: 13px;
    }
    
    .sidebar-help {
        display: none;
    }
    
    .installer-content {
        padding: var(--gap-standard);
    }
}

.ossn-installation-message {
    margin-bottom: 10px;
    width: 100%;
}

.ossn-installation-success, 
.ossn-installation-fail {
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.ossn-installation-success {
    background-color: #f0fdf4;
    color: #166534;
    border-color: #dcfce7;
}

.ossn-installation-success::before {
    content: '?';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #22c55e;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 1px;
}

.ossn-installation-fail {
    background-color: #fef2f2;
    color: #991b1b;
    border-color: #fee2e2;
}

.ossn-installation-fail::before {
    content: '?';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    flex-shrink: 0;
    margin-top: 1px;
}

#ossnlicense h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 5px;
}

#ossnlicense h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
}

#ossnlicense h3 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: #64748b;
}

.form-control {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    padding-left: 1.25rem;
    font-size: 1.1rem;
    border-radius: 12px;
    border-width: 2px;
}

.form-control::placeholder {
    font-size: 0.95rem;
    opacity: 0.7;
}

.row {
    margin-right: 0;
    margin-left: 0;
}

.premium-badge-wrapper {
    margin-top: 10px;
}

.premium-badge {
    background: linear-gradient(45deg, #ffd700, #ff8c00);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.premium-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.2);
    transform: rotate(45deg);
    transition: 0.5s;
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-150%) rotate(45deg); }
    100% { transform: translateX(150%) rotate(45deg); }
}