/* Shared visual language for the application surfaces. */
:root{--podly-bg:#07090e;--podly-panel:#0d121b;--podly-panel-2:#111827;--podly-line:#222d41;--podly-purple:#9b6cff;--podly-cyan:#67e8f9;--podly-text:#eef2f8;--podly-muted:#8490a5}
body.dashboard-page,body.audio-editor-page{background:radial-gradient(circle at 80% -10%,#241942 0,transparent 34%),var(--podly-bg)!important;color:var(--podly-text)!important;scrollbar-width:none}
body.dashboard-page::-webkit-scrollbar,body.audio-editor-page::-webkit-scrollbar{width:0;height:0;background:transparent}
body.dashboard-page *,body.audio-editor-page *{scrollbar-width:none}
body.dashboard-page *::-webkit-scrollbar,body.audio-editor-page *::-webkit-scrollbar{width:0;height:0;background:transparent}
body.dashboard-page .sidebar{background:linear-gradient(180deg,#0c111b,#090d14)!important;border-color:var(--podly-line)!important;box-shadow:10px 0 40px #0004}
body.dashboard-page .main-content{background:transparent!important}
body.dashboard-page .topbar{border-color:#ffffff0e!important;background:#07090e!important;backdrop-filter:blur(18px);margin-inline:-38px;padding-inline:38px}
body.dashboard-page .panel,body.dashboard-page .stat-card{background:linear-gradient(145deg,#111824,#0c111a)!important;border-color:var(--podly-line)!important;box-shadow:0 18px 60px #0003}
body.dashboard-page .service-card,body.dashboard-page .create-service,body.dashboard-page .settings-nav{background:#0c121c!important;border-color:#263249!important}
body.dashboard-page .service-card:hover,body.dashboard-page .service-card.featured,body.dashboard-page .create-service:hover,body.dashboard-page .create-service.active{background:linear-gradient(145deg,#21183e,#111722)!important;border-color:#7657c5!important}
body.dashboard-page .primary-btn{background:linear-gradient(120deg,#a275ff,#7145d2)!important;box-shadow:0 12px 32px #8b5cf633!important}
body.dashboard-page .secondary-btn{background:#121b29!important;border-color:#334258!important}
body.dashboard-page input,body.dashboard-page textarea,body.dashboard-page select,body.dashboard-page .toolbar{background:#090f18!important;border-color:#2b3950!important;color:var(--podly-text)!important}
body.audio-editor-page .editor-shell{background:transparent!important}
body.audio-editor-page .editor-top,body.audio-editor-page .editor-main,body.audio-editor-page .studio-controlbar{background:linear-gradient(145deg,#111a28,#0b111b)!important;border-color:var(--podly-line)!important;box-shadow:0 18px 60px #0003!important}
body.audio-editor-page .timeline-board{background:#080e17!important;border-color:#26354b!important}
body.audio-editor-page .timeline-toolbox{background:#0e1724!important;border-color:#33445d!important}
body.audio-editor-page .timeline-toolbox button{color:#aebbd0!important}
body.audio-editor-page .timeline-toolbox button.active{background:linear-gradient(145deg,#38265f,#211838)!important;border-color:#9874e8!important;box-shadow:inset 0 -2px #b398ff,0 0 18px #8b5cf622!important}
body.audio-editor-page .timeline-board .main-clip{background:linear-gradient(180deg,#3d2b73,#241a48)!important;border-color:#8565d2!important}
body.audio-editor-page .timeline-board .music-lane{background-color:#0d1516!important}
body.audio-editor-page .track-header{background:linear-gradient(180deg,#111b29,#0c141f)!important;border-color:#34455d!important}
body.audio-editor-page .track-content{background-color:#0b121c!important}
body.audio-editor-page .editor-status{color:#9aa8bc!important}
body.audio-editor-page .export-dialog,body.audio-editor-page .repair-dialog,body.audio-editor-page .suno-music-dialog{background:#0d141f!important;border-color:#4b397a!important}
body.audio-editor-page .timeline-footer-tools{background:#0b121c!important;border-color:#29384d!important}
@media(max-width:760px){body.dashboard-page .main-content{padding-left:15px!important;padding-right:15px!important}body.audio-editor-page .editor-shell{padding:6px!important}}
.workspace-switcher{cursor:pointer;transition:.2s ease}.workspace-switcher:hover{border-color:#7657c5;background:#17132a;transform:translateY(-1px)}
.podly-dialog-backdrop{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:24px;background:#05070dcc;backdrop-filter:blur(14px)}.podly-dialog{width:min(560px,100%);max-height:min(720px,calc(100vh - 48px));overflow:auto;padding:28px;border:1px solid #3b315b;border-radius:22px;background:linear-gradient(145deg,#141a29,#0b1019);box-shadow:0 30px 100px #0009;position:relative}.podly-dialog-close{position:absolute;left:18px;top:16px;border:1px solid #334158;border-radius:9px;background:#111a29;color:#b7c2d4;width:32px;height:32px;font-size:22px}.podly-dialog-heading h2{margin:4px 0 20px;font-size:22px}.workspace-list,.support-grid{display:grid;gap:10px;margin-top:22px}.workspace-option,.support-grid a{display:flex;align-items:center;gap:12px;width:100%;text-align:right;text-decoration:none;padding:15px;border:1px solid #293850;border-radius:14px;background:#0e1622;color:var(--podly-text);transition:.2s}.workspace-option:hover,.workspace-option.active,.support-grid a:hover{border-color:#7657c5;background:#21183b}.workspace-option span:nth-child(2),.support-grid a strong,.support-grid a small{display:block;flex:1}.workspace-option small,.support-grid a small{display:block;color:#7f8ca1;font-size:10px;margin-top:4px}.workspace-option b{color:#b49cff}.workspace-add,.support-grid a>span{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#251c43;color:#bca5ff;font-size:20px}.support-grid{grid-template-columns:repeat(3,1fr)}.support-grid a{display:block}.support-grid a>span{margin-bottom:14px}.support-grid a strong{font-size:12px}.support-note,.setting-placeholder{margin-top:18px;padding:14px;border:1px solid #293850;border-radius:12px;background:#0b131f;color:#94a0b4;font-size:11px}.setting-placeholder{text-align:center;padding:40px 20px}.setting-placeholder span{display:block;color:#a98aff;font-size:34px;margin-bottom:12px}.setting-placeholder strong,.setting-placeholder small{display:block}.setting-placeholder small{color:#7e8ba0;margin-top:8px}.setting-switch{display:flex!important;align-items:center;justify-content:space-between;padding:14px;border:1px solid #293850;border-radius:12px;background:#0b131f}.setting-switch input{width:auto!important;margin:0!important;accent-color:#8b5cf6}.billing-trust-row{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:16px}.billing-trust-row>div{display:flex;align-items:flex-start;gap:10px;padding:16px;border:1px solid #293850;border-radius:14px;background:linear-gradient(145deg,#101a29,#0c131e)}.billing-trust-row span{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#251c43;color:#bda6ff}.billing-trust-row strong,.billing-trust-row small{display:block}.billing-trust-row strong{font-size:12px}.billing-trust-row small{color:#7e8ba0;font-size:10px;line-height:1.8;margin-top:3px}@media(max-width:760px){.support-grid,.billing-trust-row{grid-template-columns:1fr}.podly-dialog{padding:22px}}
/* Dashboard refinements */
body.dashboard-page #settings .settings-grid{grid-template-columns:250px minmax(0,1fr);align-items:start;gap:20px}
body.dashboard-page #settings .settings-nav{padding:8px;background:linear-gradient(180deg,#111a29,#0d141f);position:sticky;top:22px}
body.dashboard-page #settings .settings-tab{display:flex;align-items:center;min-height:48px;padding:13px 15px;border:1px solid transparent;color:#96a3b7;transition:.2s ease}
body.dashboard-page #settings .settings-tab:hover{background:#171d2b;color:#eef2f8;border-color:#293850}
body.dashboard-page #settings .settings-tab.active{background:linear-gradient(135deg,#271a49,#17162a);border-color:#6045a7;color:#fff;box-shadow:inset -3px 0 #a178ff}
body.dashboard-page #settings .settings-tab:focus{outline:none}
body.dashboard-page #settings .settings-form{max-width:none;min-height:370px;padding:30px;background:linear-gradient(145deg,#111a29,#0c131e);border-color:#2b3950}
body.dashboard-page #settings .settings-form>h2{margin-bottom:8px}
body.dashboard-page #settings .settings-form>.muted{margin-bottom:25px}
body.dashboard-page #settings .profile-row{margin-bottom:0}
body.dashboard-page #settings .settings-form .setting-switch{display:flex!important;align-items:center;justify-content:space-between;gap:20px;min-height:78px;margin-bottom:12px;padding:18px 20px;border:1px solid #2d3b53;border-radius:13px;background:#0a111b}
body.dashboard-page #settings .settings-form .setting-switch span{flex:1}
body.dashboard-page #settings .settings-form .setting-switch strong,body.dashboard-page #settings .settings-form .setting-switch small{display:block}
body.dashboard-page #settings .settings-form .setting-switch small{margin-top:5px;color:#8290a5;font-size:11px;line-height:1.8}
body.dashboard-page #settings .settings-form .setting-switch input{width:20px!important;height:20px;margin:0!important;accent-color:#8b5cf6}
body.dashboard-page #settings .settings-form input[readonly]{color:#7f8ca1;cursor:not-allowed;background:#080d15}
body.dashboard-page #settings .settings-form>[data-save-profile],body.dashboard-page #settings .settings-form>[data-save-notifications]{margin-top:8px}
body.dashboard-page #settings .settings-form h2{font-size:19px;margin:0 0 7px}
body.dashboard-page #settings .settings-form>p{margin:0 0 26px}
body.dashboard-page #settings .settings-form label{display:block;color:#b8c2d2;font-size:12px;margin-bottom:19px}
body.dashboard-page #settings .settings-form label input:not([type=color]),body.dashboard-page #settings .settings-form label textarea,body.dashboard-page #settings .settings-form label select{width:100%;min-height:46px;margin-top:8px;padding:12px 14px;background:#0a111b;border:1px solid #2d3b53;border-radius:11px;color:#eef2f8;outline:none}
body.dashboard-page #settings .settings-form label textarea{min-height:100px;resize:vertical}
body.dashboard-page #settings .settings-form input[type=color]{width:100%;height:46px;padding:5px;background:#0a111b;border:1px solid #2d3b53;border-radius:11px}
body.dashboard-page #billing .billing-grid{grid-template-columns:minmax(285px,.72fr) minmax(430px,1.28fr);gap:20px;align-items:stretch}
body.dashboard-page #billing .balance-card{min-height:285px;padding:29px;background:radial-gradient(circle at 20% 15%,#3a236c 0,transparent 42%),linear-gradient(145deg,#201742,#101622);position:relative;overflow:hidden}
body.dashboard-page #billing .balance-card strong{font-size:52px;line-height:1;margin:24px 0 13px;letter-spacing:-2px}
body.dashboard-page #billing .balance-card p{max-width:240px;line-height:1.9}
body.dashboard-page #billing .plans-card{padding:29px;background:linear-gradient(145deg,#111b2a,#0c131e)}
body.dashboard-page #billing .plans-card h2{font-size:19px;margin:0 0 7px}
body.dashboard-page #billing .plans-card .buy-plan{display:flex!important;align-items:center;justify-content:space-between;width:100%!important;min-height:58px;margin:10px 0!important;padding:14px 17px!important;border-radius:12px!important;background:#111d2d!important;border-color:#2d405c!important;color:#edf1f8!important;transition:.2s ease}
body.dashboard-page #billing .plans-card .buy-plan:hover{background:#21183d!important;border-color:#7859cb!important;transform:translateY(-1px)}
body.dashboard-page #billing .billing-trust-row{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}
body.dashboard-page #billing .billing-trust-row>div{min-height:82px;padding:17px 19px;background:linear-gradient(145deg,#111c2b,#0c141f);border-color:#2b3b55;align-items:center}
body.dashboard-page #billing .credit-history{margin-top:20px;padding:27px;background:linear-gradient(145deg,#111a29,#0c131e);border-color:#2b3950}
body.dashboard-page #billing .credit-history .table-panel{border:1px solid #27374f;border-radius:12px;background:#0a111b}
body.dashboard-page #billing .credit-history th{padding:14px 18px;background:#101a29;color:#7e8da4}
body.dashboard-page #billing .credit-history td{padding:15px 18px;border-bottom-color:#1b293b}
body.dashboard-page .workspace-create-form{display:flex;flex-direction:column;gap:4px;margin-top:22px}body.dashboard-page .workspace-create-form label{display:block;color:#b8c2d2;font-size:12px;margin-bottom:14px}body.dashboard-page .workspace-create-form label>span{color:#fb7185;margin-right:4px}body.dashboard-page .workspace-create-form input,body.dashboard-page .workspace-create-form textarea{display:block;width:100%;margin-top:8px;padding:12px 14px;border-radius:11px;border:1px solid #2d3b53;background:#0a111b;color:#eef2f8;outline:none;resize:vertical}body.dashboard-page .workspace-create-form input:focus,body.dashboard-page .workspace-create-form textarea:focus{border-color:#8c67e8;box-shadow:0 0 0 3px #8c67e822}.workspace-form-actions{display:flex;justify-content:flex-start;gap:10px;margin-top:8px}.workspace-form-error{min-height:18px;margin:8px 0 0;color:#fb7185;font-size:11px}.workspace-create-option{border-style:dashed!important}
@media(max-width:900px){body.dashboard-page #settings .settings-grid,body.dashboard-page #billing .billing-grid{grid-template-columns:1fr}body.dashboard-page #settings .settings-nav{position:static}body.dashboard-page #billing .billing-trust-row{grid-template-columns:1fr}}
/* Dashboard information architecture */
body.dashboard-page .sidebar{padding:24px 16px 18px}
body.dashboard-page .brand{padding:0 10px 24px;border-bottom:1px solid #ffffff0d;margin-bottom:18px}
body.dashboard-page .workspace-switcher{margin-bottom:15px;padding:13px 12px}
body.dashboard-page .nav-label{padding:18px 13px 7px;font-size:10px;letter-spacing:.04em;color:#66758e}
body.dashboard-page .main-nav{gap:4px}
body.dashboard-page .nav-item{display:grid;grid-template-columns:24px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;row-gap:2px;align-items:center;text-align:right;padding:11px 12px;min-height:56px}
body.dashboard-page .nav-item>span{grid-row:1 / span 2;align-self:center}
body.dashboard-page .nav-item b{font-size:12px;font-weight:700;color:inherit;line-height:1.3}
body.dashboard-page .nav-item small{font-size:9px;color:#748197;line-height:1.3}
body.dashboard-page .nav-item.active small,body.dashboard-page .nav-item:hover small{color:#aaa0d1}
body.dashboard-page .sidebar-bottom{border-top:1px solid #ffffff0d;padding-top:14px}
body.dashboard-page .support-link{padding:14px 9px 2px;color:#a89aff}
.payment-celebration{position:fixed;inset:0;z-index:300;display:grid;place-items:center;padding:20px;background:#05070ddd;backdrop-filter:blur(16px);overflow:hidden}.payment-celebration section{position:relative;width:min(440px,100%);padding:34px;border:1px solid #69509b;border-radius:24px;background:radial-gradient(circle at 50% 0,#352061,#151a27 55%);box-shadow:0 35px 120px #000c;text-align:center}.celebration-icon{display:grid;place-items:center;width:68px;height:68px;margin:0 auto 16px;border-radius:50%;background:linear-gradient(135deg,#34d399,#22d3ee);color:#06130f;font-size:31px;font-weight:900;box-shadow:0 0 0 9px #34d39914,0 14px 45px #22d3ee35}.payment-celebration small{color:#79e8be}.payment-celebration h2{margin:7px 0;font-size:23px}.payment-celebration p{color:#9ba5b8;font-size:12px}.celebration-details{display:grid;gap:8px;margin:22px 0;padding:15px;border:1px solid #343c50;border-radius:13px;background:#0d121b}.celebration-details span{display:flex;justify-content:space-between;color:#8f99ac;font-size:11px}.celebration-details strong{color:#fff}.payment-celebration button{width:100%;padding:13px;border:0;border-radius:11px;background:linear-gradient(135deg,#8b5cf6,#6840c3);color:#fff;font:700 12px Vazirmatn;cursor:pointer}.celebration-particles{position:absolute;inset:0;pointer-events:none}.celebration-particles i{--angle:calc(var(--i)*20deg);position:absolute;left:50%;top:48%;width:8px;height:14px;border-radius:3px;background:hsl(calc(var(--i)*31) 85% 65%);animation:celebrate 1.6s ease-out infinite;animation-delay:calc(var(--i)*-.06s)}@keyframes celebrate{0%{transform:translate(-50%,-50%) rotate(var(--angle)) translateY(0);opacity:1}100%{transform:translate(-50%,-50%) rotate(var(--angle)) translateY(-320px) rotate(180deg);opacity:0}}
body.dashboard-page .topbar{height:76px}
body.dashboard-page .breadcrumb{gap:12px}
body.dashboard-page .breadcrumb strong{font-size:16px}
body.dashboard-page .view{max-width:1480px;padding-top:38px}
body.dashboard-page .welcome-row,body.dashboard-page .section-header{margin-bottom:32px}
body.dashboard-page .welcome-row h1,body.dashboard-page .section-header h1{font-size:31px;line-height:1.45}
body.dashboard-page .welcome-row .muted,body.dashboard-page .section-header .muted{font-size:12px}
body.dashboard-page .stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}
body.dashboard-page .stat-card{min-height:116px;padding:20px;background:linear-gradient(145deg,#121c2b,#0c131e);border-color:#273850;transition:.2s ease}
body.dashboard-page .stat-card:hover{transform:translateY(-2px);border-color:#5e4a9a}
body.dashboard-page .stat-card strong{font-size:25px}
body.dashboard-page .content-grid{grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:20px}
body.dashboard-page .panel{border-radius:17px}
body.dashboard-page .quick-panel,body.dashboard-page .activity-panel,body.dashboard-page .usage-panel,body.dashboard-page .tip-panel{padding:24px}
body.dashboard-page .panel-heading h2{font-size:17px}
body.dashboard-page .service-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.dashboard-page .service-card{min-height:175px;padding:18px}
body.dashboard-page .activity{padding:14px 0}
body.dashboard-page .activity-list:empty::after{content:'هنوز فعالیتی ثبت نشده است؛ اولین پروژه‌ات را بساز.';display:block;color:#7c899f;font-size:11px;padding:22px 0}
body.dashboard-page .bottom-grid{gap:20px}
body.dashboard-page .tip-panel{align-items:flex-start}
body.dashboard-page #create .create-layout{grid-template-columns:300px minmax(0,1fr);align-items:start}
body.dashboard-page #create .service-selector{position:sticky;top:20px}
body.dashboard-page #create .form-panel{padding:30px}
body.dashboard-page #create .form-panel label{font-size:12px}
body.dashboard-page #create .form-footer{margin-top:18px}
body.dashboard-page #create .podcast-flow{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:8px;margin:18px 0 24px;padding:16px 12px;border:1px solid #2b3950;border-radius:13px;background:#0a111b}
body.dashboard-page #create .podcast-flow span{display:flex;flex-direction:column;gap:5px;color:#c8d1df;font-size:10px;text-align:center}
body.dashboard-page #create .podcast-flow b{color:#ad91ff;font-size:15px}
body.dashboard-page #create .podcast-flow i{font-style:normal;color:#718099;font-size:16px}
body.dashboard-page #projects.library-modern{padding-top:0}
body.dashboard-page #billing .section-header .primary-btn{white-space:nowrap}
/* Credit balance card: keep expiry details visually separate from the CTA. */
body.dashboard-page #billing .balance-card{display:flex;flex-direction:column}
body.dashboard-page #billing .balance-card .credit-expiry-note{margin:18px 0 0;padding:12px 14px;border:1px solid #44386e;border-radius:12px;background:linear-gradient(135deg,#1b1831,#151827);color:#9da8bb;font-size:10px;line-height:1.9;box-shadow:inset 0 1px #ffffff08}
body.dashboard-page #billing .balance-card .credit-expiry-note strong{display:inline;color:#e7c86d;font-size:12px;font-weight:700;white-space:nowrap}
body.dashboard-page #billing .balance-card>[data-credit-packages]{align-self:flex-start;margin-top:20px}
body.dashboard-page #billing .balance-card .credit-expiry-note br{content:'';display:block;margin:5px 0}
@media(max-width:760px){body.dashboard-page #billing .balance-card .credit-expiry-note{margin-top:16px}body.dashboard-page #billing .balance-card>[data-credit-packages]{margin-top:18px}}
body.dashboard-page .toast{left:24px;bottom:24px}
@media(max-width:1100px){body.dashboard-page .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.dashboard-page .content-grid{grid-template-columns:1fr}body.dashboard-page .service-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){body.dashboard-page .view{padding-top:26px}body.dashboard-page .welcome-row h1,body.dashboard-page .section-header h1{font-size:24px}body.dashboard-page .stats-grid{grid-template-columns:1fr 1fr}body.dashboard-page .service-cards{grid-template-columns:1fr}body.dashboard-page #create .service-selector{position:static}}
@media(max-width:760px){body.dashboard-page .topbar{margin-inline:-15px;padding-inline:15px}}
body.dashboard-page .activity-list>p{margin:0;padding:28px 10px;text-align:center;color:#7e8ca2;font-size:11px;border:1px dashed #2d3b53;border-radius:12px;background:#0a111b}
body.dashboard-page .activity-list>p::before{content:'✦';display:block;color:#9b78f2;font-size:22px;margin-bottom:8px}
body.dashboard-page #overview .stats-grid .stat-card:nth-child(1){background:radial-gradient(circle at 10% 0,#302061 0,transparent 50%),linear-gradient(145deg,#121b2a,#0c131e)}
body.dashboard-page #overview .stats-grid .stat-card:nth-child(4){background:radial-gradient(circle at 10% 0,#123e39 0,transparent 50%),linear-gradient(145deg,#121b2a,#0c131e)}
body.dashboard-page .credit-pill{white-space:nowrap}
body.dashboard-page .form-panel,body.dashboard-page .tts-form{box-shadow:0 20px 70px #0003}
.beta-label{display:inline-flex;margin-right:5px;padding:2px 6px;border:1px solid #8b5cf666;border-radius:999px;background:#8b5cf61f;color:#c4b5fd;font-size:8px;font-style:normal;vertical-align:middle}
.theme-soon{display:inline-flex;align-items:center;gap:7px;border:1px solid #30384a;border-radius:10px;background:#151b25;color:#aeb7c7;padding:8px 11px;font:inherit;font-size:10px}.theme-soon small{color:#8b93a4;font-size:8px}.theme-soon:disabled{cursor:not-allowed;opacity:.82}
.theme-soon{display:none!important}
.field-help{display:block;margin-top:7px;color:#7f8a9e;line-height:1.8}.workspace-team-soon{opacity:.62;cursor:not-allowed!important}.workspace-team-soon b{font-size:8px;color:#a78bfa}
@media(max-width:720px){.theme-soon{display:none}}
