/* ============================================
   XNRL Dashboard Styles
   ============================================ */

/* Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.dashboard-sidebar {
    width: 280px;
    background: rgba(10, 8, 32, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-section {
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
}

.sidebar-section-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.25);
    padding: 0.5rem 0.75rem;
    font-weight: 600;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.75rem;
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

.sidebar-link:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-link.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, #8b5cf6, #ec4899);
    border-radius: 0 4px 4px 0;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.sidebar-footer {
    padding: 1rem 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Main Content */
.dashboard-main {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    min-height: 100vh;
}

.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
}

.topbar-left h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
}

.topbar-left p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Section Panels */
.dash-section {
    display: none;
}

.dash-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stat Cards */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1rem;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Glass Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.glass-panel h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.glass-panel h3 i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.6rem;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Icon background colors — applied via inline style on the icon */

/* Tables */
.dash-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.dash-table thead th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-table tbody td {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.dash-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-green {
    background: rgba(34, 197, 94, 0.1);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-yellow {
    background: rgba(234, 179, 8, 0.1);
    color: #fde047;
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.badge-pink {
    background: rgba(236, 72, 153, 0.1);
    color: #f9a8d4;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.badge-purple {
    background: rgba(139, 92, 246, 0.1);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.badge-red {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

.product-card .product-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.product-card .product-price {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.product-card .product-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.btn-buy {
    width: 100%;
    padding: 0.65rem;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: none;
    border-radius: 0.6rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-buy:hover {
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
    transform: translateY(-1px);
}

/* Checkout Modal */
.checkout-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.checkout-modal.active {
    display: flex;
}

.checkout-modal-content {
    background: #0f0e24;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 2rem;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.checkout-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.checkout-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Checkout Title & Price */
.checkout-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.checkout-price {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

/* Express Checkout (Apple Pay / Google Pay) */
.express-checkout-container {
    margin-bottom: 0.75rem;
    min-height: 0;
}

.checkout-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.checkout-divider::before,
.checkout-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

/* Payment Element */
.payment-element-container {
    margin-bottom: 1rem;
}

/* Coupon Toggle */
.coupon-toggle-section {
    margin-bottom: 1rem;
}

.coupon-toggle-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.4rem 0;
    transition: color 0.2s;
    font-family: inherit;
}

.coupon-toggle-btn:hover {
    color: #c4b5fd;
}

.coupon-toggle-btn i {
    margin-right: 0.3rem;
}

.coupon-form {
    margin-top: 0.5rem;
    animation: fadeIn 0.2s ease;
}

.coupon-input-row {
    display: flex;
    gap: 0.5rem;
}

.coupon-apply-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.coupon-message {
    font-size: 0.75rem;
    margin-top: 0.4rem;
    display: none;
}

/* Checkout Error */
.checkout-error-msg {
    color: #fca5a5;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    display: none;
}

/* Pay Button */
.checkout-pay-button {
    font-size: 1rem;
    padding: 0.85rem;
}

/* Footer */
.checkout-footer-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.7rem;
    margin-top: 1rem;
}

/* Affiliate Code Box */
.affiliate-code-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(139, 92, 246, 0.08);
    border: 1px dashed rgba(139, 92, 246, 0.3);
    border-radius: 0.75rem;
}

.affiliate-code-box code {
    font-size: 1.1rem;
    font-weight: 700;
    color: #c4b5fd;
    letter-spacing: 0.05em;
}

.btn-copy {
    padding: 0.4rem 0.75rem;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0.5rem;
    color: #c4b5fd;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: rgba(139, 92, 246, 0.25);
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.admin-tab {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
}

.admin-tab.active {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
}

.admin-panel-content>div {
    display: none;
}

.admin-panel-content>div.active {
    display: block;
}

/* Forms */
.dash-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.6rem;
    color: #fff;
    font-size: 0.85rem;
    transition: all 0.2s;
    outline: none;
}

.dash-input:focus {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.08);
}

.dash-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.dash-btn {
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: none;
    border-radius: 0.6rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dash-btn:hover {
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.3);
    transform: translateY(-1px);
}

.dash-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.dash-btn-outline {
    padding: 0.6rem 1.25rem;
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0.6rem;
    color: #c4b5fd;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.dash-btn-outline:hover {
    background: rgba(139, 92, 246, 0.1);
}

.dash-btn-danger {
    padding: 0.6rem 1.25rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 0.6rem;
    color: #fca5a5;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.dash-btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Support Card */
.support-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.support-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

.support-card .support-icon {
    width: 52px;
    height: 52px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    flex-shrink: 0;
}

/* Mobile */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 50;
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    background: rgba(10, 8, 32, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 35;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .dashboard-sidebar {
        transform: translateX(-100%);
    }

    .dashboard-sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.open {
        display: block;
    }

    .dashboard-main {
        margin-left: 0;
        padding: 1.25rem;
        padding-top: 4rem;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

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

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

/* Support link colors on hover */
.support-discord:hover {
    border-color: rgba(88, 101, 242, 0.3) !important;
}

.support-email:hover {
    border-color: rgba(236, 72, 153, 0.3) !important;
}

.support-faq:hover {
    border-color: rgba(234, 179, 8, 0.3) !important;
}

/* Loading spinner */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.3);
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.empty-state p {
    font-size: 0.9rem;
}

/* Commission tier progress */
.tier-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.tier-progress-bar {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    transition: width 0.5s ease;
}

/* ============================================
   AFFILIATE REWARDS SYSTEM STYLES
   ============================================ */

/* Affiliate Sub-Tabs */
.affiliate-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    padding: 0.35rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.85rem;
}

.affiliate-tab {
    flex: 1;
    min-width: 100px;
    padding: 0.6rem 1rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.6rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.affiliate-tab:hover {
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.04);
}

.affiliate-tab.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.08));
    border-color: rgba(139, 92, 246, 0.25);
    color: #c4b5fd;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.1);
}

.affiliate-tab i {
    margin-right: 0.35rem;
}

/* Affiliate Tab Content */
.affiliate-tab-content {
    display: none;
}

.affiliate-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Rate Cards */
.rate-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.rate-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rate-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.rate-card-youtube {
    border-color: rgba(239, 68, 68, 0.2);
}

.rate-card-youtube:hover {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.1);
}

.rate-card-tiktok {
    border-color: rgba(236, 72, 153, 0.2);
}

.rate-card-tiktok:hover {
    border-color: rgba(236, 72, 153, 0.4);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.1);
}

.rate-card-header {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rate-card-youtube .rate-card-header {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
}

.rate-card-youtube .rate-card-header i {
    color: #ef4444;
}

.rate-card-tiktok .rate-card-header {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(236, 72, 153, 0.05));
}

.rate-card-tiktok .rate-card-header i {
    color: #ec4899;
}

.rate-card-body {
    padding: 0.75rem 1.25rem;
}

.rate-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.rate-row:last-child {
    border-bottom: none;
}

.rate-views {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.rate-pay {
    font-weight: 700;
    font-size: 0.95rem;
    color: #86efac;
}

.rate-card-footer {
    padding: 0.85rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    letter-spacing: 0.03em;
}

/* Warning Banner */
.warning-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 0.75rem;
    color: #fca5a5;
    font-size: 0.85rem;
    line-height: 1.5;
}

.warning-banner i {
    color: #ef4444;
    font-size: 1.1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed rgba(139, 92, 246, 0.25);
    border-radius: 0.85rem;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(139, 92, 246, 0.03);
}

.upload-zone:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.06);
    transform: translateY(-1px);
}

.upload-zone i {
    font-size: 2rem;
    color: rgba(139, 92, 246, 0.5);
    margin-bottom: 0.75rem;
    display: block;
}

.upload-zone p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.upload-zone span {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.7rem;
}

/* Upload Preview */
.upload-preview {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.upload-preview img {
    max-width: 150px;
    max-height: 100px;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
}

.upload-preview .preview-item {
    position: relative;
    display: inline-block;
}

.upload-preview .remove-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ef4444;
    border: none;
    color: #fff;
    font-size: 0.65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Balance Display */
.balance-display {
    text-align: center;
    padding: 2rem 1rem;
}

.balance-amount {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #22c55e, #86efac);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.balance-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

/* Image modal for viewing proofs */
.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.image-modal.active {
    display: flex;
}

.image-modal img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 0.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Admin action buttons */
.admin-action-btn {
    padding: 0.3rem 0.6rem;
    border-radius: 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    margin-right: 0.35rem;
}

.admin-action-btn.approve {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.admin-action-btn.approve:hover {
    background: rgba(34, 197, 94, 0.25);
}

.admin-action-btn.reject {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.admin-action-btn.reject:hover {
    background: rgba(239, 68, 68, 0.25);
}

.admin-action-btn.pay {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.admin-action-btn.pay:hover {
    background: rgba(59, 130, 246, 0.25);
}

.proof-thumb {
    width: 40px;
    height: 40px;
    border-radius: 0.35rem;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s;
}

.proof-thumb:hover {
    border-color: rgba(139, 92, 246, 0.5);
    transform: scale(1.1);
}

/* Mobile adjustments for new affiliate features */
@media (max-width: 768px) {
    .affiliate-tabs {
        flex-direction: column;
    }

    .affiliate-tab {
        min-width: unset;
    }

    .rate-cards-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .balance-amount {
        font-size: 2.25rem;
    }
}

/* ============================================
   Support Ticket Reply Modals
   ============================================ */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ticket-modal-card {
    background: linear-gradient(145deg, #1a1035 0%, #0f0a1f 100%);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 1.25rem;
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(139, 92, 246, 0.08);
    animation: slideUp 0.3s ease;
    overflow: hidden;
    max-height: 85vh;
}

.ticket-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 1.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(139, 92, 246, 0.04);
}

.ticket-modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
}

.ticket-modal-meta {
    margin: 0.35rem 0 0 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.ticket-modal-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.ticket-modal-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.3rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.ticket-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

.ticket-thread {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 200px;
    max-height: 380px;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
}

.ticket-thread::-webkit-scrollbar {
    width: 5px;
}

.ticket-thread::-webkit-scrollbar-track {
    background: transparent;
}

.ticket-thread::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 10px;
}

.ticket-bubble {
    padding: 0.85rem 1.1rem;
    border-radius: 1rem;
    max-width: 85%;
    animation: slideUp 0.2s ease;
}

.ticket-bubble.staff {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.2);
    align-self: flex-start;
    border-bottom-left-radius: 0.3rem;
}

.ticket-bubble.customer {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    align-self: flex-end;
    border-bottom-right-radius: 0.3rem;
}

.ticket-bubble-sender {
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ticket-bubble.staff .ticket-bubble-sender {
    color: #a78bfa;
}

.ticket-bubble.customer .ticket-bubble-sender {
    color: #9ca3af;
}

.ticket-bubble-text {
    color: #e5e7eb;
    font-size: 0.9rem;
    line-height: 1.55;
    word-break: break-word;
}

.ticket-bubble-time {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 0.4rem;
    text-align: right;
}

.ticket-compose {
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
}

.ticket-compose textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.ticket-compose textarea:focus {
    border-color: rgba(139, 92, 246, 0.4);
}

.ticket-compose textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.ticket-compose button {
    margin-top: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border: none;
    border-radius: 0.75rem;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ticket-compose button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.35);
}

.ticket-compose button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ticket-empty {
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
    padding: 2.5rem 1rem;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.ticket-empty i {
    font-size: 2rem;
    opacity: 0.3;
}