/* Campaign Studio v1 Enhanced Styles */

/* Campaign Studio Tabs */
.campaign-studio-tabs {
    background: #f9fafb;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    margin: 2rem 0;
}

.studio-tab-nav {
    display: flex;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.studio-tab-btn {
    flex: 1;
    padding: 1rem 0.75rem;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    font-size: 0.85rem;
    min-width: 0;
}

.studio-tab-btn:hover {
    background: #f9fafb;
    color: #374151;
}

.studio-tab-btn.active {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
    background: #f9fafb;
    font-weight: 600;
}

.studio-tab-btn i {
    font-size: 1rem;
}

.studio-tab-content {
    padding: 2rem;
    min-height: 600px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Enhanced Suite Nodes */
.suite-node.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.suite-node.clickable:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.15);
    border-color: #4f46e5;
}

.node-status {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #4f46e5;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Cross-Suite Insights */
.cross-suite-insights {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 2px solid #fbbf24;
}

.cross-suite-insights h4 {
    color: #92400e;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.insight-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.insight-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fffbeb;
    border-radius: 0.5rem;
    border-left: 4px solid #f59e0b;
}

.insight-card i {
    color: #f59e0b;
    font-size: 1.2rem;
}

.insight-card span {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Workspace Headers */
.workspace-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.workspace-header h3 {
    color: #374151;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.workspace-subtitle {
    color: #6b7280;
    font-size: 1rem;
}

/* Audience Studio Specific */
.audience-studio-workspace {
    padding: 0;
}

.audience-journey-section,
.audience-segments-section {
    margin-bottom: 2rem;
}

.audience-journey-section h4,
.audience-segments-section h4 {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.audience-studio-workspace .journey-canvas-compact {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-radius: 1rem;
    padding: 2rem;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.audience-studio-workspace .journey-flow-horizontal {
    display: flex !important;
    align-items: center;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.audience-studio-workspace .journey-step-card {
    background: white !important;
    border-radius: 1rem !important;
    padding: 1.5rem !important;
    border: 2px solid #e5e7eb !important;
    min-width: 200px !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

.audience-studio-workspace .journey-step-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    border-color: #4f46e5 !important;
}

.audience-studio-workspace .journey-step-card.entry {
    border-color: #10b981 !important;
    background: linear-gradient(135deg, #ecfdf5, #ffffff) !important;
}

.audience-studio-workspace .journey-step-card.email {
    border-color: #3b82f6 !important;
    background: linear-gradient(135deg, #eff6ff, #ffffff) !important;
}

.audience-studio-workspace .journey-step-card.push {
    border-color: #f59e0b !important;
    background: linear-gradient(135deg, #fffbeb, #ffffff) !important;
}

.audience-studio-workspace .journey-step-card.retarget {
    border-color: #8b5cf6 !important;
    background: linear-gradient(135deg, #f3e8ff, #ffffff) !important;
}

.audience-studio-workspace .journey-step-card.conversion {
    border-color: #ef4444 !important;
    background: linear-gradient(135deg, #fef2f2, #ffffff) !important;
}

.audience-studio-workspace .step-badge {
    position: absolute !important;
    top: -10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #4f46e5 !important;
    color: white !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 1rem !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    z-index: 10 !important;
}

.audience-studio-workspace .journey-step-card.entry .step-badge {
    background: #10b981 !important;
}

.audience-studio-workspace .journey-step-card.email .step-badge {
    background: #3b82f6 !important;
}

.audience-studio-workspace .journey-step-card.push .step-badge {
    background: #f59e0b !important;
}

.audience-studio-workspace .journey-step-card.retarget .step-badge {
    background: #8b5cf6 !important;
}

.audience-studio-workspace .journey-step-card.conversion .step-badge {
    background: #ef4444 !important;
}

.audience-studio-workspace .step-icon-wrapper {
    margin: 1rem 0 0.75rem 0 !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3) !important;
}

.audience-studio-workspace .journey-step-card.entry .step-icon-wrapper {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

.audience-studio-workspace .journey-step-card.email .step-icon-wrapper {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.audience-studio-workspace .journey-step-card.push .step-icon-wrapper {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3) !important;
}

.audience-studio-workspace .journey-step-card.retarget .step-icon-wrapper {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3) !important;
}

.audience-studio-workspace .journey-step-card.conversion .step-icon-wrapper {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.step-icon {
    font-size: 1.5rem;
}

.step-content h5 {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.step-content p {
    color: #6b7280;
    font-size: 0.85rem;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.step-timing {
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.step-metrics {
    margin-top: 1rem;
    width: 100%;
}

.step-metrics .metric-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.step-metrics .metric-label {
    color: #6b7280;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step-metrics .metric-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.step-metrics .metric-value.success {
    color: #10b981;
}

.step-metrics .metric-value.good {
    color: #3b82f6;
}

.step-metrics .metric-value.moderate {
    color: #f59e0b;
}

.journey-connector-h {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0.5rem;
    flex-shrink: 0;
}

.connector-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #e5e7eb, #4f46e5, #e5e7eb);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.connector-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.connector-arrow {
    color: #4f46e5;
    font-size: 1.2rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.journey-insights {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.journey-insights .insight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.journey-insights .insight-item:last-child {
    border-bottom: none;
}

.journey-insights .insight-item i {
    color: #4f46e5;
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.journey-insights .insight-item span {
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.4;
}

.segments-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.ai-recommendations {
    background: #f0f9ff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #bfdbfe;
}

.ai-recommendations h4 {
    color: #1e40af;
    margin-bottom: 1rem;
}

.recommendation-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recommendation-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 0.5rem;
    color: #374151;
    font-size: 0.9rem;
}

.recommendation-item i {
    color: #3b82f6;
}

/* Creative Studio Specific */
.creative-studio-workspace {
    padding: 0;
}

.creative-assets-section {
    display: grid;
    gap: 2rem;
}

.asset-library-section {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.asset-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.asset-item-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.asset-item-compact:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.asset-preview-compact {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.asset-preview-compact.logo { background: #4f46e5; }
.asset-preview-compact.colors { background: linear-gradient(45deg, #ef4444, #f59e0b, #10b981, #3b82f6); }
.asset-preview-compact.typography { background: #6b7280; }
.asset-preview-compact.products { background: #8b5cf6; }

.asset-item-compact span {
    font-size: 0.8rem;
    color: #374151;
    text-align: center;
}

.asset-status {
    font-size: 0.7rem;
    color: #10b981;
    font-weight: 600;
}

.generated-variants-section {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.variant-performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.variant-card-performance {
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.25rem;
    background: #f9fafb;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.variant-card-performance:hover {
    border-color: #4f46e5;
    transform: translateY(-2px);
}

.variant-card-performance.primary {
    border-color: #f59e0b;
    background: #fffbeb;
}

.variant-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.variant-name {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
    flex: 1;
    line-height: 1.3;
}

.performance-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.performance-badge.top {
    background: #fbbf24;
    color: white;
}

.performance-badge {
    background: #e5e7eb;
    color: #6b7280;
}

.variant-preview-performance {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
    flex: 1;
}

.preview-content-compact {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.preview-image {
    font-size: 2rem;
    flex-shrink: 0;
}

.preview-text h6 {
    color: #374151;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    margin-top: 0;
    font-weight: 600;
}

.preview-text p {
    color: #6b7280;
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}

.variant-metrics-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metric-label {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.metric-value {
    color: #374151;
    font-size: 0.9rem;
    font-weight: 600;
}

.creative-testing-section {
    background: #f0fdf4;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #bbf7d0;
    margin-top: 1rem;
}

.testing-configuration {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.test-config-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 0.5rem;
}

.config-label {
    font-size: 0.85rem;
    color: #6b7280;
}

.config-value {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

/* Paid Media Specific */
.paid-media-workspace {
    padding: 0;
}

.budget-allocation-section {
    margin-bottom: 2rem;
}

.budget-overview {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.total-budget {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.budget-label {
    color: #6b7280;
    font-size: 1rem;
}

.budget-value {
    color: #4f46e5;
    font-size: 2.5rem;
    font-weight: 700;
}

.platform-budget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.platform-budget-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.platform-budget-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.platform-logo {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.platform-logo.google { background: #4285f4; }
.platform-logo.meta { background: #1877f2; }
.platform-logo.tiktok { background: #000000; }
.platform-logo.other { background: #6b7280; }

.platform-info h5 {
    color: #374151;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.platform-type {
    color: #6b7280;
    font-size: 0.85rem;
}

.budget-amount {
    color: #4f46e5;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.budget-breakdown {
    margin-bottom: 1rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    color: #6b7280;
    font-size: 0.85rem;
}

.platform-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
}

.metric-small {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metric-small .label {
    color: #6b7280;
    font-size: 0.75rem;
}

.metric-small .value {
    color: #374151;
    font-weight: 600;
    font-size: 0.9rem;
}

.campaign-setup-section {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid #e5e7eb;
}

.setup-status-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.setup-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
}

.setup-item.completed {
    background: #dcfce7;
    color: #166534;
}

.setup-item.in-progress {
    background: #fef3c7;
    color: #92400e;
}

.setup-item.pending {
    background: #f3f4f6;
    color: #6b7280;
}

.optimization-features {
    background: #f0f9ff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #bfdbfe;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.feature-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
}

.feature-card i {
    color: #3b82f6;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.feature-info h5 {
    color: #374151;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.feature-info p {
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Service Suite Specific */
.service-suite-workspace {
    padding: 0;
}

.omnichannel-integration {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.integration-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.integration-node {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    min-width: 150px;
    border: 2px solid #e5e7eb;
}

.integration-node.digital { border-color: #3b82f6; }
.integration-node.physical { border-color: #10b981; }
.integration-node.service { border-color: #f59e0b; }

.integration-node .node-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.integration-node h5 {
    color: #374151;
    margin-bottom: 0.25rem;
}

.integration-node p {
    color: #6b7280;
    font-size: 0.85rem;
}

.integration-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: #6b7280;
    font-size: 0.8rem;
}

.integration-connector i {
    font-size: 1.2rem;
    color: #4f46e5;
}

.store-integration-section {
    margin-bottom: 2rem;
}

.store-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.store-feature-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.store-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feature-header i {
    color: #4f46e5;
    font-size: 1.2rem;
}

.feature-header h5 {
    color: #374151;
    font-size: 1rem;
}

.feature-content p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.feature-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.customer-service-section {
    background: #f0fdf4;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #bbf7d0;
    margin-bottom: 2rem;
}

.service-capabilities {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-capability {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
}

.capability-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.capability-header i {
    color: #10b981;
}

.capability-header span {
    font-weight: 600;
    color: #374151;
}

.capability-details p {
    color: #6b7280;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.capability-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.capability-stats span {
    color: #10b981;
    font-size: 0.85rem;
    font-weight: 500;
}

.attribution-tracking {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.attribution-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.attribution-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4f46e5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.step-description {
    text-align: center;
}

.step-description h5 {
    color: #374151;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.step-description p {
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.3;
}

.attribution-arrow {
    color: #6b7280;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Personalization Studio Specific */
.personalization-studio-workspace {
    padding: 0;
}

.personalization-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.visitor-segmentation-section,
.dynamic-content-section,
.behavioral-triggers-section,
.ai-optimization-section,
.personalization-performance {
    margin-bottom: 2rem;
}

.visitor-segmentation-section h4,
.dynamic-content-section h4,
.behavioral-triggers-section h4,
.ai-optimization-section h4,
.personalization-performance h4 {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.visitor-segments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.visitor-segment-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
}

.visitor-segment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.visitor-segment-card.new-visitors {
    border-color: #3b82f6;
}

.visitor-segment-card.returning-visitors {
    border-color: #10b981;
}

.visitor-segment-card.campaign-visitors {
    border-color: #f59e0b;
}

.segment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.segment-header i {
    color: #4f46e5;
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.segment-header h5 {
    color: #374151;
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
}

.segment-percentage {
    background: #4f46e5;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.segment-personalization {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.personalization-rule {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.rule-label {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 80px;
}

.rule-value {
    color: #374151;
    font-size: 0.9rem;
    text-align: right;
    flex: 1;
}

.content-zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.content-zone-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.content-zone-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.zone-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.zone-header i {
    color: #4f46e5;
    font-size: 1.2rem;
}

.zone-header h5 {
    color: #374151;
    font-size: 1rem;
    margin: 0;
}

.zone-variants {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.variant-option {
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.variant-option.active {
    border-color: #4f46e5;
    background: #f9fafb;
}

.variant-preview {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.variant-performance {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.performance-metric {
    color: #6b7280;
    font-size: 0.85rem;
}

.performance-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    background: #e5e7eb;
    color: #6b7280;
}

.performance-badge.winner {
    background: #fbbf24;
    color: white;
}

.zone-rules {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rule-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.rule-condition {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 500;
}

.rule-action {
    color: #374151;
    font-size: 0.85rem;
}

.popup-triggers {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trigger-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.trigger-condition {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 500;
}

.trigger-offer {
    color: #10b981;
    font-size: 0.85rem;
    font-weight: 600;
}

.triggers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trigger-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.trigger-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.trigger-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.trigger-header i {
    color: #4f46e5;
    font-size: 1.2rem;
}

.trigger-name {
    color: #374151;
    font-weight: 600;
    flex: 1;
}

.trigger-status {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.trigger-status.active {
    background: #10b981;
    color: white;
}

.trigger-details p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.trigger-metrics {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.trigger-metrics .metric {
    color: #10b981;
    font-size: 0.85rem;
    font-weight: 500;
}

.optimization-insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.insight-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    display: flex;
    gap: 1rem;
    transition: all 0.2s ease;
}

.insight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.insight-card i {
    color: #4f46e5;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.insight-content h5 {
    color: #374151;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.insight-content p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.insight-metrics {
    display: flex;
    gap: 0.5rem;
}

.metric-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.metric-badge.positive {
    background: #10b981;
    color: white;
}

.performance-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.perf-metric-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: all 0.2s ease;
}

.perf-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.perf-metric-card .metric-value {
    color: #4f46e5;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.perf-metric-card .metric-label {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.perf-metric-card .metric-change {
    font-size: 0.8rem;
    font-weight: 600;
}

.perf-metric-card .metric-change.positive {
    color: #10b981;
}

.perf-metric-card .metric-change.neutral {
    color: #6b7280;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .studio-tab-nav {
        flex-wrap: wrap;
    }

    .studio-tab-btn {
        flex: 1 1 33.333%;
        min-width: 140px;
        font-size: 0.85rem;
        padding: 0.875rem 0.75rem;
    }
}

@media (max-width: 1024px) {
    .studio-tab-btn {
        flex: 1 1 50%;
        min-width: 120px;
    }

    .platform-budget-grid,
    .store-features-grid,
    .feature-grid,
    .visitor-segments-grid,
    .content-zones-grid,
    .optimization-insights,
    .performance-metrics-grid {
        grid-template-columns: 1fr;
    }

    .integration-flow,
    .attribution-flow {
        flex-direction: column;
    }

    .integration-connector {
        transform: rotate(90deg);
    }

    .attribution-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .studio-tab-content {
        padding: 1rem;
    }

    .studio-tab-btn {
        flex: 1 1 50%;
        font-size: 0.8rem;
        padding: 0.75rem 0.5rem;
        min-width: 100px;
    }

    .variant-performance-grid,
    .segments-grid-compact,
    .visitor-segments-grid,
    .content-zones-grid,
    .triggers-list {
        grid-template-columns: 1fr;
    }

    .trigger-metrics {
        flex-direction: column;
        gap: 0.5rem;
    }

    .journey-flow-horizontal {
        flex-direction: column;
        gap: 1.5rem;
    }

    .journey-connector-h {
        flex-direction: row;
        margin: 0;
    }

    .connector-line {
        width: 3px;
        height: 40px;
        background: linear-gradient(180deg, #e5e7eb, #4f46e5, #e5e7eb);
    }

    .connector-arrow {
        transform: rotate(90deg);
    }

    .journey-step-card {
        min-width: 250px;
        width: 100%;
    }

    .workspace-header h3 {
        font-size: 1.2rem;
    }

    .budget-value {
        font-size: 2rem;
    }
}