body {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 24%),
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 20%),
        linear-gradient(180deg, #f4faff 0%, #e9f4ff 44%, #d9ebff 100%);
    padding: 24px 18px 40px;
}

.container {
    max-width: 720px;
    background: transparent;
    box-shadow: none;
    border: none;
    overflow: visible;
}

.header,
.tab-content,
.language-footer {
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.header {
    margin-bottom: 16px;
    padding: 24px;
    border-radius: calc(var(--radius) + 0.25rem);
    color: var(--foreground);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.header::after {
    content: "";
    position: absolute;
    inset: auto -10% -40% auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 60%);
    pointer-events: none;
}

.header h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 10px;
}

.header p {
    font-size: 14px;
    color: var(--muted-foreground);
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    background: var(--tabs-background);
    padding: 6px;
    border-radius: calc(var(--radius) + 0.1rem);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}

.tab-button {
    flex: 1;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted-foreground);
    border-radius: 0.85rem;
    font-family: 'Sora', sans-serif;
    background: transparent;
    border: none;
    transition: all 0.2s ease;
}

.tab-button.active {
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: inset 0 0 0 1px var(--tab-active-border);
}

.tab-button.active::after {
    display: none;
}

.tab-button:hover:not(.active) {
    background: var(--secondary);
    color: var(--foreground);
}

.tab-content {
    display: none;
    border-radius: calc(var(--radius) + 0.05rem);
    padding: 26px;
    margin-bottom: 14px;
    animation: fadeIn 0.2s ease;
}

.tab-content.active {
    display: block;
}

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

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

.tab-content .form-group:first-child {
    margin-top: 18px;
}

.form-group label,
.checkbox-container {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--foreground);
    cursor: pointer;
    user-select: none;
    margin-bottom: 10px;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.form-group input {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    font-size: 14px;
    font-family: 'Sora', sans-serif;
    background: var(--card);
    color: var(--foreground);
    box-shadow: var(--shadow-sm);
}

.input-with-results {
    position: relative;
}

.typeahead-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 20;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.typeahead-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid var(--border);
    background: transparent;
    color: var(--foreground);
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.typeahead-item:last-child {
    border-bottom: none;
}

.typeahead-item:hover {
    background: var(--secondary);
}

.typeahead-code {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.04em;
}

.typeahead-name {
    font-size: 13px;
    color: var(--muted-foreground);
}

.form-group input:focus {
    border-color: var(--interactive-border);
    box-shadow: 0 0 0 3px rgba(11, 92, 171, 0.10);
}

.btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: var(--primary-foreground);
    border: 1px solid var(--primary);
    border-radius: 0.9rem;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: var(--shadow-sm);
    margin-top: 4px;
}

#azba-content .btn {
    margin-top: 14px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.info {
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 0.05rem);
    padding: 18px;
    margin-top: 20px;
    color: var(--foreground);
}

.info h3 {
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--foreground);
}

.info p {
    margin-bottom: 8px;
    line-height: 1.55;
    color: var(--muted-foreground);
}

.info strong {
    color: var(--foreground);
}

.error,
.success,
.warning {
    padding: 14px 16px;
    border-radius: 0.9rem;
    margin-top: 15px;
    font-weight: 600;
    border: 1px solid transparent;
}

.error {
    background: var(--error-bg);
    border-color: var(--error-border);
    color: var(--error-fg);
}

.success {
    background: rgba(236, 253, 245, 0.96);
    border-color: rgba(16, 185, 129, 0.14);
    color: #047857;
}

.warning {
    background: rgba(255, 251, 235, 0.96);
    border-color: rgba(245, 158, 11, 0.16);
    color: #b45309;
}

.language-footer {
    padding: 14px 18px;
    border-radius: calc(var(--radius) + 0.05rem);
    background: transparent;
    border: none;
    box-shadow: none;
}

.language-footer p {
    margin-bottom: 10px;
    color: var(--muted-foreground);
    font-weight: 600;
}

.language-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-links {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 0.9rem;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--foreground);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.footer-link:hover {
    background: var(--secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.external-icon {
    font-size: 13px;
    line-height: 1;
}

.language-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 8px 12px;
    border-radius: 0.9rem;
    border: 1px solid var(--border);
    background: var(--muted);
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    text-transform: none;
    letter-spacing: 0.01em;
    cursor: pointer;
}

.language-link:hover {
    background: var(--secondary);
    color: var(--foreground);
}

.language-link.active {
    background: linear-gradient(180deg, #2e7cf6 0%, #1d6cf0 100%);
    color: #ffffff;
    border-color: rgba(29, 108, 240, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.footer-external-link {
    min-width: 148px;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 1px solid var(--border);
    border-radius: 0.45rem;
    margin-right: 12px;
    position: relative;
    background: var(--card);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.checkbox-container:hover .checkmark {
    border-color: var(--interactive-border);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.field-note {
    margin-top: 6px;
    margin-left: 34px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted-foreground);
}

@media (max-width: 768px) {
    body {
        padding: 14px 14px 32px;
    }

    .header,
    .tab-content,
    .language-footer {
        padding: 18px;
    }

    .tab-content .form-group:first-child {
        margin-top: 12px;
    }

    .header h1 {
        font-size: 26px;
    }

    .language-links {
        justify-content: center;
    }

    .language-link {
        flex: 1;
        min-width: 0;
    }

    .footer-link {
        width: 100%;
    }
}
