/* ==========================================================================
   NexGen Elements — Pricing Tables, Alert Boxes, Video, Typography,
   Accordions, Styled Lists, Data Tables, Tabs
   ========================================================================== */

/* ── Pricing Table ──────────────────────────────────────────────────────── */
.nexgen-pricing-table {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.75rem;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: box-shadow .25s, transform .2s;
}
.nexgen-pricing-table:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); transform: translateY(-2px); }

/* Styles */
.nexgen-pricing-modern  { border: none; box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.nexgen-pricing-flat    { border-radius: 6px; box-shadow: none; }
.nexgen-pricing-gradient { background: linear-gradient(135deg, var(--nexgen-primary,#3b82f6), #7c3aed); color: #fff; border: none; }
.nexgen-pricing-gradient .nexgen-pricing-name, .nexgen-pricing-gradient .nexgen-pricing-desc,
.nexgen-pricing-gradient .nexgen-pricing-period, .nexgen-pricing-gradient .nexgen-pricing-currency { color: rgba(255,255,255,.85); }
.nexgen-pricing-gradient .nexgen-pricing-amount { color: #fff; }
.nexgen-pricing-bordered { border: 2px solid var(--nexgen-primary,#3b82f6); }
.nexgen-pricing-glass    { background: rgba(255,255,255,.15); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.3); }
.nexgen-pricing-minimal  { border: none; box-shadow: none; background: transparent; }
.nexgen-pricing-dark     { background: #1e293b; color: #f1f5f9; border-color: #334155; }
.nexgen-pricing-dark .nexgen-pricing-features li { color: #cbd5e1; }

/* Featured */
.nexgen-pricing-featured { border-color: var(--nexgen-primary,#3b82f6); border-width: 2px; }
.nexgen-pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--nexgen-primary,#3b82f6);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: .3rem 1rem;
    border-radius: 99px;
    white-space: nowrap;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Header */
.nexgen-pricing-header { text-align: center; padding-bottom: 1.25rem; }
.nexgen-pricing-icon   { font-size: 2.5rem; color: var(--nexgen-primary,#3b82f6); margin-bottom: .75rem; }
.nexgen-pricing-icon svg { width: 1em; height: 1em; }
.nexgen-pricing-name   { font-size: 1.25rem; font-weight: 700; margin: 0 0 .35rem; }
.nexgen-pricing-desc   { font-size: .875rem; color: #6b7280; margin: 0; }

/* Price */
.nexgen-pricing-price {
    text-align: center;
    padding: 1.25rem 0;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 1.25rem;
}
.nexgen-pricing-original {
    display: block;
    font-size: .875rem;
    color: #9ca3af;
    text-decoration: line-through;
    margin-bottom: .25rem;
}
.nexgen-pricing-amount-wrap { display: inline-flex; align-items: flex-start; line-height: 1; }
.nexgen-pricing-currency { font-size: 1.25rem; font-weight: 600; margin-top: .5rem; }
.nexgen-pricing-amount   { font-size: 3.5rem; font-weight: 800; line-height: 1; }
.nexgen-pricing-period   { display: block; font-size: .85rem; color: #6b7280; margin-top: .35rem; }
.nexgen-pricing-note     { font-size: .78rem; color: #9ca3af; margin-top: .5rem; }

/* Features */
.nexgen-pricing-features        { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.nexgen-pricing-features-heading { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #9ca3af; margin-bottom: .5rem; font-weight: 700; }
.nexgen-pricing-feature          { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; }
.nexgen-pricing-feature.nexgen-feature-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #9ca3af; border-top: 1px solid #f3f4f6; padding-top: .75rem; margin-top: .25rem; }
.nexgen-feature-icon    { flex-shrink: 0; width: 1.1rem; text-align: center; font-size: .85rem; font-weight: 700; }
.nexgen-feature-yes .nexgen-feature-icon  { color: #10b981; }
.nexgen-feature-no .nexgen-feature-icon   { color: #ef4444; }
.nexgen-feature-partial .nexgen-feature-icon { color: #f59e0b; }
.nexgen-feature-tooltip {
    display: inline-flex; align-items: center; justify-content: center;
    width: 14px; height: 14px; border-radius: 50%;
    background: #e5e7eb; color: #6b7280; font-size: .65rem;
    cursor: help; margin-left: .25rem; vertical-align: middle;
}

/* Footer */
.nexgen-pricing-footer { margin-top: auto; }
.nexgen-pricing-btn-note { text-align: center; font-size: .78rem; color: #9ca3af; margin-top: .5rem; }

/* Pricing toggle */
.nexgen-pricing-toggle-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.nexgen-pricing-toggle-label { font-size: .9rem; font-weight: 500; color: #374151; }
.nexgen-pricing-toggle-label.active { color: var(--nexgen-primary,#3b82f6); font-weight: 700; }
.nexgen-pricing-toggle-switch {
    position: relative;
    width: 48px; height: 26px;
    background: var(--nexgen-primary,#3b82f6);
    border-radius: 99px; cursor: pointer; border: none;
}
.nexgen-pricing-toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 20px; height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
}
.nexgen-pricing-toggle-switch.yearly::after { transform: translateX(22px); }

/* ── Alert Box ──────────────────────────────────────────────────────────── */
.nexgen-alert-box {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border: 1px solid transparent;
    position: relative;
    align-items: flex-start;
}

/* Types — solid */
.nexgen-alert-success.nexgen-alert-solid { background: #d1fae5; border-color: #10b981; color: #065f46; }
.nexgen-alert-warning.nexgen-alert-solid { background: #fef3c7; border-color: #f59e0b; color: #78350f; }
.nexgen-alert-error.nexgen-alert-solid   { background: #fee2e2; border-color: #ef4444; color: #7f1d1d; }
.nexgen-alert-info.nexgen-alert-solid    { background: #dbeafe; border-color: #3b82f6; color: #1e3a5f; }

/* Outline */
.nexgen-alert-outline { background: transparent !important; }
.nexgen-alert-success.nexgen-alert-outline { border-color: #10b981; color: #065f46; }
.nexgen-alert-warning.nexgen-alert-outline { border-color: #f59e0b; color: #78350f; }
.nexgen-alert-error.nexgen-alert-outline   { border-color: #ef4444; color: #7f1d1d; }
.nexgen-alert-info.nexgen-alert-outline    { border-color: #3b82f6; color: #1e3a5f; }

/* Minimal */
.nexgen-alert-minimal { background: transparent !important; border-color: transparent !important; padding-left: 0; }

/* Left Bar */
.nexgen-alert-left-bar { border-left-width: 4px !important; border-radius: 0 8px 8px 0; }
.nexgen-alert-success.nexgen-alert-left-bar { background: #f0fdf4; border-color: #10b981; }
.nexgen-alert-warning.nexgen-alert-left-bar { background: #fffbeb; border-color: #f59e0b; }
.nexgen-alert-error.nexgen-alert-left-bar   { background: #fef2f2; border-color: #ef4444; }
.nexgen-alert-info.nexgen-alert-left-bar    { background: #eff6ff; border-color: #3b82f6; }

/* Banner */
.nexgen-alert-banner { border-radius: 0; width: 100%; }

/* Icon */
.nexgen-alert-icon { flex-shrink: 0; display: flex; align-items: center; font-size: 1.25rem; }
.nexgen-alert-success .nexgen-alert-icon { color: #10b981; }
.nexgen-alert-warning .nexgen-alert-icon { color: #f59e0b; }
.nexgen-alert-error   .nexgen-alert-icon { color: #ef4444; }
.nexgen-alert-info    .nexgen-alert-icon { color: #3b82f6; }

/* Layout: icon top centered */
.nexgen-alert-layout-icon-top { flex-direction: column; align-items: center; text-align: center; }

/* Body */
.nexgen-alert-body        { flex: 1; min-width: 0; }
.nexgen-alert-title       { display: block; font-weight: 700; margin-bottom: .25rem; }
.nexgen-alert-message     { font-size: .9rem; line-height: 1.6; }
.nexgen-alert-message p:last-child { margin: 0; }
.nexgen-alert-buttons     { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }

/* Dismiss */
.nexgen-alert-dismiss {
    background: transparent; border: none; cursor: pointer;
    font-size: 1.25rem; line-height: 1; padding: 0; opacity: .5;
    flex-shrink: 0; align-self: flex-start;
}
.nexgen-alert-dismiss:hover { opacity: 1; }

/* ── Video ──────────────────────────────────────────────────────────────── */
.nexgen-video-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}
.nexgen-video-wrap::before {
    content: '';
    display: block;
    padding-top: calc(100% / (var(--nexgen-ratio, 16/9)));
}
.nexgen-ratio-16-9  { --nexgen-ratio: calc(16/9); }
.nexgen-ratio-4-3   { --nexgen-ratio: calc(4/3); }
.nexgen-ratio-1-1   { --nexgen-ratio: 1; }
.nexgen-ratio-9-16  { --nexgen-ratio: calc(9/16); }
.nexgen-ratio-21-9  { --nexgen-ratio: calc(21/9); }

.nexgen-video-overlay {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity .25s;
    z-index: 2;
}
.nexgen-video-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.25);
}
.nexgen-video-play-btn {
    position: relative;
    z-index: 3;
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s, background .2s;
    color: var(--nexgen-primary,#3b82f6);
}
.nexgen-play-rounded { border-radius: 12px; }
.nexgen-video-play-btn:hover { transform: scale(1.1); background: #fff; }
.nexgen-video-overlay:hover::after { background: rgba(0,0,0,.35); }

/* ── Typography — Drop Cap ──────────────────────────────────────────────── */
.nexgen-dropcap::first-letter {
    float: left;
    font-size: 3.5em;
    line-height: 1;
    font-weight: 700;
    color: var(--nexgen-primary,#3b82f6);
    margin: .05em .15em 0 0;
}
.nexgen-dropcap-boxed::first-letter {
    background: var(--nexgen-primary,#3b82f6);
    color: #fff;
    padding: .05em .2em;
    border-radius: 4px;
}
.nexgen-dropcap-circled::first-letter {
    background: var(--nexgen-primary,#3b82f6);
    color: #fff;
    border-radius: 50%;
    padding: .1em .2em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nexgen-dropcap-outlined::first-letter {
    color: var(--nexgen-primary,#3b82f6);
    border: 3px solid currentColor;
    padding: .05em .15em;
    border-radius: 4px;
}

/* ── Pull Quote ──────────────────────────────────────────────────────────── */
.nexgen-pull-quote {
    margin: 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--nexgen-primary,#3b82f6);
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    position: relative;
}
.nexgen-pull-quote-modern { border-left: none; background: var(--nexgen-primary,#3b82f6); color: #fff; border-radius: 12px; padding: 2rem; }
.nexgen-pull-quote-minimal { border-left: none; background: transparent; padding: 0; }
.nexgen-pull-quote-bordered { border: 2px solid var(--nexgen-primary,#3b82f6); border-radius: 8px; border-left-width: 2px; }
.nexgen-pull-quote-box { background: var(--nexgen-primary,#3b82f6); color: #fff; border: none; border-radius: 8px; }
.nexgen-quote-mark {
    display: block;
    font-size: 4rem;
    line-height: 1;
    margin-bottom: -.75rem;
    font-family: Georgia, serif;
    color: var(--nexgen-primary,#3b82f6);
    opacity: .4;
}
.nexgen-pull-quote-modern .nexgen-quote-mark,
.nexgen-pull-quote-box .nexgen-quote-mark { color: rgba(255,255,255,.4); }
.nexgen-quote-text { font-size: 1.15rem; font-style: italic; line-height: 1.7; margin: 0 0 1rem; }
.nexgen-quote-footer { display: flex; align-items: center; gap: .75rem; font-style: normal; }
.nexgen-quote-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.nexgen-quote-cite   { display: flex; flex-direction: column; }
.nexgen-quote-author { font-weight: 700; font-size: .9rem; }
.nexgen-quote-author-title { font-size: .8rem; opacity: .65; }

/* ── Heading Divider ─────────────────────────────────────────────────────── */
.nexgen-heading-divider { margin-bottom: 2rem; }
.nexgen-hd-title        { margin: 0 0 .75rem; }
.nexgen-hd-subtitle     { color: #6b7280; margin: .75rem 0 0; font-size: 1rem; }

/* Divider shapes */
.nexgen-hd-divider      { display: block; margin: 0 auto; height: 3px; background: var(--nexgen-primary,#3b82f6); border-radius: 99px; }
.nexgen-hd-align-left   .nexgen-hd-divider { margin-left: 0; }
.nexgen-hd-align-right  .nexgen-hd-divider { margin-right: 0; margin-left: auto; }

.nexgen-hd-divider-dots { height: auto; background: transparent; }
.nexgen-hd-divider-dots::before { content: '• • •'; color: var(--nexgen-primary,#3b82f6); font-size: 1.5rem; letter-spacing: .5rem; }

.nexgen-hd-divider-diamond { height: auto; background: transparent; }
.nexgen-hd-divider-diamond::before { content: '◆'; color: var(--nexgen-primary,#3b82f6); font-size: 1.25rem; }

.nexgen-hd-divider-underline { height: 4px; border-radius: 0; }

.nexgen-hd-divider-gradient { background: linear-gradient(to right, var(--nexgen-primary,#3b82f6), transparent); }

/* ── Accordion / FAQ ─────────────────────────────────────────────────────── */
.nexgen-accordion { display: flex; flex-direction: column; gap: 8px; }

/* Boxed */
.nexgen-accordion-boxed .nexgen-accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.nexgen-accordion-boxed .nexgen-acc-open { border-color: var(--nexgen-primary,#3b82f6); }

/* Minimal */
.nexgen-accordion-minimal .nexgen-accordion-item { border-bottom: 1px solid #e5e7eb; }
.nexgen-accordion-minimal .nexgen-accordion-header { background: transparent; }

/* Bordered */
.nexgen-accordion-bordered .nexgen-accordion-item { border: 2px solid #e5e7eb; border-radius: 6px; }

/* Dark */
.nexgen-accordion-dark .nexgen-accordion-item { background: #1e293b; border-color: #334155; border-radius: 8px; }
.nexgen-accordion-dark .nexgen-accordion-header { color: #f1f5f9; }

/* FAQ */
.nexgen-accordion-faq .nexgen-accordion-item { background: #f8fafc; border: none; border-radius: 8px; }
.nexgen-accordion-faq .nexgen-acc-open       { background: #fff; box-shadow: 0 2px 16px rgba(0,0,0,.08); }

/* Sidebar */
.nexgen-accordion-sidebar .nexgen-accordion-item { border-left: 3px solid #e5e7eb; border-radius: 0; background: transparent; }
.nexgen-accordion-sidebar .nexgen-acc-open  { border-left-color: var(--nexgen-primary,#3b82f6); }

/* Header */
.nexgen-accordion-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    font-size: .95rem;
    background: transparent;
    color: #1e293b;
    transition: background .15s, color .15s;
}
.nexgen-accordion-header:hover { background: #f8fafc; }
.nexgen-acc-open .nexgen-accordion-header { color: var(--nexgen-primary,#3b82f6); }
.nexgen-acc-title { flex: 1; }

/* Toggle icon */
.nexgen-acc-toggle-icon { flex-shrink: 0; font-size: .85rem; transition: transform .25s; display: flex; align-items: center; }
.nexgen-accordion-icon-plus   .nexgen-acc-toggle-icon::before { content: '+'; font-size: 1.2rem; font-weight: 300; }
.nexgen-accordion-icon-plus   .nexgen-acc-open .nexgen-acc-toggle-icon::before { content: '−'; }
.nexgen-accordion-icon-chevron .nexgen-acc-toggle-icon::before { content: '▼'; font-size: .8rem; }
.nexgen-accordion-icon-chevron .nexgen-acc-open .nexgen-acc-toggle-icon { transform: rotate(180deg); }
.nexgen-accordion-icon-arrow  .nexgen-acc-toggle-icon::before { content: '›'; font-size: 1.2rem; }
.nexgen-accordion-icon-arrow  .nexgen-acc-open .nexgen-acc-toggle-icon { transform: rotate(90deg); }

/* Body */
.nexgen-accordion-body   { overflow: hidden; }
.nexgen-accordion-content { padding: 0 1.25rem 1.25rem; font-size: .9rem; line-height: 1.7; color: #4b5563; }

/* ── Styled List ─────────────────────────────────────────────────────────── */
.nexgen-styled-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.nexgen-list-cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); }
.nexgen-list-cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.nexgen-list-cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); }

.nexgen-list-item {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .35rem 0;
    font-size: .95rem;
    line-height: 1.5;
}
.nexgen-list-indent-1 { padding-left: 1.5rem; }
.nexgen-list-indent-2 { padding-left: 3rem; }

/* Divider */
.nexgen-list-divider .nexgen-list-item + .nexgen-list-item { border-top: 1px solid #f3f4f6; }

/* Icons */
.nexgen-list-icon { flex-shrink: 0; color: var(--nexgen-primary,#3b82f6); display: inline-flex; align-items: center; }

/* CSS-based bullet styles */
.nexgen-list-style-disc .nexgen-list-item::before      { content: '•'; color: var(--nexgen-primary,#3b82f6); flex-shrink: 0; font-size: 1.1rem; }
.nexgen-list-style-circle-open .nexgen-list-item::before { content: '○'; color: var(--nexgen-primary,#3b82f6); flex-shrink: 0; }
.nexgen-list-style-square .nexgen-list-item::before    { content: '▪'; color: var(--nexgen-primary,#3b82f6); flex-shrink: 0; }
.nexgen-list-style-diamond .nexgen-list-item::before   { content: '◆'; color: var(--nexgen-primary,#3b82f6); flex-shrink: 0; font-size: .7rem; margin-top: .25em; }
.nexgen-list-style-dash .nexgen-list-item::before      { content: '—'; color: var(--nexgen-primary,#3b82f6); flex-shrink: 0; }
.nexgen-list-style-arrow .nexgen-list-item::before     { content: '→'; color: var(--nexgen-primary,#3b82f6); flex-shrink: 0; }
.nexgen-list-style-arrow-double .nexgen-list-item::before { content: '»'; color: var(--nexgen-primary,#3b82f6); flex-shrink: 0; }
.nexgen-list-style-star .nexgen-list-item::before      { content: '★'; color: var(--nexgen-primary,#3b82f6); flex-shrink: 0; font-size: .8rem; }
.nexgen-list-style-dot-color .nexgen-list-item::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--item-color, var(--nexgen-primary,#3b82f6));
    flex-shrink: 0;
    margin-top: .4em;
    display: block;
}

/* Ordered */
.nexgen-styled-list.nexgen-list-style-number,
.nexgen-styled-list.nexgen-list-style-roman { list-style: none; counter-reset: nexgen-list; }
.nexgen-list-style-number .nexgen-list-item::before  { counter-increment: nexgen-list; content: counter(nexgen-list) '.'; color: var(--nexgen-primary,#3b82f6); flex-shrink: 0; font-weight: 700; min-width: 1.5rem; }
.nexgen-list-style-roman .nexgen-list-item::before   { counter-increment: nexgen-list; content: counter(nexgen-list, upper-roman) '.'; color: var(--nexgen-primary,#3b82f6); flex-shrink: 0; font-weight: 700; min-width: 1.5rem; }

@media (max-width: 767px) {
    .nexgen-list-cols-3,
    .nexgen-list-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .nexgen-list-cols-2 { grid-template-columns: 1fr; }
}

/* ── Video Lightbox ──────────────────────────────────────────────────────── */
.nexgen-video-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.nexgen-video-lb-close {
    position: absolute;
    top: 1rem; right: 1.25rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
    opacity: .7;
}
.nexgen-video-lb-close:hover { opacity: 1; }
.nexgen-video-lb-inner {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
    position: relative;
}
.nexgen-video-lb-inner iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 6px;
}
body.nexgen-lb-open { overflow: hidden; }

/* Sort indicators */
.nexgen-table-sortable thead th.nexgen-sort-asc  .nexgen-sort-icon::after { content: ' ↑'; }
.nexgen-table-sortable thead th.nexgen-sort-desc .nexgen-sort-icon::after { content: ' ↓'; }

/* ── Data Table ──────────────────────────────────────────────────────────── */
.nexgen-table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nexgen-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}
.nexgen-table th,
.nexgen-table td {
    padding: .75rem 1rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #e5e7eb;
}
.nexgen-table thead th {
    background: var(--nexgen-primary,#3b82f6);
    color: #fff;
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
}
.nexgen-table tbody tr:hover td { background: #f8fafc; }

/* Striped */
.nexgen-table-striped tbody tr:nth-child(even) td { background: #f8fafc; }

/* Bordered */
.nexgen-table-bordered th,
.nexgen-table-bordered td { border: 1px solid #e5e7eb; }

/* Highlight row */
.nexgen-table tr.nexgen-row-highlight td { background: #fef9c3; }

/* Sortable */
.nexgen-table-sortable thead th[data-sortable] { cursor: pointer; user-select: none; }
.nexgen-table-sortable thead th[data-sortable]:hover { opacity: .8; }
.nexgen-sort-icon { margin-left: .35rem; font-size: .7rem; opacity: .6; }

/* ── Tabs ────────────────────────────────────────────────────────────────── */
.nexgen-tabs { display: flex; flex-direction: column; }
.nexgen-tabs-vertical-layout { flex-direction: row; align-items: flex-start; gap: 1.5rem; }
.nexgen-tabs-pos-right { flex-direction: row-reverse; }
.nexgen-tabs-pos-bottom { flex-direction: column-reverse; }

.nexgen-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    background: #f1f5f9;
    border-radius: 8px;
    padding: .25rem;
    margin-bottom: 1rem;
}
.nexgen-tabs-vertical-layout .nexgen-tabs-nav {
    flex-direction: column;
    flex-wrap: nowrap;
    margin-bottom: 0;
    min-width: 160px;
    flex-shrink: 0;
}
.nexgen-tabs-align-center .nexgen-tabs-nav { justify-content: center; }
.nexgen-tabs-align-right  .nexgen-tabs-nav { justify-content: flex-end; }

.nexgen-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem 1.1rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #64748b;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, color .15s;
    white-space: nowrap;
    position: relative;
}
.nexgen-tab-btn:hover { background: rgba(0,0,0,.06); }
.nexgen-tab-btn.active {
    background: var(--nexgen-primary,#3b82f6);
    color: #fff;
}

/* Pill style */
.nexgen-tabs-pill .nexgen-tab-btn { border-radius: 99px; }

/* Boxed */
.nexgen-tabs-boxed .nexgen-tabs-nav { background: transparent; padding: 0; border-bottom: 2px solid #e5e7eb; border-radius: 0; }
.nexgen-tabs-boxed .nexgen-tab-btn  { border-radius: 6px 6px 0 0; border: 1px solid transparent; border-bottom: none; margin-bottom: -2px; }
.nexgen-tabs-boxed .nexgen-tab-btn.active { background: #fff; border-color: #e5e7eb; border-bottom-color: #fff; color: var(--nexgen-primary,#3b82f6); }

/* Underline */
.nexgen-tabs-underline .nexgen-tabs-nav { background: transparent; padding: 0; border-bottom: 2px solid #e5e7eb; border-radius: 0; }
.nexgen-tabs-underline .nexgen-tab-btn  { border-radius: 0; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.nexgen-tabs-underline .nexgen-tab-btn.active { background: transparent; color: var(--nexgen-primary,#3b82f6); border-bottom-color: var(--nexgen-primary,#3b82f6); }

/* Minimal */
.nexgen-tabs-minimal .nexgen-tabs-nav { background: transparent; padding: 0; border-radius: 0; }
.nexgen-tabs-minimal .nexgen-tab-btn.active { background: transparent; color: var(--nexgen-primary,#3b82f6); font-weight: 700; }

/* Counter */
.nexgen-tabs-counter .nexgen-tab-btn { flex-direction: column; align-items: flex-start; padding: .75rem 1.1rem; }
.nexgen-tab-counter { font-size: 1.5rem; font-weight: 800; line-height: 1; opacity: .3; }
.nexgen-tabs-counter .nexgen-tab-btn.active .nexgen-tab-counter { opacity: 1; }

/* Badge */
.nexgen-tab-badge {
    background: #ef4444;
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    padding: .1em .45em;
    border-radius: 99px;
    margin-left: auto;
}

/* Content */
.nexgen-tabs-content { flex: 1; min-width: 0; }
.nexgen-tab-panel[hidden] { display: none; }
.nexgen-tab-panel { animation: nexgen-tab-fade .2s ease; }
@keyframes nexgen-tab-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Accordion mobile */
@media (max-width: 767px) {
    .nexgen-tabs-accordion-mobile .nexgen-tabs-nav { display: none; }
    .nexgen-tabs-accordion-mobile .nexgen-tabs-content { display: block; }
    .nexgen-tabs-accordion-mobile .nexgen-tab-panel {
        display: block !important;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        margin-bottom: .5rem;
        overflow: hidden;
    }
    .nexgen-tabs-accordion-mobile .nexgen-tab-panel[hidden] { display: block !important; }
    .nexgen-tabs-accordion-mobile .nexgen-tab-panel::before {
        content: attr(data-label);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: .85rem 1rem;
        font-weight: 600;
        cursor: pointer;
        background: #f8fafc;
    }
    .nexgen-tabs-accordion-mobile .nexgen-tab-panel:not(.active) .nexgen-tab-text { display: none; }
}
