/**
 * Frontend Modern Clean UI Stylesheet
 * Palette: Theme Blue (#0065B3), Button Orange (#ED7D31), Hover (#D66A20)
 * Font: Google Font "Inter"
 */

.was-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    line-height: 1.5;
    max-width: 1140px;
    margin: 24px auto;
    box-sizing: border-box;
}

.was-container *, .was-container *::before, .was-container *::after {
    box-sizing: border-box;
}

.was-svg-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Modern Switch Toggle Component */
.was-switch-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.was-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin: 0 !important;
}

.was-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    margin: 0 !important;
}

.was-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 9999px;
}

.was-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.was-switch input:checked + .was-switch-slider {
    background-color: #0065B3;
}

.was-switch input:focus + .was-switch-slider {
    box-shadow: 0 0 0 3px rgba(0, 101, 179, 0.2);
}

.was-switch input:checked + .was-switch-slider:before {
    transform: translateX(20px);
}

.was-switch-label {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    line-height: 1.4;
}

/* Header & Saldo Hero Card */
.was-header-card {
    background: linear-gradient(135deg, #0065B3 0%, #004d88 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: 0 10px 15px -3px rgba(0, 101, 179, 0.15), 0 4px 6px -4px rgba(0, 101, 179, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.was-user-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.was-avatar {
    width: 60px;
    height: 60px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.was-user-info h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

.was-user-info p {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.was-quick-payout {
    text-align: right;
}

.was-quick-payout .was-unpaid-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.8);
}

.was-quick-payout .was-unpaid-amount {
    font-size: 28px;
    font-weight: 700;
    margin: 4px 0 12px 0;
    color: #ffffff;
}

/* Stat Cards Grid */
.was-grid-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.was-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.was-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

.was-stat-card .was-stat-title {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin: 0 0 8px 0;
}

.was-stat-card .was-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.was-stat-card .was-stat-sub {
    font-size: 12px;
    color: #94a3b8;
    margin: 6px 0 0 0;
}

/* Card Container */
.was-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.was-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 14px;
}

.was-card-title {
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Buttons - Pill Button System */
.was-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    background-color: #ed7d31;
    color: #ffffff !important;
    border: 1px solid transparent;
    border-radius: 9999px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap !important;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.was-btn:hover {
    background-color: #d66a20;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(237, 125, 49, 0.25);
}

.was-btn:active {
    transform: translateY(0);
}

.was-btn-copy {
    white-space: nowrap !important;
    flex-shrink: 0;
    word-break: keep-all;
}

.was-copy-input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.was-copy-input-group input.was-input,
.was-copy-input-group input {
    width: 100% !important;
    padding-right: 44px !important;
    box-sizing: border-box;
}

.was-btn-copy-inline {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    padding: 0 !important;
    margin: 0;
    border: none !important;
    background: transparent !important;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    box-shadow: none !important;
    outline: none !important;
    user-select: none;
}

.was-btn-copy-inline:hover {
    background-color: rgba(15, 23, 42, 0.08) !important;
    color: #0f172a !important;
    transform: translateY(-50%) scale(1.08);
}

.was-btn-copy-inline:active {
    transform: translateY(-50%) scale(0.92);
}

.was-btn-copy-inline.was-copied {
    color: #10b981 !important;
    background-color: #ecfdf5 !important;
    transform: translateY(-50%) scale(1.08);
}

.was-btn-outline {
    background-color: transparent;
    color: #0065B3 !important;
    border-color: #0065B3;
}

.was-btn-outline:hover {
    background-color: #0065B3;
    color: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(0, 101, 179, 0.25);
}

.was-btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.was-btn-whatsapp {
    background-color: #128C7E !important;
    color: #ffffff !important;
    border-color: #128C7E !important;
    text-decoration: none !important;
}

.was-btn-whatsapp:hover,
.was-btn-whatsapp:focus,
.was-btn-whatsapp:active {
    background-color: #0d7065 !important;
    color: #ffffff !important;
    border-color: #0d7065 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 6px -1px rgba(18, 140, 126, 0.35) !important;
}

/* Form Inputs - Rounded 8px */
.was-form-group {
    margin-bottom: 18px;
}

.was-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.was-input,
.was-select,
.was-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #1e293b;
    background-color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.was-input:focus,
.was-select:focus,
.was-textarea:focus {
    border-color: #ed7d31;
    outline: none;
    box-shadow: 0 0 0 3px rgba(237, 125, 49, 0.15);
}

/* Attached Half-Pill Generator / Search */
.was-attached-group {
    display: flex;
    width: 100%;
}

.was-attached-group input[type="text"],
.was-attached-group input[type="url"] {
    flex: 1;
    height: 44px;
    padding: 0 18px;
    border: 1px solid #e2e8f0;
    border-right: none;
    border-radius: 9999px 0 0 9999px !important;
    font-size: 14px;
    outline: none;
}

.was-attached-group input:focus {
    border-color: #ed7d31;
    box-shadow: 0 0 0 2px rgba(237, 125, 49, 0.2);
}

.was-attached-group .was-attached-btn {
    height: 44px;
    padding: 0 24px;
    background-color: #ed7d31;
    color: #ffffff;
    border: 1px solid #ed7d31;
    border-radius: 0 9999px 9999px 0 !important;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.was-attached-group .was-attached-btn:hover {
    background-color: #d66a20;
    border-color: #d66a20;
}

/* Modern Clean Data Table */
.was-table-responsive {
    width: 100%;
    overflow-x: auto;
}

.was-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.was-table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.was-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.was-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Pastel Chips */
.was-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
}

.was-chip-active, .was-chip-completed, .was-chip-unpaid {
    background-color: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.was-chip-pending, .was-chip-processing, .was-chip-pending_payment {
    background-color: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.was-chip-suspended, .was-chip-rejected, .was-chip-refunded {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.was-chip-paid {
    background-color: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

/* Alerts */
.was-alert {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

.was-alert-info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.was-alert-success {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.was-alert-warning {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.was-alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Native Skeleton Loader */
@keyframes was-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.was-skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: was-shimmer 1.5s infinite linear;
    border-radius: 6px;
    display: inline-block;
}

.was-skeleton-box {
    width: 100%;
    height: 38px;
    margin-bottom: 8px;
}

/* Local QR Code Display */
.was-qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.was-qr-canvas-holder {
    width: 160px;
    min-width: 160px;
    height: 160px;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto;
}

.was-qr-canvas-holder canvas {
    display: none !important;
}

.was-qr-canvas-holder img,
.was-qr-canvas-holder img.was-qr-img {
    width: 160px !important;
    height: 160px !important;
    max-width: 160px !important;
    max-height: 160px !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 6px;
    box-sizing: border-box;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: pixelated;
}

/* Responsive */
@media (max-width: 768px) {
    .was-header-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    .was-quick-payout {
        text-align: left;
        width: 100%;
    }
    .was-attached-group {
        flex-direction: column;
        gap: 8px;
    }
    .was-attached-group input[type="text"],
    .was-attached-group input[type="url"],
    .was-attached-group .was-attached-btn {
        border-radius: 9999px !important;
        width: 100%;
    }
}

/* Toast Notification System */
.was-toast-container {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    z-index: 99999999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    pointer-events: none !important;
}

.was-toast {
    pointer-events: auto !important;
    min-width: 280px !important;
    max-width: 440px !important;
    padding: 14px 18px !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 5px solid #0065B3 !important;
    animation: was-toast-in 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
}

.was-toast-success {
    border-left-color: #10b981 !important;
}

.was-toast-error {
    border-left-color: #ef4444 !important;
}

.was-toast-info {
    border-left-color: #0065B3 !important;
}

.was-toast-content {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 1 !important;
}

.was-toast-close {
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    padding: 0 4px !important;
    line-height: 1 !important;
}

.was-toast-close:hover {
    color: #1e293b !important;
}

@keyframes was-toast-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes was-toast-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(16px) scale(0.95);
    }
}

@media (max-width: 480px) {
    .was-toast-container {
        left: 16px !important;
        right: 16px !important;
        bottom: 16px !important;
    }
    .was-toast {
        min-width: unset !important;
        width: 100% !important;
    }
}

/* Confirmation Modal Popup */
.was-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999998;
    backdrop-filter: blur(4px);
    animation: was-fade-in 0.2s ease;
}

.was-confirm-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    text-align: center;
    animation: was-modal-pop 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.was-confirm-icon {
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    background: #eff6ff;
    color: #0065B3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.was-confirm-icon-danger {
    background: #fef2f2;
    color: #ef4444;
}

.was-confirm-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.was-confirm-message {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.was-confirm-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

@keyframes was-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes was-modal-pop {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================================
   Modern Instant Tab Navigation System
   ========================================= */
.was-tabs-nav-wrap {
    margin-bottom: 24px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.was-tabs-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.was-tabs-nav::-webkit-scrollbar {
    display: none;
}

.was-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: transparent;
    color: #64748b;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.was-tab-btn .was-svg-icon {
    color: #64748b;
    transition: color 0.2s ease;
}

.was-tab-btn:hover {
    color: #0065B3;
    background-color: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.was-tab-btn:hover .was-svg-icon {
    color: #0065B3;
}

.was-tab-btn.was-active {
    background-color: #0065B3;
    color: #ffffff !important;
    border-color: #0065B3;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 101, 179, 0.25);
}

.was-tab-btn.was-active .was-svg-icon {
    color: #ffffff !important;
}

/* Tab Panes & Micro-animation */
.was-tabs-content {
    position: relative;
    width: 100%;
}

.was-tab-pane {
    display: none;
    animation: wasTabFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.was-tab-pane.was-active {
    display: block;
}

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

/* =========================================
   Pagination Component (20 Rows / Page)
   ========================================= */
.was-pagination-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.was-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.was-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.was-page-btn:hover:not(:disabled):not(.was-disabled) {
    border-color: #0065B3;
    color: #0065B3;
    background: #f8fafc;
}

.was-page-btn.was-active {
    background: #0065B3;
    color: #ffffff;
    border-color: #0065B3;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 101, 179, 0.2);
}

.was-page-btn.was-disabled,
.was-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f8fafc;
    border-color: #e2e8f0;
}

.was-page-dots {
    padding: 0 4px;
    color: #94a3b8;
    font-weight: 600;
    font-size: 14px;
}

/* =========================================
   Product Lookup & Shortlinks Component
   ========================================= */

/* Searchable Product Dropdown (Select2 Style) */
.was-product-select-wrap {
    position: relative;
    width: 100%;
}

.was-product-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.was-search-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.was-product-search-input {
    width: 100%;
    height: 46px;
    padding: 10px 40px 10px 42px !important;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #1e293b;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.was-product-search-input:focus {
    border-color: #0065B3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 101, 179, 0.15);
}

.was-search-clear-btn {
    position: absolute;
    right: 12px;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #94a3b8;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.was-search-clear-btn:hover,
.was-search-clear-btn:focus,
.was-search-clear-btn:active {
    color: #475569;
    background: transparent !important;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Dropdown Menu List */
.was-product-dropdown-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    padding: 6px;
}

.was-product-dropdown-list.was-open {
    display: block;
    animation: wasDropdownFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wasDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Item in Dropdown */
.was-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    user-select: none;
}

.was-product-item:hover {
    background-color: #f8fafc;
}

.was-product-item.was-selected {
    background-color: #eff6ff;
}

.was-product-thumb-box {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
}

.was-product-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.was-thumb-home {
    background: #e0f2fe;
    color: #0284c7;
}

.was-product-info {
    flex: 1;
    min-width: 0;
}

.was-product-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.was-product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    margin-top: 2px;
    color: #64748b;
    flex-wrap: wrap;
}

.was-product-price {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

/* Pricing & Potential Commission Summary */
.was-pricing-summary {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.was-price-numbers {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.was-price-strike {
    color: #94a3b8 !important;
    text-decoration: line-through !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

.was-price-active {
    color: #0f172a !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.was-commission-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ecfdf5;
    color: #059669 !important;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #a7f3d0;
    line-height: 1.4;
}

.was-commission-badge.was-commission-none {
    background: #f1f5f9;
    color: #64748b !important;
    border-color: #e2e8f0;
}

.was-product-sku {
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.was-product-check {
    opacity: 0;
    color: #0065B3;
    flex-shrink: 0;
    transition: opacity 0.15s ease;
}

.was-product-item.was-selected .was-product-check {
    opacity: 1;
}

/* Selected Product Info Card */
.was-selected-prod-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
}

.was-selected-prod-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}

.was-selected-prod-media {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #e0f2fe;
    color: #0065B3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #cbd5e1;
    overflow: hidden;
}

.was-selected-prod-details {
    flex: 1;
    min-width: 0;
}

.was-selected-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    display: block;
}

/* Link Output Layout */
.was-link-output-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.was-link-output-grid {
    display: block;
    width: 100%;
}

.was-link-fields-col {
    min-width: 0;
    width: 100%;
}

.was-link-group-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
}

.was-link-box-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.was-link-box-main {
    flex: 1 1 auto;
    min-width: 0;
}

.was-link-box-qr {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.was-link-primary-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #bae6fd;
}

.was-link-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.was-link-box-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #0369a1;
    margin: 0;
}

.was-badge-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.was-badge-pill-success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.was-input-highlight {
    background: #ffffff !important;
    font-weight: 600 !important;
    color: #0065B3 !important;
    border-color: #7dd3fc !important;
    font-size: 14.5px !important;
}

.was-btn-copy-inline.was-btn-primary-copy {
    color: #0065B3 !important;
}

.was-btn-copy-inline.was-btn-primary-copy:hover {
    background-color: rgba(0, 101, 179, 0.12) !important;
    color: #004d88 !important;
}

.was-link-lp-box {
    background: linear-gradient(135deg, #fff9f5 0%, #fff1e6 100%) !important;
    border: 1px solid #ED7D31 !important;
}

.was-link-lp-label {
    color: #c25e1a !important;
}

.was-input-lp-highlight {
    color: #c25e1a !important;
    border-color: #fed7aa !important;
}

.was-input-lp-highlight:focus {
    border-color: #ED7D31 !important;
    box-shadow: 0 0 0 3px rgba(237, 125, 49, 0.15) !important;
}

.was-btn-copy-inline.was-btn-lp-copy {
    color: #ED7D31 !important;
}

.was-btn-copy-inline.was-btn-lp-copy:hover {
    background-color: rgba(237, 125, 49, 0.15) !important;
    color: #c25e1a !important;
}

.was-badge-pill-purple {
    background: #ede9fe;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}

.was-badge-pill-muted {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.was-link-hint {
    font-size: 12px;
    color: #64748b;
    margin: 8px 0 0 0;
    line-height: 1.4;
}

/* Direct Original Link (Link Asli) Styles */
.was-direct-link-section {
    width: 100%;
}

.was-direct-link-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.was-input-gray {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
    font-size: 13px !important;
}

.was-input-gray:focus {
    border-color: #94a3b8 !important;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2) !important;
    background-color: #ffffff !important;
}

.was-btn-copy-inline.was-btn-gray-copy {
    color: #64748b !important;
}

.was-btn-copy-inline.was-btn-gray-copy:hover {
    background-color: rgba(100, 116, 139, 0.15) !important;
    color: #334155 !important;
}

/* Embedded QR Code Cards inside Link Boxes */
.was-qr-embed-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    padding: 10px 12px 12px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    width: 140px;
    box-sizing: border-box;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.was-qr-embed-blue {
    border: 1px solid #bae6fd;
    background: #ffffff;
}

.was-qr-embed-orange {
    border: 1px solid #fed7aa;
    background: #ffffff;
}

.was-qr-embed-card .was-qr-canvas-holder {
    width: 108px;
    min-width: 108px;
    height: 108px;
    min-height: 108px;
    padding: 4px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0 auto;
}

.was-qr-embed-blue .was-qr-canvas-holder {
    border-color: #e0f2fe;
}

.was-qr-embed-orange .was-qr-canvas-holder {
    border-color: #ffedd5;
}

.was-qr-embed-card .was-qr-canvas-holder img,
.was-qr-embed-card .was-qr-canvas-holder canvas {
    width: 100px !important;
    height: 100px !important;
    max-width: 100px !important;
    max-height: 100px !important;
    display: block !important;
    margin: 0 auto !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.was-qr-embed-card .was-qr-caption {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-top: 6px;
    margin-bottom: 2px;
}

.was-qr-download-btn {
    width: 100%;
    margin-top: 6px;
    padding: 5px 8px;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.was-btn-qr-blue {
    color: #0065B3 !important;
    border: 1px solid #7dd3fc !important;
    background: #f0f9ff !important;
}

.was-btn-qr-blue:hover {
    background: #0065B3 !important;
    color: #ffffff !important;
    border-color: #0065B3 !important;
    box-shadow: 0 2px 6px rgba(0, 101, 179, 0.25);
}

.was-btn-qr-orange {
    color: #c25e1a !important;
    border: 1px solid #fed7aa !important;
    background: #fff7ed !important;
}

.was-btn-qr-orange:hover {
    background: #ED7D31 !important;
    color: #ffffff !important;
    border-color: #ED7D31 !important;
    box-shadow: 0 2px 6px rgba(237, 125, 49, 0.25);
}

/* Standalone QR Card (legacy/fallback) */
.was-qr-col {
    display: flex;
    justify-content: center;
}

.was-qr-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    width: 100%;
    max-width: 220px;
}

.was-qr-header {
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.was-qr-canvas-holder {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 160px;
    background: #ffffff;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.was-qr-canvas-holder img,
.was-qr-canvas-holder canvas {
    max-width: 160px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

.was-qr-caption {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 8px;
}

/* Social Share Rows & Icon-Only Buttons */
.was-share-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
}

.was-share-row-prod {
    border-top: 1px dashed rgba(0, 101, 179, 0.2);
}

.was-share-row-lp {
    border-top: 1px dashed rgba(237, 125, 49, 0.25);
}

.was-share-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.was-share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.was-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff !important;
    border: none;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
}

/* Icon-Only Style */
.was-share-btn-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.was-share-btn-icon:hover {
    transform: translateY(-2px);
    opacity: 0.96;
}

.was-share-btn-icon:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.was-share-btn-icon .was-svg-icon {
    width: 16px;
    height: 16px;
    margin: 0 auto;
}

.was-share-wa {
    background: #25D366;
}
.was-share-wa:hover {
    background: #1eb956;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.was-share-ig {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.was-share-ig:hover {
    box-shadow: 0 4px 12px rgba(220, 39, 67, 0.35);
}

.was-share-tg {
    background: #0088cc;
}
.was-share-tg:hover {
    background: #0077b5;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.35);
}

.was-share-fb {
    background: #1877f2;
}
.was-share-fb:hover {
    background: #166fe5;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.35);
}

.was-share-tw {
    background: #0f172a;
}
.was-share-tw:hover {
    background: #000000;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
}

/* Legacy share bar fallback */
.was-share-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.was-share-title {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

/* Mobile responsive for Link Afiliasi Grid & Tabs */
@media (max-width: 768px) {
    .was-link-output-wrapper {
        padding: 16px;
    }
    .was-link-group-box {
        padding: 14px 16px;
    }
    .was-link-box-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .was-link-box-qr {
        width: 100%;
        justify-content: center;
    }
    .was-qr-embed-card {
        width: 100%;
        max-width: 180px;
        margin: 0 auto;
        padding: 12px;
    }
    .was-qr-embed-card .was-qr-canvas-holder {
        width: 128px;
        min-width: 128px;
        height: 128px;
        min-height: 128px;
    }
    .was-qr-embed-card .was-qr-canvas-holder img,
    .was-qr-embed-card .was-qr-canvas-holder canvas {
        width: 120px !important;
        height: 120px !important;
        max-width: 120px !important;
        max-height: 120px !important;
    }
    .was-qr-download-btn {
        padding: 7px 12px;
        font-size: 12px;
    }
    .was-share-row,
    .was-share-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .was-share-buttons {
        width: 100%;
        justify-content: flex-start;
    }
    .was-tabs-nav {
        gap: 6px;
    }
    .was-tab-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* Custom Slug Inline Editor & Badges */
.was-btn-inline-edit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 101, 179, 0.08);
    color: #0065b3;
    border: 1px solid rgba(0, 101, 179, 0.2);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.was-btn-inline-edit:hover {
    background: #0065b3;
    color: #ffffff;
    border-color: #0065b3;
}

.was-btn-inline-lp {
    background: rgba(237, 125, 49, 0.08);
    color: #ed7d31;
    border-color: rgba(237, 125, 49, 0.25);
}

.was-btn-inline-lp:hover {
    background: #ed7d31;
    color: #ffffff;
    border-color: #ed7d31;
}

.was-locked-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 500;
}

.was-locked-badge-orange {
    background: #fff7ed;
    color: #c2410c;
    border-color: #ffedd5;
}

.was-custom-slug-editor {
    margin-top: 10px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    animation: was-fade-in 0.2s ease-out;
}

.was-custom-slug-lp {
    border-color: #fdba74;
    background: #fffdfa;
}

.was-custom-slug-input-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.was-custom-slug-prefix {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    background: #f1f5f9;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.was-custom-slug-input {
    flex: 1;
    min-width: 140px;
    height: 34px !important;
    padding: 4px 10px !important;
    font-size: 13px !important;
    font-weight: 600;
    color: #0f172a;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
}

.was-custom-slug-input:focus {
    border-color: #0065b3 !important;
    box-shadow: 0 0 0 2px rgba(0, 101, 179, 0.15) !important;
}

.was-custom-slug-note {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 6px;
}

.was-btn-save-slug {
    background-color: #0065b3 !important;
    color: #ffffff !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
}

.was-btn-save-lp {
    background-color: #ed7d31 !important;
}


