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

/* ── Layout ─────────────────────────────────────────────── */
.gs-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 28px;
    font-family: inherit;
    color: #e8e8f0;
}

/* ── Header Premium ─────────────────────────────────────── */
.gs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding: 28px 32px;
    background: linear-gradient(135deg, rgba(99,102,241,0.12) 0%, rgba(139,92,246,0.08) 50%, rgba(168,85,247,0.06) 100%);
    border: 1px solid rgba(139,92,246,0.18);
    border-radius: 20px;
    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: -60%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
    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: #f0eef5;
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.gs-header__sub {
    font-size: 0.82rem;
    color: 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: #f0eef5;
    letter-spacing: -0.03em;
}

/* ── KPI Cards Row ──────────────────────────────────────── */
.gs-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.gs-kpi {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.07);
    background: 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: 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: 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;
    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: rgba(200,200,220,0.5);
    font-weight: 500;
}
.gs-store-link__url {
    flex: 1;
    color: #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: rgba(255,255,255,0.025);
    border: 1px solid 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: rgba(139,92,246,0.25);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(139,92,246,0.1);
}

/* ── Card Visual (Thumbnail + Status) ── */
.gs-card__visual {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: 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;
    transform-origin: center center;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.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: 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 {
    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; }
}

/* ── 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__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 4px 0 0;
    color: #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: 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 rgba(255,255,255,0.05);
}
.gs-card__price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #f0eef5;
    letter-spacing: -0.04em;
    line-height: 1;
}
.gs-card__price--free {
    color: #4ade80;
    font-size: 1rem;
}
.gs-card__sales-badge {
    font-size: 0.7rem;
    color: rgba(200,200,220,0.35);
    font-weight: 500;
    padding: 2px 8px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
}
.gs-card__files-badge {
    font-size: 0.7rem;
    color: rgba(200,200,220,0.35);
    font-weight: 500;
    padding: 2px 8px;
    background: 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: rgba(255,255,255,0.06);
    color: 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 rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.12);
    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: rgba(255,255,255,0.06);
    color: rgba(200,200,220,0.7);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 18px;
    font-size: 0.85rem;
}
.gs-btn--ghost-premium:hover {
    background: rgba(255,255,255,0.1);
    color: #e8e8f0;
    border-color: 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: rgba(255,255,255,0.04);
    color: rgba(200,200,220,0.5);
    border: 1px solid rgba(255,255,255,0.07);
}
.gs-btn--unpublish:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(200,200,220,0.7);
    border-color: rgba(255,255,255,0.12);
}

/* Link — subtle */
.gs-btn--link {
    background: rgba(255,255,255,0.04);
    color: rgba(200,200,220,0.5);
    border: 1px solid 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(120deg, rgba(139,92,246,0.08) 0%, rgba(168,85,247,0.06) 100%);
    color: rgba(196,181,253,0.65);
    border: 1px solid rgba(139,92,246,0.12);
}
.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,
.gs-btn--primary {
    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,
.gs-btn--primary: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--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;
    }
    .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.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

/* ── 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;
}

/* ── LEFT: Preview column ── */
.gsm-v2-preview-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #08080f;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.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;
}

.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: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.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.4s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.3s;
}

.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;
}
.gsm-v2-store-link:hover { color: #a5b4fc; }

/* ── RIGHT: Settings column ── */
.gsm-v2-settings-col {
    width: 460px;
    min-width: 420px;
    display: flex;
    flex-direction: column;
    background: #0f0f1a;
}

.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;
}
.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;
}

/* ── 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;
}

.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: flex;
    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-preview-col {
        height: 35vh;
        min-height: 250px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .gsm-v2-settings-col {
        width: 100%;
        min-width: 0;
        flex: 1;
    }
}

@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;
}
