.brand-profiles-head{padding:20px 22px;border:1px solid #2d394d;border-radius:17px;background:linear-gradient(145deg,#121b28,#0d141e)}
.brand-profiles-head h2{margin:5px 0 4px;font-size:20px}.brand-profiles-head p{max-width:620px;margin:0;color:#8e9bad;font-size:12px;line-height:1.9}.brand-profiles-head>div:last-child strong{font-size:11px}
.brand-profiles-head button,.brand-profiles-empty button,.brand-profiles-locked button,.brand-profile-editor footer button{min-height:42px;padding:10px 16px;border-radius:11px;font-size:11px;transition:.18s}
.brand-profiles-head button:hover:not(:disabled),.brand-profiles-empty button:hover,.brand-profile-editor footer button:hover:not(:disabled){border-color:#9a7ae5;background:#3a2960;box-shadow:0 8px 24px #7550c42d}
.brand-profiles-layout{gap:18px;margin-top:18px}.brand-profiles-layout:has(.brand-profile-editor){grid-template-columns:minmax(280px,.72fr) minmax(430px,1.28fr)}
.brand-profile-list{gap:12px}.brand-profile-item{border-radius:15px;background:linear-gradient(145deg,#101925,#0c131d)}.brand-profile-item:hover{border-color:#44536a}.brand-profile-item.active{border-color:#397765;box-shadow:inset -3px 0 #43bd94}
.brand-profile-main{padding:16px}.brand-profile-state{font-size:10px}.brand-profile-item h3{font-size:14px}.brand-profile-item p{font-size:10px;line-height:1.9}.brand-profile-toggle{gap:8px!important;font-size:10px}.brand-profile-toggle input{width:19px!important;height:19px!important}
.brand-profile-actions{gap:8px;padding:10px 16px}.brand-profile-actions button,.brand-profile-editor header>button{min-height:34px;padding:7px 11px;border-radius:9px;font-size:10px}.brand-profile-actions button:hover,.brand-profile-editor header>button:hover{border-color:#745bb5;background:#251d3d;color:#fff}.brand-profile-actions .danger:hover{border-color:#844052;background:#371c27;color:#ffb0bd}
.brand-profile-editor{border-color:#38465d;border-radius:18px;background:linear-gradient(155deg,#111b28,#0c131d);box-shadow:0 22px 65px #0004}.brand-profile-editor>header{padding:18px 20px;background:#121b28}.brand-profile-editor header span{font-size:10px}.brand-profile-editor h3{margin-top:5px;font-size:16px}
.brand-profile-fields{gap:17px;padding:20px}.brand-profile-fields>label,.brand-profile-grid>label{gap:8px!important;color:#c0c9d7;font-size:11px;font-weight:600}.brand-profile-grid{grid-template-columns:minmax(150px,.72fr) minmax(220px,1.28fr);gap:14px}
.brand-profile-fields input,.brand-profile-fields select,.brand-profile-fields textarea{min-height:44px;padding:11px 13px!important;border:1px solid #344158!important;border-radius:11px!important;background:#09111a!important;color:#f2f5fa!important;font:500 12px/1.8 Vazirmatn!important;outline:0;transition:border-color .18s,box-shadow .18s,background .18s}.brand-profile-fields textarea{min-height:100px!important;line-height:2!important}.brand-profile-fields input:hover,.brand-profile-fields select:hover,.brand-profile-fields textarea:hover{border-color:#46566f!important;background:#0c1520!important}.brand-profile-fields input:focus,.brand-profile-fields select:focus,.brand-profile-fields textarea:focus{border-color:#8a68dc!important;box-shadow:0 0 0 3px #8060cf29;background:#0c1520!important}.brand-profile-fields input::placeholder,.brand-profile-fields textarea::placeholder{color:#657287}
.brand-profile-enable{gap:12px!important;padding:14px 15px;border-radius:12px;background:#111d2a}.brand-profile-enable input{width:21px!important;height:21px!important}.brand-profile-enable strong{font-size:11px}.brand-profile-enable small{margin-top:4px;font-size:9px;line-height:1.8}
.brand-profile-editor>footer{min-height:68px;padding:13px 20px;background:#0e1621}.brand-profile-editor footer small{font-size:10px;line-height:1.8}.brand-profiles-empty{min-height:260px;border-radius:17px;background:#0d151f}.brand-profiles-empty strong{font-size:15px}.brand-profiles-empty p{font-size:11px}.brand-profiles-locked{padding:26px;border-radius:18px}.brand-profiles-locked span{font-size:10px}.brand-profiles-locked h2{font-size:19px}.brand-profiles-locked p{font-size:11px}
@media(max-width:900px){.brand-profiles-layout:has(.brand-profile-editor){grid-template-columns:1fr}.brand-profile-editor{grid-row:1}.brand-profiles-head{align-items:flex-start;flex-direction:column}.brand-profiles-head>div:last-child{width:100%;justify-content:space-between}}
@media(max-width:560px){.brand-profiles-head{padding:16px}.brand-profiles-head h2{font-size:18px}.brand-profile-fields{padding:16px}.brand-profile-grid{grid-template-columns:1fr}.brand-profile-editor>footer{align-items:stretch;flex-direction:column}.brand-profile-editor footer button{width:100%}}

/* Brand profiles are presented as elevated portrait cards. */
.brand-profile-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;align-items:stretch}
.brand-profile-item{position:relative;display:flex;min-height:278px;flex-direction:column;overflow:hidden;border-radius:20px;background:linear-gradient(160deg,#111c2b 0%,#0b1420 62%,#171032 100%);box-shadow:0 18px 42px #0004;transition:transform .2s,border-color .2s,box-shadow .2s}
.brand-profile-item:before{content:"";position:absolute;inset:0 0 auto;height:112px;background:radial-gradient(circle at 22% 20%,#a987ff66,transparent 45%),linear-gradient(135deg,#33205f,#122e3a);opacity:.85;pointer-events:none}
.brand-profile-item:hover{transform:translateY(-4px);border-color:#8063c5;box-shadow:0 24px 48px #0006}
.brand-profile-item.active{border-color:#3c9d80;box-shadow:0 18px 42px #0004,0 0 0 1px #3c9d8044}
.brand-profile-main{position:relative;z-index:1;display:flex;flex:1;align-items:stretch;flex-direction:column;justify-content:flex-start;gap:18px;padding:22px 20px 18px}
.brand-profile-main>div:first-child:before{content:"✦";display:grid;place-items:center;width:54px;height:54px;margin-bottom:18px;border:1px solid #ffffff3b;border-radius:17px;background:#ffffff18;color:#fff;font-size:23px;box-shadow:0 10px 24px #0003}
.brand-profile-state{margin-bottom:8px!important;color:#a9b5c8;font-size:9px;letter-spacing:.04em}
.brand-profile-item.active .brand-profile-state{color:#68d9b2}
.brand-profile-item h3{margin:0 0 8px;font-size:17px;line-height:1.5}
.brand-profile-item p{margin:0;color:#9aa8ba;font-size:10px;line-height:2}
.brand-profile-toggle{display:flex!important;align-items:center;justify-content:space-between;width:100%;margin-top:auto!important;padding:10px 12px;border:1px solid #ffffff16;border-radius:11px;background:#ffffff09;color:#bac5d4;font-size:9px}
.brand-profile-toggle input{order:2;width:18px!important;height:18px!important}
.brand-profile-actions{position:relative;z-index:1;display:flex;justify-content:flex-start;gap:8px;padding:12px 16px;border-top:1px solid #ffffff14;background:#09111b99}
.brand-profile-actions button{min-height:34px;padding:7px 12px;border-radius:9px}
.brand-profiles-layout:has(.brand-profile-editor) .brand-profile-list{grid-template-columns:1fr}
@media(min-width:1180px){.brand-profiles-layout:not(:has(.brand-profile-editor)) .brand-profile-list{grid-template-columns:repeat(3,minmax(220px,1fr))}}
@media(max-width:780px){.brand-profile-list{grid-template-columns:repeat(2,minmax(0,1fr))}.brand-profile-item{min-height:255px}}
@media(max-width:560px){.brand-profile-list{grid-template-columns:1fr}.brand-profile-item{min-height:240px}}
.brand-font-identity{margin-top:18px;padding-top:18px;border-top:1px solid #2a3546}.brand-font-upload{display:flex;align-items:center;gap:9px;margin-top:11px}.brand-font-upload>span{flex:1;min-width:0;overflow:hidden;color:#cbd5e1;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.brand-font-upload button{border:1px solid #4a3548;border-radius:8px;background:#21151c;color:#f3a4b8;padding:7px 10px;font:10px Vazirmatn;cursor:pointer}.brand-font-upload button[hidden]{display:none}
