/* ============================================
   NETOXACE MODERN CYBERTECH DASHBOARD CSS
   Clean, Professional, Fully Responsive
   ============================================ */

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

:root {
    /* Modern Cyber Color Palette */
    --primary: #00f3ff;
    --primary-dark: #0066ff;
    --primary-glow: rgba(0, 243, 255, 0.4);
    --secondary: #ff00ff;
    --secondary-dark: #b300b3;
    --secondary-glow: rgba(255, 0, 255, 0.3);
    --accent: #00ffaa;
    --accent-dark: #00cc88;
    --accent-glow: rgba(0, 255, 170, 0.3);
    
    /* Background Layers */
    --bg-main: #0a0a14;
    --bg-darker: #05050c;
    --bg-card: rgba(20, 25, 40, 0.85);
    --bg-card-hover: rgba(30, 35, 50, 0.95);
    --bg-sidebar: rgba(10, 15, 30, 0.98);
    
    /* UI Elements */
    --border-color: rgba(0, 243, 255, 0.25);
    --border-light: rgba(0, 243, 255, 0.1);
    --text-main: #ffffff;
    --text-dim: #a0b3c2;
    --text-glow: rgba(224, 247, 255, 0.8);
    
    /* Status Colors */
    --success: #00ff88;
    --warning: #ffaa00;
    --danger: #ff3366;
    --info: #00f3ff;
    
    /* Effects */
    --shadow-glow: 0 0 20px rgba(0, 243, 255, 0.15);
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.6);
    --sidebar-width: 280px;
    --header-height: 70px;
}

/* ============ BASE STYLES ============ */
body.cyber-dashboard-body {
    background: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
    overflow-y: auto; /* Ensure scrolling is possible */
}

/* Ensure all pages are scrollable */
.cyber-container, .cyber-layout, .cyber-main-wrapper {
    height: auto !important;
    min-height: 100vh;
}

/* Animated Background Effect */
body.cyber-dashboard-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 102, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ============ MAIN LAYOUT STRUCTURE ============ */
.cyber-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
}

.cyber-layout {
    display: flex;
    flex: 1;
    width: 100%;
}

/* Sidebar Navigation */
.cyber-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-light);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1001;
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cyber-logo-desktop {
    padding: 30px;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}

.cyber-logo-desktop span {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 3px;
    text-shadow: 0 0 10px var(--primary-glow);
}

.cyber-logo-desktop img {
    max-height: 40px;
}

.cyber-nav {
    flex: 1;
    padding: 20px 15px;
    overflow-y: auto;
}

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

.cyber-nav li {
    margin-bottom: 8px;
}

.cyber-nav a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-dim);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.cyber-nav a .icon {
    margin-right: 15px;
    font-size: 18px;
    width: 24px;
    text-align: center;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.cyber-nav a:hover .icon {
    transform: scale(1.2) rotate(10deg);
}

.cyber-nav a:hover {
    background: rgba(0, 243, 255, 0.05);
    color: var(--primary);
    border-color: var(--border-light);
}

.cyber-nav a.active {
    background: rgba(0, 243, 255, 0.1);
    color: var(--primary);
    border-color: var(--border-color);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

.cyber-nav a.active .icon {
    text-shadow: 0 0 10px var(--primary);
}

.nav-logout {
    margin-top: 20px;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}

.nav-logout a {
    color: var(--danger) !important;
}

.nav-logout a:hover {
    background: rgba(255, 51, 102, 0.1) !important;
    border-color: rgba(255, 51, 102, 0.2);
}

/* Content Area Wrapper */
.cyber-main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: all 0.4s ease;
}

/* Top Bar */
.cyber-topbar {
    height: var(--header-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.page-title-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 2s infinite;
}

.page-title-area h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.topbar-user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-text {
    text-align: right;
}

.user-text .name {
    display: block;
    font-weight: 700;
    color: var(--text-main);
    font-size: 14px;
}

.user-text .status {
    font-size: 10px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cyber-avatar {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    border: 2px solid var(--primary);
    object-fit: cover;
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Main Content Padding */
.cyber-content {
    padding: 40px;
    flex: 1;
}

/* Mobile Header */
.cyber-header-mobile {
    display: none;
    height: var(--header-height);
    padding: 0 20px;
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    backdrop-filter: blur(15px);
    justify-content: space-between;
    align-items: center;
}

.cyber-nav-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* ============ WELCOME SECTION ============ */
.welcome-header {
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-avatar-large {
    position: relative;
}

.profile-avatar-large img {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    border: 2px solid var(--primary);
    object-fit: cover;
    box-shadow: 0 0 20px var(--primary-glow);
}

.avatar-status-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border: 3px solid var(--bg-card);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

.user-welcome h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--text-main);
}

.security-level {
    display: inline-block;
    background: rgba(0, 243, 255, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--border-light);
}

/* ============ CARDS ============ */
.cyber-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-dark);
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.cyber-card h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ============ GRIDS & STATS ============ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.home-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.stat-icon {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 15px;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============ QUICK ACTIONS ============ */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.action-button {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.action-button:hover {
    background: rgba(0, 243, 255, 0.05);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.action-icon {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 10px;
}

.action-button h4 {
    font-size: 13px;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 5px;
}

.action-button p {
    font-size: 11px;
    color: var(--text-dim);
}

/* ============ ACTIVITY LIST ============ */
.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.activity-icon {
    width: 36px;
    height: 36px;
    background: rgba(0, 243, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.activity-content h4 {
    font-size: 14px;
    font-weight: 600;
}

.activity-content p {
    font-size: 12px;
    color: var(--text-dim);
}

.activity-time {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-dim);
}

/* ============ PLANS GRID ============ */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
}

.service-item:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

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

.service-header h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 15px;
    color: var(--text-main);
}

/* ============ PROGRESS LOGS ============ */
.progress-log-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.progress-log-item:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.progress-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

.progress-log-header h3 {
    font-size: 16px;
    color: var(--primary);
}

.progress-log-header small {
    color: var(--secondary);
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
}

.progress-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.progress-media-grid img, .progress-media-grid video {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.progress-media-grid img:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* ============ TABLES ============ */
.cyber-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cyber-table, .plans-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.cyber-table th, .plans-table th {
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.cyber-table td, .plans-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    white-space: nowrap;
}

.cyber-table tr:hover td, .plans-table tr:hover td {
    background: rgba(0, 243, 255, 0.02);
}

/* ============ BUTTONS ============ */
.cyber-button {
    background: linear-gradient(45deg, var(--primary-dark), var(--primary));
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: auto;
    margin: 0;
    gap: 10px;
    transition: all 0.3s ease;
}

.cyber-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.4);
}

/* ============ CHAT INTERFACE ============ */
.chat-container {
    display: flex;
    height: 600px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
}

.chat-sidebar {
    width: 280px;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.1);
}

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

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    position: relative;
}

.message.sent {
    align-self: flex-end;
    background: var(--primary-dark);
    color: #fff;
    border-bottom-right-radius: 2px;
}

.message.received {
    align-self: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-bottom-left-radius: 2px;
}

.message-time {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 5px;
    display: block;
}

.chat-input-container {
    padding: 20px;
    border-top: 1px solid var(--border-light);
}

.chat-input-wrapper {
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: #fff;
    padding: 12px;
    resize: none;
}

/* ============ LOGIN & REGISTER ============ */
.login-container, .register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.cyber-terminal {
    width: 100%;
    max-width: 500px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5), var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

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

.terminal-header h1 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary);
    letter-spacing: 5px;
    margin-bottom: 5px;
}

.terminal-header p {
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 2px;
}

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

.form-label {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.cyber-input {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: #fff;
    padding: 12px 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.cyber-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

/* Agreement Styling */
#agreement_text, #agreementModalContent, #agreementContent {
    line-height: 1.8;
    color: var(--text-dim);
}

#agreement_text h2, #agreementModalContent h2, #agreementContent h2,
#agreement_text h3, #agreementModalContent h3, #agreementContent h3 {
    color: var(--primary);
    margin-top: 20px;
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#agreement_text p, #agreementModalContent p, #agreementContent p {
    margin-bottom: 15px;
}

#agreement_text strong, #agreementModalContent strong, #agreementContent strong {
    color: var(--text-main);
}

.cyber-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.cyber-link:hover {
    color: #fff;
    text-shadow: 0 0 5px var(--primary);
}

/* Registration Grid Layout */
.register-container .cyber-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0 !important;
}

.register-container .cyber-form .form-group {
    margin-bottom: 10px;
}

/* Make Cypher Key Full Width */
@media (max-width: 580px) {
    .register-container .cyber-form {
        flex-direction: column;
    }
}

.form-hint {
    font-size: 10px;
    margin: 10px;
}

/* Spacing and Centering for bottom elements */

.security-checklist {
    margin-top: 5px;
}

.cyber-button {
    margin: 15px auto 0;
}

/* Styled Checkbox and Alignment */
.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.check-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    border: 2px solid var(--primary);
    border-radius: 50%;
    background: rgba(0, 243, 255, 0.05);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.check-item input[type="checkbox"]:checked {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.check-item input[type="checkbox"]:checked::after {
    content: '✓';
    color: #000;
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.check-item label {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1;
    cursor: pointer;
}

/* Cybertech grid layout with glow effects */
.terminal-footer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    position: relative;
}

.terminal-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary), 
        var(--secondary),
        transparent);
    opacity: 0.5;
}

.terminal-footer .cyber-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: rgba(20, 25, 40, 0.5);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    text-decoration: none;
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.terminal-footer .cyber-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    transition: 0.5s;
}

.terminal-footer .cyber-link:hover::before {
    left: 100%;
}

.terminal-footer .cyber-link:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    transform: translateY(-3px);
}

.terminal-footer .cyber-link i {
    font-size: 14px;
}

/* Utils */
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.text-center { text-align: center; }

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

/* Status dots */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}
.status-dot.active { background: var(--success); box-shadow: 0 0 8px var(--success); }
.status-dot.pending { background: var(--warning); }
.status-dot.inactive { background: var(--danger); }

/* Progress */
.progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* ============ RESPONSIVE DESIGN ============ */

/* Tablet and Small Desktop */
@media (max-width: 1024px) {
    .cyber-sidebar {
        transform: translateX(-100%);
        width: 260px;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 2000;
    }
    
    .cyber-nav {
        padding: 20px 12px;
    }

    .cyber-nav a {
        padding: 12px 15px;
        font-size: 12px;
    }

    .cyber-nav a .icon {
        margin-right: 12px;
        font-size: 16px;
    }
    
    .cyber-sidebar.active {
        transform: translateX(0);
        box-shadow: 0 0 50px rgba(0,0,0,0.8);
    }
    
    .cyber-main-wrapper {
        margin-left: 0;
        width: 100%;
    }
    
    .cyber-topbar {
        padding: 0 20px;
    }

    .cyber-header-mobile {
        display: flex;
    }
    
    .cyber-content {
        padding: 30px 25px;
        margin-top: 70px; /* Space for fixed mobile header */
    }

    .home-bottom-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Stats Grid Slider for Tablet */
    .stats-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 15px 5px 30px;
        -webkit-overflow-scrolling: touch;
        margin: 0 -25px;
        padding-left: 25px;
        padding-right: 25px;
        scroll-padding: 25px;
    }
    
    .stats-grid::-webkit-scrollbar {
        height: 6px;
    }
    
    .stats-grid::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 3px;
        box-shadow: 0 0 10px var(--primary-glow);
    }
    
    .stat-card {
        flex: 0 0 280px;
        scroll-snap-align: start;
        min-height: 180px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .stat-value {
        font-size: 28px;
    }
}

/* Mobile Phones */
@media (max-width: 768px) {
    /* Layout Adjustments */
    .cyber-sidebar {
        width: 85%;
        max-width: 300px;
        z-index: 2001;
    }
    
    .cyber-topbar {
        display: none; /* Hide desktop topbar on mobile */
    }
    
    .cyber-content {
        padding: 20px 15px;
        margin-top: 60px; /* Account for fixed mobile header */
    }
    
    .cyber-header-mobile {
        display: flex;
        height: 60px;
        padding: 0 15px;
        background: var(--bg-sidebar);
        border-bottom: 1px solid var(--border-light);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1002;
        backdrop-filter: blur(15px);
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-logo {
        font-family: 'Orbitron', sans-serif;
        font-size: 18px;
        font-weight: 900;
        color: var(--primary);
        letter-spacing: 2px;
        text-shadow: 0 0 10px var(--primary-glow);
    }
    
    .mobile-logo img {
        max-height: 30px;
    }
    
    .mobile-avatar {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        border: 2px solid var(--primary);
        object-fit: cover;
        box-shadow: 0 0 10px var(--primary-glow);
    }
    
    .cyber-nav-toggle {
        background: transparent;
        border: 1px solid var(--border-color);
        color: var(--primary);
        width: 40px;
        height: 40px;
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        z-index: 1003;
    }
    
    /* Typography */
    .user-welcome h1 {
        font-size: 22px;
        text-align: center;
    }
    
    .page-title-area h1 {
        font-size: 16px;
    }
    
    .cyber-card h2 {
        font-size: 16px;
    }
    
    /* Welcome Section */
    .welcome-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .profile-avatar-large img {
        width: 80px;
        height: 80px;
    }
    
    /* Stats Grid Slider for Mobile */
    .stats-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding: 10px 5px 25px;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding-left: 15px;
        padding-right: 15px;
        scroll-padding: 15px;
    }
    
    .stats-grid::-webkit-scrollbar {
        height: 4px;
    }
    
    .stats-grid::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, var(--primary), var(--accent));
        border-radius: 2px;
    }
    
    .stat-card {
        flex: 0 0 85%;
        min-width: 280px;
        scroll-snap-align: center;
        padding: 20px;
        margin-bottom: 0;
    }
    
    .stat-value {
        font-size: 26px;
    }
    
    /* Quick Actions */
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .action-button {
        padding: 15px 8px;
    }
    
    /* Active Services Grid */
    .services-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding: 10px 5px 20px;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .services-grid::-webkit-scrollbar {
        height: 4px;
    }
    
    .services-grid::-webkit-scrollbar-thumb {
        background: var(--secondary);
        border-radius: 2px;
    }
    
    .service-item {
        flex: 0 0 85%;
        scroll-snap-align: center;
        min-width: 280px;
        padding: 20px;
    }
    
    /* Tables */
    .cyber-table-container, 
    .plans-table-container {
        margin: 0 -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .cyber-table, 
    .plans-table {
        min-width: 700px;
    }
    
    .cyber-table th,
    .cyber-table td,
    .plans-table th,
    .plans-table td {
        padding: 12px 10px;
        font-size: 13px;
    }
    
    /* Progress Media Grid */
    .progress-media-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    
    /* Chat Interface */
    .chat-container {
        flex-direction: column;
        height: 500px;
    }
    
    .chat-sidebar {
        width: 100%;
        height: 150px;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }
    
    /* Progress Logs */
    .progress-log-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .progress-log-header small {
        align-self: flex-end;
    }
    
    /* Activity Items */
    .activity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .activity-time {
        margin-left: 0;
        align-self: flex-end;
    }
    
    /* Form Elements */
    .cyber-button {
        padding: 12px 20px;
        font-size: 11px;
        width: 100%;
    }
    
    .cyber-input {
        padding: 12px;
    }

    /* Add Feature Input Mobile Sizing */
    .feature-item .cyber-input {
        flex: 1;
        width: 100%;
        min-width: 0;
    }

    #user_add_feature {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
    }
}

/* Small Phones */
@media (max-width: 480px) {
    .cyber-content {
        padding: 15px 12px;
        margin-top: 60px;
    }
    
    .cyber-card {
        padding: 20px 15px;
    }
    
    .stats-grid {
        gap: 12px;
        margin: 0 -12px;
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .stat-card {
        flex: 0 0 90%;
        min-width: 260px;
        padding: 18px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .service-item {
        flex: 0 0 90%;
        min-width: 260px;
    }
    
    .message {
        max-width: 90%;
        font-size: 13px;
    }
    
    .chat-input-container {
        padding: 15px;
    }
    
    .chat-messages {
        padding: 15px;
    }
    
    .cyber-terminal {
        padding: 20px 15px;
    }
    
    .terminal-header h1 {
        font-size: 22px;
        letter-spacing: 3px;
    }
    
    .cyber-header-mobile {
        padding: 0 12px;
    }
    
    .mobile-logo {
        font-size: 16px;
        letter-spacing: 1px;
    }
    
    .mobile-logo img {
        max-height: 25px;
    }
    
    .mobile-avatar {
        width: 32px;
        height: 32px;
    }
}

/* Fix for overflow issues on mobile */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    
    body.cyber-dashboard-body {
        position: relative;
        overflow-x: hidden;
    }
    
    /* Add overlay when sidebar is open */
    .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1999;
    backdrop-filter: blur(5px);
    }

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

/* Landscape Mode */
@media (max-height: 600px) and (orientation: landscape) {
    .cyber-sidebar {
        overflow-y: auto;
    }
    
    .cyber-nav {
        padding: 15px 10px;
    }
    
    .cyber-nav li {
        margin-bottom: 5px;
    }
    
    .cyber-nav a {
        padding: 10px 15px;
        font-size: 11px;
    }
    
    .chat-container {
        height: 400px;
    }
    
    .stats-grid {
        padding-bottom: 20px;
    }
    
    .stat-card {
        min-height: 150px;
    }
}

/* Add JavaScript toggle functionality style */
.cyber-nav-toggle.menu-open i {
    transform: rotate(90deg);
}

/* Smooth transitions */
.cyber-sidebar,
.cyber-main-wrapper,
.cyber-content {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}



/* ============ MOBILE SLIDER FOR STATS GRID ============ */

/* For tablets and below */
@media (max-width: 1024px) {
    .stats-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 10px 5px 30px;
        -webkit-overflow-scrolling: touch;
        margin: 0 -20px;
        padding-left: 20px;
        padding-right: 20px;
        scroll-padding: 20px;
    }
    
    .stats-grid::-webkit-scrollbar {
        height: 6px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 3px;
    }
    
    .stats-grid::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 3px;
        box-shadow: 0 0 10px var(--primary-glow);
    }
    
    .stats-grid::-webkit-scrollbar-track {
        background: rgba(0, 243, 255, 0.1);
        border-radius: 3px;
    }
    
    .stat-card {
        flex: 0 0 calc(50% - 10px);
        min-width: 250px;
        scroll-snap-align: start;
        margin-bottom: 0;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    /* Add navigation dots for mobile */
    .stats-grid::after {
        content: '';
        position: absolute;
        bottom: 15px;
        left: 0;
        right: 0;
        height: 4px;
        display: flex;
        justify-content: center;
        gap: 8px;
        pointer-events: none;
    }
    
    .stat-card:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: var(--shadow-glow);
    }
}

/* For mobile phones */
@media (max-width: 768px) {
    .stats-grid {
        gap: 15px;
        padding: 10px 5px 25px;
        margin: 0 -15px;
        padding-left: 15px;
        padding-right: 15px;
        scroll-padding: 15px;
    }
    
    .stat-card {
        flex: 0 0 calc(100% - 30px);
        min-width: 280px;
        padding: 20px;
    }
    
    /* Hide scrollbar on mobile for cleaner look */
    .stats-grid::-webkit-scrollbar {
        height: 4px;
    }
    
    .stats-grid::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, var(--primary), var(--accent));
    }
    
    /* Add visual indicator for scrollable content */
    .stats-grid::before {
        content: '';
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        background: linear-gradient(90deg, transparent, var(--primary-dark));
        border-radius: 50%;
        opacity: 0.5;
        pointer-events: none;
        z-index: 10;
    }
}

/* For small phones */
@media (max-width: 480px) {
    .stats-grid {
        gap: 12px;
        padding: 10px 5px 20px;
        margin: 0 -12px;
        padding-left: 12px;
        padding-right: 12px;
        scroll-padding: 12px;
    }
    
    .stat-card {
        flex: 0 0 calc(100% - 24px);
        min-width: 260px;
        padding: 18px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 11px;
    }
}

/* Add swipe animation feedback */
@keyframes swipeHint {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

@media (max-width: 768px) {
    .stats-grid:first-child {
        animation: swipeHint 2s ease-in-out 2;
        animation-delay: 1s;
    }
}

/* Ensure the slider doesn't interfere with other content */
@media (max-width: 768px) {
    .cyber-card + .stats-grid {
        margin-top: 20px;
    }
}

/* Add gradient fade effect to edges on mobile */
@media (max-width: 768px) {
    .stats-grid-container {
        position: relative;
        overflow: hidden;
    }
    
    .stats-grid-container::before,
    .stats-grid-container::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 30px;
        pointer-events: none;
        z-index: 5;
    }
    
    .stats-grid-container::before {
        left: 0;
        background: linear-gradient(90deg, var(--bg-main), transparent);
    }
    
    .stats-grid-container::after {
        right: 0;
        background: linear-gradient(90deg, transparent, var(--bg-main));
    }
}


/* ============ HIDE MENU ICON ON DESKTOP ============ */
@media (min-width: 769px) {
    .cyber-nav-toggle {
        display: none !important;
    }
}

/* ============ SIMPLE MENU SCROLLBAR ============ */
.cyber-nav {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.cyber-nav::-webkit-scrollbar {
    width: 4px;
}

.cyber-nav::-webkit-scrollbar-track {
    background: transparent;
}

.cyber-nav::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.cyber-nav::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

/* Hide scrollbar on desktop when not hovering */
@media (min-width: 769px) {
    .cyber-nav {
        scrollbar-color: transparent transparent;
    }
    
    .cyber-nav:hover {
        scrollbar-color: var(--primary) transparent;
    }
    
    .cyber-nav::-webkit-scrollbar-thumb {
        background: transparent;
    }
    
    .cyber-nav:hover::-webkit-scrollbar-thumb {
        background: var(--primary);
    }
}


/* ============ IMPROVED COMPACT MOBILE WELCOME SECTION ============ */
@media (max-width: 768px) {
    .welcome-header {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 12px 15px;
        padding: 18px;
        background: var(--bg-card);
        border-radius: 16px;
        border: 1px solid var(--border-light);
        margin-top: 5px;
        position: relative;
        overflow: hidden;
        align-items: start;
    }
    
    /* Add subtle corner accent */
    .welcome-header::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, transparent 50%, var(--primary) 50%);
        opacity: 0.1;
        pointer-events: none;
    }
    
    /* Avatar in first column, spans both rows */
    .profile-avatar-large {
        grid-column: 1;
        grid-row: 1 / span 2;
        margin-top: 4px; /* Align with text baseline */
    }
    
    .profile-avatar-large img {
        width: 65px;
        height: 65px;
        border: 2px solid var(--primary);
        box-shadow: 0 0 15px var(--primary-glow);
    }
    
    .avatar-status-badge {
        width: 16px;
        height: 16px;
        border-width: 2px;
        bottom: 2px;
        right: 2px;
        box-shadow: 0 0 10px var(--accent);
    }
    
    /* User name and security level in second column, first row */
    .user-welcome {
        grid-column: 2;
        grid-row: 1;
        text-align: left; /* Force left alignment */
    }
    
    .user-welcome h1 {
        font-size: 18px;
        margin-bottom: 6px;
        color: var(--text-main);
        font-family: 'Orbitron', sans-serif;
        font-weight: 700;
        letter-spacing: 0.5px;
        line-height: 1.2;
        text-align: left !important; /* Force left alignment */
        display: block; /* Ensure it's block-level for text-align */
        width: 100%; /* Take full width of container */
    }
    
    /* Ensure name container is left-aligned */
    .user-welcome h1,
    .user-welcome .security-level {
        text-align: left;
        justify-content: flex-start;
        margin-left: 0;
        margin-right: auto;
    }
    
    .security-level {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: linear-gradient(90deg, 
            rgba(0, 243, 255, 0.1) 0%, 
            rgba(0, 243, 255, 0.05) 100%);
        color: var(--primary);
        padding: 5px 12px;
        border-radius: 12px;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.2px;
        border: 1px solid rgba(0, 243, 255, 0.2);
        backdrop-filter: blur(5px);
        text-align: left !important; /* Force left alignment */
        float: left; /* Force left positioning */
        clear: both; /* Clear any floats */
    }
    
    .security-level::before {
        content: '🛡️';
        font-size: 10px;
        filter: drop-shadow(0 0 3px var(--primary));
    }
    
    /* Welcome message - SIMPLE TEXT VERSION */
    .user-welcome p {
        grid-column: 1 / span 2;
        grid-row: 2;
        font-size: 13px;
        line-height: 1.5;
        color: var(--text-dim);
        margin-top: 8px;
        padding: 0;
        background: none;
        border: none;
        text-align: left;
        position: relative;
        display: block;
        width: 100%;
        clear: both; /* Clear the floated security badge */
    }
    
    /* Remove any terminal indicators or special formatting */
    .user-welcome p::before,
    .user-welcome p::after {
        display: none;
    }
    
    /* Pulsing status animation */
    @keyframes status-pulse {
        0%, 100% { 
            transform: scale(1);
            box-shadow: 0 0 8px var(--accent);
        }
        50% { 
            transform: scale(1.1);
            box-shadow: 0 0 12px var(--accent);
        }
    }
    
    .avatar-status-badge {
        animation: status-pulse 2s ease-in-out infinite;
    }
}

/* Small phones optimization */
@media (max-width: 480px) {
    .welcome-header {
        padding: 15px;
        gap: 10px 12px;
    }
    
    .profile-avatar-large img {
        width: 60px;
        height: 60px;
    }
    
    .user-welcome h1 {
        font-size: 17px;
        margin-bottom: 5px;
        text-align: left !important;
    }
    
    .security-level {
        padding: 4px 10px;
        font-size: 9px;
        letter-spacing: 1px;
        text-align: left !important;
        float: left;
    }
    
    .user-welcome p {
        font-size: 12px;
        margin-top: 10px;
        text-align: left;
    }
    
    /* Adjust grid for very small screens */
    @media (max-width: 360px) {
        .welcome-header {
            grid-template-columns: 55px 1fr;
        }
        
        .profile-avatar-large img {
            width: 55px;
            height: 55px;
        }
    }
}

/* Fix for any center alignment in desktop CSS that might be affecting mobile */
.user-welcome {
    text-align: left !important;
}

.user-welcome h1,
.user-welcome .security-level,
.user-welcome p {
    text-align: left !important;
}

/* Ensure mobile styles override any desktop centering */
@media (max-width: 768px) {
    .user-welcome,
    .user-welcome h1,
    .user-welcome .security-level,
    .user-welcome p {
        text-align: left !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        margin-left: 0 !important;
    }
    
    /* Remove any centering from desktop */
    .welcome-header {
        justify-content: flex-start;
        align-items: flex-start;
    }
}


/* Quick spacing fix */
@media (max-width: 768px) {
    .cyber-content {
        padding-top: 35px !important;
    }
}

/* ============ SIMPLE FIX: SMALLER CARDS & NO SCROLLBAR ============ */
@media (max-width: 768px) {
    /* Reduce stats card size */
    .stats-grid {
        gap: 10px !important;
        padding: 5px 5px 10px 5px !important;
        margin: 0 -10px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .stat-card {
        flex: 0 0 45% !important;
        min-width: 150px !important;
        padding: 15px !important;
        min-height: 130px !important;
    }
    
    .stat-value {
        font-size: 22px !important;
    }
    
    .stat-label {
        font-size: 10px !important;
    }
    
    /* COMPLETELY REMOVE SCROLLBAR */
    .stats-grid::-webkit-scrollbar {
        display: none !important;
    }
    
    .stats-grid {
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }
}

/* For very small phones */
@media (max-width: 480px) {
    .stat-card {
        flex: 0 0 44% !important;
        min-width: 140px !important;
        padding: 12px !important;
        min-height: 120px !important;
    }
    
    .stat-value {
        font-size: 20px !important;
    }
}

/* ============ QUICK ACTIONS GRID FOR MOBILE ============ */
@media (max-width: 768px) {
    /* Make quick actions a proper grid */
    .quick-actions-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    /* Adjust action button sizing */
    .action-button {
        padding: 18px 10px !important;
        min-height: 100px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 12px !important;
        border: 1px solid var(--border-light) !important;
        background: rgba(0, 0, 0, 0.2) !important;
        transition: all 0.2s ease !important;
    }
    
    /* Action icon styling */
    .action-icon {
        font-size: 22px !important;
        margin-bottom: 12px !important;
        color: var(--primary) !important;
        transition: all 0.2s ease !important;
    }
    
    /* Action text styling */
    .action-button h4 {
        font-size: 12px !important;
        font-family: 'Orbitron', sans-serif !important;
        font-weight: 700 !important;
        margin-bottom: 5px !important;
        color: var(--text-main) !important;
        text-align: center !important;
        line-height: 1.3 !important;
    }
    
    .action-button p {
        font-size: 10px !important;
        color: var(--text-dim) !important;
        text-align: center !important;
        line-height: 1.3 !important;
        max-width: 120px !important;
        margin: 0 auto !important;
    }
    
    /* Hover/Active effects for mobile */
    .action-button:active {
        background: rgba(0, 243, 255, 0.05) !important;
        border-color: var(--primary) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 5px 15px rgba(0, 243, 255, 0.1) !important;
    }
    
    .action-button:active .action-icon {
        transform: scale(1.1) !important;
        color: var(--accent) !important;
    }
}

/* For small phones - adjust grid to 2 columns */
@media (max-width: 480px) {
    .quick-actions-grid {
        gap: 10px !important;
    }
    
    .action-button {
        padding: 15px 8px !important;
        min-height: 90px !important;
    }
    
    .action-icon {
        font-size: 20px !important;
        margin-bottom: 10px !important;
    }
    
    .action-button h4 {
        font-size: 11px !important;
    }
    
    .action-button p {
        font-size: 9px !important;
        max-width: 100px !important;
    }
}

/* For very small phones, you could switch to single column */
@media (max-width: 360px) {
    .quick-actions-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    
    .action-button {
        flex-direction: row !important;
        justify-content: flex-start !important;
        padding: 12px 15px !important;
        min-height: auto !important;
        gap: 15px !important;
    }
    
    .action-icon {
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
    }
    
    .action-button h4,
    .action-button p {
        text-align: left !important;
    }
    
    .action-button p {
        max-width: none !important;
    }
}

/* Optional: Add equal height for all action buttons */
@media (max-width: 768px) {
    .quick-actions-grid {
        align-items: stretch !important;
    }
    
    .action-button {
        height: 100% !important;
    }
}




/* ============ REMOVE SCROLLBAR FROM ACTIVE SERVICES ============ */
@media (max-width: 768px) {
    /* Hide scrollbar for Active Services grid */
    .services-grid::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
    
    .services-grid {
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
        scrollbar-color: transparent transparent !important;
    }
    
    /* Remove any scroll indicators or lines */
    .services-grid::before,
    .services-grid::after,
    .services-grid::scrollbar,
    .services-grid::scrollbar-track,
    .services-grid::scrollbar-thumb {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Ensure no overflow indicators show */
    .services-grid {
        overflow: -moz-scrollbars-none !important;
        overflow-y: hidden !important;
    }
    
    /* Adjust padding to remove scrollbar space */
    .services-grid {
        padding: 5px 5px 10px 5px !important;
        margin: 0 -10px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Make service items display properly without scroll */
    .service-item {
        flex: 0 0 85% !important;
        scroll-snap-align: center !important;
    }
}


/* ============ SIDE-BY-SIDE FIX FOR DASHBOARD ============ */
.home-bottom-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (min-width: 1025px) {
    .home-bottom-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
    }

    .home-bottom-grid .cyber-card:first-child {
        grid-column: 1;
        grid-row: 1;
    }

    .home-bottom-grid .cyber-card:last-child {
        grid-column: 2;
        grid-row: 1;
    }

    .home-bottom-grid .cyber-card {
        height: 100%;
        display: flex;
        flex-direction: column;
        margin-bottom: 0;
    }

    .home-bottom-grid .services-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
        flex: 1;
    }

    .home-bottom-grid .activity-list {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .home-bottom-grid .service-item {
        margin-bottom: 0;
    }

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

@media (min-width: 769px) and (max-width: 1024px) {
    .home-bottom-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }

    .home-bottom-grid .cyber-card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .home-bottom-grid .services-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
        flex: 1;
    }

    .home-bottom-grid .activity-list {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .home-bottom-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .home-bottom-grid .services-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
}
/* ============ DATATABLES THEME MATCHING ============ */
.cyber-table-container {
    width: 100%;
    margin-top: 10px;
}

.cyber-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
    background: transparent !important;
    border: none !important;
}

.cyber-table thead th {
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--text-dim) !important;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2px;
    padding: 15px 20px !important;
    text-align: left;
    font-weight: 700;
    border: none !important;
}

.cyber-table td {
    background: rgba(255, 255, 255, 0.02);
    padding: 15px 20px !important;
    border-top: 1px solid var(--border-light) !important;
    border-bottom: 1px solid var(--border-light) !important;
    color: var(--text);
    border-left: none !important;
    border-right: none !important;
}

.cyber-table tr {
    background: transparent !important;
}

.table-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-end;
}

.table-header input {
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    color: var(--primary);
    padding: 10px 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    outline: none;
    width: 250px;
    transition: all 0.3s ease;
}

.table-header input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

/* Include Feature Switch Styling */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 243, 255, 0.05);
  transition: .4s;
  border: 1px solid var(--border-color);
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 3px;
  background-color: var(--text-dim);
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

input:checked + .slider {
  background-color: rgba(0, 243, 255, 0.2);
  border-color: var(--primary);
}

input:focus + .slider {
  box-shadow: 0 0 15px var(--primary-glow);
}

input:checked + .slider:before {
  transform: translateX(28px);
  background-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.slider.round {
  border-radius: 30px;
}

.slider.round:before {
  border-radius: 50%;
}

.table-footer {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.dataTables_paginate .paginate_button {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-light) !important;
    color: var(--text) !important;
    padding: 8px 15px !important;
    margin: 0 5px;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dataTables_paginate .paginate_button.current {
    background: var(--primary) !important;
    color: var(--bg-dark) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 10px var(--primary);
}

.dataTables_paginate .paginate_button:hover:not(.current) {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.dataTables_info {
    display: none;
}

/* ============ CYBERTECH POPUP STYLES ============ */
.cyber-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.cyber-popup {
    width: 90%;
    max-width: 450px;
    padding: 0 !important;
    border: 1px solid var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-card) !important;
}

.cyber-popup-header {
    padding: 15px 25px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cyber-popup-header h3 {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--primary);
}

.cyber-popup-close {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.cyber-popup-close:hover {
    color: var(--primary);
}

.cyber-popup-content {
    padding: 30px 25px;
    text-align: center;
}

.cyber-popup-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.cyber-popup-icon.success { color: var(--success); text-shadow: 0 0 10px var(--success); }
.cyber-popup-icon.error { color: var(--danger); text-shadow: 0 0 10px var(--danger); }
.cyber-popup-icon.warning { color: var(--warning); text-shadow: 0 0 10px var(--warning); }

#nerodoxPopupMessage {
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.6;
}

.cyber-popup-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.cyber-popup.error-style { border-color: var(--danger); box-shadow: 0 0 30px rgba(255, 51, 102, 0.3); }
.cyber-popup.success-style { border-color: var(--success); box-shadow: 0 0 30px rgba(0, 255, 136, 0.3); }
.cyber-popup.warning-style { border-color: var(--warning); box-shadow: 0 0 30px rgba(255, 170, 0, 0.3); }

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

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

@media (max-width: 480px) {
    .cyber-popup {
        width: 95%;
    }
}
