/* ═══════════════════════════════════════════════════════════
   Giri Store v7 — Premium Boutique Admin
   Haut de gamme, aere, inspirant
   ═══════════════════════════════════════════════════════════ */

/* ── Layout ─────────────────────────────────────────────── */
.gs-wrap {
    background: radial-gradient(ellipse 100% 280px at 50% 0%, color-mix(in srgb, var(--accent, #6366f1) 5%, transparent) 0%, transparent 100%);
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 28px;
    font-family: inherit;
    color: var(--text, #e8e8f0);
}

/* ── Header Premium ─────────────────────────────────────── */
.gs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding: 28px 32px 220px;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 8%, rgba(0,0,0,0.997) 12.6%, rgba(0,0,0,0.988) 17.2%, rgba(0,0,0,0.972) 21.8%, rgba(0,0,0,0.951) 26.4%, rgba(0,0,0,0.924) 31%, rgba(0,0,0,0.891) 35.6%, rgba(0,0,0,0.854) 40.2%, rgba(0,0,0,0.809) 44.8%, rgba(0,0,0,0.760) 49.4%, rgba(0,0,0,0.707) 54%, rgba(0,0,0,0.649) 58.6%, rgba(0,0,0,0.588) 63.2%, rgba(0,0,0,0.524) 67.8%, rgba(0,0,0,0.454) 72.4%, rgba(0,0,0,0.383) 77%, rgba(0,0,0,0.309) 81.6%, rgba(0,0,0,0.233) 86.2%, rgba(0,0,0,0.156) 90.8%, rgba(0,0,0,0.078) 95.4%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 8%, rgba(0,0,0,0.997) 12.6%, rgba(0,0,0,0.988) 17.2%, rgba(0,0,0,0.972) 21.8%, rgba(0,0,0,0.951) 26.4%, rgba(0,0,0,0.924) 31%, rgba(0,0,0,0.891) 35.6%, rgba(0,0,0,0.854) 40.2%, rgba(0,0,0,0.809) 44.8%, rgba(0,0,0,0.760) 49.4%, rgba(0,0,0,0.707) 54%, rgba(0,0,0,0.649) 58.6%, rgba(0,0,0,0.588) 63.2%, rgba(0,0,0,0.524) 67.8%, rgba(0,0,0,0.454) 72.4%, rgba(0,0,0,0.383) 77%, rgba(0,0,0,0.309) 81.6%, rgba(0,0,0,0.233) 86.2%, rgba(0,0,0,0.156) 90.8%, rgba(0,0,0,0.078) 95.4%, transparent 100%);
    background: radial-gradient(ellipse 90% 55% at 50% 0%, color-mix(in srgb, var(--accent, #6366f1) 9%, transparent) 0%, color-mix(in srgb, var(--accent, #8b5cf6) 4%, transparent) 45%, transparent 75%);
    border: none;
    box-shadow: none;
    border-radius: 24px 24px 0 0;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.gs-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.gs-header::after {
    content: '';
    position: absolute;
    bottom: -18%;
    left: -5%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(99,102,241,0.14) 0%, transparent 65%);
    pointer-events: none;
}
.gs-header__left {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}
.gs-header__icon-wrap {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 20px rgba(99,102,241,0.35);
    flex-shrink: 0;
}
.gs-header__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.gs-header__title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    color: var(--text, #f0eef5);
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.gs-header__sub {
    font-size: 0.82rem;
    color: var(--text-muted, rgba(200,200,220,0.55));
    margin: 0;
    font-weight: 400;
}
.gs-header__actions {
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.gs-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text, #f0eef5);
    letter-spacing: -0.03em;
}

/* ── KPI Cards Row ──────────────────────────────────────── */
.gs-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
}
.gs-kpi-row::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -8%;
    right: -8%;
    height: 56px;
    background: radial-gradient(ellipse 65% 100% at 50% 0%, color-mix(in srgb, var(--accent, #6366f1) 7%, transparent) 0%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}
.gs-kpi {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    border-radius: 16px;
    border: 1px solid var(--border, rgba(255,255,255,0.07));
    background: var(--bg-card, rgba(255,255,255,0.025));
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
}
.gs-kpi::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity 0.2s;
}
.gs-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.gs-kpi:hover::before {
    opacity: 1;
}
.gs-kpi__icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.gs-kpi__data {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.gs-kpi__value {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}
.gs-kpi__label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted, rgba(200,200,220,0.45));
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* KPI Color variants */
.gs-kpi--products {
    background: linear-gradient(135deg, rgba(99,102,241,0.06) 0%, rgba(99,102,241,0.02) 100%);
    border-color: rgba(99,102,241,0.15);
}
.gs-kpi--products::before { background: linear-gradient(90deg, #6366f1, #818cf8); }
.gs-kpi--products .gs-kpi__icon-wrap {
    background: rgba(99,102,241,0.12);
    box-shadow: 0 2px 12px rgba(99,102,241,0.15);
}
.gs-kpi--products .gs-kpi__value { color: #a5b4fc; }

.gs-kpi--published {
    background: linear-gradient(135deg, rgba(34,197,94,0.06) 0%, rgba(34,197,94,0.02) 100%);
    border-color: rgba(34,197,94,0.15);
}
.gs-kpi--published::before { background: linear-gradient(90deg, #22c55e, #4ade80); }
.gs-kpi--published .gs-kpi__icon-wrap {
    background: rgba(34,197,94,0.12);
    box-shadow: 0 2px 12px rgba(34,197,94,0.15);
}
.gs-kpi--published .gs-kpi__value { color: #86efac; }

.gs-kpi--sales {
    background: linear-gradient(135deg, rgba(245,158,11,0.06) 0%, rgba(245,158,11,0.02) 100%);
    border-color: rgba(245,158,11,0.15);
}
.gs-kpi--sales::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.gs-kpi--sales .gs-kpi__icon-wrap {
    background: rgba(245,158,11,0.12);
    box-shadow: 0 2px 12px rgba(245,158,11,0.15);
}
.gs-kpi--sales .gs-kpi__value { color: #fcd34d; }

.gs-kpi--revenue {
    background: linear-gradient(135deg, rgba(236,72,153,0.06) 0%, rgba(236,72,153,0.02) 100%);
    border-color: rgba(236,72,153,0.15);
}
.gs-kpi--revenue::before { background: linear-gradient(90deg, #ec4899, #f472b6); }
.gs-kpi--revenue .gs-kpi__icon-wrap {
    background: rgba(236,72,153,0.12);
    box-shadow: 0 2px 12px rgba(236,72,153,0.15);
}
.gs-kpi--revenue .gs-kpi__value { color: #f9a8d4; }

/* ── Legacy Stats Bar (fallback) ─────────────────────────── */
.gs-stats-bar {
    display: flex;
    align-items: stretch;
    margin-bottom: 14px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    overflow: hidden;
}
.gs-stat-card {
    flex: 1;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    border-right: 1px solid rgba(255,255,255,0.05);
    min-width: 0;
}
.gs-stat-card:last-child { border-right: none; }
.gs-stat-card__value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #e8e8f0;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.gs-stat-card__value--accent { color: var(--accent, #7c5cff); }
.gs-stat-card__value--green  { color: #2ecc71; }
.gs-stat-card__label {
    font-size: 0.68rem;
    color: rgba(200,200,220,0.38);
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* ── Store Link Banner ──────────────────────────────────── */
.gs-store-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: var(--bg-card, linear-gradient(135deg, rgba(99,102,241,0.05) 0%, rgba(139,92,246,0.03) 100%));
    border: 1px solid var(--border, rgba(99,102,241,0.12));
    border-radius: 14px;
    margin-bottom: 28px;
    transition: border-color 0.2s;
}
.gs-store-link:hover {
    border-color: rgba(99,102,241,0.25);
}
.gs-store-link__left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.gs-store-link__icon {
    font-size: 1.1rem;
}
.gs-store-link__label {
    font-size: 0.78rem;
    color: var(--text-muted, rgba(200,200,220,0.5));
    font-weight: 500;
}
.gs-store-link__url {
    flex: 1;
    color: var(--accent, #818cf8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    word-break: break-all;
    transition: color 0.2s;
}
.gs-store-link__url:hover {
    color: #a5b4fc;
    text-decoration: underline;
}

/* Legacy banner support */
.gs-store-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(99,102,241,0.05) 0%, rgba(139,92,246,0.03) 100%);
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: 14px;
    margin-bottom: 28px;
    font-size: 0.82rem;
}
.gs-store-banner__icon { font-size: 0.85rem; flex-shrink: 0; opacity: 0.5; }
.gs-store-banner__url {
    color: #818cf8;
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
    opacity: 0.8;
    transition: opacity 0.15s;
}
.gs-store-banner__url:hover { opacity: 1; text-decoration: underline; }
.gs-store-banner__copy { margin-left: auto; flex-shrink: 0; }

/* ── Products Section ──────────────────────────────────── */
.gs-products {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.gs-products__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.gs-products__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e8e8f0;
    margin: 0;
    letter-spacing: -0.02em;
}
.gs-products__count {
    font-size: 0.78rem;
    color: rgba(200,200,220,0.4);
    font-weight: 500;
    background: rgba(255,255,255,0.04);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
}

/* ── Product Grid ───────────────────────────────────────── */
.gs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 18px;
}

/* ═══════════════════════════════════════════════════════════
   Product Card v10 — Premium Grid Card
   ═══════════════════════════════════════════════════════════ */
.gs-card {
    background: var(--bg-card, rgba(255,255,255,0.025));
    border: 1px solid var(--border, rgba(255,255,255,0.07));
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.25s;
    display: flex;
    flex-direction: column;
}
.gs-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent, #8b5cf6) 25%, transparent);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 0 0 1px color-mix(in srgb, var(--accent, #8b5cf6) 10%, transparent);
}

/* ── Card Visual (Thumbnail + Status) ── */
.gs-card__visual {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-secondary, linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(139,92,246,0.04) 100%));
}
.gs-card__thumb {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.gs-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transform-origin: center center;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    image-rendering: auto;
}
.gs-card__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(0,0,0,0.55) 100%);
    transition: opacity 0.4s ease;
}
.gs-card:hover .gs-card__visual::after {
    opacity: 0.7;
}
.gs-card:hover .gs-card__thumb img {
    transform: scale(1.05);
}
.gs-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background: var(--bg-secondary, linear-gradient(135deg, rgba(99,102,241,0.1) 0%, rgba(139,92,246,0.06) 50%, rgba(168,85,247,0.04) 100%));
}

/* Status Badge on card */
.gs-card__status-badge {
    z-index: 3;
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    backdrop-filter: blur(12px);
}
.gs-card__status-badge--live {
    background: rgba(34,197,94,0.2);
    color: #86efac;
    border: 1px solid rgba(34,197,94,0.3);
    box-shadow: 0 2px 8px rgba(34,197,94,0.2);
}
.gs-card__status-badge--draft {
    background: rgba(200,200,220,0.1);
    color: rgba(200,200,220,0.6);
    border: 1px solid rgba(200,200,220,0.15);
}
.gs-card__status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}
.gs-card__status-badge--live .gs-card__status-dot {
    background: #4ade80;
    box-shadow: 0 0 6px rgba(74,222,128,0.6);
    animation: gs-status-pulse 2s ease-in-out infinite;
}
.gs-card__status-badge--draft .gs-card__status-dot {
    background: rgba(200,200,220,0.4);
}
@keyframes gs-status-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
/* ── Badge NEW! — produits de moins de 7 jours ── */
.gs-card__new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.92);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 6px rgba(0,0,0,0.25);
    overflow: hidden;
    pointer-events: none;
    animation: gs-new-badge-in 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}
.gs-card__new-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 50%;
    height: 200%;
    background: rgba(255,255,255,0.18);
    transform: skewX(-18deg);
    animation: gs-new-shimmer 3.5s ease-in-out 1s infinite;
}
@keyframes gs-new-badge-in {
    from { opacity: 0; transform: scale(0.7) translateY(-3px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes gs-new-shimmer {
    0%   { left: -20%; opacity: 0; }
    15%  { opacity: 1; }
    55%  { opacity: 1; }
    100% { left: 130%; opacity: 0; }
}

/* ── Card Content ── */
.gs-card__content {
    padding: 18px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.gs-card__type-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    background: rgba(139,92,246,0.08);
    color: rgba(196,181,253,0.7);
    width: fit-content;
    letter-spacing: 0.3px;
}
.gs-card__type-tag--digital { background: rgba(99,102,241,0.12); color: rgba(165,180,252,0.85); border: 1px solid rgba(99,102,241,0.2); }
.gs-card__type-tag--formation { background: rgba(16,185,129,0.12); color: rgba(110,231,183,0.9); border: 1px solid rgba(16,185,129,0.22); }
.gs-card__type-tag--link { background: rgba(251,191,36,0.12); color: rgba(252,211,77,0.9); border: 1px solid rgba(251,191,36,0.22); }
.gs-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 4px 0 0;
    color: var(--text, #f0eef5);
    line-height: 1.3;
    letter-spacing: -0.02em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gs-card__desc {
    font-size: 0.78rem;
    color: var(--text-muted, rgba(200,200,220,0.4));
    margin: 2px 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.5;
}
.gs-card__bottom-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border, rgba(255,255,255,0.05));
}
.gs-card__price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text, #f0eef5);
    letter-spacing: -0.04em;
    line-height: 1;
    white-space: nowrap;
}
.gs-card__price--free {
    color: var(--accent, #4ade80);
    font-size: 1rem;
}
.gs-card__sales-badge {
    font-size: 0.7rem;
    color: var(--text-muted, rgba(200,200,220,0.35));
    font-weight: 500;
    padding: 2px 8px;
    background: var(--bg-secondary, rgba(255,255,255,0.04));
    border-radius: 12px;
}
.gs-card__files-badge {
    font-size: 0.7rem;
    color: var(--text-muted, rgba(200,200,220,0.35));
    font-weight: 500;
    padding: 2px 8px;
    background: var(--bg-secondary, rgba(255,255,255,0.04));
    border-radius: 12px;
}

/* Legacy card support */
.gs-card__top {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 88px;
    overflow: hidden;
}
.gs-card__body {
    flex: 1;
    padding: 10px 16px 10px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 0;
}
.gs-card__meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
}
.gs-card__type-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 20px;
    font-size: 0.58rem;
    font-weight: 500;
    background: var(--bg-secondary, rgba(255,255,255,0.06));
    color: var(--text-muted, rgba(200,200,220,0.42));
}
.gs-card__status-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.gs-status--published {
    background: rgba(74,222,128,0.1);
    color: #4ade80;
    border: 1px solid rgba(74,222,128,0.18);
}
.gs-status--draft {
    background: rgba(200,200,220,0.05);
    color: rgba(200,200,220,0.38);
    border: 1px solid rgba(200,200,220,0.09);
}
.gs-card__footer {
    display: flex;
    align-items: baseline;
    gap: 7px;
}
.gs-card__sales {
    font-size: 0.62rem;
    color: rgba(200,200,220,0.25);
    font-weight: 400;
}
.gs-card__files {
    font-size: 0.78rem;
    color: var(--text-muted, #999);
    margin-top: 4px;
}
.gs-card__badge, .gs-card__type-badge { display: none; }

/* ── Actions Bar ── */
.gs-card__actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-top: 1px solid var(--border, rgba(255,255,255,0.05));
    background: color-mix(in srgb, var(--bg-primary, #000) 12%, transparent);
    flex-wrap: wrap;
}
.gs-card__actions-main,
.gs-card__actions-extra { display: contents; }

/* ═══════════════════════════════════════════════════════════
   Buttons v10 — Premium Actions
   ═══════════════════════════════════════════════════════════ */
.gs-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: none;
    border-radius: 10px;
    padding: 7px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    white-space: nowrap;
    line-height: 1.35;
    position: relative;
    overflow: hidden;
}
.gs-btn--sm {
    padding: 6px 12px;
    font-size: 0.72rem;
    border-radius: 8px;
}
.gs-btn__icon {
    font-size: 0.9em;
}

/* CTA — Primary gradient button */
.gs-btn--cta {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(99,102,241,0.35);
    font-weight: 700;
    padding: 10px 20px;
    font-size: 0.85rem;
}
.gs-btn--cta:hover {
    box-shadow: 0 6px 24px rgba(99,102,241,0.45);
    transform: translateY(-1px);
}

/* Ghost Premium — Settings button */
.gs-btn--ghost-premium {
    background: var(--bg-secondary, rgba(255,255,255,0.06));
    color: var(--text-muted, rgba(200,200,220,0.7));
    border: 1px solid var(--border, rgba(255,255,255,0.1));
    padding: 10px 18px;
    font-size: 0.85rem;
}
.gs-btn--ghost-premium:hover {
    background: var(--bg-tertiary, rgba(255,255,255,0.1));
    color: var(--text, #e8e8f0);
    border-color: var(--border, rgba(255,255,255,0.18));
}

/* Copy link button */
.gs-btn--copy {
    background: rgba(99,102,241,0.1);
    color: #818cf8;
    border: 1px solid rgba(99,102,241,0.2);
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.78rem;
    flex-shrink: 0;
}
.gs-btn--copy:hover {
    background: rgba(99,102,241,0.2);
    border-color: rgba(99,102,241,0.35);
}

/* Edit — main accent */
.gs-btn--edit {
    background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(139,92,246,0.12) 100%);
    color: #c4b5fd;
    border: 1px solid rgba(139,92,246,0.2);
}
.gs-btn--edit:hover {
    background: linear-gradient(135deg, rgba(99,102,241,0.25) 0%, rgba(139,92,246,0.2) 100%);
    color: #ddd6fe;
    border-color: rgba(139,92,246,0.35);
    box-shadow: 0 2px 12px rgba(139,92,246,0.2);
}

/* Publish — green gradient */
.gs-btn--publish {
    background: rgba(34,197,94,0.1);
    color: #86efac;
    border: 1px solid rgba(34,197,94,0.2);
}
.gs-btn--publish:hover {
    background: rgba(34,197,94,0.18);
    color: #bbf7d0;
    border-color: rgba(34,197,94,0.3);
    box-shadow: 0 2px 12px rgba(34,197,94,0.15);
}

/* Unpublish — muted */
.gs-btn--unpublish {
    background: var(--bg-secondary, rgba(255,255,255,0.04));
    color: var(--text-muted, rgba(200,200,220,0.5));
    border: 1px solid var(--border, rgba(255,255,255,0.07));
}
.gs-btn--unpublish:hover {
    background: var(--bg-tertiary, rgba(255,255,255,0.08));
    color: var(--text, rgba(200,200,220,0.7));
    border-color: var(--border, rgba(255,255,255,0.12));
}

/* Link — subtle */
.gs-btn--link {
    background: var(--bg-secondary, rgba(255,255,255,0.04));
    color: var(--text-muted, rgba(200,200,220,0.5));
    border: 1px solid var(--border, rgba(255,255,255,0.07));
}
.gs-btn--link:hover {
    background: rgba(99,102,241,0.1);
    color: #818cf8;
    border-color: rgba(99,102,241,0.2);
}

/* AI Generate — magic gradient */
.gs-btn--ai-generate {
    background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(139,92,246,0.12) 100%);
    color: #c4b5fd;
    border: 1px solid rgba(139,92,246,0.2);
}
.gs-btn--ai-generate:hover {
    background: linear-gradient(120deg, rgba(139,92,246,0.16) 0%, rgba(168,85,247,0.12) 100%);
    color: #c4b5fd;
    border-color: rgba(139,92,246,0.25);
    box-shadow: 0 2px 12px rgba(139,92,246,0.15);
}

/* Trash — danger ghost */
.gs-btn--trash {
    background: transparent;
    color: rgba(248,113,113,0.35);
    border: none;
    padding: 6px 8px;
}
.gs-btn--trash:hover {
    color: #f87171;
    background: rgba(248,113,113,0.1);
    border-radius: 8px;
}

/* Legacy button classes */
.gs-btn--accent {
    background: rgba(124,92,255,0.16);
    color: #c4b5fd;
    border: 1px solid rgba(124,92,255,0.24);
}
.gs-btn--accent:hover {
    background: rgba(124,92,255,0.26);
    color: #ddd6fe;
    border-color: rgba(124,92,255,0.38);
}
.gs-btn--secondary,
.gs-btn--ghost,
.gs-btn--tunnel {
    background: rgba(255,255,255,0.05);
    color: rgba(200,200,220,0.58);
    border: 1px solid rgba(255,255,255,0.08);
}
.gs-btn--secondary:hover,
.gs-btn--ghost:hover,
.gs-btn--tunnel:hover {
    background: rgba(255,255,255,0.09);
    color: rgba(220,220,235,0.85);
    border-color: rgba(255,255,255,0.14);
}
.gs-btn--primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}
.gs-btn--primary:hover {
    box-shadow: 0 6px 24px rgba(99,102,241,0.45);
    transform: translateY(-1px);
    background: linear-gradient(135deg, #5558e6 0%, #7c4ddb 100%);
    color: #fff;
}
















.gs-btn--success {
    background: rgba(74,222,128,0.08);
    color: rgba(74,222,128,0.75);
    border: 1px solid rgba(74,222,128,0.14);
}
.gs-btn--success:hover {
    background: rgba(74,222,128,0.14);
    color: rgba(74,222,128,0.95);
    border-color: rgba(74,222,128,0.24);
}
.gs-btn--ai {
    background: linear-gradient(120deg, rgba(99,102,241,0.1) 0%, rgba(139,92,246,0.1) 100%);
    color: rgba(167,139,250,0.72);
    border: 1px solid rgba(124,92,255,0.14);
}
.gs-btn--ai:hover {
    background: linear-gradient(120deg, rgba(99,102,241,0.18) 0%, rgba(139,92,246,0.18) 100%);
    color: rgba(196,181,253,0.9);
    border-color: rgba(124,92,255,0.24);
}
.gs-btn--danger,
.gs-btn--danger-ghost {
    background: transparent;
    color: rgba(248,113,113,0.4);
    border: none;
    padding: 4px 7px;
}
.gs-btn--danger:hover,
.gs-btn--danger-ghost:hover {
    color: rgba(248,113,113,0.75);
    background: rgba(248,113,113,0.07);
}
.gs-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ── Empty State ────────────────────────────────────────── */
.gs-empty {
    text-align: center;
    padding: 100px 20px;
    max-width: 420px;
    margin: 0 auto;
}
.gs-empty__icon {
    font-size: 4.5rem;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 4px 16px rgba(139,92,246,0.3));
}
.gs-empty h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 10px;
    color: #f0eef5;
    letter-spacing: -0.02em;
}
.gs-empty p {
    color: rgba(200,200,220,0.45);
    margin: 0 0 28px;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* ── Tabs ──────────────────────────────────────────────── */
.gs-tabs {
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 3px;
}
.gs-tab {
    padding: 5px 13px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: rgba(200,200,220,0.5);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}
.gs-tab.active {
    background: var(--accent, #7c5cff);
    color: #fff;
    font-weight: 600;
}
.gs-tab:hover:not(.active) {
    color: rgba(200,200,220,0.85);
    background: rgba(255,255,255,0.04);
}

/* ── Modal ──────────────────────────────────────────────── */
.gstore-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(6px);
}
.gstore-modal {
    background: var(--bg-primary, #161625);
    border: 1px solid var(--border, #2a2a3a);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.gstore-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px 16px;
    border-bottom: 1px solid var(--border, #2a2a3a);
}
.gstore-modal__header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}
.gstore-modal__close {
    background: none;
    border: none;
    color: var(--text, #ccc);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.5;
    border-radius: 8px;
    transition: all 0.2s;
}
.gstore-modal__close:hover {
    opacity: 1;
    background: rgba(255,255,255,0.06);
}
.gstore-modal__body { padding: 20px 28px; }
.gstore-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 28px 24px;
    border-top: 1px solid var(--border, #2a2a3a);
}

/* ── Form Elements ──────────────────────────────────────── */
.gs-form-group { margin-bottom: 20px; }
.gs-form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 6px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.gs-input {
    width: 100%;
    padding: 11px 16px;
    background: var(--bg-secondary, #252540);
    border: 1px solid var(--border, #2a2a3a);
    border-radius: 10px;
    color: var(--text, #e0e0e0);
    font-size: 0.92rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.gs-input:focus { outline: none; border-color: var(--accent, #7c5cff); }
.gs-input::placeholder { color: var(--text, #888); opacity: 0.35; }
.gs-textarea { resize: vertical; min-height: 80px; }
.gs-hint { font-size: 0.75rem; opacity: 0.35; margin-top: 4px; }

/* ── Type Selector ──────────────────────────────────────── */
.gs-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.gs-type-btn {
    padding: 16px 8px;
    text-align: center;
    background: var(--bg-secondary, #252540);
    border: 2px solid var(--border, #2a2a3a);
    border-radius: 12px;
    color: var(--text, #ccc);
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.gs-type-btn__icon { font-size: 1.6rem; }
.gs-type-btn:hover { border-color: var(--accent, #7c5cff); }
.gs-type-btn.active {
    border-color: var(--accent, #7c5cff);
    background: rgba(124,92,255,0.1);
    color: #fff;
}

/* ── Upload Zone ────────────────────────────────────────── */
.gs-upload-zone {
    border: 2px dashed var(--border, #2a2a3a);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.gs-upload-zone:hover,
.gs-upload-zone--dragover {
    border-color: var(--accent, #7c5cff);
    background: rgba(124,92,255,0.04);
}
.gs-upload-zone p { margin: 0; font-size: 0.88rem; opacity: 0.5; }
.gs-upload-zone a { color: var(--accent, #7c5cff); text-decoration: underline; cursor: pointer; }
.gs-upload-zone--compact { padding: 8px 14px; min-height: unset; }
.gs-upload-zone--compact p { font-size: 0.8rem; margin: 0; }
.gs-thumb-preview { max-height: 120px; max-width: 100%; border-radius: 10px; }
.gs-uploading { color: var(--accent, #7c5cff); }
.gs-upload-done { color: #2ecc71; }
.gs-upload-error { color: #e74c3c; }

/* ── Publish Toggle ─────────────────────────────────────── */
.gs-publish-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--bg-secondary, #252540);
    border-radius: 12px;
    margin-top: 4px;
}
.gs-publish-row input[type=checkbox] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent, #7c5cff);
    cursor: pointer;
}
.gs-publish-row label { cursor: pointer; font-size: 0.92rem; font-weight: 500; }

/* ── Multi-file upload rows ─────────────────────────────── */
.gs-files-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.gs-file-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    transition: all 0.2s;
}
.gs-file-row:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.15); }
.gs-file-row--pending {
    border-style: dashed;
    border-color: rgba(124,92,255,0.3);
    background: rgba(124,92,255,0.05);
}
.gs-file-row__icon { font-size: 1.2rem; flex-shrink: 0; }
.gs-file-row__name {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text, #e0e0e0);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gs-file-row__size { font-size: 0.78rem; color: var(--text-muted, #888); flex-shrink: 0; }
.gs-file-row__remove {
    background: none;
    border: none;
    color: var(--text-muted, #888);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 6px;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}
.gs-file-row__remove:hover { background: rgba(231,76,60,0.15); color: #e74c3c; }

/* ── Email post-achat settings ──────────────────────────── */
.gs-email-settings {
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    overflow: hidden;
    margin-top: 4px;
}
.gs-email-settings__toggle {
    cursor: pointer;
    padding: 12px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text, #e0e0e0);
    background: rgba(255,255,255,0.03);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    user-select: none;
}
.gs-email-settings__toggle:hover { background: rgba(255,255,255,0.06); }
.gs-email-settings__toggle::marker,
.gs-email-settings__toggle::-webkit-details-marker { display: none; }
.gs-email-settings__toggle::before {
    content: '\25B6';
    font-size: 0.65rem;
    transition: transform 0.2s;
}
.gs-email-settings[open] .gs-email-settings__toggle::before { transform: rotate(90deg); }
.gs-email-settings__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── Thumb Editor ───────────────────────────────────────── */
.gs-thumb-editor {
    margin-bottom: 10px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    background: var(--bg-secondary, #1a1a2e);
}
.gs-thumb-editor__preview {
    position: relative;
    height: 180px;
    overflow: hidden;
    cursor: pointer;
    background: #0d0d1a;
}
.gs-thumb-editor__preview:hover .gs-thumb-editor__overlay { opacity: 1; }
.gs-thumb-editor__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.gs-thumb-editor__change-btn {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none;
}
.gs-thumb-preview-edit {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    transition: object-position 0.15s, transform 0.15s;
}
.gs-thumb-editor__controls {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0,0,0,0.2);
}
.gs-thumb-ctrl-row { display: flex; align-items: center; gap: 10px; }
.gs-thumb-ctrl-label { font-size: 0.75rem; color: var(--text-muted, #888); width: 90px; flex-shrink: 0; }
.gs-thumb-slider { flex: 1; height: 4px; accent-color: var(--accent, #7c5cff); cursor: pointer; }
.gs-thumb-ctrl-val { font-size: 0.72rem; color: var(--text-muted, #888); width: 36px; text-align: right; flex-shrink: 0; }
.gs-thumb-fit-row {
    padding: 2px 0 4px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 4px;
}
.gs-thumb-fit-btn {
    flex: 1;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: var(--text-muted, #888);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.15s;
}
.gs-thumb-fit-btn:hover {
    background: rgba(124,92,255,0.15);
    border-color: var(--accent, #7c5cff);
    color: var(--text, #eee);
}
.gs-thumb-fit-btn--active {
    background: rgba(124,92,255,0.25);
    border-color: var(--accent, #7c5cff);
    color: var(--accent, #7c5cff);
    font-weight: 600;
}
.gs-thumb-preview-edit[style*="object-fit: contain"],
.gs-thumb-preview-edit[style*="object-fit:contain"] {
    background: repeating-conic-gradient(rgba(255,255,255,0.04) 0% 25%, transparent 0% 50%) 0 0 / 12px 12px;
}

/* ═══════════════════════════════════════════════════════════
   Settings Modal Premium
   ═══════════════════════════════════════════════════════════ */
.gsm-layout {
    display: flex;
    flex-direction: row;
    height: 100%;
    max-height: 92vh;
    overflow: hidden;
    border-radius: 24px;
}
.gsm-preview-col {
    width: 38%;
    min-width: 260px;
    background: linear-gradient(160deg, #0d0d1f 0%, #13132a 60%, #0a0a18 100%);
    border-right: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px 24px;
    gap: 16px;
    flex-shrink: 0;
}
.gsm-preview-card {
    width: 100%;
    max-width: 240px;
    background: #1a1a2e;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.07);
    transition: box-shadow 0.3s;
}
.gsm-preview-card:hover {
    box-shadow: 0 16px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.1);
}
.gsm-preview-hero {
    height: 80px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0;
    transition: background 0.35s ease;
}
.gsm-preview-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 3px solid #1a1a2e;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    transition: border-color 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.gsm-preview-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.gsm-preview-body {
    padding: 36px 16px 20px;
    text-align: center;
}
.gsm-preview-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #eeeef5;
    margin-bottom: 4px;
    line-height: 1.3;
    transition: all 0.2s;
}
.gsm-preview-tagline {
    font-size: 0.72rem;
    color: rgba(200,200,220,0.45);
    line-height: 1.4;
    margin-bottom: 12px;
    transition: all 0.2s;
}
.gsm-preview-socials {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}
.gsm-social-dot {
    font-size: 0.4rem;
    color: rgba(200,200,220,0.25);
}
.gsm-preview-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(200,200,220,0.3);
    font-weight: 600;
}
.gsm-view-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(130,140,248,0.7);
    font-size: 0.78rem;
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid rgba(130,140,248,0.2);
    border-radius: 8px;
    background: rgba(130,140,248,0.05);
    transition: all 0.2s;
}
.gsm-view-link:hover {
    color: #818cf8;
    border-color: rgba(130,140,248,0.4);
    background: rgba(130,140,248,0.1);
}
.gsm-form-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}
.gsm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.gsm-modal-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #eeeef5;
}
.gsm-form-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 28px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.gsm-form-body::-webkit-scrollbar { width: 4px; }
.gsm-form-body::-webkit-scrollbar-track { background: transparent; }
.gsm-form-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.gsm-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #818cf8;
    margin: 20px 0 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(130,140,248,0.12);
}
.gsm-section-label:first-child { margin-top: 4px; }
.gsm-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 28px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

/* Upload & color pickers */
.gsm-upload-row { display: flex; align-items: center; gap: 14px; }
.gsm-upload-preview {
    width: 56px; height: 56px; border-radius: 12px;
    background: rgba(255,255,255,0.05); border: 1px dashed rgba(255,255,255,0.15);
    overflow: hidden; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; flex-shrink: 0;
}
.gsm-upload-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.gsm-upload-actions { display: flex; flex-direction: column; gap: 4px; }
.gsm-upload-status { font-size: 0.75rem; min-height: 16px; }
.gsm-banner-upload {
    position: relative; height: 72px; border-radius: 12px;
    background: rgba(255,255,255,0.03); border: 1px dashed rgba(255,255,255,0.12);
    overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.gsm-banner-img { width: 100%; height: 100%; object-fit: cover; }
.gsm-banner-placeholder {
    font-size: 0.8rem; color: rgba(200,200,220,0.3);
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; gap: 6px;
}
.gsm-banner-btn {
    position: absolute; bottom: 6px; right: 8px;
    background: rgba(0,0,0,0.55); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15); color: #fff;
    font-size: 0.72rem; font-weight: 600; padding: 4px 10px;
    border-radius: 8px; cursor: pointer; font-family: inherit;
    transition: all 0.2s;
}
.gsm-banner-btn:hover { background: rgba(124,92,255,0.6); border-color: rgba(124,92,255,0.5); }
.gsm-color-row { display: flex; flex-direction: column; gap: 10px; }
.gsm-color-presets { display: flex; gap: 8px; flex-wrap: wrap; }
.gsm-color-dot {
    width: 28px; height: 28px; border-radius: 50%;
    border: 2px solid transparent; cursor: pointer;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
    padding: 0; flex-shrink: 0;
}
.gsm-color-dot:hover { transform: scale(1.18); box-shadow: 0 2px 10px rgba(0,0,0,0.4); }
.gsm-color-dot--active { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,0.25); transform: scale(1.12); }
.gsm-color-custom { display: flex; gap: 8px; align-items: center; }
.gsm-color-picker {
    width: 44px; height: 38px; border: none; border-radius: 10px;
    cursor: pointer; background: transparent; padding: 0; flex-shrink: 0;
}
.gsm-color-hex { flex: 1; max-width: 120px; font-family: monospace; font-size: 0.88rem !important; }
.gsm-social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.gsm-social-wide { grid-column: span 2; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .gs-wrap {
    padding: 16px 12px; }
    .gs-header {
        flex-direction: column;
        align-items: stretch;
        padding: 20px 20px 44px;
        -webkit-mask-image: linear-gradient(to bottom, black 0%, black 74%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 0%, black 74%, transparent 100%);
    }
    .gs-header__actions {
        justify-content: flex-end;
    }
    .gs-kpi-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .gs-grid {
        grid-template-columns: 1fr;
    }
    .gs-card__visual {
        height: 140px;
    }
    .gs-card__actions {
        gap: 4px;
        padding: 10px 12px;
    }
    .gs-type-selector { grid-template-columns: 1fr; }
    .gstore-modal { margin: 10px; max-height: calc(100vh - 20px); }
}

@media (max-width: 680px) {
    .gsm-layout { flex-direction: column; }
    .gsm-preview-col {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        padding: 20px 16px 16px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
    }
    .gsm-preview-card { max-width: 180px; }
    .gsm-social-grid { grid-template-columns: 1fr; }
    .gsm-social-wide { grid-column: span 1; }
    .gsm-form-body { padding: 16px 18px; }
    .gsm-modal-header { padding: 16px 18px 12px; }
    .gsm-modal-footer { padding: 12px 18px 16px; }
}

@media (max-width: 420px) {
    .gs-kpi-row {
        grid-template-columns: 1fr;
    }
    .gs-kpi {
        padding: 14px 16px;
    }
    .gs-card__content {
        padding: 14px 16px;
    }
}

/* ═══════════════════════════════════════════════════════════
   Giri Store Settings v2 — Premium Customization Modal
   Stan Store / Kajabi level UI
   ═══════════════════════════════════════════════════════════ */

/* ── Overlay ── */
.gsm-v2-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    /* backdrop-filter removed for perf on low-end CPUs — replaced by darker bg */
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    will-change: opacity;
}

/* ── Modal container ── */
.gsm-v2-modal {
    background: #0c0c18;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    width: 100%;
    max-width: 1280px;
    height: 92vh;
    overflow: hidden;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255,255,255,0.04);
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
}

/* ── Side-by-side layout ── */
.gsm-v2-layout {
    display: flex;
    height: 100%;
    overflow: hidden;
}

/* ── RIGHT: Preview column ── */
.gsm-v2-preview-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #08080f;
}

.gsm-v2-preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.gsm-v2-preview-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b6b8a;
}

.gsm-v2-device-toggles {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 3px;
}

.gsm-v2-device-btn {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.gsm-v2-device-btn:hover {
    color: #999;
}

.gsm-v2-device-btn--active {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

/* ── Preview frame ── */
.gsm-v2-preview-frame {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 20px;
    transition: padding 0.3s ease;
    contain: layout style;
}

.gsm-v2-preview-frame--mobile {
    padding: 20px 0;
    justify-content: center;
}

.gsm-v2-preview-frame--mobile .gsm-v2-iframe {
    max-width: 390px;
    margin: 0 auto;
    border-radius: 24px;
    box-shadow: 0 0 0 8px #1a1a2e, 0 0 0 10px rgba(255,255,255,0.06), 0 24px 60px rgba(0,0,0,0.5);
}

.gsm-v2-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    background: #0a0a0f;
    transition: max-width 0.3s ease, border-radius 0.3s;
    will-change: transform;
    transform: translateZ(0);
}

.gsm-v2-store-link {
    display: block;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.8rem;
    color: #818cf8;
    text-decoration: none;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
    transition: color 0.2s;
    position: relative;
    z-index: 2;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.5);
}
.gsm-v2-store-link:hover { color: #a5b4fc; }

/* ── LEFT: Settings column ── */
.gsm-v2-settings-col {
    width: 460px;
    min-width: 420px;
    display: flex;
    flex-direction: column;
    background: #0f0f1a;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.gsm-v2-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.gsm-v2-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f0eef5;
    margin: 0;
}

.gsm-v2-close {
    background: none;
    border: none;
    color: #666;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s;
}
.gsm-v2-close:hover { color: #fff; background: rgba(255,255,255,0.06); }

.gsm-v2-settings-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
    contain: layout style;
    will-change: scroll-position;
}
.gsm-v2-settings-body::-webkit-scrollbar { width: 5px; }
.gsm-v2-settings-body::-webkit-scrollbar-track { background: transparent; }
.gsm-v2-settings-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

.gsm-v2-settings-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.5);
}

/* ── Sections ── */
.gsm-v2-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.gsm-v2-section:last-child { border-bottom: none; margin-bottom: 0; }

.gsm-v2-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #818cf8;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.gsm-v2-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(129, 140, 248, 0.15), transparent);
}

/* ── Color Palettes ── */
.gsm-v2-palettes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.gsm-v2-palette {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    min-width: 170px;
}
.gsm-v2-palette:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}
.gsm-v2-palette--active {
    border-color: #818cf8;
    background: rgba(99, 102, 241, 0.08);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.gsm-v2-palette-swatch {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.gsm-v2-palette-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.gsm-v2-palette-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #e8e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gsm-v2-palette-desc {
    font-size: 0.7rem;
    color: #6b6b8a;
}

/* ── Custom colors ── */
.gsm-v2-custom-colors {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.gsm-v2-color-pair {
    flex: 1;
}
.gsm-v2-color-pair label {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 6px;
    display: block;
}

.gsm-v2-color-input-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.gsm-v2-color-picker {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    padding: 0;
    cursor: pointer;
    background: transparent;
    overflow: hidden;
    flex-shrink: 0;
}
.gsm-v2-color-picker::-webkit-color-swatch-wrapper { padding: 0; }
.gsm-v2-color-picker::-webkit-color-swatch { border: 2px solid rgba(255,255,255,0.1); border-radius: 8px; }
.gsm-v2-color-picker::-moz-color-swatch { border: 2px solid rgba(255,255,255,0.1); border-radius: 8px; }

.gsm-v2-color-hex {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8rem !important;
    padding: 8px 10px !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    max-width: 100px;
}

/* ── Gradient preview ── */
.gsm-v2-gradient-preview {
    height: 32px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(255,255,255,0.06);
    transition: background 0.3s;
}

/* ── Typography ── */
.gsm-v2-fonts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 290px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(129, 140, 248, 0.4) transparent;
}
.gsm-v2-fonts::-webkit-scrollbar {
    width: 4px;
}
.gsm-v2-fonts::-webkit-scrollbar-track {
    background: transparent;
}
.gsm-v2-fonts::-webkit-scrollbar-thumb {
    background: rgba(129, 140, 248, 0.4);
    border-radius: 2px;
}

.gsm-v2-font-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.015);
    cursor: pointer;
    transition: all 0.2s;
}
.gsm-v2-font-option:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}
.gsm-v2-font-option--active {
    border-color: #818cf8;
    background: rgba(99, 102, 241, 0.06);
}

.gsm-v2-font-sample {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e8e8f0;
    letter-spacing: -0.01em;
}

.gsm-v2-font-desc {
    font-size: 0.72rem;
    color: #6b6b8a;
    white-space: nowrap;
}

/* ── Upload rows ── */
.gsm-v2-upload-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gsm-v2-upload-preview {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    overflow: hidden;
}
.gsm-v2-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.gsm-v2-upload-preview--round {
    border-radius: 50%;
}
.gsm-v2-upload-preview--round img {
    border-radius: 50%;
}

.gsm-v2-upload-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gsm-v2-upload-status {
    font-size: 0.75rem;
    min-width: 60px;
}

/* ── Banner zone ── */
.gsm-v2-banner-zone {
    position: relative;
    height: 100px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.08);
}

.gsm-v2-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gsm-v2-banner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 0.85rem;
}

.gsm-v2-banner-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ddd;
    font-size: 0.78rem;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.gsm-v2-banner-btn:hover { background: rgba(0, 0, 0, 0.85); color: #fff; }

/* ── Position buttons ── */
.gsm-v2-pos-row {
    display: flex;
    gap: 6px;
}

.gsm-v2-pos-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    color: #888;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.gsm-v2-pos-btn:hover { border-color: rgba(255, 255, 255, 0.15); color: #ccc; }
.gsm-v2-pos-btn--active { border-color: #818cf8; color: #fff; background: rgba(99, 102, 241, 0.1); }

/* ── Slider ── */
.gsm-v2-slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gsm-v2-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}
.gsm-v2-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #818cf8;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}
.gsm-v2-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #818cf8;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.gsm-v2-slider-val {
    font-size: 0.78rem;
    color: #818cf8;
    font-weight: 600;
    min-width: 36px;
    text-align: right;
}

/* ── CTA Shape buttons ── */
.gsm-v2-shape-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.gsm-v2-shape-btn {
    flex: 1;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
}
.gsm-v2-shape-btn:hover { border-color: rgba(255, 255, 255, 0.15); }
.gsm-v2-shape-btn--active { border-color: #818cf8; background: rgba(99, 102, 241, 0.06); }

.gsm-v2-shape-demo {
    display: block;
    padding: 10px 16px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    margin: 10px;
}

/* ── Social grid ── */
.gsm-v2-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.gsm-v2-social-wide {
    grid-column: 1 / -1;
}

/* ── Layout buttons ── */
.gsm-v2-layout-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .gsm-v2-layout {
        flex-direction: column;
    }
    .gsm-v2-settings-col {
        width: 100%;
        min-width: 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        max-height: 50vh;
    }
    .gsm-v2-preview-col {
        flex: 1;
        min-height: 250px;
    }
}

@media (max-width: 600px) {
    .gsm-v2-preview-col {
        display: none;
    }
    .gsm-v2-settings-col {
        width: 100%;
    }
    .gsm-v2-palettes {
        flex-direction: column;
    }
    .gsm-v2-palette {
        min-width: auto;
    }
    .gsm-v2-social-grid {
        grid-template-columns: 1fr;
    }
    .gsm-v2-custom-colors {
        flex-direction: column;
    }
}

/* ── No-preview fallback ── */
.gsm-v2-no-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #555;
    gap: 4px;
}
.gsm-v2-no-preview p {
    margin: 0;
    font-size: 0.9rem;
}
.gsm-v2-no-preview-sub {
    font-size: 0.75rem !important;
    opacity: 0.5;
}

/* ── AI Image Generator ── */
.gs-ai-gen {
    margin-top: 12px;
    border: 1px solid rgba(139,92,246,0.25);
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(139,92,246,0.06) 0%, rgba(99,102,241,0.03) 50%, rgba(236,72,153,0.03) 100%);
    box-shadow: 0 2px 12px rgba(139,92,246,0.08);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.gs-ai-gen:hover {
    border-color: rgba(139,92,246,0.35);
    box-shadow: 0 4px 20px rgba(139,92,246,0.12);
}
.gs-ai-gen__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}
.gs-ai-gen__header::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(236,72,153,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}
.gs-ai-gen__header:hover {
    background: rgba(139,92,246,0.08);
}
.gs-ai-gen__icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 6px rgba(139,92,246,0.4));
}
.gs-ai-gen__label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent, #8b5cf6);
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--accent, #8b5cf6) 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gs-ai-gen__body {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.gs-ai-gen__input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: var(--text, #e8e8f0);
    font-size: 0.88rem;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}
.gs-ai-gen__input:focus {
    border-color: var(--accent, #8b5cf6);
}
.gs-ai-gen__input::placeholder {
    color: rgba(200,200,220,0.3);
}
.gs-ai-gen__styles {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.gs-ai-style-btn {
    padding: 7px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: var(--text2, #8888a8);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}
.gs-ai-style-btn:hover {
    background: rgba(139,92,246,0.12);
    border-color: rgba(139,92,246,0.25);
    transform: translateY(-1px);
}
.gs-ai-style-btn--active {
    background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(99,102,241,0.15));
    border-color: var(--accent, #8b5cf6);
    color: var(--accent, #8b5cf6);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(139,92,246,0.2);
}
.gs-ai-gen__btn {
    padding: 12px 24px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #8b5cf6, #6366f1, #ec4899) !important;
    background-size: 200% 200% !important;
    animation: gs-ai-btn-shimmer 3s ease infinite !important;
    box-shadow: 0 4px 16px rgba(139,92,246,0.3) !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    letter-spacing: 0.02em !important;
}
.gs-ai-gen__btn:hover:not(:disabled) {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 24px rgba(139,92,246,0.4) !important;
}
.gs-ai-gen__btn:disabled {
    opacity: 0.7 !important;
    animation: none !important;
}
@keyframes gs-ai-btn-shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.gs-ai-gen__status {
    font-size: 0.78rem;
    padding: 8px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    text-align: center;
}

/* ── Drag-to-pan cursor ── */
.gs-thumb-preview-edit {
    cursor: grab;
}
.gs-thumb-preview-edit:active {
    cursor: grabbing;
}

/* ── Thumb Editor Enhanced ── */
.gs-thumb-editor__hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 20px;
    pointer-events: none;
    z-index: 2;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    transition: opacity 1s ease;
}
.gs-thumb-editor__change-floating {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.2s;
    opacity: 0.7;
}
.gs-thumb-editor__change-floating:hover {
    opacity: 1;
    background: rgba(139,92,246,0.7);
    transform: scale(1.1);
}
.gs-thumb-editor__preview {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
    background: #111118;
    border: 2px dashed rgba(139,92,246,0.2);
    cursor: grab;
    user-select: none;
}
.gs-thumb-editor__preview:active {
    cursor: grabbing;
    border-color: rgba(139,92,246,0.5);
}
.gs-thumb-preview-edit {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* ── Blur Background for contain mode ── */
.gs-card__thumb-blur {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(25px) saturate(1.3) brightness(0.5);
    transform: scale(1.2);
    z-index: 0;
}
.gs-card__thumb img {
    position: relative;
    z-index: 1;
}

/* Editor blur bg */
.gs-thumb-editor__blur-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(30px) saturate(1.4) brightness(0.4);
    transform: scale(1.3);
    z-index: 0;
    border-radius: 12px;
}

/* ── Video Section ── */
.gs-video-section { display: flex; flex-direction: column; gap: 8px; }
.gs-video-hint { font-size: 0.72rem; color: var(--text3, #666); opacity: 0.6; }
.gs-video-preview { margin-top: 8px; }
.gs-video-frame { border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 16/9; }
.gs-video-frame iframe, .gs-video-frame video { width: 100%; height: 100%; border: none; }

/* ── Animation Grid ── */
.gs-anim-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}
.gs-anim-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    color: var(--text2, #8888a8);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}
.gs-anim-btn:hover {
    background: rgba(139,92,246,0.1);
    border-color: rgba(139,92,246,0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139,92,246,0.12);
}
.gs-anim-btn--active {
    background: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(99,102,241,0.1));
    border-color: var(--accent, #8b5cf6);
    color: var(--accent, #8b5cf6);
    box-shadow: 0 2px 10px rgba(139,92,246,0.2);
}
.gs-anim-btn__icon { font-size: 1.2rem; }
.gs-anim-btn__name { font-size: 0.62rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; letter-spacing: 0.01em; }
@keyframes gs-anim-preview { 0% { transform: scale(0.85); opacity: 0.5; } 50% { transform: scale(1.05); } 100% { transform: scale(1); opacity: 1; } }
@keyframes gs-prev-fadeUp { 0% { opacity: 0; transform: translateY(12px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes gs-prev-fadeDown { 0% { opacity: 0; transform: translateY(-12px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes gs-prev-fadeLeft { 0% { opacity: 0; transform: translateX(12px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes gs-prev-fadeRight { 0% { opacity: 0; transform: translateX(-12px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes gs-prev-zoomIn { 0% { opacity: 0; transform: scale(0.7); } 100% { opacity: 1; transform: scale(1); } }
@keyframes gs-prev-zoomOut { 0% { opacity: 0; transform: scale(1.3); } 100% { opacity: 1; transform: scale(1); } }
@keyframes gs-prev-flipX { 0% { opacity: 0; transform: perspective(400px) rotateY(90deg); } 100% { opacity: 1; transform: perspective(400px) rotateY(0); } }
@keyframes gs-prev-flipY { 0% { opacity: 0; transform: perspective(400px) rotateX(90deg); } 100% { opacity: 1; transform: perspective(400px) rotateX(0); } }
@keyframes gs-prev-bounceIn { 0% { opacity: 0; transform: scale(0.6); } 60% { opacity: 1; transform: scale(1.12); } 80% { transform: scale(0.95); } 100% { transform: scale(1); } }
@keyframes gs-prev-rotateIn { 0% { opacity: 0; transform: rotate(-90deg) scale(0.7); } 100% { opacity: 1; transform: rotate(0) scale(1); } }
@keyframes gs-prev-blurIn { 0% { opacity: 0; filter: blur(8px); } 100% { opacity: 1; filter: blur(0); } }
@keyframes gs-prev-glowIn { 0% { opacity: 0; filter: brightness(2); } 50% { opacity: 1; filter: brightness(1.5); } 100% { opacity: 1; filter: brightness(1); } }
@keyframes gs-prev-slideScale { 0% { opacity: 0; transform: translateY(16px) scale(0.85); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes gs-prev-elastic { 0% { opacity: 0; transform: scale(0.5); } 55% { transform: scale(1.15); } 70% { transform: scale(0.92); } 85% { transform: scale(1.04); } 100% { opacity: 1; transform: scale(1); } }
@keyframes gs-prev-typewriter { 0% { opacity: 0; width: 0; overflow: hidden; } 100% { opacity: 1; width: 100%; overflow: visible; } }
@media (max-width: 600px) { .gs-anim-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Loading spinner for preview iframe ── */
.gsm-v2-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 15, 0.85);
    z-index: 10;
    backdrop-filter: blur(4px);
    border-radius: 12px;
}
.gsm-v2-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #818cf8;
    border-radius: 50%;
    animation: gsm-spin 0.7s linear infinite;
}
@keyframes gsm-spin {
    to { transform: rotate(360deg); }
}

/* ── Eye toggle button ── */
.gsm-v2-eye-btn {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-left: 6px;
}
.gsm-v2-eye-btn:hover { color: #999; }
.gsm-v2-eye-btn--active { color: #818cf8; }
.gsm-v2-eye-btn--active:hover { color: #a5b4fc; }

/* Eye open: visible when active; Eye closed: hidden when active */
.gsm-v2-eye-btn--active .gsm-v2-eye-open { display: block; }
.gsm-v2-eye-btn--active .gsm-v2-eye-closed { display: none; }
.gsm-v2-eye-btn:not(.gsm-v2-eye-btn--active) .gsm-v2-eye-open { display: none; }
.gsm-v2-eye-btn:not(.gsm-v2-eye-btn--active) .gsm-v2-eye-closed { display: block; }

/* Preview off: black overlay over the frame */
.gsm-v2-preview-frame--off::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 10;
    border-radius: 12px;
    pointer-events: none;
}

/* ── Logo adjust controls ── */
.gsm-v2-logo-adjust {
    margin-top: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px 14px;
}
.gsm-v2-logo-adjust-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.gsm-v2-logo-adjust-row label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text2, #888);
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
}
.gsm-v2-logo-adjust-row #gsm-v2-logo-size-val {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent, #818cf8);
}
#gsm-v2-logo-size {
    width: 100%;
    accent-color: var(--accent, #6366f1);
    cursor: pointer;
}
.gsm-v2-logo-shapes {
    display: flex;
    gap: 5px;
}
.gsm-v2-logo-shape {
    flex: 1;
    padding: 5px 8px;
    font-size: 0.72rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.gsm-v2-logo-shape:hover {
    border-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
}
.gsm-v2-logo-shape--on {
    background: rgba(99,102,241,0.15);
    border-color: var(--accent, #6366f1);
    color: var(--accent, #818cf8);
    font-weight: 700;
}

/* ── Accordion tiroirs ── */
.gsm-v2-section {
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 6px;
    background: rgba(255,255,255,0.015);
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}
.gsm-v2-section:last-child { margin-bottom: 6px; }
.gsm-v2-section-title {
    cursor: pointer;
    padding: 13px 16px;
    margin-bottom: 0;
    border-radius: 12px;
    transition: background 0.15s;
    justify-content: space-between;
}
.gsm-v2-section-title::after { display: none; }
.gsm-v2-section-title:hover { background: rgba(255,255,255,0.04); }
.gsm-v2-section-title .gsm-chev {
    flex-shrink: 0;
    margin-left: auto;
    opacity: 0.4;
    transition: transform 0.25s, opacity 0.2s;
    font-size: 0.6rem;
    line-height: 1;
}
.gsm-v2-section--open .gsm-v2-section-title .gsm-chev {
    transform: rotate(180deg);
    opacity: 0.7;
}
.gsm-v2-section-body {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.32s ease, opacity 0.22s ease;
    padding: 0 16px;
}
.gsm-v2-section--open .gsm-v2-section-body {
    max-height: 3000px;
    opacity: 1;
    padding: 0 16px 16px;
}

/* ── Logo adjust panel ── */
.gsm-v2-logo-adjust{margin-top:10px;padding:10px 12px;background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.08);border-radius:10px}
.gsm-v2-logo-adjust-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px;font-size:0.78rem}
.gsm-v2-logo-adjust-row span{color:var(--text2,#888)}
.gsm-v2-logo-adjust-row strong{color:var(--accent,#818cf8)}
.gsm-v2-logo-shape{flex:1;padding:5px 4px;font-size:0.73rem;border:1px solid rgba(255,255,255,0.1);border-radius:7px;background:rgba(255,255,255,0.04);color:rgba(255,255,255,0.5);cursor:pointer;transition:all .2s}
.gsm-v2-logo-shape:hover{border-color:rgba(255,255,255,0.25);color:#fff}
.gsm-v2-logo-shape.active{background:rgba(99,102,241,0.18);border-color:var(--accent,#6366f1);color:var(--accent,#818cf8);font-weight:700}

/* ══════════════════════════════════════════
   THÈME BOIS LÉGENDAIRE — Boutique customizer
   ══════════════════════════════════════════ */

/* Bouton Enregistrer — bois très clair */
[data-theme="wood-legendary"] #gsm-v2-save,
[data-theme="wood-legendary"] .gsm-v2-save {
    background: linear-gradient(180deg, #F0DAAA 0%, #D9BC80 50%, #C9A96A 100%) !important;
    color: #2C1200 !important;
    border: 1px solid #A07840 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,245,200,0.45) !important;
    text-shadow: 0 1px 0 rgba(255,240,190,0.4) !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
}
[data-theme="wood-legendary"] #gsm-v2-save:hover,
[data-theme="wood-legendary"] .gsm-v2-save:hover {
    background: linear-gradient(180deg, #F8E6C0 0%, #E4CA90 50%, #D4B478 100%) !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,248,210,0.5) !important;
}

/* Lien "Ouvrir la boutique publique" — marron très foncé */
[data-theme="wood-legendary"] .gsm-v2-store-link {
    color: #3D1800 !important;
    font-weight: 600 !important;
    border-top: 1px solid rgba(139,90,40,0.2) !important;
    opacity: 1 !important;
}
[data-theme="wood-legendary"] .gsm-v2-store-link:hover {
    color: #5C2800 !important;
    text-decoration: underline !important;
}

/* Scrollbar bois — zone paramètres */
[data-theme=wood-legendary] .gsm-v2-settings-body {
    scrollbar-color: #A07840 rgba(60,25,5,0.3);
}
[data-theme=wood-legendary] .gsm-v2-settings-body::-webkit-scrollbar {
    width: 5px;
}
[data-theme=wood-legendary] .gsm-v2-settings-body::-webkit-scrollbar-track {
    background: rgba(60,25,5,0.25);
    border-radius: 4px;
}
[data-theme=wood-legendary] .gsm-v2-settings-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #C9A96A 0%, #A07840 50%, #7A5520 100%);
    border-radius: 4px;
    border: 1px solid rgba(255,220,140,0.15);
}
[data-theme=wood-legendary] .gsm-v2-settings-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #E0C080 0%, #C09050 50%, #906030 100%);
}

/* ─── Bois noble légendaire — Bouton Générer la bannière ─── */
#gsm-v2-ai-banner-gen {
    background: linear-gradient(135deg, #eedcb8 0%, #d9c095 100%) !important;
    color: #4a3020 !important;
    border: 1.5px solid rgba(190,150,80,0.7) !important;
    box-shadow: 0 2px 10px rgba(160,120,50,0.3) !important;
    font-weight: 600 !important;
    text-shadow: none !important;
}
#gsm-v2-ai-banner-gen:hover {
    background: linear-gradient(135deg, #e5d0a8 0%, #c8aa7a 100%) !important;
    box-shadow: 0 4px 18px rgba(160,120,50,0.45) !important;
    transform: translateY(-1px);
    color: #3a2810 !important;
}

/* ─── Premium emoji shadow — Personnaliser ma boutique ─── */
.gsm-v2-modal .gsm-v2-title,
.gsm-v2-modal span[style*="font-size:1"],
.gsm-v2-modal span[style*="font-size:0.8"],
.gsm-v2-modal span[style*="font-size:0.7"],
.gsm-v2-modal .gsm-v2-section-title,
.gsm-v2-modal .gsm-v2-ai-banner > div > span {
    filter: drop-shadow(0 1px 8px rgba(255,200,80,0.55)) drop-shadow(0 2px 14px rgba(200,140,30,0.35));
}

/* ─── Premium emoji glow — Personnaliser ma boutique ─── */
.gsm-v2-modal span[style*="font-size:1"],
.gsm-v2-modal span[style*="font-size:0.8rem"],
.gsm-v2-modal span[style*="font-size:0.7rem"],
.gsm-v2-modal .gsm-v2-title {
    filter: drop-shadow(0 0 6px rgba(255,210,90,0.7)) drop-shadow(0 2px 12px rgba(200,140,30,0.45));
}
