/* css/marketing.css - Marketing Command Hub Styling */

.marketing-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px clamp(16px, 2vw, 36px);
    box-sizing: border-box;
}

.marketing-header {
    margin-bottom: 24px;
}

.marketing-header h1 {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.marketing-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* MARKETING MAIN TABS */
.marketing-nav-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 28px;
    background: transparent;
}

.marketing-nav-tab {
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: -2px;
}

.marketing-nav-tab:hover {
    color: var(--text-primary);
}

.marketing-nav-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.marketing-tab-pane {
    display: none;
}

.marketing-tab-pane.active {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ======================================================= */
/* TAB 1: GOOGLE SEO & RANK OPTIMIZER                      */
/* ======================================================= */
.domain-switcher-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px 18px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
}

.domain-switcher-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.domain-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.domain-pill-btn {
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.domain-pill-btn:hover {
    background: #E5E7EB;
    color: var(--text-primary);
}

.domain-pill-btn.active {
    background: #1E293B;
    border-color: #1E293B;
    color: #FFFFFF;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.seo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .seo-grid {
        grid-template-columns: 1fr;
    }
}

.seo-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.seo-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.seo-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* GOOGLE SERP SIMULATOR */
.serp-preview-box {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.serp-url-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #202124;
    margin-bottom: 4px;
}

.serp-favicon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2563EB;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: 700;
}

.serp-site-name {
    font-weight: 500;
    color: #202124;
}

.serp-url-path {
    color: #5F6368;
    font-size: 0.78rem;
}

.serp-title {
    font-size: 1.25rem;
    line-height: 1.3;
    color: #1A0DAB;
    cursor: pointer;
    font-weight: 400;
    margin-bottom: 6px;
    word-break: break-word;
}

.serp-title:hover {
    text-decoration: underline;
}

.serp-snippet {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #4D5156;
}

/* FORM CONTROLS FOR SEO */
.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.char-counter {
    font-weight: 500;
    color: var(--text-secondary);
}

.char-counter.good { color: #059669; }
.char-counter.warn { color: #D97706; }
.char-counter.over { color: #DC2626; }

.form-input, .form-textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.88rem;
    font-family: inherit;
    background: #FFFFFF;
    transition: border-color 0.15s;
    outline: none;
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* LIVE GOOGLE SEARCH & INDEXATION AUDIT CARD */
.index-audit-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 14px;
}

.index-audit-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.index-status-pill {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-indexed { background: #D1FAE5; color: #065F46; }
.status-checking { background: #FEF3C7; color: #92400E; }

.google-query-box {
    display: flex;
    gap: 8px;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 12px;
}

.google-query-input {
    flex: 1;
    border: none;
    font-size: 0.85rem;
    font-family: monospace;
    outline: none;
}

.btn-google-search {
    background: #4285F4;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-google-search:hover {
    background: #3367D6;
    color: white;
}

.audit-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.audit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    padding: 6px 0;
    border-bottom: 1px dashed #E2E8F0;
}

.audit-item:last-child { border-bottom: none; }

.audit-status-badge {
    font-weight: 700;
    font-size: 0.75rem;
}

/* KEYWORDS TRACKER TABLE */
.keyword-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.keyword-table th {
    background: #F8FAFC;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.keyword-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.intent-tag {
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.intent-commercial { background: #EDE9FE; color: #6D28D9; }
.intent-transactional { background: #D1FAE5; color: #047857; }
.intent-informational { background: #E0F2FE; color: #0369A1; }

.btn-check-rank {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid #CBD5E1;
    background: white;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.btn-check-rank:hover {
    background: #F1F5F9;
    border-color: #94A3B8;
}

/* ======================================================= */
/* TAB 2: ZOHO SOCIAL MULTI-CHANNEL BROADCASTER             */
/* ======================================================= */
.social-channels-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 14px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 12px;
}

.zoho-bridge-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zoho-badge {
    background: #FF4747;
    color: white;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.channel-status-chips {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.channel-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: #F8FAFC;
    color: var(--text-primary);
}

.channel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
}

.social-broadcaster-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
}

@media (max-width: 1024px) {
    .social-broadcaster-layout {
        grid-template-columns: 1fr;
    }
}

/* COMPOSER */
.composer-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.composer-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.network-selector-checkboxes {
    display: flex;
    gap: 12px;
    align-items: center;
}

.network-check-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.ai-prompts-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.ai-prompt-btn {
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    border-radius: 16px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s;
}

.ai-prompt-btn:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.composer-textarea {
    width: 100%;
    min-height: 140px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    margin-bottom: 12px;
    transition: border-color 0.15s;
}

.composer-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.composer-footer-counters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.media-upload-zone {
    border: 2px dashed #CBD5E1;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    background: #F8FAFC;
    cursor: pointer;
    margin-bottom: 18px;
    transition: all 0.15s;
}

.media-upload-zone:hover {
    border-color: var(--primary-color);
    background: #F0F7FF;
}

.media-preview-container {
    margin-top: 10px;
    position: relative;
    display: inline-block;
}

.media-preview-img {
    max-height: 140px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.btn-remove-media {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.composer-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.btn-publish-all {
    background: #2563EB;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
    transition: background 0.15s;
}

.btn-publish-all:hover {
    background: #1D4ED8;
}

.btn-schedule {
    background: #F1F5F9;
    color: #334155;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-schedule:hover {
    background: #E2E8F0;
}

/* MULTI-PLATFORM LIVE PREVIEWS */
.preview-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
}

.preview-tab-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.preview-tab-btn.active {
    background: #E0F2FE;
    color: #0369A1;
}

/* INSTAGRAM PREVIEW CARD */
.ig-card {
    background: #FFFFFF;
    border: 1px solid #DBDBDB;
    border-radius: 8px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ig-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
}

.ig-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
    padding: 2px;
}

.ig-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #000000;
}

.ig-user-info {
    font-size: 0.85rem;
    font-weight: 600;
    color: #262626;
}

.ig-media-box {
    width: 100%;
    min-height: 240px;
    background: #FAFAFA;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #EFEFEF;
    border-bottom: 1px solid #EFEFEF;
    overflow: hidden;
}

.ig-media-box img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.ig-actions {
    padding: 8px 14px;
    display: flex;
    gap: 14px;
    color: #262626;
    font-size: 1.1rem;
}

.ig-caption-box {
    padding: 0 14px 14px 14px;
    font-size: 0.85rem;
    color: #262626;
    line-height: 1.4;
    word-break: break-word;
}

/* LINKEDIN PREVIEW CARD */
.li-card {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 14px;
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans", Cantarell, "Droid Sans", "Lucida Grande", Helvetica, Arial, sans-serif;
}

.li-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.li-logo {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: #0A66C2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
}

.li-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(0,0,0,0.9);
}

.li-subtitle {
    font-size: 0.75rem;
    color: rgba(0,0,0,0.6);
}

.li-content {
    font-size: 0.85rem;
    color: rgba(0,0,0,0.9);
    line-height: 1.4;
    margin-bottom: 10px;
    white-space: pre-wrap;
    word-break: break-word;
}

/* X (TWITTER) PREVIEW CARD */
.x-card {
    background: #FFFFFF;
    border: 1px solid #CFD9DE;
    border-radius: 12px;
    padding: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.x-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.x-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #000000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.x-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #0F1419;
}

.x-handle {
    color: #536471;
    font-size: 0.85rem;
}

.x-content {
    font-size: 0.92rem;
    color: #0F1419;
    line-height: 1.4;
    margin-bottom: 10px;
    word-break: break-word;
}

/* ======================================================= */
/* TAB 3: INTEGRATED ECOSYSTEM LAUNCHPAD                    */
/* ======================================================= */
.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.ecosystem-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s, box-shadow 0.15s;
}

.ecosystem-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.ecosystem-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.ecosystem-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.ecosystem-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 20px;
}

.ecosystem-btn {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.15s;
}

.ecosystem-btn:hover {
    opacity: 0.9;
}

/* ======================================================= */
/* GEMINI AI VISUAL STUDIO & ZOHO INTEGRATION STYLING      */
/* ======================================================= */

.btn-config-pill {
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-config-pill:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
}

/* Gemini Banner in Composer */
.gemini-visual-banner {
    background: linear-gradient(135deg, #F0F4FF 0%, #FAF5FF 100%);
    border: 1px solid #D6E4FF;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 12px;
    flex-wrap: wrap;
}

.gemini-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gemini-sparkle-badge {
    background: linear-gradient(135deg, #2563EB, #7C3AED);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-gemini-trigger {
    background: linear-gradient(135deg, #2563EB 0%, #6366F1 50%, #8B5CF6 100%);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25);
    transition: all 0.15s ease;
}

.btn-gemini-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.35);
}

/* MODAL SYSTEM */
.marketing-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.marketing-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.marketing-modal-card {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 840px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.96);
    transition: transform 0.2s ease;
}

.marketing-modal-backdrop.active .marketing-modal-card {
    transform: scale(1);
}

.marketing-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F8FAFC;
}

.marketing-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #64748B;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.15s;
    line-height: 1;
}

.btn-modal-close:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.marketing-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.marketing-modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    background: #F8FAFC;
}

/* GEMINI STUDIO LAYOUT */
.gemini-studio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .gemini-studio-grid {
        grid-template-columns: 1fr;
    }
}

.gemini-prompt-box {
    width: 100%;
    min-height: 90px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    margin-bottom: 12px;
    transition: border-color 0.15s;
}

.gemini-prompt-box:focus {
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.aspect-ratio-selector, .style-preset-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.ratio-btn, .style-btn {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: #F8FAFC;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s;
}

.ratio-btn:hover, .style-btn:hover {
    background: #F1F5F9;
}

.ratio-btn.active, .style-btn.active {
    background: #6366F1;
    border-color: #6366F1;
    color: white;
}

.gemini-image-preview-area {
    background: #0F172A;
    border-radius: 8px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 12px;
    color: white;
    text-align: center;
}

.gemini-preview-img {
    max-width: 100%;
    max-height: 260px;
    border-radius: 6px;
    object-fit: contain;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.gemini-loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.gemini-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #6366F1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.btn-action-primary {
    background: #2563EB;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-action-primary:hover {
    background: #1D4ED8;
}

.btn-action-secondary {
    background: #FFFFFF;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.15s;
}

.btn-action-secondary:hover {
    background: #F8FAFC;
}

.status-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
}
.badge-active { background: #D1FAE5; color: #047857; }
.badge-not-set { background: #FEF3C7; color: #B45309; }

/* AI PRODUCT CLEAN IMAGE GENERATOR STUDIO CARD */
.ai-product-studio-card {
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%);
    border: 1.5px solid #C7D2FE;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.08);
}

.studio-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.ref-dropzone {
    border: 2px dashed #A5B4FC;
    border-radius: 8px;
    padding: 14px;
    background: #FFFFFF;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ref-dropzone:hover {
    border-color: #6366F1;
    background: #F8FAFC;
}

.btn-make-clean {
    width: 100%;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    transition: all 0.2s ease;
}

.btn-make-clean:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

.btn-autofit-x {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    color: #92400E;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.72rem;
    cursor: pointer;
    margin-left: 8px;
    transition: background 0.15s;
}

.btn-autofit-x:hover {
    background: #FDE68A;
}

@keyframes readyGlow {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.btn-publish-all.ready-pulse {
    background: #059669 !important;
    animation: readyGlow 1.5s infinite;
}


