* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #0f172a;
}

a {
    text-decoration: none;
}

button,
input,
textarea {
    font-family: inherit;
}

.profile-theme-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px;
    border: 1px solid var(--border-color, #e3e7ef);
    border-radius: 14px;
    background: var(--card-bg, #f8fafc);
    cursor: pointer;
}

.profile-theme-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-theme-copy strong {
    font-size: 15px;
}

.profile-theme-copy small {
    color: var(--muted-text, #64748b);
    font-size: 13px;
}

.profile-theme-switch {
    position: relative;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}

.profile-theme-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.profile-theme-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #cbd5e1;
    transition: 0.2s ease;
}

.profile-theme-slider::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 3px;
    left: 3px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
    transition: 0.2s ease;
}

.profile-theme-switch input:checked + .profile-theme-slider {
    background: #6d4aff;
}

.profile-theme-switch input:checked + .profile-theme-slider::after {
    transform: translateX(20px);
}

html[data-theme="dark"] .profile-theme-row {
    background: #1f2a3d;
    border-color: #35435a;
}

html[data-theme="dark"] .profile-theme-copy strong {
    color: #f8fafc;
}

html[data-theme="dark"] .profile-theme-copy small {
    color: #aebbd0;
}

html[data-theme="dark"] .profile-theme-slider {
    background: #4b5870;
}