
/* Modern Robux Trading Platform Styles */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #3b82f6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #0ea5e9;
    
    --dark-bg: #0a0e1a;
    --dark-surface: #1a1f2e;
    --dark-card: #242937;
    --dark-border: #374151;
    
    --light-bg: #f8fafc;
    --light-surface: #ffffff;
    --light-card: #f1f5f9;
    --light-border: #e2e8f0;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-dark) 100%);
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --border-radius: 0.75rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-bg);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Navbar Styling */
.navbar {
    background: rgba(30, 41, 59, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.75rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.25rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before {
    left: 0;
}

.nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

.navbar-text {
    background: var(--gradient-secondary);
    color: white !important;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Card Styling */
.card {
    background: rgba(51, 65, 85, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    border-color: rgba(148, 163, 184, 0.2);
}

.card-header {
    background: rgba(30, 41, 59, 0.5);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    padding: 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 2rem;
}

/* Modern Card Variants */
.card-modern {
    background: rgba(51, 65, 85, 0.9);
    border: 1px solid rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s ease;
}

.card-modern:hover::after {
    left: 100%;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    border-radius: var(--border-radius-xl);
    color: white;
    padding: 4rem 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: heroFloat 20s linear infinite;
}

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

/* Button Styling */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn:hover::before {
    width: 200%;
    height: 200%;
}

.btn-modern {
    border-radius: var(--border-radius-lg);
    padding: 1rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary-modern {
    background: var(--gradient-primary);
    color: white;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

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

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

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

/* Form Styling */
.form-control {
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--border-radius);
    color: white;
    padding: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(30, 41, 59, 0.9);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    color: white;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.robux-input {
    background: rgba(30, 41, 59, 0.9);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--border-radius-lg);
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
}

.robux-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    background: rgba(30, 41, 59, 1);
}

/* Stats Cards */
.stats-card {
    background: var(--gradient-accent);
    color: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: statsFloat 15s linear infinite;
}

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

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.stats-card small {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.balance-card {
    background: var(--gradient-secondary);
    color: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    border: 1px solid rgba(20, 184, 166, 0.3);
}

/* Quick Amount Buttons */
.quick-amount {
    background: rgba(51, 65, 85, 0.9);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    margin: 0.5rem 0.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #e2e8f0;
    font-weight: 600;
    display: inline-block;
    font-size: 0.875rem;
    text-align: center;
    min-width: 80px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.quick-amount::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: 0;
}

.quick-amount:hover::before {
    left: 0;
}

.quick-amount:hover {
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.quick-amount span {
    position: relative;
    z-index: 1;
}

.quick-amount.selected {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Status Indicators */
.status-active { 
    color: var(--success-color); 
    font-weight: 700;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.status-sold { 
    color: var(--danger-color); 
    font-weight: 700;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.status-processing { 
    color: var(--warning-color); 
    font-weight: 700;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.status-completed { 
    color: var(--success-color); 
    font-weight: 700;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.status-failed { 
    color: var(--danger-color); 
    font-weight: 700;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.status-queued { 
    color: var(--info-color); 
    font-weight: 700;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

/* Queue Indicator */
.queue-indicator {
    background: var(--gradient-accent);
    color: white;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Price Display */
.price-display {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    margin: 1rem 0;
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

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

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

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

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Tables */
.table {
    color: white;
}

.table th {
    border-color: rgba(148, 163, 184, 0.2);
    background: rgba(30, 41, 59, 0.5);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-size: 0.875rem;
}

.table td {
    border-color: rgba(148, 163, 184, 0.1);
    padding: 1rem;
}

.table-hover tbody tr:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* Badges */
.badge {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 0.5rem 1rem;
}

.bg-info {
    background: var(--gradient-secondary) !important;
}

.bg-success {
    background: var(--gradient-primary) !important;
}

/* Container */
.container {
    max-width: 1400px;
    padding: 0 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
    
    .price-display {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .quick-amount {
        margin: 0.125rem;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.modal-container {
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.modal-content {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    max-height: 100%;
    overflow: hidden;
    position: relative;
}

.modal-header {
    background: rgba(20, 30, 50, 0.8);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1.5rem;
    flex-shrink: 0;
}

.modal-title-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-right: 3rem;
}

.modal-title {
    color: white;
    font-weight: 700;
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

.modal-close-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    color: #fca5a5;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fff;
    transform: scale(1.1);
}

.modal-subtitle {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

.modal-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.modal-section {
    background: rgba(30, 41, 59, 0.5);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.modal-section:last-child {
    margin-bottom: 0;
}

.section-title {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

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

.accounts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.account-card {
    background: rgba(51, 65, 85, 0.8);
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.account-card:hover {
    background: rgba(51, 65, 85, 0.9);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

.account-card.selected {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.2);
}

.account-info {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.account-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    padding: 2px;
    background: var(--gradient-primary);
    margin-right: 1rem;
    flex-shrink: 0;
}

.account-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

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

.account-username {
    margin: 0 0 0.25rem 0;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.account-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.robux-count {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

.robux-count i {
    color: #fbbf24;
}

.active-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.account-check {
    margin-left: 1rem;
    color: var(--success-color);
    font-size: 1.5rem;
    display: none;
}

.account-card.selected .account-check {
    display: block;
}

.modal-footer {
    background: rgba(20, 30, 50, 0.8);
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1.5rem;
    flex-shrink: 0;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-secondary {
    background: rgba(100, 116, 139, 0.2);
    border: 1px solid rgba(100, 116, 139, 0.3);
    color: #cbd5e1;
}

.btn-secondary:hover {
    background: rgba(100, 116, 139, 0.3);
    color: white;
}

.form-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 26, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-left: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
}

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

/* Settings Page Styles */
.settings-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

/* Mobile transaction layout fixes */
.transaction-primary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.transaction-amount-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.amount-usd-mobile {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .transaction-card {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .transaction-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .transaction-amount {
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .transaction-status {
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
        align-self: flex-start;
    }
    
    .transaction-secondary {
        font-size: 0.8rem;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .transaction-date {
        white-space: nowrap;
    }
    
    .amount-usd-mobile {
        font-size: 1rem;
        margin-top: 0.25rem;
    }
}

.settings-title {
    color: white;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.settings-subtitle {
    color: #94a3b8;
    font-size: 1.1rem;
    margin: 0;
}

.settings-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.settings-card-header {
    background: #0f172a;
    padding: 1.5rem;
    border-bottom: 1px solid #334155;
}

.settings-card-header h4 {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.settings-card-body {
    padding: 1.5rem;
}

/* Transaction History Scroll */
.transaction-history-scroll {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 8px;
}

.transaction-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

.transaction-card:hover {
    background: #1e293b;
    border-color: #3b82f6;
}

.transaction-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.transaction-details {
    flex: 1;
    min-width: 0;
}

.transaction-primary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.transaction-amount {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.transaction-status {
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.transaction-status-completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.transaction-status-failed {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.transaction-status-pending,
.transaction-status-queued {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.transaction-secondary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #94a3b8;
}

.transaction-gamepass {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
}

.transaction-amount-display {
    text-align: right;
    flex-shrink: 0;
}

.amount-usd {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.amount-robux {
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Account Info */
.account-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #334155;
}

.account-info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #94a3b8;
    font-weight: 500;
}

.info-value {
    color: white;
    font-weight: 600;
}

.balance-amount {
    color: #10b981;
    font-weight: 700;
}

/* Quick Actions */
.quick-action-btn {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.primary-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.primary-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-1px);
}

.secondary-btn {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
}

.secondary-btn:hover {
    background: linear-gradient(135deg, #5b21b6, #4c1d95);
    transform: translateY(-1px);
}

.tertiary-btn {
    background: #374151;
    color: #d1d5db;
    border: 1px solid #4b5563;
}

.tertiary-btn:hover {
    background: #4b5563;
    color: white;
    transform: translateY(-1px);
}

.info-btn {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
}

.info-btn:hover {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    transform: translateY(-1px);
}

/* Preferences */
.preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #334155;
}

.preference-item:last-of-type {
    border-bottom: none;
    margin-bottom: 1.5rem;
}

.preference-label {
    color: #e2e8f0;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.preference-label i {
    color: #94a3b8;
}

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

.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: #374151;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #3b82f6;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.save-preferences-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-preferences-btn:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    transform: translateY(-1px);
}

/* No Transactions State */
.no-transactions {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
}

.no-transactions i {
    color: #64748b;
    margin-bottom: 1rem;
}

.no-transactions h5 {
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

/* Pagination */
.pagination-wrapper {
    padding: 1rem 0;
    border-top: 1px solid #334155;
    margin-top: 1rem;
}

.pagination {
    justify-content: center;
    margin: 0;
}

.page-item .page-link {
    background: #374151;
    border: 1px solid #4b5563;
    color: #d1d5db;
    padding: 0.5rem 0.75rem;
    margin: 0 0.125rem;
    border-radius: 6px;
}

.page-item.active .page-link {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.page-item .page-link:hover {
    background: #4b5563;
    border-color: #6b7280;
    color: white;
}

/* Modern Notifications - Updated for stacking */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.modern-notification {
    min-width: 350px;
    max-width: 450px;
    border-radius: 12px;
    padding: 16px 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    animation: slideInFromRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    border-color: rgba(52, 211, 153, 0.3);
}

.notification-error {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f87171 100%);
    border-color: rgba(248, 113, 113, 0.3);
}

.notification-info {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 50%, #60a5fa 100%);
    border-color: rgba(96, 165, 250, 0.3);
}

.notification-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    margin-right: 12px;
    font-size: 18px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-text {
    flex: 1;
    font-weight: 500;
    line-height: 1.4;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.notification-close {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    cursor: pointer;
    font-size: 14px;
    padding: 6px !important;
    margin-left: 12px;
    border-radius: 6px !important;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    backdrop-filter: blur(10px);
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    transform: scale(1.1);
}

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

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

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

/* Invalid Cookie Account Styles */
.account-item.invalid-cookie {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    opacity: 0.7;
}

.account-item.invalid-cookie .account-avatar {
    opacity: 0.5;
    filter: grayscale(100%);
}

.account-item.invalid-cookie .account-username {
    color: #fca5a5 !important;
}

.invalid-cookie-badge {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 0.5rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.account-item.invalid-cookie .robux-count {
    color: #9ca3af !important;
    text-decoration: line-through;
}

.account-item.invalid-cookie .activate-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Notification stacking adjustments */
.modern-notification.removing {
    animation: slideOutRight 0.3s ease-in-out forwards;
    transform: translateX(100%);
}

.notification-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    border-color: rgba(52, 211, 153, 0.3);
}

.notification-error {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f87171 100%);
    border-color: rgba(248, 113, 113, 0.3);
}

.notification-info {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 50%, #60a5fa 100%);
    border-color: rgba(96, 165, 250, 0.3);
}

.notification-warning {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
    border-color: rgba(251, 191, 36, 0.3);
}

/* Ensure notifications are above everything */
.modern-notification {
    z-index: 999999 !important;
}

/* Override any existing z-index conflicts */
.modal {
    z-index: 999998 !important;
}

.modal-backdrop {
    z-index: 999997 !important;
}

.navbar {
    z-index: 1000 !important;
}

/* Legacy notification compatibility */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999 !important;
    min-width: 320px;
    padding: 1rem;
    border-radius: 8px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Form Labels */
.form-label {
    color: #cbd5e1;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    background: rgba(30, 41, 59, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--shadow-xl) !important;
    padding: 0.5rem !important;
    margin-top: 0.5rem !important;
}

.dropdown-item {
    color: #e2e8f0 !important;
    padding: 0.75rem 1rem !important;
    border-radius: calc(var(--border-radius) - 2px) !important;
    margin: 0.125rem 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    font-weight: 500 !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--gradient-primary) !important;
    color: white !important;
    transform: translateX(2px) !important;
}

.dropdown-item:active {
    background: var(--primary-dark) !important;
    color: white !important;
}

.dropdown-item i {
    width: 16px !important;
    text-align: center !important;
    margin-right: 0.5rem !important;
    opacity: 0.8 !important;
}

.dropdown-divider {
    border-color: rgba(148, 163, 184, 0.2) !important;
    margin: 0.5rem 0 !important;
}

/* Navbar Dropdown Toggle */
.navbar .dropdown-toggle {
    background: var(--gradient-secondary) !important;
    color: white !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    border-radius: var(--border-radius) !important;
    padding: 0.75rem 1.25rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.navbar .dropdown-toggle:hover {
    background: var(--gradient-primary) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-lg) !important;
}

.navbar .dropdown-toggle::after {
    margin-left: 0.5rem !important;
    opacity: 0.8 !important;
}

/* Text Utilities */
.text-muted {
    color: var(--text-muted) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-info {
    color: var(--info-color) !important;
}

/* Product Cards (inspired by reference image) */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(51, 65, 85, 0.9);
    backdrop-filter: blur(20px);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-color: rgba(99, 102, 241, 0.3);
}

.product-card .card-body {
    padding: 1.5rem;
    min-height: 280px;
}

.robux-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.transaction-details,
.listing-details {
    background: rgba(30, 41, 59, 0.5);
    border-radius: var(--border-radius);
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.transaction-status .badge,
.listing-actions .badge {
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--border-radius);
}

/* Marketplace specific styles */
.marketplace-header {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.marketplace-section {
    margin-bottom: 3rem;
}

.marketplace-section h2 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Transaction feedback styles */
.transaction-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.transaction-feedback.success {
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.2);
}

.transaction-feedback.error {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.2);
}

/* Enhanced status indicators */
.transaction-status-enhanced {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    border: 1px solid;
    display: inline-block;
    min-width: 120px;
}

.status-success {
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.2);
}

.status-error {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.2);
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.2);
}

/* Admin Panel Specific Styles */
.admin-header {
    background: var(--gradient-accent);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 2rem;
    text-align: center;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: rgba(51, 65, 85, 0.9);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
}

.admin-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.admin-stat-label {
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}
