.gpt5-ajax-tabs {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    font-family: inherit;
}

.gpt5-tabs-header {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.gpt5-tab {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .2s ease;
    font-weight: 600;
}

.gpt5-tab.is-active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.gpt5-tabs-content {
    padding: 16px;
    min-height: 80px;
}

.gpt5-tab-panel { display: none; }
.gpt5-tab-panel.is-active { display: block; }
.gpt5-tab-panel.is-loading { opacity: 0.6; }

.gpt5-error {
    color: #dc2626;
    font-weight: 600;
}

/* Vertical Mode */
.gpt5-ajax-tabs.gpt5-orient-vertical {
    display: flex;
}

.gpt5-ajax-tabs.gpt5-orient-vertical .gpt5-tabs-header {
    flex-direction: column;
    border-bottom: none;
    border-right: 1px solid #e5e7eb;
    min-width: 180px;
}

.gpt5-ajax-tabs.gpt5-orient-vertical .gpt5-tabs-content {
    flex: 1;
}
/* موبایل: تب‌های عمودی در بالا */
@media (max-width: 768px) {
  .gpt5-ajax-tabs.gpt5-orient-vertical {
    display: flex;
    flex-direction: column; /* تب‌ها بالا، محتوا پایین */
  }

  .gpt5-ajax-tabs.gpt5-orient-vertical .gpt5-tabs-header {
    flex-direction: column;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    min-width: 0;
  }

  .gpt5-ajax-tabs.gpt5-orient-vertical .gpt5-tab {
    width: 100%;
    text-align: right;
  }
}
