@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

:root {
    /* Meta / ميتا - Futuristic Tech Identity */
    --bg-main: #060b18; /* unified dark navy */
    --bg-card: rgba(13, 21, 38, 0.72);
    --bg-card-hover: rgba(13, 21, 38, 0.92);
    --bg-sidebar: #0a101e;
    
  --bg-tertiary: rgba(255, 255, 255, 0.04);
    --bg-hover: rgba(143, 118, 255, 0.1);
    
    /* Meta Brand Colors */
  --accent-blue: #dcd3ff;
    --accent-cyan: #8f76ff;
    --accent-green: #8f76ff;
  --accent-purple: #6f58ff;
  --accent-violet: #c7b6ff;
    --accent-magenta: #a994ff;

  --text-main: #e6edf7;
  --text-muted: rgba(230, 237, 247, 0.58);
    
  --glass-border: rgba(255, 255, 255, 0.06); /* unified glass border */
    --accent-glow: rgba(143, 118, 255, 0.35);
    
    --sidebar-width-left: 100px;
    --sidebar-width-right: 280px;
    --top-nav-height: 80px;
}

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

body {
    font-family: 'Cairo', sans-serif; /* Elosool Font */
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow: hidden;
    position: relative;
    /* Dual-tone ambient glow */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(224, 64, 251, 0.03) 0%, transparent 40%);
    background-size: cover;
    background-attachment: fixed;
}

/* Floating Grid Animation for the Tech Vibe */
body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(168, 85, 247, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -2;
    transform: perspective(500px) rotateX(60deg) translateY(-100px);
    animation: gridMove 20s linear infinite;
    opacity: 0.3;
}
@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(30px); }
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* 1. Layout Container */
.layout-wrapper {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

/* 2. Left Sidebar (Tool Switcher) */
.sidebar-left {
    width: var(--sidebar-width-left);
    background: var(--bg-sidebar);
    border-left: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0 30px;
    z-index: 50;
    box-shadow: -5px 0 25px rgba(0,0,0,0.5);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 85, 247,0.25) transparent;
}
.sidebar-left::-webkit-scrollbar { width: 5px; }
.sidebar-left::-webkit-scrollbar-track { background: transparent; }
.sidebar-left::-webkit-scrollbar-thumb { background: rgba(168, 85, 247,0.25); border-radius: 10px; }
.sidebar-left::-webkit-scrollbar-thumb:hover { background: rgba(168, 85, 247,0.5); }

.brand-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 30px;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.25);
    animation: float 4s ease-in-out infinite;
    overflow: hidden;
    background: transparent;
}
.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); box-shadow: 0 5px 25px var(--accent-glow); }
    100% { transform: translateY(0); }
}

.menu-title {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tool-list {
    width: 100%;
    display: flex; flex-direction: column; align-items: center; gap: 15px;
}

.tool-item {
    width: 65px; height: 65px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border-radius: 18px;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tool-item i { font-size: 22px; margin-bottom: 2px; transition: transform 0.3s; }
.tool-item span { font-size: 11px; font-weight: 700; opacity: 0.8; transition: all 0.3s; }

.tool-item:hover {
    background: var(--bg-hover);
    color: var(--accent-cyan);
    box-shadow: inset 0 0 15px rgba(168, 85, 247, 0.1);
}

.tool-item:hover i { transform: translateY(-8px); }
.tool-item:hover span { opacity: 1; transform: translateY(0); }

.tool-item.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(168, 85, 247, 0.1));
    color: var(--accent-cyan);
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}
.tool-item.active i { transform: translateY(-8px); filter: drop-shadow(0 0 5px var(--accent-cyan)); }
.tool-item.active span { opacity: 1; transform: translateY(0); }

/* Left glowing indicator line */
.tool-item.active::before {
    content: ''; position: absolute; right: -2px; top: 20%; height: 60%; width: 4px;
    background: var(--accent-cyan); border-radius: 4px;
    box-shadow: 0 0 10px var(--accent-cyan);
}

/* 3. Main Center Area */
.main-wrapper {
    flex: 1;
    display: flex; flex-direction: column;
    padding: 0 30px;
    overflow-y: auto;
    position: relative;
}

.main-wrapper::-webkit-scrollbar { width: 6px; }
.main-wrapper::-webkit-scrollbar-thumb { background: rgba(168, 85, 247,0.3); border-radius: 10px; }

/* Top Navbar */
.top-navbar {
    height: var(--top-nav-height);
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 20px; margin-bottom: 20px;
    background: rgba(6, 11, 19, 0.7);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 0 25px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: sticky; top: 20px; z-index: 100;
}

.top-pills { display: flex; gap: 10px; }
.top-pill {
    padding: 10px 20px; border-radius: 12px;
    color: var(--text-muted); font-weight: 600; font-size: 14px;
    display: flex; align-items: center; gap: 8px;
    transition: all 0.3s;
}
.top-pill:hover { background: rgba(168, 85, 247, 0.05); color: #fff; }
.top-pill.active {
    background: rgba(168, 85, 247, 0.1); color: var(--accent-cyan);
    border: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow: inset 0 0 15px rgba(168, 85, 247, 0.05);
}

.top-profile-area { display: flex; align-items: center; gap: 15px; }
.icon-btn {
    width: 40px; height: 40px; border-radius: 12px;
    background: rgba(255,255,255,0.03); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s; position: relative; border: 1px solid transparent;
}
.icon-btn:hover { background: rgba(168, 85, 247, 0.1); color: var(--accent-cyan); border-color: rgba(168, 85, 247, 0.3); transform: translateY(-2px); }
.badge {
    position: absolute; top: -5px; right: -5px; background: #ff0055;
    color: #fff; font-size: 10px; font-weight: bold; width: 18px; height: 18px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 10px rgba(255,0,85,0.5);
}
.profile-pic { width: 45px; height: 45px; border-radius: 12px; object-fit: cover; border: 2px solid var(--glass-border); padding: 2px;}

/* 4. Right Sidebar (Administration) */
.sidebar-right {
    width: var(--sidebar-width-right);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--glass-border);
    padding: 30px 20px;
    z-index: 50;
    box-shadow: 5px 0 25px rgba(0,0,0,0.5);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 85, 247,0.25) transparent;
}
.sidebar-right::-webkit-scrollbar { width: 5px; }
.sidebar-right::-webkit-scrollbar-track { background: transparent; }
.sidebar-right::-webkit-scrollbar-thumb { background: rgba(168, 85, 247,0.25); border-radius: 10px; }
.sidebar-right::-webkit-scrollbar-thumb:hover { background: rgba(168, 85, 247,0.5); }

.brand-text {
    font-size: 22px; font-weight: 800; color: #fff;
    margin-bottom: 40px; padding-right: 15px;
    border-right: 4px solid var(--accent-cyan);
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.2));
}

.sidebar-right .tool-list { align-items: stretch; }
.sidebar-right .tool-item {
    width: 100%; height: 55px;
    flex-direction: row; justify-content: flex-start;
    padding: 0 20px; gap: 15px;
    border-radius: 14px; margin-bottom: 5px;
}
.sidebar-right .tool-item i { margin-bottom: 0; font-size: 18px; }
.sidebar-right .tool-item span { position: static; opacity: 1; transform: none; font-size: 15px; }

.sidebar-right .tool-item:hover i { transform: translateX(-5px); }
.sidebar-right .tool-item.active { background: rgba(168, 85, 247, 0.1); border-color: rgba(168, 85, 247, 0.3); box-shadow: none; }
.sidebar-right .tool-item.active::before { right: -20px; top: 10%; height: 80%; }

/* --- Forms & Common UI Elements --- */
.t-btn {
    background: rgba(168, 85, 247, 0.1); color: var(--accent-cyan);
    border: 1px solid rgba(168, 85, 247, 0.3); padding: 10px 20px; border-radius: 10px;
    font-weight: 700; cursor: pointer; transition: all 0.3s;
    display: inline-flex; align-items: center; gap: 8px; font-size: 14px;
}
.t-btn:hover {
    background: var(--accent-cyan); color: #000;
    box-shadow: 0 5px 15px var(--accent-glow); transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff; border: none; padding: 12px 25px; border-radius: 12px;
    font-weight: 800; cursor: pointer; transition: all 0.3s;
    display: inline-flex; align-items: center; gap: 10px; font-size: 15px;
    box-shadow: 0 5px 20px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 30px var(--accent-glow);
}

.glass-box {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px; padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.t-card {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: 16px; padding: 25px; text-align: right;
    transition: all 0.3s; position: relative; overflow: hidden;
}
.t-card::before {
    content: ''; position: absolute; inset:0;
    background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.1), transparent 70%);
    opacity: 0; transition: opacity 0.4s; z-index: 0;
}
.t-card:hover::before { opacity: 1; }
.t-card:hover { transform: translateY(-5px); border-color: rgba(168, 85, 247, 0.5); box-shadow: 0 15px 30px rgba(0,0,0,0.3); }

.t-card > * { position: relative; z-index: 1; }
.main-icon {
    font-size: 35px; color: var(--accent-cyan); margin-bottom: 20px;
    display: inline-block; padding: 15px; border-radius: 14px;
    background: rgba(168, 85, 247, 0.1); border: 1px solid rgba(168, 85, 247, 0.2);
}
.t-card h3 { color: #fff; font-size: 18px; margin-bottom: 10px; font-weight: 700; }
.t-card p { color: var(--text-muted); font-size: 13px; margin-bottom: 25px; line-height: 1.6; }
.t-card.active { border-color: var(--accent-cyan); box-shadow: 0 0 20px rgba(168, 85, 247, 0.1); }

/* --- Extractor Tool Specifics --- */
.fh-container {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: 20px; padding: 30px; margin-bottom: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3); backdrop-filter: blur(10px);
}

.fh-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.fh-header h2 { color: #fff; display: flex; align-items: center; gap: 10px; font-weight: 800; }
.fh-header h2 i { color: var(--accent-blue); }

.tool-category { border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; margin-bottom: 20px; background: rgba(0,0,0,0.2); overflow: hidden; transition: all 0.3s; }
.tool-cat-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 25px; cursor: pointer; transition: all 0.3s;}
.tool-cat-header:hover { background: rgba(168, 85, 247, 0.05); }
.tool-cat-title { color: #fff; font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.tool-cat-title i { color: var(--accent-cyan); }
.tool-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; padding: 0 25px 25px 25px; }

/* Dashboard Specific Grid */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 30px; }

/* Stats Widgets */
.stat-widget {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: 16px; padding: 25px; display: flex; align-items: center; justify-content: space-between;
    transition: all 0.3s; position: relative; overflow: hidden;
}
.stat-widget:hover { transform: translateY(-5px); border-color: var(--accent-cyan); box-shadow: 0 10px 25px rgba(168, 85, 247, 0.1); }
.stat-widget::before {
    content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.stat-widget:hover::before { opacity: 1; }

.stat-info h4 { color: var(--text-muted); font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.stat-info .num { color: #fff; font-size: 32px; font-weight: 800; font-family: sans-serif; text-shadow: 0 0 15px rgba(255,255,255,0.2); }
.stat-info .trend { font-size: 13px; color: #10b981; font-weight: bold; margin-top: 5px; display: inline-block; background: rgba(16, 185, 129, 0.1); padding: 2px 8px; border-radius: 20px;}
.stat-icon {
    width: 65px; height: 65px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; background: rgba(168, 85, 247, 0.1); color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}

/* Modals */
.modal-overlay {
    position: fixed; top:0; left:0; width:100%; height:100%; background:rgba(6, 11, 19, 0.9);
    backdrop-filter: blur(10px); z-index:2000; display:flex; justify-content:center; align-items:center;
    opacity: 0; pointer-events: none; transition: all 0.4s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content {
    background: var(--bg-card); width: 500px; border-radius: 24px; border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.05); transform: translateY(30px) scale(0.95); transition: all 0.4s;
    overflow: hidden;
}
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 25px 30px; border-bottom: 1px solid rgba(255,255,255,0.05); background: rgba(0,0,0,0.2);}
.modal-header h3 { color: #fff; font-weight: 800; display:flex; align-items:center; gap:10px; }
.modal-header h3 i { color: var(--accent-cyan); }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; transition: color 0.3s; }
.modal-close:hover { color: #ef4444; }
.modal-body { padding: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.form-control { width: 100%; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 14px 18px; border-radius: 12px; outline: none; font-family: inherit; transition: all 0.3s; }
.form-control:focus { border-color: var(--accent-cyan); box-shadow: 0 0 15px rgba(168, 85, 247, 0.2); }
.modal-footer { padding: 20px 30px; border-top: 1px solid rgba(255,255,255,0.05); text-align: left; background: rgba(0,0,0,0.2); }

/* Tables */
.campaign-container { display: none; animation: fadeIn 0.4s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.camp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.filters-bar { display: flex; gap: 15px; margin-bottom: 25px; background: rgba(0,0,0,0.2); padding: 15px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }
.filter-input { background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 10px 15px; border-radius: 8px; outline: none; font-family: inherit; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--text-muted); }
.empty-state i { font-size: 60px; color: rgba(255,255,255,0.1); margin-bottom: 20px; }
.campaign-table-wrapper { display: none; overflow-x: auto; background: rgba(0,0,0,0.2); border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); }
.styled-table { width: 100%; border-collapse: collapse; text-align: right; }
.styled-table th, .styled-table td { padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.styled-table th { background: rgba(168, 85, 247, 0.05); color: var(--accent-cyan); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: 1px;}
.styled-table tr:hover { background: rgba(255,255,255,0.02); }
.action-btn { background: none; border: none; color: var(--accent-blue); font-size: 18px; cursor: pointer; transition: all 0.3s; margin-left: 10px; }
.action-btn:hover { transform: scale(1.2); color: var(--accent-cyan); filter: drop-shadow(0 0 5px var(--accent-cyan)); }

.text-blue { color: var(--accent-blue); }
.text-emerald { color: #10b981; }
.text-purple { color: #8b5cf6; }
.text-warning { color: #f59e0b; }

/* Dashboard Specific Styles */
.welcome-banner {
    position: relative; overflow: hidden; padding: 40px; display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(0, 136, 237, 0.05));
}
.banner-content { z-index: 2; position: relative; }
.banner-content h1 { font-size: 32px; font-weight: 800; margin-bottom: 15px; color: #fff; }
.banner-content h1 span { color: var(--accent-cyan); }
.banner-stats-pills { display: flex; gap: 10px; margin-bottom: 25px; }
.b-pill { background: rgba(0,0,0,0.4); padding: 8px 15px; border-radius: 20px; font-size: 13px; font-weight: 600; border: 1px solid rgba(255,255,255,0.05); }
.b-pill.gold { color: #f59e0b; border-color: rgba(245, 158, 11, 0.3); }
.b-pill i { margin-left: 5px; }
.banner-img { position: absolute; left: 20px; top: -30px; width: 280px; filter: drop-shadow(0 20px 20px rgba(0,0,0,0.5)); animation: float 6s ease-in-out infinite; z-index: 1; }

.chart-box { padding: 30px; }
.chart-box h3 { margin-bottom: 8px; font-size: 18px; color: #fff; }
.chart-box p { color: var(--text-muted); font-size: 13px; margin-bottom: 25px; }
.chart-placeholder { width: 100%; height: 150px; position: relative; }
.chart-line { fill: none; stroke: var(--accent-cyan); stroke-width: 3; filter: drop-shadow(0 5px 10px rgba(168, 85, 247, 0.4)); }
.chart-point { fill: #fff; stroke: var(--accent-cyan); stroke-width: 2; transition: all 0.3s; }
.chart-point:hover { r: 6; fill: var(--accent-cyan); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.stat-card {
    background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: 16px; padding: 25px;
    transition: all 0.3s;
}
.stat-card:hover { transform: translateY(-5px); border-color: var(--accent-cyan); box-shadow: 0 10px 25px rgba(168, 85, 247, 0.1); }
.stat-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 20px; }
.stat-icon.purple { background: rgba(124, 58, 237, 0.1); color: var(--accent-purple); }
.stat-icon.gold { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.stat-icon.green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.stat-icon.blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.stat-card h2 { font-size: 30px; font-weight: 800; color: #fff; margin-bottom: 5px; }
.stat-card p { color: var(--text-muted); font-size: 13px; margin-bottom: 15px; }
.stat-change { font-size: 12px; font-weight: 600; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.stat-change.up { color: #10b981; }/* ===========================================================================
   ✨ ADMIN UI — V3 AURORA REDESIGN (إعادة تصميم احترافي كامل للوحة الإدارة)
   آخر تحديث: 2026-04-28 — يلغي ويستبدل التنسيقات السابقة بصرياً فقط
   =========================================================================== */

:root {
  --au-bg-1: #050a13;
  --au-bg-2: #060b18;
  --au-card: rgba(13, 21, 38, 0.72);
  --au-card-hi: rgba(13, 21, 38, 0.92);
  --au-border: rgba(255, 255, 255, 0.06);
  --au-border-hi: rgba(168, 85, 247, 0.24);
  --au-cyan: #a855f7;
  --au-violet: #c084fc;
  --au-magenta: #e040fb;
  --au-blue: #a855f7;
  --au-amber: #f59e0b;
  --au-text: #eaf2f8;
  --au-muted: #7d93a8;
  --au-grad: linear-gradient(135deg, #c084fc 0%, #a855f7 50%, #e040fb 100%);
  --au-grad-soft: linear-gradient(135deg, rgba(192, 132, 252,0.16), rgba(168,85,247,0.14));
  --au-shadow-soft: 0 8px 28px -10px rgba(0,0,0,0.6);
  --au-shadow-glow: 0 18px 50px -20px rgba(168, 85, 247,0.45);
  --sidebar-width-left: 92px;
  --sidebar-width-right: 270px;
  --top-nav-height: 72px;
}

/* ---------- Background: aurora orbs ---------- */
body {
  background: radial-gradient(ellipse at top, #0a1628 0%, #050b18 65%) !important;
  background-attachment: fixed !important;
}
.legacy-motion-root {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  overflow: hidden;
}
.legacy-motion-canvas,
.legacy-motion-grid,
.legacy-motion-orb {
  position: absolute;
  inset: 0;
}
.legacy-motion-canvas {
  width: 100%;
  height: 100%;
  opacity: 0.95;
}
.legacy-motion-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.legacy-motion-orb {
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.34;
  animation: legacy-orb-float 14s ease-in-out infinite alternate;
}
.legacy-motion-orb.orb-1 {
  top: -10%;
  right: -8%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.4), transparent 70%);
  animation-duration: 16s;
}
.legacy-motion-orb.orb-2 {
  bottom: -15%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(224, 64, 251, 0.26), transparent 70%);
  animation-duration: 19s;
  animation-delay: -4s;
}
.legacy-motion-orb.orb-3 {
  top: 44%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 70%);
  transform: translate(-50%, -50%);
  animation-duration: 11s;
  animation-delay: -2s;
}
@keyframes legacy-orb-float {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(28px, -36px, 0) scale(1.08); }
  100% { transform: translate3d(-18px, 18px, 0) scale(0.96); }
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(600px circle at 12% 22%, rgba(168, 85, 247,0.18), transparent 55%),
    radial-gradient(700px circle at 88% 18%, rgba(168,85,247,0.16), transparent 55%),
    radial-gradient(500px circle at 50% 95%, rgba(236,72,153,0.10), transparent 55%);
  animation: au-bg-shift 22s ease-in-out infinite alternate;
  transform: none;
  opacity: 1;
}
@keyframes au-bg-shift {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); }
  100% { transform: translate3d(3%, 2%, 0) scale(1.06); }
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(216, 180, 254,0.18) 0 1px, transparent 1.8px),
    radial-gradient(circle at 78% 68%, rgba(224, 64, 251,0.15) 0 1px, transparent 1.8px),
    linear-gradient(rgba(124,200,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,200,255,0.025) 1px, transparent 1px);
  background-size: 180px 180px, 220px 220px, 42px 42px, 42px 42px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  animation: au-grid-drift 22s linear infinite;
}
@keyframes au-grid-drift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, 26px, 0); }
}

/* ---------- Layout polish ---------- */
.layout-wrapper { gap: 0; }
.main-wrapper { padding: 0 26px 30px; }
.main-wrapper::-webkit-scrollbar { width: 8px; }
.main-wrapper::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(168, 85, 247,0.45), rgba(168,85,247,0.45));
  border-radius: 10px;
}

/* ---------- Sidebar Left (tools) ---------- */
.sidebar-left {
  background: linear-gradient(180deg, #061121 0%, #050b18 100%) !important;
  border-left: 1px solid var(--au-border) !important;
  box-shadow: -10px 0 40px -15px rgba(0,0,0,0.7) !important;
  padding: 22px 0 30px !important;
}
.sidebar-left .brand-icon {
  width: 56px; height: 56px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(168, 85, 247,0.2), rgba(168,85,247,0.15)) !important;
  border: 1px solid var(--au-border-hi);
  box-shadow: 0 0 24px rgba(168, 85, 247,0.25), inset 0 1px 0 rgba(255,255,255,0.08);
  margin-bottom: 26px !important;
  animation: au-float 5s ease-in-out infinite;
}
@keyframes au-float {
  0%,100% { transform: translateY(0); box-shadow: 0 0 24px rgba(168, 85, 247,0.25); }
  50% { transform: translateY(-6px); box-shadow: 0 10px 30px rgba(168, 85, 247,0.35); }
}
.sidebar-left .menu-title {
  font-size: 9px !important; letter-spacing: 2px !important;
  color: var(--au-muted) !important; opacity: 0.6;
  margin-bottom: 22px !important;
}
.sidebar-left .tool-list { gap: 10px !important; }
.sidebar-left .tool-item {
  width: 60px !important; height: 60px !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,0.015);
  border: 1px solid transparent;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  overflow: hidden;
}
.sidebar-left .tool-item i {
  font-size: 20px !important;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.sidebar-left .tool-item span {
  font-size: 9.5px !important; opacity: 0; transform: translateY(8px);
  position: absolute; bottom: 6px; left: 0; right: 0; text-align: center;
  transition: all 0.3s ease !important;
}
.sidebar-left .tool-item:hover {
  background: rgba(168, 85, 247,0.06) !important;
  border-color: rgba(168, 85, 247,0.18) !important;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 22px -10px rgba(168, 85, 247,0.4);
}
.sidebar-left .tool-item:hover i { transform: translateY(-9px) scale(1.1) !important; }
.sidebar-left .tool-item:hover span { opacity: 1; transform: translateY(0); }
.sidebar-left .tool-item.active {
  background: var(--au-grad-soft) !important;
  border-color: var(--au-border-hi) !important;
  color: var(--au-cyan) !important;
  box-shadow: 0 14px 30px -12px rgba(168, 85, 247,0.55), inset 0 1px 0 rgba(255,255,255,0.06) !important;
}
.sidebar-left .tool-item.active i {
  filter: drop-shadow(0 0 8px var(--au-cyan));
  animation: au-pulse-icon 2.4s ease-in-out infinite;
}
@keyframes au-pulse-icon {
  0%,100% { filter: drop-shadow(0 0 6px var(--au-cyan)); }
  50% { filter: drop-shadow(0 0 14px var(--au-cyan)); }
}
.sidebar-left .tool-item.active::before {
  width: 3px !important; right: -1px !important;
  background: linear-gradient(180deg, var(--au-cyan), var(--au-violet)) !important;
  box-shadow: 0 0 14px var(--au-cyan), 0 0 24px rgba(168,85,247,0.5) !important;
  border-radius: 6px !important;
}

/* ---------- Top Navbar ---------- */
.top-navbar {
  height: var(--top-nav-height) !important;
  margin-top: 18px !important; margin-bottom: 22px !important;
  background: linear-gradient(135deg, rgba(15,28,48,0.7), rgba(10,22,40,0.6)) !important;
  backdrop-filter: saturate(160%) blur(22px) !important;
  -webkit-backdrop-filter: saturate(160%) blur(22px) !important;
  border: 1px solid var(--au-border) !important;
  border-radius: 18px !important;
  padding: 0 18px !important;
  box-shadow: 0 18px 40px -20px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.04) !important;
  top: 16px !important;
  animation: au-slide-down 0.5s ease both;
}
@keyframes au-slide-down {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
.top-pills { gap: 6px !important; }
.top-pill {
  padding: 9px 16px !important;
  border-radius: 11px !important;
  font-size: 13px !important; font-weight: 700 !important;
  position: relative; overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.top-pill:hover { color: #fff !important; transform: translateY(-1px); background: rgba(168, 85, 247,0.06) !important; }
.top-pill.active {
  background: var(--au-grad-soft) !important;
  color: var(--au-cyan) !important;
  border: 1px solid var(--au-border-hi) !important;
  box-shadow: 0 8px 20px -10px rgba(168, 85, 247,0.6) !important;
}
.top-pill.active i { filter: drop-shadow(0 0 6px var(--au-cyan)); }

.top-profile-area { gap: 10px !important; }
.icon-btn {
  width: 38px !important; height: 38px !important;
  border-radius: 11px !important;
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid var(--au-border) !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.icon-btn:hover {
  background: var(--au-grad-soft) !important;
  border-color: var(--au-border-hi) !important;
  color: var(--au-cyan) !important;
  transform: translateY(-2px) rotate(-3deg) !important;
}
.icon-btn .badge {
  background: linear-gradient(135deg, #ec4899, #f43f5e) !important;
  box-shadow: 0 0 12px rgba(236,72,153,0.6) !important;
  font-size: 9px !important;
  width: 16px !important; height: 16px !important;
  top: -4px !important; right: -4px !important;
  animation: au-pulse-badge 1.6s ease-in-out infinite;
}
@keyframes au-pulse-badge {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.15); box-shadow: 0 0 18px rgba(236,72,153,0.9); }
}
.top-profile-area img,
.top-profile-area .profile-pic {
  width: 38px !important; height: 38px !important;
  border-radius: 11px !important;
  border: 2px solid var(--au-border-hi) !important;
  padding: 1px !important;
  transition: transform 0.3s ease;
}
.top-profile-area img:hover { transform: scale(1.05); }

/* ---------- Sidebar Right (admin) ---------- */
.sidebar-right {
  background: linear-gradient(180deg, #061121 0%, #050b18 100%) !important;
  border-right: 1px solid var(--au-border) !important;
  box-shadow: 10px 0 40px -15px rgba(0,0,0,0.7) !important;
  padding: 26px 18px !important;
}
.sidebar-right .brand-text {
  font-size: 20px !important;
  margin-bottom: 30px !important;
  padding: 6px 14px !important;
  border-right: 3px solid var(--au-cyan) !important;
  background: linear-gradient(135deg, #fff 0%, var(--au-cyan) 60%, var(--au-violet) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 0 12px rgba(168, 85, 247,0.25));
  letter-spacing: 0.5px !important;
}
.sidebar-right .tool-list { gap: 4px !important; }
.sidebar-right .tool-item {
  height: 50px !important;
  padding: 0 16px !important;
  gap: 14px !important;
  border-radius: 12px !important;
  background: transparent;
  border: 1px solid transparent;
  font-size: 14px !important;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.sidebar-right .tool-item i {
  font-size: 16px !important;
  width: 22px;
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.sidebar-right .tool-item span {
  font-size: 14px !important; font-weight: 600 !important;
  letter-spacing: 0.2px;
}
.sidebar-right .tool-item:hover {
  background: rgba(168, 85, 247,0.05) !important;
  color: #fff !important;
  border-color: rgba(168, 85, 247,0.12) !important;
  padding-right: 20px !important;
}
.sidebar-right .tool-item:hover i {
  transform: translateX(-4px) scale(1.15) !important;
  color: var(--au-cyan);
}
.sidebar-right .tool-item.active {
  background: var(--au-grad-soft) !important;
  color: var(--au-cyan) !important;
  border-color: var(--au-border-hi) !important;
  box-shadow: 0 10px 24px -14px rgba(168, 85, 247,0.55), inset 0 1px 0 rgba(255,255,255,0.05) !important;
}
.sidebar-right .tool-item.active i {
  color: var(--au-cyan);
  filter: drop-shadow(0 0 6px var(--au-cyan));
}
.sidebar-right .tool-item.active::before {
  content: '' !important; position: absolute !important;
  right: -18px !important; top: 8px !important; bottom: 8px !important;
  width: 3px !important; height: auto !important;
  background: linear-gradient(180deg, var(--au-cyan), var(--au-violet)) !important;
  box-shadow: 0 0 14px var(--au-cyan) !important;
  border-radius: 6px !important;
}

/* ---------- Cards / Containers ---------- */
.fh-container, .glass-box, .card-box {
  background: var(--au-card) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--au-border) !important;
  border-radius: 20px !important;
  padding: 26px !important;
  box-shadow: var(--au-shadow-soft) !important;
  position: relative;
  overflow: hidden;
  animation: au-fade-up 0.5s ease both;
}
.fh-container::before, .glass-box::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 30%);
  border-radius: inherit;
}
@keyframes au-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.fh-header {
  border-bottom: 1px solid var(--au-border) !important;
  padding-bottom: 18px !important;
  margin-bottom: 18px !important;
}
.fh-header h2, .fh-header h3 {
  font-weight: 800 !important;
  background: linear-gradient(135deg, #fff, #cbd5e1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.01em;
}

/* ---------- Buttons ---------- */
.btn-primary, .btn-import, .btn-launch {
  background: var(--au-grad) !important;
  color: #001a18 !important;
  border: none !important;
  padding: 11px 22px !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  font-size: 13.5px !important;
  letter-spacing: 0.2px;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 26px -10px rgba(168, 85, 247,0.55), inset 0 1px 0 rgba(255,255,255,0.25) !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.btn-primary::after, .btn-import::after, .btn-launch::after {
  content: ''; position: absolute; top: 0; right: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: right 0.6s ease;
}
.btn-primary:hover, .btn-import:hover, .btn-launch:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 16px 36px -10px rgba(168, 85, 247,0.7), inset 0 1px 0 rgba(255,255,255,0.3) !important;
  filter: brightness(1.05);
}
.btn-primary:hover::after, .btn-import:hover::after, .btn-launch:hover::after { right: 100%; }
.btn-primary:active, .btn-import:active, .btn-launch:active {
  transform: translateY(-1px) scale(0.99) !important;
}

.t-btn {
  background: rgba(168, 85, 247,0.08) !important;
  color: var(--au-cyan) !important;
  border: 1px solid var(--au-border-hi) !important;
  border-radius: 11px !important;
  padding: 10px 18px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.t-btn:hover {
  background: var(--au-cyan) !important;
  color: #001a18 !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -10px rgba(168, 85, 247,0.6) !important;
}

/* ---------- List cards (contacts page etc) ---------- */
.list-card {
  background: linear-gradient(135deg, rgba(15,28,48,0.7), rgba(10,22,40,0.55)) !important;
  border: 1px solid var(--au-border) !important;
  border-radius: 16px !important;
  padding: 18px 22px !important;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.list-card::before {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--au-cyan), var(--au-violet));
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.3s ease;
}
.list-card:hover {
  border-color: var(--au-border-hi) !important;
  transform: translateX(-4px);
  box-shadow: 0 14px 32px -16px rgba(168, 85, 247,0.4);
  background: linear-gradient(135deg, rgba(20,38,65,0.85), rgba(15,28,48,0.7)) !important;
}
.list-card:hover::before { transform: scaleY(1); }
.list-card h4 { font-size: 15px; font-weight: 800; color: #fff; }
.list-card p { font-size: 12px; color: var(--au-muted); }
.list-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 50px;
  background: rgba(168, 85, 247,0.1); color: var(--au-cyan);
  font-size: 11px; font-weight: 700;
  border: 1px solid rgba(168, 85, 247,0.2);
}

/* ---------- Inputs ---------- */
input, select, textarea {
  background: rgba(5,11,24,0.6) !important;
  border: 1px solid var(--au-border) !important;
  border-radius: 10px !important;
  color: var(--au-text) !important;
  padding: 11px 14px !important;
  font-family: inherit !important;
  font-size: 14px !important;
  transition: all 0.3s ease !important;
  outline: none !important;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--au-cyan) !important;
  box-shadow: 0 0 0 3px rgba(168, 85, 247,0.12) !important;
  background: rgba(5,11,24,0.8) !important;
}
input::placeholder, textarea::placeholder { color: var(--au-muted) !important; opacity: 0.7; }

/* ---------- Tables ---------- */
table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: transparent; border-radius: 12px; overflow: hidden;
}
table thead th {
  background: rgba(15,28,48,0.85) !important;
  color: var(--au-muted) !important;
  font-size: 12px !important; font-weight: 700 !important;
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 14px 16px !important;
  border-bottom: 1px solid var(--au-border) !important;
}
table tbody tr { transition: background 0.25s ease; }
table tbody tr:hover { background: rgba(168, 85, 247,0.04) !important; }
table tbody td {
  padding: 14px 16px !important;
  border-bottom: 1px solid rgba(124,200,255,0.05) !important;
  font-size: 13.5px;
}

/* ---------- Modals ---------- */
.modal { background: rgba(5,11,24,0.78) !important; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal-content {
  background: linear-gradient(180deg, #0a1628 0%, #061121 100%) !important;
  border: 1px solid var(--au-border-hi) !important;
  border-radius: 20px !important;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8), 0 0 0 1px rgba(168, 85, 247,0.05) !important;
  animation: au-modal-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes au-modal-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header { border-bottom: 1px solid var(--au-border) !important; padding: 20px 24px !important; }
.modal-header h3 {
  font-weight: 800 !important;
  background: linear-gradient(135deg, #fff, var(--au-cyan));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Toasts ---------- */
.toast {
  background: linear-gradient(135deg, rgba(15,28,48,0.95), rgba(10,22,40,0.95)) !important;
  border: 1px solid var(--au-border-hi) !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 50px -20px rgba(168, 85, 247,0.5) !important;
  padding: 14px 22px !important;
  backdrop-filter: blur(14px);
  animation: au-toast-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes au-toast-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.toast i { color: var(--au-cyan); filter: drop-shadow(0 0 6px var(--au-cyan)); }

/* ---------- Legacy Page Surface Normalization ---------- */
.search-box,
.pub-card,
.auth-card-row,
.info-box,
.biz-table-wrap,
.export-bar,
.tg-tool-card,
.r-stat,
.p-stat,
.product-card,
.wallet-card,
.setting-card,
.settings-card,
.admin-card,
.coupon-card,
.developers-card,
.results-box,
.panel-box,
.data-box {
  background: var(--au-card) !important;
  border: 1px solid var(--au-border) !important;
  box-shadow: var(--au-shadow-soft) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.search-box:hover,
.pub-card:hover,
.tg-tool-card:hover,
.r-stat:hover,
.p-stat:hover,
.product-card:hover,
.wallet-card:hover,
.setting-card:hover,
.settings-card:hover,
.admin-card:hover,
.coupon-card:hover,
.developers-card:hover {
  border-color: var(--au-border-hi) !important;
  box-shadow: 0 18px 40px -22px rgba(168, 85, 247,0.55) !important;
}

.tg-tool-card::before,
.pub-card::before,
.product-card::before,
.search-box::before,
.wallet-card::before,
.coupon-card::before {
  background: var(--au-grad-soft) !important;
}

.tg-icon-box,
.r-stat-icon.cyan,
.r-stat-icon.blue,
.p-stat .icon,
.product-card .icon,
.settings-card .icon,
.wallet-card .icon {
  background: rgba(168, 85, 247,0.14) !important;
  color: var(--au-cyan) !important;
  border-color: rgba(168, 85, 247,0.24) !important;
  box-shadow: 0 10px 24px -16px rgba(168, 85, 247,0.55) !important;
}

.btn-search,
.btn-tg,
.send-btn,
.btn-success-lg,
.btn-add,
.btn-save,
.btn-wallet,
.btn-coupon {
  background: var(--au-grad) !important;
  color: #12081d !important;
  border: none !important;
  box-shadow: 0 14px 30px -14px rgba(168, 85, 247,0.65) !important;
}

.btn-search:hover,
.btn-tg:hover,
.send-btn:hover,
.btn-success-lg:hover,
.btn-add:hover,
.btn-save:hover,
.btn-wallet:hover,
.btn-coupon:hover {
  box-shadow: 0 18px 38px -14px rgba(168, 85, 247,0.75) !important;
  filter: brightness(1.04);
}

.cat-pill,
.platform-tile,
.image-drop,
.fb-page-chip,
.channel-chip,
.pub-tab {
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid var(--au-border) !important;
  color: var(--au-muted) !important;
}

.cat-pill:hover,
.cat-pill.active,
.platform-tile:hover,
.platform-tile.selected,
.image-drop:hover,
.fb-page-chip:hover,
.fb-page-chip.selected,
.channel-chip:hover,
.channel-chip.selected,
.pub-tab:hover,
.pub-tab.active {
  background: var(--au-grad-soft) !important;
  border-color: var(--au-border-hi) !important;
  color: var(--au-cyan) !important;
}

.tg-input,
.g-input,
.filter-input,
.search-box input,
.search-box textarea,
.pub-card textarea,
.pub-card input,
.pub-card select {
  background: rgba(5,11,24,0.72) !important;
  border: 1px solid var(--au-border) !important;
  color: var(--au-text) !important;
}

.tg-input:focus,
.g-input:focus,
.filter-input:focus,
.search-box input:focus,
.search-box textarea:focus,
.pub-card textarea:focus,
.pub-card input:focus,
.pub-card select:focus {
  border-color: var(--au-cyan) !important;
  box-shadow: 0 0 0 3px rgba(168, 85, 247,0.12) !important;
}

.biz-table th,
.styled-table th {
  background: rgba(168, 85, 247,0.08) !important;
  color: var(--au-cyan) !important;
  border-bottom-color: var(--au-border) !important;
}

.biz-table td,
.styled-table td,
.campaign-table-wrapper,
.member-row {
  background: transparent !important;
  border-color: rgba(255,255,255,0.05) !important;
}

.member-row:hover,
.biz-table tr:hover,
.styled-table tr:hover {
  background: rgba(168, 85, 247,0.05) !important;
}

.ig-tool-card,
.ch-card,
.acc-card,
.coupon-code,
.user-card,
.dm-compose,
.scheduled-row,
.archive-row,
.coupon-form,
.wallet-stat,
.wallet-transaction,
.platform-btn,
.auth-mini button,
.mini-btn,
.btn-action,
.filter-reset,
.btn-ghost,
.row-actions button,
.m-btn.cancel,
.modal-box button.cancel,
.ch-card .actions button,
.p-btn,
.badge-platform.tw,
.platform-picker {
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid var(--au-border) !important;
  color: var(--au-text) !important;
}

.ig-tool-card:hover,
.ch-card:hover,
.acc-card:hover,
.coupon-code:hover,
.user-card:hover,
.platform-btn:hover,
.auth-mini button:hover,
.mini-btn:hover,
.btn-action:hover,
.filter-reset:hover,
.btn-ghost:hover,
.row-actions button:hover,
.m-btn.cancel:hover,
.modal-box button.cancel:hover,
.ch-card .actions button:hover,
.p-btn:hover,
.platform-picker:hover {
  background: var(--au-grad-soft) !important;
  border-color: var(--au-border-hi) !important;
  color: var(--au-cyan) !important;
}

.coupon-footer,
.product-actions,
.row-actions,
.ch-card .actions {
  border-top: 1px solid rgba(255,255,255,0.05) !important;
}

.progress-container,
.usage-bar .bar,
[style*="height:8px"][style*="rgba(255,255,255,0.1)"],
[style*="height:6px"][style*="rgba(255,255,255,0.1)"] {
  background: rgba(255,255,255,0.08) !important;
  border-radius: 10px !important;
}

.progress-bar,
.usage-bar .fill,
[style*="background:linear-gradient(90deg, #0088cc, #00aaee)"],
[style*="background: linear-gradient(90deg, #0088cc, #00aaee)"] {
  background: linear-gradient(90deg, #c084fc, #a855f7, #e040fb) !important;
}

[style*="background:rgba(0,229,255,0.9)"],
[style*="background: rgba(0, 229, 255, 0.9)"],
[style*="background:rgba(0,229,255,0.95)"],
[style*="background: rgba(0, 229, 255, 0.95)"] {
  background: linear-gradient(135deg, rgba(13,21,38,0.96), rgba(19,28,49,0.96)) !important;
  border: 1px solid var(--au-border-hi) !important;
  color: var(--au-text) !important;
  box-shadow: 0 20px 50px -20px rgba(168, 85, 247,0.5) !important;
}

[style*="color:#0088cc"],
[style*="color: #0088cc"],
[style*="color:#00aaee"],
[style*="color: #00aaee"] {
  color: var(--au-cyan) !important;
}

[style*="background:#0088cc"],
[style*="background: #0088cc"],
[style*="background:rgba(0,136,204,0.1)"],
[style*="background: rgba(0,136,204,0.1)"],
[style*="background:rgba(0,136,204,0.15)"],
[style*="background: rgba(0,136,204,0.15)"] {
  background: var(--au-grad-soft) !important;
}

[style*="border-color:rgba(0,136,204,0.3)"],
[style*="border-color: rgba(0,136,204,0.3)"],
[style*="border:1px solid rgba(0,136,204,0.2)"],
[style*="border: 1px solid rgba(0,136,204,0.2)"],
[style*="border:1px solid rgba(0,136,204,0.3)"],
[style*="border: 1px solid rgba(0,136,204,0.3)"] {
  border-color: var(--au-border-hi) !important;
}

/* ---------- Stagger entrance ---------- */
.tool-list .tool-item { animation: au-fade-in 0.4s ease both; }
.tool-list .tool-item:nth-child(1) { animation-delay: 0.05s; }
.tool-list .tool-item:nth-child(2) { animation-delay: 0.10s; }
.tool-list .tool-item:nth-child(3) { animation-delay: 0.15s; }
.tool-list .tool-item:nth-child(4) { animation-delay: 0.20s; }
.tool-list .tool-item:nth-child(5) { animation-delay: 0.25s; }
.tool-list .tool-item:nth-child(6) { animation-delay: 0.30s; }
.tool-list .tool-item:nth-child(7) { animation-delay: 0.35s; }
.tool-list .tool-item:nth-child(8) { animation-delay: 0.40s; }
.tool-list .tool-item:nth-child(9) { animation-delay: 0.45s; }
.tool-list .tool-item:nth-child(10) { animation-delay: 0.50s; }
@keyframes au-fade-in {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.tool-item, .icon-btn, .btn-primary, .top-pill { -webkit-tap-highlight-color: transparent; }

/* ---------- Status pills ---------- */
.status-pill, .badge-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 50px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.3px;
}
.status-success, .status-pill.active { background: rgba(16,185,129,0.12); color: #10b981; border: 1px solid rgba(16,185,129,0.25); }
.status-warning { background: rgba(245,158,11,0.12); color: #f59e0b; border: 1px solid rgba(245,158,11,0.25); }
.status-danger, .status-error { background: rgba(239,68,68,0.12); color: #ef4444; border: 1px solid rgba(239,68,68,0.25); }
.status-info { background: rgba(59,130,246,0.12); color: #3b82f6; border: 1px solid rgba(59,130,246,0.25); }

::selection { background: rgba(168, 85, 247,0.35); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Smooth scroll on iOS / mobile ---------- */
.main-wrapper, .sidebar-left, .sidebar-right { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.main-wrapper { scroll-padding-top: 100px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  :root { --sidebar-width-right: 220px; }
  .sidebar-right .tool-item span { font-size: 13px !important; }
}

/* ============ MOBILE DRAWER PATTERN ============
   Replaces "display:none" so user can still access sections. */
@media (max-width: 960px) {
  .top-pills { gap: 4px !important; }
  .top-pill span { display: none; }

  /* Right sidebar becomes off-canvas drawer (slides from right since RTL) */
  .sidebar-right {
    position: fixed !important;
    top: 0; right: 0; bottom: 0;
    width: 280px !important;
    max-width: 85vw;
    height: 100vh;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 9990;
    box-shadow: -10px 0 40px rgba(0,0,0,0.6) !important;
    padding-top: 70px !important;
  }
  .sidebar-right.drawer-open { transform: translateX(0); }
}

@media (max-width: 720px) {
  :root { --sidebar-width-left: 70px; }
  .sidebar-left .tool-item { width: 50px !important; height: 50px !important; }
  .sidebar-left .tool-item i { font-size: 17px !important; }
  .sidebar-left .tool-item span { display: none; }
  .main-wrapper { padding: 0 14px 20px; }
}

@media (max-width: 600px) {
  .legacy-motion-orb.orb-1 { width: 320px; height: 320px; }
  .legacy-motion-orb.orb-2 { width: 240px; height: 240px; }
  .legacy-motion-orb.orb-3 { width: 180px; height: 180px; }
  /* Left sidebar also becomes drawer (slides from left in RTL) */
  .sidebar-left {
    position: fixed !important;
    top: 0; left: 0; bottom: 0;
    width: 90px !important;
    max-width: 85vw;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 9990;
    box-shadow: 10px 0 40px rgba(0,0,0,0.6) !important;
    padding-top: 70px !important;
  }
  .sidebar-left.drawer-open { transform: translateX(0); }
  .main-wrapper { padding: 0 12px 20px; }
  .top-navbar { padding: 0 14px !important; }
}

/* Drawer backdrop */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 9989;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }

/* Hamburger / drawer toggle buttons (injected by header-actions.js) */
.menu-toggle-btn {
  display: none;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--accent-cyan);
  width: 42px; height: 42px;
  border-radius: 12px;
  align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s;
}
.menu-toggle-btn:hover { background: rgba(168, 85, 247, 0.2); }
@media (max-width: 960px) {
  .menu-toggle-btn.right-toggle { display: inline-flex; }
}
@media (max-width: 600px) {
  .menu-toggle-btn.left-toggle { display: inline-flex; }
}
.menu-toggle-btn.drawer-close {
  position: absolute; top: 14px; left: 14px;
  display: flex; z-index: 5;
}
.sidebar-right .menu-toggle-btn.drawer-close,
.sidebar-left .menu-toggle-btn.drawer-close { display: none; }
@media (max-width: 960px) {
  .sidebar-right .menu-toggle-btn.drawer-close { display: flex; }
}
@media (max-width: 600px) {
  .sidebar-left .menu-toggle-btn.drawer-close { display: flex; left: auto; right: 14px; }
}

/* Sticky navbar fix — prevents weird stuck states inside scrolling main */
@media (max-width: 720px) {
  .top-navbar {
    position: sticky !important;
    top: 0 !important;
    margin-top: 10px !important;
    border-radius: 14px !important;
    height: 60px !important;
  }
}
