/* Gen Wave Free - Main Styles */

:root {
    --gw-primary: #6366f1;
    --gw-primary-dark: #4f46e5;
    --gw-secondary: #8b5cf6;
    --gw-success: #10b981;
    --gw-warning: #f59e0b;
    --gw-danger: #ef4444;
    --gw-gray-50: #f9fafb;
    --gw-gray-100: #f3f4f6;
    --gw-gray-200: #e5e7eb;
    --gw-gray-300: #d1d5db;
    --gw-gray-500: #6b7280;
    --gw-gray-700: #374151;
    --gw-gray-900: #111827;
    --gw-radius: 12px;
    --gw-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --gw-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Page Container */
.gw-page {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.gw-page__header {
    margin-bottom: 32px;
}

.gw-page__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--gw-gray-900);
    margin: 0 0 8px 0;
}

.gw-page__subtitle {
    font-size: 16px;
    color: var(--gw-gray-500);
    margin: 0;
}

/* Cards Grid */
.gw-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

/* Stat Card */
.gw-stat-card {
    background: white;
    border-radius: var(--gw-radius);
    padding: 24px;
    box-shadow: var(--gw-shadow);
    border: 1px solid var(--gw-gray-200);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gw-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--gw-shadow-lg);
}

.gw-stat-card--gradient {
    background: linear-gradient(135deg, var(--gw-primary) 0%, var(--gw-secondary) 100%);
    color: white;
    border: none;
}

.gw-stat-card--gradient .gw-stat-card__label,
.gw-stat-card--gradient .gw-stat-card__value {
    color: white;
}

.gw-stat-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gw-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--gw-primary);
    margin-bottom: 16px;
}

.gw-stat-card--gradient .gw-stat-card__icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.gw-stat-card__label {
    font-size: 14px;
    color: var(--gw-gray-500);
    margin-bottom: 4px;
}

.gw-stat-card__value {
    font-size: 32px;
    font-weight: 700;
    color: var(--gw-gray-900);
}

/* Section */
.gw-section {
    background: white;
    border-radius: var(--gw-radius);
    padding: 24px;
    box-shadow: var(--gw-shadow);
    border: 1px solid var(--gw-gray-200);
    margin-bottom: 24px;
}

.gw-section__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gw-gray-900);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Locked Feature Overlay */
.locked-feature {
    position: relative;
    border-radius: var(--gw-radius);
    overflow: hidden;
}

.locked-feature__content {
    filter: blur(3px);
    opacity: 0.6;
    pointer-events: none;
    user-select: none;
}

.locked-feature__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

.locked-feature__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--gw-primary) 0%, var(--gw-secondary) 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.locked-feature__icon {
    font-size: 14px;
}

.locked-feature__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gw-gray-900);
    margin: 0 0 8px 0;
}

.locked-feature__description {
    font-size: 14px;
    color: var(--gw-gray-500);
    margin: 0 0 16px 0;
    max-width: 300px;
}

.locked-feature__upgrade-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gw-warning) 0%, #d97706 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.locked-feature__upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
    color: white;
}

/* Compact Locked Feature - Inline Badge */
.locked-feature--compact {
    opacity: 0.6;
    pointer-events: none;
}

.locked-feature__inline {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.locked-feature__content-wrapper {
    opacity: 0.7;
}

.locked-feature__inline-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: auto;
}

/* Upgrade Banner */
.gw-upgrade-banner {
    background: linear-gradient(135deg, var(--gw-primary) 0%, var(--gw-secondary) 100%);
    border-radius: var(--gw-radius);
    padding: 32px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.gw-upgrade-banner__content h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.gw-upgrade-banner__content p {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
}

.gw-upgrade-banner__features {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.gw-upgrade-banner__feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.gw-upgrade-banner__btn {
    background: white;
    color: var(--gw-primary);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: transform 0.2s;
    white-space: nowrap;
}

.gw-upgrade-banner__btn:hover {
    transform: translateY(-2px);
    color: var(--gw-primary-dark);
}

/* AI Agent Section */
.gw-agent-section {
    background: white;
    border-radius: var(--gw-radius);
    border: 1px solid var(--gw-gray-200);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--gw-shadow);
}

.gw-agent-section__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.gw-agent-section__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gw-primary) 0%, var(--gw-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.gw-agent-section__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--gw-gray-900);
    margin: 0 0 4px 0;
}

.gw-agent-section__subtitle {
    font-size: 15px;
    color: var(--gw-gray-500);
    margin: 0;
}

.gw-agent-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.gw-agent-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 10px;
    background: var(--gw-gray-50);
    border: 1px solid var(--gw-gray-100);
    transition: all 0.2s ease;
}

.gw-agent-feature:hover {
    border-color: var(--gw-gray-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
}

.gw-agent-feature__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.gw-agent-feature__icon--blue {
    background: rgba(99, 102, 241, 0.1);
    color: var(--gw-primary);
}

.gw-agent-feature__icon--green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--gw-success);
}

.gw-agent-feature__icon--purple {
    background: rgba(139, 92, 246, 0.1);
    color: var(--gw-secondary);
}

.gw-agent-feature__icon--orange {
    background: rgba(245, 158, 11, 0.1);
    color: var(--gw-warning);
}

.gw-agent-feature__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gw-agent-feature__text strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--gw-gray-900);
}

.gw-agent-feature__text span {
    font-size: 13px;
    color: var(--gw-gray-500);
    line-height: 1.4;
}

.gw-agent-section__cta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 4px;
}

.gw-agent-section__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gw-primary) 0%, var(--gw-secondary) 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.gw-agent-section__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    color: white;
}

.gw-agent-section__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gw-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.gw-agent-section__link:hover {
    gap: 10px;
    color: var(--gw-primary-dark);
}

@media (max-width: 768px) {
    .gw-agent-features {
        grid-template-columns: 1fr;
    }
    .gw-agent-section__cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Products/Posts Table */
.gw-table {
    width: 100%;
    border-collapse: collapse;
}

.gw-table th,
.gw-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gw-gray-200);
}

.gw-table th {
    font-weight: 600;
    color: var(--gw-gray-700);
    background: var(--gw-gray-50);
}

.gw-table tr:hover {
    background: var(--gw-gray-50);
}

/* Generate Options */
.gw-generate-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.gw-option-card {
    background: var(--gw-gray-50);
    border: 2px solid var(--gw-gray-200);
    border-radius: var(--gw-radius);
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.gw-option-card:hover {
    border-color: var(--gw-primary);
}

.gw-option-card--selected {
    border-color: var(--gw-primary);
    background: rgba(99, 102, 241, 0.05);
}

.gw-option-card--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gw-option-card--pro {
    opacity: 0.6;
    cursor: not-allowed;
    border-style: dashed;
}

.gw-option-card--pro:hover {
    border-color: var(--gw-gray-300);
}

.gw-option-card__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--gw-gray-900);
    margin-bottom: 4px;
}

.gw-option-card__desc {
    font-size: 13px;
    color: var(--gw-gray-500);
}

/* Pro Badge */
.gw-pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.gw-pro-badge--small {
    padding: 2px 6px;
    font-size: 10px;
    margin-left: auto;
}

/* Spinner Icon */
.gw-spinner-icon {
    font-size: 24px;
    color: var(--gw-primary);
    animation: gw-spin 1s linear infinite;
}

@keyframes gw-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Buttons */
.gw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.gw-btn--primary {
    background: linear-gradient(135deg, var(--gw-primary) 0%, var(--gw-secondary) 100%);
    color: white;
}

.gw-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.gw-btn--primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.gw-btn--secondary {
    background: var(--gw-gray-100);
    color: var(--gw-gray-700);
}

.gw-btn--secondary:hover {
    background: var(--gw-gray-200);
}

/* Loading */
.gw-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    color: var(--gw-gray-500);
}

.gw-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--gw-gray-200);
    border-top-color: var(--gw-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Empty State */
.gw-empty {
    text-align: center;
    padding: 48px;
    color: var(--gw-gray-500);
}

.gw-empty__icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.gw-empty__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gw-gray-700);
    margin: 0 0 8px 0;
}

.gw-empty__text {
    font-size: 14px;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .gw-page {
        padding: 16px;
    }

    .gw-cards-grid {
        grid-template-columns: 1fr;
    }

    .gw-upgrade-banner {
        flex-direction: column;
        text-align: center;
    }

    .gw-upgrade-banner__features {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================================ */
/* Plugins marketplace page                                      */
/* ============================================================ */

/* Deep-Ocean marketplace — page-local accent tokens */
.gw-mkt {
    --mkt-1: #06b6d4;   /* cyan  */
    --mkt-2: #3b82f6;   /* blue  */
    --mkt-3: #6366f1;   /* indigo edge */
    --mkt-ink: #0b1220;
}

/* ---- Hero ---- */
.gw-mkt__hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 30px 32px;
    margin-bottom: 26px;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(59, 130, 246, 0.14), transparent 55%),
        radial-gradient(120% 160% at 0% 100%, rgba(6, 182, 212, 0.16), transparent 50%),
        linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
    border: 1px solid rgba(59, 130, 246, 0.14);
}
.gw-mkt__hero-glow {
    position: absolute;
    inset: -40% 40% auto -10%;
    height: 240px;
    background: radial-gradient(closest-side, rgba(6, 182, 212, 0.22), transparent);
    filter: blur(10px);
    pointer-events: none;
}
.gw-mkt__hero-content {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.gw-mkt__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0e7490;
    background: rgba(6, 182, 212, 0.12);
    padding: 5px 11px;
    border-radius: 999px;
}
.gw-mkt__title {
    margin: 12px 0 6px;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(92deg, var(--mkt-ink) 0%, #155e75 60%, var(--mkt-1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.gw-mkt__subtitle {
    margin: 0;
    max-width: 52ch;
    font-size: 14px;
    line-height: 1.55;
    color: var(--gw-gray-500);
}
.gw-mkt__refresh {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #0e7490;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}
.gw-mkt__refresh:hover:not(:disabled) { background: #fff; border-color: var(--mkt-1); }
.gw-mkt__refresh:active:not(:disabled) { transform: translateY(1px); }
.gw-mkt__refresh:disabled { opacity: 0.6; cursor: default; }

/* ---- Grid ---- */
.gw-mkt__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

/* ---- Card ---- */
.gw-mkt-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 22px 20px;
    background: #fff;
    border: 1px solid var(--gw-gray-200);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    opacity: 0;
    transform: translateY(10px);
    animation: gwMktIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.gw-mkt-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px -18px rgba(6, 76, 116, 0.45);
    border-color: rgba(6, 182, 212, 0.5);
}
.gw-mkt-card__accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mkt-1), var(--mkt-2), var(--mkt-3));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.gw-mkt-card:hover .gw-mkt-card__accent,
.gw-mkt-card.is-active .gw-mkt-card__accent { transform: scaleX(1); }

.gw-mkt-card__top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.gw-mkt-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--gw-gray-200);
    box-shadow: 0 4px 10px -4px rgba(16, 24, 40, 0.18);
}
.gw-mkt-card__icon img { width: 100%; height: 100%; object-fit: cover; }
.gw-mkt-card__icon--fallback {
    border: 0;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--mkt-1), var(--mkt-2) 70%, var(--mkt-3));
}
.gw-mkt-card__heading { flex: 1; min-width: 0; }
.gw-mkt-card__title {
    margin: 2px 0 3px;
    font-size: 16.5px;
    font-weight: 700;
    color: var(--gw-gray-900);
    letter-spacing: -0.01em;
}
.gw-mkt-card__tagline {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--gw-gray-500);
}
.gw-mkt-card__flag {
    flex-shrink: 0;
    color: var(--gw-success);
    font-size: 18px;
    line-height: 1;
}

.gw-mkt-card__desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--gw-gray-700);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gw-mkt-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}
.gw-mkt-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gw-gray-700);
    background: var(--gw-gray-100);
    border-radius: 7px;
}
.gw-mkt-chip--update { color: #0e7490; background: rgba(6, 182, 212, 0.14); }
.gw-mkt-card__link {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--mkt-2);
    text-decoration: none;
}
.gw-mkt-card__link:hover { color: var(--mkt-1); text-decoration: underline; }

.gw-mkt-card__foot { margin-top: auto; padding-top: 4px; }
.gw-mkt-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 16px;
    font-size: 13.5px;
    font-weight: 700;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.gw-mkt-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--mkt-1), var(--mkt-2));
    box-shadow: 0 10px 20px -10px rgba(59, 130, 246, 0.7);
}
.gw-mkt-btn--primary:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
.gw-mkt-btn--primary:active:not(:disabled) { transform: translateY(0); }
.gw-mkt-btn--primary:disabled { opacity: 0.7; cursor: default; }
.gw-mkt-btn--active {
    color: #065f46;
    background: rgba(16, 185, 129, 0.12);
    cursor: default;
}

/* ---- Alerts / empty ---- */
.gw-mkt__alert {
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.5;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
}
.gw-mkt__alert--inline { margin: 0; }
.gw-mkt__empty {
    padding: 56px 24px;
    text-align: center;
    color: var(--gw-gray-500);
    background: var(--gw-gray-50);
    border: 1px dashed var(--gw-gray-300);
    border-radius: 16px;
}
.gw-mkt__empty .anticon { font-size: 30px; color: var(--gw-gray-300); }
.gw-mkt__empty p { margin: 10px 0 0; font-size: 14px; }

/* ---- Skeleton loading ---- */
.gw-mkt-card--skeleton { animation: none; opacity: 1; transform: none; }
.gw-sk {
    border-radius: 8px;
    background: linear-gradient(100deg, var(--gw-gray-100) 30%, var(--gw-gray-200) 50%, var(--gw-gray-100) 70%);
    background-size: 200% 100%;
    animation: gwMktShimmer 1.3s ease-in-out infinite;
}
.gw-sk__icon { width: 52px; height: 52px; border-radius: 13px; }
.gw-sk__line { height: 12px; }
.gw-sk__line--title { height: 18px; width: 55%; }
.gw-sk__line--short { width: 70%; }
.gw-sk__btn { height: 42px; border-radius: 11px; margin-top: 6px; }

@keyframes gwMktIn {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes gwMktShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .gw-mkt-card { animation: none; opacity: 1; transform: none; }
    .gw-sk { animation: none; }
}

/* Pills (status badges) */
.gw-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}
.gw-pill--neutral { background: var(--gw-gray-100); color: var(--gw-gray-700); }
.gw-pill--paid    { background: #fef3c7; color: #92400e; }
.gw-pill--success { background: #d1fae5; color: #065f46; }
.gw-pill--info    { background: #dbeafe; color: #1e40af; }

/* Ghost button (for Refresh) */
.gw-btn--ghost {
    background: transparent;
    color: var(--gw-gray-700);
    border: 1px solid var(--gw-gray-300);
}
.gw-btn--ghost:hover {
    background: var(--gw-gray-50);
}

/* Alerts */
.gw-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}
.gw-alert--error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Loading & empty states (page-level) */
.gw-loading-state,
.gw-empty-state {
    padding: 40px 24px;
    text-align: center;
    color: var(--gw-gray-500);
    font-size: 14px;
    background: var(--gw-gray-50);
    border-radius: var(--gw-radius);
    border: 1px dashed var(--gw-gray-300);
}
.gw-loading-state .anticon {
    margin-right: 8px;
}

@media (max-width: 768px) {
    .gw-mkt__grid {
        grid-template-columns: 1fr;
    }
    .gw-mkt__hero-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .gw-mkt__hero { padding: 24px 20px; }
    .gw-mkt__title { font-size: 25px; }
}

/* ============================================================ */
/* Dashboard — clean Deep-Ocean overview                        */
/* ============================================================ */
.gw-dash {
    --d1: #06b6d4;
    --d2: #3b82f6;
    --d3: #6366f1;
    --dink: #0b1220;
}
.gw-dash__head { margin-bottom: 22px; }
.gw-dash__title {
    margin: 0 0 4px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--dink);
}
.gw-dash__subtitle { margin: 0; font-size: 14px; color: var(--gw-gray-500); }

/* Stats */
.gw-dash__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}
.gw-dash-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--gw-gray-200);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.gw-dash-stat__ic {
    width: 44px; height: 44px; flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 12px;
    font-size: 20px; color: var(--gw-gray-500);
    background: var(--gw-gray-100);
}
.gw-dash-stat__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gw-dash-stat__label {
    font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--gw-gray-500);
}
.gw-dash-stat__value { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--dink); line-height: 1.1; }
.gw-dash-stat--accent {
    background:
        radial-gradient(120% 130% at 100% 0%, rgba(59,130,246,0.10), transparent 60%),
        linear-gradient(180deg, #fff, #f6fbff);
    border-color: rgba(59,130,246,0.22);
}
.gw-dash-stat--accent .gw-dash-stat__ic { color: #fff; background: linear-gradient(135deg, var(--d1), var(--d2)); }
.gw-dash-stat--accent .gw-dash-stat__value {
    background: linear-gradient(120deg, var(--dink), #155e75 70%, var(--d1));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* Agent hero */
.gw-dash-agent {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 30px 32px;
    color: #fff;
    background:
        radial-gradient(120% 180% at 100% 0%, rgba(255,255,255,0.14), transparent 55%),
        linear-gradient(125deg, #0e7490 0%, var(--d1) 45%, var(--d2) 100%);
}
.gw-dash-agent__glow {
    position: absolute; inset: auto -10% -60% 30%;
    height: 320px;
    background: radial-gradient(closest-side, rgba(99,102,241,0.35), transparent);
    filter: blur(12px); pointer-events: none;
}
.gw-dash-agent__inner { position: relative; max-width: 620px; }
.gw-dash-agent__badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: 999px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
    background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.28);
}
.gw-dash-agent__title { margin: 14px 0 8px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.gw-dash-agent__lead { margin: 0 0 18px; font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,0.9); }
.gw-dash-agent__feats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.gw-dash-agent__feat {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 9px;
    font-size: 12.5px; font-weight: 600;
    background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.22);
}
.gw-dash-agent__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.gw-dash-agent__cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 20px; border-radius: 11px;
    font-size: 14px; font-weight: 700; text-decoration: none;
    color: #0e7490; background: #fff;
    box-shadow: 0 12px 24px -12px rgba(0,0,0,0.5);
    transition: transform 0.12s ease, box-shadow 0.2s ease;
}
.gw-dash-agent__cta:hover { transform: translateY(-1px); color: #0e7490; }
.gw-dash-agent__link { color: #fff; font-size: 13.5px; font-weight: 600; text-decoration: none; opacity: 0.9; }
.gw-dash-agent__link:hover { color: #fff; opacity: 1; text-decoration: underline; }

@media (max-width: 768px) {
    .gw-dash-agent { padding: 24px 20px; }
    .gw-dash-agent__title { font-size: 22px; }
}

/* ============================================================ */
/* Generate — clean content generation                          */
/* ============================================================ */
.gw-gen {
    --g1: #06b6d4;
    --g2: #3b82f6;
    --gink: #0b1220;
}
.gw-gen__head { margin-bottom: 20px; }
.gw-gen__title { margin: 0 0 4px; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--gink); }
.gw-gen__subtitle { margin: 0; font-size: 14px; color: var(--gw-gray-500); }

.gw-gen__toggle { display: inline-flex; gap: 4px; padding: 4px; background: var(--gw-gray-100); border-radius: 12px; margin-bottom: 20px; }
.gw-gen__seg {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 16px; border: 0; border-radius: 9px; cursor: pointer;
    font-size: 13.5px; font-weight: 600; color: var(--gw-gray-700); background: transparent;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.gw-gen__seg.is-on { color: #0e7490; background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,0.12); }

.gw-gen__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; align-items: start; }

.gw-gen-panel {
    background: #fff; border: 1px solid var(--gw-gray-200); border-radius: 16px; padding: 20px;
    box-shadow: 0 1px 2px rgba(16,24,40,0.04);
}
.gw-gen-panel__title { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 14px; font-weight: 700; color: var(--gink); }

.gw-gen__loading, .gw-gen__empty { padding: 30px; text-align: center; color: var(--gw-gray-500); font-size: 14px; }
.gw-gen__empty .anticon { font-size: 26px; color: var(--gw-gray-300); display: block; margin-bottom: 8px; }
.gw-gen__empty p { margin: 0; }

/* Item list */
.gw-gen-list { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.gw-gen-list__row {
    display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; cursor: pointer;
    border: 1px solid transparent; transition: background 0.12s, border-color 0.12s;
}
.gw-gen-list__row:hover { background: var(--gw-gray-50); }
.gw-gen-list__row.is-sel { background: rgba(6,182,212,0.08); border-color: rgba(6,182,212,0.4); }
.gw-gen-list__radio { width: 16px; height: 16px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--gw-gray-300); }
.gw-gen-list__row.is-sel .gw-gen-list__radio { border-color: var(--g1); background: radial-gradient(circle, var(--g1) 40%, transparent 44%); }
.gw-gen-list__name { flex: 1; font-size: 13.5px; color: var(--gink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gw-gen-list__done { color: var(--gw-success); font-size: 15px; }

/* Options */
.gw-gen-opts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.gw-gen-opt {
    text-align: left; padding: 12px 14px; border-radius: 11px; cursor: pointer;
    background: #fff; border: 1px solid var(--gw-gray-200); transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
    display: flex; flex-direction: column; gap: 2px;
}
.gw-gen-opt:hover { border-color: var(--gw-gray-300); }
.gw-gen-opt.is-sel { border-color: var(--g1); background: rgba(6,182,212,0.06); box-shadow: 0 0 0 3px rgba(6,182,212,0.10); }
.gw-gen-opt__label { font-size: 14px; font-weight: 700; color: var(--gink); }
.gw-gen-opt__desc { font-size: 12.5px; color: var(--gw-gray-500); }

/* Fields */
.gw-gen-field { display: block; position: relative; margin-bottom: 16px; }
.gw-gen-field__label { display: block; font-size: 12.5px; font-weight: 600; color: var(--gw-gray-700); margin-bottom: 6px; }
.gw-gen-field__label em { color: var(--gw-gray-400); font-style: normal; font-weight: 400; }
.gw-gen-field__count { position: absolute; right: 2px; bottom: -16px; font-size: 11px; color: var(--gw-gray-400); }
.gw-gen-select, .gw-gen-textarea {
    width: 100%; padding: 10px 13px; font-size: 14px; color: var(--gink);
    border: 1px solid var(--gw-gray-200); border-radius: 10px; background: #fff; font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.gw-gen-select:focus, .gw-gen-textarea:focus { outline: none; border-color: var(--g1); box-shadow: 0 0 0 3px rgba(6,182,212,0.14); }
.gw-gen-textarea { min-height: 92px; resize: vertical; }

/* Buttons */
.gw-gen__go {
    width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 20px; margin-top: 6px; border: 0; border-radius: 12px; cursor: pointer;
    font-size: 14.5px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--g1), var(--g2));
    box-shadow: 0 12px 24px -12px rgba(59,130,246,0.7);
    transition: transform 0.12s, filter 0.2s;
}
.gw-gen__go:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
.gw-gen__go:disabled { opacity: 0.55; cursor: default; }
.gw-gen__go--sm { width: auto; padding: 10px 18px; margin: 0; font-size: 13.5px; }
.gw-gen__ghost {
    display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 11px; cursor: pointer;
    font-size: 13.5px; font-weight: 600; color: var(--gw-gray-700); background: #fff; border: 1px solid var(--gw-gray-200);
    transition: background 0.15s;
}
.gw-gen__ghost:hover { background: var(--gw-gray-50); }
.gw-gen__selhint { margin: 10px 0 0; font-size: 12.5px; color: var(--gw-gray-500); text-align: center; }

/* Result */
.gw-gen-result { margin-top: 18px; border-radius: 16px; padding: 20px; border: 1px solid var(--gw-gray-200); background: #fff; }
.gw-gen-result.is-ok { border-color: rgba(16,185,129,0.35); }
.gw-gen-result.is-err { border-color: rgba(239,68,68,0.35); background: #fef2f2; }
.gw-gen-result__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.gw-gen-result__head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 700; }
.gw-gen-result.is-ok h3 { color: #065f46; }
.gw-gen-result.is-err h3 { color: #991b1b; }
.gw-gen-result__applied { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: var(--gw-success); }
.gw-gen-result__meta { display: flex; gap: 18px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px; border-radius: 10px; font-size: 13px; color: var(--gw-gray-700); background: rgba(6,182,212,0.08); }
.gw-gen-result__bal { margin-left: auto; color: #0e7490; }
.gw-gen-output { background: var(--gw-gray-50); border: 1px solid var(--gw-gray-200); border-radius: 12px; padding: 16px; max-height: 380px; overflow-y: auto; }
.gw-gen-output__label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; color: var(--gw-gray-500); margin-bottom: 10px; }
.gw-gen-output__title { font-size: 18px; font-weight: 700; color: var(--gink); }
.gw-gen-output__body { font-size: 14px; line-height: 1.7; color: var(--gw-gray-700); }
.gw-gen-result__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

@media (max-width: 900px) {
    .gw-gen__grid { grid-template-columns: 1fr; }
}

