/* Stage 78 — one natural, colorful and calm visual language across the site. */
:root{--bloom-lilac:#9b89ec;--bloom-sky:#6fc5ec;--bloom-coral:#ef7c76;--bloom-sun:#f1c84b;--bloom-mint:#60c993;--bloom-paper:#fbfdfb;--bloom-soft:#f0f8f2}
body:not(.home-page){background:radial-gradient(circle at 8% 12%,rgba(155,137,236,.09),transparent 25%),radial-gradient(circle at 92% 18%,rgba(111,197,236,.10),transparent 23%),radial-gradient(circle at 84% 88%,rgba(239,124,118,.07),transparent 25%),linear-gradient(180deg,#fbfdfb,#fff 48%,#f9fcfa)}
body:not(.home-page) main{position:relative}
body:not(.home-page) main:before{content:"";position:fixed;z-index:-1;right:-85px;top:150px;width:180px;height:180px;border-radius:65% 35% 60% 40%;background:linear-gradient(145deg,rgba(96,201,147,.11),rgba(111,197,236,.08));transform:rotate(18deg);pointer-events:none}
.site-header{box-shadow:0 7px 28px rgba(18,63,53,.045)}
.primary-button,.duo-btn-green,.duo-btn-blue{background:linear-gradient(135deg,#0c5a43,#1a825e)!important;box-shadow:0 8px 0 #084a37,0 18px 34px rgba(18,92,67,.17)!important;border-radius:16px!important}
.primary-button:active,.duo-btn-green:active,.duo-btn-blue:active{transform:translateY(5px);box-shadow:0 3px 0 #084a37,0 10px 20px rgba(18,92,67,.14)!important}
.outline-button{border-radius:15px!important;background:linear-gradient(145deg,#fff,#f4faf6)!important}

/* Profile */
.profile-page{background:transparent!important}.profile-shell{position:relative}
.profile-identity{background:radial-gradient(circle at 15% 20%,rgba(241,200,75,.18),transparent 30%),radial-gradient(circle at 88% 75%,rgba(111,197,236,.16),transparent 31%),linear-gradient(135deg,#f5fbf5,#fff8ef)!important;border:0!important;border-radius:38px!important;box-shadow:0 25px 65px rgba(18,63,53,.1)!important;overflow:hidden}
.profile-identity:after{content:"";position:absolute;left:-26px;bottom:-45px;width:130px;height:130px;border-radius:61% 39% 70% 30%;background:linear-gradient(145deg,rgba(155,137,236,.25),rgba(239,124,118,.13));transform:rotate(22deg)}
.profile-avatar{border:5px solid #fff!important;outline:2px solid rgba(96,201,147,.5)!important;box-shadow:0 17px 39px rgba(18,63,53,.18)!important}
.avatar-edit{background:linear-gradient(145deg,#f0c64e,#d99b25)!important;border-color:#fff!important;box-shadow:0 8px 18px rgba(170,119,21,.2)}
.account-overview{background:linear-gradient(125deg,#0c513f,#147359 58%,#2a8c68)!important;border-radius:23px!important;box-shadow:0 20px 48px rgba(13,91,67,.2)!important}
.profile-layout{gap:28px}.profile-main-column,.profile-side-column{gap:28px}
.profile-panel{border:0!important;border-radius:26px!important;background:rgba(255,255,255,.93)!important;box-shadow:0 17px 46px rgba(18,63,53,.075)!important;outline:1px solid rgba(211,229,217,.85)}
.invite-panel{color:#fff!important;background:linear-gradient(135deg,#0b4d3b,#167358 58%,#238564)!important;outline:0!important;box-shadow:0 20px 48px rgba(13,91,67,.2)!important}.invite-panel h2,.invite-panel p{color:#fff!important}.invite-panel .invite-code{background:rgba(255,255,255,.12)!important;border-color:rgba(255,255,255,.58)!important;color:#fff!important}.invite-panel small{color:#d9f5e7!important}
.learning-panel{border-top:5px solid var(--bloom-mint)!important}.review-panel{border-top:5px solid var(--bloom-coral)!important}.review-panel .heart-rating{background:linear-gradient(145deg,#fff7f6,#fff)!important}.heart-rating label{transition:transform .18s,color .18s}.heart-rating label:hover{transform:translateY(-3px) scale(1.08)}
.learning-row{border:0!important;background:linear-gradient(145deg,#f8fcf9,#f0f7f2)!important;border-radius:18px!important}.lesson-art{background:linear-gradient(145deg,#dff5e6,#edf5ff)!important;border-radius:15px!important}
.profile-dialog{border-radius:28px!important}.profile-dialog form{background:radial-gradient(circle at 90% 10%,rgba(111,197,236,.11),transparent 24%),#fff}

/* All authentication forms */
.auth-v2-page{background:transparent!important}.auth-v2-shell{background:radial-gradient(circle at 8% 14%,rgba(155,137,236,.16),transparent 26%),radial-gradient(circle at 92% 86%,rgba(96,201,147,.15),transparent 27%)!important}
.auth-v2-layout{border:0!important;border-radius:38px!important;box-shadow:0 32px 85px rgba(18,63,53,.14)!important}
.auth-v2-welcome{background:radial-gradient(circle at 25% 14%,rgba(241,200,75,.2),transparent 25%),linear-gradient(145deg,#0b4a39,#167154)!important}
.auth-v2-welcome:before{content:"";position:absolute;width:150px;height:150px;right:-55px;bottom:55px;border-radius:67% 33% 54% 46%;background:linear-gradient(145deg,rgba(111,197,236,.25),rgba(155,137,236,.18));transform:rotate(25deg)}
.auth-v2-card{background:radial-gradient(circle at 92% 7%,rgba(239,124,118,.08),transparent 22%),#fff}
.auth-mascot,.auth-mascot-icon{display:none!important}
.auth-title{font-size:clamp(25px,3vw,31px)!important}.bahariom-auth-switch{padding:5px!important;border-radius:17px!important;background:#edf4ef!important}.bahariom-auth-switch a{border-radius:13px!important}
.duo-input{min-height:58px!important;border:1px solid #d7e5db!important;border-radius:17px!important;background:#f9fcfa!important;box-shadow:inset 0 1px 2px rgba(18,63,53,.035)}
.duo-input:focus{border-color:#56b986!important;box-shadow:0 0 0 5px rgba(96,201,147,.13)!important;background:#fff!important}
.role-card{min-height:54px;border-radius:17px!important}.role-option input:checked+.role-card{border-color:#5dc28d!important;background:linear-gradient(145deg,#eefaf3,#f7fcf9)!important}
.duo-alert,.auth-v2-messages{border:0!important;border-radius:16px!important;background:linear-gradient(145deg,#fff5d7,#fffaf0)!important;box-shadow:0 8px 22px rgba(155,119,27,.08)}
.auth-profile-note,.auth-meta{border:0!important;border-radius:16px!important;background:linear-gradient(145deg,#eef8f2,#f5f3ff)!important}

/* Generic remaining pages: invoice, payment and internal operation views. */
.ops-page,.invoice-page,.baharpay-page{position:relative}
.ops-page section,.ops-page article,.invoice-page,.baharpay-card,.payment-card{border-radius:24px!important;box-shadow:0 15px 42px rgba(18,63,53,.07)}
.ops-page input,.ops-page select,.ops-page textarea,.baharpay-page input,.baharpay-page select{border-radius:15px!important}

/* Standalone error pages */
.error-v2{background:radial-gradient(circle at 9% 14%,rgba(155,137,236,.12),transparent 25%),radial-gradient(circle at 90% 85%,rgba(96,201,147,.13),transparent 26%)}
.error-brand img{border-radius:22px!important;background:#fff;padding:7px;box-shadow:0 12px 30px rgba(18,63,53,.12)}
.error-card{position:relative;overflow:hidden;border:0!important;border-radius:34px!important;box-shadow:0 30px 80px rgba(18,63,53,.14)!important}
.error-card:before{content:"";position:absolute;right:-40px;top:-50px;width:130px;height:130px;border-radius:62% 38% 68% 32%;background:linear-gradient(145deg,rgba(111,197,236,.18),rgba(155,137,236,.13));transform:rotate(20deg)}
.error-code{position:relative;border-radius:16px!important;background:linear-gradient(145deg,#e8f8ee,#eef2ff)!important;color:#17664e!important;box-shadow:0 8px 20px rgba(18,63,53,.07)}
.error-actions a{background:linear-gradient(135deg,#0c5a43,#1a825e)!important;box-shadow:0 6px 0 #084a37}.error-actions button{background:#eff6f1!important}

html[data-theme=dark] body:not(.home-page){background:#102820}
html[data-theme=dark] .profile-identity{background:radial-gradient(circle at 15% 20%,rgba(241,200,75,.12),transparent 30%),linear-gradient(135deg,#193d33,#273d36)!important}
html[data-theme=dark] .profile-panel,html[data-theme=dark] .auth-v2-card{background:#17362e!important;outline-color:#31554b}
html[data-theme=dark] .invite-panel{background:linear-gradient(135deg,#0a352a,#14513f)!important;outline:1px solid #356254!important}
html[data-theme=dark] .learning-row{background:linear-gradient(145deg,#1d4036,#17362e)!important}
html[data-theme=dark] .auth-v2-shell{background:radial-gradient(circle at 8% 14%,rgba(155,137,236,.09),transparent 26%),#102820!important}
html[data-theme=dark] .auth-v2-layout{background:#17362e!important}html[data-theme=dark] .auth-v2-welcome{background:linear-gradient(145deg,#092c23,#134e3c)!important}
html[data-theme=dark] .duo-input,html[data-theme=dark] .role-card,html[data-theme=dark] .bahariom-auth-switch{background:#102820!important;border-color:#365d50!important}
html[data-theme=dark] .role-option input:checked+.role-card{background:#234d3f!important}html[data-theme=dark] .auth-profile-note,html[data-theme=dark] .auth-meta{background:#203f36!important}
html[data-theme=dark] .error-v2{background:radial-gradient(circle at 9% 14%,rgba(155,137,236,.08),transparent 25%),#102820}html[data-theme=dark] .error-card{background:#17362e!important}

@media(max-width:900px){.profile-identity{border-radius:28px!important}.profile-panel{border-radius:22px!important}.auth-v2-layout{border-radius:28px!important}}
@media(max-width:600px){body:not(.home-page) main:before{display:none}.profile-shell{padding-top:30px}.profile-identity{padding:27px 16px!important;border-radius:25px!important}.profile-panel{padding:20px 17px!important}.auth-v2-shell{padding:22px 12px 42px!important}.auth-v2-layout{border-radius:25px!important}.auth-v2-welcome{padding:19px!important}.auth-v2-card{padding:27px 18px 30px!important}.error-card{border-radius:25px!important}.error-actions a,.error-actions button{min-height:48px}}
