/* =====================================================
   TierZone — Beautiful Feminine Design
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg:          #fff5f9;
    --bg2:         #ffe4f0;
    --bg3:         #ffd6e8;
    --card:        rgba(255,255,255,.92);
    --card-solid:  #ffffff;
    --card-hover:  rgba(255,255,255,.99);
    --border:      rgba(236,72,153,.2);
    --border-soft: rgba(236,72,153,.12);
    --border-hover:rgba(236,72,153,.55);

    --primary:     #ec4899;
    --primary-d:   #db2777;
    --primary-l:   #fbcfe8;
    --primary-glow:rgba(236,72,153,.38);
    --violet:      #f472b6;
    --violet-d:    #ec4899;
    --pink:        #f9a8d4;
    --rose:        #fb7185;

    --gradient:      linear-gradient(135deg, #f9a8d4 0%, #ec4899 45%, #db2777 100%);
    --gradient-soft: linear-gradient(135deg, #fff0f8, #ffe4f0, #ffd6e8);
    --gradient-card: linear-gradient(135deg, rgba(255,240,248,.9), rgba(255,228,240,.7));

    --text:        #500724;
    --text-muted:  #9d174d;
    --text-dim:    #f9a8d4;

    --success: #059669;
    --error:   #dc2626;
    --warning: #d97706;

    --radius:   16px;
    --radius-s: 10px;
    --radius-xs: 6px;
    --shadow-sm: 0 2px 12px rgba(236,72,153,.12);
    --shadow:    0 8px 32px rgba(236,72,153,.18);
    --shadow-lg: 0 24px 64px rgba(219,39,119,.22);
    --shadow-card: 0 4px 24px rgba(236,72,153,.13), 0 1px 4px rgba(236,72,153,.07);
    --glow:      0 0 40px rgba(236,72,153,.3);
    --transition: .22s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    /* Fond dégradé animé */
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%,   rgba(251,207,232,.55) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 5%,   rgba(249,168,212,.4)  0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(253,242,248,.6)  0%, transparent 55%),
        #fff5f9;
    background-attachment: fixed;
}

a { color: var(--primary-d); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 99px; }

/* ── Layout ──────────────────────────────────────── */
.container    { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 480px;  margin: 0 auto; padding: 0 24px; }

/* ── Navbar ──────────────────────────────────────── */
.navbar {
    position: sticky; top: 0; z-index: 200;
    height: 64px;
    background: rgba(255,245,249,.88);
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(236,72,153,.12);
    padding: 0 24px;
    display: flex; align-items: center;
    box-shadow: 0 1px 20px rgba(168,85,247,.08);
}

.navbar-inner {
    max-width: 1180px; margin: 0 auto; width: 100%;
    display: flex; align-items: center; gap: 20px;
}

.navbar-brand {
    font-size: 1.25rem; font-weight: 900; letter-spacing: -.5px;
    display: flex; align-items: center; gap: 7px;
    background: var(--gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; white-space: nowrap; flex-shrink: 0;
    text-decoration: none; filter: drop-shadow(0 2px 8px rgba(217,70,239,.25));
}

.navbar-search { flex: 1; max-width: 360px; position: relative; }

.navbar-search input {
    width: 100%; padding: 9px 16px 9px 38px;
    background: white; border: 1.5px solid var(--border-soft);
    border-radius: 99px; color: var(--text); font-size: .875rem;
    font-family: inherit; box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.navbar-search input::placeholder { color: var(--text-dim); }
.navbar-search input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(217,70,239,.12), var(--shadow-sm);
}

.search-icon {
    position: absolute; left: 12px; top: 50%;
    transform: translateY(-50%);
    width: 15px; height: 15px; color: var(--text-dim); pointer-events: none;
}

.navbar-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.nav-username {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 13px 5px 5px; border-radius: 99px;
    border: 1.5px solid var(--border-soft);
    font-size: .85rem; font-weight: 600; color: var(--text-muted);
    background: white; box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.nav-username:hover { border-color: var(--primary); color: var(--primary-d); box-shadow: var(--shadow); }

.avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--gradient);
    display: flex; align-items: center; justify-content: center;
    font-size: .72rem; font-weight: 800; color: #fff; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(217,70,239,.4);
}

/* ── Buttons ─────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 20px; border-radius: var(--radius-s);
    font-size: .875rem; font-weight: 700; border: none;
    transition: all var(--transition); white-space: nowrap;
    line-height: 1; cursor: pointer; letter-spacing: -.01em;
}

.btn-primary {
    background: var(--primary); color: #fff;
    box-shadow: 0 4px 14px rgba(217,70,239,.4);
}
.btn-primary:hover {
    background: var(--primary-d); color: #fff;
    transform: translateY(-2px); box-shadow: 0 8px 24px rgba(217,70,239,.5);
}

.btn-gradient {
    background: var(--gradient); color: #fff;
    box-shadow: 0 4px 20px rgba(183,0,158,.35);
}
.btn-gradient:hover {
    filter: brightness(1.08); color: #fff;
    transform: translateY(-2px); box-shadow: 0 10px 36px rgba(183,0,158,.5);
}

.btn-ghost {
    background: white; color: var(--text-muted);
    border: 1.5px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
    background: var(--bg2); color: var(--primary-d);
    border-color: var(--border); box-shadow: var(--shadow);
}

.btn-accent {
    background: linear-gradient(135deg, #f43f5e, #ec4899); color: #fff;
    box-shadow: 0 4px 16px rgba(244,63,94,.35);
}
.btn-accent:hover { filter: brightness(1.08); color: #fff; transform: translateY(-2px); }

.btn-danger {
    background: rgba(220,38,38,.08); color: var(--error);
    border: 1.5px solid rgba(220,38,38,.2);
}
.btn-danger:hover { background: rgba(220,38,38,.15); }

.btn-violet {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #fff;
    box-shadow: 0 4px 16px rgba(139,92,246,.4);
}
.btn-violet:hover { filter: brightness(1.1); color: #fff; transform: translateY(-2px); }

.btn-sm  { padding: 6px 14px; font-size: .8rem; border-radius: var(--radius-xs); }
.btn-lg  { padding: 12px 28px; font-size: .95rem; }
.btn-xl  { padding: 15px 36px; font-size: 1rem; border-radius: var(--radius); }
.btn-icon { padding: 8px; aspect-ratio: 1; }

/* ── Cards ───────────────────────────────────────── */
.glass-card {
    background: var(--card);
    backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255,255,255,.8);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

/* ── Forms ───────────────────────────────────────── */
.form-group { margin-bottom: 18px; }

.form-label {
    display: block; font-size: .75rem; font-weight: 700;
    color: var(--text-muted); text-transform: uppercase;
    letter-spacing: .07em; margin-bottom: 7px;
}

.form-input, .form-textarea, .form-select {
    width: 100%; padding: 11px 15px;
    background: white; border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-s); color: var(--text);
    font-size: .9rem; font-family: inherit;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-dim); }
.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(217,70,239,.12), var(--shadow-sm);
}
.form-textarea { resize: vertical; min-height: 80px; }

/* ── Auth ────────────────────────────────────────── */
.auth-page {
    min-height: 100vh; display: flex;
    align-items: center; justify-content: center; padding: 40px 20px;
}

.auth-card {
    background: white; border: 1.5px solid var(--border-soft);
    border-radius: 24px; padding: 44px; width: 100%; max-width: 420px;
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    text-align: center; margin-bottom: 8px;
    font-size: 1.6rem; font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auth-subtitle { text-align: center; color: var(--text-dim); font-size: .875rem; margin-bottom: 30px; }
.auth-divider  { text-align: center; color: var(--text-dim); font-size: .85rem; margin-top: 22px; }
.auth-divider a { color: var(--primary-d); font-weight: 700; }
.auth-alert { padding: 11px 15px; margin-bottom: 18px; background: rgba(220,38,38,.06); border: 1.5px solid rgba(220,38,38,.2); border-radius: var(--radius-s); color: var(--error); font-size: .875rem; font-weight: 500; }

/* ── Hero ────────────────────────────────────────── */
.hero { padding: 100px 24px 80px; text-align: center; position: relative; overflow: hidden; }

/* Blobs décoratifs */
.hero::before {
    content: '';
    position: absolute; top: -80px; left: 50%;
    transform: translateX(-50%);
    width: 900px; height: 500px;
    background: radial-gradient(ellipse, rgba(251,207,232,.55) 0%, rgba(249,168,212,.25) 40%, transparent 70%);
    pointer-events: none; filter: blur(40px);
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 16px; border-radius: 99px;
    border: 1.5px solid rgba(217,70,239,.3);
    background: rgba(253,244,255,.9);
    font-size: .8rem; font-weight: 700; color: var(--primary-d);
    margin-bottom: 30px; box-shadow: 0 2px 12px rgba(217,70,239,.15);
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 900; line-height: 1.08; letter-spacing: -2.5px;
    margin-bottom: 24px; color: var(--text);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.1rem; color: var(--text-muted); max-width: 480px;
    margin: 0 auto 44px; line-height: 1.75; font-weight: 500;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 52px; justify-content: center; margin-top: 64px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-number {
    font-size: 2rem; font-weight: 900; display: block;
    background: var(--gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { font-size: .75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; font-weight: 600; }

/* ── Features ────────────────────────────────────── */
.features-strip {
    border-top: 1px solid rgba(168,85,247,.12);
    border-bottom: 1px solid rgba(168,85,247,.12);
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(12px);
    padding: 36px 24px;
}
.features-grid {
    max-width: 1180px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px;
}
.feature-item { display: flex; align-items: flex-start; gap: 14px; }
.feature-icon {
    width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, rgba(240,171,252,.6), rgba(196,181,253,.4));
    border: 1.5px solid rgba(168,85,247,.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; box-shadow: 0 4px 12px rgba(168,85,247,.15);
}
.feature-title { font-size: .9rem; font-weight: 800; margin-bottom: 3px; color: var(--text); }
.feature-desc  { font-size: .8rem; color: var(--text-muted); line-height: 1.6; }

/* ── Section ─────────────────────────────────────── */
.section { padding: 64px 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; gap: 16px; }
.section-title { font-size: 1.15rem; font-weight: 800; display: flex; align-items: center; gap: 8px; color: var(--text); }

/* ── Tierlist Grid ───────────────────────────────── */
.tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; }

.tl-card {
    background: white;
    border: 1.5px solid rgba(168,85,247,.1);
    border-radius: var(--radius); overflow: hidden;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
    box-shadow: var(--shadow-card);
}
.tl-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 48px rgba(168,85,247,.22), var(--glow);
}
.tl-card-cover { width: 100%; height: 148px; background: var(--bg2); overflow: hidden; position: relative; }
.tl-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tl-card:hover .tl-card-cover img { transform: scale(1.06); }
.tl-card-cover-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 2.8rem; opacity: .2;
    background: var(--gradient-soft);
}
.tl-card-body { padding: 15px 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.tl-card-title { font-size: .925rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.tl-card-meta { display: flex; align-items: center; justify-content: space-between; font-size: .75rem; color: var(--text-dim); margin-top: auto; font-weight: 500; }
.tl-card-plays { display: flex; align-items: center; gap: 4px; }
.tl-card-actions { display: flex; gap: 6px; padding: 10px 15px 15px; border-top: 1px solid rgba(168,85,247,.1); }

/* ── Dashboard ───────────────────────────────────── */
.dashboard-header { padding: 48px 0 32px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dashboard-welcome { font-size: 2rem; font-weight: 900; letter-spacing: -.6px; }
.dashboard-welcome .name { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.dashboard-sub { color: var(--text-dim); font-size: .875rem; margin-top: 5px; font-weight: 500; }

/* ── Create ──────────────────────────────────────── */
.create-layout { display: grid; grid-template-columns: 1fr 330px; gap: 24px; padding-bottom: 60px; align-items: start; }

.create-section {
    background: white; border: 1.5px solid rgba(168,85,247,.1);
    border-radius: var(--radius); padding: 24px; margin-bottom: 18px;
    box-shadow: var(--shadow-card);
}
.create-section-title {
    font-size: .75rem; font-weight: 800; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .08em;
    margin-bottom: 18px; padding-bottom: 13px;
    border-bottom: 1px solid rgba(168,85,247,.12);
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}

.tier-row-editor {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    background: var(--bg); border-radius: var(--radius-s); margin-bottom: 7px;
    border: 1.5px solid rgba(168,85,247,.1);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.tier-row-editor:hover { border-color: var(--border); box-shadow: var(--shadow-sm); }

.tier-color-dot { width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0; cursor: pointer; position: relative; border: 2px solid rgba(0,0,0,.1); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.tier-color-dot input[type="color"] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }

.tier-label-input {
    flex: 1; min-width: 0; padding: 5px 10px; background: white;
    border: 1.5px solid rgba(168,85,247,.15); border-radius: 6px;
    color: var(--text); font-weight: 700; font-size: .9rem; font-family: inherit;
}
.tier-label-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(217,70,239,.1); }

/* Multi-upload zone */
.upload-zone {
    border: 2.5px dashed rgba(217,70,239,.3); border-radius: var(--radius);
    padding: 40px 24px; text-align: center; cursor: pointer;
    transition: all var(--transition);
    background: linear-gradient(135deg, rgba(253,244,255,.6), rgba(237,233,254,.4));
    position: relative;
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--primary); border-style: solid;
    background: linear-gradient(135deg, rgba(253,244,255,.9), rgba(237,233,254,.7));
    box-shadow: var(--shadow), 0 0 0 4px rgba(217,70,239,.08);
    transform: scale(1.01);
}
.upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-zone-icon { font-size: 2.8rem; margin-bottom: 10px; filter: drop-shadow(0 4px 8px rgba(217,70,239,.3)); }
.upload-zone-text { font-size: .95rem; font-weight: 700; color: var(--primary-d); }
.upload-zone-sub { font-size: .8rem; color: var(--text-dim); margin-top: 5px; }

.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 18px; }

.item-card-create {
    background: white; border: 1.5px solid rgba(168,85,247,.12);
    border-radius: var(--radius-s); overflow: hidden;
    position: relative; transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}
.item-card-create:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }

.item-img-zone {
    width: 100%; height: 100px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gradient-soft); cursor: pointer; color: var(--text-dim);
    position: relative; overflow: hidden; transition: all var(--transition);
}
.item-img-zone:hover { background: linear-gradient(135deg, rgba(240,171,252,.5), rgba(196,181,253,.35)); }
.item-img-zone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item-img-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.item-label-input {
    width: 100%; padding: 7px 8px; background: transparent; border: none;
    border-top: 1px solid rgba(168,85,247,.1); color: var(--text);
    font-size: .78rem; text-align: center; font-family: inherit; font-weight: 600;
}
.item-label-input::placeholder { color: var(--text-dim); }
.item-label-input:focus { outline: none; background: rgba(217,70,239,.04); }

.item-remove-btn {
    position: absolute; top: 5px; right: 5px;
    width: 22px; height: 22px; border-radius: 50%;
    background: linear-gradient(135deg, #f43f5e, #dc2626); border: none;
    color: #fff; font-size: .65rem; cursor: pointer;
    display: none; align-items: center; justify-content: center; font-weight: 700;
    box-shadow: 0 2px 8px rgba(244,63,94,.4);
}
.item-card-create:hover .item-remove-btn { display: flex; }

/* ── PLAY PAGE — Grand tableau ───────────────────── */
.play-layout { padding: 32px 0 60px; }

.play-header {
    display: flex; align-items: flex-start;
    justify-content: space-between; margin-bottom: 30px;
    flex-wrap: wrap; gap: 16px;
}
.play-title { font-size: 1.7rem; font-weight: 900; letter-spacing: -.6px; color: var(--text); }
.play-creator { font-size: .82rem; color: var(--text-dim); margin-top: 5px; font-weight: 500; }

/* Tableau — grand et beau */
.tier-board {
    border-radius: var(--radius); overflow: hidden;
    border: 1.5px solid rgba(168,85,247,.15);
    box-shadow: var(--shadow-lg);
    background: white;
    /* Grid : colonne 1 = largeur du label le plus large, colonne 2 = reste */
    display: grid;
    grid-template-columns: max-content 1fr;
}

.tier-row {
    /* Chaque ligne hérite des colonnes du parent via subgrid */
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: subgrid;
    min-height: 116px;
    border-bottom: 2px solid rgba(168,85,247,.08);
    transition: background var(--transition);
}
.tier-row:last-child { border-bottom: none; }

.tier-row.drag-over .tier-items {
    background: rgba(217,70,239,.06);
    outline: 2.5px dashed rgba(217,70,239,.4);
    outline-offset: -4px; border-radius: 6px;
}

.tier-label-box {
    min-width: 84px;
    padding: 8px 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem; font-weight: 800;
    color: rgba(255,255,255,.95);
    user-select: none; text-shadow: 0 2px 6px rgba(0,0,0,.25);
    border-right: 2px solid rgba(0,0,0,.1);
    text-align: center; word-break: break-word; line-height: 1.3;
}

.tier-items {
    display: flex; flex-wrap: wrap;
    align-items: center; gap: 8px; padding: 10px 12px;
    background: rgba(250,245,255,.5); min-height: 116px;
    transition: background var(--transition);
}

/* Items dans le tableau */
.play-item {
    width: 100px; flex-shrink: 0; border-radius: 10px; overflow: hidden;
    cursor: grab; background: white;
    border: 2px solid rgba(168,85,247,.12);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    user-select: none; position: relative;
    box-shadow: 0 2px 10px rgba(168,85,247,.12);
}
.play-item:hover {
    transform: scale(1.12) translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(168,85,247,.3), var(--glow);
    z-index: 20;
}
.play-item.dragging { opacity: .4; cursor: grabbing; transform: scale(.93); }

.play-item img {
    width: 100%; height: 82px; object-fit: cover;
    display: block; pointer-events: none;
}
.play-item-placeholder {
    width: 100%; height: 82px;
    background: var(--gradient-soft);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: var(--text-dim);
}
.play-item-label {
    padding: 5px 5px; font-size: .71rem; text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    color: var(--text-muted); font-weight: 600; line-height: 1.3;
    background: white;
}

/* Pool */
.pool-section {
    margin-top: 22px; background: white;
    border: 1.5px solid rgba(168,85,247,.12);
    border-radius: var(--radius); padding: 20px;
    box-shadow: var(--shadow-card);
}
.pool-title {
    font-size: .75rem; font-weight: 800; color: var(--text-dim);
    text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px;
}
.pool-items {
    display: flex; flex-wrap: wrap; gap: 9px; min-height: 100px;
    padding: 4px; border-radius: var(--radius-s); transition: background var(--transition);
}
.pool-items.drag-over {
    background: rgba(217,70,239,.04);
    outline: 2.5px dashed rgba(217,70,239,.3); outline-offset: -3px;
}

.play-actions { margin-top: 18px; display: flex; align-items: center; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ── Result ──────────────────────────────────────── */
.share-box {
    background: white; border: 1.5px solid var(--border);
    border-radius: var(--radius); padding: 18px;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 20px 0;
    box-shadow: var(--shadow-card);
}
.share-input {
    flex: 1; min-width: 200px; padding: 10px 14px;
    background: var(--bg); border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-s); color: var(--text);
    font-size: .875rem; font-family: monospace; font-weight: 600;
}

/* ── Search ──────────────────────────────────────── */
.search-bar-big { display: flex; gap: 10px; margin-bottom: 24px; }
.search-bar-big input { flex: 1; padding: 14px 18px; font-size: .95rem; }

/* ── Modal ───────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0; z-index: 500;
    background: rgba(30,27,75,.45); backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px; opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal {
    background: white; border: 1.5px solid var(--border);
    border-radius: 20px; padding: 34px; max-width: 460px; width: 100%;
    box-shadow: var(--shadow-lg), var(--glow);
    transform: translateY(20px) scale(.97); transition: transform var(--transition);
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.modal-title { font-size: 1.15rem; font-weight: 900; margin-bottom: 10px; color: var(--text); }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 24px; }

/* ── Toast ───────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; }
.toast {
    background: white; border: 1.5px solid rgba(168,85,247,.15);
    border-radius: var(--radius-s); padding: 11px 17px;
    font-size: .85rem; font-weight: 600; box-shadow: var(--shadow);
    min-width: 220px; animation: toastIn .22s ease forwards; transition: opacity .3s;
    color: var(--text);
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error   { border-left: 4px solid var(--error); }

@keyframes toastIn { from { opacity:0; transform:translateX(18px); } to { opacity:1; transform:translateX(0); } }

/* ── Badges ──────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: .72rem; font-weight: 700; }
.badge-primary { background: rgba(217,70,239,.1); color: var(--primary-d); border: 1.5px solid rgba(217,70,239,.2); }
.badge-success { background: rgba(5,150,105,.08); color: #065f46; border: 1.5px solid rgba(5,150,105,.2); }

/* ── Empty state ─────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-icon  { font-size: 3.5rem; margin-bottom: 18px; filter: drop-shadow(0 4px 12px rgba(168,85,247,.2)); }
.empty-title { font-size: 1.05rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }

/* ── Spinner ─────────────────────────────────────── */
.spinner { width: 17px; height: 17px; border: 2.5px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Utility ─────────────────────────────────────── */
.text-muted    { color: var(--text-muted); }
.text-center   { text-align: center; }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) { .create-layout { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
    .navbar-search { display: none; }
    .hero { padding: 60px 20px 40px; }
    .hero-title { letter-spacing: -1px; }
    .hero-stats { gap: 28px; }
    .auth-card { padding: 28px 20px; }
    .tier-label-box { min-width: 58px; font-size: .8rem; padding: 6px 10px; }
    .play-item { width: 82px; }
    .play-item img { height: 66px; }
    .tl-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .features-grid { grid-template-columns: 1fr 1fr; }
}
