        /* Mobile First Approach - Base styles for mobile */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        :root {
            --primary-color: #4CAF50;
            --secondary-color: #2196F3;
            --danger-color: #f44336;
            --warning-color: #ff9800;
            --dark-color: #333;
            --light-color: #f4f4f4;
            --sidebar-width: 250px;
            --header-height: 60px;
        }

        body {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            font-size: 14px;
        }

        /* Loading Overlay */
        .loading-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255,255,255,0.9);
            z-index: 9999;
            justify-content: center;
            align-items: center;
        }

        .loading-overlay.active {
            display: flex;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 5px solid #f3f3f3;
            border-top: 5px solid var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Toast Notification */
        .toast {
            position: fixed;
            top: 20px;
            right: 20px;
            background: var(--dark-color);
            color: white;
            padding: 12px 20px;
            border-radius: 5px;
            z-index: 10000;
            display: none;
            animation: slideIn 0.3s ease;
        }

        .toast.show {
            display: block;
        }

        .toast.success {
            background: var(--primary-color);
        }

        .toast.error {
            background: var(--danger-color);
        }

        .toast.warning {
            background: var(--warning-color);
        }

        @keyframes slideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        /* Auth Container */
        .auth-container {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding: 20px;
        }

        .auth-box {
            background: white;
            border-radius: 15px;
            padding: 30px 20px;
            width: 100%;
            max-width: 400px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
        }

        .auth-header {
            text-align: center;
            margin-bottom: 30px;
        }


        .auth-header h1 {
            color: var(--primary-color);
            font-size: 28px;
            margin-bottom: 5px;
        }

        .auth-header p {
            color: #666;
            font-size: 14px;
        }

        .auth-form {
            display: none;
        }

        .auth-form.active {
            display: block;
        }

        .auth-form h2 {
            color: #333;
            font-size: 20px;
            margin-bottom: 20px;
            text-align: center;
        }

        .input-group {
            position: relative;
            margin-bottom: 20px;
        }

        .input-group i {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: #999;
            font-size: 16px;
        }

        .input-group input, .input-group select {
            width: 100%;
            padding: 15px 15px 15px 45px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 14px;
            transition: border-color 0.3s;
        }

        .input-group input:focus, .input-group select:focus {
            outline: none;
            border-color: var(--primary-color);
        }

        .auth-btn {
            width: 100%;
            padding: 15px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.3s;
            margin-bottom: 20px;
        }

        .auth-btn:hover {
            background: #45a049;
        }

        .social-login {
            text-align: center;
            margin-bottom: 20px;
        }

        .social-login p {
            color: #666;
            margin-bottom: 15px;
            position: relative;
        }

        .social-login p::before,
        .social-login p::after {
            content: "";
            position: absolute;
            top: 50%;
            width: 30%;
            height: 1px;
            background: #ddd;
        }

        .social-login p::before {
            left: 0;
        }

        .social-login p::after {
            right: 0;
        }

        .social-icons {
            display: flex;
            justify-content: center;
            gap: 15px;
        }

        .social-btn {
            width: 45px;
            height: 45px;
            border: none;
            border-radius: 50%;
            color: white;
            cursor: pointer;
            transition: transform 0.3s;
        }

        .social-btn:hover {
            transform: scale(1.1);
        }

        .social-btn.google {
            background: #DB4437;
        }

        .social-btn.facebook {
            background: #4267B2;
        }

        .social-btn.github {
            background: #333;
        }

        .switch-text {
            text-align: center;
            color: #666;
            font-size: 14px;
        }

        .switch-text a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 600;
            cursor: pointer;
        }

        .terms-checkbox {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
            font-size: 14px;
        }

        .terms-checkbox input[type="checkbox"] {
            width: 18px;
            height: 18px;
        }

        .terms-checkbox a {
            color: var(--primary-color);
            text-decoration: none;
            cursor: pointer;
        }

        /* Dashboard Common Styles */
        .dashboard {
            display: none;
            min-height: 100vh;
            background: #f5f5f5;
            position: relative;
        }

        .dashboard.active {
            display: block;
        }

        .dashboard-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: var(--header-height);
            background: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            z-index: 100;
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .menu-toggle {
            font-size: 20px;
            cursor: pointer;
            color: #666;
        }

        .header-left h2 {
            color: var(--primary-color);
            font-size: 18px;
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .notification-icon {
            font-size: 18px;
            color: #666;
            cursor: pointer;
        }

        .user-profile {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            position: relative;
        }

        .user-profile img {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            background: var(--primary-color);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }

        .user-profile span {
            display: none;
            font-size: 14px;
            color: #333;
        }

        @media (min-width: 768px) {
            .user-profile span {
                display: inline;
            }
        }

        /* User Menu Dropdown */
        .user-menu {
            position: fixed;
            top: var(--header-height);
            right: 10px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            display: none;
            z-index: 101;
            min-width: 200px;
        }

        .user-menu.show {
            display: block;
        }

        .user-menu a {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 20px;
            color: #333;
            text-decoration: none;
            transition: background 0.3s;
            cursor: pointer;
        }

        .user-menu a:hover {
            background: #f5f5f5;
        }

        .user-menu a i {
            width: 20px;
            color: #666;
        }

        /* Sidebar */
        .sidebar {
            position: fixed;
            top: var(--header-height);
            left: -100%;
            width: var(--sidebar-width);
            height: calc(100vh - var(--header-height));
            background: white;
            transition: left 0.3s ease;
            z-index: 99;
            overflow-y: auto;
            box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        }

        .sidebar.active {
            left: 0;
        }

        .sidebar-header {
            padding: 20px;
            text-align: center;
            border-bottom: 1px solid #eee;
        }

        .sidebar-header img {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            margin-bottom: 10px;
            background: var(--primary-color);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 10px;
            font-weight: bold;
        }

        .sidebar-header h3 {
            color: var(--primary-color);
            font-size: 18px;
        }

        .sidebar-menu {
            list-style: none;
            padding: 20px 0;
        }

        .sidebar-menu li {
            padding: 12px 20px;
            display: flex;
            align-items: center;
            gap: 12px;
            color: #666;
            cursor: pointer;
            transition: all 0.3s;
        }

        .sidebar-menu li i {
            width: 20px;
            font-size: 16px;
        }

        .sidebar-menu li span {
            font-size: 14px;
        }

        .sidebar-menu li:hover {
            background: #f0f0f0;
            color: var(--primary-color);
        }

        .sidebar-menu li.active {
            background: var(--primary-color);
            color: white;
        }

        /* Main Content */
        .main-content {
            margin-top: var(--header-height);
            padding: 20px;
            transition: margin-left 0.3s;
        }

        @media (min-width: 768px) {
            .main-content.shifted {
                margin-left: var(--sidebar-width);
            }
        }

        .tab-content {
            display: none;
        }

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

        /* Stats Grid */
        .stats-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-bottom: 20px;
        }

        .stat-card {
            background: white;
            padding: 20px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            gap: 15px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .stat-card i {
            font-size: 24px;
            color: var(--primary-color);
            background: rgba(76, 175, 80, 0.1);
            padding: 15px;
            border-radius: 10px;
        }

        .stat-info {
            display: flex;
            flex-direction: column;
        }

        .stat-label {
            font-size: 12px;
            color: #666;
            margin-bottom: 5px;
        }

        .stat-value {
            font-size: 18px;
            font-weight: bold;
            color: #333;
        }

        /* Daily Tasks Card */
        .daily-tasks-card,
        .active-packages-card {
            background: white;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .daily-tasks-card h3,
        .active-packages-card h3 {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
            font-size: 16px;
        }

        .badge {
            background: var(--warning-color);
            color: white;
            padding: 3px 8px;
            border-radius: 12px;
            font-size: 11px;
        }

        .task-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px;
            border: 1px solid #eee;
            border-radius: 8px;
            margin-bottom: 10px;
        }

        .task-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .task-info i {
            font-size: 18px;
            color: var(--warning-color);
        }

        .task-info h4 {
            font-size: 14px;
            margin-bottom: 3px;
        }

        .task-info p {
            font-size: 11px;
            color: #999;
        }

        .task-status {
            padding: 5px 10px;
            border-radius: 15px;
            font-size: 11px;
            font-weight: 600;
        }

        .task-status.pending {
            background: #fff3e0;
            color: var(--warning-color);
        }

        .task-status.completed {
            background: #e8f5e8;
            color: var(--primary-color);
        }

        .do-task-btn {
            background: var(--primary-color);
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 5px;
            font-size: 12px;
            cursor: pointer;
        }

        /* Packages Grid */
        .packages-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 15px;
        }

        .package-card {
            background: white;
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            position: relative;
            overflow: hidden;
        }

        .package-card.vip-6,
        .package-card.vip-7,
        .package-card.vip-8 {
            border: 2px solid gold;
        }

        .package-badge {
            position: absolute;
            top: 10px;
            right: -30px;
            background: gold;
            color: #333;
            padding: 5px 30px;
            transform: rotate(45deg);
            font-size: 11px;
            font-weight: bold;
        }

        .package-header {
            text-align: center;
            margin-bottom: 15px;
        }

        .package-header h3 {
            color: var(--primary-color);
            font-size: 18px;
            margin-bottom: 5px;
        }

        .package-header .investment {
            color: #666;
            font-size: 14px;
        }

        .package-details {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 15px;
            text-align: center;
        }

        .detail-item {
            padding: 10px;
            background: #f9f9f9;
            border-radius: 5px;
        }

        .detail-item .label {
            display: block;
            font-size: 11px;
            color: #666;
            margin-bottom: 5px;
        }

        .detail-item .value {
            font-size: 16px;
            font-weight: bold;
            color: #333;
        }

        .detail-item .value.profit {
            color: var(--primary-color);
        }

        .package-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #eee;
        }

        .package-footer .tasks {
            font-size: 12px;
            color: #666;
        }

        .package-footer .tasks i {
            color: var(--warning-color);
            margin-right: 5px;
        }

        .buy-btn {
            background: var(--primary-color);
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 5px;
            font-size: 12px;
            cursor: pointer;
        }

        /* Deposit Container */
        .deposit-container,
        .withdraw-container {
            background: white;
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .min-deposit-info {
            display: flex;
            align-items: center;
            gap: 10px;
            background: #e3f2fd;
            color: var(--secondary-color);
            padding: 10px;
            border-radius: 5px;
            margin-bottom: 20px;
            font-size: 13px;
        }

        .payment-methods {
            margin-bottom: 20px;
        }

        .payment-methods h3 {
            font-size: 14px;
            margin-bottom: 15px;
        }

        .payment-options {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }

        .payment-option {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            padding: 15px;
            border: 2px solid #eee;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .payment-option:hover {
            border-color: var(--primary-color);
        }

        .payment-option input[type="radio"] {
            display: none;
        }

        .payment-option input[type="radio"]:checked + img {
            border-color: var(--primary-color);
        }

        .payment-option img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #f0f0f0;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .payment-option span {
            font-size: 11px;
            color: #666;
        }

        .package-suggestion {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid #eee;
        }

        .package-suggestion h4 {
            font-size: 14px;
            margin-bottom: 15px;
        }

        .suggested-packages {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        /* Withdraw Styles */
        .withdraw-info {
            display: grid;
            grid-template-columns: 1fr;
            gap: 10px;
            margin-bottom: 20px;
        }

        .info-box {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px;
            background: #f9f9f9;
            border-radius: 5px;
            font-size: 12px;
        }

        .info-box i {
            color: var(--primary-color);
        }

        .balance-display {
            display: flex;
            justify-content: space-between;
            padding: 15px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 8px;
            margin-bottom: 10px;
        }

        .balance-display.referral {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        }

        .balance-amount {
            font-size: 18px;
            font-weight: bold;
        }

        .withdraw-select {
            width: 100%;
            padding: 15px;
            border: 1px solid #ddd;
            border-radius: 8px;
            margin-bottom: 20px;
            font-size: 14px;
        }

        .action-btn {
            width: 100%;
            padding: 15px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
        }

        /* Referral Styles */
        .referral-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 20px;
        }

        .stat-card.small {
            padding: 15px;
        }

        .referral-link-box {
            background: #f9f9f9;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .referral-link-box h3 {
            font-size: 14px;
            margin-bottom: 10px;
        }

        .link-display {
            display: flex;
            gap: 10px;
            margin-bottom: 10px;
        }

        .link-display input {
            flex: 1;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 12px;
        }

        .link-display button {
            padding: 12px 20px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }

        .referral-note {
            font-size: 11px;
            color: #999;
            font-style: italic;
        }

        .referral-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 12px;
        }

        .referral-table th,
        .referral-table td {
            padding: 10px;
            text-align: left;
            border-bottom: 1px solid #eee;
        }

        .referral-table th {
            background: #f5f5f5;
            font-weight: 600;
        }

        /* History Styles */
        .history-filters {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            overflow-x: auto;
            padding-bottom: 5px;
        }

        .filter-btn {
            padding: 8px 15px;
            border: none;
            background: #f0f0f0;
            border-radius: 20px;
            font-size: 12px;
            cursor: pointer;
            white-space: nowrap;
        }

        .filter-btn.active {
            background: var(--primary-color);
            color: white;
        }

        .history-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px;
            background: white;
            border-radius: 8px;
            margin-bottom: 10px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }

        .history-icon {
            width: 40px;
            height: 40px;
            background: #f0f0f0;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .history-icon i {
            font-size: 18px;
        }

        .history-icon.deposit i {
            color: var(--primary-color);
        }

        .history-icon.withdrawal i {
            color: var(--danger-color);
        }

        .history-icon.profit i {
            color: var(--warning-color);
        }

        .history-details {
            flex: 1;
        }

        .history-title {
            font-weight: 600;
            font-size: 14px;
            margin-bottom: 3px;
        }

        .history-date {
            font-size: 11px;
            color: #999;
        }

        .history-amount {
            font-weight: bold;
        }

        .history-amount.positive {
            color: var(--primary-color);
        }

        .history-amount.negative {
            color: var(--danger-color);
        }

        /* Admin Tables */
        .data-table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            border-radius: 8px;
            overflow: hidden;
            font-size: 12px;
        }

        .data-table thead {
            background: var(--primary-color);
            color: white;
        }

        .data-table th,
        .data-table td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid #eee;
        }

        .data-table tbody tr:hover {
            background: #f5f5f5;
        }

        .status-badge {
            padding: 3px 8px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
            display: inline-block;
        }

        .status-badge.pending {
            background: #fff3e0;
            color: var(--warning-color);
        }

        .status-badge.completed {
            background: #e8f5e8;
            color: var(--primary-color);
        }

        .status-badge.rejected {
            background: #ffebee;
            color: var(--danger-color);
        }

        .action-buttons {
            display: flex;
            gap: 5px;
        }

        .action-btn.small {
            padding: 5px 10px;
            font-size: 11px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 3px;
            cursor: pointer;
        }

        .search-bar {
            position: relative;
            margin-bottom: 20px;
        }

        .search-bar i {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: #999;
        }

        .search-bar input {
            width: 100%;
            padding: 12px 12px 12px 40px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 14px;
        }

        /* System Health */
        .system-health {
            background: white;
            border-radius: 10px;
            padding: 20px;
            margin-top: 20px;
        }

        .health-metrics {
            display: grid;
            grid-template-columns: 1fr;
            gap: 15px;
            margin-top: 15px;
        }

        .metric {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px;
            background: #f9f9f9;
            border-radius: 5px;
        }

        .status {
            padding: 3px 10px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
        }

        .status.online {
            background: #e8f5e8;
            color: var(--primary-color);
        }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .modal.show {
            display: flex;
        }

        .modal-content {
            background: white;
            border-radius: 10px;
            padding: 30px;
            max-width: 500px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            position: relative;
        }

        .close {
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 24px;
            cursor: pointer;
            color: #999;
        }

        .terms-text {
            margin: 20px 0;
        }

        .terms-text h3 {
            margin-bottom: 15px;
            font-size: 16px;
        }

        .terms-text p {
            margin-bottom: 10px;
            font-size: 13px;
            line-height: 1.5;
        }

        .no-data {
            text-align: center;
            padding: 30px;
            color: #999;
            font-style: italic;
        }

        /* Tablet Styles */
        @media (min-width: 768px) {
            body {
                font-size: 15px;
            }

            .stats-grid {
                grid-template-columns: repeat(4, 1fr);
            }

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

            .withdraw-info {
                grid-template-columns: repeat(3, 1fr);
            }

            .referral-stats {
                grid-template-columns: repeat(4, 1fr);
            }

            .health-metrics {
                grid-template-columns: repeat(3, 1fr);
            }

            .sidebar {
                left: 0;
            }

            .main-content {
                margin-left: var(--sidebar-width);
            }

            .menu-toggle {
                display: none;
            }

            .user-profile span {
                display: inline;
            }
        }

        /* Desktop Styles */
        @media (min-width: 1024px) {
            .packages-grid {
                grid-template-columns: repeat(3, 1fr);
            }

            .payment-options {
                grid-template-columns: repeat(3, 1fr);
            }

            .suggested-packages {
                grid-template-columns: repeat(3, 1fr);
            }

            .main-content {
                padding: 30px;
            }
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* Checkbox styling */
.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
    gap: 5px;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.checkbox-container:hover input~.checkmark {
    border-color: #4CAF50;
}

.checkbox-container input:checked~.checkmark {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container a {
    color: #4CAF50;
    text-decoration: none;
    margin-left: 5px;
}

.checkbox-container a:hover {
    text-decoration: underline;
}

.auth-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Input hint styling */
.input-hint {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 5px;
    margin-left: 40px;
}

.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

/* For inputs with hint, add more bottom padding */
.input-group:has(.input-hint) input {
    margin-bottom: 5px;
}

/* Task Cards */
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Task Cards */
.admin-tasks-grid, .user-tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.task-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.task-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.task-card.expired {
    opacity: 0.6;
    filter: grayscale(0.5);
}

.task-card.scheduled {
    border-left: 4px solid #ff9800;
}

.task-media {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f5f5f5;
}

.task-media-placeholder {
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.task-content {
    padding: 15px;
}

.task-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.task-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
}

.task-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.task-status.active {
    background: #e8f5e8;
    color: #4CAF50;
}

.task-status.expired {
    background: #ffebee;
    color: #f44336;
}

.task-status.scheduled {
    background: #fff3e0;
    color: #ff9800;
}

.task-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.task-actions button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s;
}

.btn-complete {
    background: #4CAF50;
    color: white;
}

.btn-complete:hover {
    background: #45a049;
}

.btn-view {
    background: #2196F3;
    color: white;
}

.btn-view:hover {
    background: #1976D2;
}

.btn-delete {
    background: #f44336;
    color: white;
}

.btn-delete:hover {
    background: #d32f2f;
}

/* Task Form */
.task-form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="datetime-local"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-actions button {
    flex: 1;
}

/* ============================================
   Login Form Options (Remember Me + Forgot Password)
   ============================================ */

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0 20px;
    font-size: 14px;
}

/* Custom checkbox container */
.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;  /* space for custom checkmark */
    cursor: pointer;
    user-select: none;
    color: #555;
    transition: color 0.2s;
}

.checkbox-container:hover {
    color: #333;
}

/* Hide the browser's default checkbox */
.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkmark */
.checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 4px;
    transition: background-color 0.2s, border-color 0.2s;
}

/* On hover, darken the border */
.checkbox-container:hover input ~ .checkmark {
    border-color: #4CAF50;
}

/* When the checkbox is checked, change background and border */
.checkbox-container input:checked ~ .checkmark {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

/* Create the checkmark indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Show the checkmark when checked */
.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* Forgot Password link */
.form-options a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.form-options a:hover {
    color: #2e7d32;
    text-decoration: underline;
}

/* Responsive adjustment for small screens */
@media (max-width: 480px) {
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Tasks section */
.tasks-progress {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
}
.progress-bar-container {
    width: 100%;
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 5px;
    transition: width 0.3s ease;
}
.daily-tasks-list {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.task-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
}
.task-media-container {
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 8px;
}
.task-media-container img,
.task-media-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.task-info {
    flex: 1;
}
.task-info h4 {
    margin-bottom: 5px;
}
.task-info p {
    font-size: 13px;
    color: #666;
}
.task-actions {
    display: flex;
    align-items: center;
}
.task-status.completed {
    color: #4CAF50;
    font-weight: 500;
}
.do-task-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}
/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal.show {
    display: flex;
}
.modal-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}
.close {
    float: right;
    font-size: 24px;
    cursor: pointer;
}
.task-modal .task-media-large {
    text-align: center;
    margin: 20px 0;
}
.task-modal .task-media-large img,
.task-modal .task-media-large iframe {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
}
.task-completion {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}
.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.auth-btn.secondary {
    background: #f0f0f0;
    color: #333;
}
.loading-tasks {
    text-align: center;
    color: #999;
    padding: 20px;
}

/* Daily Tasks List */
.daily-tasks-list {
    padding: 20px;
}

.task-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.task-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.task-item.completed {
    opacity: 0.8;
    background: #f8f9fa;
}

.task-media-container {
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.task-media-container img,
.task-media-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.task-info {
    flex: 1;
}

.task-info h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.task-info p {
    margin: 0 0 10px 0;
    color: #666;
    line-height: 1.5;
}

.task-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #888;
}

.task-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.task-actions {
    display: flex;
    align-items: center;
    min-width: 120px;
}

.do-task-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
    width: 100%;
}

.do-task-btn:hover {
    background: #45a049;
}

.task-status.completed {
    color: #4CAF50;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.task-status.completed i {
    font-size: 18px;
}

/* Task Mini Items (for overview) */
.task-mini-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
}

.task-mini-item.completed {
    background: #e8f5e9;
}

.task-mini-item .task-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.task-mini-item .task-name i {
    color: #4CAF50;
    font-size: 14px;
}

.task-mini-item .task-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

.task-mini-item .task-status.pending {
    background: #fff3e0;
    color: #f57c00;
}

.task-mini-item .task-status.completed {
    background: #e8f5e9;
    color: #4CAF50;
}

/* No Tasks State */
.no-tasks {
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: 12px;
    color: #999;
}

.no-tasks i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ccc;
}

.no-tasks p {
    margin: 5px 0;
    font-size: 16px;
}

.no-tasks p.small {
    font-size: 14px;
    color: #bbb;
}

/* Task Modal */
.task-modal {
    max-width: 600px;
}

.task-media-large {
    width: 100%;
    height: 300px;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

.task-media-large img,
.task-media-large iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.task-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.rating-container {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.rating-container p {
    margin: 0 0 10px 0;
    font-weight: 500;
}

.star-rating {
    display: flex;
    gap: 10px;
    justify-content: center;
    font-size: 30px;
    color: #ffc107;
    cursor: pointer;
}

.star-rating i {
    transition: transform 0.2s;
}

.star-rating i:hover {
    transform: scale(1.2);
}

.task-completion {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.task-completion label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.task-completion input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .task-item {
        flex-direction: column;
    }
    
    .task-media-container {
        width: 100%;
        height: 200px;
    }
    
    .task-actions {
        width: 100%;
    }
    
    .do-task-btn {
        width: 100%;
    }
}

/* Bulk Actions */
.bulk-actions {
    margin-bottom: 20px;
    padding: 15px;
    background: #f0f7ff;
    border: 1px solid #2196F3;
    border-radius: 8px;
    animation: slideDown 0.3s ease;
}

.bulk-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.bulk-actions-bar span {
    font-weight: 500;
    color: #2196F3;
}

.bulk-actions-bar span i {
    margin-right: 5px;
}

.bulk-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bulk-buttons .action-btn {
    padding: 8px 15px;
    font-size: 13px;
}

.bulk-buttons .action-btn.warning {
    background: #ff9800;
    color: white;
}

.bulk-buttons .action-btn.warning:hover {
    background: #f57c00;
}

.bulk-buttons .action-btn.danger {
    background: #f44336;
    color: white;
}

.bulk-buttons .action-btn.danger:hover {
    background: #d32f2f;
}

.bulk-buttons .action-btn.secondary {
    background: #9e9e9e;
    color: white;
}

.bulk-buttons .action-btn.secondary:hover {
    background: #757575;
}

/* Task select checkboxes */
.task-select {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.data-table th:first-child,
.data-table td:first-child {
    width: 40px;
    text-align: center;
}

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

/* Task Form Modal */
.modal-content.large {
    max-width: 800px;
    width: 90%;
}

/* Upload Progress */
.upload-progress {
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.upload-progress .progress-bar {
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
}

.upload-progress .progress-fill {
    height: 100%;
    background: #4CAF50;
    transition: width 0.3s ease;
}

.upload-progress p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* Media Type Selector */
.media-type-selector {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px 15px;
    background: #f5f5f5;
    border-radius: 20px;
    transition: all 0.2s;
}

.radio-label:hover {
    background: #e0e0e0;
}

.radio-label input[type="radio"] {
    margin: 0;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.upload-area:hover {
    border-color: #4CAF50;
    background: #f0f7f0;
}

.upload-area.dragover {
    border-color: #4CAF50;
    background: #e8f5e9;
}

.upload-area i {
    font-size: 48px;
    color: #999;
    margin-bottom: 10px;
}

.upload-area p {
    margin: 5px 0;
    color: #666;
}

.upload-area p.small {
    font-size: 12px;
    color: #999;
}

/* File Info */
.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f0f7f0;
    border: 1px solid #4CAF50;
    border-radius: 8px;
    margin-top: 10px;
}

.file-info i {
    font-size: 20px;
    color: #4CAF50;
}

.file-info span {
    flex: 1;
    font-size: 14px;
}

.remove-file {
    background: none;
    border: none;
    color: #f44336;
    cursor: pointer;
    padding: 5px;
}

.remove-file:hover {
    color: #d32f2f;
}

/* Media Preview */
.media-preview {
    margin-top: 15px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.media-preview h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
}

#previewContainer {
    max-width: 100%;
    max-height: 300px;
    overflow: hidden;
    border-radius: 4px;
}

#previewContainer img,
#previewContainer video {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

/* Form Row */
.form-row {
    display: flex;
    gap: 20px;
}

.form-group.half {
    flex: 1;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .media-type-selector {
        flex-direction: column;
        gap: 10px;
    }
}

/* Task Form Modal */
.modal-content.large {
    max-width: 800px;
    width: 90%;
}

/* Upload Progress */
.upload-progress {
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.upload-progress .progress-bar {
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
}

.upload-progress .progress-fill {
    height: 100%;
    background: #4CAF50;
    transition: width 0.3s ease;
}

.upload-progress p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* Media Type Selector */
.media-type-selector {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px 15px;
    background: #f5f5f5;
    border-radius: 20px;
    transition: all 0.2s;
}

.radio-label:hover {
    background: #e0e0e0;
}

.radio-label input[type="radio"] {
    margin: 0;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.upload-area:hover {
    border-color: #4CAF50;
    background: #f0f7f0;
}

.upload-area.dragover {
    border-color: #4CAF50;
    background: #e8f5e9;
}

.upload-area i {
    font-size: 48px;
    color: #999;
    margin-bottom: 10px;
}

.upload-area p {
    margin: 5px 0;
    color: #666;
}

.upload-area p.small {
    font-size: 12px;
    color: #999;
}

/* File Info */
.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f0f7f0;
    border: 1px solid #4CAF50;
    border-radius: 8px;
    margin-top: 10px;
}

.file-info i {
    font-size: 20px;
    color: #4CAF50;
}

.file-info span {
    flex: 1;
    font-size: 14px;
}

.remove-file {
    background: none;
    border: none;
    color: #f44336;
    cursor: pointer;
    padding: 5px;
}

.remove-file:hover {
    color: #d32f2f;
}

/* Media Preview */
.media-preview {
    margin-top: 15px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.media-preview h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
}

#previewContainer {
    max-width: 100%;
    max-height: 300px;
    overflow: hidden;
    border-radius: 4px;
}

#previewContainer img,
#previewContainer video {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

/* Form Row */
.form-row {
    display: flex;
    gap: 20px;
}

.form-group.half {
    flex: 1;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .media-type-selector {
        flex-direction: column;
        gap: 10px;
    }
}

/* Upload Queue */
.upload-queue {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #4CAF50;
}

.queue-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 500;
}

.queue-header i {
    color: #4CAF50;
    font-size: 20px;
}

.queue-header span:last-child {
    margin-left: auto;
    background: #4CAF50;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.queue-items {
    max-height: 200px;
    overflow-y: auto;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: white;
    border-radius: 4px;
    margin-bottom: 5px;
    font-size: 13px;
}

.queue-item .file-icon {
    color: #2196F3;
    width: 20px;
}

.queue-item .file-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-item .file-status {
    width: 60px;
    text-align: right;
    font-size: 11px;
}

.queue-item .file-progress {
    width: 80px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.queue-item .file-progress-fill {
    height: 100%;
    background: #4CAF50;
    transition: width 0.2s;
}

.queue-item.success .file-status {
    color: #4CAF50;
}

.queue-item.error .file-status {
    color: #f44336;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}

.upload-area:hover {
    border-color: #4CAF50;
    background: #f0f7f0;
}

.upload-area i {
    font-size: 36px;
    color: #999;
    margin-bottom: 5px;
}

.upload-area p {
    margin: 3px 0;
    color: #666;
    font-size: 14px;
}

.upload-area p.small {
    font-size: 11px;
    color: #999;
}

/* File Info */
.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #e8f5e9;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 13px;
}

.file-info i {
    color: #4CAF50;
}

.file-info .file-details {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-info .remove-file {
    color: #f44336;
    cursor: pointer;
    padding: 2px 5px;
}

/* Media Preview */
.media-preview {
    margin-top: 10px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

.media-preview h4 {
    font-size: 13px;
    margin: 0 0 5px 0;
    color: #666;
}

#previewContainer {
    max-height: 150px;
    overflow: hidden;
    border-radius: 4px;
}

#previewContainer img,
#previewContainer video {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
}

/* Task Media Styles */
.task-media-container {
    position: relative;
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

.task-media-container img,
.task-media-container video,
.task-media-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.task-media-container iframe {
    border: none;
}

.task-media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.task-media-placeholder i {
    font-size: 32px;
    margin-bottom: 8px;
}

.task-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.task-item:hover .task-overlay {
    opacity: 1;
}

/* Task Modal Media */
.task-media-large {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    margin: 15px 0;
}

.task-media-large img,
.task-media-large video,
.task-media-large iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* Rating Stars */
.rating-section {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.rating-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.star-rating-container {
    margin-bottom: 10px;
}

.star-rating {
    display: flex;
    gap: 10px;
    justify-content: center;
    font-size: 30px;
    color: #ffc107;
    cursor: pointer;
}

.star-rating i {
    transition: all 0.2s;
}

.star-rating i:hover {
    transform: scale(1.2);
}

.rating-hint {
    margin: 10px 0 0 0;
    color: #666;
    font-size: 14px;
}

/* Task Completion Checkbox */
.task-completion {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #4CAF50;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: #4CAF50;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

/* Loading States */
.tasks-loading {
    text-align: center;
    padding: 50px;
    color: #666;
}

.tasks-loading i {
    font-size: 32px;
    margin-bottom: 15px;
    color: #4CAF50;
}

.tasks-error {
    text-align: center;
    padding: 50px;
    color: #f44336;
}

.tasks-error i {
    font-size: 32px;
    margin-bottom: 15px;
}

.retry-btn {
    margin-top: 15px;
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.retry-btn:hover {
    background: #45a049;
}

/* No Tasks State */
.no-tasks {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    color: #999;
}

.no-tasks i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ccc;
}

.no-tasks h3 {
    margin: 0 0 10px 0;
    color: #666;
}

.no-tasks p {
    margin: 5px 0;
}

.no-tasks p.small {
    font-size: 14px;
    color: #bbb;
}

/* Media Upload Preview */
.media-preview {
    margin-top: 10px;
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    text-align: center;
}

.media-preview.uploading {
    color: #2196F3;
}

.media-preview.success {
    border-color: #4CAF50;
    color: #4CAF50;
}

.media-preview.error {
    border-color: #f44336;
    color: #f44336;
}

.upload-progress {
    margin-top: 10px;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
}

.upload-progress .progress-bar {
    height: 100%;
    background: #4CAF50;
    transition: width 0.3s;
}

/* Media Upload and Preview Styles */
.media-preview-container {
    margin-top: 15px;
    position: relative;
}

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

.remove-preview {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ff4444;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.2s;
}

.remove-preview:hover {
    background: #cc0000;
}

/* Image upload area */
.image-upload-area {
    border: 2px dashed #4CAF50;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
    margin: 10px 0;
}

.image-upload-area:hover {
    background: #f8f9fa;
}

.image-upload-area i {
    font-size: 48px;
    color: #4CAF50;
    margin-bottom: 10px;
}

.image-upload-area p {
    margin: 5px 0;
    color: #666;
}

.image-upload-area p.small {
    font-size: 12px;
    color: #999;
}

/* Image preview grid */
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.preview-image-container {
    position: relative;
    aspect-ratio: 1;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

.remove-image {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff4444;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* Form group styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* File input styling */
input[type="file"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
    background: white;
}

input[type="file"]::file-selector-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

input[type="file"]::file-selector-button:hover {
    background: #45a049;
}

.loading-message {
    margin-top: 15px;
    color: #333;
    font-size: 14px;
    text-align: center;
}

/* Package status styles */
.package-warning {
    background: #fff3e0;
    border-left: 3px solid #ff9800;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    color: #f57c00;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.package-warning i {
    font-size: 16px;
}

.task-earning {
    background: #e8f5e9;
    color: #4CAF50;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.do-task-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.do-task-btn.disabled:hover {
    background: #ccc;
}

/* Package cards */
.package-mini-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.package-mini-card.active {
    border-left: 3px solid #4CAF50;
}

.package-mini-card.expired {
    background: #f5f5f5;
    opacity: 0.8;
}

.package-mini-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.package-mini-header h4 {
    margin: 0;
    font-size: 16px;
}

.package-date {
    font-size: 12px;
    color: #999;
}

.package-profit {
    color: #4CAF50;
    font-weight: bold;
}

.package-mini-details {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.package-mini-details span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.package-expiry {
    font-size: 12px;
    color: #ff9800;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.package-summary.active {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.package-summary .summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.package-summary .summary-item:last-child {
    margin-bottom: 0;
}

/* Package prompt modal */
#packagePromptModal .modal-content {
    text-align: center;
}

#packagePromptModal i {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Package earning info in task modal */
.package-earning-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    color: white;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    margin-right: 10px;
    margin-bottom: 10px;
}

.info-badge i {
    font-size: 16px;
}

.info-badge.active-package {
    background: rgba(76, 175, 80, 0.3);
}

.info-badge.earning {
    background: rgba(255, 215, 0, 0.3);
}

.package-names {
    font-size: 14px;
    margin-top: 10px;
    opacity: 0.9;
    font-style: italic;
}

.task-completion-note {
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 5px;
    font-size: 14px;
}

.task-completion-note i {
    color: #2196F3;
    margin-right: 8px;
}

/* Update existing task item styles */
.task-item {
    border-left: 4px solid transparent;
}

.task-item .package-indicator {
    font-size: 12px;
    color: #4CAF50;
    margin-top: 5px;
}

.task-item .package-indicator i {
    margin-right: 5px;
}

/* Package badge in task list */
.package-badge-small {
    display: inline-block;
    padding: 3px 8px;
    background: #4CAF50;
    color: white;
    border-radius: 12px;
    font-size: 11px;
    margin-left: 8px;
}

.no-package-warning {
    background: #fff3e0;
    border: 1px solid #ff9800;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.no-package-warning i {
    font-size: 40px;
    color: #ff9800;
    margin-bottom: 10px;
}

.no-package-warning h4 {
    color: #333;
    margin-bottom: 10px;
}

.no-package-warning p {
    color: #666;
    margin-bottom: 15px;
}

.no-package-warning .action-btn {
    background: #ff9800;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

.no-package-warning .action-btn:hover {
    background: #f57c00;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-content.large {
    max-width: 800px;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
}

.close:hover {
    color: #333;
    background: #e0e0e0;
}

/* Task Modal Specific */
.task-modal {
    max-width: 600px;
}

.task-media-large {
    width: 100%;
    height: 300px;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.task-media-large img,
.task-media-large iframe,
.task-media-large video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f5f5;
}

/* Star Rating */
.rating-container {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.rating-container p {
    margin: 0 0 10px 0;
    font-weight: 500;
    color: #333;
}

.star-rating {
    display: flex;
    gap: 10px;
    justify-content: center;
    font-size: 30px;
    color: #ffc107;
    cursor: pointer;
}

.star-rating i {
    transition: all 0.2s ease;
}

.star-rating i:hover {
    transform: scale(1.2);
}

/* Task Completion */
.task-completion {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.task-completion label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 16px;
    color: #333;
}

.task-completion input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
}

.modal-actions .auth-btn {
    min-width: 120px;
}

.modal-actions .auth-btn.secondary {
    background: #f5f5f5;
    color: #666;
}

.modal-actions .auth-btn.secondary:hover {
    background: #e0e0e0;
}

/* Package earning info in task modal */
.package-earning-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    color: white;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    margin-right: 10px;
    margin-bottom: 10px;
}

.info-badge i {
    font-size: 16px;
}

.info-badge.active-package {
    background: rgba(76, 175, 80, 0.3);
}

.info-badge.earning {
    background: rgba(255, 215, 0, 0.3);
}

.package-names {
    font-size: 14px;
    margin-top: 10px;
    opacity: 0.9;
    font-style: italic;
}

.task-completion-note {
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 5px;
    font-size: 14px;
}

.task-completion-note i {
    color: #2196F3;
    margin-right: 8px;
}

/* Modal base styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex !important;
}

.modal-content {
    background-color: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    margin: auto;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
}

.close:hover {
    color: #333;
    background: #e0e0e0;
}

/* Task Modal Specific */
.task-modal {
    max-width: 600px;
}

.task-media-large {
    width: 100%;
    height: 300px;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-media-large img,
.task-media-large iframe,
.task-media-large video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.status-badge.small {
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 12px;
    display: inline-block;
}

.status-badge.warning {
    background: #fff3e0;
    color: #f57c00;
}

.status-badge.success {
    background: #e8f5e9;
    color: #4CAF50;
}

.status-badge.danger {
    background: #ffebee;
    color: #f44336;
}

.history-amount.positive {
    color: #4CAF50;
}

.history-amount.negative {
    color: #f44336;
}

/* Bank Accounts Management */
.bank-accounts-list {
    margin-top: 20px;
}

.bank-accounts-list table {
    width: 100%;
    border-collapse: collapse;
}

.bank-accounts-list th {
    background: #f5f5f5;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.bank-accounts-list td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.badge.active {
    background: #e8f5e9;
    color: #4CAF50;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.badge.inactive {
    background: #ffebee;
    color: #f44336;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Payment Methods Modal */
.payment-methods-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.payment-methods-tabs .tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    position: relative;
}

.payment-methods-tabs .tab-btn.active {
    color: #4CAF50;
    font-weight: 600;
}

.payment-methods-tabs .tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #4CAF50;
}

.payment-tab-content {
    display: none;
}

.payment-tab-content.active {
    display: block;
}

/* Saved Cards */
.saved-cards-list {
    display: grid;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.card-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
}

.card-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.card-item.default {
    border-left: 4px solid #4CAF50;
    background: #f1f8e9;
}

.card-info {
    flex: 1;
}

.card-info h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.card-info p {
    margin: 3px 0;
    color: #666;
    font-size: 14px;
}

.card-badge {
    background: #4CAF50;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    display: inline-block;
    margin-top: 5px;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.card-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.card-actions .delete-card {
    color: #f44336;
}

.card-actions .delete-card:hover {
    background: #ffebee;
}

.card-actions .default-card {
    color: #4CAF50;
}

.card-actions .default-card:hover {
    background: #e8f5e9;
}

/* Deposit/Withdraw Card Selection */
.saved-cards-deposit,
.saved-cards-withdraw {
    display: grid;
    gap: 10px;
    margin: 15px 0;
    max-height: 200px;
    overflow-y: auto;
}

.card-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.card-option:hover {
    background: #f5f5f5;
}

.card-option.selected {
    border: 2px solid #4CAF50;
    background: #f1f8e9;
}

.card-option input[type="radio"] {
    margin-right: 15px;
}

.card-option-details {
    flex: 1;
}

.card-option-details h4 {
    margin: 0 0 3px 0;
    font-size: 16px;
}

.card-option-details p {
    margin: 0;
    color: #666;
    font-size: 13px;
}

.default-badge {
    background: #4CAF50;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 10px;
}

/* Selected Bank Info */
.selected-bank-info {
    margin: 20px 0;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
}

.bank-details-card {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin-top: 10px;
}

.bank-details-card p {
    margin: 5px 0;
}

/* Or Divider */
.or-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.or-divider::before,
.or-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #e0e0e0;
}

.or-divider::before {
    left: 0;
}

.or-divider::after {
    right: 0;
}

.or-divider span {
    background: white;
    padding: 0 15px;
    color: #999;
    font-size: 14px;
}

.or-divider.small {
    margin: 15px 0;
}

.or-divider.small::before,
.or-divider.small::after {
    width: 40%;
}

/* Payment Options Grid */
.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.payment-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option:hover {
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.payment-option.selected {
    border: 2px solid #4CAF50;
    background: #f1f8e9;
}

.payment-option input[type="radio"] {
    margin-bottom: 10px;
}

.payment-option .bank-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
}

.no-cards {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #999;
}

.no-cards a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
}

.no-cards a:hover {
    text-decoration: underline;
}


/* Step Progress Indicator */
.step-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0 40px;
    padding: 0 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #4CAF50;
    color: white;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.step.completed .step-number {
    background: #4CAF50;
    color: white;
}

.step-label {
    font-size: 12px;
    color: #999;
    font-weight: 500;
    transition: all 0.3s ease;
}

.step.active .step-label {
    color: #4CAF50;
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 10px;
    max-width: 80px;
}

/* Step Content */
.step-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step-content.active {
    display: block;
}

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

.step-header {
    margin-bottom: 25px;
    position: relative;
}

.step-header h3 {
    color: #333;
    margin-bottom: 5px;
}

.step-header p {
    color: #666;
    font-size: 14px;
}

.back-btn {
    background: none;
    border: none;
    color: #4CAF50;
    cursor: pointer;
    font-size: 14px;
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.back-btn:hover {
    color: #45a049;
}

/* Payment Methods Grid */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.payment-method-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-color: #4CAF50;
}

.payment-method-card.selected {
    border-color: #4CAF50;
    background: #f1f8e9;
}

.payment-method-card .bank-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.payment-method-card h4 {
    margin: 0 0 5px;
    color: #333;
}

.payment-method-card p {
    margin: 0;
    color: #666;
    font-size: 13px;
}

/* Selected Method Info */
.selected-method-info {
    background: #e8f5e9;
    border-left: 4px solid #4CAF50;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.selected-method-info h4 {
    color: #2e7d32;
    margin: 0 0 10px;
}

.selected-method-info p {
    margin: 5px 0;
    color: #1b5e20;
}

/* Payment Details Card */
.payment-details-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 25px;
    color: white;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.payment-details-card .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.payment-details-card .detail-row:last-child {
    border-bottom: none;
}

.payment-details-card .detail-label {
    font-weight: 500;
    opacity: 0.9;
}

.payment-details-card .detail-value {
    font-weight: 600;
    font-size: 16px;
}

.payment-details-card .highlight {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
}

.payment-details-card .highlight .amount {
    font-size: 24px;
    font-weight: bold;
}

/* Instruction Box */
.instruction-box {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.instruction-box h4 {
    color: #333;
    margin-bottom: 15px;
}

.instruction-box ol {
    margin: 0;
    padding-left: 20px;
}

.instruction-box li {
    margin-bottom: 10px;
    color: #555;
}

/* Confirm Details */
.confirm-details {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.confirm-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.confirm-label {
    color: #666;
    font-weight: 500;
}

.confirm-value {
    color: #333;
    font-weight: 600;
}

/* Withdraw Info Bar */
.withdraw-info-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
}

.info-item i {
    color: #4CAF50;
}

/* Balance Cards */
.balance-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    color: white;
}

.balance-card.referral {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.balance-label {
    display: block;
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 24px;
    font-weight: bold;
}

/* Saved Accounts List */
.saved-accounts {
    display: grid;
    gap: 15px;
    margin: 20px 0;
    max-height: 300px;
    overflow-y: auto;
    padding: 5px;
}

.account-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.account-card:hover {
    border-color: #4CAF50;
    transform: translateX(5px);
}

.account-card.selected {
    border-color: #4CAF50;
    background: #f1f8e9;
}

.account-radio {
    margin-right: 15px;
}

.account-details {
    flex: 1;
}

.account-details h4 {
    margin: 0 0 5px;
    color: #333;
}

.account-details p {
    margin: 2px 0;
    color: #666;
    font-size: 13px;
}

.default-badge {
    background: #4CAF50;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin-left: 10px;
}

/* Add Account Form */
.add-account-form {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px dashed #4CAF50;
}

.add-account-form h4 {
    color: #4CAF50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-account-btn-container {
    text-align: center;
    margin: 20px 0;
}

/* Selected Account Info */
.selected-account-info {
    background: #e8f5e9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.selected-account-info p {
    margin: 5px 0;
    color: #2e7d32;
}

/* Withdrawal Summary */
.withdrawal-summary {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

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

.summary-label {
    color: #333;
    font-weight: 500;
}

.summary-value {
    color: #2e7d32;
    font-weight: 600;
}

.summary-value.withdraw {
    color: #f44336;
}

/* Confirmation Checkbox */
.confirmation-checkbox {
    margin: 20px 0;
    padding: 15px;
    background: #fff3e0;
    border-radius: 8px;
}

/* Loading States */
.loading-methods,
.loading-details,
.loading-accounts {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

.loading-methods::after,
.loading-details::after,
.loading-accounts::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .step-progress {
        flex-wrap: wrap;
    }
    
    .step-line {
        display: none;
    }
    
    .balance-cards {
        grid-template-columns: 1fr;
    }
    
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }
    
    .step-label {
        font-size: 10px;
    }
}

/* ============================================ */
/* DEPOSIT & WITHDRAWAL STYLES */
/* ============================================ */

/* Step Progress Indicator */
.step-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0 40px;
    padding: 0 20px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #4CAF50;
    color: white;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.step.completed .step-number {
    background: #4CAF50;
    color: white;
}

.step-label {
    font-size: 12px;
    color: #999;
    font-weight: 500;
    transition: all 0.3s ease;
}

.step.active .step-label {
    color: #4CAF50;
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 10px;
    max-width: 80px;
}

/* Step Content */
.step-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step-content.active {
    display: block;
}

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

.step-header {
    margin-bottom: 25px;
    position: relative;
}

.step-header h3 {
    color: #333;
    margin-bottom: 5px;
}

.step-header p {
    color: #666;
    font-size: 14px;
}

.back-btn {
    background: none;
    border: none;
    color: #4CAF50;
    cursor: pointer;
    font-size: 14px;
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.back-btn:hover {
    color: #45a049;
}

/* Payment Methods Grid */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.payment-method-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-color: #4CAF50;
}

.payment-method-card.selected {
    border-color: #4CAF50;
    background: #f1f8e9;
}

.payment-method-card .bank-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.payment-method-card h4 {
    margin: 0 0 5px;
    color: #333;
}

.payment-method-card p {
    margin: 0;
    color: #666;
    font-size: 13px;
}

/* Selected Method Info */
.selected-method-info {
    background: #e8f5e9;
    border-left: 4px solid #4CAF50;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.selected-method-info h4 {
    color: #2e7d32;
    margin: 0 0 10px;
}

.selected-method-info p {
    margin: 5px 0;
    color: #1b5e20;
}

/* Payment Details Card */
.payment-details-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 25px;
    color: white;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.payment-details-card .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.payment-details-card .detail-row:last-child {
    border-bottom: none;
}

.payment-details-card .detail-label {
    font-weight: 500;
    opacity: 0.9;
}

.payment-details-card .detail-value {
    font-weight: 600;
    font-size: 16px;
}

.payment-details-card .highlight {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
}

.payment-details-card .highlight .amount {
    font-size: 24px;
    font-weight: bold;
}

/* Instruction Box */
.instruction-box {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.instruction-box h4 {
    color: #333;
    margin-bottom: 15px;
}

.instruction-box ol {
    margin: 0;
    padding-left: 20px;
}

.instruction-box li {
    margin-bottom: 10px;
    color: #555;
}

/* Confirm Details */
.confirm-details {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.confirm-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.confirm-label {
    color: #666;
    font-weight: 500;
}

.confirm-value {
    color: #333;
    font-weight: 600;
}

/* Withdraw Info Bar */
.withdraw-info-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
}

.info-item i {
    color: #4CAF50;
}

/* Balance Cards */
.balance-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    color: white;
}

.balance-card.referral {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.balance-label {
    display: block;
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 24px;
    font-weight: bold;
}

/* Saved Accounts List */
.saved-accounts {
    display: grid;
    gap: 15px;
    margin: 20px 0;
    max-height: 300px;
    overflow-y: auto;
    padding: 5px;
}

.account-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.account-card:hover {
    border-color: #4CAF50;
    transform: translateX(5px);
}

.account-card.selected {
    border-color: #4CAF50;
    background: #f1f8e9;
}

.account-radio {
    margin-right: 15px;
}

.account-details {
    flex: 1;
}

.account-details h4 {
    margin: 0 0 5px;
    color: #333;
}

.account-details p {
    margin: 2px 0;
    color: #666;
    font-size: 13px;
}

.default-badge {
    background: #4CAF50;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin-left: 10px;
}

/* Add Account Form */
.add-account-form {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px dashed #4CAF50;
}

.add-account-form h4 {
    color: #4CAF50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-account-btn-container {
    text-align: center;
    margin: 20px 0;
}

/* Selected Account Info */
.selected-account-info {
    background: #e8f5e9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.selected-account-info p {
    margin: 5px 0;
    color: #2e7d32;
}

/* Withdrawal Summary */
.withdrawal-summary {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

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

.summary-label {
    color: #333;
    font-weight: 500;
}

.summary-value {
    color: #2e7d32;
    font-weight: 600;
}

.summary-value.withdraw {
    color: #f44336;
}

/* Confirmation Checkbox */
.confirmation-checkbox {
    margin: 20px 0;
    padding: 15px;
    background: #fff3e0;
    border-radius: 8px;
}

/* Loading States */
.loading-methods,
.loading-details,
.loading-accounts {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

.loading-methods::after,
.loading-details::after,
.loading-accounts::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Bank Accounts Table */
.bank-accounts-list {
    margin-top: 20px;
}

.badge.active {
    background: #e8f5e9;
    color: #4CAF50;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.badge.inactive {
    background: #ffebee;
    color: #f44336;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .step-progress {
        flex-wrap: wrap;
    }
    
    .step-line {
        display: none;
    }
    
    .balance-cards {
        grid-template-columns: 1fr;
    }
    
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }
    
    .step-label {
        font-size: 10px;
    }
}

/* Deposit Modal Styles */
.selected-payment-badge {
    background: #e8f5e9;
    border-left: 4px solid #4CAF50;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.selected-payment-badge i {
    color: #4CAF50;
    font-size: 24px;
}

.selected-payment-badge span {
    font-weight: 600;
    color: #2e7d32;
}

.selected-payment-badge small {
    color: #666;
    margin-left: auto;
}

.deposit-info-card {
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.deposit-info-card i {
    color: #2196F3;
    font-size: 24px;
}

.deposit-info-card p {
    margin: 0;
    color: #1565C0;
}

/* Modal step indicators */
.modal .step-progress {
    margin: 20px 0 30px;
}

.modal .step {
    flex: 1;
}

.modal .step-line {
    max-width: 40px;
}

/* Payment details card in modal */
.bank-header {
    display: flex;
    align-items: center;
    padding: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
}

/* ============================================ */
/* DEPOSIT FORM STYLES */
/* ============================================ */

.deposit-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.info-card i {
    font-size: 40px;
}

.info-card h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.info-card p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.form-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.form-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3 i {
    color: #4CAF50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-group input.error {
    border-color: #f44336;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 12px;
}

/* Payment Methods Grid */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.payment-method-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.payment-method-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #4CAF50;
}

.payment-method-card.selected {
    border-color: #4CAF50;
    background: #f1f8e9;
}

.payment-method-card.selected::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -10px;
    right: -10px;
    background: #4CAF50;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.payment-method-card .bank-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.payment-method-card h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.payment-method-card .account-number {
    margin: 0;
    color: #666;
    font-size: 13px;
    font-family: monospace;
}

/* Bank Details Card */
.bank-details-card {
    background: #e8f5e9;
    border-left: 4px solid #4CAF50;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.bank-details-card h4 {
    margin: 0 0 15px 0;
    color: #2e7d32;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.detail-row .label {
    color: #666;
    font-weight: 500;
}

.detail-row .value {
    color: #2e7d32;
    font-weight: 600;
}

.copy-btn {
    background: white;
    border: 1px solid #4CAF50;
    color: #4CAF50;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #4CAF50;
    color: white;
}

/* Error Message */
.error-message {
    color: #f44336;
    font-size: 14px;
    margin-top: 5px;
    padding: 10px;
    background: #ffebee;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-message::before {
    content: '\f06a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* Terms Checkbox */
.terms-checkbox {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.checkbox-container input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Loading */
.form-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.form-loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading Methods */
.loading-methods {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
    grid-column: 1 / -1;
}

.loading-methods::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .form-section {
        padding: 15px;
    }
}

/* ============================================ */
/* ADMIN TRANSACTION TABLES - CURRENT VISION */
/* ============================================ */

/* Pending row highlighting */
.pending-row {
    background-color: #fff9e6 !important;
    border-left: 4px solid #ff9800;
}

/* User info compact */
.user-info-compact {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info-compact i {
    font-size: 24px;
    color: #666;
}

.user-info-compact div {
    display: flex;
    flex-direction: column;
}

.user-info-compact strong {
    font-size: 14px;
    color: #333;
}

.user-info-compact small {
    font-size: 11px;
    color: #999;
}

/* Amount large */
.amount-large {
    font-size: 16px;
    font-weight: 600;
    color: #2e7d32;
}

.amount-large.text-muted {
    color: #999;
}

/* Payment method badge */
.payment-method-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 12px;
    color: #555;
}

.payment-method-badge i {
    font-size: 12px;
}

/* Account info */
.account-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.account-info strong {
    font-size: 13px;
    color: #333;
    font-family: monospace;
}

.account-info small {
    font-size: 11px;
    color: #999;
}

/* User contact */
.user-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-contact div {
    font-size: 12px;
    color: #555;
}

.user-contact div i {
    width: 16px;
    color: #999;
}

.user-contact small {
    font-size: 11px;
    color: #999;
}

.user-contact small i {
    width: 16px;
}

/* Timestamp */
.timestamp {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
}

/* Funds source */
.funds-source {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.source-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    white-space: nowrap;
}

.source-badge.balance {
    background: #e8f5e9;
    color: #2e7d32;
}

.source-badge.referral {
    background: #fff3e0;
    color: #f57c00;
}

.source-badge i {
    font-size: 10px;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.action-btn.small {
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 4px;
}

.action-btn.small i {
    font-size: 11px;
    margin-right: 3px;
}

.action-btn.success {
    background: #4CAF50;
    color: white;
}

.action-btn.success:hover {
    background: #45a049;
}

.action-btn.danger {
    background: #f44336;
    color: white;
}

.action-btn.danger:hover {
    background: #da190b;
}

.action-btn.info {
    background: #2196F3;
    color: white;
}

.action-btn.info:hover {
    background: #0b7dda;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    text-transform: capitalize;
}

.status-badge.warning {
    background: #fff3e0;
    color: #f57c00;
}

.status-badge.success {
    background: #e8f5e9;
    color: #4CAF50;
}

.status-badge.danger {
    background: #ffebee;
    color: #f44336;
}

.status-badge.info {
    background: #e3f2fd;
    color: #2196F3;
}

.status-badge i {
    font-size: 10px;
}

/* Data table enhancements */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    background: #f5f5f5;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: #555;
    font-size: 12px;
    white-space: nowrap;
}

.data-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: #f9f9f9;
}

/* No data message */
.no-data {
    text-align: center;
    padding: 40px !important;
    color: #999;
    font-style: italic;
}

.no-data i {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
    color: #ddd;
}

/* Search bar enhancement */
.search-bar {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 5px 15px;
}

.search-bar i {
    color: #999;
    margin-right: 10px;
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 10px 0;
    outline: none;
    font-size: 14px;
}

/* Tab header with action button */
.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tab-header h2 {
    margin: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .data-table {
        display: block;
        overflow-x: auto;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn.small {
        width: 100%;
    }
}

/* Media Upload Styles */
.image-upload-area {
    border: 2px dashed #4CAF50;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.image-upload-area:hover {
    background: #f1f8e9;
    border-color: #45a049;
}

.image-upload-area i {
    font-size: 48px;
    color: #4CAF50;
    margin-bottom: 10px;
}

.image-upload-area p {
    margin: 5px 0;
    color: #666;
}

.image-upload-area .small {
    font-size: 12px;
    color: #999;
}

.upload-area.small {
    padding: 20px;
    border: 2px dashed #2196F3;
}

.upload-area.small i {
    font-size: 32px;
    color: #2196F3;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preview-item img,
.preview-item video {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.preview-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.2s;
}

.preview-item:hover .preview-actions {
    opacity: 1;
}

.preview-actions button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.preview-actions button:hover {
    background: white;
    transform: scale(1.1);
}

/* Loading Overlay with Progress */
.loading-overlay .upload-progress {
    margin-top: 20px;
    text-align: center;
}

.loading-overlay .progress-bar {
    width: 300px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin: 10px auto;
}

.loading-overlay .progress-fill {
    height: 100%;
    background: #4CAF50;
    transition: width 0.3s ease;
}

.loading-overlay .upload-progress p {
    color: white;
    margin-top: 10px;
}

/* Video Container Styles */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-container-large {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.video-container-large iframe,
.video-container-large video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Task Media Container */
.task-media-container {
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
    position: relative;
}

.task-media-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.task-media-container .video-container {
    position: relative;
    width: 100%;
    height: 100%;
    padding-bottom: 0;
}

.task-media-container iframe,
.task-media-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
    .task-media-container {
        width: 100%;
        height: 200px;
    }
}

/* Media Placeholder */
.media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #999;
}

.media-placeholder i {
    font-size: 40px;
    margin-bottom: 10px;
}

.media-placeholder p {
    font-size: 12px;
    margin: 0;
}

/* Task Media Container */
.task-media-container {
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
    position: relative;
}

.task-media-container img,
.task-media-container video,
.task-media-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-container iframe,
.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
    .task-media-container {
        width: 100%;
        height: 200px;
    }
}

/* Admin Tasks Table Styles */
.tasks-list-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h3 {
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-count {
    background: #f5f5f5;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
}

.table-responsive {
    overflow-x: auto;
}

.task-row {
    transition: all 0.2s ease;
}

.task-row:hover {
    background: #f9f9f9;
}

.task-title strong {
    font-size: 14px;
}

.task-desc-preview {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.task-media-preview {
    width: 50px;
    text-align: center;
}

.media-preview {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    margin: 0 auto;
}

.media-preview.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-preview.video-preview {
    background: #e3f2fd;
    color: #2196F3;
    font-size: 20px;
}

.media-preview.no-media {
    background: #f5f5f5;
    color: #ccc;
    font-size: 16px;
}

.category-badge {
    background: #e8eaf6;
    color: #3f51b5;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    display: inline-block;
}

.task-date {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-btn.small {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
}

.action-btn.small i {
    margin-right: 3px;
}

.action-btn.small.info {
    background: #2196F3;
    color: white;
}

.action-btn.small.info:hover {
    background: #0b7dda;
}

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

.form-group.full-width {
    grid-column: span 2;
}

.upload-option {
    margin-top: 10px;
    text-align: center;
    color: #999;
    font-size: 12px;
}

.upload-area {
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s;
}

.upload-area:hover {
    border-color: #4CAF50;
    background: #f1f8e9;
}

.upload-area i {
    font-size: 24px;
    color: #4CAF50;
    margin-bottom: 5px;
}

.upload-area p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

/* Status Badges */
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
}

.status-badge.success {
    background: #e8f5e9;
    color: #4CAF50;
}

.status-badge.warning {
    background: #fff3e0;
    color: #f57c00;
}

.status-badge.danger {
    background: #ffebee;
    color: #f44336;
}

.status-badge.info {
    background: #e3f2fd;
    color: #2196F3;
}

/* Modal Large */
.modal-content.large {
    max-width: 800px;
    width: 90%;
}

/* Task Media Large */
.task-media-large {
    width: 100%;
    height: 300px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.task-media-large img,
.task-media-large iframe,
.task-media-large video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn.small {
        width: 100%;
    }
}

/* Task Media Styles */
.task-media-container {
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
    cursor: pointer;
    position: relative;
}

.image-thumbnail {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-thumbnail:hover img {
    transform: scale(1.05);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 2;
}

.video-thumbnail:hover .play-button {
    background: rgba(0,0,0,0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #999;
    cursor: pointer;
}

.media-placeholder i {
    font-size: 40px;
    margin-bottom: 10px;
}

.media-placeholder p {
    font-size: 12px;
    margin: 0;
}

/* Video Container for Modal */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Image Container */
.image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.error-placeholder {
    text-align: center;
    padding: 40px;
    color: #999;
}

.error-placeholder i {
    font-size: 64px;
    margin-bottom: 15px;
    color: #ccc;
}

/* Modal Animation */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.video-preview {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.play-overlay i {
    font-size: 48px;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

.video-preview:hover .play-overlay i {
    transform: scale(1.1);
    color: white;
}

.video-preview img,
.video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #ccc;
    font-size: 32px;
}

.video-preview {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.play-overlay i {
    font-size: 48px;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

.video-preview:hover .play-overlay i {
    transform: scale(1.1);
    color: white;
}

.video-preview img,
.video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #ccc;
    font-size: 32px;
}

.task-media-container {
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
    position: relative;
}

.task-media-container img,
.task-media-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Task Modal Styles */
.task-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.task-modal-container {
    background: white;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.task-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.task-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
    flex: 1;
    padding-right: 15px;
}

.modal-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #666;
}

.modal-close-btn:hover {
    background: #e0e0e0;
    color: #333;
    transform: scale(1.05);
}

.task-modal-body {
    padding: 20px 25px;
    overflow-y: auto;
    flex: 1;
}

/* Package Info */
.package-earning-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.package-earning-info .info-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
    margin-bottom: 5px;
}

.package-earning-info .package-names {
    font-size: 11px;
    opacity: 0.9;
    margin-top: 5px;
}

/* Media Area */
.task-media-area {
    width: 100%;
    height: 280px;
    background: #000;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-media-area .video-container {
    width: 100%;
    height: 100%;
}

.task-media-area iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.task-media-area video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.task-media-area img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.media-placeholder {
    text-align: center;
    color: #999;
}

.media-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
}

/* Description */
.task-description {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

/* External Link */
.task-external-link {
    margin-bottom: 20px;
    text-align: center;
}

.external-link-btn {
    background: #2196F3;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.external-link-btn:hover {
    background: #1976D2;
    transform: translateY(-2px);
}

/* Rating Stars */
.rating-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.rating-container p {
    margin-bottom: 15px;
    font-weight: bold;
    color: #333;
}

.star-rating {
    display: flex;
    gap: 12px;
    justify-content: center;
    font-size: 32px;
    cursor: pointer;
}

.star-rating i {
    color: #ffc107;
    transition: transform 0.2s;
}

.star-rating i:hover {
    transform: scale(1.2);
}

/* Completion Note */
.task-completion-note {
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-completion-note i {
    color: #2196F3;
    font-size: 18px;
}

/* Confirm Checkbox */
.task-confirm {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.task-confirm label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-confirm input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Modal Footer */
.task-modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    background: #fafafa;
}

.btn-cancel, .btn-submit {
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.btn-cancel:hover {
    background: #e0e0e0;
}

.btn-submit {
    background: #4CAF50;
    color: white;
}

.btn-submit:hover {
    background: #45a049;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .task-modal-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .task-modal-header h2 {
        font-size: 18px;
    }
    
    .task-media-area {
        height: 220px;
    }
    
    .star-rating {
        font-size: 28px;
        gap: 10px;
    }
    
    .btn-cancel, .btn-submit {
        padding: 8px 20px;
    }
}

/* ==============================================
   TABLET RESPONSIVE - PREVENT SCROLLING
   ============================================== */

/* Tablet Portrait (641px - 768px) */
@media (min-width: 641px) and (max-width: 768px) {
    /* Main container - prevent overflow */
    .dashboard-content {
        overflow-x: hidden !important;
        overflow-y: visible !important;
        width: 100%;
        max-width: 100%;
        padding: 15px;
        box-sizing: border-box;
    }

    /* Tasks container - no scrolling */
    #dailyTasksList,
    .tasks-container {
        width: 100%;
        max-width: 100%;
        overflow: visible !important;
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin: 0;
        padding: 0;
    }

    /* Task cards - horizontal layout on tablet */
    .task-item {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
        padding: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: visible;
        margin: 0;
    }

    /* Media container - fixed width to prevent overflow */
    .task-media-container {
        width: 140px;
        min-width: 140px;
        height: 140px;
        flex-shrink: 0;
        overflow: hidden;
        border-radius: 12px;
    }

    .task-media-container img,
    .task-media-container .video-preview {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Task info - takes remaining space */
    .task-info {
        flex: 1;
        min-width: 0;
        overflow: visible;
    }

    .task-info h4 {
        font-size: 1rem;
        margin: 0 0 8px 0;
        white-space: normal;
        word-wrap: break-word;
    }

    .task-info p {
        font-size: 0.85rem;
        margin: 0 0 10px 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Task meta - wrap properly */
    .task-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 8px;
    }

    .task-category,
    .task-expiry {
        font-size: 0.7rem;
        white-space: nowrap;
    }

    /* Package indicator - wrap if needed */
    .package-indicator {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        font-size: 0.7rem;
        padding: 6px 10px;
        margin-top: 8px;
    }

    .package-badge-small {
        font-size: 0.65rem;
        white-space: nowrap;
    }

    /* Task actions - aligned to right */
    .task-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-shrink: 0;
        margin-left: auto;
    }

    .do-task-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        min-height: 38px;
        white-space: nowrap;
    }

    .task-status.completed {
        padding: 8px 14px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    /* Progress bar - full width */
    .task-progress {
        width: 100%;
        margin-bottom: 20px;
        padding: 15px;
        box-sizing: border-box;
    }

    /* No package warning */
    .no-package-warning,
    .no-tasks {
        width: 100%;
        padding: 30px 20px;
        box-sizing: border-box;
        text-align: center;
    }

    /* Sidebar - ensure no overflow */
    #sidebar,
    .sidebar {
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Main content area */
    #userMainContent,
    .main-content {
        overflow-x: hidden !important;
        overflow-y: visible !important;
        width: 100%;
        max-width: 100%;
    }
}

/* Tablet Landscape (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Main container */
    .dashboard-content {
        overflow-x: hidden !important;
        overflow-y: visible !important;
        width: 100%;
        max-width: 100%;
        padding: 20px;
        box-sizing: border-box;
    }

    /* Tasks container */
    #dailyTasksList,
    .tasks-container {
        width: 100%;
        max-width: 100%;
        overflow: visible !important;
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    /* Task cards - horizontal layout */
    .task-item {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 24px;
        padding: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Media container */
    .task-media-container {
        width: 160px;
        min-width: 160px;
        height: 160px;
        flex-shrink: 0;
        border-radius: 12px;
    }

    /* Task info */
    .task-info {
        flex: 1;
        min-width: 0;
    }

    .task-info h4 {
        font-size: 1.1rem;
        margin: 0 0 10px 0;
    }

    .task-info p {
        font-size: 0.9rem;
        margin: 0 0 12px 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Task meta */
    .task-meta {
        gap: 12px;
        margin-bottom: 10px;
    }

    .task-category,
    .task-expiry {
        font-size: 0.75rem;
    }

    /* Package indicator */
    .package-indicator {
        gap: 12px;
        font-size: 0.75rem;
        padding: 8px 12px;
    }

    /* Task actions */
    .task-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-shrink: 0;
    }

    .do-task-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        min-height: 42px;
        white-space: nowrap;
    }

    .task-status.completed {
        padding: 10px 18px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* Progress bar */
    .task-progress {
        width: 100%;
        margin-bottom: 24px;
        padding: 18px;
    }
}

/* Fix for any overflow issues on tablet */
@media (min-width: 641px) and (max-width: 1024px) {
    /* Prevent any horizontal scroll */

    /* All containers */
    .container,
    .dashboard,
    .user-dashboard,
    #userDashboard,
    .dashboard-container {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Tab content */
    .tab-content {
        overflow-x: hidden !important;
        overflow-y: visible !important;
        width: 100%;
        max-width: 100%;
    }

    /* Any tables or grids */
    .tasks-grid,
    .cards-grid {
        overflow-x: visible !important;
    }

    /* Ensure images don't cause overflow */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Any flex containers */
    .flex-container {
        flex-wrap: wrap;
    }
}

/* Additional fix for tablets in portrait mode */
@media (min-width: 641px) and (max-width: 768px) and (orientation: portrait) {
    /* Adjust card padding */
    .task-item {
        padding: 16px;
        gap: 15px;
    }

    .task-media-container {
        width: 120px;
        min-width: 120px;
        height: 120px;
    }

    .task-info h4 {
        font-size: 0.95rem;
    }

    .task-info p {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }

    .task-meta {
        gap: 6px;
    }

    .task-category,
    .task-expiry {
        font-size: 0.65rem;
    }

    .do-task-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
        min-height: 34px;
    }
}

/* Fix for tablets with smaller screens */
@media (min-width: 641px) and (max-width: 700px) {
    .task-media-container {
        width: 110px;
        min-width: 110px;
        height: 110px;
    }

    .task-info p {
        -webkit-line-clamp: 1;
    }
}

/* Ensure progress bar doesn't overflow */
@media (min-width: 641px) and (max-width: 1024px) {
    .progress-bar-container {
        width: 100%;
        overflow: hidden;
    }

    .progress-fill {
        max-width: 100%;
    }
}

/* ============================================ */
/* USER DROPDOWN MENU STYLES */
/* ============================================ */

/* User Profile Dropdown */
.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 30px;
    transition: background-color 0.2s ease;
    position: relative;
}

.user-profile:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.user-profile-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.user-profile span {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.user-profile i {
    font-size: 12px;
    color: #666;
    transition: transform 0.2s ease;
}

.user-profile.active i {
    transform: rotate(180deg);
}

/* User Menu Dropdown */
.user-menu {
    position: absolute;
    top: 60px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    overflow: hidden;
}

.user-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.user-menu a:hover {
    background-color: #f5f5f5;
}

.user-menu a i {
    width: 20px;
    font-size: 16px;
    color: #666;
}

.user-menu hr {
    margin: 0;
    border: none;
    border-top: 1px solid #eee;
}

/* User Info in Menu */
.user-menu .user-info-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
}

.user-menu .user-info-header .user-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.user-menu .user-info-header .user-email {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* Notification Icon */
.notification-icon {
    position: relative;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
    margin-right: 15px;
}

.notification-icon:hover {
    color: #4CAF50;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f44336;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    display: none;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-left h2 {
    font-size: 20px;
    margin: 0;
    color: #333;
}

.menu-toggle {
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

/* Responsive */
@media (max-width: 768px) {
    .user-profile span {
        display: none;
    }
    
    .user-profile i {
        display: none;
    }
    
    .user-menu {
        right: 10px;
        min-width: 180px;
    }
}

.user-menu {
    position: absolute;
    top: 60px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    overflow: hidden;
}

.user-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .user-menu {
        right: 10px;
        min-width: 200px;
    }
}

/* ============================================ */
/* ADVANCED USER PROFILE MODAL */
/* ============================================ */

.profile-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.profile-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.profile-modal-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 32px;
    max-width: 1000px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.profile-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    color: #666;
}

.profile-modal-close:hover {
    background: #ff4444;
    color: white;
    transform: rotate(90deg);
}

/* Profile Header Section */
.profile-header-section {
    text-align: center;
    padding: 40px 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 32px 32px 0 0;
    position: relative;
    overflow: hidden;
}

.profile-header-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.profile-avatar-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.8));
    padding: 4px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.profile-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.profile-avatar-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102,126,234,0.5) 0%, rgba(118,75,162,0.5) 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.profile-avatar-text {
    font-size: 48px;
    font-weight: bold;
    color: white;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.profile-status-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #4CAF50;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.profile-status-badge i {
    color: white;
    font-size: 14px;
}

.profile-fullname {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.profile-username {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    margin: 0 0 15px 0;
}

.profile-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 40px;
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 500;
    color: white;
}

/* Stats Grid */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 30px 40px;
    background: white;
}

.profile-stat-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(102,126,234,0.1);
}

.profile-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102,126,234,0.15);
    border-color: rgba(102,126,234,0.3);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #667eea;
}

.stat-info {
    flex: 1;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

/* Details Grid */
.profile-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 30px 40px;
    background: #fafbff;
}

.profile-detail-section {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.profile-detail-section:hover {
    box-shadow: 0 5px 20px rgba(102,126,234,0.1);
    transform: translateY(-2px);
}

.profile-detail-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.profile-detail-section h3 i {
    color: #667eea;
    font-size: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item:hover {
    transform: translateX(5px);
    background: linear-gradient(90deg, #f8f9ff 0%, transparent 100%);
    padding-left: 10px;
}

.detail-label {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-label i {
    width: 20px;
    color: #667eea;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.detail-value.profit {
    color: #4CAF50;
}

/* Referral Code Section */
.referral-code-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.referral-code-display {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    font-family: monospace;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.referral-code-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    100% { left: 100%; }
}

.copy-code-btn {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 0 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.copy-code-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.05);
}

.referral-link-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.referral-link-container input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 12px;
    background: #f8f9fa;
    color: #666;
}

.copy-link-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-link-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.referral-note {
    font-size: 12px;
    color: #999;
    margin: 10px 0 0;
    text-align: center;
}

/* Profile Actions */
.profile-actions {
    display: flex;
    gap: 15px;
    padding: 30px 40px;
    background: white;
    border-radius: 0 0 32px 32px;
    justify-content: center;
}

.profile-action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.profile-action-btn.edit-profile {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

.profile-action-btn.edit-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.4);
}

.profile-action-btn.view-history {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
}

.profile-action-btn.view-history:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.profile-action-btn.settings {
    background: white;
    border: 2px solid #e0e0e0;
    color: #666;
}

.profile-action-btn.settings:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
        gap: 15px;
    }
    
    .profile-details-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
    
    .profile-actions {
        flex-direction: column;
        padding: 20px;
    }
    
    .profile-action-btn {
        justify-content: center;
    }
    
    .profile-header-section {
        padding: 30px 20px;
    }
    
    .profile-fullname {
        font-size: 24px;
    }
    
    .stat-value {
        font-size: 16px;
    }
}

/* Scrollbar Styling */
.profile-modal-container::-webkit-scrollbar {
    width: 8px;
}

.profile-modal-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.profile-modal-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.profile-modal-container::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Referral Link Box */
.referral-link-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 25px;
    margin: 20px 0;
    color: white;
}

.referral-link-box h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.link-display {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.link-display input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-family: monospace;
}

.link-display button {
    background: white;
    border: none;
    border-radius: 10px;
    padding: 0 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #667eea;
}

.link-display button:hover {
    transform: scale(1.05);
    background: #f0f0f0;
}

.referral-note {
    font-size: 12px;
    opacity: 0.9;
    margin: 0;
}

/* Referral table */
.referral-table {
    width: 100%;
    border-collapse: collapse;
}

.referral-table th {
    text-align: left;
    padding: 12px;
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.referral-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.level-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.level-badge.level-1 {
    background: #e8f5e9;
    color: #4CAF50;
}

.level-badge.level-2 {
    background: #e3f2fd;
    color: #2196F3;
}

.level-badge.level-3 {
    background: #fff3e0;
    color: #f57c00;
}

.commission {
    font-weight: 600;
    color: #4CAF50;
}

/* ============================================ */
/* USER SETTINGS MODAL STYLES */
/* ============================================ */

.settings-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.settings-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.settings-tab:hover {
    background: #f5f5f5;
    color: #333;
}

.settings-tab.active {
    color: #4CAF50;
    background: #e8f5e9;
}

.settings-tab i {
    margin-right: 8px;
}

.settings-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.settings-tab-content.active {
    display: block;
}

/* Danger Zone */
.danger-zone {
    background: #fff5f5;
    border: 1px solid #ffebee;
    border-radius: 12px;
    padding: 20px;
}

.danger-warning {
    text-align: center;
    margin-bottom: 30px;
}

.danger-warning i {
    font-size: 48px;
    color: #f44336;
    margin-bottom: 15px;
}

.danger-warning h3 {
    color: #f44336;
    margin-bottom: 10px;
}

.danger-warning p {
    color: #666;
}

.danger-actions {
    border-top: 1px solid #ffebee;
    padding-top: 20px;
}

.delete-account-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
}

.delete-account-section h4 {
    color: #f44336;
    margin-bottom: 15px;
}

.delete-account-section p {
    color: #666;
    margin-bottom: 10px;
}

.delete-account-section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.delete-account-section ul li {
    color: #666;
    margin-bottom: 5px;
}

.delete-confirmation {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.delete-confirmation label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #666;
}

.delete-account-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
}

.delete-account-btn:hover:not(:disabled) {
    background: #d32f2f;
    transform: translateY(-2px);
}

.delete-account-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: flex-end;
}

/* Loading Overlay */
#settingsLoadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

#settingsLoadingOverlay .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

#settingsLoadingOverlay .loading-message {
    color: white;
    font-size: 14px;
}

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

/* ============================================ */
/* WEEKLY COMMISSION MODAL STYLES */
/* ============================================ */

.commission-rates {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.rate-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: white;
    transition: transform 0.3s ease;
}

.rate-card:hover {
    transform: translateY(-5px);
}

.rate-level {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.rate-percentage {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
}

.rate-desc {
    font-size: 12px;
    opacity: 0.8;
}

.commission-preview-card {
    background: #f8f9ff;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.preview-header h3 {
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.week-range {
    font-size: 13px;
    color: #666;
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 20px;
}

.earnings-breakdown {
    margin-bottom: 20px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-item.total {
    background: #e8f5e9;
    margin-top: 10px;
    padding: 15px;
    border-radius: 10px;
}

.breakdown-label {
    font-size: 14px;
    color: #666;
}

.breakdown-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.breakdown-item.total .breakdown-value {
    color: #4CAF50;
    font-size: 18px;
}

.commission-note {
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.commission-history-section {
    margin-bottom: 30px;
}

.commission-history-section h3 {
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.commission-history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-commission-item {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.history-commission-item:hover {
    background: #f5f5f5;
    transform: translateX(5px);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.history-week {
    font-weight: 600;
    color: #667eea;
}

.history-amount {
    font-weight: bold;
    color: #4CAF50;
    font-size: 18px;
}

.history-details {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #666;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.history-details span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.history-date {
    font-size: 11px;
    color: #999;
}

.pending-commission {
    margin-bottom: 30px;
}

.pending-commission h3 {
    margin-bottom: 15px;
    color: #f57c00;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pending-card {
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.pending-amount {
    font-size: 28px;
    font-weight: bold;
    color: #f57c00;
    display: block;
    margin-bottom: 10px;
}

.pending-card p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.self-earnings {
    margin-bottom: 20px;
}

.self-earnings h3 {
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.earnings-card {
    background: #e8f5e9;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.earnings-amount {
    font-size: 28px;
    font-weight: bold;
    color: #4CAF50;
    display: block;
    margin-bottom: 10px;
}

.earnings-card p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* Commission Badge in Menu */
.commission-badge {
    margin-left: auto;
    background: #4CAF50;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.commission-badge.highlight {
    animation: pulse 1s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); background: #f57c00; }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .commission-rates {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .preview-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .history-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Commission Info Card in Payment Methods */
.commission-info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.commission-info-card i {
    font-size: 40px;
    opacity: 0.9;
}

.commission-info-card h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    opacity: 0.9;
}

.commission-info-card .commission-amount {
    font-size: 24px;
    font-weight: bold;
    margin: 5px 0;
}

.commission-info-card small {
    font-size: 11px;
    opacity: 0.8;
}

.commission-info-card .small-btn {
    margin-left: auto;
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.commission-info-card .small-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

/* ============================================
   SLIDESHOW STYLES
   ============================================ */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #000;
    margin-top: 0;
}

.slideshow-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    visibility: hidden;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 60px 30px 30px;
    text-align: center;
}

.slide-caption h3 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 600;
}

.slide-caption p {
    font-size: 16px;
    opacity: 0.9;
}

/* Navigation Arrows */
.slideshow-prev,
.slideshow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.slideshow-prev:hover,
.slideshow-next:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}

.slideshow-prev {
    left: 20px;
}

.slideshow-next {
    right: 20px;
}

/* Dots/Indicators */
.slideshow-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255,255,255,0.8);
    transform: scale(1.2);
}

.dot.active {
    background: #4CAF50;
    width: 30px;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .slideshow-container {
        height: 300px;
    }
    
    .slide-caption h3 {
        font-size: 20px;
    }
    
    .slide-caption p {
        font-size: 12px;
    }
    
    .slideshow-prev,
    .slideshow-next {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .slideshow-prev {
        left: 10px;
    }
    
    .slideshow-next {
        right: 10px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .dot.active {
        width: 20px;
    }
}

/* ============================================
   ANNOUNCEMENTS SECTION STYLES
   ============================================ */
.announcements-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    margin: 20px auto;
    max-width: 1200px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.announcements-header {
    background: rgba(0,0,0,0.2);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.announcements-header i {
    font-size: 24px;
    color: #ffd700;
}

.announcements-header h3 {
    color: white;
    margin: 0;
    font-size: 18px;
    flex: 1;
}

.announcement-badge {
    background: #ff4757;
    color: white;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: bold;
}

.announcements-list {
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.announcement-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
    animation: slideIn 0.3s ease;
}

.announcement-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.announcement-item.urgent {
    border-left-color: #ff4757;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.announcement-item.important {
    border-left-color: #ffa502;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.announcement-item.info {
    border-left-color: #1e90ff;
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.announcement-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.announcement-title i {
    font-size: 14px;
}

.announcement-badge-type {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    background: #f0f0f0;
    color: #666;
}

.announcement-badge-type.urgent {
    background: #ff4757;
    color: white;
}

.announcement-badge-type.important {
    background: #ffa502;
    color: white;
}

.announcement-date {
    font-size: 11px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

.announcement-content {
    color: #555;
    line-height: 1.5;
    margin-bottom: 10px;
    font-size: 14px;
}

.announcement-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.announcement-read-more {
    color: #667eea;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.announcement-read-more:hover {
    text-decoration: underline;
}

.announcement-actions {
    display: flex;
    gap: 8px;
}

.announcement-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.announcement-action-btn:hover {
    background: #f0f0f0;
}

.announcement-empty {
    text-align: center;
    padding: 40px;
    color: rgba(255,255,255,0.8);
}

.announcement-empty i {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
}

.announcement-loading {
    text-align: center;
    padding: 40px;
    color: rgba(255,255,255,0.8);
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .announcements-container {
        margin: 10px;
        border-radius: 12px;
    }
    
    .announcements-header {
        padding: 12px 15px;
    }
    
    .announcements-header h3 {
        font-size: 16px;
    }
    
    .announcement-item {
        padding: 12px;
    }
    
    .announcement-title {
        font-size: 14px;
    }
    
    .announcement-content {
        font-size: 12px;
    }
}

/* Super Admin Panel Styles */
.stat-mini-card {
    background: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex: 1;
}

.stats-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.role-badge.superadmin-badge {
    background: #9C27B0;
    color: white;
}

.role-badge.admin-badge {
    background: #FF5722;
    color: white;
}

.protected-badge {
    color: #999;
    font-size: 12px;
}

.settings-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.settings-section h3 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-item label {
    font-weight: 500;
    color: #555;
}

.setting-item input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.setting-item.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.settings-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.package-card.management {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.package-header {
    padding: 15px;
    text-align: center;
}

.package-header i {
    font-size: 32px;
    margin-bottom: 10px;
}

.package-details {
    padding: 15px;
}

.detail {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.package-actions {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #f0f0f0;
}

.backup-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.backup-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.backup-card i {
    font-size: 48px;
    color: #4CAF50;
    margin-bottom: 15px;
}

.backup-card h3 {
    margin-bottom: 10px;
}

.backup-card p {
    color: #666;
    margin-bottom: 15px;
}

.backup-card input[type="file"] {
    margin: 10px 0;
}

.backup-history {
    background: white;
    border-radius: 12px;
    padding: 20px;
}

.backup-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.transaction-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.trans-tab {
    padding: 8px 20px;
    background: #f5f5f5;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.trans-tab.active {
    background: #4CAF50;
    color: white;
}

.log-entry {
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 4px solid;
}

.log-entry.info {
    border-left-color: #2196F3;
}

.log-entry.warning {
    border-left-color: #FF9800;
}

.log-entry.error {
    border-left-color: #F44336;
}

.log-header {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #666;
}

.log-level {
    font-weight: bold;
}

.log-level.info { color: #2196F3; }
.log-level.warning { color: #FF9800; }
.log-level.error { color: #F44336; }

.log-message {
    font-size: 14px;
    color: #333;
}

.announcement-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.announcement-card.urgent {
    border-left: 4px solid #F44336;
}

.announcement-card.important {
    border-left: 4px solid #FF9800;
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.announcement-header h3 {
    margin: 0;
}

.priority-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.priority-badge.urgent {
    background: #F44336;
    color: white;
}

.priority-badge.important {
    background: #FF9800;
    color: white;
}

.priority-badge.normal {
    background: #4CAF50;
    color: white;
}

.announcement-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: #999;
}

.action-badge {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-family: monospace;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
}

.type-badge.deposit {
    background: #e8f5e9;
    color: #4CAF50;
}

.type-badge.withdrawal {
    background: #ffebee;
    color: #F44336;
}

@media (max-width: 768px) {
    .stats-row {
        flex-direction: column;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .backup-section {
        grid-template-columns: 1fr;
    }
    
    .announcement-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Modal Styles for Super Admin */
.modal-content.large {
    max-width: 800px;
    width: 90%;
}

.user-details-modal {
    max-height: 70vh;
    overflow-y: auto;
}

.user-profile-header {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    margin-bottom: 20px;
}

.user-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card-mini {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.stat-card-mini .stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.stat-card-mini .stat-value {
    font-size: 18px;
    font-weight: bold;
}

.financial-section, .referral-section, .packages-section, .recent-transactions {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.financial-section h4, .referral-section h4, .packages-section h4, .recent-transactions h4 {
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 5px;
}

.financial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.financial-item {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: white;
    border-radius: 6px;
}

.referral-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.referral-item {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: white;
    border-radius: 6px;
}

.package-item {
    padding: 10px;
    background: white;
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.transaction-type {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.transaction-type.deposit { background: #e8f5e9; color: #4CAF50; }
.transaction-type.withdrawal { background: #ffebee; color: #F44336; }
.transaction-type.profit { background: #e3f2fd; color: #2196F3; }
.transaction-type.bonus { background: #fff3e0; color: #FF9800; }

.transaction-amount.positive { color: #4CAF50; font-weight: bold; }
.transaction-amount.negative { color: #F44336; font-weight: bold; }

.transaction-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.transaction-status.completed { background: #e8f5e9; color: #4CAF50; }
.transaction-status.pending { background: #fff3e0; color: #FF9800; }
.transaction-status.rejected { background: #ffebee; color: #F44336; }

.date-info {
    display: flex;
    gap: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 13px;
}

.transaction-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.transaction-row:hover {
    background: #f5f5f5;
}

.tx-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tx-type {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.tx-type.deposit { color: #4CAF50; }
.tx-type.withdrawal { color: #F44336; }

.tx-date {
    font-size: 11px;
    color: #999;
}

.tx-amount {
    font-weight: bold;
}

.tx-amount.positive { color: #4CAF50; }
.tx-amount.negative { color: #F44336; }

.tx-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
}

.tx-status.completed { background: #e8f5e9; color: #4CAF50; }
.tx-status.pending { background: #fff3e0; color: #FF9800; }
.tx-status.rejected { background: #ffebee; color: #F44336; }

.settings-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.settings-tab-btn {
    padding: 8px 16px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.settings-tab-btn.active {
    background: #4CAF50;
    color: white;
}

.settings-tab-content {
    display: none;
}

.settings-tab-content.active {
    display: block;
}

.admin-details .admin-header {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #FF5722 0%, #FF9800 100%);
    border-radius: 12px;
    color: white;
    margin-bottom: 20px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: white;
    border-radius: 6px;
}

.protected-message {
    display: block;
    text-align: center;
    padding: 10px;
    background: #fff3e0;
    color: #FF9800;
    border-radius: 8px;
}

.announcement-details .announcement-header-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.announcement-meta-detail {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 12px;
    color: #666;
    flex-wrap: wrap;
}

.announcement-content-detail {
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Password Management Styles */
.password-options {
    max-height: 70vh;
    overflow-y: auto;
}

.user-info-box {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    margin-bottom: 20px;
    align-items: center;
}

.password-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}


.password-info {
    margin-top: 20px;
}

.info-box {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #2196F3;
}

.info-box i {
    font-size: 24px;
    color: #2196F3;
}

.info-box p {
    margin: 5px 0 0;
    font-size: 12px;
    color: #666;
}

.password-view {
    padding: 10px;
}

.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.alert i {
    font-size: 18px;
    margin-top: 2px;
}

.alert-warning {
    background: #fff3e0;
    border-left: 4px solid #FF9800;
    color: #663c00;
}

.alert-success {
    background: #e8f5e9;
    border-left: 4px solid #4CAF50;
    color: #1e4620;
}

.alert-info {
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    color: #0c3b5e;
}

.password-display {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
}

.password-display label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.password-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.password-box code {
    flex: 1;
    padding: 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: monospace;
    font-size: 14px;
    word-break: break-all;
}

.copy-btn {
    padding: 8px 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #45a049;
    transform: scale(1.05);
}

.user-credentials {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.user-credentials h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.user-credentials p {
    margin: 8px 0;
    font-family: monospace;
}

/* Responsive */
@media (max-width: 768px) {
    .user-info-box {
        flex-direction: column;
        text-align: center;
    }
    
    .password-actions {
        grid-template-columns: 1fr;
    }
    
    .password-box {
        flex-direction: column;
    }
    
    .password-box code {
        width: 100%;
        word-break: break-all;
    }
}

/* User Management Styles */
.users-stats-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    flex-wrap: wrap;
}

.users-stats-bar .stat-item {
    flex: 1;
    text-align: center;
}

.users-stats-bar .stat-item span {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.users-stats-bar .stat-item strong {
    font-size: 20px;
    color: #333;
}

.table-responsive {
    overflow-x: auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar i {
    font-size: 32px;
    color: #4CAF50;
}

.user-name {
    font-weight: 500;
    color: #333;
}

.user-username {
    font-size: 12px;
    color: #999;
}

.user-row.inactive-user {
    opacity: 0.7;
    background: #fff3e0;
}

.action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    min-width: 200px;
}



.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
}

.page-btn {
    padding: 8px 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

#pageInfo {
    font-size: 14px;
    color: #666;
}

.transactions-list {
    max-height: 500px;
    overflow-y: auto;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.transaction-item:hover {
    background: #f9f9f9;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.transaction-icon.deposit { background: #e8f5e9; color: #4CAF50; }
.transaction-icon.withdrawal { background: #ffebee; color: #F44336; }
.transaction-icon.profit { background: #e3f2fd; color: #2196F3; }
.transaction-icon.bonus { background: #fff3e0; color: #FF9800; }

.transaction-details {
    flex: 1;
}

.transaction-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.transaction-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: #999;
}

.transaction-amount {
    font-weight: bold;
    font-size: 16px;
}

.transaction-amount.positive { color: #4CAF50; }
.transaction-amount.negative { color: #F44336; }

.bulk-actions {
    padding: 20px;
}

.bulk-actions .action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

@media (max-width: 768px) {
    .users-stats-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn.small {
        width: 100%;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .search-bar {
        width: 100%;
    }
}


/* Admin User Management Styles */
.admin-user-details {
    max-height: 70vh;
    overflow-y: auto;
}

.user-profile-header {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    margin-bottom: 20px;
}

.user-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card-mini {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.stat-card-mini .stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.stat-card-mini .stat-value {
    font-size: 18px;
    font-weight: bold;
}

.stat-card-mini .stat-value.success { color: #4CAF50; }
.stat-card-mini .stat-value.danger { color: #F44336; }
.stat-card-mini .stat-value.warning { color: #FF9800; }

.financial-section, .referral-section, .packages-section, .recent-transactions {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.financial-section h4, .referral-section h4, .packages-section h4, .recent-transactions h4 {
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 5px;
}

.financial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.financial-item {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: white;
    border-radius: 6px;
}

.referral-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.referral-item {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: white;
    border-radius: 6px;
}

.package-item {
    padding: 10px;
    background: white;
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.transaction-type {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.transaction-type.deposit { background: #e8f5e9; color: #4CAF50; }
.transaction-type.withdrawal { background: #ffebee; color: #F44336; }
.transaction-type.profit { background: #e3f2fd; color: #2196F3; }
.transaction-type.bonus { background: #fff3e0; color: #FF9800; }

.transaction-amount.positive { color: #4CAF50; font-weight: bold; }
.transaction-amount.negative { color: #F44336; font-weight: bold; }

.transaction-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.transaction-status.completed { background: #e8f5e9; color: #4CAF50; }
.transaction-status.pending { background: #fff3e0; color: #FF9800; }
.transaction-status.rejected { background: #ffebee; color: #F44336; }

.date-info {
    display: flex;
    gap: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 13px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.modal-actions .action-btn {
    padding: 8px 16px;
}

.modal-actions .action-btn.danger {
    background: #F44336;
    color: white;
}

.modal-actions .action-btn.danger:hover {
    background: #d32f2f;
}

.modal-actions .action-btn.warning {
    background: #FF9800;
    color: white;
}

.modal-actions .action-btn.warning:hover {
    background: #F57C00;
}

.modal-actions .action-btn.success {
    background: #4CAF50;
    color: white;
}

.modal-actions .action-btn.success:hover {
    background: #45a049;
}

.modal-actions .action-btn.info {
    background: #2196F3;
    color: white;
}

.modal-actions .action-btn.info:hover {
    background: #1976D2;
}

.inactive-user {
    opacity: 0.7;
    background-color: #fff3e0;
}

/* Withdrawal Fee Styles */
.fee-text {
    color: #FF9800;
    font-size: 11px;
}

.net-amount {
    color: #4CAF50;
}

.summary-row.fee {
    background: #fff3e0;
    color: #FF9800;
}

.summary-row.total {
    background: #e8f5e9;
    font-weight: bold;
}

.summary-value.fee-amount {
    color: #FF9800;
}

.summary-value.net-amount {
    color: #4CAF50;
    font-size: 18px;
}

/* ============================================
   RESPONSIVE STAT CARDS ONLY
   ============================================ */

/* Base stat card styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.stat-card i {
    font-size: 40px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.stat-card .stat-info {
    flex: 1;
}

.stat-card .stat-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.stat-card .stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

/* Different card colors */
.stat-card:nth-child(1) i { background: rgba(33, 150, 243, 0.1); color: #2196F3; }
.stat-card:nth-child(2) i { background: rgba(76, 175, 80, 0.1); color: #4CAF50; }
.stat-card:nth-child(3) i { background: rgba(255, 152, 0, 0.1); color: #FF9800; }
.stat-card:nth-child(4) i { background: rgba(156, 39, 176, 0.1); color: #9C27B0; }
.stat-card:nth-child(5) i { background: rgba(244, 67, 54, 0.1); color: #F44336; }
.stat-card:nth-child(6) i { background: rgba(0, 188, 212, 0.1); color: #00BCD4; }

/* ============================================
   RESPONSIVE BREAKPOINTS FOR STAT CARDS ONLY
   ============================================ */

/* Laptop (1024px - 1200px) - 3 cards per row */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    
    .stat-card {
        padding: 18px;
    }
    
    .stat-card i {
        font-size: 36px;
        width: 55px;
        height: 55px;
    }
    
    .stat-card .stat-value {
        font-size: 22px;
    }
}

/* Tablet (768px - 1024px) - 2 cards per row */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-card i {
        font-size: 32px;
        width: 50px;
        height: 50px;
    }
    
    .stat-card .stat-value {
        font-size: 20px;
    }
    
    .stat-card .stat-label {
        font-size: 13px;
    }
}

/* Mobile Landscape (576px - 768px) - 2 cards per row (smaller) */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 14px;
        gap: 12px;
    }
    
    .stat-card i {
        font-size: 28px;
        width: 45px;
        height: 45px;
    }
    
    .stat-card .stat-value {
        font-size: 18px;
    }
    
    .stat-card .stat-label {
        font-size: 12px;
    }
}

/* Mobile Portrait (480px - 576px) - 1 card per row */
@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 12px 15px;
        gap: 15px;
    }
    
    .stat-card i {
        font-size: 28px;
        width: 45px;
        height: 45px;
    }
    
    .stat-card .stat-value {
        font-size: 18px;
    }
    
    .stat-card .stat-label {
        font-size: 12px;
    }
}

/* Small Mobile (320px - 480px) - 1 card per row (compact) */
@media (max-width: 480px) {
    .stats-grid {
        gap: 8px;
    }
    
    .stat-card {
        padding: 10px 12px;
        gap: 12px;
    }
    
    .stat-card i {
        font-size: 24px;
        width: 40px;
        height: 40px;
    }
    
    .stat-card .stat-value {
        font-size: 16px;
    }
    
    .stat-card .stat-label {
        font-size: 11px;
    }
}

/* Extra Small Mobile (up to 375px) */
@media (max-width: 375px) {
    .stat-card {
        padding: 8px 10px;
        gap: 10px;
    }
    
    .stat-card i {
        font-size: 20px;
        width: 35px;
        height: 35px;
    }
    
    .stat-card .stat-value {
        font-size: 14px;
    }
    
    .stat-card .stat-label {
        font-size: 10px;
    }
}

/* Stat card value update animation */
.stat-value {
    transition: all 0.3s ease;
}

.stat-updated {
    animation: statPulse 0.5s ease;
}

@keyframes statPulse {
    0% {
        transform: scale(1);
        color: #4CAF50;
    }
    50% {
        transform: scale(1.1);
        color: #4CAF50;
    }
    100% {
        transform: scale(1);
        color: inherit;
    }
}

/* Stat card badge for pending items */
.stat-value[data-badge] {
    position: relative;
}

.stat-value[data-badge]::after {
    content: attr(data-badge);
    position: absolute;
    top: -10px;
    right: -20px;
    background: #FF9800;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
}

/* Refresh button style */
.refresh-stats-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.refresh-stats-btn:hover {
    background: #45a049;
    transform: scale(1.02);
}

.refresh-stats-btn:active {
    transform: scale(0.98);
}

.stat-subtitle {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

.stat-value[data-total] {
    position: relative;
}

.stat-value[data-total]::before {
    content: attr(data-total);
    position: absolute;
    top: -20px;
    right: 0;
    font-size: 10px;
    color: #666;
}

/* Social Links Management Styles */
.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.social-link-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.social-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.social-link-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.social-link-header h3 {
    flex: 1;
    margin: 0;
    font-size: 16px;
}

.social-link-details {
    padding: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.social-link-actions {
    display: flex;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid #eee;
}

/* User Social Verification Styles */
.social-verification-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.social-verification-item:hover {
    background: #f9f9f9;
}

.social-verification-item.completed {
    background: #e8f5e9;
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.social-info {
    flex: 1;
}

.social-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.social-info p {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: #666;
}

.social-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-follow-btn, .verify-btn {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.social-follow-btn {
    background: #4CAF50;
    color: white;
    border: none;
}

.social-follow-btn:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.verify-btn {
    background: #2196F3;
    color: white;
    border: none;
}

.verify-btn:hover {
    background: #1976D2;
}

.completed-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #4CAF50;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    margin-top: 10px;
}

.social-verification-progress {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.social-verification-progress .progress-bar-container {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.social-verification-progress .progress-bar-fill {
    height: 100%;
    background: #4CAF50;
    transition: width 0.3s ease;
}

.social-task-badge {
    background: #FF9800;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    margin-left: 8px;
}

.required-badge {
    background: #F44336;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
}

.optional-badge {
    background: #9E9E9E;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
}

.social-links-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Bank Accounts Styles */
.bank-accounts-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.bank-tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.bank-tab-btn i {
    margin-right: 8px;
}

.bank-tab-btn.active {
    color: #4CAF50;
    background: #e8f5e9;
    border-bottom: 2px solid #4CAF50;
}

.bank-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.bank-tab-content.active {
    display: block;
}

.saved-accounts-list {
    max-height: 400px;
    overflow-y: auto;
}

.bank-account-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.bank-account-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.bank-account-card.default {
    background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 100%);
    border-left: 4px solid #4CAF50;
}

.bank-account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.bank-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bank-name i {
    font-size: 24px;
}

.bank-name h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.default-badge {
    background: #4CAF50;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.bank-account-details {
    margin-bottom: 12px;
}

.detail-row {
    display: flex;
    margin-bottom: 6px;
    font-size: 13px;
}

.detail-label {
    width: 100px;
    color: #666;
}

.detail-value {
    color: #333;
    font-weight: 500;
}

.bank-account-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.bank-account-actions button {
    padding: 6px 12px;
    font-size: 12px;
    background: #f5f5f5;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.bank-account-actions button:hover {
    background: #e0e0e0;
}

.bank-account-actions .set-default-btn {
    color: #2196F3;
}

.bank-account-actions .delete-btn {
    color: #f44336;
}

.add-account-form-container {
    max-width: 500px;
    margin: 0 auto;
}

.add-account-form-container h3 {
    margin-bottom: 10px;
    color: #333;
}

.form-note {
    color: #666;
    font-size: 13px;
    margin-bottom: 20px;
}

.checkbox-group {
    margin: 15px 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.bank-accounts-info {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.info-card {
    display: flex;
    gap: 15px;
    background: #e3f2fd;
    padding: 15px;
    border-radius: 10px;
}

.info-card i {
    font-size: 24px;
    color: #2196F3;
}

.info-card div p {
    margin: 5px 0;
    font-size: 13px;
    color: #666;
}

.empty-accounts {
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-accounts i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ccc;
}

.loading-accounts {
    text-align: center;
    padding: 40px;
    color: #999;
}

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

.bank-accounts-badge {
    background: #ff9800;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}

/* Updated Withdrawal Section Styles */
.account-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.account-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: #4CAF50;
}

.account-card.selected {
    border: 2px solid #4CAF50;
    background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 100%);
}

.account-card.default {
    border-left: 4px solid #4CAF50;
}

.account-radio {
    padding-top: 2px;
}

.account-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4CAF50;
}

.account-details {
    flex: 1;
}

.account-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.account-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.default-badge-small {
    background: #4CAF50;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
}

.account-name {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.account-number {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 5px 0;
    font-family: monospace;
}

.account-added {
    font-size: 11px;
    color: #999;
    margin: 5px 0 0;
}

.manage-accounts-btn {
    margin-top: 15px;
    text-align: center;
    padding: 10px;
    border-top: 1px solid #f0f0f0;
}

.no-accounts-warning {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-accounts-warning i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

.no-accounts-warning p {
    margin: 10px 0;
}

.no-accounts-warning .small {
    font-size: 12px;
    color: #999;
}

.selected-account-details {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.selected-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.selected-header h4 {
    margin: 0;
    font-size: 18px;
    color: #2e7d32;
}

.selected-details {
    margin-bottom: 12px;
}

.selected-details .detail-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 14px;
}

.selected-details .detail-row .label {
    width: 110px;
    color: #666;
}

.selected-details .detail-row .value {
    color: #333;
    font-weight: 500;
}

.selected-check {
    color: #4CAF50;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    padding-top: 8px;
    border-top: 1px solid rgba(76, 175, 80, 0.3);
}

/* Large Logo Container */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.logo-img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* For sidebar logo */
.sidebar-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.sidebar-logo .logo-image {
    width: 60px;
    height: auto;
}

/* CSS Text Logo - Large Size */
.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 60px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.logo-icon {
    background: papayawhip;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon i {
    font-size: 32px;
    color: white;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text .smart {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.logo-text .task {
    font-size: 32px;
    font-weight: 900;
    color: papayawhip;
    letter-spacing: 1px;
}

.logo-text .company {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    letter-spacing: 2px;
    margin-top: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .brand-logo {
        padding: 10px 20px;
        gap: 8px;
    }
    
    .logo-icon {
        width: 45px;
        height: 45px;
    }
    
    .logo-icon i {
        font-size: 24px;
    }
    
    .logo-text .smart {
        font-size: 20px;
    }
    
    .logo-text .task {
        font-size: 24px;
    }
    
    .logo-text .company {
        font-size: 10px;
    }
}

/* Welcome H2 Styling */
#overviewTab h2 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #4CAF50;
    display: inline-block;
    position: relative;
}

#overviewTab h2 #welcomeName {
    color: #4CAF50;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

/* Optional: Add a wave emoji animation on hover */
#overviewTab h2 #welcomeName:hover::before {
    content: '👋';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    animation: wave 0.5s ease;
}

@keyframes wave {
    0% { transform: translateY(-50%) rotate(0deg); }
    25% { transform: translateY(-50%) rotate(15deg); }
    75% { transform: translateY(-50%) rotate(-15deg); }
    100% { transform: translateY(-50%) rotate(0deg); }
}

/* Gradient Text */
#overviewTab h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #1a1a2e 0%, #4CAF50 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#overviewTab h2 #welcomeName {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Gradient Text */
#overviewTab h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #1a1a2e 0%, #4CAF50 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#overviewTab h2 #welcomeName {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Transaction Simulator Styles */
.transaction-simulator {
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.simulator-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.simulator-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-badge {
    background: #ff4757;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    animation: pulse 1.5s infinite;
}

.live-badge i {
    font-size: 8px;
    margin-right: 5px;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.simulator-toggle {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.simulator-toggle:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(180deg);
}

.transactions-scroll-container {
    max-height: 400px;
    overflow-y: auto;
    background: #f8f9fa;
}

.transactions-timeline {
    position: relative;
    padding: 20px;
}

.timeline-line {
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #4CAF50, #FF9800, #f44336);
}

.transactions-list {
    position: relative;
}

.transaction-item-live {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    animation: slideIn 0.3s ease;
    position: relative;
    border-left: 4px solid;
    transition: all 0.3s;
}

.transaction-item-live.deposit {
    border-left-color: #4CAF50;
}

.transaction-item-live.withdrawal {
    border-left-color: #f44336;
}

.transaction-item-live.expiring {
    animation: pulseWarning 1s infinite;
    background: #fff3e0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseWarning {
    0%, 100% { background: #fff3e0; }
    50% { background: #ffe0b2; }
}

.transaction-time {
    min-width: 70px;
    font-size: 11px;
    color: #999;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.transaction-icon.deposit {
    background: #e8f5e9;
    color: #4CAF50;
}

.transaction-icon.withdrawal {
    background: #ffebee;
    color: #f44336;
}

.transaction-details {
    flex: 1;
}

.transaction-details .name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.transaction-details .phone {
    font-size: 12px;
    color: #666;
    font-family: monospace;
}

.transaction-details .amount {
    font-weight: 700;
    font-size: 16px;
    margin-top: 5px;
}

.transaction-details .amount.deposit {
    color: #4CAF50;
}

.transaction-details .amount.withdrawal {
    color: #f44336;
}

.transaction-expiry {
    font-size: 10px;
    color: #ff9800;
    margin-top: 5px;
}

.transaction-countdown {
    min-width: 60px;
    text-align: right;
}

.countdown-timer {
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    font-family: monospace;
}

.countdown-timer.urgent {
    background: #ffeb3b;
    color: #333;
    animation: blink 0.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.simulator-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #e0e0e0;
}

.simulator-stats .stat {
    background: white;
    padding: 12px;
    text-align: center;
}

.simulator-stats .stat span {
    display: block;
    font-size: 11px;
    color: #666;
    margin-bottom: 5px;
}

.simulator-stats .stat strong {
    font-size: 16px;
    color: #333;
}

.loading-transactions {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Additional styles for real vs simulated badges */
.real-badge {
    background: #4CAF50;
    color: white;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}

.simulated-badge {
    background: #FF9800;
    color: white;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}

.real-transaction {
    border-left-width: 4px;
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.05) 0%, white 100%);
}

.simulated-transaction {
    border-left-width: 2px;
    opacity: 0.9;
}

.transaction-status {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}

.transaction-status.pending {
    background: #FFC107;
    color: #333;
}

.transaction-status.completed, .transaction-status.approved {
    background: #4CAF50;
    color: white;
}

.transaction-status.rejected {
    background: #f44336;
    color: white;
}

/* Auth Logo - Large Size with Animation, No Border/Background */
.auth-header .logo {
    width: auto;
    height: auto;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoFloat 3s ease-in-out infinite;
}

.auth-header .logo img {
    width: 300px;
    height: auto;
    max-width: 90%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.auth-header .logo:hover img {
    transform: scale(1.05);
}

/* Floating Animation */
@keyframes logoFloat {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Responsive Sizes */
@media (min-width: 768px) {
    .auth-header .logo img {
        width: 380px;
    }
}

@media (min-width: 1200px) {
    .auth-header .logo img {
        width: 450px;
    }
}

@media (max-width: 480px) {
    .auth-header .logo img {
        width: 250px;
    }
}

/* ============================================
   PASSWORD TOGGLE - COMPLETE STYLES
   ============================================ */

/* Input Group Container */
.input-group {
    position: relative;
    margin-bottom: 20px;
    width: 100%;
}

/* Left Icon */
.input-group>i:first-child {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 16px;
    z-index: 2;
    pointer-events: none;
    transition: color 0.3s ease;
}

/* Input Field */
.input-group input {
    width: 100%;
    padding: 14px 110px 14px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
    font-family: inherit;
}

.input-group input:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.input-group input:focus+i {
    color: #4CAF50;
}

/* Password Wrapper Specific */
.password-wrapper input {
    padding-right: 95px;
}

/* Password Toggle Button */
.password-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 30px;
    z-index: 2;
    white-space: nowrap;
}

.password-toggle-btn i {
    font-size: 14px;
    pointer-events: none;
}

.password-toggle-btn .toggle-text {
    pointer-events: none;
    font-size: 12px;
}

/* Hover Effect */
.password-toggle-btn:hover {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.password-toggle-btn:hover i {
    color: #4CAF50;
}

/* Active/Visible State */
.password-toggle-btn.active {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.15);
}

.password-toggle-btn.active i {
    color: #4CAF50;
}

/* Click Animation */
.password-toggle-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Focus Ring for Accessibility */
.password-toggle-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
    border-radius: 30px;
}

/* Responsive Styles */
@media (max-width: 480px) {
    .input-group input {
        padding: 12px 80px 12px 40px;
        font-size: 13px;
    }
    
    .password-wrapper input {
        padding-right: 75px;
    }
    
    .input-group>i:first-child {
        left: 12px;
        font-size: 14px;
    }
    
    .password-toggle-btn {
        padding: 4px 10px;
        right: 5px;
    }
    
    .password-toggle-btn .toggle-text {
        font-size: 11px;
    }
    
    .password-toggle-btn i {
        font-size: 12px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .input-group input {
        background: #2a2a3a;
        border-color: #3a3a4a;
        color: #eee;
    }
    
    .input-group>i:first-child {
        color: #888;
    }
    
    .password-toggle-btn {
        color: #aaa;
    }
    
    .password-toggle-btn:hover {
        background: rgba(76, 175, 80, 0.2);
    }
}

/* Error State */
.input-group.error input {
    border-color: #f44336;
}

.input-group.error input:focus {
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

/* Success State */
.input-group.success input {
    border-color: #4CAF50;
}

/* Disabled State */
.password-toggle-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Password Strength Indicator (Optional) */
.password-wrapper.weak input {
    border-color: #f44336;
}

.password-wrapper.medium input {
    border-color: #FFC107;
}

.password-wrapper.strong input {
    border-color: #4CAF50;
}

.strength-indicator {
    display: flex;
    gap: 5px;
    margin-top: 5px;
    font-size: 11px;
}

.strength-indicator span {
    flex: 1;
    height: 3px;
    border-radius: 3px;
    background: #e0e0e0;
    transition: all 0.3s ease;
}

.strength-indicator .weak {
    background: #f44336;
}

.strength-indicator .medium {
    background: #FFC107;
}

.strength-indicator .strong {
    background: #4CAF50;
}

/* Language Switcher Styles */
.language-switcher {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.lang-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #4CAF50;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

/* For dashboard (when logged in) */
.dashboard .lang-btn {
    background: rgba(0,0,0,0.08);
    color: #333;
    border-color: #ddd;
}

.dashboard .lang-btn.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.dashboard .lang-btn:hover {
    background: rgba(0,0,0,0.15);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .lang-btn span {
        display: none;
    }
    
    .lang-btn {
        padding: 6px 10px;
    }
}

/* Social Login Styles */
.social-login {
    margin-top: 20px;
    text-align: center;
}

.social-login p {
    color: #666;
    font-size: 13px;
    margin-bottom: 15px;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #e0e0e0;
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-btn.google {
    background: #DB4437;
}

.social-btn.facebook {
    background: #4267B2;
}

.social-btn.github {
    background: #333;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .social-login p {
        color: #aaa;
    }
    
    .social-login p::before,
    .social-login p::after {
        background: #444;
    }
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE FIXES
   ============================================ */

/* Global Mobile First Adjustments */
@media (max-width: 768px) {
    /* Dashboard Header - Hide text, show icons only */
    .dashboard-header {
        padding: 0 12px;
        height: 55px;
    }

    .header-left h2 {
        display: none;
    }

    .header-left .menu-toggle {
        font-size: 20px;
        margin-right: 0;
    }

    .header-right {
        gap: 10px;
    }

    .header-right .user-profile span {
        display: none;
    }

    .header-right .user-profile i {
        display: none;
    }

    .user-profile-img {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
    }

    /* Notification icon smaller */
    .notification-icon {
        font-size: 18px;
        margin-right: 0;
    }

    /* Language switcher compact */
    .language-switcher {
        margin-right: 5px;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 10px;
    }

    .lang-btn span {
        display: none;
    }

    .lang-btn i {
        margin: 0;
        font-size: 14px;
    }
}

/* ============================================
   TASK CARD RESPONSIVE - HIDE UNNECESSARY DETAILS
   ============================================ */

@media (max-width: 768px) {
    .task-item {
        flex-direction: column;
        padding: 12px;
        gap: 12px;
    }

    /* Media container - full width but smaller height */
    .task-media-container {
        width: 100%;
        height: 160px;
        margin-bottom: 5px;
    }

    /* Task info - full width */
    .task-info {
        width: 100%;
        padding: 0;
    }

    .task-info h4 {
        font-size: 15px;
        margin-bottom: 6px;
        white-space: normal;
        word-break: break-word;
    }

    .task-info p {
        font-size: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 8px;
    }

    /* Hide expiry time on mobile, show only category */
    .task-meta .task-expiry {
        display: none;
    }

    .task-meta .task-category {
        font-size: 11px;
    }

    /* Package indicator - compact */
    .package-indicator {
        font-size: 11px;
        padding: 4px 8px;
        margin-top: 6px;
        flex-wrap: wrap;
    }

    .package-badge-small {
        font-size: 10px;
        padding: 2px 6px;
    }

    /* Task actions - full width button */
    .task-actions {
        width: 100%;
        margin-top: 8px;
    }

    .do-task-btn {
        width: 100%;
        padding: 10px;
        font-size: 13px;
        justify-content: center;
    }

    .task-status.completed {
        width: 100%;
        text-align: center;
        padding: 8px;
        font-size: 13px;
        justify-content: center;
    }

    /* Progress bar container */
    .tasks-progress {
        padding: 12px;
        margin-bottom: 15px;
    }

    .progress-label {
        font-size: 12px;
        flex-wrap: wrap;
        gap: 5px;
    }

    /* Daily tasks list container */
    .daily-tasks-list {
        padding: 10px;
    }

    /* No tasks warning */
    .no-package-warning,
    .no-tasks {
        padding: 30px 15px;
    }

    .no-package-warning i,
    .no-tasks i {
        font-size: 36px;
    }

    .no-package-warning h4,
    .no-tasks h3 {
        font-size: 16px;
    }

    .no-package-warning p,
    .no-tasks p {
        font-size: 12px;
    }

    .action-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Very small phones (up to 480px) */
@media (max-width: 480px) {
    .task-media-container {
        height: 140px;
    }

    .task-info h4 {
        font-size: 14px;
    }

    .task-info p {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }

    .task-meta .task-category {
        font-size: 10px;
    }

    .package-indicator {
        font-size: 10px;
        padding: 3px 6px;
    }

    .do-task-btn {
        padding: 8px;
        font-size: 12px;
    }

    .task-status.completed {
        padding: 8px;
        font-size: 12px;
    }
}

/* ============================================
   LIVE TRANSACTION CARD RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    /* Transaction Simulator Container */
    .transaction-simulator {
        margin: 15px 0;
        border-radius: 12px;
    }

    .simulator-header {
        padding: 12px 15px;
    }

    .simulator-header h3 {
        font-size: 14px;
    }

    .simulator-header h3 i {
        font-size: 14px;
    }

    .live-badge {
        font-size: 9px;
        padding: 2px 8px;
    }

    /* Transaction items - compact layout */
    .transaction-item-live {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
        position: relative;
    }

    /* Time - smaller and positioned top right */
    .transaction-time {
        min-width: auto;
        font-size: 9px;
        color: #999;
        order: 2;
        margin-left: auto;
    }

    /* Icon - smaller */
    .transaction-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
        order: 1;
    }

    /* Details - full width after icon */
    .transaction-details {
        width: calc(100% - 50px);
        order: 3;
        margin-top: 5px;
    }

    .transaction-details .name {
        font-size: 13px;
        font-weight: 600;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
    }

    .real-badge,
    .simulated-badge {
        font-size: 8px;
        padding: 2px 6px;
    }

    .transaction-details .phone {
        font-size: 10px;
        margin-top: 2px;
    }

    .transaction-details .amount {
        font-size: 14px;
        font-weight: bold;
        margin-top: 4px;
    }

    /* Hide transaction expiry text on mobile */
    .transaction-expiry {
        display: none;
    }

    /* Countdown timer - small and positioned */
    .transaction-countdown {
        min-width: auto;
        order: 4;
        margin-left: auto;
    }

    .countdown-timer {
        font-size: 10px;
        padding: 3px 6px;
        background: #f0f0f0;
        border-radius: 12px;
    }

    /* Timeline line hidden on mobile */
    .timeline-line {
        display: none;
    }

    /* Stats row - 3 column grid */
    .simulator-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1px;
        background: #e0e0e0;
    }

    .simulator-stats .stat {
        padding: 10px 5px;
    }

    .simulator-stats .stat span {
        font-size: 10px;
    }

    .simulator-stats .stat strong {
        font-size: 12px;
    }

    /* Transactions scroll container */
    .transactions-scroll-container {
        max-height: 300px;
    }
}

/* Extra small phones */
@media (max-width: 480px) {
    .transaction-item-live {
        padding: 10px;
    }

    .transaction-icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .transaction-details {
        width: calc(100% - 40px);
    }

    .transaction-details .name {
        font-size: 12px;
    }

    .transaction-details .amount {
        font-size: 12px;
    }

    .countdown-timer {
        font-size: 9px;
        padding: 2px 5px;
    }

    .simulator-stats .stat span {
        font-size: 9px;
    }

    .simulator-stats .stat strong {
        font-size: 11px;
    }
}

/* ============================================
   REFERRAL LIST - NO SCROLLING FIX
   ============================================ */

@media (max-width: 768px) {
    /* Referral container - prevent overflow */
    .referral-container {
        overflow-x: hidden;
        width: 100%;
    }

    /* Stats grid - 2x2 layout */
    .referral-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 20px;
    }

    .stat-card.small {
        padding: 12px;
    }

    .stat-card.small i {
        font-size: 20px;
        width: 35px;
        height: 35px;
    }

    .stat-card.small .stat-info {
        font-size: 11px;
    }

    .stat-card.small strong {
        font-size: 14px;
    }

    /* Referral table - make it scroll horizontally if needed, but NO vertical overflow */
    .referral-list {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .referral-table {
        min-width: 500px;
        font-size: 12px;
    }

    .referral-table th,
    .referral-table td {
        padding: 8px 10px;
        white-space: nowrap;
    }

    /* Alternatively, for better mobile experience, convert table to cards */
    .referral-table {
        min-width: auto;
        display: block;
    }

    .referral-table thead {
        display: none;
    }

    .referral-table tbody,
    .referral-table tr,
    .referral-table td {
        display: block;
        width: 100%;
    }

    .referral-table tr {
        margin-bottom: 12px;
        border: 1px solid #e0e0e0;
        border-radius: 10px;
        padding: 12px;
        background: white;
    }

    .referral-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid #f0f0f0;
        white-space: normal;
        word-break: break-word;
    }

    .referral-table td:last-child {
        border-bottom: none;
    }

    .referral-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #666;
        width: 40%;
        text-align: left;
    }

    /* Add data-label attributes via JavaScript or manually, or keep original content */
    /* Alternative: keep original display but ensure no overflow */
    .referral-list {
        overflow-x: hidden;
    }

    /* Referral link box */
    .referral-link-box {
        padding: 15px;
        margin: 15px 0;
    }

    .referral-link-box h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .link-display {
        flex-wrap: wrap;
        gap: 8px;
    }

    .link-display input {
        width: 100%;
        font-size: 11px;
        padding: 10px;
    }

    .link-display button {
        width: 100%;
        padding: 10px;
    }

    .referral-note {
        font-size: 10px;
    }

    /* No data message */
    .no-data {
        padding: 30px 15px;
        font-size: 13px;
    }
}

/* ============================================
   ADDITIONAL SMALL DEVICE FIXES
   ============================================ */

@media (max-width: 768px) {
    /* Main content padding */
    .main-content {
        padding: 15px;
    }

    /* Stats grid - 2x2 layout */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 12px;
        gap: 10px;
    }

    .stat-card i {
        font-size: 24px;
        width: 45px;
        height: 45px;
    }

    .stat-card .stat-label {
        font-size: 11px;
    }

    .stat-card .stat-value {
        font-size: 16px;
    }

    /* Daily tasks card and active packages card */
    .daily-tasks-card,
    .active-packages-card {
        padding: 15px;
        margin-bottom: 15px;
    }

    .daily-tasks-card h3,
    .active-packages-card h3 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .badge {
        font-size: 10px;
        padding: 2px 6px;
    }

    /* Packages grid */
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .package-card {
        padding: 15px;
    }

    .package-header h3 {
        font-size: 16px;
    }

    .package-header .investment {
        font-size: 12px;
    }

    .package-details .detail-item .value {
        font-size: 14px;
    }

    /* Deposit/Withdraw forms */
    .deposit-form-container,
    .withdraw-container {
        padding: 0;
    }

    .info-card {
        padding: 15px;
        gap: 12px;
    }

    .info-card i {
        font-size: 28px;
    }

    .info-card h4 {
        font-size: 14px;
    }

    .info-card p {
        font-size: 11px;
    }

    .form-section {
        padding: 15px;
    }

    .form-section h3 {
        font-size: 15px;
    }

    /* Payment methods grid */
    .payment-methods-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .payment-method-card {
        padding: 12px;
    }

    /* Withdraw step progress */
    .step-progress {
        flex-wrap: wrap;
        gap: 5px;
        margin: 20px 0;
    }

    .step {
        flex: 1;
        min-width: 70px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .step-label {
        font-size: 9px;
    }

    .step-line {
        display: none;
    }

    .balance-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* History items */
    .history-item {
        padding: 12px;
        gap: 10px;
    }

    .history-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .history-title {
        font-size: 12px;
    }

    .history-date {
        font-size: 10px;
    }

    .history-amount {
        font-size: 13px;
    }

    /* Buttons */
    .action-btn,
    .auth-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    /* Modal adjustments */
    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 10px;
    }

    .modal-content.large {
        width: 95%;
        padding: 20px;
    }

    .modal h2 {
        font-size: 18px;
    }

    /* Announcements */
    .announcements-container {
        margin: 15px 0;
        border-radius: 12px;
    }

    .announcements-header {
        padding: 12px 15px;
    }

    .announcements-header h3 {
        font-size: 14px;
    }

    .announcement-item {
        padding: 12px;
    }

    .announcement-title {
        font-size: 13px;
    }

    .announcement-content {
        font-size: 12px;
    }

    /* Sidebar adjustments */
    .sidebar {
        width: 260px;
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar-menu li {
        padding: 10px 16px;
    }

    .sidebar-menu li i {
        font-size: 16px;
    }

    .sidebar-menu li span {
        font-size: 13px;
    }

    /* User menu dropdown */
    .user-menu {
        position: fixed;
        top: 55px;
        right: 10px;
        left: auto;
        width: calc(100% - 20px);
        max-width: 280px;
    }
}

/* ============================================
   LANDSCAPE MODE FIXES
   ============================================ */

@media (max-width: 768px) and (orientation: landscape) {
    .task-media-container {
        height: 120px;
    }

    .transaction-item-live {
        padding: 8px;
    }

    .transaction-icon {
        width: 30px;
        height: 30px;
    }

    .transactions-scroll-container {
        max-height: 200px;
    }

    .sidebar {
        overflow-y: auto;
        max-height: calc(100vh - 55px);
    }
}

/* ============================================
   UTILITY CLASSES FOR HIDING ON MOBILE
   ============================================ */

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }

    .mobile-full-width {
        width: 100% !important;
    }

    .mobile-text-center {
        text-align: center !important;
    }

    .mobile-stack {
        flex-direction: column !important;
    }
}

/* ============================================
   TOUCH FRIENDLY TARGETS
   ============================================ */

@media (max-width: 768px) {
    button,
    .action-btn,
    .auth-btn,
    .buy-btn,
    .do-task-btn,
    .sidebar-menu li,
    .user-profile {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    button:active,
    .action-btn:active {
        transform: scale(0.98);
        transition: transform 0.05s ease;
    }
}
