/* ============================================================
   VINISEED PARTNER SYSTEM — PROFESSIONAL DESIGN SYSTEM
   Premium SaaS Dashboard
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
    /* Backgrounds */
    --va-bg-base: #F7F8FA;
    --va-bg-raised: #FFFFFF;
    --va-bg-surface: #FFFFFF;
    --va-bg-elevated: #F9FAFB;
    --va-bg-input: #F3F4F6;

    /* Borders */
    --va-border: #E5E7EB;
    --va-border-subtle: #F3F4F6;
    --va-border-focus: #D1D5DB;

    /* Text */
    --va-text-primary: #111827;
    --va-text-secondary: #667085;
    --va-text-muted: #9CA3AF;
    --va-text-inverse: #FFFFFF;

    /* Brand */
    --va-accent: #22C55E;
    --va-accent-hover: #16A34A;
    --va-accent-soft: rgba(34, 197, 94, 0.08);
    --va-accent-medium: rgba(34, 197, 94, 0.15);

    /* Status */
    --va-success: #10B981;
    --va-success-bg: #ECFDF5;
    --va-success-border: #A7F3D0;
    --va-warning: #F59E0B;
    --va-warning-bg: #FFFBEB;
    --va-warning-border: #FDE68A;
    --va-danger: #EF4444;
    --va-danger-bg: #FEF2F2;
    --va-danger-border: #FECACA;
    --va-info: #3B82F6;
    --va-info-bg: #EFF6FF;
    --va-info-border: #BFDBFE;
    --va-purple: #8B5CF6;
    --va-purple-bg: #F5F3FF;
    --va-purple-border: #DDD6FE;

    /* Radius */
    --va-radius-xs: 6px;
    --va-radius-sm: 8px;
    --va-radius: 12px;
    --va-radius-lg: 16px;
    --va-radius-xl: 20px;
    --va-radius-full: 999px;

    /* Shadows */
    --va-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --va-shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.04);
    --va-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --va-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --va-shadow-focus: 0 0 0 3px rgba(34, 197, 94, 0.15);

    /* Transition */
    --va-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset / Base ---------- */
.va-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px 48px;
    font-family: var(--bx-font-sans);
    font-size: var(--bx-text-base);
    color: var(--va-text-primary);
    line-height: var(--bx-leading-body);
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.va-wrap *,
.va-wrap *::before,
.va-wrap *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.va-wrap a {
    color: var(--va-text-secondary);
    text-decoration: none;
    transition: color var(--va-transition);
}

.va-wrap a:hover {
    color: var(--va-text-primary);
}

/* ---------- Typography ---------- */
.va-h1 {
    font-size: var(--bx-heading-h1);
    font-weight: var(--bx-weight-bold);
    letter-spacing: var(--bx-letter-space-tight);
    line-height: 1.08;
}

.va-h2 {
    font-size: var(--bx-heading-h2);
    font-weight: var(--bx-weight-bold);
    letter-spacing: var(--bx-letter-space-tight);
    line-height: 1.15;
}

.va-h3 {
    font-size: var(--bx-heading-h3);
    font-weight: var(--bx-weight-semibold);
    line-height: 1.25;
}

.va-body {
    font-size: var(--bx-text-base);
    color: var(--va-text-secondary);
    line-height: var(--bx-leading-body);
}

.va-caption {
    font-size: var(--bx-text-xs);
    font-weight: var(--bx-weight-semibold);
    color: var(--va-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--bx-letter-space-wide);
}

/* ---------- Empty States ---------- */
.va-empty {
    text-align: center;
    padding: 64px 24px;
    max-width: 400px;
    margin: 0 auto;
}

.va-empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    color: var(--va-text-muted);
    opacity: 0.6;
}

.va-empty-icon svg {
    width: 100%;
    height: 100%;
}

.va-empty-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--va-text-primary);
    margin-bottom: 8px;
}

.va-empty-desc {
    font-size: 0.9375rem;
    color: var(--va-text-muted);
    line-height: 1.6;
}

/* ---------- Buttons ---------- */
.va-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--va-radius-sm);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    line-height: 1.4;
    transition: all var(--va-transition);
    font-family: inherit;
    white-space: nowrap;
    user-select: none;
}

.va-btn-primary {
    background: var(--va-accent);
    color: var(--va-bg-base);
}

.va-btn-primary:hover {
    background: var(--va-accent-2);
    transform: translateY(-1px);
    box-shadow: var(--va-shadow);
}

.va-btn-secondary {
    background: transparent;
    color: var(--va-text-primary);
    border: 1px solid var(--va-border);
}

.va-btn-secondary:hover {
    background: var(--va-bg-elevated);
    border-color: var(--va-text-muted);
}

.va-btn-ghost {
    background: transparent;
    color: var(--va-text-secondary);
    padding: 8px 16px;
}

.va-btn-ghost:hover {
    color: var(--va-text-primary);
    background: var(--va-bg-elevated);
}

.va-btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.va-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

/* ---------- Cards ---------- */
.va-card {
    background: var(--va-bg-surface);
    border: 1px solid var(--va-border-subtle);
    border-radius: var(--va-radius);
    padding: 24px;
    transition: border-color var(--va-transition), box-shadow var(--va-transition);
}

.va-card:hover {
    border-color: var(--va-border);
    box-shadow: var(--va-shadow-sm);
}

.va-card-interactive {
    cursor: pointer;
}

.va-card-interactive:hover {
    border-color: var(--va-text-muted);
    box-shadow: var(--va-shadow);
}

.va-card-flat {
    padding: 0;
    overflow: hidden;
}

/* ---------- Dashboard Layout ---------- */
.va-dashboard {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 80px);
    background: var(--va-bg-base);
    border-radius: var(--va-radius-lg);
    overflow: hidden;
    border: 1px solid var(--va-border-subtle);
}

.va-dashboard-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--va-border-subtle);
}

.va-dashboard-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.va-dashboard-topbar-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--va-text-primary);
}

.va-dashboard-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.va-dashboard-topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.va-dashboard-topbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--va-bg-elevated);
    border: 1px solid var(--va-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--va-text-secondary);
    text-transform: uppercase;
}

.va-dashboard-topbar-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--va-text-primary);
}

.va-dashboard-topbar-status {
    font-size: 0.75rem;
    color: var(--va-success);
    font-weight: 500;
}

/* ---------- Sidebar ---------- */
.va-dashboard-sidebar {
    background: var(--va-bg-raised);
    border-right: 1px solid var(--va-border-subtle);
    padding: 32px 0;
    position: sticky;
    top: 0;
    height: calc(100vh - 80px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.va-dashboard-sidebar::-webkit-scrollbar {
    width: 4px;
}

.va-dashboard-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.va-dashboard-sidebar::-webkit-scrollbar-thumb {
    background: var(--va-border);
    border-radius: 2px;
}

.va-dashboard-brand {
    padding: 0 24px 24px;
    border-bottom: 1px solid var(--va-border-subtle);
    margin-bottom: 16px;
}

.va-dashboard-brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--va-text-primary);
    margin-bottom: 4px;
}

.va-dashboard-brand-status {
    font-size: 0.8125rem;
    color: var(--va-text-muted);
    font-weight: 500;
}

.va-dashboard-brand-partner {
    font-size: 0.75rem;
    color: var(--va-text-muted);
    margin-top: 4px;
    font-family: var(--bx-font-mono);
}

.va-dashboard-nav {
    flex: 1;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.va-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--va-radius-sm);
    color: var(--va-text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--va-transition);
    position: relative;
}

.va-nav-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity var(--va-transition);
}

.va-nav-link:hover {
    color: var(--va-text-primary);
    background: var(--va-bg-surface);
}

.va-nav-link:hover svg {
    opacity: 1;
}

.va-nav-link.active {
    color: var(--va-text-primary);
    background: var(--va-bg-surface);
    font-weight: 600;
}

.va-nav-link.active svg {
    opacity: 1;
    color: var(--va-text-primary);
}

.va-nav-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--va-accent);
    border-radius: 0 2px 2px 0;
}

/* ---------- Main Content ---------- */
.va-dashboard-main {
    padding: 40px;
    overflow-y: auto;
    max-height: calc(100vh - 80px);
}

.va-dashboard-main::-webkit-scrollbar {
    width: 6px;
}

.va-dashboard-main::-webkit-scrollbar-track {
    background: transparent;
}

.va-dashboard-main::-webkit-scrollbar-thumb {
    background: var(--va-border);
    border-radius: 3px;
}

.va-dashboard-main::-webkit-scrollbar-thumb:hover {
    background: var(--va-text-muted);
}

/* ---------- Dashboard Header ---------- */
.va-dashboard-header {
    margin-bottom: 32px;
}

.va-dashboard-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--va-text-primary);
    margin-bottom: 6px;
}

.va-dashboard-subtitle {
    font-size: 0.9375rem;
    color: var(--va-text-muted);
    font-weight: 500;
}

/* ---------- KPI Grid ---------- */
.va-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.va-kpi-card {
    background: var(--va-bg-surface);
    border: 1px solid var(--va-border-subtle);
    border-radius: var(--va-radius);
    padding: 24px;
    transition: all var(--va-transition);
    position: relative;
    overflow: hidden;
}

.va-kpi-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--va-border), transparent);
    opacity: 0;
    transition: opacity var(--va-transition);
}

.va-kpi-card:hover {
    border-color: var(--va-border);
    box-shadow: var(--va-shadow-sm);
}

.va-kpi-card:hover::before {
    opacity: 1;
}

.va-kpi-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--va-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.va-kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--va-text-primary);
    line-height: 1.2;
}

/* ---------- Link Generator ---------- */
.va-link-generator {
    background: var(--va-bg-surface);
    border: 1px solid var(--va-border-subtle);
    border-radius: var(--va-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.va-link-generator-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--va-text-primary);
    margin-bottom: 16px;
}

.va-link-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.va-link-output {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--va-bg-base);
    border: 1px solid var(--va-border-subtle);
    border-radius: var(--va-radius-sm);
    padding: 12px 16px;
    font-size: 0.875rem;
    color: var(--va-text-secondary);
    overflow: hidden;
}

.va-link-output a {
    color: var(--va-text-secondary);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.va-link-output a:hover {
    color: var(--va-text-primary);
    text-decoration: underline;
}

/* ---------- Quick Actions ---------- */
.va-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.va-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
    background: var(--va-bg-surface);
    border: 1px solid var(--va-border-subtle);
    border-radius: var(--va-radius);
    color: var(--va-text-secondary);
    text-decoration: none;
    transition: all var(--va-transition);
    text-align: center;
}

.va-quick-action:hover {
    border-color: var(--va-border);
    color: var(--va-text-primary);
    transform: translateY(-2px);
    box-shadow: var(--va-shadow);
}

.va-quick-action-icon {
    width: 28px;
    height: 28px;
    color: var(--va-text-secondary);
    transition: color var(--va-transition);
}

.va-quick-action:hover .va-quick-action-icon {
    color: var(--va-text-primary);
}

.va-quick-action-label {
    font-size: 0.875rem;
    font-weight: 600;
}

/* ---------- Form ---------- */
.va-form-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.va-form-select,
.va-form-input {
    padding: 10px 14px;
    background: var(--va-bg-base);
    border: 1px solid var(--va-border-subtle);
    border-radius: var(--va-radius-sm);
    color: var(--va-text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color var(--va-transition), box-shadow var(--va-transition);
    outline: none;
    min-height: 42px;
}

.va-form-select:focus,
.va-form-input:focus {
    border-color: var(--va-text-muted);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.05);
}

.va-form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ---------- Product Grid ---------- */
.va-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.va-product-card {
    background: var(--va-bg-surface);
    border: 1px solid var(--va-border-subtle);
    border-radius: var(--va-radius);
    overflow: hidden;
    transition: all var(--va-transition);
    display: flex;
    flex-direction: column;
}

.va-product-card:hover {
    border-color: var(--va-border);
    box-shadow: var(--va-shadow);
    transform: translateY(-2px);
}

.va-product-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--va-bg-elevated);
}

.va-product-image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--va-bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--va-text-muted);
    font-size: 0.875rem;
}

.va-product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.va-product-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--va-text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.va-product-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--va-text-primary);
}

.va-product-commission {
    font-size: 0.8125rem;
    color: var(--va-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.va-product-commission strong {
    color: var(--va-success);
    font-weight: 700;
}

.va-product-estimated {
    color: var(--va-text-muted);
}

.va-product-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.va-product-actions .va-btn {
    flex: 1;
    justify-content: center;
}

/* ---------- Tables ---------- */
.va-table-wrap {
    background: var(--va-bg-surface);
    border: 1px solid var(--va-border-subtle);
    border-radius: var(--va-radius);
    overflow: hidden;
}

.va-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.va-table thead {
    background: var(--va-bg-raised);
    border-bottom: 1px solid var(--va-border-subtle);
}

.va-table th {
    padding: 14px 20px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--va-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.va-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--va-border-subtle);
    color: var(--va-text-secondary);
    vertical-align: middle;
}

.va-table tbody tr {
    transition: background var(--va-transition);
}

.va-table tbody tr:last-child td {
    border-bottom: none;
}

.va-table tbody tr:hover {
    background: var(--va-bg-raised);
}

/* ---------- Profile Table ---------- */
.va-profile-table {
    width: 100%;
    border-collapse: collapse;
}

.va-profile-table th,
.va-profile-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--va-border-subtle);
    font-size: 0.9375rem;
}

.va-profile-table th {
    color: var(--va-text-muted);
    font-weight: 600;
    width: 200px;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.va-profile-table td {
    color: var(--va-text-primary);
    font-weight: 500;
}

.va-code {
    background: var(--va-bg-elevated);
    padding: 4px 8px;
    border-radius: var(--va-radius-xs);
    font-size: 0.875rem;
    font-family: var(--bx-font-mono);
    color: var(--va-text-primary);
}

.va-profile-table tbody tr:last-child th,
.va-profile-table tbody tr:last-child td {
    border-bottom: none;
}

/* ---------- Badges ---------- */
.va-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-transform: capitalize;
}

.va-badge-pending {
    background: var(--va-warning-bg);
    color: var(--va-warning);
}

.va-badge-approved {
    background: var(--va-info-bg);
    color: var(--va-info);
}

.va-badge-paid {
    background: var(--va-success-bg);
    color: var(--va-success);
}

.va-badge-reversed {
    background: var(--va-danger-bg);
    color: var(--va-danger);
}

.va-badge-failed {
    background: var(--va-danger-bg);
    color: var(--va-danger);
}

.va-badge-on_hold {
    background: var(--va-warning-bg);
    color: var(--va-warning);
}

/* ---------- Payout Summary ---------- */
.va-payout-summary {
    display: flex;
    gap: 16px;
}

/* ---------- Auth Screens ---------- */
.va-auth-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 40px 24px;
}

.va-auth-card {
    background: var(--va-bg-surface);
    border: 1px solid var(--va-border-subtle);
    border-radius: var(--va-radius-lg);
    padding: 48px;
    max-width: 420px;
    width: 100%;
    text-align: center;
}

.va-auth-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--va-text-primary);
    margin-bottom: 8px;
}

.va-auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--va-text-primary);
    margin-bottom: 12px;
}

.va-auth-desc {
    font-size: 0.9375rem;
    color: var(--va-text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.va-auth-meta {
    background: var(--va-bg-base);
    border: 1px solid var(--va-border-subtle);
    border-radius: var(--va-radius-sm);
    padding: 16px;
    margin-bottom: 24px;
    font-size: 0.875rem;
    color: var(--va-text-secondary);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.va-auth-meta strong {
    color: var(--va-text-primary);
}

.va-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.va-auth-footer {
    font-size: 0.875rem;
    color: var(--va-text-muted);
}

.va-auth-footer a {
    color: var(--va-text-secondary);
    text-decoration: none;
}

.va-auth-footer a:hover {
    color: var(--va-text-primary);
}

/* ---------- OTP Form ---------- */
.va-otp-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.va-otp-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.va-otp-input {
    width: 40px;
    height: 48px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    border: 1px solid var(--va-border);
    border-radius: var(--va-radius-sm);
    background: var(--va-bg-input);
    color: var(--va-text-primary);
    transition: border-color var(--va-transition), box-shadow var(--va-transition);
}

.va-otp-input:focus {
    outline: none;
    border-color: var(--va-accent);
    box-shadow: var(--va-shadow-focus);
}

.va-otp-submit {
    width: 100%;
    margin-top: 8px;
}

/* ---------- Pipeline / Financial Summary ---------- */
.va-pipeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.va-pipeline-item {
    background: var(--va-bg-base);
    border: 1px solid var(--va-border-subtle);
    border-radius: var(--va-radius-sm);
    padding: 16px;
    text-align: center;
}

.va-pipeline-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--va-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.va-pipeline-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--va-text-primary);
}

.va-payout-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.va-payout-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.va-payout-progress-label {
    color: var(--va-text-secondary);
    font-weight: 500;
}

.va-payout-progress-percent {
    color: var(--va-text-primary);
    font-weight: 700;
}

.va-payout-progress-bar {
    height: 8px;
    background: var(--va-bg-base);
    border-radius: 100px;
    overflow: hidden;
}

.va-payout-progress-fill {
    height: 100%;
    background: var(--va-accent);
    border-radius: 100px;
    transition: width 0.3s ease;
}

.va-payout-progress-remaining {
    font-size: 0.8125rem;
    color: var(--va-text-muted);
}

.va-payout-progress-reached {
    font-size: 0.8125rem;
    color: var(--va-success);
    font-weight: 600;
}
.va-qr-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--va-transition);
}

.va-qr-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.va-qr-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.va-qr-modal-dialog {
    position: relative;
    background: var(--va-bg-surface);
    border: 1px solid var(--va-border);
    border-radius: var(--va-radius-lg);
    padding: 32px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: var(--va-shadow-xl);
}

.va-qr-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.va-qr-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--va-text-primary);
}

.va-qr-modal-close {
    background: none;
    border: none;
    color: var(--va-text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--va-radius-sm);
    transition: color var(--va-transition), background var(--va-transition);
}

.va-qr-modal-close:hover {
    color: var(--va-text-primary);
    background: var(--va-bg-elevated);
}

.va-qr-code-wrap {
    background: #ffffff;
    border-radius: var(--va-radius);
    padding: 24px;
    display: inline-block;
    margin-bottom: 16px;
}

.va-qr-code-img {
    display: block;
    max-width: 200px;
    width: 100%;
    height: auto;
}

.va-qr-url {
    font-size: 0.875rem;
    color: var(--va-text-secondary);
    word-break: break-all;
    margin-bottom: 24px;
    line-height: 1.5;
}

.va-qr-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.va-qr-modal-footer .va-btn {
    flex: 1;
    justify-content: center;
}

/* ---------- KPI Primary Highlight ---------- */
.va-kpi-primary {
    border-color: var(--va-border);
    background: linear-gradient(135deg, var(--va-bg-surface) 0%, var(--va-bg-elevated) 100%);
}

.va-kpi-primary .va-kpi-value {
    color: var(--va-accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
    .va-dashboard {
        grid-template-columns: 1fr;
    }

    .va-dashboard-sidebar {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--va-border-subtle);
        padding: 16px 0;
    }

    .va-dashboard-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        padding: 0 12px;
        -webkit-overflow-scrolling: touch;
    }

    .va-dashboard-nav::-webkit-scrollbar {
        display: none;
    }

    .va-nav-link {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .va-nav-link.active::before {
        display: none;
    }

    .va-dashboard-main {
        max-height: none;
        padding: 24px;
    }

    .va-kpi-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .va-link-row {
        flex-direction: column;
    }

    .va-quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .va-product-grid {
        grid-template-columns: 1fr;
    }

    .va-form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .va-pipeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .va-wrap {
        padding: 0 16px 32px;
    }

    .va-dashboard-main {
        padding: 16px;
    }

    .va-auth-card {
        padding: 32px 24px;
    }

    .va-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .va-kpi-card {
        padding: 16px;
    }

    .va-kpi-value {
        font-size: 1.35rem;
    }

    .va-quick-actions {
        grid-template-columns: 1fr;
    }

    .va-table-wrap {
        overflow-x: auto;
    }

    .va-table {
        min-width: 600px;
    }

    .va-link-output {
        font-size: 0.8125rem;
    }

    .va-pipeline {
        grid-template-columns: 1fr;
    }
}

/* ---------- Public Page Sections ---------- */
.va-public-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.va-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    min-height: 600px;
    padding: 100px 0;
    border-bottom: 1px solid var(--va-border-subtle);
}

.va-hero-eyebrow {
    font-size: var(--bx-text-xs);
    font-weight: var(--bx-weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--bx-letter-space-wide);
    color: var(--va-text-muted);
    margin-bottom: 20px;
}

.va-hero-heading {
    font-size: var(--bx-heading-h2);
    font-weight: var(--bx-weight-bold);
    letter-spacing: var(--bx-letter-space-tight);
    line-height: 1.15;
    margin: 0 0 24px;
}

.va-hero-body {
    font-size: var(--bx-text-lg);
    color: var(--va-text-secondary);
    line-height: var(--bx-leading-body);
    margin: 0 0 36px;
    max-width: 34rem;
}

.va-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.va-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.va-hero-visual-inner {
    width: 100%;
    aspect-ratio: 1;
    max-width: 440px;
    background: var(--va-bg-raised);
    border: 1px solid var(--va-border);
    border-radius: var(--va-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.va-hero-visual-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.04) 0%, transparent 70%);
}

/* Trust Bar */
.va-trust-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 64px 0;
    border-bottom: 1px solid var(--va-border-subtle);
}

.va-trust-item {
    text-align: center;
    padding: 24px;
}

.va-trust-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 16px;
    color: var(--va-text-secondary);
}

.va-trust-title {
    font-size: var(--bx-text-md);
    font-weight: var(--bx-weight-semibold);
    margin-bottom: 8px;
    color: var(--va-text-primary);
}

.va-trust-desc {
    font-size: var(--bx-text-sm);
    color: var(--va-text-muted);
    line-height: 1.6;
}

/* Section */
.va-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--va-border-subtle);
}

.va-section-header {
    text-align: center;
    margin-bottom: 56px;
}

.va-section-eyebrow {
    font-size: var(--bx-text-xs);
    font-weight: var(--bx-weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--bx-letter-space-wide);
    color: var(--va-text-muted);
    margin-bottom: 16px;
}

.va-section-title {
    font-size: var(--bx-heading-h2);
    font-weight: var(--bx-weight-bold);
    letter-spacing: var(--bx-letter-space-tight);
    line-height: 1.15;
    margin: 0 0 16px;
}

.va-section-body {
    font-size: var(--bx-text-lg);
    color: var(--va-text-secondary);
    line-height: var(--bx-leading-body);
    max-width: 600px;
    margin: 0 auto;
}

.va-section-desc {
    font-size: var(--bx-text-lg);
    color: var(--va-text-secondary);
    line-height: var(--bx-leading-body);
    max-width: 600px;
    margin: 0 auto;
}

/* Timeline */
.va-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.va-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.va-timeline-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--va-text-secondary);
    margin-top: 2px;
}

.va-timeline-icon svg {
    width: 100%;
    height: 100%;
}

.va-timeline-text {
    font-size: 0.9375rem;
    color: var(--va-text-secondary);
    line-height: 1.6;
}

/* Steps */
.va-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.va-step {
    text-align: center;
    padding: 32px 20px;
    background: var(--va-bg-surface);
    border: 1px solid var(--va-border-subtle);
    border-radius: var(--va-radius);
    transition: all var(--va-transition);
}

.va-step:hover {
    border-color: var(--va-border);
    transform: translateY(-3px);
    box-shadow: var(--va-shadow);
}

.va-step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--va-bg-elevated);
    border: 1px solid var(--va-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: var(--bx-text-lg);
    font-weight: var(--bx-weight-bold);
    color: var(--va-text-primary);
}

.va-step-title {
    font-size: var(--bx-text-lg);
    font-weight: var(--bx-weight-semibold);
    color: var(--va-text-primary);
    margin-bottom: 10px;
}

.va-step-desc {
    font-size: var(--bx-text-sm);
    color: var(--va-text-muted);
    line-height: 1.6;
}

/* Commission Grid */
.va-commission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.va-commission-card {
    background: var(--va-bg-surface);
    border: 1px solid var(--va-border-subtle);
    border-radius: var(--va-radius);
    padding: 32px;
    transition: all var(--va-transition);
}

.va-commission-card:hover {
    border-color: var(--va-border);
}

.va-commission-rate {
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: var(--bx-weight-bold);
    letter-spacing: var(--bx-letter-space-tight);
    color: var(--va-text-primary);
    margin-bottom: 8px;
}

.va-commission-label {
    font-size: var(--bx-text-sm);
    color: var(--va-text-muted);
    margin-bottom: 16px;
}

.va-commission-desc {
    font-size: var(--bx-text-base);
    color: var(--va-text-secondary);
    line-height: var(--bx-leading-body);
}

/* Audience Grid */
.va-audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.va-audience-card {
    background: var(--va-bg-surface);
    border: 1px solid var(--va-border-subtle);
    border-radius: var(--va-radius);
    padding: 28px;
    text-align: center;
    transition: all var(--va-transition);
}

.va-audience-card:hover {
    border-color: var(--va-border);
    transform: translateY(-2px);
    box-shadow: var(--va-shadow);
}

.va-audience-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    color: var(--va-text-secondary);
}

.va-audience-title {
    font-size: var(--bx-text-lg);
    font-weight: var(--bx-weight-semibold);
    color: var(--va-text-primary);
    margin-bottom: 8px;
}

.va-audience-desc {
    font-size: var(--bx-text-sm);
    color: var(--va-text-muted);
    line-height: 1.6;
}

.va-audience-channels {
    font-size: var(--bx-text-sm);
    color: var(--va-text-muted);
    line-height: 1.6;
}

/* FAQ */
.va-faq {
    max-width: 800px;
    margin: 0 auto;
}

.va-faq-item {
    border-bottom: 1px solid var(--va-border-subtle);
}

.va-faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--va-text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.va-faq-question:hover {
    color: var(--va-text-primary);
}

.va-faq-icon {
    width: 20px;
    height: 20px;
    color: var(--va-text-muted);
    flex-shrink: 0;
    transition: transform var(--va-transition);
}

.va-faq-item.open .va-faq-icon {
    transform: rotate(180deg);
}

.va-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--va-transition), padding var(--va-transition);
}

.va-faq-item.open .va-faq-answer {
    max-height: 500px;
    padding-bottom: 24px;
}

.va-faq-answer p {
    font-size: 0.9375rem;
    color: var(--va-text-secondary);
    line-height: 1.7;
}

/* Final CTA */
.va-final-cta {
    text-align: center;
    padding: 100px 0;
}

.va-final-cta-title {
    font-size: var(--bx-heading-h2);
    font-weight: var(--bx-weight-bold);
    letter-spacing: var(--bx-letter-space-tight);
    margin: 0 0 20px;
}

.va-final-cta-heading {
    font-size: var(--bx-heading-h2);
    font-weight: var(--bx-weight-bold);
    letter-spacing: var(--bx-letter-space-tight);
    margin: 0 0 20px;
}

.va-final-cta-body {
    font-size: var(--bx-text-lg);
    color: var(--va-text-secondary);
    margin: 0 0 36px;
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
    line-height: var(--bx-leading-body);
}

.va-final-cta-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Telegram Section */
.va-telegram-section {
    background: var(--va-bg-raised);
    border: 1px solid var(--va-border-subtle);
    border-radius: var(--va-radius-lg);
    padding: 48px;
    text-align: center;
}

.va-telegram-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
    color: var(--va-text-secondary);
}

.va-telegram-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 12px;
}

.va-telegram-desc {
    font-size: 1rem;
    color: var(--va-text-secondary);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 24px;
}

/* ---------- App Wrapper ---------- */
.va-app {
    min-height: calc(100vh - 80px);
    background: var(--va-bg-base);
}

.va-app-footer {
    background: var(--va-bg-raised);
    border-top: 1px solid var(--va-border-subtle);
    padding: 20px 32px;
}

.va-app-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--va-text-muted);
}

.va-app-footer-links {
    display: flex;
    gap: 20px;
}

.va-app-footer-links a {
    color: var(--va-text-muted);
    text-decoration: none;
    transition: color var(--va-transition);
}

.va-app-footer-links a:hover {
    color: var(--va-text-primary);
}

@media (max-width: 640px) {
    .va-app-footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .va-app-footer-links {
        gap: 16px;
    }
}
.va-mt-0 { margin-top: 0; }
.va-mt-1 { margin-top: 8px; }
.va-mt-2 { margin-top: 16px; }
.va-mt-3 { margin-top: 24px; }
.va-mt-4 { margin-top: 32px; }

.va-mb-0 { margin-bottom: 0; }
.va-mb-1 { margin-bottom: 8px; }
.va-mb-2 { margin-bottom: 16px; }
.va-mb-3 { margin-bottom: 24px; }
.va-mb-4 { margin-bottom: 32px; }

.va-ml-1 { margin-left: 8px; }
.va-ml-2 { margin-left: 16px; }
.va-mr-1 { margin-right: 8px; }
.va-mr-2 { margin-right: 16px; }

.va-sep {
    opacity: 0.3;
    margin: 0 8px;
}

.va-text-center { text-align: center; }
.va-text-right { text-align: right; }

.va-flex { display: flex; }
.va-items-center { align-items: center; }
.va-justify-between { justify-content: space-between; }
.va-gap-2 { gap: 16px; }
.va-gap-3 { gap: 24px; }

/* ---------- Sidebar Footer Promo ---------- */
.va-dashboard-sidebar-footer {
    padding: 16px 20px 0;
    margin-top: auto;
    border-top: 1px solid var(--va-border-subtle);
}

.va-sidebar-promo {
    background: var(--va-bg-elevated);
    border: 1px solid var(--va-border-subtle);
    border-radius: var(--va-radius);
    padding: 16px;
}

.va-sidebar-promo-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--va-text-primary);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.va-sidebar-promo-desc {
    font-size: 0.75rem;
    color: var(--va-text-secondary);
    line-height: 1.5;
}

/* ---------- KPI Icons ---------- */
.va-kpi-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--va-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.va-kpi-icon svg {
    width: 20px;
    height: 20px;
}

.va-kpi-icon--green {
    background: var(--va-success-bg);
    color: var(--va-success);
}

.va-kpi-icon--amber {
    background: var(--va-warning-bg);
    color: var(--va-warning);
}

.va-kpi-icon--blue {
    background: var(--va-info-bg);
    color: var(--va-info);
}

.va-kpi-icon--purple {
    background: var(--va-purple-bg);
    color: var(--va-purple);
}

.va-kpi-icon--gray {
    background: var(--va-bg-elevated);
    color: var(--va-text-secondary);
}

.va-kpi-body {
    flex: 1;
    min-width: 0;
}

/* ---------- Pipeline Wrap ---------- */
.va-pipeline-wrap {
    background: var(--va-bg-surface);
    border: 1px solid var(--va-border);
    border-radius: var(--va-radius);
    padding: 24px;
}

.va-pipeline-header {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--va-text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.va-pipeline-dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--va-bg-surface);
    border: 2px solid var(--va-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--va-text-secondary);
    transition: all var(--va-transition);
}

.va-pipeline-item--pending .va-pipeline-dot {
    border-color: var(--va-warning);
    color: var(--va-warning);
    background: var(--va-warning-bg);
}

.va-pipeline-item--hold .va-pipeline-dot {
    border-color: var(--va-info);
    color: var(--va-info);
    background: var(--va-info-bg);
}

.va-pipeline-item--approved .va-pipeline-dot {
    border-color: var(--va-success);
    color: var(--va-success);
    background: var(--va-success-bg);
}

.va-pipeline-item--scheduled .va-pipeline-dot {
    border-color: var(--va-purple);
    color: var(--va-purple);
    background: var(--va-purple-bg);
}

.va-pipeline-item--paid .va-pipeline-dot {
    border-color: var(--va-accent);
    color: var(--va-accent-hover);
    background: var(--va-accent-soft);
}

/* ---------- Quick Action Arrow ---------- */
.va-quick-action-arrow {
    width: 20px;
    height: 20px;
    color: var(--va-text-muted);
    flex-shrink: 0;
    transition: all var(--va-transition);
}

.va-quick-action:hover .va-quick-action-arrow {
    color: var(--va-accent);
    transform: translateX(2px);
}
