body {
    font-family: 'Almarai', sans-serif;
    line-height: 1.7;
    transition: background-color 0.25s ease, color 0.25s ease;
}

p,
li,
label,
summary,
blockquote {
    line-height: 1.85;
}

input,
textarea,
select,
button {
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.25;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

.purple-gradient-text {
    background: linear-gradient(to right, #c084fc, #8b2cf5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: rgba(30, 30, 45, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(139, 44, 245, 0.3);
    box-shadow: 0 0 20px rgba(139, 44, 245, 0.15);
    transform: translateY(-4px);
}

.glow-button {
    box-shadow: 0 8px 24px rgba(139, 44, 245, 0.3);
    transition: all 0.2s ease;
}

.glow-button:active {
    transform: scale(0.96);
}

.auth-submit-button {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    position: relative;
    overflow: hidden;
}

.auth-submit-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.22) 50%, transparent 85%);
    transform: translateX(-130%);
    transition: transform 0.7s ease;
}

.auth-submit-button:hover::before {
    transform: translateX(130%);
}

.auth-submit-button:hover {
    transform: translateY(-2px);
}

.auth-submit-button:active {
    transform: translateY(0);
}

.auth-submit-button span {
    position: relative;
    z-index: 1;
}

.auth-submit-button:hover .auth-submit-icon {
    transform: translateX(-4px);
}

.auth-submit-icon {
    transition: transform 0.25s ease;
}

.user-menu-trigger,
.user-menu-panel {
    transition: all 0.2s ease;
}

.user-menu-trigger:hover [data-user-avatar] {
    transform: scale(1.04);
}

[data-user-avatar] {
    transition: transform 0.2s ease;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.step-dashed::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -50%;
    width: 100%;
    border-top: 2px dashed rgba(139, 44, 245, 0.2);
    z-index: -1;
}

@media (max-width: 768px) {
    .step-dashed::after {
        display: none;
    }
}

html[data-theme="light"] body {
    background: #f8fafc !important;
    color: #0f172a !important;
}

html[data-theme="light"] .public-header {
    background: rgba(255, 255, 255, 0.88) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .public-header a,
html[data-theme="light"] .public-header span,
html[data-theme="light"] .public-header nav a {
    color: #0f172a;
}

html[data-theme="light"] .theme-toggle-btn {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(148, 163, 184, 0.24) !important;
    color: #334155 !important;
}

html[data-theme="light"] .theme-toggle-btn:hover {
    background: #ffffff !important;
    color: #0f172a !important;
}

html[data-theme="light"] .user-menu-trigger {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
}

html[data-theme="light"] .user-menu-panel {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1) !important;
}

html[data-theme="light"] .user-menu-panel a,
html[data-theme="light"] .user-menu-panel button {
    color: #0f172a !important;
}

html[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .glass-card:hover {
    border-color: rgba(139, 44, 245, 0.22);
    box-shadow: 0 18px 36px rgba(139, 44, 245, 0.1);
}

html[data-theme="light"] .text-white,
html[data-theme="light"] .text-on-surface {
    color: #0f172a !important;
}

html[data-theme="light"] .text-text-secondary {
    color: #64748b !important;
}

html[data-theme="light"] .bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="light"] .bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.96) !important;
}

html[data-theme="light"] .border-white\/5 {
    border-color: rgba(148, 163, 184, 0.14) !important;
}

html[data-theme="light"] .border-white\/10 {
    border-color: rgba(148, 163, 184, 0.18) !important;
}

html[data-theme="light"] [class*="bg-[#110e1c]"],
html[data-theme="light"] [class*="bg-[#16111c]"],
html[data-theme="light"] [class*="bg-[#110c16]"],
html[data-theme="light"] [class*="bg-[#231d28]"],
html[data-theme="light"] [class*="bg-[#1e1e2d]"],
html[data-theme="light"] [class*="bg-[#1e1924]"],
html[data-theme="light"] [class*="bg-[#1b1730]"],
html[data-theme="light"] [class*="bg-[#171328]"],
html[data-theme="light"] [class*="bg-[#151127]"],
html[data-theme="light"] [class*="bg-[#2d2833]"] {
    background-color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="light"] [class*="bg-[linear-gradient(180deg,rgba(27,23,48,0.95),rgba(17,14,28,0.95))]"],
html[data-theme="light"] [class*="bg-[linear-gradient(180deg,rgba(34,28,59,0.94),rgba(17,14,28,0.96))]"] {
    background: rgba(255, 255, 255, 0.94) !important;
}

html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: rgba(148, 163, 184, 0.24) !important;
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
    color: #94a3b8 !important;
}

html[data-theme="light"] .bg-primary,
html[data-theme="light"] .glow-button {
    color: #ffffff !important;
}

html[data-theme="light"] footer {
    background: #eef2ff !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
}

html[data-theme="light"] .shadow-black\/10,
html[data-theme="light"] .shadow-black\/20,
html[data-theme="light"] .shadow-black\/30,
html[data-theme="light"] .shadow-black\/40 {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] .min-h-screen>.absolute.inset-0 {
    background:
        radial-gradient(circle at top, rgba(139, 44, 245, 0.1), transparent 30%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.08), transparent 22%),
        linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%) !important;
}

html[data-theme="light"] main,
html[data-theme="light"] section {
    color: #0f172a;
}

html[data-theme="light"] [class*="bg-[#110c16]/50"],
html[data-theme="light"] [class*="bg-[#2d2833]/20"] {
    background-color: rgba(226, 232, 240, 0.55) !important;
}

html[data-theme="light"] .rounded-full.bg-emerald-400\/10,
html[data-theme="light"] .rounded-full.bg-primary\/10 {
    background-color: rgba(139, 44, 245, 0.08) !important;
}

html[data-theme="light"] .public-profile-page {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
}

html[data-theme="light"] .public-profile-page h3,
html[data-theme="light"] .public-profile-page h4,
html[data-theme="light"] .public-profile-page .text-white {
    color: #0f172a !important;
}

html[data-theme="light"] .public-profile-page .text-slate-400,
html[data-theme="light"] .public-profile-page .text-slate-500,
html[data-theme="light"] .public-profile-page .text-text-secondary {
    color: #64748b !important;
}

html[data-theme="light"] .profile-badge {
    background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%) !important;
    border-color: rgba(139, 92, 246, 0.16) !important;
    box-shadow: 0 12px 24px rgba(139, 92, 246, 0.08) !important;
}

html[data-theme="light"] .profile-panel,
html[data-theme="light"] .profile-uploader,
html[data-theme="light"] .profile-preview,
html[data-theme="light"] .profile-toggle-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] .profile-uploader:hover,
html[data-theme="light"] .profile-toggle-card:hover,
html[data-theme="light"] .profile-panel:hover {
    border-color: rgba(139, 92, 246, 0.2) !important;
    background: #ffffff !important;
}

html[data-theme="light"] .profile-textarea {
    color: #0f172a !important;
}

html[data-theme="light"] .profile-textarea::placeholder {
    color: #94a3b8 !important;
}

html[data-theme="light"] .profile-emoji-panel {
    background: #ffffff !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] .profile-preview [class*="bg-[#131022]"] {
    background: #f8fafc !important;
}

html[data-theme="light"] .profile-preview [class*="bg-[#0f0c1a]"] {
    background: #e2e8f0 !important;
}

html[data-theme="light"] .profile-preview .text-slate-300,
html[data-theme="light"] .profile-preview .text-slate-400 {
    color: #64748b !important;
}

html[data-theme="light"] .profile-uploader [class*="bg-[#2d2440]"],
html[data-theme="light"] .profile-preview [class*="bg-[#2d2440]"],
html[data-theme="light"] .profile-toggle-card [class*="bg-[#2d2440]"] {
    background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%) !important;
    color: #7c3aed !important;
    border: 1px solid rgba(139, 92, 246, 0.12);
}

html[data-theme="light"] .profile-toggle-card .bg-slate-700 {
    background-color: #cbd5e1 !important;
}

html[data-theme="light"] .profile-submit-note {
    color: #64748b !important;
    opacity: 1 !important;
}

html[data-theme="light"] .profile-submit-button {
    color: #ffffff !important;
}

html[data-theme="light"] .profile-submit-button span {
    color: #ffffff !important;
}

html[data-theme="light"] .profile-submit-button:hover,
html[data-theme="light"] .profile-submit-button:hover span {
    color: #000000 !important;
}

html[data-theme="light"] .public-profile-page .shadow-green-500\/10,
html[data-theme="light"] .public-profile-page .shadow-red-500\/10,
html[data-theme="light"] .public-profile-page .shadow-amber-500\/10 {
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05) !important;
}