/**
 * CyberSpace Groups — Frontend Stylesheet  v3.0.0
 * Replaces Tailwind CDN with scoped, static utility classes.
 * Every class referenced in plugin templates is defined here.
 *
 * Table of Contents
 * -----------------
 *  0.  CSS Custom Properties
 *  1.  Base / Reset (.csg-wrap scope)
 *  2.  Layout — Position
 *  3.  Layout — Display & Flex / Grid
 *  4.  Layout — Gap & Space
 *  5.  Layout — Overflow & Sizing constraints
 *  6.  Spacing — Padding
 *  7.  Spacing — Margin & Transforms (negative)
 *  8.  Sizing — Width & Height
 *  9.  Typography
 * 10.  Text Colors
 * 11.  Background Colors & Gradients
 * 12.  Borders & Rings
 * 13.  Border Radius
 * 14.  Box Shadows
 * 15.  Opacity
 * 16.  Backdrop & Filters
 * 17.  Transforms & Scale
 * 18.  Transitions
 * 19.  Cursors, Pointer-events, Misc
 * 20.  Accessibility — sr-only
 * 21.  Pseudo-class variants — hover
 * 22.  Pseudo-class variants — focus
 * 23.  Pseudo-class variants — checked / peer-checked
 * 24.  Pseudo-class variants — disabled
 * 25.  Pseudo-class variants — first-child
 * 26.  Pseudo-class variants — group-hover
 * 27.  File-input pseudo-element
 * 28.  Custom Component Classes
 * 29.  Animations
 * 30.  Responsive — sm  (>=640px)
 * 31.  Responsive — md  (>=768px)
 * 32.  Responsive — lg  (>=1024px)
 * 33.  Responsive — xl  (>=1280px)
 * 34.  Admin Panel (.csg-admin-wrap)
 */


/* ================================================================
   0.  CSS Custom Properties
   ================================================================ */
:root {
    --brand-primary:   #7c3aed;   /* violet-600  */
    --brand-secondary: #a78bfa;   /* violet-400  */
    --glass-surface:   rgba(255, 255, 255, 0.7);
    --glass-border:    rgba(255, 255, 255, 0.5);
    --text-main:       #1e293b;
    --text-muted:      #64748b;
}


/* ================================================================
   1.  Base / Reset  (.csg-wrap scope)
   ================================================================ */
.csg-wrap,
.csg-wrap *,
.csg-wrap *::before,
.csg-wrap *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.csg-wrap {
    font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.csg-wrap img {
    display: block;
    max-width: 100%;
    height: auto;
}

.csg-wrap a {
    color: inherit;
    text-decoration: none;
}

.csg-wrap button,
.csg-wrap input,
.csg-wrap select,
.csg-wrap textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}


/* ================================================================
   2.  Layout — Position
   ================================================================ */
.csg-wrap .fixed      { position: fixed; }
.csg-wrap .absolute   { position: absolute; }
.csg-wrap .relative   { position: relative; }
.csg-wrap .sticky     { position: sticky; }

.csg-wrap .inset-0    { top: 0; right: 0; bottom: 0; left: 0; }

.csg-wrap .top-0      { top: 0; }
.csg-wrap .top-4      { top: 1rem; }
.csg-wrap .top-6      { top: 1.5rem; }
.csg-wrap .top-1\/2   { top: 50%; }
.csg-wrap .right-4    { right: 1rem; }
.csg-wrap .right-5    { right: 1.25rem; }
.csg-wrap .right-6    { right: 1.5rem; }
.csg-wrap .left-4     { left: 1rem; }
.csg-wrap .left-5     { left: 1.25rem; }

.csg-wrap .z-10           { z-index: 10; }
.csg-wrap .z-30           { z-index: 30; }
.csg-wrap .z-\[99999\]    { z-index: 99999; }


/* ================================================================
   3.  Layout — Display, Flex & Grid
   ================================================================ */
.csg-wrap .block        { display: block; }
.csg-wrap .hidden       { display: none; }
.csg-wrap .flex         { display: flex; }
.csg-wrap .inline-flex  { display: inline-flex; }
.csg-wrap .grid         { display: grid; }

.csg-wrap .flex-col     { flex-direction: column; }
.csg-wrap .flex-row     { flex-direction: row; }
.csg-wrap .flex-1       { flex: 1 1 0%; }
.csg-wrap .flex-wrap    { flex-wrap: wrap; }
.csg-wrap .shrink-0     { flex-shrink: 0; }

.csg-wrap .items-center { align-items: center; }
.csg-wrap .items-start  { align-items: flex-start; }
.csg-wrap .items-end    { align-items: flex-end; }

.csg-wrap .justify-center  { justify-content: center; }
.csg-wrap .justify-between { justify-content: space-between; }

.csg-wrap .grid-cols-1  { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.csg-wrap .grid-cols-2  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.csg-wrap .grid-cols-3  { grid-template-columns: repeat(3, minmax(0, 1fr)); }


/* ================================================================
   4.  Layout — Gap & Space
   ================================================================ */
.csg-wrap .gap-2   { gap: 0.5rem; }
.csg-wrap .gap-3   { gap: 0.75rem; }
.csg-wrap .gap-4   { gap: 1rem; }
.csg-wrap .gap-5   { gap: 1.25rem; }
.csg-wrap .gap-6   { gap: 1.5rem; }
.csg-wrap .gap-8   { gap: 2rem; }
.csg-wrap .gap-10  { gap: 2.5rem; }

.csg-wrap .space-y-3 > * + *   { margin-top: 0.75rem; }
.csg-wrap .space-y-4 > * + *   { margin-top: 1rem; }
.csg-wrap .space-y-5 > * + *   { margin-top: 1.25rem; }
.csg-wrap .space-y-6 > * + *   { margin-top: 1.5rem; }
.csg-wrap .space-y-8 > * + *   { margin-top: 2rem; }
.csg-wrap .space-y-10 > * + *  { margin-top: 2.5rem; }


/* ================================================================
   5.  Layout — Overflow & Sizing constraints
   ================================================================ */
.csg-wrap .overflow-hidden  { overflow: hidden; }
.csg-wrap .overflow-y-auto  { overflow-y: auto; }

.csg-wrap .min-h-screen         { min-height: 100vh; }
.csg-wrap .min-h-\[3\.25rem\]   { min-height: 3.25rem; }

.csg-wrap .max-w-md             { max-width: 28rem; }
.csg-wrap .max-w-lg             { max-width: 32rem; }
.csg-wrap .max-w-2xl            { max-width: 42rem; }
.csg-wrap .max-w-3xl            { max-width: 48rem; }
.csg-wrap .max-w-4xl            { max-width: 56rem; }
.csg-wrap .max-w-\[1300px\]     { max-width: 1300px; }
.csg-wrap .max-w-\[280px\]      { max-width: 280px; }

.csg-wrap .max-h-\[90vh\]       { max-height: 90vh; }


/* ================================================================
   6.  Spacing — Padding
   ================================================================ */
.csg-wrap .p-1     { padding: 0.25rem; }
.csg-wrap .p-1\.5  { padding: 0.375rem; }
.csg-wrap .p-2     { padding: 0.5rem; }
.csg-wrap .p-3     { padding: 0.75rem; }
.csg-wrap .p-4     { padding: 1rem; }
.csg-wrap .p-5     { padding: 1.25rem; }
.csg-wrap .p-6     { padding: 1.5rem; }
.csg-wrap .p-8     { padding: 2rem; }
.csg-wrap .p-10    { padding: 2.5rem; }
.csg-wrap .p-12    { padding: 3rem; }

.csg-wrap .px-3    { padding-left: 0.75rem; padding-right: 0.75rem; }
.csg-wrap .px-4    { padding-left: 1rem;    padding-right: 1rem; }
.csg-wrap .px-5    { padding-left: 1.25rem; padding-right: 1.25rem; }
.csg-wrap .px-6    { padding-left: 1.5rem;  padding-right: 1.5rem; }
.csg-wrap .px-8    { padding-left: 2rem;    padding-right: 2rem; }
.csg-wrap .px-14   { padding-left: 3.5rem;  padding-right: 3.5rem; }

.csg-wrap .py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.csg-wrap .py-2    { padding-top: 0.5rem;   padding-bottom: 0.5rem; }
.csg-wrap .py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.csg-wrap .py-3    { padding-top: 0.75rem;  padding-bottom: 0.75rem; }
.csg-wrap .py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.csg-wrap .py-4    { padding-top: 1rem;     padding-bottom: 1rem; }
.csg-wrap .py-5    { padding-top: 1.25rem;  padding-bottom: 1.25rem; }
.csg-wrap .py-12   { padding-top: 3rem;     padding-bottom: 3rem; }
.csg-wrap .py-16   { padding-top: 4rem;     padding-bottom: 4rem; }

.csg-wrap .pl-2    { padding-left: 0.5rem; }
.csg-wrap .pl-5    { padding-left: 1.25rem; }
.csg-wrap .pl-6    { padding-left: 1.5rem; }
.csg-wrap .pl-14   { padding-left: 3.5rem; }
.csg-wrap .pr-6    { padding-right: 1.5rem; }
.csg-wrap .pr-8    { padding-right: 2rem; }
.csg-wrap .pt-0    { padding-top: 0; }
.csg-wrap .pt-5    { padding-top: 1.25rem; }
.csg-wrap .pb-6    { padding-bottom: 1.5rem; }
.csg-wrap .pb-20   { padding-bottom: 5rem; }


/* ================================================================
   7.  Spacing — Margin & Negative transforms
   ================================================================ */
.csg-wrap .m-0      { margin: 0; }
.csg-wrap .mx-auto  { margin-left: auto; margin-right: auto; }
.csg-wrap .mx-4     { margin-left: 1rem; margin-right: 1rem; }
.csg-wrap .my-10    { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.csg-wrap .my-12    { margin-top: 3rem;   margin-bottom: 3rem; }

.csg-wrap .mb-1     { margin-bottom: 0.25rem; }
.csg-wrap .mb-2     { margin-bottom: 0.5rem; }
.csg-wrap .mb-3     { margin-bottom: 0.75rem; }
.csg-wrap .mb-4     { margin-bottom: 1rem; }
.csg-wrap .mb-5     { margin-bottom: 1.25rem; }
.csg-wrap .mb-6     { margin-bottom: 1.5rem; }
.csg-wrap .mb-8     { margin-bottom: 2rem; }
.csg-wrap .mb-10    { margin-bottom: 2.5rem; }
.csg-wrap .mb-16    { margin-bottom: 4rem; }

.csg-wrap .mt-2     { margin-top: 0.5rem; }
.csg-wrap .mt-3     { margin-top: 0.75rem; }
.csg-wrap .mt-5     { margin-top: 1.25rem; }
.csg-wrap .mt-auto  { margin-top: auto; }

.csg-wrap .-mt-12                { margin-top: -3rem; }
.csg-wrap .-ml-3                 { margin-left: -0.75rem; }
.csg-wrap .-translate-y-1\/2     { transform: translateY(-50%); }
.csg-wrap .-translate-y-0\.5     { transform: translateY(-0.125rem); }
.csg-wrap .-translate-y-1        { transform: translateY(-0.25rem); }


/* ================================================================
   8.  Sizing — Width & Height
   ================================================================ */
.csg-wrap .w-3       { width: 0.75rem; }
.csg-wrap .w-3\.5    { width: 0.875rem; }
.csg-wrap .w-4       { width: 1rem; }
.csg-wrap .w-5       { width: 1.25rem; }
.csg-wrap .w-6       { width: 1.5rem; }
.csg-wrap .w-8       { width: 2rem; }
.csg-wrap .w-10      { width: 2.5rem; }
.csg-wrap .w-12      { width: 3rem; }
.csg-wrap .w-14      { width: 3.5rem; }
.csg-wrap .w-16      { width: 4rem; }
.csg-wrap .w-20      { width: 5rem; }
.csg-wrap .w-32      { width: 8rem; }
.csg-wrap .w-full    { width: 100%; }
.csg-wrap .w-\[88px\]{ width: 88px; }

.csg-wrap .h-3       { height: 0.75rem; }
.csg-wrap .h-3\.5    { height: 0.875rem; }
.csg-wrap .h-4       { height: 1rem; }
.csg-wrap .h-5       { height: 1.25rem; }
.csg-wrap .h-6       { height: 1.5rem; }
.csg-wrap .h-8       { height: 2rem; }
.csg-wrap .h-10      { height: 2.5rem; }
.csg-wrap .h-12      { height: 3rem; }
.csg-wrap .h-14      { height: 3.5rem; }
.csg-wrap .h-16      { height: 4rem; }
.csg-wrap .h-32      { height: 8rem; }
.csg-wrap .h-40      { height: 10rem; }
.csg-wrap .h-60      { height: 15rem; }
.csg-wrap .h-64      { height: 16rem; }
.csg-wrap .h-\[58px\]   { height: 58px; }
.csg-wrap .h-\[400px\]  { height: 400px; }
.csg-wrap .h-full    { height: 100%; }


/* ================================================================
   9.  Typography
   ================================================================ */
.csg-wrap .text-\[10px\] { font-size: 10px; line-height: 1.4; }
.csg-wrap .text-\[11px\] { font-size: 11px; line-height: 1.4; }
.csg-wrap .text-xs       { font-size: 0.75rem;  line-height: 1rem; }
.csg-wrap .text-sm       { font-size: 0.875rem; line-height: 1.25rem; }
.csg-wrap .text-base     { font-size: 1rem;     line-height: 1.5rem; }
.csg-wrap .text-lg       { font-size: 1.125rem; line-height: 1.75rem; }
.csg-wrap .text-xl       { font-size: 1.25rem;  line-height: 1.75rem; }
.csg-wrap .text-2xl      { font-size: 1.5rem;   line-height: 2rem; }
.csg-wrap .text-3xl      { font-size: 1.875rem; line-height: 2.25rem; }
.csg-wrap .text-4xl      { font-size: 2.25rem;  line-height: 2.5rem; }

.csg-wrap .font-light    { font-weight: 300; }
.csg-wrap .font-normal   { font-weight: 400; }
.csg-wrap .font-medium   { font-weight: 500; }
.csg-wrap .font-semibold { font-weight: 600; }
.csg-wrap .font-bold     { font-weight: 700; }

.csg-wrap .leading-snug    { line-height: 1.375; }
.csg-wrap .leading-tight   { line-height: 1.25; }
.csg-wrap .leading-relaxed { line-height: 1.625; }

.csg-wrap .tracking-tight   { letter-spacing: -0.025em; }
.csg-wrap .tracking-wide    { letter-spacing: 0.025em; }
.csg-wrap .tracking-wider   { letter-spacing: 0.05em; }
.csg-wrap .tracking-widest  { letter-spacing: 0.1em; }

.csg-wrap .uppercase     { text-transform: uppercase; }
.csg-wrap .text-center   { text-align: center; }
.csg-wrap .text-balanced { text-wrap: balance; }

.csg-wrap .line-clamp-2  {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.csg-wrap .underline           { text-decoration-line: underline; }
.csg-wrap .underline-offset-2  { text-underline-offset: 2px; }

.csg-wrap .placeholder-slate-300::placeholder { color: #cbd5e1; }
.csg-wrap .placeholder-slate-400::placeholder { color: #94a3b8; }

.csg-wrap .resize-none { resize: none; }


/* ================================================================
   10.  Text Colors
   ================================================================ */
.csg-wrap .text-white       { color: #ffffff; }

.csg-wrap .text-slate-300   { color: #cbd5e1; }
.csg-wrap .text-slate-400   { color: #94a3b8; }
.csg-wrap .text-slate-500   { color: #64748b; }
.csg-wrap .text-slate-600   { color: #475569; }
.csg-wrap .text-slate-700   { color: #334155; }
.csg-wrap .text-slate-800   { color: #1e293b; }
.csg-wrap .text-slate-900   { color: #0f172a; }

.csg-wrap .text-violet-500  { color: #8b5cf6; }
.csg-wrap .text-violet-600  { color: #7c3aed; }
.csg-wrap .text-violet-700  { color: #6d28d9; }

.csg-wrap .text-emerald-500 { color: #10b981; }
.csg-wrap .text-emerald-600 { color: #059669; }

.csg-wrap .text-amber-600   { color: #d97706; }

.csg-wrap .text-red-700     { color: #b91c1c; }

.csg-wrap .text-transparent { color: transparent; }


/* ================================================================
   11.  Background Colors & Gradients
   ================================================================ */
.csg-wrap .bg-white       { background-color: #ffffff; }
.csg-wrap .bg-slate-50    { background-color: #f8fafc; }
.csg-wrap .bg-slate-200   { background-color: #e2e8f0; }
.csg-wrap .bg-slate-800   { background-color: #1e293b; }
.csg-wrap .bg-slate-900   { background-color: #0f172a; }

.csg-wrap .bg-violet-50   { background-color: #f5f3ff; }
.csg-wrap .bg-violet-600  { background-color: #7c3aed; }
.csg-wrap .bg-violet-700  { background-color: #6d28d9; }

.csg-wrap .bg-emerald-50  { background-color: #ecfdf5; }
.csg-wrap .bg-emerald-500 { background-color: #10b981; }
.csg-wrap .bg-emerald-600 { background-color: #059669; }

.csg-wrap .bg-amber-50    { background-color: #fffbeb; }

.csg-wrap .bg-red-50      { background-color: #fef2f2; }
.csg-wrap .bg-red-500     { background-color: #ef4444; }
.csg-wrap .bg-red-600     { background-color: #dc2626; }

.csg-wrap .bg-green-50    { background-color: #f0fdf4; }
.csg-wrap .bg-green-100   { background-color: #dcfce7; }
.csg-wrap .bg-green-600   { background-color: #16a34a; }

/* Alpha white/black overlays */
.csg-wrap .bg-white\/30   { background-color: rgba(255, 255, 255, 0.3); }
.csg-wrap .bg-white\/50   { background-color: rgba(255, 255, 255, 0.5); }
.csg-wrap .bg-white\/60   { background-color: rgba(255, 255, 255, 0.6); }
.csg-wrap .bg-white\/80   { background-color: rgba(255, 255, 255, 0.8); }
.csg-wrap .bg-white\/90   { background-color: rgba(255, 255, 255, 0.9); }
.csg-wrap .bg-black\/40   { background-color: rgba(0, 0, 0, 0.4); }

/* Gradients */
.csg-wrap .bg-gradient-to-r  { background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to)); }
.csg-wrap .bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to)); }

.csg-wrap .from-violet-50    { --tw-gradient-from: #f5f3ff; --tw-gradient-to: rgba(245, 243, 255, 0); }
.csg-wrap .from-violet-600   { --tw-gradient-from: #7c3aed; --tw-gradient-to: rgba(124, 58, 237, 0); }

.csg-wrap .to-white           { --tw-gradient-to: #ffffff; }
.csg-wrap .to-indigo-500      { --tw-gradient-to: #6366f1; }
.csg-wrap .to-indigo-600      { --tw-gradient-to: #4f46e5; }

.csg-wrap .bg-clip-text       { -webkit-background-clip: text; background-clip: text; }


/* ================================================================
   12.  Borders & Rings
   ================================================================ */
.csg-wrap .border     { border-width: 1px; border-style: solid; }
.csg-wrap .border-t   { border-top-width: 1px; border-top-style: solid; }
.csg-wrap .border-l   { border-left-width: 1px; border-left-style: solid; }
.csg-wrap .border-b   { border-bottom-width: 1px; border-bottom-style: solid; }

.csg-wrap .border-dashed { border-style: dashed; }

.csg-wrap .border-transparent   { border-color: transparent; }
.csg-wrap .border-slate-100     { border-color: #f1f5f9; }
.csg-wrap .border-slate-200     { border-color: #e2e8f0; }
.csg-wrap .border-slate-300     { border-color: #cbd5e1; }

.csg-wrap .border-violet-100    { border-color: #ede9fe; }
.csg-wrap .border-violet-200    { border-color: #ddd6fe; }
.csg-wrap .border-violet-300    { border-color: #c4b5fd; }
.csg-wrap .border-violet-500    { border-color: #8b5cf6; }
.csg-wrap .border-violet-600    { border-color: #7c3aed; }

.csg-wrap .border-emerald-100   { border-color: #d1fae5; }
.csg-wrap .border-emerald-500   { border-color: #10b981; }

.csg-wrap .border-red-100       { border-color: #fee2e2; }

.csg-wrap .border-white         { border-color: #ffffff; }
.csg-wrap .border-white\/50     { border-color: rgba(255, 255, 255, 0.5); }

/* Rings */
.csg-wrap .ring-1           { box-shadow: 0 0 0 1px var(--tw-ring-color, rgba(59, 130, 246, 0.5)); }
.csg-wrap .ring-2           { box-shadow: 0 0 0 2px var(--tw-ring-color, rgba(59, 130, 246, 0.5)); }
.csg-wrap .ring-4           { box-shadow: 0 0 0 4px var(--tw-ring-color, rgba(59, 130, 246, 0.5)); }
.csg-wrap .ring-white       { --tw-ring-color: #ffffff; }
.csg-wrap .ring-violet-500  { --tw-ring-color: #8b5cf6; }


/* ================================================================
   13.  Border Radius
   ================================================================ */
.csg-wrap .rounded-md    { border-radius: 0.375rem; }
.csg-wrap .rounded-lg    { border-radius: 0.5rem; }
.csg-wrap .rounded-xl    { border-radius: 0.75rem; }
.csg-wrap .rounded-2xl   { border-radius: 1rem; }
.csg-wrap .rounded-3xl   { border-radius: 1.5rem; }
.csg-wrap .rounded-full  { border-radius: 9999px; }

.csg-wrap .rounded-\[16px\] { border-radius: 16px; }
.csg-wrap .rounded-\[20px\] { border-radius: 20px; }
.csg-wrap .rounded-\[24px\] { border-radius: 24px; }
.csg-wrap .rounded-\[32px\] { border-radius: 32px; }


/* ================================================================
   14.  Box Shadows
   ================================================================ */
.csg-wrap .shadow-sm   { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.csg-wrap .shadow-lg   { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.csg-wrap .shadow-xl   { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
.csg-wrap .shadow-2xl  { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* Custom shadows */
.csg-wrap .shadow-soft  { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04); }
.csg-wrap .shadow-hover { box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08); }

/* Arbitrary shadow values */
.csg-wrap .shadow-\[0_10px_20px_-5px_rgba\(124\,58\,237\,0\.3\)\]   { box-shadow: 0 10px 20px -5px rgba(124, 58, 237, 0.3); }
.csg-wrap .shadow-\[0_10px_25px_-5px_rgba\(124\,58\,237\,0\.4\)\]   { box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.4); }
.csg-wrap .shadow-\[0_4px_20px_rgba\(0\,0\,0\,0\.03\)\]             { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03); }
.csg-wrap .shadow-\[0_40px_100px_-20px_rgba\(0\,0\,0\,0\.1\)\]      { box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.1); }
.csg-wrap .shadow-\[0_20px_40px_-12px_rgba\(0\,0\,0\,0\.06\)\]      { box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.06); }

/* Colored shadows */
.csg-wrap .shadow-violet-200   { --tw-shadow-color: #ddd6fe; box-shadow: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); }
.csg-wrap .shadow-emerald-200  { --tw-shadow-color: #a7f3d0; box-shadow: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); }
.csg-wrap .shadow-slate-200    { --tw-shadow-color: #e2e8f0; box-shadow: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); }


/* ================================================================
   15.  Opacity
   ================================================================ */
.csg-wrap .opacity-0    { opacity: 0; }
.csg-wrap .opacity-50   { opacity: 0.5; }
.csg-wrap .opacity-70   { opacity: 0.7; }
.csg-wrap .opacity-100  { opacity: 1; }


/* ================================================================
   16.  Backdrop & Filters
   ================================================================ */
.csg-wrap .backdrop-blur-md { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.csg-wrap .backdrop-blur-xl { -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }


/* ================================================================
   17.  Transforms & Scale
   ================================================================ */
.csg-wrap .transform            { transform: var(--tw-transform); }
.csg-wrap .translate-x-full     { transform: translateX(100%); }
.csg-wrap .-translate-y-1\/2    { transform: translateY(-50%); }

.csg-wrap .scale-95             { transform: scale(0.95); }
.csg-wrap .scale-100            { transform: scale(1); }
.csg-wrap .scale-\[1\.01\]      { transform: scale(1.01); }
.csg-wrap .scale-\[0\.99\]      { transform: scale(0.99); }


/* ================================================================
   18.  Transitions
   ================================================================ */
.csg-wrap .transition-all       { transition-property: all;              transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.csg-wrap .transition-colors    { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.csg-wrap .transition-opacity   { transition-property: opacity;          transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.csg-wrap .transition-transform { transition-property: transform;        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.csg-wrap .duration-200 { transition-duration: 200ms; }
.csg-wrap .duration-300 { transition-duration: 300ms; }
.csg-wrap .duration-500 { transition-duration: 500ms; }


/* ================================================================
   19.  Cursors, Pointer-events, Misc
   ================================================================ */
.csg-wrap .cursor-pointer      { cursor: pointer; }
.csg-wrap .cursor-not-allowed  { cursor: not-allowed; }
.csg-wrap .cursor-help         { cursor: help; }

.csg-wrap .select-none         { -webkit-user-select: none; user-select: none; }
.csg-wrap .pointer-events-none { pointer-events: none; }

.csg-wrap .outline-none        { outline: 2px solid transparent; outline-offset: 2px; }
.csg-wrap .appearance-none     { -webkit-appearance: none; -moz-appearance: none; appearance: none; }


/* ================================================================
   20.  Accessibility — sr-only
   ================================================================ */
.csg-wrap .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}


/* ================================================================
   21.  Pseudo-class variants — hover:
   ================================================================ */
.csg-wrap .hover\:scale-110:hover         { transform: scale(1.1); }

.csg-wrap .hover\:bg-violet-700:hover     { background-color: #6d28d9; }
.csg-wrap .hover\:bg-violet-50:hover      { background-color: #f5f3ff; }
.csg-wrap .hover\:bg-red-600:hover        { background-color: #dc2626; }
.csg-wrap .hover\:bg-red-700:hover        { background-color: #b91c1c; }
.csg-wrap .hover\:bg-emerald-600:hover    { background-color: #059669; }
.csg-wrap .hover\:bg-emerald-700:hover    { background-color: #047857; }
.csg-wrap .hover\:bg-slate-50:hover       { background-color: #f8fafc; }
.csg-wrap .hover\:bg-slate-100:hover      { background-color: #f1f5f9; }
.csg-wrap .hover\:bg-white\/80:hover      { background-color: rgba(255, 255, 255, 0.8); }
.csg-wrap .hover\:bg-white\/90:hover      { background-color: rgba(255, 255, 255, 0.9); }
.csg-wrap .hover\:bg-green-700:hover      { background-color: #15803d; }

.csg-wrap .hover\:text-violet-600:hover   { color: #7c3aed; }
.csg-wrap .hover\:text-violet-700:hover   { color: #6d28d9; }
.csg-wrap .hover\:text-slate-900:hover    { color: #0f172a; }
.csg-wrap .hover\:text-white:hover        { color: #ffffff; }

.csg-wrap .hover\:border-violet-300:hover { border-color: #c4b5fd; }
.csg-wrap .hover\:border-violet-500:hover { border-color: #8b5cf6; }
.csg-wrap .hover\:border-slate-300:hover  { border-color: #cbd5e1; }

.csg-wrap .hover\:shadow-lg:hover         { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.csg-wrap .hover\:shadow-xl:hover         { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
.csg-wrap .hover\:shadow-hover:hover      { box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08); }

.csg-wrap .hover\:shadow-\[0_10px_25px_-5px_rgba\(124\,58\,237\,0\.4\)\]:hover {
    box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.4);
}

.csg-wrap .hover\:ring-2:hover            { box-shadow: 0 0 0 2px var(--tw-ring-color, rgba(59, 130, 246, 0.5)); }
.csg-wrap .hover\:ring-violet-500:hover   { --tw-ring-color: #8b5cf6; }

.csg-wrap .hover\:underline:hover         { text-decoration-line: underline; }
.csg-wrap .hover\:opacity-100:hover       { opacity: 1; }

.csg-wrap .hover\:scale-\[1\.01\]:hover   { transform: scale(1.01); }
.csg-wrap .hover\:-translate-y-1:hover     { transform: translateY(-0.25rem); }
.csg-wrap .hover\:-translate-y-0\.5:hover  { transform: translateY(-0.125rem); }


/* ================================================================
   22.  Pseudo-class variants — focus:
   ================================================================ */
.csg-wrap .focus\:outline-none:focus       { outline: 2px solid transparent; outline-offset: 2px; }
.csg-wrap .focus\:ring-2:focus             { box-shadow: 0 0 0 2px var(--tw-ring-color, rgba(59, 130, 246, 0.5)); }
.csg-wrap .focus\:ring-violet-500:focus    { --tw-ring-color: #8b5cf6; }
.csg-wrap .focus\:border-violet-500:focus  { border-color: #8b5cf6; }
.csg-wrap .focus\:border-violet-400:focus  { border-color: #a78bfa; }
.csg-wrap .focus\:border-transparent:focus { border-color: transparent; }

.csg-wrap .focus\:bg-white:focus           { background-color: #ffffff; }
.csg-wrap .focus\:shadow-\[0_0_0_3px_rgba\(124\,58\,237\,0\.15\)\]:focus {
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}


/* ================================================================
   23.  Pseudo-class variants — checked / peer-checked
   ================================================================ */

/* Generic checked state */
.csg-wrap .checked\:bg-violet-600:checked          { background-color: #7c3aed; }
.csg-wrap .checked\:border-violet-600:checked       { border-color: #7c3aed; }

/* peer-checked: When a sibling (input) with class "peer" is :checked */
.csg-wrap .peer:checked ~ .peer-checked\:bg-violet-600 { background-color: #7c3aed; }
.csg-wrap .peer:checked ~ .peer-checked\:translate-x-full { transform: translateX(100%); }
.csg-wrap .peer:checked ~ .peer-checked\:translate-x-5 { transform: translateX(1.25rem); }
.csg-wrap .peer:checked ~ .peer-checked\:border-violet-600 { border-color: #7c3aed; }
.csg-wrap .peer:checked ~ .peer-checked\:text-white { color: #ffffff; }
.csg-wrap .peer:checked ~ .peer-checked\:ring-violet-500 { --tw-ring-color: #8b5cf6; box-shadow: 0 0 0 2px var(--tw-ring-color); }


/* ================================================================
   24.  Pseudo-class variants — disabled:
   ================================================================ */
.csg-wrap .disabled\:opacity-50:disabled       { opacity: 0.5; }
.csg-wrap .disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }
.csg-wrap .disabled\:bg-slate-200:disabled       { background-color: #e2e8f0; }
.csg-wrap .disabled\:text-slate-400:disabled     { color: #94a3b8; }


/* ================================================================
   25.  Pseudo-class variants — first-child
   ================================================================ */
.csg-wrap .first\:ml-0:first-child { margin-left: 0; }


/* ================================================================
   26.  Pseudo-class variants — group-hover
   ================================================================ */
.csg-wrap .group:hover .group-hover\:text-violet-600  { color: #7c3aed; }
.csg-wrap .group:hover .group-hover\:opacity-100       { opacity: 1; }
.csg-wrap .group:hover .group-hover\:scale-110         { transform: scale(1.1); }
.csg-wrap .group:hover .group-hover\:shadow-xl         { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
.csg-wrap .group:hover .group-hover\:-translate-y-1    { transform: translateY(-0.25rem); }
.csg-wrap .group:hover .group-hover\:border-violet-300 { border-color: #c4b5fd; }
.csg-wrap .group:hover .group-hover\:bg-violet-50      { background-color: #f5f3ff; }
.csg-wrap .group:hover .group-hover\:underline         { text-decoration-line: underline; }


/* ================================================================
   27.  File-input pseudo-element
   ================================================================ */
.csg-wrap .file\:mr-4::file-selector-button   { margin-right: 1rem; }
.csg-wrap .file\:py-2::file-selector-button    { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.csg-wrap .file\:px-4::file-selector-button    { padding-left: 1rem; padding-right: 1rem; }
.csg-wrap .file\:rounded-lg::file-selector-button { border-radius: 0.5rem; }
.csg-wrap .file\:border-0::file-selector-button   { border-width: 0; }
.csg-wrap .file\:bg-violet-50::file-selector-button  { background-color: #f5f3ff; }
.csg-wrap .file\:text-violet-600::file-selector-button { color: #7c3aed; }
.csg-wrap .file\:font-medium::file-selector-button { font-weight: 500; }
.csg-wrap .file\:cursor-pointer::file-selector-button { cursor: pointer; }
.csg-wrap .file\:transition-colors::file-selector-button {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.csg-wrap .file\:hover\:bg-violet-100::file-selector-button:hover { background-color: #ede9fe; }


/* ================================================================
   28.  Custom Component Classes
   ================================================================ */

/* Wrapper / Font family */
.cs-wrapper,
.csg-wrap,
.cs-font {
    font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* Glass panel — primary glass morphism */
.csg-wrap .glass-panel {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-radius: 1rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

/* Glass card variants */
.csg-wrap .cs-glass,
.csg-wrap .cs-glass-card {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.csg-wrap .cs-glass-card:hover {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Input — standard */
.csg-wrap .cs-input,
.csg-wrap .cs-modern-input {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--text-main);
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

.csg-wrap .cs-input:focus,
.csg-wrap .cs-modern-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.csg-wrap .cs-input::placeholder,
.csg-wrap .cs-modern-input::placeholder {
    color: #94a3b8;
}

/* Toggle switch */
.csg-wrap .cs-toggle-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.csg-wrap .cs-toggle-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 2.75rem;
    height: 1.5rem;
    background-color: #e2e8f0;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.csg-wrap .cs-toggle-label::after {
    content: '';
    position: absolute;
    left: 2px;
    width: 1.25rem;
    height: 1.25rem;
    background-color: #ffffff;
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.csg-wrap .cs-toggle-checkbox:checked + .cs-toggle-label {
    background-color: var(--brand-primary);
}

.csg-wrap .cs-toggle-checkbox:checked + .cs-toggle-label::after {
    transform: translateX(1.25rem);
}


/* ================================================================
   29.  Animations
   ================================================================ */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.csg-wrap .animate-fade-in-down {
    animation: fadeInDown 0.4s ease-out both;
}

/* Utility for body overflow lock (modals) */
body.overflow-hidden {
    overflow: hidden;
}


/* ================================================================
   30.  Responsive — sm (>=640px)
   ================================================================ */
@media (min-width: 640px) {
    .csg-wrap .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ================================================================
   31.  Responsive — md (>=768px)
   ================================================================ */
@media (min-width: 768px) {
    .csg-wrap .md\:flex-row       { flex-direction: row; }
    .csg-wrap .md\:grid-cols-2    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .csg-wrap .md\:grid-cols-3    { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .csg-wrap .md\:w-auto         { width: auto; }
    .csg-wrap .md\:w-72           { width: 18rem; }
    .csg-wrap .md\:flex-none      { flex: none; }
    .csg-wrap .md\:inline-flex    { display: inline-flex; }
    .csg-wrap .md\:text-5xl       { font-size: 3rem; line-height: 1; }
    .csg-wrap .md\:py-20          { padding-top: 5rem; padding-bottom: 5rem; }
    .csg-wrap .md\:p-12           { padding: 3rem; }
    .csg-wrap .md\:border-t-0     { border-top-width: 0; }
    .csg-wrap .md\:border-l       { border-left-width: 1px; border-left-style: solid; }
}


/* ================================================================
   32.  Responsive — lg (>=1024px)
   ================================================================ */
@media (min-width: 1024px) {
    .csg-wrap .lg\:flex-row       { flex-direction: row; }
    .csg-wrap .lg\:items-end      { align-items: flex-end; }
    .csg-wrap .lg\:grid-cols-3    { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* ================================================================
   33.  Responsive — xl (>=1280px)
   ================================================================ */
@media (min-width: 1280px) {
    .csg-wrap .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


/* ================================================================
   34.  Admin Panel  (.csg-admin-wrap)
   ================================================================ */

/* Wrapper */
.csg-admin-wrap {
    font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, sans-serif;
    color: #1e293b;
    padding: 20px;
    max-width: 1400px;
}

.csg-admin-wrap *,
.csg-admin-wrap *::before,
.csg-admin-wrap *::after {
    box-sizing: border-box;
}

/* Page heading */
.csg-admin-wrap .csg-admin-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

/* Dashboard cards row */
.csg-admin-wrap .csg-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

/* Single stat widget card */
.csg-admin-wrap .csg-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.csg-admin-wrap .csg-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.csg-admin-wrap .csg-stat-card .csg-stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.375rem;
}

.csg-admin-wrap .csg-stat-card .csg-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.csg-admin-wrap .csg-stat-card .csg-stat-sub {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

/* Stat card color accents */
.csg-admin-wrap .csg-stat-card--violet {
    border-left: 4px solid #7c3aed;
}

.csg-admin-wrap .csg-stat-card--emerald {
    border-left: 4px solid #10b981;
}

.csg-admin-wrap .csg-stat-card--amber {
    border-left: 4px solid #f59e0b;
}

.csg-admin-wrap .csg-stat-card--red {
    border-left: 4px solid #ef4444;
}

/* Section panels */
.csg-admin-wrap .csg-admin-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.csg-admin-wrap .csg-admin-panel-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

/* Tables — consistent with WP admin aesthetic */
.csg-admin-wrap .csg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.csg-admin-wrap .csg-table thead th {
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.csg-admin-wrap .csg-table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.csg-admin-wrap .csg-table tbody tr:last-child td {
    border-bottom: none;
}

.csg-admin-wrap .csg-table tbody tr:hover td {
    background-color: #f8fafc;
}

/* Status badges inside tables */
.csg-admin-wrap .csg-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.625rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 9999px;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    line-height: 1.4;
}

.csg-admin-wrap .csg-badge--success {
    background-color: #ecfdf5;
    color: #059669;
}

.csg-admin-wrap .csg-badge--warning {
    background-color: #fffbeb;
    color: #d97706;
}

.csg-admin-wrap .csg-badge--danger {
    background-color: #fef2f2;
    color: #dc2626;
}

.csg-admin-wrap .csg-badge--info {
    background-color: #f5f3ff;
    color: #7c3aed;
}

/* Buttons in admin */
.csg-admin-wrap .csg-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1.4;
    text-decoration: none;
}

.csg-admin-wrap .csg-btn--primary {
    background-color: #7c3aed;
    color: #ffffff;
    border-color: #7c3aed;
}

.csg-admin-wrap .csg-btn--primary:hover {
    background-color: #6d28d9;
    border-color: #6d28d9;
}

.csg-admin-wrap .csg-btn--secondary {
    background-color: #ffffff;
    color: #334155;
    border-color: #e2e8f0;
}

.csg-admin-wrap .csg-btn--secondary:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.csg-admin-wrap .csg-btn--danger {
    background-color: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

.csg-admin-wrap .csg-btn--danger:hover {
    background-color: #dc2626;
    border-color: #dc2626;
}

.csg-admin-wrap .csg-btn--sm {
    padding: 0.325rem 0.75rem;
    font-size: 0.75rem;
}

/* Chart container */
.csg-admin-wrap .csg-chart-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.csg-admin-wrap .csg-chart-container canvas {
    max-width: 100%;
    height: auto !important;
}

/* Admin form elements */
.csg-admin-wrap .csg-admin-input {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #1e293b;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.csg-admin-wrap .csg-admin-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15);
}

.csg-admin-wrap .csg-admin-select {
    display: block;
    width: 100%;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #1e293b;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8.825L.35 3.175l.7-.7L6 7.425l4.95-4.95.7.7z'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.csg-admin-wrap .csg-admin-select:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15);
}

/* Admin pagination */
.csg-admin-wrap .csg-pagination {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 1rem;
}

.csg-admin-wrap .csg-pagination a,
.csg-admin-wrap .csg-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    font-size: 0.8125rem;
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0;
    color: #334155;
    text-decoration: none;
    transition: all 0.15s ease;
}

.csg-admin-wrap .csg-pagination a:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.csg-admin-wrap .csg-pagination .current {
    background-color: #7c3aed;
    color: #ffffff;
    border-color: #7c3aed;
}

/* Admin notice banners */
.csg-admin-wrap .csg-notice {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.csg-admin-wrap .csg-notice--success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.csg-admin-wrap .csg-notice--error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.csg-admin-wrap .csg-notice--info {
    background-color: #f5f3ff;
    color: #5b21b6;
    border: 1px solid #ddd6fe;
}

/* ================================================================
   35.  NEW Component Classes (Templates)
   ================================================================ */

/* --- DIRECTORY --- */

.csg-wrap.csg-wrap {
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
    color: #475569;
    max-width: 1300px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

/* Header */
.csg-header {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
}
@media (min-width: 1024px) {
    .csg-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}
.csg-header-text { max-width: 40rem; }
.csg-title {
    font-size: 2.25rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
}
@media (min-width: 768px) { .csg-title { font-size: 3rem; } }
.csg-title-accent {
    background: linear-gradient(to right, #7c3aed, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.csg-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
}

/* Nav tabs */
.csg-nav-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.375rem;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.csg-nav-tab {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.csg-nav-tab:hover { color: #334155; background: rgba(241,245,249,0.5); }
.csg-nav-tab--active { background: #f5f3ff; color: #7c3aed; font-weight: 600; }

/* Filters Bar */
.csg-filters {
    position: sticky;
    top: 1.5rem;
    z-index: 30;
    margin-bottom: 3rem;
    padding: 0.75rem;
    border-radius: 1.25rem;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}
@media (min-width: 768px) { .csg-filters { flex-direction: row; justify-content: space-between; } }

.csg-search-wrap {
    position: relative;
    width: 100%;
    max-width: 28rem;
    flex: 1;
}
.csg-search-icon {
    width: 1.25rem;
    height: 1.25rem;
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #cbd5e1;
    transition: color 0.2s;
}
.csg-search-wrap:focus-within .csg-search-icon { color: #8b5cf6; }
.csg-search-input {
    width: 100%;
    padding: 0.875rem 1.5rem 0.875rem 3.5rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    background: #f8fafc;
    border: 1px solid transparent;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}
.csg-search-input:focus {
    background: #fff;
    border-color: #ddd6fe;
    box-shadow: 0 0 0 4px rgba(124,58,237,0.05);
}
.csg-search-input::placeholder { color: #94a3b8; }

.csg-filter-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    flex-wrap: wrap;
}
@media (min-width: 768px) { .csg-filter-controls { width: auto; } }

.csg-count-badge {
    display: none;
    padding: 0.5rem 1rem;
    background: #f5f3ff;
    color: #7c3aed;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.75rem;
}
@media (min-width: 768px) { .csg-count-badge { display: inline-flex; } }

.csg-select {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    background: #f8fafc;
    border: 1px solid transparent;
    outline: none;
    cursor: pointer;
    appearance: none;
    font-family: inherit;
    transition: all 0.2s;
}
@media (min-width: 768px) { .csg-select { flex: none; } }
.csg-select:focus {
    background: #fff;
    border-color: #ddd6fe;
    box-shadow: 0 0 0 4px rgba(124,58,237,0.05);
}

/* Grid */
.csg-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 5rem;
}
@media (min-width: 640px)  { .csg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .csg-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .csg-grid { grid-template-columns: repeat(4, 1fr); } }

/* Card */
.csg-card {
    position: relative;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
}
.csg-card:hover {
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.csg-card-cover {
    height: 10rem;
    background-size: cover;
    background-position: center;
    position: relative;
}

.csg-card-price-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.5);
}
.csg-card-price-badge span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6d28d9;
    letter-spacing: 0.02em;
}

.csg-card-subscribe-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(8px);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.csg-card-subscribe-btn:hover {
    background: #fff;
    color: #7c3aed;
}

.csg-card-body {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

.csg-card-avatar-wrap {
    margin-top: -3rem;
    margin-bottom: 1rem;
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 1.25rem;
    padding: 0.25rem;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
    z-index: 10;
}
.csg-card-avatar {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    overflow: hidden;
    background: #f8fafc;
}
.csg-card-avatar img,
.csg-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.csg-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin: 0 0 0.5rem;
    min-height: 3.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.csg-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.csg-card:hover .csg-card-title a { color: #7c3aed; }

.csg-card-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.csg-tag { padding: 0.25rem 0.75rem; border-radius: 0.5rem; }
.csg-tag--public { color: #059669; background: #ecfdf5; }
.csg-tag--private { color: #d97706; background: #fffbeb; }
.csg-tag--hidden  { color: #d97706; background: #fffbeb; }
.csg-tag-divider { color: #cbd5e1; }
.csg-tag-type { color: #94a3b8; }

.csg-card-footer {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.csg-card-members {
    display: flex;
    padding-left: 0.5rem;
}
.csg-member-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    margin-left: -0.75rem;
    ring: 2px solid #fff;
    box-shadow: 0 0 0 2px #fff;
    overflow: hidden;
    transition: transform 0.2s;
    cursor: help;
}
.csg-member-avatar:first-child { margin-left: 0; }
.csg-member-avatar:hover { transform: scale(1.1); z-index: 10; }
.csg-member-img { width: 100%; height: 100%; border-radius: 9999px; object-fit: cover; }

/* Buttons */
.csg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-family: inherit;
    line-height: 1.4;
}
.csg-btn--member {
    color: #7c3aed;
    background: #f5f3ff;
}
.csg-btn--member:hover { background: #ede9fe; }
.csg-btn--paywall {
    color: #fff;
    background: linear-gradient(to right, #7c3aed, #4f46e5);
    box-shadow: 0 10px 20px -5px rgba(124,58,237,0.3);
}
.csg-btn--paywall:hover {
    box-shadow: 0 10px 25px -5px rgba(124,58,237,0.4);
    transform: translateY(-2px);
}
.csg-btn--join {
    color: #64748b;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.csg-btn--join:hover {
    border-color: #ddd6fe;
    color: #7c3aed;
    background: #f5f3ff;
}
.csg-btn--submit {
    width: 100%;
    padding: 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
}
.csg-btn--submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.csg-btn--violet {
    color: #fff;
    background: #7c3aed;
    box-shadow: 0 8px 24px rgba(124,58,237,0.2);
}
.csg-btn--violet:hover:not(:disabled) { background: #6d28d9; box-shadow: 0 12px 28px rgba(124,58,237,0.3); }
.csg-btn--emerald {
    color: #fff;
    background: #10b981;
    box-shadow: 0 8px 24px rgba(16,185,129,0.2);
}
.csg-btn--emerald:hover:not(:disabled) { background: #059669; }
.csg-btn--dark {
    color: #fff;
    background: #0f172a;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.csg-btn--dark:hover:not(:disabled) { background: #1e293b; }
.csg-btn--cancel {
    width: 100%;
    padding: 0.75rem;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.875rem;
    cursor: pointer;
    font-family: inherit;
}
.csg-btn--cancel:hover { color: #475569; }
.csg-btn--full { width: 100%; }
.csg-btn--sm { padding: 0.5rem 1rem; font-size: 0.75rem; }
.csg-btn--outline {
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
}
.csg-btn--outline:hover { background: #f8fafc; }

/* Icons */
.csg-icon-xs { width: 0.875rem; height: 0.875rem; flex-shrink: 0; }
.csg-icon-sm { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.csg-icon-md { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }
.csg-icon-lg { width: 2rem; height: 2rem; flex-shrink: 0; }
.csg-icon-xl { width: 3rem; height: 3rem; flex-shrink: 0; }
.csg-icon--violet { color: #7c3aed; }
.csg-icon--emerald { color: #10b981; }

/* --- MODALS --- */
.csg-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.csg-modal--visible {
    opacity: 1;
    pointer-events: auto;
}
.csg-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.csg-modal-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    position: relative;
}
.csg-modal-content {
    position: relative;
    background: #fff;
    border-radius: 2rem;
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    width: 100%;
}
.csg-modal--visible .csg-modal-content {
    transform: scale(1);
}
.csg-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.5rem;
    border-radius: 9999px;
    color: #cbd5e1;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}
.csg-modal-close:hover { color: #64748b; background: #f1f5f9; }

/* Paywall modal */
.csg-modal--paywall {
    max-width: 48rem;
    display: flex;
    flex-direction: column;
}
@media (min-width: 768px) { .csg-modal--paywall { flex-direction: row; } }
.csg-modal-main { flex: 1; padding: 2.5rem 3rem; }
.csg-modal-sidebar {
    width: 100%;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    padding: 2.5rem;
}
@media (min-width: 768px) {
    .csg-modal-sidebar {
        width: 18rem;
        border-top: none;
        border-left: 1px solid #f1f5f9;
    }
}
.csg-modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; }
.csg-modal-title { font-size: 1.5rem; font-weight: 600; color: #1e293b; margin: 0 0 0.25rem; }
.csg-modal-subtitle { font-size: 0.875rem; color: #94a3b8; margin: 0.5rem 0 0; }
.csg-modal-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.csg-modal-icon--violet { background: #f5f3ff; color: #7c3aed; }
.csg-modal-icon--emerald { background: #ecfdf5; color: #10b981; }

.csg-pw-group-info {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.csg-pw-label { font-size: 0.625rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.csg-pw-group-name { font-size: 1.25rem; font-weight: 600; color: #1e293b; margin: 0; }

/* Plan selector */
.csg-pw-plans { margin-bottom: 2rem; }
.csg-pw-plan-label { font-size: 0.75rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.csg-pw-plan-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.csg-pw-plan-option { cursor: pointer; }
.csg-pw-plan-card {
    padding: 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.2s;
    position: relative;
}
.csg-pw-plan-card:hover { border-color: #c4b5fd; }
.csg-pw-plan-card--active {
    border-color: #7c3aed;
    background: linear-gradient(135deg, #f5f3ff, #fff);
    box-shadow: 0 4px 16px rgba(124,58,237,0.1);
}
.csg-pw-plan-name { font-size: 0.75rem; font-weight: 600; color: #64748b; text-transform: uppercase; margin-bottom: 0.25rem; }
.csg-pw-plan-price { font-size: 1.75rem; font-weight: 700; color: #1e293b; }
.csg-pw-plan-card--active .csg-pw-plan-price { color: #7c3aed; }
.csg-pw-plan-interval { font-size: 0.75rem; color: #94a3b8; }
.csg-pw-plan-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.125rem 0.5rem;
    background: #10b981;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.csg-pw-price-box {
    background: linear-gradient(135deg, #f5f3ff, #fff);
    border: 1px solid #ede9fe;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.csg-pw-price-label { font-size: 0.875rem; font-weight: 500; color: #7c3aed; margin-bottom: 0.25rem; }
.csg-pw-price-amount { font-size: 2.5rem; font-weight: 600; color: #6d28d9; letter-spacing: -0.02em; }

.csg-pw-terms { margin-bottom: 2rem; }
.csg-sidebar-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.csg-benefits-list { list-style: none; padding: 0; margin: 0; }
.csg-benefit-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

/* Join modal — new layout */
.csg-modal-container--join { max-width: 780px; width: 96%; }
.csg-modal--join { padding: 0; display: flex; flex-direction: column; max-height: 90vh; }

.csg-join-header { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid #e2e8f0; flex-shrink: 0; }
.csg-join-header-icon { width: 2.75rem; height: 2.75rem; background: #ede9fe; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #7c3aed; flex-shrink: 0; }
.csg-join-header-info { flex: 1; min-width: 0; }
.csg-join-title { font-size: 1.125rem; font-weight: 700; margin: 0; }
.csg-join-subtitle { font-size: .8125rem; color: #64748b; margin: 0; }
.csg-join-close { background: #4c1d95; color: #fff; border: none; width: 1.75rem; height: 1.75rem; border-radius: 6px; cursor: pointer; font-size: .875rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.csg-join-body { display: grid; grid-template-columns: 1fr 1fr; flex: 1; overflow: hidden; }
@media (max-width: 600px) { .csg-join-body { grid-template-columns: 1fr; } }
.csg-join-left { padding: 1.25rem 1.5rem; border-right: 1px solid #e2e8f0; overflow-y: auto; }
.csg-join-right { padding: 1.25rem 1.5rem; overflow-y: auto; }

.csg-join-section { margin-bottom: 1.25rem; }
.csg-join-section:last-child { margin-bottom: 0; }
.csg-join-section-label { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #94a3b8; margin: 0 0 .625rem 0; }

.csg-join-benefits-box { background: #f5f3ff; border-radius: 10px; padding: 1rem; }
.csg-join-benefits-title { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .875rem; color: #7c3aed; margin-bottom: .625rem; }
.csg-join-benefits-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .375rem; }
.csg-join-benefits-list li { display: flex; align-items: flex-start; gap: .5rem; font-size: .8125rem; color: #7c3aed; }

.csg-join-faq { display: flex; flex-direction: column; gap: .375rem; }
.csg-join-faq-item { border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.csg-join-faq-q { display: flex; align-items: center; justify-content: space-between; padding: .625rem .875rem; cursor: pointer; font-size: .875rem; font-weight: 500; background: #fff; gap: .5rem; }
.csg-join-faq-q:hover { background: #fafafa; }
.csg-join-faq-a { padding: .625rem .875rem; font-size: .8125rem; color: #64748b; line-height: 1.5; border-top: 1px solid #e2e8f0; display: none; }
.csg-join-faq-item.open .csg-join-faq-a { display: block; }
.csg-join-faq-chevron { flex-shrink: 0; transition: transform .2s; color: #94a3b8; }
.csg-join-faq-item.open .csg-join-faq-chevron { transform: rotate(180deg); }

.csg-join-approvals { display: flex; flex-direction: column; gap: .5rem; }
.csg-approval-item { display: flex; align-items: flex-start; gap: .75rem; padding: .625rem .875rem; border-radius: 8px; cursor: pointer; border: 1px solid #e2e8f0; transition: border-color .2s; font-size: .8125rem; }
.csg-approval-item:hover { border-color: #c4b5fd; }
.csg-approval-checkbox { width: 1.125rem; height: 1.125rem; margin-top: .125rem; flex-shrink: 0; border-radius: 4px; border: 1.5px solid #cbd5e1; background: #fff; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.csg-approval-item input:checked ~ .csg-approval-checkbox,
.csg-approval-item input:checked + .csg-approval-checkbox { background: #7c3aed; border-color: #7c3aed; }
.csg-checkbox-icon { width: .75rem; height: .75rem; color: #fff; opacity: 0; transition: opacity .15s; }
.csg-approval-item input:checked ~ .csg-approval-checkbox .csg-checkbox-icon,
.csg-approval-item input:checked + .csg-approval-checkbox .csg-checkbox-icon { opacity: 1; }
.csg-approval-label { font-weight: 500; color: #334155; }
.csg-approval-doc-link { color: #7c3aed; text-decoration: none; font-weight: 600; }
.csg-approval-doc-link:hover { text-decoration: underline; }
.csg-approval-badge { font-size: .6875rem; color: #94a3b8; margin-top: .125rem; display: block; }

.csg-rodo-filled-item { display: flex; align-items: center; justify-content: space-between; padding: .5rem .75rem; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 7px; }
.csg-rodo-filled-item-label { font-size: .8125rem; color: #166534; }
.csg-rodo-filled-item-value { font-size: .8125rem; font-weight: 600; color: #166534; }

.csg-join-missing-box { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 1rem; }
.csg-rodo-inputs { display: flex; flex-direction: column; gap: .625rem; }
.csg-rodo-input-group label { display: block; font-size: .75rem; font-weight: 600; color: #475569; margin-bottom: .25rem; }
.csg-rodo-input-group input { display: block; width: 100%; padding: .5rem .75rem; border: 1px solid #e2e8f0; border-radius: 8px; font-size: .875rem; }

/* RODO: Address sub-fields */
.csg-rodo-address-group { padding: .625rem 0; }
.csg-rodo-address-title { display: block; font-size: .75rem; font-weight: 700; color: #92400e; margin-bottom: .5rem; }
.csg-rodo-address-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
@media (max-width: 640px) { .csg-rodo-address-fields { grid-template-columns: 1fr; } }
.csg-rodo-address-field { display: flex; flex-direction: column; }
.csg-rodo-sf-label { font-size: .6875rem; font-weight: 600; color: #64748b; margin-bottom: .1875rem; }
.csg-rodo-sf-filled { font-size: .8125rem; color: #1e293b; padding: .5rem .75rem; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; display: flex; align-items: center; gap: .375rem; }
.jn-rodo-addr-input { display: block; width: 100%; padding: .5rem .75rem; border: 1px solid #fde68a; border-radius: 8px; font-size: .875rem; background: #fffbeb; box-sizing: border-box; }
.jn-rodo-addr-input:focus { outline: none; border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15); }

/* TERYT autocomplete for address fields */
.csg-teryt-wrap { position: relative; }
.csg-teryt-results {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 100;
    background: #fff; border: 1px solid #e2e8f0; border-top: none;
    border-radius: 0 0 8px 8px; max-height: 180px; overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); display: none;
}
.csg-teryt-result {
    padding: .5rem .75rem; cursor: pointer; font-size: .8125rem;
    display: flex; flex-direction: column; gap: .125rem;
    border-bottom: 1px solid #f1f5f9; transition: background 0.15s;
}
.csg-teryt-result:last-child { border-bottom: none; }
.csg-teryt-result:hover { background: #f5f3ff; }
.csg-teryt-result-name { color: #1e293b; font-weight: 600; }
.csg-teryt-result-detail { color: #94a3b8; font-size: .6875rem; }
.csg-teryt-loading { padding: .625rem .75rem; color: #94a3b8; font-size: .8125rem; text-align: center; }
.csg-teryt-no-results { padding: .625rem .75rem; color: #94a3b8; font-size: .8125rem; text-align: center; font-style: italic; }

.csg-join-footer { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.5rem; border-top: 1px solid #e2e8f0; flex-shrink: 0; }
.csg-btn--violet { background: #7c3aed; color: #fff; }
.csg-btn--violet:hover { background: #6d28d9; }
.csg-btn--violet:disabled { background: #a78bfa; cursor: default; }

.csg-join-section { margin-bottom: 1.5rem; }
.csg-join-section-title {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.csg-join-approvals { display: flex; flex-direction: column; gap: 0.5rem; }
.csg-approval-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.csg-approval-item:hover {
    background: rgba(16,185,129,0.03);
    border-color: #d1fae5;
}
.csg-approval-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
    border-radius: 0.375rem;
    border: 1px solid #cbd5e1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.csg-checkbox-icon { width: 0.875rem; height: 0.875rem; color: #fff; opacity: 0; transition: opacity 0.15s; }
input:checked ~ .csg-approval-checkbox,
input:checked + .csg-approval-checkbox {
    background: #10b981;
    border-color: #10b981;
}
input:checked ~ .csg-approval-checkbox .csg-checkbox-icon,
input:checked + .csg-approval-checkbox .csg-checkbox-icon { opacity: 1; }

.csg-approval-label { font-size: 0.875rem; font-weight: 500; color: #334155; }
.csg-approval-desc { font-size: 0.75rem; color: #94a3b8; margin-top: 0.125rem; }

/* Checkbox label pattern */
.csg-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
}
.csg-checkbox-box {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
    border-radius: 0.375rem;
    border: 1px solid #cbd5e1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
input:checked + .csg-checkbox-box {
    background: #7c3aed;
    border-color: #7c3aed;
}
input:checked + .csg-checkbox-box .csg-checkbox-icon { opacity: 1; }
.csg-checkbox-text { font-size: 0.875rem; color: #64748b; }
.csg-checkbox-text a { color: #7c3aed; text-decoration: underline; text-underline-offset: 2px; }

/* RODO pills */
.csg-rodo-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.csg-rodo-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
}

/* Subscribe modal */
.csg-modal--subscribe { max-width: 32rem; padding: 2.5rem; }
.csg-form-fields { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.csg-form-group { display: flex; flex-direction: column; }
.csg-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.5rem;
}
.csg-form-label--sm {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.csg-form-input {
    width: 100%;
    padding: 0.75rem 1.25rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    color: #334155;
    background: #f8fafc;
    border: 1px solid transparent;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}
.csg-form-input:focus {
    background: #fff;
    border-color: rgba(124,58,237,0.2);
    box-shadow: 0 4px 20px -5px rgba(124,58,237,0.15);
}
.csg-form-input::placeholder { color: #94a3b8; }
.csg-form-input--lg { font-size: 1.125rem; font-weight: 500; padding: 1rem 1.5rem; }
.csg-form-input--price { font-size: 1.875rem; font-weight: 600; color: #7c3aed; padding: 1.25rem 1.5rem; }
.csg-form-textarea { resize: none; }
.csg-form-select {
    width: 100%;
    height: 3.625rem;
    padding: 0 1.5rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    background: #f8fafc;
    border: 1px solid transparent;
    outline: none;
    cursor: pointer;
    appearance: none;
    font-family: inherit;
    transition: all 0.2s;
}
.csg-form-select:focus { background: #fff; border-color: rgba(124,58,237,0.2); box-shadow: 0 4px 20px -5px rgba(124,58,237,0.15); }
.csg-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) { .csg-form-row { grid-template-columns: 1fr 1fr; } }

.csg-radio-group { display: flex; gap: 1.5rem; }
.csg-radio-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}
.csg-radio-dot {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.csg-radio-dot::after {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: #fff;
    opacity: 0;
    transition: opacity 0.15s;
}
input:checked ~ .csg-radio-dot,
input:checked + .csg-radio-dot {
    border-color: #7c3aed;
    background: #7c3aed;
}
input:checked ~ .csg-radio-dot::after,
input:checked + .csg-radio-dot::after { opacity: 1; }

.csg-consent-row { margin-bottom: 2rem; }
.csg-consent-text { font-size: 0.75rem; color: #94a3b8; }

.csg-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* --- CREATOR --- */
.csg-creator { max-width: 56rem; }
.csg-creator-header { text-align: center; margin-bottom: 4rem; }
.csg-creator-form { display: flex; flex-direction: column; gap: 2.5rem; }

.csg-section {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.05);
    border-radius: 2rem;
    overflow: hidden;
}
.csg-section-header {
    background: rgba(255,255,255,0.5);
    padding: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.csg-section-header-inline {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 2rem;
}
.csg-section-header-inline h3 { font-size: 1.25rem; font-weight: 600; color: #1e293b; margin: 0 0 0.25rem; }
.csg-section-header-inline p { font-size: 0.875rem; color: #64748b; font-weight: 400; margin: 0; }
.csg-section-icon { font-size: 1.5rem; width: 3.5rem; height: 3.5rem; display: flex; align-items: center; justify-content: center; background: #f5f3ff; border-radius: 1rem; border: 1px solid rgba(124,58,237,0.1); flex-shrink: 0; }
.csg-section-step {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: #f5f3ff;
    color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    border: 1px solid rgba(124,58,237,0.1);
    flex-shrink: 0;
}
.csg-section-title { font-size: 1.25rem; font-weight: 600; color: #1e293b; margin: 0; }
.csg-section-body { padding: 2.5rem; display: flex; flex-direction: column; gap: 2rem; }

.csg-divider { height: 1px; background: #f1f5f9; }

/* Privacy grid */
.csg-privacy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 768px) { .csg-privacy-grid { grid-template-columns: repeat(3, 1fr); } }
.csg-privacy-option { cursor: pointer; display: block; height: 100%; }
.csg-privacy-card {
    padding: 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    transition: all 0.2s;
    height: 100%;
}
input:checked + .csg-privacy-card {
    border-color: #7c3aed;
    box-shadow: 0 0 0 1px #7c3aed;
}
.csg-privacy-card:hover { border-color: #cbd5e1; }
.csg-privacy-name { font-weight: 600; font-size: 0.875rem; color: #1e293b; margin: 1rem 0 0.25rem; }
.csg-privacy-desc { font-size: 0.75rem; color: #64748b; }

/* Radio list */
.csg-radio-list { display: flex; flex-direction: column; gap: 1rem; }
.csg-radio-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
}
.csg-radio-circle {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.csg-radio-circle::after {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: #fff;
    transform: scale(0);
    transition: transform 0.2s;
}
input:checked ~ .csg-radio-circle,
input:checked + .csg-radio-circle {
    border-color: #7c3aed;
    background: #7c3aed;
}
input:checked ~ .csg-radio-circle::after,
input:checked + .csg-radio-circle::after { transform: scale(1); }

/* Feature toggle */
.csg-feature-toggle {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s;
}
.csg-feature-toggle:hover { background: #f8fafc; }
.csg-feature-checkbox {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
input:checked ~ .csg-feature-checkbox,
input:checked + .csg-feature-checkbox {
    background: #7c3aed;
    border-color: #7c3aed;
}
input:checked ~ .csg-feature-checkbox .csg-checkbox-icon,
input:checked + .csg-feature-checkbox .csg-checkbox-icon { opacity: 1; }
.csg-feature-name { font-size: 0.875rem; font-weight: 600; color: #1e293b; }

/* Toggle switch */
.csg-toggle-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}
.csg-toggle-row:hover { border-color: #c4b5fd; }
.csg-toggle-switch {
    width: 3.5rem;
    height: 2rem;
    background: #e2e8f0;
    border-radius: 9999px;
    position: relative;
    transition: background 0.3s;
    flex-shrink: 0;
}
.csg-toggle-switch::after {
    content: '';
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    background: #fff;
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}
input:checked ~ .csg-toggle-switch,
input:checked + .csg-toggle-switch { background: #7c3aed; }
input:checked ~ .csg-toggle-switch::after,
input:checked + .csg-toggle-switch::after { transform: translateX(1.5rem); }
.csg-toggle-title { display: block; font-size: 1.125rem; font-weight: 600; color: #1e293b; }
.csg-toggle-desc { display: block; font-size: 0.875rem; color: #64748b; margin-top: 0.125rem; }
.csg-toggle-info strong { display: block; font-size: 1rem; font-weight: 600; color: #1e293b; margin-bottom: 0.25rem; }
.csg-toggle-info span { font-size: 0.875rem; color: #64748b; }

/* Switch (compact) */
.csg-switch { position: relative; display: inline-block; width: 3.5rem; height: 2rem; flex-shrink: 0; }
.csg-switch input { opacity: 0; width: 0; height: 0; }
.csg-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #e2e8f0;
    border-radius: 9999px;
    transition: 0.3s;
}
.csg-switch-slider::before {
    content: '';
    position: absolute;
    height: 1.5rem;
    width: 1.5rem;
    left: 0.25rem;
    bottom: 0.25rem;
    background: #fff;
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transition: 0.3s;
}
.csg-switch input:checked + .csg-switch-slider { background: #7c3aed; }
.csg-switch input:checked + .csg-switch-slider::before { transform: translateX(1.5rem); }

/* Settings block */
.csg-settings-block { padding: 0 2rem 2rem; display: flex; flex-direction: column; gap: 2rem; }
.csg-paywall-settings { display: flex; flex-direction: column; gap: 2rem; padding-left: 0.5rem; }
.csg-price-group { display: flex; flex-direction: column; gap: 0.75rem; }
.csg-price-input { position: relative; }
.csg-price-suffix {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
    pointer-events: none;
}

/* Media grid */
.csg-media-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
@media (min-width: 768px) { .csg-media-grid { grid-template-columns: 1fr 1fr; } }

.csg-upload-area {
    position: relative;
    cursor: pointer;
    border: 2px dashed #cbd5e1;
    border-radius: 1.5rem;
    height: 15rem;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.csg-upload-area:hover { border-color: #a78bfa; background: rgba(245,243,255,0.3); }
.csg-avatar-preview {
    width: 8rem;
    height: 8rem;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
}
.csg-cover-preview {
    width: 100%;
    max-width: 17.5rem;
    height: 8rem;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
    margin: 0 1rem;
}
.csg-preview-img { width: 100%; height: 100%; object-fit: cover; }
.csg-upload-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}
.csg-upload-label {
    margin-top: 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.csg-upload-remove {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    background: #ef4444;
    color: #fff;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: background 0.2s;
}
.csg-upload-remove:hover { background: #dc2626; }

/* Docs */
.csg-acceptance-docs { display: flex; flex-direction: column; gap: 2rem; padding-top: 1rem; }
.csg-docs-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .csg-docs-grid { grid-template-columns: 1fr 1fr; } }
.csg-doc-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.csg-file-input {
    display: block;
    width: 100%;
    font-size: 0.875rem;
    color: #64748b;
}
.csg-file-input::file-selector-button {
    margin-right: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    background: #f5f3ff;
    color: #7c3aed;
    cursor: pointer;
    transition: background 0.2s;
}
.csg-file-input::file-selector-button:hover { background: #ede9fe; }

/* Clause builder */
.csg-clauses-builder { display: flex; flex-direction: column; gap: 1rem; }
.csg-clauses-list { display: flex; flex-direction: column; gap: 0.5rem; }
.csg-clause-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
}
.csg-clause-text { display: flex; align-items: center; gap: 0.75rem; flex: 1; font-size: 0.875rem; color: #334155; }
.csg-clause-badge {
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    background: #f5f3ff;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.csg-clause-remove {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s;
}
.csg-clause-remove:hover { color: #ef4444; }
.csg-clause-add {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Feature description text */
.csg-feature-desc {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.125rem;
}

/* Section description */
.csg-section-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
}
.csg-hint--accent {
    color: #7c3aed;
    font-weight: 500;
}

/* Topic builder */
.csg-topics-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }
.csg-topic-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: border-color 0.2s;
}
.csg-topic-item:hover { border-color: #c4b5fd; }
.csg-topic-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: #f5f3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
    flex-shrink: 0;
}
.csg-topic-info { flex: 1; }
.csg-topic-info strong { display: block; font-size: 0.875rem; color: #1e293b; }
.csg-topic-perm { font-size: 0.75rem; color: #94a3b8; }
.csg-topic-remove {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: color 0.2s, background 0.2s;
}
.csg-topic-remove:hover { color: #ef4444; background: #fef2f2; }
.csg-topic-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
}
.csg-topic-form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.csg-clause-add .csg-form-input { flex: 1; }
.csg-clause-required-toggle {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #64748b;
    cursor: pointer;
    white-space: nowrap;
}

/* Billing grid */
.csg-billing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.csg-billing-option { cursor: pointer; }
.csg-billing-card {
    display: block;
    text-align: center;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}
input:checked + .csg-billing-card {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
}
.csg-billing-card:hover { border-color: #cbd5e1; }
.csg-price-fields { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1.5rem; }
.csg-price-hint {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 0.75rem;
}

/* Paywall blocked */
.csg-paywall-blocked {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 1rem;
    margin-top: 1rem;
    color: #92400e;
    font-size: 0.875rem;
}
.csg-paywall-blocked svg { color: #f59e0b; flex-shrink: 0; margin-top: 0.125rem; }

/* RODO grid */
.csg-rodo-desc { font-size: 0.875rem; color: #64748b; margin-bottom: 2rem; }
.csg-rodo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 768px) { .csg-rodo-grid { grid-template-columns: repeat(3, 1fr); } }
.csg-rodo-option { cursor: pointer; }
.csg-rodo-chip {
    display: block;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    font-weight: 500;
    text-align: center;
    font-size: 0.875rem;
    transition: all 0.2s;
}
input:checked + .csg-rodo-chip,
input:checked ~ .csg-rodo-chip {
    border-color: #7c3aed;
    color: #7c3aed;
    background: #f5f3ff;
}
.csg-rodo-chip:hover { border-color: #cbd5e1; }

/* Cropper modal */
.csg-modal--cropper { max-width: 42rem; }
.csg-cropper-header {
    padding: 2rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.csg-cropper-header h3 { font-size: 1.25rem; font-weight: 600; color: #1e293b; margin: 0; }
.csg-modal-close-btn {
    padding: 0.5rem;
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 0.75rem;
    transition: all 0.2s;
}
.csg-modal-close-btn:hover { color: #475569; background: #f8fafc; }
.csg-cropper-body {
    position: relative;
    background: #0f172a;
    height: 25rem;
    overflow: hidden;
}
.csg-cropper-body img { display: block; max-width: 100%; }
.csg-cropper-footer {
    padding: 2rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Alerts */
.csg-alert {
    max-width: 32rem;
    margin: 3rem auto;
    padding: 2rem;
    border-radius: 1.5rem;
    text-align: center;
    font-weight: 500;
}
.csg-alert--error { background: #fef2f2; border: 1px solid #fee2e2; color: #991b1b; }

.csg-success-message {
    max-width: 32rem;
    margin: 3rem auto;
    padding: 3rem;
    text-align: center;
}
.csg-success-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    border-radius: 9999px;
    background: #f5f3ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
}
.csg-success-message h2 { font-size: 1.5rem; font-weight: 600; color: #1e293b; margin-bottom: 0.75rem; }
.csg-success-message p { color: #64748b; }

/* Verification list */
.csg-verification-list { display: flex; flex-direction: column; gap: 0.5rem; }
