:root { --bg:#080809; --panel:#101011; --surface:#18181a; --surface-raised:#202022; --line:#28282b; --line-soft:#202023; --text:#f1f0ee; --muted:#98989f; --subtle:#68686f; --accent:#f2f0ed; --orange:#ff7a1a; --danger:#ff4a90; --success:#45d483; --pending:#ff6b5e; }
* { box-sizing:border-box; }
[hidden] { display: none !important; }
html { height:100%; scroll-behavior:smooth; overflow:hidden; }
body { height:100%; margin:0; min-width:320px; overflow:hidden; background:var(--bg); color:var(--text); font-family:Manrope,system-ui,sans-serif; }
button,input,textarea,select { font:inherit; } button { cursor:pointer; } svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.9; }
.studio-app { display:grid; grid-template-columns:minmax(350px,31.5%) minmax(0,1fr); height:var(--real-vh, 100%); overflow:hidden; gap:10px; padding:10px 10px 80px; }
.creator-panel,.workspace-panel { border-radius:16px; background:var(--panel); }.creator-panel { position:sticky; top:10px; align-self:stretch; height:auto; min-height:0; padding:22px; overflow:auto; scrollbar-width:thin; scrollbar-color:#333338 transparent; }.creator-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:43px; }.creator-actions { display:flex; align-items:center; gap:8px; }.theme-icon-moon { display:none; }.brand { color:#f7f6f4; font-size:20px; font-weight:800; letter-spacing:.04em; text-decoration:none; }
.icon-button { display:grid; width:42px; height:42px; place-items:center; border:0; border-radius:50%; background:#19191b; color:var(--text); }.icon-button:hover { background:#27272a; }
.creation-toolbar { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; margin-bottom:20px; }.credit-pill,.model-button,.mode-switch { height:47px; border:1px solid var(--line); border-radius:999px; background:transparent; color:var(--text); }.credit-pill { display:inline-flex; align-items:center; gap:8px; padding:0 15px; font-size:12px; font-weight:700; white-space:nowrap; }.credit-pill svg { width:15px; }.mode-switch { display:flex; padding:4px; }.mode-fixed { align-items:center; justify-content:center; background:#2b2b2e; font-size:12px; font-weight:700; }.model-button { display:flex; align-items:center; justify-content:center; gap:6px; padding:0 13px; font-size:12px; font-weight:700; }.asset-actions button.has-file { color:#f1f0ee; background:#29292c; }
.asset-actions { display:grid; grid-template-columns:repeat(3,1fr); margin-bottom:10px; overflow:hidden; border-radius:999px; background:#1d1d20; }.asset-actions button { display:flex; align-items:center; justify-content:center; gap:8px; min-height:70px; border:0; border-right:1px solid var(--line); background:transparent; color:var(--text); font-size:13px; font-weight:700; }.asset-actions button:last-child { border-right:0; }.asset-actions button:hover { background:#28282b; }.asset-actions svg { width:17px; }.audio-status { margin:0 0 14px; color:var(--muted); font-size:10px; line-height:1.45; }
.creation-card { margin-top:20px; padding:20px 20px 15px; border-radius:15px; background:var(--surface); }.card-title { display:flex; align-items:center; justify-content:space-between; margin-bottom:17px; color:#e3e2e0; font-size:14px; font-weight:700; }.card-title>span:first-child { display:flex; align-items:center; gap:8px; }.card-title svg { width:16px; }.field-required { color:var(--subtle); font:10px "DM Mono",monospace; text-transform:uppercase; }.title-icon { color:#c5c4c2; }
label { display:block; margin:0 0 7px; color:#c4c3c4; font-size:11px; font-weight:700; } label span { color:var(--subtle); font-weight:500; } textarea,input,select { width:100%; border:0; outline:0; color:var(--text); background:#202023; border-radius:8px; } textarea { min-height:168px; padding:4px 2px; background:transparent; color:#dedde0; font-size:13px; line-height:1.7; resize:vertical; } textarea::placeholder,input::placeholder { color:#73737b; }.textarea-footer { display:flex; align-items:center; justify-content:space-between; padding-top:13px; border-top:1px solid #2a2a2d; }.textarea-footer>span { color:#777780; font:11px "DM Mono",monospace; }.inline-action { display:flex; align-items:center; gap:6px; border:0; background:none; color:#b7b6bc; font-size:11px; font-weight:700; }.inline-action:hover { color:var(--text); }.inline-action svg { width:15px; }
.controls-card { padding-bottom:20px; }.controls-card input,.controls-card select { height:42px; padding:0 12px; border:1px solid #303034; font-size:12px; }.controls-card select { appearance:none; background-image:linear-gradient(45deg,transparent 50%,#aaa 50%),linear-gradient(135deg,#aaa 50%,transparent 50%); background-position:calc(100% - 15px) 18px,calc(100% - 10px) 18px; background-size:5px 5px,5px 5px; background-repeat:no-repeat; }.two-fields { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:13px 0; }.cover-option { display:flex; align-items:center; gap:9px; margin:14px 0 0; color:#dfdde0; cursor:pointer; }.cover-option input { width:16px; height:16px; margin:0; padding:0; accent-color:#f1f0ee; }.cover-option span { display:grid; gap:2px; }.cover-option small { color:var(--subtle); font:10px "DM Mono",monospace; }
.style-hint { margin:7px 0 0; color:var(--subtle); font:10px "DM Mono",monospace; }
.create-button { display:flex; align-items:center; justify-content:center; gap:9px; width:100%; min-height:59px; margin-top:22px; border:0; border-radius:999px; background:#f1f0ee; color:#171719; font-size:15px; font-weight:800; }.create-button:hover { background:#fff; }.create-button:disabled { cursor:wait; opacity:.6; }.create-button svg { width:17px; }.create-button span { font-size:18px; }.form-error { margin:13px 0 0; color:#ff8ab5; font-size:12px; }.result { margin-top:18px; padding:17px; border:1px solid #333338; border-radius:12px; background:#18181a; }.result p { margin:10px 0 0; color:#d6d5d5; font-size:12px; }.progress-track { height:5px; overflow:hidden; border-radius:999px; background:#323237; }.progress-fill { width:8%; height:100%; border-radius:inherit; background:#e9e7e3; transition:width .7s ease; }.track { margin-top:14px; }.track h3 { margin:0 0 8px; font-size:13px; }.completed-song { display:flex; align-items:center; gap:13px; }.completed-cover,.cover-fallback { width:300px; height:300px; flex:0 0 300px; border:1px solid #343438; border-radius:14px; object-fit:cover; }.cover-fallback { display:grid; place-items:center; color:#e4e3e1; background:radial-gradient(circle at 30% 25%,#545457 0 3%,transparent 3.5%),linear-gradient(135deg,#363638,#171719 68%); font-size:48px; }.track-meta { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }.track audio { width:100%; height:32px; }.download { display:inline-flex; flex:0 0 auto; align-items:center; gap:7px; height:31px; padding:0 14px; border:1px solid #34343a; border-radius:999px; background:#1c1c1f; color:#dcdbdd; font:700 11px Manrope,system-ui,sans-serif; text-decoration:none; white-space:nowrap; transition:background .15s ease,border-color .15s ease,color .15s ease; }.download:hover { border-color:#4c4c54; background:#2c2c30; color:#fff; }.download:active { background:#35353a; }.download:focus-visible { outline:2px solid #f1f0ee; outline-offset:2px; }.download-icon { display:grid; place-items:center; color:#a3a2a8; }.download-icon svg { width:14px; height:14px; }.download:hover .download-icon { color:#f2f0ed; }.lyrics-result { margin-top:18px; padding:18px; border-radius:12px; background:#18181a; }.section-label { margin:0 0 7px; color:var(--muted); font:10px "DM Mono",monospace; text-transform:uppercase; }.lyrics-result h2 { margin:0 0 8px; font-size:14px; }.lyrics-result pre { margin:0; white-space:pre-wrap; color:#b9b8bb; font:11px/1.65 "DM Mono",monospace; }.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.creator-panel form[data-mode="simple"] .controls-card { display:none; }
.workspace-panel { display:flex; flex-direction:column; min-width:0; min-height:0; overflow:hidden; }.workspace-nav { flex:0 0 auto; display:flex; align-items:center; justify-content:space-between; gap:18px; padding:17px 22px; border-bottom:1px solid var(--line-soft); }.workspace-nav nav,.nav-actions { display:flex; align-items:center; gap:10px; }.workspace-nav a { display:flex; align-items:center; gap:8px; min-height:49px; padding:0 20px; border-radius:999px; color:#d2d1d1; background:#19191b; font-size:14px; font-weight:700; text-decoration:none; }.workspace-nav a:hover { background:#262629; }.workspace-nav a.active { color:#151516; background:#f1f0ee; }.workspace-nav a svg { width:17px; }.nav-actions { padding:4px 7px; border-radius:999px; background:#18181a; }.nav-actions .icon-button { width:36px; height:36px; background:transparent; }.nav-actions .icon-button:hover { background:#29292c; }.nav-actions svg { width:18px; }.avatar { display:flex; align-items:center; gap:8px; min-height:36px; padding:0 15px; border:0; border-radius:999px; background:var(--orange); color:#171719; font-size:12px; font-weight:800; letter-spacing:-.01em; white-space:nowrap; transition:background .15s ease,color .15s ease; }.avatar svg { width:16px; height:16px; stroke-width:2; }.avatar:hover { background:#ff8f3f; }.avatar:focus-visible { outline:2px solid var(--orange); outline-offset:2px; }.avatar.is-connected { width:36px; padding:0; justify-content:center; background:#2a4c96; color:#fff; font-size:11px; letter-spacing:.02em; }.avatar.is-connected svg { display:none; }.avatar.is-connected:hover { background:#3a5fb0; }
.workspace-content { display:flex; flex:1 1 auto; flex-direction:column; min-height:0; padding:43px 34px 38px; overflow:hidden; }.workspace-title { flex:0 0 auto; display:flex; align-items:center; justify-content:space-between; gap:20px; }.workspace-title p { margin:0; color:#a7a6aa; font-size:20px; font-weight:600; letter-spacing:-.035em; }.workspace-title p span { padding:0 7px; color:#d8d7d7; }.workspace-title strong { color:var(--text); }.new-workspace,.control-button { display:inline-flex; align-items:center; gap:7px; border:1px solid var(--line); border-radius:999px; background:#1b1b1e; color:#d8d7d8; font-size:12px; font-weight:700; }.new-workspace { height:38px; padding:0 14px; }.new-workspace svg,.control-button svg { width:15px; }.library-controls { position:relative; display:flex; flex:0 0 auto; align-items:center; gap:10px; margin:30px 0 31px; }.search-box { display:flex; flex:1 1 280px; align-items:center; gap:9px; height:54px; margin:0; padding:0 17px; border-radius:999px; background:#1c1c1f; color:#8b8a90; }.search-box svg { flex:0 0 auto; width:18px; }.search-box input { height:100%; padding:0; background:transparent; font-size:13px; }.control-button { height:54px; padding:0 17px; white-space:nowrap; }.control-button.emphasis { border-color:transparent; background:#f1f0ee; color:#171719; }.control-button svg:last-child { width:13px; }.filter-menu { position:absolute; z-index:2; top:61px; right:123px; display:grid; min-width:150px; padding:6px; border:1px solid #36363a; border-radius:10px; background:#242427; box-shadow:0 16px 30px rgba(0,0,0,.35); }.filter-menu[hidden] { display:none; }.filter-menu button { padding:9px 10px; border:0; border-radius:6px; background:none; color:#d8d7d8; text-align:left; font-size:11px; font-weight:700; }.filter-menu button:hover { background:#343438; }
.list-heading { flex:0 0 auto; display:flex; align-items:center; justify-content:space-between; padding:0 11px 17px 42px; color:#b9b8bc; font-size:13px; font-weight:700; }.list-heading>span:last-child { color:#6e6e75; font:11px "DM Mono",monospace; }.list-heading b { color:#d8d7d7; font-weight:500; }.song-list { display:grid; flex:1 1 auto; align-content:start; min-height:0; overflow-x:hidden; overflow-y:auto; scrollbar-gutter:stable; scrollbar-width:thin; scrollbar-color:#45454b transparent; }.song-list::-webkit-scrollbar { width:8px; }.song-list::-webkit-scrollbar-thumb { border-radius:999px; background:#45454b; }.song { position:relative; display:grid; grid-template-columns:12px 118px minmax(0,1fr) 48px; align-items:center; gap:17px; min-height:127px; padding:13px 10px; border-top:1px solid var(--line-soft); }.song:hover,.song.selected { background:#161618; }.song-status-dot { width:10px; height:10px; border-radius:50%; background:transparent; }.song-status-dot.complete { background:var(--success); box-shadow:0 0 0 3px color-mix(in srgb,var(--success) 18%,transparent); }.song-status-dot.processing { background:#c8c6c4; }.song-status-dot.pending { background:var(--pending); box-shadow:0 0 0 3px color-mix(in srgb,var(--pending) 18%,transparent); }.song-cover { display:grid; width:80px; height:80px; place-items:center; border:1px solid #343438; border-radius:12px; object-fit:cover; color:#e4e3e1; background:radial-gradient(circle at 30% 25%,#545457 0 3%,transparent 3.5%),linear-gradient(135deg,#363638,#171719 68%); font-size:28px; }.song-cover.cover-1 { background:radial-gradient(circle at 70% 35%,#6b6a66 0 4%,transparent 4.5%),linear-gradient(140deg,#3f3d38,#171719 65%); }.song-cover.cover-2 { background:linear-gradient(120deg,#525252,#252527 45%,#171719); }.song-cover.cover-3 { background:radial-gradient(circle at 35% 72%,#666 0 5%,transparent 5.5%),linear-gradient(140deg,#303033,#161618); }.song-content { min-width:0; }.song-top { display:flex; align-items:baseline; gap:10px; }.song-title { overflow:hidden; margin:0; color:#ecebea; font-size:15px; font-weight:700; letter-spacing:-.025em; text-overflow:ellipsis; white-space:nowrap; }.status { flex:0 0 auto; color:#a6a5a8; font:10px "DM Mono",monospace; }.status.complete { color:var(--success); }.status.pending { color:var(--pending); }.status.failed { color:#ff8b8b; }.song-details,.song-prompt { overflow:hidden; margin:6px 0 0; color:#77777e; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }.song .track-meta { display:flex; align-items:center; gap:10px; flex-wrap:wrap; max-width:490px; margin-top:10px; }.song .track-meta audio { flex:1 1 220px; min-width:0; width:auto; height:28px; }.song .download { height:28px; padding:0 11px; font-size:10px; }
.song-menu { display:grid; width:44px; height:44px; place-items:center; border:0; border-radius:50%; color:#c0bfc1; background:#1b1b1e; transition:background .15s ease,color .15s ease; }.song-menu:hover { background:#2a2a2d; color:#fff; }.song-menu[aria-expanded="true"] { background:#f1f0ee; color:#171719; }.song-menu:focus-visible { outline:2px solid #f1f0ee; outline-offset:2px; }.song-menu svg { width:19px; height:19px; fill:currentColor; stroke:none; }
@keyframes songMenuIn { from { opacity:0; transform:translate(-50%,-45%) scale(.97); } to { opacity:1; transform:translate(-50%,-50%); } }
.song-menu-backdrop { position:fixed; z-index:29; inset:0; background:rgba(0,0,0,.6); backdrop-filter:blur(2px); animation:songBackdropIn .16s ease-out; }
@keyframes songBackdropIn { from { opacity:0; } to { opacity:1; } }
.song-action-popover { position:fixed; z-index:30; top:50%; left:50%; display:grid; width:min(276px,calc(100vw - 40px)); max-height:min(540px,84vh); overflow-x:hidden; overflow-y:auto; padding:8px; border:1px solid #3f3f45; border-radius:16px; background:#27272a; box-shadow:0 28px 70px rgba(0,0,0,.62),0 4px 10px rgba(0,0,0,.45); transform:translate(-50%,-50%); animation:songMenuIn .16s ease-out; scrollbar-width:thin; scrollbar-color:#4a4a51 transparent; overscroll-behavior:contain; }.song-action-popover:focus-visible { outline:none; }
.song-menu-head { display:grid; grid-template-columns:40px minmax(0,1fr); align-items:center; gap:12px; padding:7px 7px 14px; margin-bottom:5px; border-bottom:1px solid #3a3a40; }.song-menu-cover { width:40px; height:40px; flex:0 0 40px; border:1px solid #3f3f44; border-radius:11px; font-size:18px; }.song-menu-title { overflow:hidden; color:#eeedeb; font-size:14px; font-weight:700; letter-spacing:-.02em; text-overflow:ellipsis; white-space:nowrap; }
.song-menu-item { display:grid; grid-template-columns:20px minmax(0,1fr); align-items:center; gap:12px; padding:11px 10px; border:0; border-radius:11px; background:none; color:#e4e3e4; text-align:left; font-size:13.5px; font-weight:700; }.song-menu-item:hover,.song-menu-item:focus-visible { background:#3a3a40; color:#fff; outline:none; }.song-menu-icon { display:grid; place-items:center; color:#a5a4ab; }.song-menu-icon svg { width:19px; height:19px; stroke-width:1.8; }.song-menu-item:hover .song-menu-icon,.song-menu-item:focus-visible .song-menu-icon { color:#f2f0ed; }.song-menu-label { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.song-menu-item:disabled { color:#7c7c84; cursor:not-allowed; background:none; }.song-menu-item:disabled .song-menu-icon { color:#61616a; }.song-menu-separator { height:1px; margin:6px 6px; background:#3a3a40; }.song-menu-item.danger { color:#ffa3bf; }.song-menu-item.danger .song-menu-icon { color:#ff7fa8; }.song-menu-item.danger:hover,.song-menu-item.danger:focus-visible { background:rgba(255,74,144,.18); color:#ffb3cc; }.song-menu-item.danger:focus-visible .song-menu-icon { color:#ffa3bf; }.empty { margin:0; padding:45px; border-top:1px solid var(--line-soft); color:#77777e; font-size:13px; text-align:center; }
.player-bar { position:fixed; z-index:3; right:0; bottom:0; left:0; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; height:70px; padding:0 30px; border-top:1px solid #171719; background:#050506; color:#8d8c92; }.player-song { display:flex; align-items:center; gap:9px; font-size:11px; }.mini-cover { display:grid; width:34px; height:34px; place-items:center; border-radius:5px; background:#1d1d20; color:#c5c4c4; }.player-controls { display:flex; align-items:center; gap:17px; }.player-controls button,.volume { display:grid; width:22px; height:22px; place-items:center; padding:0; border:0; background:none; color:#8b8a90; }.player-controls button svg,.volume svg { width:17px; height:17px; }.player-controls .play-control,.player-controls button.active,.volume.active { color:#f2f0ed; }.volume { justify-self:end; }.app-toast { position:fixed; z-index:10; bottom:88px; left:50%; max-width:calc(100% - 30px); margin:0; padding:11px 15px; transform:translateX(-50%); border:1px solid #39393d; border-radius:9px; background:#28282b; color:#f0efed; box-shadow:0 12px 30px rgba(0,0,0,.35); font-size:12px; }.studio-app.panel-collapsed { grid-template-columns:76px minmax(0,1fr); }.studio-app.panel-collapsed .creator-panel { padding:16px; overflow:hidden; }.studio-app.panel-collapsed .creator-panel>*:not(.creator-heading) { display:none; }.studio-app.panel-collapsed .brand { display:none; }.studio-app.panel-collapsed .creator-heading { justify-content:center; }
.song { cursor:pointer; }.song-details-dialog { width:min(560px,calc(100% - 32px)); max-height:calc(var(--real-vh, 100%) - 32px); padding:22px; border:1px solid #39393d; border-radius:16px; background:var(--panel); color:var(--text); box-shadow:0 24px 70px rgba(0,0,0,.5); }.song-details-dialog::backdrop { background:rgba(0,0,0,.62); }.song-details-header { display:flex; align-items:center; justify-content:space-between; gap:16px; }.song-details-header p { margin:0; color:var(--muted); font:10px "DM Mono",monospace; text-transform:uppercase; }.song-details-header .icon-button { width:34px; height:34px; font-size:21px; }.song-details-dialog h2 { margin:20px 0 4px; font-size:24px; }.song-info-list { display:grid; gap:0; margin:22px 0; border-top:1px solid var(--line-soft); }.song-info-list div { display:grid; grid-template-columns:115px minmax(0,1fr); gap:16px; padding:13px 0; border-bottom:1px solid var(--line-soft); }.song-info-list dt { color:var(--muted); font:10px "DM Mono",monospace; text-transform:uppercase; }.song-info-list dd { min-width:0; margin:0; color:var(--text); font-size:13px; line-height:1.5; overflow-wrap:anywhere; }.song-details-actions { display:flex; justify-content:flex-end; gap:9px; }.song-details-actions .control-button { height:42px; }.song-details-actions .control-button:disabled { opacity:.5; cursor:not-allowed; }
@media (max-width:1120px) { .studio-app { grid-template-columns:390px minmax(0,1fr); }.creator-panel { padding:18px; }.workspace-content { padding:32px 24px; }.workspace-nav a { padding:0 13px; }.song { grid-template-columns:10px 80px minmax(0,1fr) 42px; gap:12px; }.song-cover { width:80px; height:80px; }.song-menu { width:42px; height:42px; }.library-controls { flex-wrap:wrap; }.search-box { min-width:100%; }.credit-pill { padding:0 10px; }.mode-switch button { padding:0 8px; } }
/* Le comportement mobile (coquille d'application, tab bar, wizard, bottom sheets,
   zones sures) est entierement gere dans mobile.css, charge apres ce fichier.
   Ce bloc existait avant cette separation et empilait les deux colonnes :
   il a ete retire au profit de la couche mobile dediee. */
html[data-theme="light"] { color-scheme:light; --bg:#f3f3f5; --panel:#ffffff; --surface:#f5f5f7; --surface-raised:#ffffff; --line:#dedee3; --line-soft:#e8e8ec; --text:#1b1b20; --muted:#686874; --subtle:#858590; --accent:#1b1b20; --danger:#df276c; --success:#15a05a; --pending:#d42d1f; }
html[data-theme="light"] body { background:var(--bg); }
html[data-theme="light"] .brand { color:#1b1b20; }
html[data-theme="light"] .icon-button,html[data-theme="light"] .nav-actions,html[data-theme="light"] .workspace-nav a,html[data-theme="light"] .new-workspace,html[data-theme="light"] .control-button,html[data-theme="light"] .song-menu { border-color:#dedee3; background:#f3f3f5; color:#27272d; }
html[data-theme="light"] .icon-button:hover,html[data-theme="light"] .workspace-nav a:hover,html[data-theme="light"] .song-menu:hover { background:#e8e8ed; }
html[data-theme="light"] .workspace-nav a.active,html[data-theme="light"] .control-button.emphasis { background:#202027; color:#fff; }
html[data-theme="light"] .create-button { background:#17171c; color:#fff; }
html[data-theme="light"] .create-button:hover { background:#303038; }
html[data-theme="light"] .credit-pill,html[data-theme="light"] .model-button,html[data-theme="light"] .mode-switch { border-color:#d9d9df; color:#29292e; }
html[data-theme="light"] .mode-fixed,html[data-theme="light"] .asset-actions,html[data-theme="light"] .result,html[data-theme="light"] .lyrics-result { background:#efeff2; }
html[data-theme="light"] .asset-actions button { border-color:#dcdce1; color:#303038; }
html[data-theme="light"] .asset-actions button:hover { background:#e3e3e8; }
html[data-theme="light"] textarea,html[data-theme="light"] input,html[data-theme="light"] select { background:#fff; color:#202027; }
html[data-theme="light"] .controls-card input,html[data-theme="light"] .controls-card select { border-color:#d7d7de; }
html[data-theme="light"] .song:hover,html[data-theme="light"] .song.selected { background:#f4f4f7; }
html[data-theme="light"] .song-cover,html[data-theme="light"] .cover-fallback { border-color:#d9d9df; color:#555561; }
html[data-theme="light"] .song-title,html[data-theme="light"] .track h3,html[data-theme="light"] .workspace-title strong { color:#202027; }
html[data-theme="light"] .progress-track { background:#dcdce2; }
html[data-theme="light"] .progress-fill { background:#25252b; }
html[data-theme="light"] .player-bar { border-color:#dedee3; background:#fff; color:#5f5f69; }
html[data-theme="light"] .mini-cover { background:#ececf0; color:#4f4f59; }
html[data-theme="light"] .theme-icon-sun { display:none; }
html[data-theme="light"] .theme-icon-moon { display:block; }
html[data-theme="light"] .card-title,html[data-theme="light"] label,html[data-theme="light"] .workspace-title p,html[data-theme="light"] .list-heading { color:#24242b; }
html[data-theme="light"] .field-required,html[data-theme="light"] label span,html[data-theme="light"] .textarea-footer>span,html[data-theme="light"] .audio-status,html[data-theme="light"] .section-label { color:#5b5b67; }
html[data-theme="light"] textarea { color:#24242b; }
html[data-theme="light"] textarea::placeholder,html[data-theme="light"] input::placeholder { color:#696975; opacity:1; }
html[data-theme="light"] .textarea-footer { border-color:#d7d7de; }
html[data-theme="light"] .inline-action { color:#41414b; }
html[data-theme="light"] .search-box { border:1px solid #d4d4dc; background:#fff; color:#44444f; }
html[data-theme="light"] .search-box input { background:transparent; color:#202027; }
html[data-theme="light"] .filter-menu,html[data-theme="light"] .song-action-popover { border-color:#d6d6de; background:#fff; box-shadow:0 18px 40px rgba(25,25,35,.16),0 2px 6px rgba(25,25,35,.08); }
html[data-theme="light"] .filter-menu button,html[data-theme="light"] .song-action-popover button { color:#2b2b33; }
html[data-theme="light"] .filter-menu button:hover,html[data-theme="light"] .song-action-popover button:hover { background:#eeeeF2; }
html[data-theme="light"] .download { border-color:#dcdce2; background:#f4f4f7; color:#2f2f38; }.download:hover,html[data-theme="light"] .download:hover { border-color:#c9c9d2; background:#e9e9ef; color:#17171c; }.download:active,html[data-theme="light"] .download:active { background:#e0e0e7; }.download-icon,html[data-theme="light"] .download-icon { color:#7b7b87; }.download:hover .download-icon,html[data-theme="light"] .download:hover .download-icon { color:#2f2f38; }.download:focus-visible,html[data-theme="light"] .download:focus-visible { outline-color:#202027; }
html[data-theme="light"] .song-menu[aria-expanded="true"] { background:#202027; color:#fff; }.song-menu:focus-visible,html[data-theme="light"] .song-menu:focus-visible { outline-color:#202027; }
html[data-theme="light"] .song-menu-head { border-color:#e4e4ea; }.song-menu-title,html[data-theme="light"] .song-menu-title { color:#23232b; }.song-menu-cover,html[data-theme="light"] .song-menu-cover { border-color:#dedee4; color:#55555f; }
html[data-theme="light"] .song-menu-icon,html[data-theme="light"] .song-menu-icon { color:#83838f; }.song-menu-item:hover .song-menu-icon,html[data-theme="light"] .song-menu-item:hover .song-menu-icon { color:#202027; }
html[data-theme="light"] .song-menu-item:disabled,html[data-theme="light"] .song-menu-item:disabled { color:#a2a2ac; }.song-menu-item:disabled .song-menu-icon,html[data-theme="light"] .song-menu-item:disabled .song-menu-icon { color:#b4b4be; }
html[data-theme="light"] .song-menu-separator { background:#e4e4ea; }
html[data-theme="light"] .song-menu-backdrop { background:rgba(30,30,40,.4); }
html[data-theme="light"] .song-menu-item.danger,html[data-theme="light"] .song-menu-item.danger { color:#df276c; }.song-menu-item.danger .song-menu-icon,html[data-theme="light"] .song-menu-item.danger .song-menu-icon { color:#df276c; }.song-menu-item.danger:hover,html[data-theme="light"] .song-menu-item.danger:hover,html[data-theme="light"] .song-menu-item.danger:focus-visible { background:rgba(223,39,108,.1); color:#b81e5a; }
html[data-theme="light"] .list-heading>span:last-child,html[data-theme="light"] .song-details,html[data-theme="light"] .song-prompt,html[data-theme="light"] .status { color:#545461; }
html[data-theme="light"] .status.complete { color:var(--success); }
html[data-theme="light"] .status.pending { color:var(--pending); }
html[data-theme="light"] .status.failed { color:#c92a2a; }
html[data-theme="light"] .list-heading b { color:#292931; }
html[data-theme="light"] .result p,html[data-theme="light"] .lyrics-result pre { color:#383842; }
html[data-theme="light"] .song-list { scrollbar-color:#aaaab5 transparent; }
html[data-theme="light"] .song-list::-webkit-scrollbar-thumb { background:#aaaab5; }
@media (prefers-reduced-motion:reduce) { .song-action-popover,.song-menu-backdrop { animation:none; }.download,.song-menu { transition:none; } }
.auth-dialog { width:min(430px,calc(100vw - 30px)); padding:28px; border:1px solid #3d3d44; border-radius:18px; background:var(--panel); color:var(--text); box-shadow:0 28px 70px rgba(0,0,0,.55); }.auth-dialog::backdrop { background:rgba(0,0,0,.65); backdrop-filter:blur(3px); }.auth-dialog h2 { margin:0 0 8px; font-size:25px; }.auth-intro { margin:0 0 20px; color:var(--muted); font-size:13px; line-height:1.5; }.auth-close { position:absolute; top:13px; right:15px; border:0; background:transparent; color:var(--muted); font-size:28px; }.auth-tabs { display:grid; grid-template-columns:1fr 1fr; gap:5px; padding:4px; margin-bottom:18px; border-radius:10px; background:var(--surface); }.auth-tabs button { padding:9px; border:0; border-radius:7px; background:transparent; color:var(--muted); font-weight:700; }.auth-tabs button.active { background:var(--panel); color:var(--text); box-shadow:0 1px 4px rgba(0,0,0,.2); }.auth-dialog form { display:grid; gap:13px; }.auth-dialog label { display:grid; gap:6px; font-size:12px; }.auth-dialog input { width:100%; min-height:42px; padding:0 12px; border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--text); }.password-wrap { position:relative; }.password-wrap input { padding-right:78px; }.show-password { position:absolute; top:50%; right:8px; border:0; background:transparent; color:var(--muted); font-size:11px; font-weight:700; transform:translateY(-50%); }.auth-primary,.auth-oauth { width:100%; min-height:43px; border:1px solid var(--line); border-radius:9px; font-weight:700; }.auth-primary { margin-top:4px; border-color:transparent; background:var(--text); color:var(--panel); }.auth-oauth { margin-top:9px; background:var(--surface); color:var(--text); }.auth-link { display:block; margin:4px auto 0; border:0; background:none; color:var(--muted); font-size:12px; text-decoration:underline; }.auth-error { margin:0; color:#ff8b8b; font-size:12px; line-height:1.4; }.auth-or { display:flex; align-items:center; gap:10px; margin:19px 0 3px; color:var(--muted); font-size:11px; text-align:center; }.auth-or::before,.auth-or::after { flex:1; height:1px; background:var(--line); content:""; }.auth-dialog #auth-user { text-align:center; }.auth-dialog #auth-user-name { margin:0 0 20px; color:var(--muted); }.auth-dialog #sign-out { margin-top:15px; }
.auth-oauth { display:flex; align-items:center; justify-content:center; gap:10px; }.oauth-icon { width:19px; height:19px; flex:0 0 auto; }.otp-inputs { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:7px; margin:22px 0 16px; }.otp-inputs input { min-width:0; height:47px; padding:0; font-size:20px; font-weight:800; text-align:center; }.otp-inputs input:focus { border-color:var(--text); outline:2px solid color-mix(in srgb,var(--text) 20%,transparent); outline-offset:1px; }
@media (max-width:390px) { .otp-inputs { gap:4px; }.otp-inputs input { height:42px; font-size:17px; } }

/* ===================================================================
   Dialogues de fonctionnalitÃ©s : actions, Ã©criture, dÃ©dicace, partage,
   playlists, coÃ»ts
   =================================================================== */
.feature-dialog { width:min(520px,calc(100vw - 28px)); max-height:min(86vh,900px); overflow:auto; padding:26px; border:1px solid #3d3d44; border-radius:18px; background:var(--panel); color:var(--text); box-shadow:0 28px 70px rgba(0,0,0,.55); }
.feature-dialog.wide { width:min(760px,calc(100vw - 28px)); }
.feature-dialog::backdrop { background:rgba(0,0,0,.68); backdrop-filter:blur(3px); }
.feature-dialog h2 { margin:0 0 8px; font-size:22px; }
.feature-dialog .dialog-close { position:absolute; top:12px; right:15px; width:34px; height:34px; border:0; border-radius:9px; background:transparent; color:var(--muted); font-size:26px; line-height:1; }
.feature-dialog .dialog-close:hover,.feature-dialog .dialog-close:focus-visible { background:var(--surface); color:var(--text); }
.dialog-intro { margin:0 0 18px; color:var(--muted); font-size:13px; line-height:1.55; }
.feature-dialog label { display:grid; gap:6px; margin-bottom:14px; font-size:12px; font-weight:600; }
.feature-dialog input:not([type=checkbox]),.feature-dialog select,.feature-dialog textarea { width:100%; padding:10px 12px; border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--text); font:inherit; font-weight:400; }
.feature-dialog textarea { resize:vertical; line-height:1.5; }
.feature-dialog input:focus-visible,.feature-dialog select:focus-visible,.feature-dialog textarea:focus-visible { border-color:#4a4a52; outline:2px solid rgba(124,107,255,.45); outline-offset:1px; }
.field-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.checkbox-row { display:flex !important; grid-auto-flow:column; align-items:center; justify-content:start; gap:9px; }
.checkbox-row input { width:17px; height:17px; }
.tts-row { display:grid; grid-template-columns:auto 1fr 1fr; align-items:end; gap:12px; }
.dialog-hint { margin:0 0 14px; color:var(--subtle); font-size:11.5px; line-height:1.5; }
.dialog-hint.warning,.warning { color:#ffb27a; }
.dialog-error { margin:0 0 14px; color:#ff8b8b; font-size:12px; line-height:1.45; }
.dialog-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:9px; margin-top:6px; }
.feature-dialog .control-button { min-height:38px; padding:0 15px; border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--text); font-size:12.5px; font-weight:700; cursor:pointer; }
.feature-dialog .control-button.emphasis { border-color:transparent; background:var(--text); color:var(--panel); }
.feature-dialog .control-button:disabled { opacity:.55; cursor:not-allowed; }

.upload-progress { margin-bottom:14px; }
.upload-progress span { display:block; margin-top:7px; color:var(--muted); font-size:11.5px; }
.upload-progress-bar { height:5px; border-radius:3px; background:linear-gradient(90deg,#6c5ce7,#00cec9); transition:width .35s ease; }

.dialog-tabs { display:flex; flex-wrap:wrap; gap:5px; padding:4px; margin:14px 0 18px; border-radius:11px; background:var(--surface); }
.dialog-tabs button { flex:1 1 auto; min-width:110px; padding:9px 12px; border:0; border-radius:8px; background:transparent; color:var(--muted); font-size:12.5px; font-weight:700; cursor:pointer; }
.dialog-tabs button.active { background:var(--panel); color:var(--text); box-shadow:0 1px 4px rgba(0,0,0,.28); }
.feature-dialog [data-write-panel] { display:grid; }

.writing-output { margin-top:20px; padding-top:18px; border-top:1px solid var(--line-soft); }
.writing-output[hidden] { display:none; }
.writing-output-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin-bottom:9px; }
.writing-output-head > div { display:flex; gap:7px; }
.writing-output textarea { min-height:190px; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12.5px; line-height:1.55; }
.writing-output audio { width:100%; margin-top:12px; }
.metadata-result { display:grid; gap:8px; margin-bottom:14px; padding:14px; border:1px solid var(--line); border-radius:11px; background:var(--surface); }
.metadata-result p { display:grid; gap:3px; margin:0; }
.metadata-result b { color:var(--muted); font-size:10.5px; letter-spacing:.05em; text-transform:uppercase; }
.metadata-result span { font-size:13px; line-height:1.5; }
.feature-dialog audio { width:100%; margin-top:6px; }

.share-link-row { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
.share-link-row input { flex:1 1 220px; min-width:0; }
.stems-list { display:grid; gap:9px; }
.stems-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 13px; border:1px solid var(--line); border-radius:11px; background:var(--surface); font-size:13px; font-weight:600; }
.stems-link { color:#00cec9; font-size:12px; font-weight:700; text-decoration:none; }
.stems-link:hover { text-decoration:underline; }

.playlist-create { display:flex; gap:8px; margin-bottom:16px; }
.playlist-create input { flex:1; }
.playlist-list { display:grid; gap:8px; }
.playlist-row { display:flex; align-items:center; gap:10px; padding:11px 13px; border:1px solid var(--line); border-radius:11px; background:var(--surface); }
.playlist-name { flex:1; overflow:hidden; font-size:13px; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
.playlist-row small { color:var(--subtle); font-size:11px; }
.playlist-remove { display:grid; place-items:center; width:30px; height:30px; padding:0; border:0; border-radius:8px; background:transparent; cursor:pointer; }
.playlist-remove svg { width:17px; height:17px; stroke:var(--subtle); stroke-width:1.7; }
.playlist-remove:hover { background:rgba(255,74,144,.16); }
.playlist-remove:hover svg { stroke:#ff7fa8; }

.cost-totals { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:10px; margin-bottom:18px; }
.cost-stat { display:grid; gap:4px; padding:13px; border:1px solid var(--line); border-radius:11px; background:var(--surface); }
.cost-stat span { color:var(--subtle); font-size:10.5px; letter-spacing:.05em; text-transform:uppercase; }
.cost-stat b { font-size:19px; }
.cost-breakdown { display:grid; gap:6px; }
.cost-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 12px; border-radius:9px; background:var(--surface); font-size:12.5px; }
.cost-row span { color:var(--muted); }

.song-favorite { display:grid; place-items:center; width:32px; height:32px; padding:0; border:0; border-radius:50%; background:transparent; cursor:pointer; }
.song-favorite svg { width:18px; height:18px; stroke:var(--subtle); stroke-width:1.7; }
.song-favorite.is-active svg { stroke:#ff4a90; fill:rgba(255,74,144,.28); }
.song-favorite:hover svg { stroke:#ff7fa8; }

html[data-theme="light"] .feature-dialog { border-color:var(--line); }
html[data-theme="light"] .song-menu-separator { background:var(--line); }
@media (max-width:560px) {
  .field-row,.tts-row { grid-template-columns:1fr; }
  .dialog-tabs button { min-width:0; }
  .writing-output-head { align-items:flex-start; flex-direction:column; }
}

.auth-dialog[open] { position: fixed !important; inset: 0 !important; margin: auto !important; z-index: 9999 !important; display: block !important; }


/* ===================================================================
   STYLES DU PROFIL CLIENT CLIQUABLE ET DE SES OPTIONS
   =================================================================== */

.suno-profile-card-clickable {
  cursor: pointer !important;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  user-select: none;
}

.suno-profile-card-clickable:hover {
  background: #25252c !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-2px);
}

.suno-profile-card-clickable:active {
  transform: scale(0.985);
}

.suno-profile-action-area {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--suno-text-dim, #8e8e98);
}

.suno-profile-cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange, #ff7a1a);
  background: rgba(255, 122, 26, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 122, 26, 0.25);
}

.suno-profile-chevron {
  width: 18px;
  height: 18px;
  color: #8e8e98;
}

/* Modale Profil Utilisateur Enrichie */
.auth-user-modal {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left !important;
}

.auth-user-modal[hidden],
#auth-user[hidden],
#auth-guest[hidden],
#auth-otp[hidden] {
  display: none !important;
}

.user-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.user-modal-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7a1a, #ff4a90);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(255, 122, 26, 0.35);
}

.user-modal-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.user-modal-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.user-modal-name-row h2 {
  margin: 0 !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  color: #fff;
  letter-spacing: -0.02em;
}

.user-modal-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #45d483;
  background: rgba(69, 212, 131, 0.15);
  border: 1px solid rgba(69, 212, 131, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
}

.user-modal-email {
  margin: 3px 0 0 0 !important;
  font-size: 12.5px !important;
  color: #8e8e98 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Carte Crédits dans le modal */
.user-modal-credits-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  background: #19191e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 10px;
}

.credits-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.credits-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 122, 26, 0.16);
  color: #ff7a1a;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.credits-card-icon svg {
  width: 17px;
  height: 17px;
}

.credits-card-title {
  display: block;
  font-size: 10.5px;
  color: #8e8e98;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.credits-card-left strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.user-modal-recharge-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--orange, #ff7a1a);
  color: #111;
  font-size: 11.5px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.user-modal-recharge-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Grille des Options */
.user-modal-options-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user-modal-opt-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.user-modal-opt-btn:hover {
  background: #1e1e24;
  border-color: rgba(255, 255, 255, 0.12);
}

.opt-btn-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.opt-btn-left svg {
  width: 18px;
  height: 18px;
  color: #ff7a1a;
  flex-shrink: 0;
}

.opt-btn-left div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.opt-btn-left b {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.opt-btn-left small {
  font-size: 11px;
  color: #8e8e98;
}

.opt-chevron {
  width: 14px;
  height: 14px;
  color: #656570;
}

/* Pied de la modale */
.user-modal-footer {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-modal-signout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 74, 122, 0.1);
  border: 1px solid rgba(255, 74, 122, 0.25);
  color: #ff4a7a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.user-modal-signout-btn:hover {
  background: rgba(255, 74, 122, 0.18);
}


/* ==========================================================================
   DIGICODE-MUSIQUE — GRILLE TARIFAIRE & FORFAITS PAWAPAY
   ========================================================================== */

.suno-home-pricing {
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.pricing-view-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 0 40px;
}

.pricing-header-center {
  text-align: center;
  margin-bottom: 28px;
}

.pricing-header-center h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.pricing-subtitle {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0 0 20px;
  text-align: center;
}

/* Toggle & Sélecteur de Devise */
.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.pricing-toggle-pills,
.pricing-currency-picker {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 999px;
  gap: 2px;
}

.pricing-toggle-pill,
.currency-pill {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pricing-toggle-pill small {
  font-size: 10.5px;
  opacity: 0.75;
}

.pricing-toggle-pill.is-active,
.currency-pill.is-active {
  background: var(--surface-raised);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.currency-pill.is-active {
  background: rgba(255, 122, 26, 0.15);
  color: var(--orange);
  border: 1px solid rgba(255, 122, 26, 0.3);
}

/* Grille des 4 Cartes */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin: 20px 0;
}

@media (max-width: 1023px) and (min-width: 901px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Carte Individuelle */
.pricing-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 20px;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pricing-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Carte Populaire (Milieu / Créateur) */
.pricing-card.is-popular {
  border: 2px solid var(--orange);
  background: linear-gradient(180deg, rgba(255, 122, 26, 0.08) 0%, var(--surface) 100%);
  box-shadow: 0 12px 36px rgba(255, 122, 26, 0.18);
  position: relative;
}

@media (min-width: 1024px) {
  .pricing-card.is-popular {
    transform: scale(1.035);
    z-index: 2;
  }
  .pricing-card.is-popular:hover {
    transform: scale(1.045) translateY(-2px);
  }
}

/* Badge Populaire */
.pricing-popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #ff7a1a, #ff4a90);
  color: #fff;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(255, 122, 26, 0.4);
  white-space: nowrap;
}

.pricing-popular-badge svg {
  width: 13px;
  height: 13px;
}

.pricing-sub-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.pricing-card-header {
  margin-bottom: 18px;
}

.pricing-plan-name {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.pricing-period {
  color: var(--muted);
  font-size: 12.5px;
}

.pricing-songs-count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--accent);
  font-size: 12px;
}

.pricing-songs-count svg {
  width: 15px;
  height: 15px;
  color: var(--orange);
}

/* Liste des fonctionnalités incluses */
.pricing-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex-grow: 1;
}

.pricing-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  color: #d8d8de;
  line-height: 1.45;
}

.pricing-check-icon {
  width: 16px;
  height: 16px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Bouton d'action */
.pricing-card-footer {
  margin-top: auto;
}

.pricing-cta-btn {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  color: var(--text);
}

.pricing-cta-btn:hover {
  background: #2a2a30;
  border-color: rgba(255, 255, 255, 0.2);
}

.pricing-cta-btn.emphasis {
  background: linear-gradient(135deg, #ff7a1a, #ff4a90);
  border: 0;
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 122, 26, 0.35);
}

.pricing-cta-btn.emphasis:hover {
  box-shadow: 0 8px 26px rgba(255, 122, 26, 0.5);
  transform: translateY(-1px);
}

.pricing-cta-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Squelette de chargement */
.pricing-card.is-skeleton {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.skeleton-pulse {
  background: linear-gradient(90deg, #1f1f23 25%, #2a2a30 50%, #1f1f23 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.6s infinite ease-in-out;
  border-radius: 6px;
}

.skeleton-line {
  height: 14px;
}

.skeleton-line.h-32 {
  height: 36px;
  border-radius: 8px;
}

.skeleton-button {
  height: 46px;
  margin-top: auto;
  border-radius: 12px;
}

@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Tarif unitaire discret */
.pricing-unit-line {
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  margin: 18px 0 8px;
  font-weight: 600;
}

/* Bandeau Réassurance */
.pricing-reassurance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 20px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}

.pricing-reassurance svg {
  width: 17px;
  height: 17px;
  color: var(--success);
  flex-shrink: 0;
}


/* Masquage strict des chansons en mode Tarifs */
body[data-library-mode="tarifs"] .suno-songlist-header,
body[data-library-mode="tarifs"] #song-list,
body[data-library-mode="tarifs"] .suno-library-filters,
body[data-library-mode="tarifs"] .suno-genres-section,
body[data-library-mode="tarifs"] .suno-featured-banner,
body[data-library-mode="tarifs"] .workspace-title,
body[data-library-mode="tarifs"] #tab-content-home,
body[data-library-mode="tarifs"] #tab-content-songs,
body[data-library-mode="tarifs"] #tab-content-search {
  display: none !important;
}

body[data-library-mode="tarifs"] #tab-content-tarifs {
  display: block !important;
}

/* Pays : même présentation que les champs du formulaire de connexion. */
.auth-dialog select { width:100%; min-height:42px; padding:0 12px; border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--text); }
.auth-dialog { max-height:calc(var(--real-vh, 100%) - 30px); overflow-y:auto; }

.creation-fields { display:contents; }
