/* ==================== VARIABLES ==================== */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --bg-card-hover: #1a1a1a;
    --bg-input: #0d0d0d;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-glow: rgba(99, 102, 241, 0.25);
    
    --success: #22c55e;
    --warning: #eab308;
    --error: #ef4444;
    --info: #3b82f6;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

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

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

/* ==================== NAVBAR ==================== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-brand i {
    color: var(--accent);
    font-size: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

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

.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-link.admin-link {
    color: var(--warning);
}

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

.nav-user .username {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-sans);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 20px var(--accent-glow);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

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

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

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

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-xl {
    padding: 20px 48px;
    font-size: 18px;
    border-radius: var(--radius-lg);
}

.btn-block {
    width: 100%;
}

/* ==================== CARDS ==================== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

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

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

.card-body {
    padding: 24px;
}

.card-sm {
    max-width: 480px;
    margin: 0 auto;
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 20px;
}

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

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-wrapper input {
    padding-left: 48px;
}

input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-sans);
    transition: all 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 48px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-actions {
    margin-top: 32px;
    text-align: center;
}

/* Toggle Switch */
.toggle-group {
    display: flex;
    align-items: center;
}

.toggle-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 0;
}

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

.toggle {
    width: 48px;
    height: 26px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 13px;
    position: relative;
    transition: all 0.2s;
}

.toggle::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--text-muted);
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.2s;
}

.toggle-group input:checked + .toggle {
    background: var(--accent);
    border-color: var(--accent);
}

.toggle-group input:checked + .toggle::after {
    transform: translateX(22px);
    background: white;
}

/* Range Input */
.range-input {
    -webkit-appearance: none;
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    border: none;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
}

.range-value {
    display: inline-block;
    margin-left: 12px;
    font-weight: 600;
    color: var(--accent);
}

/* ==================== FLASH MESSAGES ==================== */
.flash-messages {
    padding: 0 32px;
    margin-top: 16px;
}

.flash {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    font-size: 14px;
}

.flash-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.flash-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.flash-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--info);
}

.flash-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.6;
}

.flash-close:hover {
    opacity: 1;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    padding: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-header h1 i {
    color: var(--accent);
}

/* ==================== DASHBOARD ==================== */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-header {
    margin-bottom: 32px;
}

.dashboard-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 600;
}

.status-active, .status-online {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.status-inactive, .status-offline {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--error);
}

/* License Details */
.license-details {
    margin-top: 20px;
}

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

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

.detail-row .label {
    color: var(--text-muted);
    font-size: 14px;
}

.detail-row .value {
    color: var(--text-primary);
    font-weight: 500;
}

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

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all 0.2s;
}

.quick-action:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    color: var(--text-primary);
}

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

/* ==================== DOWNLOAD PAGE ==================== */
.download-card {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    padding: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}

.download-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.download-icon i {
    font-size: 36px;
    color: white;
}

.download-card h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.download-card .version {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.download-features {
    text-align: left;
    margin-bottom: 32px;
}

.download-features .feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-secondary);
}

.download-features .feature i {
    color: var(--success);
}

.download-note {
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

.setup-instructions {
    max-width: 500px;
    margin: 48px auto 0;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.setup-instructions h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.setup-instructions h3 i {
    color: var(--accent);
}

.setup-instructions ol {
    padding-left: 20px;
    color: var(--text-secondary);
}

.setup-instructions li {
    padding: 8px 0;
}

/* ==================== SETTINGS PAGE ==================== */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

/* ==================== AUTH PAGES ==================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
}

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

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.auth-logo i {
    color: var(--accent);
}

.auth-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-muted);
}

.auth-form {
    margin-top: 24px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 14px;
}

/* ==================== LANDING PAGE ==================== */
.landing-page {
    background: var(--bg-primary);
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 48px;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-auth {
    display: flex;
    gap: 12px;
}

.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 64px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.hero-stats .stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
    height: 400px;
}

.glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-glow 4s ease-in-out infinite;
}

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

.features {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 48px;
}

.section-title {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 64px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-glow);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 28px;
    color: var(--accent);
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
}

.cta {
    text-align: center;
    padding: 100px 48px;
    background: var(--bg-secondary);
}

.cta h2 {
    font-size: 40px;
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.landing-footer {
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid var(--border-color);
}

/* ==================== ADMIN PANEL ==================== */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.admin-header h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
}

.admin-header h1 i {
    color: var(--warning);
}

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

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.blue { background: rgba(59, 130, 246, 0.1); color: var(--info); }
.stat-icon.green { background: rgba(34, 197, 94, 0.1); color: var(--success); }
.stat-icon.yellow { background: rgba(234, 179, 8, 0.1); color: var(--warning); }
.stat-icon.purple { background: rgba(168, 85, 247, 0.1); color: #a855f7; }

.stat-info .stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
}

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

/* Admin Nav Grid */
.admin-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.admin-nav-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: all 0.2s;
    color: var(--text-primary);
}

.admin-nav-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.admin-nav-card i {
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 16px;
}

.admin-nav-card i.green {
    color: var(--success);
}

.admin-nav-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.admin-nav-card p {
    font-size: 14px;
    color: var(--text-muted);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 30px;
}

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    font-size: 14px;
}

.table-responsive {
    overflow-x: auto;
}

.row-banned {
    opacity: 0.5;
}

/* License Key */
.license-key {
    font-family: monospace;
    font-size: 13px;
    background: var(--bg-input);
    padding: 6px 10px;
    border-radius: 4px;
}

.btn-copy {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    margin-left: 4px;
}

.btn-copy:hover {
    color: var(--accent);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-1day { background: rgba(239, 68, 68, 0.1); color: var(--error); }
.badge-7day { background: rgba(234, 179, 8, 0.1); color: var(--warning); }
.badge-30day { background: rgba(59, 130, 246, 0.1); color: var(--info); }
.badge-90day { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.badge-lifetime { background: rgba(34, 197, 94, 0.1); color: var(--success); }
.badge-admin { background: rgba(234, 179, 8, 0.1); color: var(--warning); }

/* Status Dot */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-dot.green { background: var(--success); }
.status-dot.red { background: var(--error); }
.status-dot.yellow { background: var(--warning); }

/* Activity Log */
.activity-log {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.activity-icon i {
    font-size: 6px;
    color: var(--accent);
}

.activity-content {
    display: flex;
    justify-content: space-between;
    flex: 1;
}

.activity-action {
    font-size: 14px;
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 64px 32px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

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

/* Create License Form */
.create-license-form .form-row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.create-license-form .form-group {
    margin-bottom: 0;
}

/* ==================== UTILITIES ==================== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

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

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-nav-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .navbar { padding: 12px 20px; flex-wrap: wrap; gap: 12px; }
    .nav-links { order: 3; width: 100%; justify-content: center; }
    .hero { grid-template-columns: 1fr; padding: 60px 24px; text-align: center; }
    .hero-title { font-size: 40px; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }
    .stats-grid { grid-template-columns: 1fr; }
    .admin-nav-grid { grid-template-columns: 1fr; }
    .admin-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .main-content { padding: 20px; }
    .landing-nav { padding: 16px 24px; }
}

/* ==================== TOAST ==================== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

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

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

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

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

/* ==================== TAB SYSTEM ==================== */
.settings-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #aaa;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.tab-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.tab-btn.active {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.tab-content {
    display: none;
}

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

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

/* ==================== BUTTON FIXES ==================== */
.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

.btn-outline-success {
    background: transparent;
    border: 1px solid #10b981;
    color: #10b981;
}

.btn-outline-success:hover {
    background: #10b981;
    color: #fff;
}

.btn-outline-warning {
    background: transparent;
    border: 1px solid #f59e0b;
    color: #f59e0b;
}

.btn-outline-warning:hover {
    background: #f59e0b;
    color: #fff;
}

.btn-outline-info {
    background: transparent;
    border: 1px solid #06b6d4;
    color: #06b6d4;
}

.btn-outline-info:hover {
    background: #06b6d4;
    color: #fff;
}

.btn-outline-secondary {
    background: transparent;
    border: 1px solid #6b7280;
    color: #9ca3af;
}

.btn-outline-secondary:hover {
    background: #6b7280;
    color: #fff;
}

/* Quick Add Buttons */
.quick-add-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-add-buttons .btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
}

.quick-add-buttons .btn:hover {
    background: rgba(255,255,255,0.15);
}

/* Action Toolbar */
.action-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 15px;
}

.action-toolbar .btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 6px 12px;
    font-size: 13px;
}

/* Action Management */
.action-management {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 15px;
}

.action-management .btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 6px 12px;
}

.action-management .btn-danger {
    background: #ef4444;
    border-color: #ef4444;
}

.action-management .btn-primary {
    background: #6366f1;
    border-color: #6366f1;
}

/* Add Action Section */
.add-action-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 10px;
}

.add-action-section > span {
    color: #9ca3af;
    font-weight: 500;
}

/* Action List Empty State */
.empty-actions {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.action-list {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 15px;
    min-height: 150px;
    margin-bottom: 15px;
}

/* Quick Tools Grid */
.quick-tools-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-tools-grid .btn {
    padding: 12px 20px;
}

/* Vision Header */
.vision-header {
    margin-bottom: 20px;
}

.vision-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

/* Badge AI */
.badge-ai {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

/* Template Preview */
.template-preview {
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin: 15px 0;
    min-height: 80px;
}

/* Methods Comparison */
.methods-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.method-box {
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    padding: 15px;
}

.method-box.highlight {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.method-box h4 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.method-box ul {
    margin: 0;
    padding-left: 20px;
    color: #9ca3af;
    font-size: 13px;
}

.method-box li {
    margin-bottom: 5px;
}

/* Speed Presets */
.speed-presets {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.speed-presets .btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 6px 14px;
}

/* Playback Controls */
.playback-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Randomize Header */
.randomize-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.randomize-header h2 {
    margin: 0;
}

/* Hotkey Info */
.hotkey-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hotkey-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hotkey-badge {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
}

/* Activity Log */
.activity-log {
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 15px;
    max-height: 250px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 13px;
}

.log-entry {
    display: flex;
    gap: 10px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.log-time {
    color: #6b7280;
}

/* Form Actions Footer */
.form-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

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

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

/* Profile List */
.profile-list {
    max-height: 180px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.profile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    margin-bottom: 6px;
}

.profile-item.active {
    border-left: 3px solid #6366f1;
}

/* ==================== CHECKBOX ALIGNMENT FIX ==================== */
.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-group label input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #6366f1;
}

/* ==================== CARD CONSISTENCY ==================== */
.card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
}

.card-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 20px;
}

/* Remove weird green background from Color Detection */
.card, .card-body {
}

/* ==================== SETTINGS GRID IMPROVEMENTS ==================== */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

@media (max-width: 1200px) {
    .settings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== RANDOMIZE HEADER FIX ==================== */
.randomize-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.randomize-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.randomize-header label {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(99, 102, 241, 0.1);
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* ==================== BUTTON REFINEMENTS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

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

.btn-lg {
    padding: 12px 24px;
    font-size: 15px;
}

.btn-primary {
    background: #6366f1;
    color: white;
}

.btn-primary:hover {
    background: #5558e3;
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

/* ==================== FORM INPUTS ==================== */
.form-control {
    width: 100%;
    padding: 10px 14px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ==================== RANGE SLIDER ==================== */
.form-range {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    appearance: none;
    cursor: pointer;
}

.form-range::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: #6366f1;
    border-radius: 50%;
    cursor: pointer;
}

/* ==================== FORM HINTS ==================== */
.form-hint {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
}

/* ==================== HR DIVIDERS ==================== */
hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 16px 0;
}

/* ==================== VISION TAB SPECIFIC ==================== */
.vision-header {
    margin-bottom: 24px;
}

.vision-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

/* Quick Tools full width */
#tab-vision .card:first-of-type {
    grid-column: 1 / -1;
}

/* Matching Methods Comparison full width */
#tab-vision .card:last-of-type {
    grid-column: 1 / -1;
}

/* ==================== ACTION LIST STYLING ==================== */
.action-list {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 20px;
    min-height: 200px;
    text-align: center;
}

/* ==================== ACTIVITY LOG ==================== */
.activity-log {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 16px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    min-height: 150px;
}

/* ==================== BADGE STYLING ==================== */
.badge {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-ai {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================== PLAYBACK CONTROLS ==================== */
.playback-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.playback-controls .btn {
    min-width: 100px;
}

/* ==================== FULL WIDTH CARDS ==================== */
.card.full-width,
#tab-actions .card,
#tab-settings .card:last-child {
    grid-column: 1 / -1;
}

/* Announcement Banner */
.announcement-banner {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    color: #fff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.announcement-banner i.fa-bullhorn {
    font-size: 16px;
}

.announcement-banner .banner-close {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    transition: color 0.2s;
}

.announcement-banner .banner-close:hover {
    color: #fff;
}

/* Warning Box */
.warning-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
}

.warning-box p {
    color: #ef4444;
    margin: 0;
    font-size: 13px;
}

.warning-box i {
    margin-right: 8px;
}

/* VIP Styles */
.vip-nav-link {
    color: #fbbf24 !important;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.vip-nav-link:hover {
    color: #f59e0b !important;
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.7);
}

.vip-nav-link.active {
    color: #fbbf24 !important;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.8);
}

.vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

.vip-glow {
    animation: vipGlow 2s ease-in-out infinite alternate;
}

@keyframes vipGlow {
    from {
        box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
    }
    to {
        box-shadow: 0 0 25px rgba(251, 191, 36, 0.8);
    }
}

.vip-card {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.vip-card .card-header {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.1));
    border-bottom: 1px solid rgba(251, 191, 36, 0.3);
}

.vip-card .card-header h3 {
    color: #fbbf24 !important;
}

.feature-locked {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.feature-locked::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: inherit;
}

.vip-upgrade-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: inherit;
    z-index: 10;
}

.vip-upgrade-text {
    color: #fbbf24;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.vip-upgrade-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.vip-upgrade-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.feature-card.vip-only {
    border-color: rgba(251, 191, 36, 0.3);
}

.feature-card.vip-only:hover {
    border-color: rgba(251, 191, 36, 0.5);
}

.feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.2);
    color: #6366f1;
    border-radius: 12px;
    font-size: 20px;
    margin-bottom: 15px;
}

.feature-card.vip-only .feature-icon {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.feature-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-description {
    color: #888;
    font-size: 13px;
    line-height: 1.5;
}

.feature-status {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.status-available {
    color: #10b981;
    font-size: 12px;
    font-weight: 600;
}

.status-vip-required {
    color: #fbbf24;
    font-size: 12px;
    font-weight: 600;
}

/* VIP Feature Lock Overlay */
.vip-feature-wrapper {
    position: relative;
}

.vip-feature-wrapper.vip-locked {
    pointer-events: none;
    user-select: none;
}

.vip-feature-wrapper.vip-locked > *:not(.vip-lock-overlay) {
    filter: grayscale(100%) brightness(0.5);
    opacity: 0.4;
}

.vip-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    border-radius: inherit;
    z-index: 50;
    pointer-events: auto;
}

.vip-lock-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.vip-lock-content i.fa-crown {
    font-size: 32px;
    color: #fbbf24;
    margin-bottom: 12px;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
    animation: vipGlow 2s ease-in-out infinite alternate;
}

.vip-lock-text {
    color: #fbbf24;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.vip-sales-text {
    color: #888;
    font-size: 12px;
    margin-top: 8px;
    max-width: 250px;
    line-height: 1.4;
}

.vip-unlock-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.vip-unlock-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.5);
}

/* Locked card specific styles */
.card.vip-locked {
    border-color: rgba(251, 191, 36, 0.2);
}

.card.vip-locked .card-header {
    filter: grayscale(100%) brightness(0.6);
}

/* VIP Locked Cards */
.vip-locked-card {
    overflow: hidden;
}

.vip-locked-card > *:not(.vip-lock-overlay) {
    filter: grayscale(100%) brightness(0.5);
    opacity: 0.5;
    pointer-events: none;
}

.vip-locked-card .card-header {
    filter: grayscale(80%) brightness(0.7);
}

/* VIP Locked Tabs */
.vip-locked-tab {
    min-height: 400px;
}

.vip-tab-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    z-index: 100;
}

.vip-locked-tab > *:not(.vip-tab-lock-overlay) {
    filter: grayscale(100%) brightness(0.3);
    opacity: 0.3;
}

/* VIP Locked Individual Fields */
.vip-locked-field {
    position: relative;
    overflow: visible;
}

.vip-locked-field > *:not(.vip-field-overlay) {
    filter: grayscale(100%) brightness(0.6);
    opacity: 0.5;
    pointer-events: none;
}

.vip-field-overlay {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    pointer-events: auto;
}

.vip-field-lock {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
    transition: all 0.2s;
}

.vip-field-lock:hover {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.8);
    transform: scale(1.05);
    color: #000;
}

.vip-field-lock i {
    font-size: 9px;
}

/* Navbar VIP Badge */
.vip-badge-nav {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    margin-right: 12px;
    transition: all 0.2s;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.vip-badge-nav:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
    color: #000;
}

.vip-badge-nav i {
    font-size: 10px;
}

.vip-badge-nav .vip-expires {
    font-size: 10px;
    opacity: 0.9;
}

/* ==================== MOBILE RESPONSIVE - COMPREHENSIVE ==================== */

/* --- MOBILE NAVBAR WITH HAMBURGER MENU --- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.mobile-menu-toggle:hover {
    background: var(--bg-card);
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- TABLET BREAKPOINT (1024px) --- */
@media (max-width: 1024px) {
    .main-content {
        padding: 24px 20px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .settings-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-body {
        padding: 16px;
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table-responsive table {
        min-width: 600px;
    }
}

/* --- MOBILE BREAKPOINT (768px) --- */
@media (max-width: 768px) {
    /* Navbar Mobile */
    .navbar {
        padding: 12px 16px;
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 16px;
        gap: 8px;
        z-index: 99;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.mobile-open {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 16px;
    }
    
    .nav-user {
        gap: 8px;
    }
    
    .nav-user .username {
        display: none;
    }
    
    .vip-badge-nav {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .vip-badge-nav .vip-expires {
        display: none;
    }
    
    /* Main Content */
    .main-content {
        padding: 16px 12px;
    }
    
    .page-container {
        padding: 0;
    }
    
    .page-header {
        margin-bottom: 20px;
    }
    
    .page-header h1 {
        font-size: 20px;
        gap: 8px;
    }
    
    .page-header p {
        font-size: 13px;
    }
    
    /* Cards */
    .card {
        border-radius: var(--radius-md);
    }
    
    .card-header {
        padding: 14px 16px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .card-header h3 {
        font-size: 14px;
    }
    
    .card-body {
        padding: 14px 16px;
    }
    
    /* Settings Tabs - Horizontal Scroll */
    .settings-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        margin-bottom: 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .settings-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        flex-shrink: 0;
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .tab-btn i {
        font-size: 12px;
    }
    
    /* Hide tab text on small screens, show only icon */
    .tab-btn span.tab-text {
        display: none;
    }
    
    /* Settings Grid */
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* Form Elements */
    .form-group {
        margin-bottom: 14px;
    }
    
    .form-group label {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .form-control, select, input[type="text"], input[type="number"], input[type="password"], input[type="email"] {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .btn-sm {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    /* Grids */
    .dashboard-grid,
    .admin-grid,
    .admin-nav-grid,
    .stats-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* Two-column form layouts go single column */
    .form-row,
    .form-grid,
    .two-col-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    /* Tables */
    .table-responsive {
        margin: 0 -16px;
        padding: 0 16px;
        overflow-x: auto;
    }
    
    .table th, .table td {
        padding: 10px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    /* Auth Pages */
    .auth-container {
        padding: 20px 16px;
    }
    
    .auth-box {
        padding: 24px 20px;
    }
    
    .auth-title {
        font-size: 22px;
    }
    
    /* Landing Page */
    .hero {
        padding: 40px 16px;
    }
    
    .hero-title {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* VIP Page */
    .vip-hero-title {
        font-size: 28px;
    }
    
    .vip-features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Flash Messages */
    .flash-message {
        margin: 12px;
        padding: 12px 16px;
        font-size: 13px;
    }
    
    /* Modal adjustments */
    .modal-content {
        margin: 10px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-footer {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .modal-footer .btn {
        flex: 1;
        min-width: 100px;
    }
}

/* --- SMALL MOBILE BREAKPOINT (480px) --- */
@media (max-width: 480px) {
    .navbar {
        padding: 10px 12px;
    }
    
    .nav-brand {
        font-size: 16px;
        gap: 8px;
    }
    
    .nav-brand i {
        font-size: 20px;
    }
    
    .main-content {
        padding: 12px 10px;
    }
    
    .page-header h1 {
        font-size: 18px;
    }
    
    .card-header {
        padding: 12px 14px;
    }
    
    .card-body {
        padding: 12px 14px;
    }
    
    .card-header h3 {
        font-size: 13px;
    }
    
    /* Tab buttons - icon only on very small screens */
    .tab-btn {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .settings-grid {
        gap: 10px;
    }
    
    .form-group label {
        font-size: 11px;
    }
    
    .form-control, select, input {
        font-size: 14px; /* Prevent zoom on iOS */
        padding: 10px;
    }
    
    .btn {
        padding: 10px 14px;
        font-size: 12px;
    }
    
    /* Status badges */
    .status-badge {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    /* License key display */
    .license-key {
        font-size: 12px;
        word-break: break-all;
    }
    
    /* Stats cards */
    .stat-card {
        padding: 16px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    /* Admin nav cards */
    .admin-nav-card {
        padding: 16px;
    }
    
    .admin-nav-card i {
        font-size: 24px;
    }
    
    .admin-nav-card h4 {
        font-size: 14px;
    }
    
    /* Hero section */
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 13px;
    }
    
    /* VIP lock overlay */
    .vip-lock-content {
        padding: 16px;
    }
    
    .vip-lock-content i.fa-crown {
        font-size: 24px;
    }
    
    .vip-lock-text {
        font-size: 11px;
    }
    
    .vip-unlock-btn {
        padding: 8px 16px;
        font-size: 10px;
    }
}

/* --- GAME SELECTOR MOBILE --- */
@media (max-width: 768px) {
    .games-scroll-container {
        margin: 0 -16px;
        padding: 0 16px 8px;
    }
    
    .game-select-btn {
        min-width: 75px;
        padding: 10px 12px;
    }
    
    .game-select-btn i {
        font-size: 18px;
    }
    
    .game-select-btn span {
        font-size: 11px;
    }
}

/* --- TRIGGERBOT PAGE SPECIFIC --- */
@media (max-width: 768px) {
    /* Color picker grid */
    .color-grid {
        grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
        gap: 6px;
    }
    
    .color-swatch {
        width: 32px;
        height: 32px;
    }
    
    /* Profile buttons */
    .profile-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .profile-btn {
        padding: 10px;
        font-size: 12px;
    }
    
    /* FOV preview */
    .fov-preview {
        max-width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
    
    /* Humanization sliders */
    .slider-container {
        padding: 12px 0;
    }
    
    .slider-value {
        font-size: 12px;
    }
}

/* --- ADMIN PAGES MOBILE --- */
@media (max-width: 768px) {
    /* License table */
    .license-key-cell {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* User management */
    .user-actions {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .user-actions .btn {
        width: 100%;
    }
    
    /* Sales dashboard */
    .sales-summary {
        grid-template-columns: 1fr;
    }
    
    .sales-card {
        padding: 16px;
    }
    
    .sales-amount {
        font-size: 24px;
    }
    
    /* Create license form */
    .create-license-form {
        grid-template-columns: 1fr;
    }
    
    /* Settings tabs in admin */
    .admin-settings-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
}

/* --- UNLOCK GAMES PAGE MOBILE --- */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .game-card {
        padding: 16px;
    }
    
    .game-card-image {
        height: 120px;
    }
    
    .game-card-title {
        font-size: 16px;
    }
    
    .game-card-price {
        font-size: 18px;
    }
}

/* --- VIP MEMBERSHIP PAGE MOBILE --- */
@media (max-width: 768px) {
    .vip-pricing-card {
        padding: 24px 20px;
    }
    
    .vip-price {
        font-size: 36px;
    }
    
    .vip-features-list {
        font-size: 13px;
    }
    
    .vip-features-list li {
        padding: 8px 0;
    }
}

/* --- BUILD MANAGEMENT PAGE MOBILE --- */
@media (max-width: 768px) {
    .download-card {
        padding: 20px;
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
    }
    
    .hwid-display {
        font-size: 11px;
        word-break: break-all;
    }
}

/* --- UTILITY: TOUCH FRIENDLY --- */
@media (max-width: 768px) {
    /* Larger tap targets */
    button, .btn, a.btn, input[type="submit"], input[type="button"] {
        min-height: 44px;
    }
    
    /* Prevent text selection on buttons */
    .btn, .tab-btn, .nav-link {
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
    }
    
    /* Disable hover effects on touch */
    @media (hover: none) {
        .btn:hover,
        .card:hover,
        .nav-link:hover,
        .tab-btn:hover {
            transform: none;
        }
    }
}

/* --- FIX iOS ZOOM ON INPUTS --- */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    input[type="url"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* --- LANDSCAPE MOBILE --- */
@media (max-width: 768px) and (orientation: landscape) {
    .navbar {
        padding: 8px 16px;
    }
    
    .nav-brand {
        font-size: 14px;
    }
    
    .main-content {
        padding: 12px 16px;
    }
    
    .modal-content {
        max-height: 85vh;
    }
}


/* ==================== MISSING GRID CLASSES ==================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.hotkey-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.fov-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

/* ==================== TRIGGERBOT PAGE MOBILE FIXES ==================== */
@media (max-width: 768px) {
    /* Grid layouts go single column */
    .grid-2,
    .hotkey-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .grid-3,
    .fov-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* FOV preview container */
    .fov-preview-container {
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .fov-preview {
        min-width: 200px;
    }
    
    /* Color swatches */
    .color-swatches {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .color-swatch {
        width: 28px;
        height: 28px;
    }
    
    /* Inline grids in triggerbot */
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Fix inline style grids */
    div[style*="display:grid"][style*="grid-template-columns:1fr 1fr"] {
        display: block !important;
    }
    
    div[style*="display:grid"][style*="grid-template-columns:1fr 1fr"] > * {
        margin-bottom: 12px;
    }
    
    /* AI settings panel grids */
    #aiSettingsPanel .card-body > div[style*="grid"] {
        display: block !important;
    }
    
    #aiSettingsPanel .card-body > div[style*="grid"] > div {
        margin-bottom: 16px;
    }
    
    /* Color settings panel */
    #colorSettingsPanel .card-body {
        padding: 12px;
    }
    
    /* Form controls in triggerbot */
    .form-control[style*="width:100px"],
    .form-control[style*="width:80px"] {
        width: 100% !important;
        max-width: 150px;
    }
    
    /* Range sliders */
    input[type="range"] {
        width: 100%;
    }
    
    /* Game selector improvements */
    .games-scroll-container {
        margin: 0 -14px;
        padding: 0 14px 10px;
    }
    
    .game-select-btn {
        min-width: 70px;
        padding: 10px;
    }
    
    .game-select-btn i {
        font-size: 16px;
    }
    
    .game-select-btn span {
        font-size: 10px;
    }
    
    /* Info boxes */
    div[style*="background:rgba(99,102,241,0.1)"] {
        padding: 8px !important;
        font-size: 11px;
    }
    
    /* Form check inline */
    .form-check-inline {
        display: block;
    }
    
    /* Humanization sliders grid */
    .humanization-grid {
        grid-template-columns: 1fr;
    }
    
    /* Profile buttons */
    .profile-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 8px;
    }
    
    .profile-item {
        padding: 8px;
        font-size: 12px;
    }
    
    /* Community configs grid */
    .configs-grid {
        grid-template-columns: 1fr;
    }
    
    .config-card {
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .grid-2,
    .grid-3,
    .hotkey-grid,
    .fov-stats {
        gap: 8px;
    }
    
    .game-select-btn {
        min-width: 60px;
        padding: 8px;
    }
    
    .game-select-btn span {
        font-size: 9px;
    }
    
    /* Smaller form elements */
    .form-group label {
        font-size: 11px;
    }
    
    select, input {
        padding: 8px 10px;
    }
}


/* ==================== AUTH PAGES MOBILE ==================== */
@media (max-width: 768px) {
    .auth-page {
        padding: 20px 16px;
    }
    
    .auth-container {
        padding: 0;
    }
    
    .auth-card {
        padding: 24px 20px;
        margin: 0;
        border-radius: var(--radius-md);
    }
    
    .auth-header {
        margin-bottom: 24px;
    }
    
    .auth-logo {
        font-size: 24px;
    }
    
    .auth-logo i {
        font-size: 28px;
    }
    
    .auth-title {
        font-size: 20px;
    }
    
    .auth-subtitle {
        font-size: 13px;
    }
    
    .auth-form .form-group {
        margin-bottom: 16px;
    }
    
    .auth-form .btn {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
    
    .auth-footer {
        margin-top: 20px;
        font-size: 13px;
    }
    
    .auth-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* ==================== VIP PAGE MOBILE ==================== */
@media (max-width: 768px) {
    .vip-container {
        padding: 0;
    }
    
    .vip-header {
        text-align: center;
        margin-bottom: 24px;
    }
    
    .vip-header h1 {
        font-size: 28px;
    }
    
    .vip-header p {
        font-size: 14px;
    }
    
    .vip-status-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .vip-status-icon {
        font-size: 40px;
    }
    
    .vip-status-title {
        font-size: 20px;
    }
    
    .vip-status-subtitle {
        font-size: 13px;
    }
    
    .vip-since {
        font-size: 12px;
    }
    
    .vip-pricing-section {
        margin-top: 32px;
    }
    
    .vip-pricing-card {
        padding: 24px 20px;
    }
    
    .vip-price {
        font-size: 36px;
    }
    
    .vip-price-period {
        font-size: 14px;
    }
    
    .vip-features-list {
        font-size: 13px;
    }
    
    .vip-features-list li {
        padding: 8px 0;
    }
    
    .vip-subscribe-btn {
        width: 100%;
        padding: 14px;
        font-size: 15px;
    }
    
    /* Features grid in VIP page */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .feature-card {
        padding: 16px;
    }
    
    .feature-card h4 {
        font-size: 14px;
    }
    
    .feature-card p {
        font-size: 12px;
    }
    
    .feature-icon {
        font-size: 24px;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .vip-header h1 {
        font-size: 24px;
    }
    
    .vip-status-card {
        padding: 16px;
    }
    
    .vip-pricing-card {
        padding: 20px 16px;
    }
    
    .vip-price {
        font-size: 32px;
    }
}

/* ==================== UNLOCK GAMES PAGE MOBILE ==================== */
@media (max-width: 768px) {
    .unlock-games-container {
        padding: 0;
    }
    
    .unlock-games-header {
        text-align: center;
        margin-bottom: 24px;
    }
    
    .unlock-games-header h1 {
        font-size: 24px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .game-unlock-card {
        padding: 16px;
    }
    
    .game-unlock-card .game-image {
        height: 100px;
    }
    
    .game-unlock-card .game-title {
        font-size: 16px;
    }
    
    .game-unlock-card .game-price {
        font-size: 20px;
    }
    
    .game-unlock-card .unlock-btn {
        width: 100%;
        padding: 12px;
    }
}

/* ==================== DASHBOARD PAGE MOBILE ==================== */
@media (max-width: 768px) {
    .dashboard-header {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .dashboard-header h1 {
        font-size: 22px;
    }
    
    .license-card {
        padding: 20px;
    }
    
    .license-key-display {
        font-size: 14px;
        padding: 12px;
        word-break: break-all;
    }
    
    .license-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .quick-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .quick-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== BUILD MANAGEMENT PAGE MOBILE ==================== */
@media (max-width: 768px) {
    .build-card {
        padding: 20px;
    }
    
    .build-info {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .build-icon {
        font-size: 40px;
    }
    
    .build-title {
        font-size: 18px;
    }
    
    .build-meta {
        font-size: 12px;
    }
    
    .download-section {
        flex-direction: column;
        gap: 12px;
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
        padding: 14px;
    }
    
    .hwid-section {
        margin-top: 20px;
        padding: 16px;
    }
    
    .hwid-display {
        font-size: 10px;
        word-break: break-all;
        padding: 10px;
    }
    
    .hwid-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .hwid-actions .btn {
        width: 100%;
    }
}


/* ==================== ADMIN DASHBOARD INLINE STYLES MOBILE FIX ==================== */
@media (max-width: 1024px) {
    /* 4-column grids go to 2 columns */
    .admin-container div[style*="grid-template-columns:repeat(4,1fr)"],
    .admin-container div[style*="grid-template-columns: repeat(4,1fr)"],
    .admin-container div[style*="grid-template-columns:repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    /* Admin container */
    .admin-container {
        padding: 0;
    }
    
    /* Admin header */
    .admin-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        margin-bottom: 20px !important;
    }
    
    .admin-header h1 {
        font-size: 20px;
    }
    
    .admin-header .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Force ALL 4-column and 2-column inline grids to single column */
    .admin-container div[style*="grid-template-columns:repeat(4,1fr)"],
    .admin-container div[style*="grid-template-columns: repeat(4,1fr)"],
    .admin-container div[style*="grid-template-columns:repeat(4, 1fr)"],
    .admin-container div[style*="grid-template-columns:repeat(2,1fr)"],
    .admin-container div[style*="grid-template-columns: repeat(2,1fr)"],
    .admin-container div[style*="grid-template-columns:1fr 1fr"],
    .admin-container div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    /* Stats cards in admin dashboard */
    .admin-container div[style*="background:linear-gradient"] {
        padding: 16px !important;
    }
    
    .admin-container div[style*="background:linear-gradient"] div[style*="font-size:28px"] {
        font-size: 22px !important;
    }
    
    .admin-container div[style*="background:linear-gradient"] div[style*="font-size:13px"] {
        font-size: 12px !important;
    }
    
    /* Admin nav cards */
    .admin-nav-card {
        padding: 16px !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 14px !important;
        text-align: left !important;
    }
    
    .admin-nav-card i {
        font-size: 22px !important;
        min-width: 35px;
    }
    
    .admin-nav-card h3 {
        font-size: 15px !important;
        margin: 0 0 2px 0 !important;
    }
    
    .admin-nav-card p {
        font-size: 11px !important;
        margin: 0 !important;
    }
    
    /* Section headers in admin */
    .admin-container h3[style*="text-transform:uppercase"] {
        font-size: 11px !important;
        margin-bottom: 12px !important;
    }
    
    /* License creation form - target the 2-column grid */
    .card-body form div[style*="grid-template-columns:1fr 1fr"],
    .card-body form div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    /* Form labels */
    label[style*="text-transform:uppercase"] {
        font-size: 11px !important;
    }
    
    /* Form inputs */
    .admin-container select,
    .admin-container input[type="text"],
    .admin-container input[type="number"],
    .admin-container input[type="email"] {
        padding: 10px 12px !important;
        font-size: 14px !important;
    }
    
    /* Tables */
    .table-responsive {
        margin: 0 -12px;
        border-radius: 0;
    }
    
    .table {
        font-size: 11px;
    }
    
    .table th {
        padding: 10px 8px;
        font-size: 10px;
        white-space: nowrap;
    }
    
    .table td {
        padding: 10px 8px;
        white-space: nowrap;
    }
    
    .table .btn-sm {
        padding: 4px 6px;
        font-size: 10px;
    }
    
    /* Hide less important columns on mobile */
    .table th:nth-child(6),
    .table td:nth-child(6) {
        display: none;
    }
    
    /* Modal on mobile */
    .modal {
        width: 95% !important;
        max-width: none !important;
        margin: 10px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 14px 16px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-footer {
        padding: 12px 16px;
        flex-wrap: wrap;
    }
    
    .modal-footer .btn {
        flex: 1;
        min-width: 100px;
    }
    
    /* Cards spacing */
    .card {
        margin-bottom: 16px;
    }
    
    .card.mb-4 {
        margin-bottom: 16px !important;
    }
    
    /* Checkbox/radio lists in forms */
    .card-body div[style*="max-height"][style*="overflow-y"] {
        max-height: 200px !important;
    }
}

@media (max-width: 480px) {
    .admin-container div[style*="background:linear-gradient"] {
        padding: 14px !important;
    }
    
    .admin-container div[style*="background:linear-gradient"] div[style*="width:48px"] {
        width: 40px !important;
        height: 40px !important;
    }
    
    .admin-container div[style*="background:linear-gradient"] i {
        font-size: 16px !important;
    }
    
    .admin-container div[style*="background:linear-gradient"] div[style*="font-size:28px"],
    .admin-container div[style*="background:linear-gradient"] div[style*="font-size:22px"] {
        font-size: 20px !important;
    }
    
    .admin-nav-card {
        padding: 14px !important;
    }
    
    .admin-nav-card i {
        font-size: 20px !important;
    }
    
    .admin-nav-card h3 {
        font-size: 14px !important;
    }
    
    .table th,
    .table td {
        padding: 8px 6px;
        font-size: 10px;
    }
}

/* ==================== ADMIN PAGES SPECIFIC FIXES ==================== */

/* Sales Dashboard */
@media (max-width: 768px) {
    .sales-filters,
    div[style*="display:flex"][style*="gap"] {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .sales-filters select,
    .sales-filters input[type="date"] {
        width: 100% !important;
    }
    
    /* Sales summary cards */
    div[style*="grid-template-columns"][style*="repeat(3"] {
        grid-template-columns: 1fr !important;
    }
    
    div[style*="grid-template-columns"][style*="repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* VIP Management */
@media (max-width: 768px) {
    .vip-user-card {
        padding: 14px;
    }
    
    .vip-user-card .user-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .vip-user-card .user-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .vip-user-card .btn {
        width: 100%;
    }
}

/* Game Management */
@media (max-width: 768px) {
    .game-card {
        padding: 14px;
    }
    
    .game-card .game-info {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .game-card .game-icon {
        font-size: 32px;
    }
    
    .game-card .game-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
}

/* Site Settings */
@media (max-width: 768px) {
    .settings-section {
        padding: 16px;
    }
    
    .settings-section h4 {
        font-size: 14px;
    }
    
    .settings-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .settings-row label {
        width: 100%;
    }
    
    .settings-row input,
    .settings-row select,
    .settings-row textarea {
        width: 100%;
    }
}

/* Activity Log */
@media (max-width: 768px) {
    .activity-item {
        padding: 12px;
        flex-direction: column;
        gap: 8px;
    }
    
    .activity-item .activity-time {
        font-size: 10px;
    }
    
    .activity-item .activity-message {
        font-size: 12px;
    }
}


/* ==================== USER DASHBOARD MOBILE ==================== */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 0;
    }
    
    .dashboard-header {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .dashboard-header h1 {
        font-size: 22px;
        margin-bottom: 4px;
    }
    
    .dashboard-header p {
        font-size: 13px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* License card */
    .license-details {
        margin-top: 16px;
    }
    
    .detail-row {
        padding: 10px 0;
        font-size: 13px;
    }
    
    .detail-row .label {
        font-size: 12px;
    }
    
    .detail-row .value {
        font-size: 13px;
    }
    
    /* Status badges */
    .status-badge {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* Quick links */
    .quick-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .quick-links .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Discord link card */
    .discord-card {
        padding: 20px;
        text-align: center;
    }
    
    .discord-card .btn {
        width: 100%;
    }
}

/* ==================== TRIGGERBOT PAGE MOBILE COMPREHENSIVE ==================== */
@media (max-width: 768px) {
    /* Page header */
    .page-header {
        text-align: center;
    }
    
    /* Tabs - horizontal scroll */
    .settings-tabs {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 6px;
        padding: 0 0 10px 0;
        margin: 0 -12px 16px -12px;
        padding-left: 12px;
        padding-right: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .settings-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        flex-shrink: 0;
        padding: 10px 14px;
        font-size: 12px;
        white-space: nowrap;
        border-radius: 8px;
    }
    
    .tab-btn i {
        margin-right: 6px;
    }
    
    /* Tab content */
    .tab-content {
        padding: 0;
    }
    
    /* Settings grid inside tabs */
    .tab-content .settings-grid,
    .tab-content .grid-2,
    #tab-0 .settings-grid,
    #tab-1 .settings-grid,
    #tab-2 .settings-grid,
    #tab-3 .settings-grid,
    #tab-4 .settings-grid,
    #tab-5 .settings-grid,
    #tab-6 .settings-grid,
    #tab-7 .settings-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    /* Cards in triggerbot */
    .tab-content .card {
        margin-bottom: 12px;
    }
    
    .tab-content .card-header {
        padding: 12px 14px;
    }
    
    .tab-content .card-body {
        padding: 14px;
    }
    
    /* Form groups */
    .tab-content .form-group {
        margin-bottom: 14px;
    }
    
    .tab-content .form-group label {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    /* Hotkey grid */
    .hotkey-grid,
    div[style*="grid-template-columns: 1fr 1fr"][style*="gap: 15px"],
    div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    /* FOV Preview */
    .fov-preview-wrapper {
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    #fovPreview {
        min-width: 150px;
        max-width: 100%;
    }
    
    /* FOV stats */
    .fov-stats,
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
    
    .fov-stats > div {
        padding: 8px;
        font-size: 11px;
    }
    
    /* Color swatches container */
    #targetColors,
    #excludedColors {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .color-swatch {
        width: 32px;
        height: 32px;
    }
    
    /* Color input row */
    div[style*="display:flex"][style*="gap:8px"] {
        flex-wrap: wrap;
    }
    
    input[style*="width:100px"] {
        width: 80px !important;
    }
    
    /* Tolerance slider */
    .tolerance-slider,
    div[style*="display:flex"][style*="justify-content:space-between"][style*="margin-top:8px"] {
        font-size: 11px;
    }
    
    /* AI/Color toggle panels */
    #colorSettingsPanel,
    #aiSettingsPanel {
        margin-top: 16px;
    }
    
    #colorSettingsPanel .grid-2,
    #aiSettingsPanel .grid-2,
    #colorSettingsPanel div[style*="margin-top:20px"],
    #aiSettingsPanel div[style*="margin-top:20px"] {
        display: block !important;
    }
    
    #colorSettingsPanel .card,
    #aiSettingsPanel .card {
        margin-bottom: 12px;
    }
    
    /* AI settings inner grids */
    #aiSettingsPanel div[style*="display:grid"][style*="grid-template-columns:1fr 1fr"] {
        display: block !important;
    }
    
    #aiSettingsPanel div[style*="display:grid"][style*="grid-template-columns:1fr 1fr"] > div {
        margin-bottom: 14px;
    }
    
    /* Number inputs with fixed width */
    input[type="number"][style*="width:80px"] {
        width: 70px !important;
    }
    
    /* Info boxes */
    div[style*="background:rgba(99,102,241,0.1)"] {
        padding: 10px !important;
        font-size: 11px !important;
        line-height: 1.4;
    }
    
    div[style*="background:rgba(99,102,241,0.1)"] i {
        font-size: 12px !important;
    }
    
    /* Humanization tab sliders */
    .humanization-card .card-body {
        padding: 14px;
    }
    
    .slider-row {
        margin-bottom: 16px;
    }
    
    .slider-label {
        font-size: 12px;
    }
    
    /* Profiles tab */
    .profile-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .profile-item {
        padding: 10px;
        font-size: 12px;
    }
    
    .profile-item .profile-name {
        font-size: 12px;
    }
    
    .profile-item .profile-hotkey {
        font-size: 10px;
    }
    
    /* Community configs tab */
    .configs-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .config-card {
        padding: 14px;
    }
    
    .config-card .config-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .config-card .config-actions {
        width: 100%;
        display: flex;
        gap: 8px;
    }
    
    .config-card .config-actions .btn {
        flex: 1;
    }
    
    /* Save button at bottom */
    .save-btn-container {
        padding: 16px 0;
    }
    
    .save-btn-container .btn {
        width: 100%;
        padding: 14px;
        font-size: 15px;
    }
    
    /* Form switches */
    .form-switch {
        padding: 12px 0;
    }
    
    .form-check-inline {
        display: block;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .tab-btn {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .fov-stats {
        grid-template-columns: 1fr !important;
    }
    
    .color-swatch {
        width: 28px;
        height: 28px;
    }
    
    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ==================== ADMIN RESPONSIVE GRID CLASSES ==================== */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.admin-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Tablet */
@media (max-width: 1024px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 24px;
    }
    
    .admin-nav-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .admin-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}


/* ==================== ADMIN PAGES STYLE BLOCK OVERRIDES ==================== */

/* AI Models page */
.upload-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* HWID Management */
.hwid-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Settings page */
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* User detail */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* VIP Management */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

/* 3-column grid class */
.admin-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Tablet overrides */
@media (max-width: 1024px) {
    .upload-form {
        grid-template-columns: 1fr;
    }
    
    .hwid-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile overrides */
@media (max-width: 768px) {
    .upload-form,
    .hwid-grid,
    .form-grid,
    .form-grid-2,
    .info-grid,
    .stats-row,
    .admin-grid-3 {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .stats-row {
        margin-bottom: 16px;
    }
}


/* ==================== RESPONSIVE GRID UTILITY CLASSES ==================== */
.responsive-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.responsive-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.responsive-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .responsive-grid-2,
    .responsive-grid-3,
    .responsive-grid-4,
    .hotkey-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}


/* ==================== TRIGGERBOT GRID FIXES ==================== */
/* Override grid-2 to be responsive */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.ai-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .ai-settings-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .ai-settings-grid .form-group {
        margin-bottom: 12px !important;
    }
}


/* ==================== ADMIN STATS CARDS MOBILE OPTIMIZATION ==================== */
@media (max-width: 768px) {
    /* Make stats cards horizontal layout on mobile */
    .admin-stats-grid > div {
        padding: 16px !important;
    }
    
    .admin-stats-grid > div > div {
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }
    
    /* Icon container */
    .admin-stats-grid > div > div > div:first-child {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        margin-right: 16px;
    }
    
    .admin-stats-grid > div > div > div:first-child i {
        font-size: 18px !important;
    }
    
    /* Text container */
    .admin-stats-grid > div > div > div:last-child {
        text-align: left !important;
    }
    
    .admin-stats-grid > div > div > div:last-child > div:first-child {
        font-size: 24px !important;
        line-height: 1.2 !important;
    }
    
    .admin-stats-grid > div > div > div:last-child > div:last-child {
        font-size: 12px !important;
    }
}

