/* ================================
   BestAFK - Dashboard Styles
   ================================ */

/* Google AdSense Ad Containers */
.ad-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-banner-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.ad-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.ad-card ins,
.ad-banner-container ins {
    background: transparent !important;
}

/* Live Value Animation */
.stat-value {
    transition: color 0.3s ease, transform 0.2s ease;
}

.value-updating {
    color: #a78bfa !important;
    transform: scale(1.05);
}

.value-flash {
    animation: valueFlash 0.4s ease;
}

@keyframes valueFlash {
    0% { color: #4ade80; transform: scale(1.1); }
    50% { color: #4ade80; transform: scale(1.05); }
    100% { color: inherit; transform: scale(1); }
}

/* Dashboard Layout */
.dashboard-page {
    display: flex;
    min-height: 100vh;
    background: var(--bg-dark);
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-darker);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: var(--transition);
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header .logo-text {
    font-size: 24px;
}

.sidebar.collapsed .sidebar-header .logo-text span {
    display: none;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    color: var(--text-primary);
    background: rgba(124, 58, 237, 0.05);
}

.sidebar-nav li.active a {
    color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
    border-left-color: var(--primary);
}

.sidebar-nav a i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.sidebar-nav .badge {
    margin-left: auto;
    background: var(--bg-card);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.sidebar-nav .badge.success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.user-plan {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    margin-bottom: 15px;
}

.user-plan i {
    color: var(--secondary);
}

.user-plan span {
    font-weight: 600;
    font-size: 14px;
}

.upgrade-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    transition: var(--transition);
}

.sidebar.collapsed + .main-content {
    margin-left: 70px;
}

/* Top Bar */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
}

.sidebar-toggle:hover {
    color: var(--primary);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 15px;
    width: 300px;
}

.search-box i {
    color: var(--text-muted);
}

.search-box input {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    width: 100%;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Topbar Plan Badge */
.plan-badge-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(167, 139, 250, 0.15));
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 20px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

.plan-badge-topbar i {
    color: #a78bfa;
}

.plan-badge-topbar .days-badge {
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.plan-badge-topbar .days-badge.expiring {
    background: #ef4444;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.server-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    font-size: 13px;
    color: var(--success);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.status-dot.offline {
    background: var(--text-muted);
}

.status-dot.transferring {
    background: var(--warning);
    box-shadow: 0 0 10px var(--warning);
    animation: blink 1s ease-in-out infinite;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
}

.notification-btn:hover {
    color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    display: none; /* Hidden by default, shown by JS when notifications exist */
}

.notification-badge:not(:empty) {
    display: block;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 15px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.user-btn:hover {
    border-color: var(--primary);
}

.user-btn img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.user-name {
    font-weight: 500;
    font-size: 14px;
}

.user-btn i {
    font-size: 12px;
    color: var(--text-muted);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    color: var(--text-primary);
    background: rgba(124, 58, 237, 0.1);
}

.dropdown-menu a.logout {
    color: var(--danger);
}

.dropdown-menu hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 10px 0;
}

/* Dashboard Content */
.dashboard-content {
    padding: 30px;
}

/* Welcome Section */
.welcome-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.welcome-text h1 {
    font-family: var(--font-display);
    font-size: 28px;
    margin-bottom: 8px;
}

.welcome-text p {
    color: var(--text-secondary);
    font-size: 15px;
}

.welcome-actions {
    display: flex;
    gap: 15px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-3px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stat-icon.shards {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.stat-icon.bots {
    background: rgba(124, 58, 237, 0.15);
    color: var(--primary);
}

.stat-icon.spawners {
    background: rgba(139, 92, 246, 0.15);
    color: var(--secondary);
}

.stat-icon.uptime {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent);
}

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

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-change {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--danger);
}

.stat-change.warning {
    color: #8e4aeb;
}

.stat-change.neutral {
    color: var(--text-muted);
}

/* Main Grid */
.main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* Dashboard Cards */
.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h2 i {
    color: var(--primary);
}

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

.action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.action-btn:hover {
    color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
}

.action-btn.stop:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.action-btn.start:hover {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.action-btn.delete:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.filter-select {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
}

.card-content {
    padding: 20px 25px;
}

/* Accounts List */
.accounts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.account-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
}

.account-item:hover {
    border-color: var(--border-glow);
}

.account-item.main-account {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.05);
}

.account-item.offline {
    opacity: 0.6;
}

.account-avatar {
    position: relative;
}

.account-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.account-type {
    position: absolute;
    bottom: -5px;
    right: -5px;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
}

.account-type.fa {
    background: var(--secondary);
    color: white;
}

.account-type.nfa {
    background: var(--primary);
    color: white;
}

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

.account-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.account-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.account-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    min-width: 80px;
}

.shard-count {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
}

.shard-count i {
    color: var(--success);
}

.shard-count.muted {
    color: var(--text-muted);
}

.shard-count.muted i {
    color: var(--text-muted);
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-card);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.progress-fill.full {
    background: var(--success);
}

.account-actions {
    display: flex;
    gap: 5px;
}

.view-all-btn {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 350px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.activity-item.success .activity-icon {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.activity-item.info .activity-icon {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent);
}

.activity-item.warning .activity-icon {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.activity-item.error .activity-icon {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.activity-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.activity-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.activity-text strong {
    color: var(--text-primary);
}

.activity-time {
    font-size: 11px;
    color: var(--text-muted);
}

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 15px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.quick-action:hover {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.05);
}

.quick-action i {
    font-size: 24px;
    color: var(--primary);
}

.quick-action span {
    font-size: 12px;
    font-weight: 500;
}

/* Chat Card */
.chat-card .card-content {
    padding: 0;
}

.chat-messages {
    height: 250px;
    overflow-y: auto;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-message {
    display: flex;
    gap: 10px;
    font-size: 13px;
}

.chat-time {
    color: var(--text-muted);
    font-size: 11px;
    min-width: 40px;
}

.chat-text {
    color: var(--text-secondary);
}

.chat-message.system .chat-text {
    color: var(--accent);
}

.chat-input {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
}

.chat-input input {
    flex: 1;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 15px;
    color: var(--text-primary);
    font-size: 14px;
}

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

.send-btn {
    background: var(--primary);
    border: none;
    border-radius: 10px;
    color: white;
    padding: 12px 15px;
    cursor: pointer;
    transition: var(--transition);
}

.send-btn:hover {
    background: var(--primary-dark);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 30px;
}

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

.modal-body .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.modal-body .form-group input {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
}

.modal-body .form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Account Type Selector */
.account-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.type-option input {
    display: none;
}

.type-card {
    padding: 20px;
    background: var(--bg-darker);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.type-option:hover .type-card {
    border-color: rgba(124, 58, 237, 0.5);
}

.type-option input:checked + .type-card {
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

.type-card i {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.type-card span {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.type-card small {
    color: var(--text-muted);
    font-size: 12px;
}

.form-check {
    margin-top: 20px;
}

.modal-footer {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
}

/* Modal Large */
.modal-lg {
    width: 600px;
    max-width: 95vw;
}

/* Payment Modal Styles */
.payment-plan-summary {
    background: var(--bg-darker);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

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

.plan-summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--primary-gradient);
    color: white;
}

.plan-summary-icon.starter { background: linear-gradient(135deg, #00d9ff, #00a3ff); }
.plan-summary-icon.balanced { background: linear-gradient(135deg, #10b981, #059669); }
.plan-summary-icon.pro { background: linear-gradient(135deg, #c4b5fd, #7c3aed); }
.plan-summary-icon.enterprise { background: linear-gradient(135deg, #a855f7, #6366f1); }

.plan-summary-info {
    flex: 1;
}

.plan-summary-info h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.plan-summary-info p {
    color: var(--text-muted);
    font-size: 14px;
}

.plan-summary-price {
    text-align: right;
}

.plan-summary-price .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.plan-summary-price .period {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
}

/* Payment Methods */
.payment-methods {
    margin-bottom: 25px;
}

.payment-methods h4,
.billing-cycle h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.payment-method-card {
    background: var(--bg-darker);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    text-align: center;
}

.payment-method-card:hover:not(.disabled) {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.payment-method-card.selected {
    border-color: var(--primary-color);
    background: rgba(0, 217, 255, 0.1);
}

.payment-method-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.payment-method-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.payment-method-icon.stripe { color: #635bff; }
.payment-method-icon.paypal { color: #00457c; }
.payment-method-icon.crypto { color: var(--accent); }

/* PayPal Button Container */
#paypal-button-container {
    width: 100%;
    min-height: 45px;
}

/* PayPal Friends & Family Styles */
#paypal-ff-instructions {
    width: 100%;
}

.paypal-ff-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.paypal-ff-loading i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.paypal-ff-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.paypal-ff-header i {
    font-size: 40px;
    color: #00457c;
    margin-bottom: 10px;
}

.paypal-ff-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-light);
}

.paypal-ff-amount {
    background: linear-gradient(135deg, #00457c, #0070ba);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.paypal-ff-amount .label {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 5px;
}

.paypal-ff-amount .value {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.paypal-ff-email {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-family: monospace;
    font-size: 14px;
}

.paypal-ff-email .copy-btn {
    background: var(--primary-color);
    border: none;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.paypal-ff-email .copy-btn:hover {
    background: var(--primary-hover);
}

.paypal-ff-ref {
    background: var(--bg-darker);
    border: 2px dashed var(--primary-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.paypal-ff-ref .label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.paypal-ff-ref .code {
    font-size: 24px;
    font-weight: 700;
    font-family: monospace;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.paypal-ff-ref .warning {
    font-size: 11px;
    color: #8b5cf6;
    font-weight: 600;
}

.paypal-ff-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.paypal-ff-steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-light);
}

.paypal-ff-steps li:last-child {
    border-bottom: none;
}

.paypal-ff-steps .step-num {
    background: var(--primary-color);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.paypal-ff-status {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.paypal-ff-status.checking {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    animation: pulse 2s infinite;
}

.paypal-ff-status i {
    margin-right: 8px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.paypal-ff-footer {
    display: flex;
    gap: 12px;
}

.paypal-ff-footer .btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.paypal-ff-footer .btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.paypal-ff-footer .btn-outline:hover {
    border-color: var(--text-light);
    color: var(--text-light);
}

.paypal-ff-footer .btn-primary {
    background: #00457c;
    border: none;
    color: #fff;
}

.paypal-ff-footer .btn-primary:hover {
    background: #003366;
}

#stripe-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
}

#stripe-buttons .btn-primary {
    flex: 1;
}

.payment-method-info h5 {
    font-size: 14px;
    margin-bottom: 4px;
}

.payment-method-info p {
    font-size: 12px;
    color: var(--text-muted);
}

.payment-method-check {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.2s;
}

.payment-method-card.selected .payment-method-check {
    opacity: 1;
}

.payment-method-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--text-muted);
    color: var(--bg-dark);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* Billing Cycle */
.billing-cycle {
    margin-bottom: 25px;
}

.billing-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.billing-option {
    background: var(--bg-darker);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.billing-option.selected {
    border-color: var(--primary-color);
    background: rgba(0, 217, 255, 0.1);
}

.billing-option input {
    display: none;
}

.billing-option-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.billing-label {
    font-weight: 500;
}

.save-badge {
    background: var(--success-color);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}

.billing-price {
    font-weight: 600;
    color: var(--primary-color);
}

/* Order Summary */
.order-summary {
    background: var(--bg-darker);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.order-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.order-row.discount {
    color: var(--success-color);
}

.order-row.total {
    font-size: 18px;
    font-weight: 700;
    padding-top: 15px;
    margin-top: 5px;
    border-top: 2px solid var(--border-color);
}

.order-row.total span:last-child {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 600px) {
    .payment-method-grid {
        grid-template-columns: 1fr;
    }
    
    .billing-options {
        grid-template-columns: 1fr;
    }
    
    .plan-summary-header {
        flex-wrap: wrap;
    }
    
    .plan-summary-price {
        width: 100%;
        text-align: left;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--border-color);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .welcome-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .topbar-left .search-box {
        display: none;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .account-item {
        flex-wrap: wrap;
    }
    
    .account-stats {
        width: 100%;
        align-items: flex-start;
        margin-top: 10px;
    }
}

/* Notification Toast */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-color: var(--success);
}

.notification.success i {
    color: var(--success);
}

.notification.error {
    border-color: var(--danger);
}

.notification.error i {
    color: var(--danger);
}

.notification i {
    font-size: 20px;
}

.notification span {
    font-size: 14px;
    color: var(--text-primary);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state.small {
    padding: 30px 15px;
}

.empty-state .empty-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state .empty-icon i {
    font-size: 24px;
    color: var(--primary);
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.empty-state .plan-info {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state .plan-info strong {
    color: var(--primary);
}

.empty-state .btn {
    margin-top: 10px;
}

.empty-state.small i {
    font-size: 32px;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: block;
}

.empty-state.small p {
    font-size: 13px;
    margin-bottom: 0;
}

/* ================================
   Settings Section Styles
   ================================ */

.settings-section {
    padding: 30px;
    max-width: 1200px;
}

.settings-header {
    margin-bottom: 30px;
}

.settings-header h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.settings-header h2 i {
    margin-right: 12px;
    color: var(--primary);
}

.settings-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 25px;
}

.settings-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.settings-card-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(124, 58, 237, 0.03);
}

.settings-card-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-card-header h3 i {
    color: var(--primary);
}

.settings-card-body {
    padding: 25px;
}

.settings-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

/* OAuth Password Alert */
.oauth-password-alert {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(88, 101, 242, 0.05));
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.oauth-password-alert.google {
    background: linear-gradient(135deg, rgba(234, 67, 53, 0.1), rgba(234, 67, 53, 0.05));
    border-color: rgba(234, 67, 53, 0.3);
}

.oauth-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.oauth-info i {
    font-size: 20px;
    color: #5865F2;
}

.oauth-password-alert.google .oauth-info i {
    color: #EA4335;
}

.oauth-password-alert .form-hint {
    margin: 0;
    color: var(--text-secondary);
}

/* Webhook Events Grid */
.webhook-events {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.webhook-events .section-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.webhook-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
}

.webhook-events-grid .checkbox-container {
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.webhook-events-grid .checkbox-container:hover {
    border-color: var(--primary);
}

/* Webhook Events List - New Design */
.webhook-events-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.webhook-event-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.webhook-event-row:hover {
    border-color: var(--primary);
    background: var(--bg-tertiary);
}

.webhook-event-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.webhook-event-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.webhook-event-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.webhook-event-text strong {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.webhook-event-text span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.webhook-event-controls {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-muted);
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary);
    border-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
    background-color: white;
}

/* Small Checkbox for @everyone */
.checkbox-small {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0.4rem 0.6rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.checkbox-small:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.checkbox-small input {
    width: 14px;
    height: 14px;
    accent-color: var(--primary);
}

.checkbox-small input:checked + span {
    color: var(--primary);
}

@media (max-width: 600px) {
    .webhook-event-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .webhook-event-controls {
        width: 100%;
        justify-content: space-between;
    }
}

/* Avatar Section */
.avatar-section {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.avatar-preview {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    position: relative;
    cursor: pointer;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.avatar-preview:hover .avatar-overlay {
    opacity: 1;
}

.avatar-overlay i {
    font-size: 24px;
    color: white;
}

.avatar-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
}

.avatar-hint {
    font-size: 12px;
    color: var(--text-muted);
}

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

.settings-card .form-group:last-child {
    margin-bottom: 0;
}

.settings-card label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.settings-card input[type="text"],
.settings-card input[type="email"],
.settings-card input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
}

.settings-card input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.settings-card input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-hint.error {
    color: var(--danger);
}

.form-hint.success {
    color: var(--success);
}

.input-with-button {
    display: flex;
    gap: 10px;
}

.input-with-button input {
    flex: 1;
}

.input-with-button .btn {
    white-space: nowrap;
}

/* Connected Accounts */
.connected-account {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-darker);
    border-radius: 12px;
    margin-bottom: 15px;
}

.connected-account:last-child {
    margin-bottom: 0;
}

.account-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.account-icon.discord {
    background: rgba(88, 101, 242, 0.15);
    color: #5865F2;
}

.account-icon.google {
    background: rgba(234, 67, 53, 0.15);
    color: #EA4335;
}

.connected-account .account-info {
    flex: 1;
}

.connected-account .account-name {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.connected-account .account-status {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.connected-account .account-status.connected {
    color: var(--success);
}

/* OAuth Buttons */
.btn-discord {
    background: #5865F2;
    color: white;
    border: none;
}

.btn-discord:hover {
    background: #4752C4;
}

.btn-google {
    background: #EA4335;
    color: white;
    border: none;
}

.btn-google:hover {
    background: #CC3327;
}

.btn-unlink {
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
}

.btn-unlink:hover {
    background: var(--danger);
    color: white;
}

/* Small button variant */
.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-danger {
    background: var(--danger);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Plan Info Box */
.plan-info-box {
    background: var(--bg-darker);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.plan-badge.free {
    background: rgba(156, 163, 175, 0.15);
    color: var(--text-secondary);
}

.plan-badge.starter {
    background: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
}

.plan-badge.pro {
    background: rgba(168, 85, 247, 0.15);
    color: #A855F7;
}

.plan-badge.enterprise {
    background: rgba(124, 58, 237, 0.15);
    color: var(--primary);
}

.plan-limits p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.plan-limits p strong {
    color: var(--text-primary);
}

/* Gradient button */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    width: 100%;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(124, 58, 237, 0.3);
}

/* Settings responsive */
@media (max-width: 768px) {
    .settings-section {
        padding: 20px;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .input-with-button {
        flex-direction: column;
    }
    
    .avatar-actions {
        flex-direction: column;
    }
}

/* ================================
   Mobile Sidebar Styles
   ================================ */
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        width: 260px;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    /* Overlay when sidebar is open */
    .sidebar.open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 260px;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
}

@media (min-width: 901px) {
    .sidebar.collapsed .sidebar-nav span,
    .sidebar.collapsed .sidebar-nav .badge,
    .sidebar.collapsed .sidebar-footer .user-plan span,
    .sidebar.collapsed .sidebar-footer .upgrade-btn span {
        display: none;
    }
    
    .sidebar.collapsed .sidebar-nav a {
        justify-content: center;
        padding: 12px;
    }
    
    .sidebar.collapsed .sidebar-footer .upgrade-btn {
        padding: 12px;
    }
}

/* ================================
   Notification Dropdown Styles
   ================================ */
.notification-dropdown {
    position: relative;
}

.notification-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 350px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    max-height: 400px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notification-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.notification-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.clear-all-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: var(--transition);
}

.clear-all-btn:hover {
    background: rgba(124, 58, 237, 0.1);
}

.notification-list {
    flex: 1;
    overflow-y: auto;
    max-height: 300px;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.notification-item:hover {
    background: rgba(124, 58, 237, 0.05);
}

.notification-item.unread {
    background: rgba(124, 58, 237, 0.08);
}

.notification-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-item-icon.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.notification-item-icon.error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.notification-item-icon.info {
    background: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
}

.notification-item-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.notification-item-content {
    flex: 1;
    min-width: 0;
}

.notification-item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.notification-item-text {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-item-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 5px;
}

.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.notification-empty i {
    font-size: 40px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.notification-empty p {
    font-size: 14px;
}

/* ================================
   Statistics Section Styles
   ================================ */
.stats-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-overview-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.stat-overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.stat-overview-card.shards::before {
    background: linear-gradient(90deg, #8B5CF6, #A855F7);
}

.stat-overview-card.uptime::before {
    background: linear-gradient(90deg, #3B82F6, #60A5FA);
}

.stat-overview-card.spawners::before {
    background: linear-gradient(90deg, #EF4444, #F87171);
}

.stat-overview-card.bots::before {
    background: linear-gradient(90deg, #10B981, #34D399);
}

.stat-overview-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 15px;
}

.stat-overview-card.shards .stat-overview-icon {
    background: rgba(139, 92, 246, 0.15);
    color: #8B5CF6;
}

.stat-overview-card.uptime .stat-overview-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
}

.stat-overview-card.spawners .stat-overview-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

.stat-overview-card.bots .stat-overview-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.stat-overview-info {
    margin-bottom: 15px;
}

.stat-overview-value {
    display: block;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.stat-overview-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.stat-overview-trend {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 8px;
}

.stat-overview-trend.up {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-overview-trend.down {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.stat-overview-trend.neutral {
    background: rgba(156, 163, 175, 0.1);
    color: var(--text-secondary);
}

.stats-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.stats-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.detail-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-header h3 i {
    color: var(--primary);
}

.activity-stats {
    padding: 20px;
}

.activity-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.activity-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.activity-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.top-performers {
    padding: 20px;
}

.performer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-darker);
    border-radius: 10px;
    margin-bottom: 10px;
}

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

.performer-rank {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.performer-rank.gold {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.performer-rank.silver {
    background: linear-gradient(135deg, #9CA3AF, #6B7280);
    color: white;
}

.performer-rank.bronze {
    background: linear-gradient(135deg, #B45309, #92400E);
    color: white;
}

.performer-info {
    flex: 1;
}

.performer-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.performer-stats {
    font-size: 12px;
    color: var(--text-muted);
}

.performer-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: var(--text-muted);
    text-align: center;
}

.performer-empty i {
    font-size: 36px;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* ================================
   Upgrade Section Styles
   ================================ */
.upgrade-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    margin-bottom: 40px;
}

.upgrade-hero-content h1 {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.upgrade-hero-content h1 i {
    color: var(--primary);
    margin-right: 15px;
}

.upgrade-hero-content p {
    font-size: 16px;
    color: var(--text-secondary);
}

.current-plan-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 30px;
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.current-plan-badge span {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.current-plan-badge strong {
    font-size: 20px;
    color: var(--primary);
    font-weight: 600;
}

.plans-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.plan-card-new {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.plan-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.plan-card-new.featured {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.2);
}

.plan-ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, var(--primary), #A78BFA);
    color: white;
    padding: 8px 50px;
    font-size: 12px;
    font-weight: 600;
    transform: rotate(45deg);
    z-index: 10;
}

.plan-card-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.plan-card-header.free {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.1), rgba(107, 114, 128, 0.05));
}

.plan-card-header.starter {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.05));
}

.plan-card-header.balanced,
.plan-card-header.basic {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.05));
}

.plan-card-header.pro {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(139, 92, 246, 0.05));
}

.plan-card-header.enterprise {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(124, 58, 237, 0.05));
}

.plan-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 15px;
}

.plan-card-header.free .plan-icon {
    background: rgba(156, 163, 175, 0.2);
    color: #9CA3AF;
}

.plan-card-header.starter .plan-icon {
    background: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
}

.plan-card-header.balanced .plan-icon,
.plan-card-header.basic .plan-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.plan-card-header.pro .plan-icon {
    background: rgba(168, 85, 247, 0.2);
    color: #A855F7;
}

.plan-card-header.enterprise .plan-icon {
    background: rgba(124, 58, 237, 0.2);
    color: var(--primary);
}

.plan-card-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.price-amount {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
}

.price-period {
    font-size: 14px;
    color: var(--text-muted);
}

.plan-card-body {
    padding: 30px;
}

.plan-features-list {
    list-style: none;
}

.plan-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-primary);
}

.plan-features-list li i {
    font-size: 16px;
}

.plan-features-list li i.fa-check-circle {
    color: var(--success);
}

.plan-features-list li i.fa-times-circle {
    color: var(--text-muted);
}

.plan-features-list li i.fa-plus-circle {
    color: var(--info);
}

.plan-features-list li.disabled {
    color: var(--text-muted);
}

.plan-features-list .coming-soon {
    display: inline-block;
    font-size: 10px;
    background: rgba(124, 58, 237, 0.2);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-ads-note {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 5px;
    font-style: italic;
}

.plan-features-list li strong {
    color: var(--primary);
}

.plan-card-footer {
    padding: 20px 30px 30px;
}

.btn-glow {
    background: linear-gradient(135deg, var(--primary), #A78BFA);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { left: 100%; }
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #7C3AED);
    color: white;
    border: none;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.upgrade-faq {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
}

.upgrade-faq h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 30px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.faq-item {
    padding: 20px;
    background: var(--bg-darker);
    border-radius: 12px;
}

.faq-item h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item h4 i {
    color: var(--primary);
}

.faq-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Upgrade responsive */
@media (max-width: 768px) {
    .upgrade-hero {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 20px;
    }
    
    .upgrade-hero-content h1 {
        font-size: 24px;
    }
    
    .plans-container {
        grid-template-columns: 1fr;
    }
}

/* Current plan highlight */
.plan-card-new.current-plan {
    border-color: var(--success);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.plan-card-new.current-plan::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--success);
}

/* Section Header Styles */
.section-header {
    margin-bottom: 30px;
}

.section-header h1 {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-header h1 i {
    color: var(--primary);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

.section-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

/* Account cards for full list */
.accounts-full-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.account-card-full {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
}

.account-card-full:hover {
    border-color: var(--primary);
}

/* Needs Re-Authentication State */
.account-card-full.needs-reauth {
    border-color: var(--warning);
    background: rgba(139, 92, 246, 0.08);
}

.account-card-full.needs-reauth:hover {
    border-color: var(--warning);
}

.status-indicator.warning {
    background: var(--warning);
    animation: pulse-warning 1.5s infinite;
}

@keyframes pulse-warning {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}


.reauth-badge {
    display: inline-block;
    font-size: 11px;
    padding: 3px 8px;
    background: rgba(139, 92, 246, 0.2);
    color: var(--warning);
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 500;
}

.reauth-badge i {
    margin-right: 4px;
}

.btn-warning {
    background: var(--warning);
    color: #000;
    border: none;
}

.btn-warning:hover {
    background: #7c3aed;
    color: #000;
}

.btn-purple {
    background: #9b59b6;
    color: #fff;
    border: none;
}

.btn-purple:hover {
    background: #8e44ad;
    color: #fff;
}

.account-avatar {
    position: relative;
}

.account-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
}

.account-avatar .status-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}

.status-indicator.online {
    background: var(--success);
}

.status-indicator.offline {
    background: var(--text-muted);
}

.account-details {
    flex: 1;
}

.account-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.account-type {
    display: inline-block;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}

.account-type.fa {
    background: rgba(124, 58, 237, 0.15);
    color: var(--primary);
}

.account-type.nfa {
    background: rgba(139, 92, 246, 0.15);
    color: var(--secondary);
}

.account-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-secondary);
}

.account-stats i {
    margin-right: 5px;
    color: var(--text-muted);
}

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

/* Bot cards */
.bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.bot-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.bot-header {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.bot-header img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.bot-header h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.bot-status {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bot-status.online {
    color: var(--success);
}

.bot-status i {
    font-size: 8px;
}

.bot-stats {
    margin-bottom: 15px;
}

.bot-stats p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.bot-stats i {
    margin-right: 8px;
    color: var(--text-muted);
    width: 16px;
}

.bot-actions {
    margin-top: auto;
}

/* Checker and Proxy sections */
.checker-box,
.proxy-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
}

.checker-box textarea,
.proxy-box textarea {
    width: 100%;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    color: var(--text-primary);
    font-family: monospace;
    font-size: 13px;
    resize: vertical;
    min-height: 200px;
}

.checker-box textarea:focus,
.proxy-box textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.proxy-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.checker-results {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
}

.checker-results h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.proxy-stats {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    color: var(--text-secondary);
}

/* Empty state */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.empty-icon i {
    font-size: 32px;
    color: var(--primary);
}

.empty-state h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 300px;
}

/* Button block */
.btn-block {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Plan card footer button fix for mobile */
.plan-card-footer .btn {
    white-space: nowrap;
    padding: 12px 16px;
    font-size: 14px;
}

@media (max-width: 500px) {
    .plan-card-footer .btn {
        padding: 10px 12px;
        font-size: 13px;
    }
    .plan-card-footer .btn i {
        display: none;
    }
}

/* Account Types Section */
.account-types-section {
    margin-top: 40px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.account-types-section h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-types-section h3 i {
    color: var(--primary);
}

.account-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.account-type-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.account-type-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.account-type-card.nfa {
    border-left: 3px solid #60a5fa;
}

.account-type-card.mfa {
    border-left: 3px solid var(--primary);
}

.account-type-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.account-type-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.account-type-card.nfa .account-type-icon {
    background: rgba(96, 165, 250, 0.15);
    color: #60a5fa;
}

.account-type-card.mfa .account-type-icon {
    background: rgba(124, 58, 237, 0.15);
    color: var(--primary);
}

.account-type-header h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin: 0;
}

.account-type-card > p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.account-type-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-type-card ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.account-type-card ul li i.fa-check {
    color: var(--success);
}

.account-type-card ul li i.fa-times {
    color: var(--danger);
}

.btn-success {
    background: var(--success);
    color: white;
    border: none;
}

.btn-success:hover {
    background: #059669;
}

/* Masked text for privacy */
.masked-text {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.masked-text:hover {
    color: var(--primary);
}

.masked-text .reveal-icon {
    font-size: 12px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.masked-text:hover .reveal-icon {
    opacity: 1;
}

.masked-text .masked {
    font-family: monospace;
    letter-spacing: 1px;
}

.masked-text .revealed {
    color: var(--primary);
}

/* Loading spinner for buttons */
.action-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.action-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ================================
   Combo Checker Styles
   ================================ */
.checker-box {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.checker-box textarea {
    width: 100%;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    color: var(--text-primary);
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    resize: vertical;
    min-height: 200px;
}

.checker-box textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.checker-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

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

.checker-controls label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 14px;
}

.checker-controls input[type="number"] {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 15px;
    color: var(--text-primary);
    width: 150px;
}

.checker-progress {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.checker-progress h3 {
    margin: 0 0 20px 0;
    color: var(--text-primary);
}

.progress-bar-container {
    background: var(--bg-darker);
    border-radius: 8px;
    height: 24px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 8px;
    transition: width 0.3s ease;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
}

.progress-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.progress-details .stat {
    background: var(--bg-darker);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.progress-details .stat.working {
    color: #4ade80;
}

.progress-details .stat.failed {
    color: #f87171;
}

.progress-details .stat.banned {
    color: #a78bfa;
}

.progress-details .stat.online {
    color: #60a5fa;
}

.progress-details .stat span {
    font-size: 24px;
    font-weight: 700;
    display: block;
    margin-top: 5px;
}

.checker-results {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--border-color);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.results-files {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-file {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-darker);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.result-file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-file-info i {
    color: var(--primary);
    font-size: 18px;
}

.result-file-name {
    color: var(--text-primary);
    font-weight: 500;
}

.result-file-date {
    color: var(--text-secondary);
    font-size: 12px;
}

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

.owner-required-msg .alert {
    background: rgba(251, 146, 60, 0.1);
    border: 1px solid rgba(251, 146, 60, 0.3);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #a78bfa;
}

.owner-required-msg .alert i {
    font-size: 24px;
}

/* ================================
   Add Account Mode Tabs
   ================================ */
.add-mode-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.mode-tab {
    flex: 1;
    padding: 12px 20px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.mode-tab:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.mode-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.bulk-mode-fields textarea {
    width: 100%;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    color: var(--text-primary);
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    resize: vertical;
    min-height: 150px;
}

.bulk-mode-fields textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.bulk-mode-fields .form-select {
    width: 100%;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--text-primary);
    font-size: 14px;
}

.bulk-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 8px;
    color: #a78bfa;
    font-size: 13px;
    margin-top: 10px;
}

/* ================================
   Live Chat Styles
   ================================ */
.chat-filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.chat-filter-toggle input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.chat-input {
    display: flex;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-darker);
    flex-shrink: 0;
}

.chat-account-select {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 13px;
    min-width: 120px;
    max-width: 140px;
    flex-shrink: 0;
}

.chat-input input {
    flex: 1;
    min-width: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 15px;
    color: var(--text-primary);
    font-size: 14px;
}

.chat-input .send-btn {
    flex-shrink: 0;
    padding: 10px 15px;
}

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

.chat-message.filtered {
    display: none;
}

.chat-message.own-account {
    background: rgba(124, 58, 237, 0.1);
    border-left: 3px solid var(--primary);
}

.chat-message.shards {
    background: rgba(74, 222, 128, 0.1);
    border-left: 3px solid #4ade80;
}

.chat-message.player {
    opacity: 0.7;
}

.chat-message.player .chat-text {
    color: #9ca3af;
}

/* Device Code Modal */
.device-code-body {
    text-align: center;
    padding: 1rem;
}

.device-code-instructions {
    text-align: left;
    margin-bottom: 1.5rem;
    background: rgba(124, 58, 237, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.device-code-instructions p {
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 500;
}

.device-code-instructions ol {
    margin: 0;
    padding-left: 1.25rem;
    color: #ccc;
}

.device-code-instructions li {
    margin-bottom: 0.25rem;
}

.device-code-instructions a {
    color: var(--primary);
    text-decoration: underline;
}

.device-code-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.device-code-display .code {
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 0.25rem;
    color: var(--primary);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: 2px dashed var(--primary);
}

.device-code-display .copy-btn {
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.device-code-display .copy-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.device-code-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #888;
    margin: 1rem 0;
}

.device-code-status.success {
    color: #4ade80;
}

.device-code-status.error {
    color: #ef4444;
}

.device-code-timer {
    color: #666;
    font-size: 0.875rem;
}

.modal-sm {
    max-width: 400px;
}

/* Device Code Option in Add Account Form */
.device-code-option {
    margin-top: 1rem;
    text-align: center;
}

.device-code-option .option-or {
    color: #666;
    margin: 0.75rem 0;
    position: relative;
}

.device-code-option .option-or::before,
.device-code-option .option-or::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #444;
}

.device-code-option .option-or::before {
    left: 0;
}

.device-code-option .option-or::after {
    right: 0;
}

.btn-device-code {
    width: 100%;
    margin-bottom: 0.5rem;
}

.device-code-hint {
    color: #888;
    font-size: 0.75rem;
}

/* Free User Proxy Fields */
.free-proxy-section {
    margin-top: 20px;
    padding: 20px;
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
}

.proxy-info-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    margin-bottom: 20px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 8px;
    color: var(--primary);
    font-size: 14px;
}

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

.proxy-note-box {
    margin-top: 15px;
}

.proxy-note-box .proxy-info-banner {
    margin-bottom: 0;
}

.free-proxy-section .form-group {
    margin-bottom: 16px;
}

.free-proxy-section .form-group:last-child {
    margin-bottom: 0;
}

.free-proxy-section .form-group label .required {
    color: #ff4757;
    font-weight: bold;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Crypto Payment Modal */
.crypto-options {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.crypto-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 30px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.crypto-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.crypto-option span {
    font-weight: 500;
    color: var(--text-primary);
}

.crypto-payment-info {
    text-align: center;
}

.crypto-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.crypto-amount-box,
.crypto-address-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.crypto-amount-box label,
.crypto-address-box label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.crypto-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.crypto-usd {
    display: block;
    color: var(--text-muted);
    margin-top: 5px;
}

.crypto-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.crypto-address code {
    font-size: 12px;
    word-break: break-all;
    background: var(--bg-card);
    padding: 8px 12px;
    border-radius: 6px;
    max-width: 280px;
}

.copy-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    opacity: 0.8;
}

.qr-code {
    margin-top: 15px;
}

.qr-code img {
    max-width: 150px;
    border-radius: 8px;
}

.crypto-warning {
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--primary);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.crypto-status {
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted);
}

.crypto-status.confirming {
    color: var(--primary);
    background: rgba(139, 92, 246, 0.12);
}

.crypto-status.completed {
    color: var(--success);
    background: rgba(0, 200, 83, 0.1);
}

.crypto-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Plan Expiry Info */
.plan-expiry {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 12px;
    margin: 15px 0;
}

.plan-expiry p {
    margin: 5px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.plan-expiry i {
    margin-right: 8px;
    color: var(--primary);
}

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

.plan-buttons .btn {
    flex: 1;
    min-width: 120px;
}
/* ===================== */
/* PROXY MANAGER STYLES */
/* ===================== */

.proxy-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.proxy-stats-grid .stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.proxy-stats-grid .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(124, 58, 237, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.proxy-stats-grid .stat-icon i {
    font-size: 20px;
    color: var(--primary);
}

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

.proxy-stats-grid .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.proxy-stats-grid .stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.proxy-info-banner {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.proxy-info-banner .info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.proxy-info-banner .info-icon i {
    color: #3b82f6;
    font-size: 18px;
}

.proxy-info-banner .info-content strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.proxy-info-banner .info-content p {
    margin: 4px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Generate Proxy Box */
.proxy-generate-box {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(var(--primary-rgb), 0.1) 100%);
    border: 1px solid var(--primary);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.proxy-generate-box .generate-info h3 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.proxy-generate-box .generate-info h3 i {
    margin-right: 10px;
    color: var(--primary);
}

.proxy-generate-box .generate-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.proxy-generate-box .generate-info p strong {
    color: var(--primary);
}

.proxy-generate-box .btn-lg {
    padding: 15px 30px;
    font-size: 1rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .proxy-generate-box {
        flex-direction: column;
        text-align: center;
    }
    
    .proxy-generate-box .btn-lg {
        width: 100%;
    }
}

.proxy-add-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
}

.proxy-add-box h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.proxy-add-box h3 i {
    margin-right: 10px;
    color: var(--primary);
}

.proxy-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.proxy-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.proxy-form .form-group input {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

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

.proxy-provided-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(52, 211, 153, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
}

.proxy-provided-box h3 {
    color: #10b981;
    margin-bottom: 10px;
}

.proxy-provided-box h3 i {
    margin-right: 10px;
}

.proxy-provided-box > p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.provided-account-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 10px;
}

.provided-account-item .account-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.provided-account-item .account-email {
    color: var(--text-primary);
    font-weight: 500;
}

.provided-account-item .account-type {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.provided-account-item .account-type.nfa {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.provided-account-item .account-type.mcfa {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.proxy-list-container,
.unassigned-accounts-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
}

.proxy-list-container h3,
.unassigned-accounts-container h3 {
    margin-bottom: 5px;
    color: var(--text-primary);
}

.proxy-list-container h3 i,
.unassigned-accounts-container h3 i {
    margin-right: 10px;
    color: var(--primary);
}

.unassigned-accounts-container .help-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.proxy-list .empty-state,
.unassigned-list .empty-state {
    padding: 30px;
    text-align: center;
    color: var(--text-muted);
}

.proxy-item {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.proxy-item.active {
    border-color: rgba(16, 185, 129, 0.4);
}

.proxy-item.error {
    border-color: rgba(239, 68, 68, 0.4);
}

.proxy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.proxy-address {
    display: flex;
    align-items: center;
    gap: 10px;
}

.proxy-address i {
    color: var(--primary);
}

.proxy-address span {
    font-family: monospace;
    color: var(--text-primary);
}

.proxy-type-badge {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.proxy-type-badge.user {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.proxy-type-badge.provided {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.proxy-slots {
    display: flex;
    gap: 10px;
}

.slot-badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.slot-badge.nfa {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.slot-badge.mcfa {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.proxy-accounts {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.proxy-accounts .accounts-label {
    font-size: 12px;
    color: var(--text-muted);
}

.assigned-account {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--bg-card);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.btn-unassign {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    line-height: 1;
}

.btn-unassign:hover {
    color: #ef4444;
}

.unassigned-account-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 10px;
}

.unassigned-account-item .account-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.unassigned-account-item .account-info i {
    color: var(--text-muted);
}

.unassigned-account-item .account-email {
    color: var(--text-primary);
}

.unassigned-account-item .account-type {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.unassigned-account-item .account-type.nfa {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.unassigned-account-item .account-type.mcfa {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.proxy-select {
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    min-width: 200px;
}

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

@media (max-width: 768px) {
    .proxy-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .proxy-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .unassigned-account-item {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .proxy-select {
        width: 100%;
    }
}

/* Proxy Assignment Container */
.proxy-assignment-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    margin-top: 25px;
}

.proxy-assignment-container h3 {
    margin-bottom: 5px;
    color: var(--text-primary);
}

.proxy-assignment-container h3 i {
    margin-right: 10px;
    color: var(--primary);
}

.proxy-assignment-container .help-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.account-proxy-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: border-color 0.2s ease;
}

.account-proxy-item.assigned {
    border-left: 3px solid #10b981;
}

.account-proxy-item.unassigned {
    border-left: 3px solid #ef4444;
}

.account-proxy-item .account-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-proxy-item .account-info img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.account-proxy-item .account-info .account-name {
    font-weight: 500;
    color: var(--text-primary);
}

.account-proxy-item .account-info .account-type {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 8px;
}

.account-proxy-item .account-type.nfa {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.account-proxy-item .account-type.mcfa {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.proxy-assignment {
    display: flex;
    align-items: center;
    gap: 10px;
}

.proxy-status {
    font-size: 16px;
}

.proxy-status.assigned {
    color: #10b981;
}

.proxy-status.unassigned {
    color: #ef4444;
}

/* Proxy info banner update */
.proxy-info-banner ul {
    margin: 10px 0;
    padding-left: 20px;
}

.proxy-info-banner ul li {
    margin-bottom: 5px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .account-proxy-item {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .proxy-assignment {
        justify-content: space-between;
    }
}

/* Credentials List Styles */
.credentials-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.credential-item:hover {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.05);
}

.credential-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.credential-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.credential-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.credential-username {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.credential-email {
    font-size: 13px;
    color: var(--text-secondary);
    word-break: break-all;
}

.credential-type {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

.credential-type.mcfa {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.credential-type.nfa {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.credentials-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.credentials-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* ================================
   Cloud Macros Section
   ================================ */

.cloud-macros-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.cloud-macros-toolbar .toolbar-left {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.cloud-macros-toolbar .toolbar-right {
    display: flex;
    gap: 10px;
}

.cloud-macros-toolbar .search-box {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 250px;
}

.cloud-macros-toolbar .search-box input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 10px 0;
    width: 100%;
    outline: none;
}

.cloud-macros-toolbar .search-box i {
    color: var(--text-secondary);
}

.featured-macros-section {
    margin-bottom: 40px;
}

.featured-macros-section h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.featured-macros-section h2 i {
    color: #a78bfa;
}

.featured-macros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.cloud-macros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.macro-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.macro-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.macro-card.featured {
    border-color: rgba(251, 191, 36, 0.5);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(251, 191, 36, 0.05) 100%);
}

.macro-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
}

.macro-category {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.macro-category.farming { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.macro-category.afk { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.macro-category.combat { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.macro-category.utility { background: rgba(251, 191, 36, 0.2); color: #a78bfa; }
.macro-category.minigame { background: rgba(236, 72, 153, 0.2); color: #ec4899; }
.macro-category.other { background: rgba(107, 114, 128, 0.2); color: #6b7280; }

.macro-verified, .macro-featured {
    font-size: 14px;
}

.macro-verified {
    color: #3b82f6;
}

.macro-featured {
    color: #a78bfa;
}

.macro-card-body {
    padding: 20px;
}

.macro-name {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.macro-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.macro-author, .macro-server {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.macro-server i {
    color: var(--primary);
}

.macro-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-darker);
}

.macro-stats {
    display: flex;
    gap: 15px;
}

.macro-stats .stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.macro-stats .stat.upvoted {
    color: #10b981;
}

.macro-stats .stat.downvoted {
    color: #ef4444;
}

.macro-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.macro-tags .tag, .tags-list .tag {
    padding: 2px 8px;
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border-radius: 4px;
    font-size: 11px;
}

/* Macro Status Badge (for my macros) */
.macro-status {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.macro-status.pending {
    background: rgba(251, 191, 36, 0.2);
    color: #a78bfa;
}

.macro-status.approved {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.macro-status.rejected {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.moderation-note {
    margin-top: 10px;
    padding: 10px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 6px;
    font-size: 0.85rem;
    color: #a78bfa;
}

/* Macro Details Modal */
.macro-details {
    padding: 10px 0;
}

.macro-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

.macro-author-large {
    display: flex;
    align-items: center;
    gap: 15px;
}

.macro-author-large img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.macro-author-large strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.macro-author-large span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.macro-stats-large {
    display: flex;
    gap: 30px;
}

.macro-stats-large .stat-item {
    text-align: center;
}

.macro-stats-large .stat-item i {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.macro-stats-large .stat-item span {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
}

.macro-stats-large .stat-item label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.macro-info-section {
    margin-bottom: 25px;
}

.macro-info-section h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.info-item label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.category-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.settings-list {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.settings-list span {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-darker);
    border-radius: 6px;
    font-size: 0.9rem;
}

.settings-list span.enabled {
    color: #10b981;
}

.settings-list span.disabled {
    color: #6b7280;
}

.macro-vote-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.vote-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vote-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.vote-btn.upvote.active {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.vote-btn.downvote.active {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

.page-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    color: var(--text-muted);
}

/* Upload Macro Form */
.form-textarea.code {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    background: #1a1a2e;
    border: 1px solid var(--border-color);
}

.checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

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

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.modal-lg .modal-content {
    max-width: 700px;
}

/* Empty/Error/Loading States */
.empty-state, .error-state, .loading-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i, .error-state i, .loading-state i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.error-state i {
    color: #ef4444;
}

.empty-state h3, .error-state h3, .loading-state h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.empty-state p, .error-state p, .loading-state p {
    margin-bottom: 20px;
}

.loading-state i.fa-spinner {
    color: var(--primary);
    opacity: 1;
}

/* ================================
   Account Details Modal
   ================================ */

.modal-xl .modal-content {
    max-width: 900px;
}

.modal-title-with-avatar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-title-with-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.modal-title-with-avatar h2 {
    margin-bottom: 2px;
}

.account-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.account-status-badge.online {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.account-status-badge.offline {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
}

.account-details-body {
    padding: 0 !important;
}

.account-details-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-darker);
    overflow-x: auto;
}

.account-details-tabs .tab-btn {
    padding: 15px 25px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.account-details-tabs .tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.account-details-tabs .tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.account-tab-content {
    display: none;
    padding: 25px;
}

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

/* Stats Tab */
.account-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-box i {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-box .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-box .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.account-info-section {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

.account-info-section h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* Settings Tab */
.form-section {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.form-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.form-section h4 i {
    color: var(--primary);
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

.toggle-group {
    display: flex;
    align-items: center;
}

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

.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.toggle-label input:checked + .toggle-switch {
    background: var(--primary);
    border-color: var(--primary);
}

.toggle-label input:checked + .toggle-switch::after {
    left: 26px;
    background: white;
}

.toggle-label input:disabled + .toggle-switch {
    opacity: 0.5;
    cursor: not-allowed;
}

.toggle-label input {
    display: none;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 10px;
}

/* Inventory Tab */
.inventory-container {
    min-height: 300px;
}

.inventory-grid {
    max-width: 360px;
    margin: 0 auto;
}

.inventory-hotbar, .inventory-main {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 4px;
}

.inventory-hotbar {
    padding: 15px;
    background: var(--bg-darker);
    border: 2px solid var(--primary);
    border-radius: 8px;
    margin-bottom: 10px;
}

.inventory-main {
    padding: 15px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.inventory-slot {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.inventory-slot.filled {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.inventory-slot img {
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
}

.inventory-slot .item-count {
    position: absolute;
    bottom: 0;
    right: 2px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 1px black;
}

/* Chat Tab */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 400px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #0a0a14;
    border: 1px solid var(--border-color);
    border-radius: 8px 8px 0 0;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
}

.chat-message {
    padding: 4px 0;
    line-height: 1.4;
}

.chat-time {
    color: #6b7280;
    margin-right: 8px;
}

.chat-text {
    color: #e2e8f0;
}

.chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
}

.chat-empty i {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.chat-input-area {
    display: flex;
    gap: 10px;
}

.chat-input-area .form-input {
    flex: 1;
    border-radius: 0 0 0 8px;
}

.chat-input-area .btn {
    border-radius: 0 0 8px 0;
    padding: 12px 20px;
}

/* Viewer Tab */
.viewer-container {
    min-height: 400px;
    background: #0a0a14;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viewer-placeholder {
    text-align: center;
    color: var(--text-secondary);
}

.viewer-placeholder i {
    color: var(--primary);
    margin-bottom: 20px;
}

.viewer-placeholder h3 {
    margin-bottom: 10px;
}

.viewer-placeholder small {
    color: var(--text-muted);
}

.viewer-frame-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.viewer-iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 8px;
    background: #000;
}

.viewer-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
}

.viewer-controls .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.viewer-controls .btn-sm:hover {
    background: rgba(139, 92, 246, 0.8);
    border-color: var(--primary);
}

/* Bot Info Snapshot Viewer */
.viewer-snapshot {
    width: 100%;
    padding: 20px;
}

.snapshot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 10px;
}

.snapshot-header h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.snapshot-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.snapshot-meta span {
    background: rgba(139, 92, 246, 0.1);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.snapshot-meta span i {
    color: var(--primary);
}

.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.snapshot-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
}

.snapshot-card.full-width {
    grid-column: span 3;
}

.snapshot-card .card-title {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.snapshot-card .card-title i {
    color: var(--primary);
}

.snapshot-card .card-value {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

/* Health and Food bars */
.health-bar, .food-bar {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    height: 24px;
    overflow: hidden;
}

.health-bar .bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f87171);
    transition: width 0.3s ease;
}

.food-bar .bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    transition: width 0.3s ease;
}

.health-bar span, .food-bar span {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 12px;
    font-weight: 600;
}

/* Player and item lists */
.player-list, .block-list, .inv-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nearby-player {
    background: rgba(59, 130, 246, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #60a5fa;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ground-block, .inv-item {
    background: rgba(139, 92, 246, 0.15);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--primary-light);
}

.no-data {
    color: var(--text-muted);
    font-style: italic;
    font-size: 12px;
}

.snapshot-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.snapshot-controls .btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cooldown-note {
    color: var(--text-muted);
    font-size: 11px;
}

/* Responsive for snapshot grid */
@media (max-width: 768px) {
    .snapshot-grid {
        grid-template-columns: 1fr;
    }
    
    .snapshot-card.full-width {
        grid-column: span 1;
    }
    
    .snapshot-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ================================
   Macros Section (Personal)
   ================================ */

.macros-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.macros-toolbar .toolbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.macros-toolbar .toolbar-right {
    display: flex;
    gap: 10px;
}

.macros-toolbar .search-box {
    min-width: 250px;
}

.macros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.my-macro-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.my-macro-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.15);
}

.my-macro-card.favorite {
    border-color: #a78bfa;
}

.my-macro-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(124, 58, 237, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.my-macro-card-header .macro-category {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
}

.my-macro-card-header .macro-actions {
    display: flex;
    gap: 8px;
}

.my-macro-card-header .btn-icon {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.my-macro-card-header .btn-icon:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.my-macro-card-header .btn-icon.favorite {
    color: #a78bfa;
}

.my-macro-card-header .btn-icon.favorite:hover {
    background: #a78bfa;
    color: #1a1a2e;
}

.my-macro-card-body {
    padding: 15px;
}

.my-macro-card-body h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.my-macro-card-body h3 .favorite-star {
    color: #a78bfa;
}

.my-macro-card-body .description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.my-macro-card-body .action-count {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-muted);
}

.my-macro-card-body .action-count i {
    color: var(--primary);
}

.my-macro-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-color);
}

.my-macro-card-footer .stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted);
}

.my-macro-card-footer .stats i {
    margin-right: 4px;
}

/* My Macro Card delete button */
.my-macro-card-header .btn-icon.delete:hover {
    background: var(--danger) !important;
    border-color: var(--danger) !important;
}

/* ================================
   Macro Builder Modal
   ================================ */

.modal-xl {
    max-width: 1200px;
    width: 95%;
}

.macro-builder-body {
    padding: 0 !important;
    max-height: 75vh;
    overflow: hidden;
}

.macro-builder-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    height: 75vh;
    max-height: 650px;
}

.macro-builder-left {
    background: var(--bg-darker);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.macro-builder-right {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.macro-info-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
}

.macro-info-panel .form-group {
    margin-bottom: 12px;
}

.macro-info-panel .form-group:last-child {
    margin-bottom: 0;
}

.macro-info-panel .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Action Palette */
.action-palette {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
}

.action-palette h4 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-palette h4 i {
    color: var(--primary);
}

.action-palette-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.action-palette-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    color: var(--text-secondary);
}

.action-palette-item:hover {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
    color: var(--text-primary);
}

.action-palette-item i {
    width: 18px;
    text-align: center;
    font-size: 13px;
}

.action-palette-item.chat i { color: #3b82f6; }
.action-palette-item.wait i { color: #8b5cf6; }
.action-palette-item.random_wait i { color: #a855f7; }
.action-palette-item.move i { color: #10b981; }
.action-palette-item.jump i { color: #06b6d4; }
.action-palette-item.sneak i { color: #6366f1; }
.action-palette-item.sprint i { color: #8b5cf6; }
.action-palette-item.look i { color: #ec4899; }
.action-palette-item.attack i { color: #ef4444; }
.action-palette-item.use i { color: #22c55e; }
.action-palette-item.hotbar i { color: #8b5cf6; }
.action-palette-item.drop i { color: #64748b; }
.action-palette-item.loop_start i,
.action-palette-item.loop_end i { color: #0ea5e9; }

/* Macro Settings Panel */
.macro-settings-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
}

.macro-settings-panel h4 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.macro-settings-panel h4 i {
    color: var(--primary);
}

.macro-settings-panel .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
}

.macro-settings-panel .checkbox-label:hover {
    color: var(--text-primary);
}

.macro-settings-panel .form-group.inline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    padding-left: 26px;
}

.macro-settings-panel .form-group.inline label {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.macro-settings-panel .form-group.inline input {
    width: 100px;
}

/* Action Sequence */
.action-sequence-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
}

.action-sequence-header h4 {
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-sequence-header h4 i {
    color: var(--primary);
}

.sequence-actions {
    display: flex;
    gap: 8px;
}

.action-sequence-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--bg-card);
}

.action-sequence-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
    color: var(--text-muted);
    text-align: center;
}

.action-sequence-empty i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.action-sequence-empty p {
    margin-bottom: 5px;
}

.action-sequence-empty .hint {
    font-size: 12px;
    opacity: 0.7;
}

/* Action Items in Sequence */
.action-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 15px;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    position: relative;
}

.action-item:hover {
    border-color: var(--primary);
}

.action-item.dragging {
    opacity: 0.5;
    border-style: dashed;
}

.action-item.disabled {
    opacity: 0.5;
}

.action-item .drag-handle {
    cursor: grab;
    color: var(--text-muted);
    padding: 5px;
    margin: -5px;
}

.action-item .drag-handle:active {
    cursor: grabbing;
}

.action-item .action-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.action-item .action-icon.chat { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.action-item .action-icon.wait { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
.action-item .action-icon.random_wait { background: rgba(168, 85, 247, 0.2); color: #a855f7; }
.action-item .action-icon.move { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.action-item .action-icon.jump { background: rgba(6, 182, 212, 0.2); color: #06b6d4; }
.action-item .action-icon.sneak { background: rgba(99, 102, 241, 0.2); color: #6366f1; }
.action-item .action-icon.sprint { background: rgba(245, 158, 11, 0.2); color: #8b5cf6; }
.action-item .action-icon.look { background: rgba(236, 72, 153, 0.2); color: #ec4899; }
.action-item .action-icon.attack { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.action-item .action-icon.use { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.action-item .action-icon.hotbar { background: rgba(249, 115, 22, 0.2); color: #8b5cf6; }
.action-item .action-icon.drop { background: rgba(100, 116, 139, 0.2); color: #64748b; }
.action-item .action-icon.loop_start,
.action-item .action-icon.loop_end { background: rgba(14, 165, 233, 0.2); color: #0ea5e9; }

.action-item .action-content {
    flex: 1;
    min-width: 0;
}

.action-item .action-type {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.action-item .action-params {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.action-item .action-params .param-input {
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-item .action-params label {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

.action-item .action-params input,
.action-item .action-params select {
    padding: 5px 8px;
    font-size: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
}

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

.action-item .action-params input[type="text"] {
    min-width: 150px;
}

.action-item .action-params input[type="number"] {
    width: 80px;
}

.action-item .action-params input[type="checkbox"] {
    width: auto;
}

.action-item .action-controls {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.action-item .action-controls .btn-icon {
    width: 26px;
    height: 26px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s ease;
}

.action-item .action-controls .btn-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.action-item .action-controls .btn-icon.delete:hover {
    background: var(--danger);
    border-color: var(--danger);
}

.action-item .action-number {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loop indentation */
.action-item.in-loop {
    margin-left: 30px;
    border-left: 3px solid #0ea5e9;
}

/* Responsive */
@media (max-width: 900px) {
    .macro-builder-layout {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
    }
    
    .macro-builder-left {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .action-sequence-list {
        min-height: 300px;
    }
}

@media (max-width: 600px) {
    .action-palette-grid {
        grid-template-columns: 1fr;
    }
    
    .action-item {
        flex-wrap: wrap;
    }
    
    .action-item .action-params {
        width: 100%;
        margin-top: 10px;
    }
}
