/* Global Styles & Variables */
:root {
    --bg-main: #060911;
    --bg-grid: rgba(99, 102, 241, 0.02);
    --panel-bg: rgba(15, 23, 42, 0.65);
    --panel-border: rgba(255, 255, 255, 0.06);
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.15);
    --primary-border-glow: rgba(99, 102, 241, 0.4);
    
    --success: #10b981;
    --success-hover: #059669;
    --success-glow: rgba(16, 185, 129, 0.15);
    
    --danger: #f43f5e;
    --danger-hover: #e11d48;
    --danger-glow: rgba(244, 63, 94, 0.15);
    
    --warning: #f59e0b;
    --warning-hover: #d97706;
    --warning-glow: rgba(245, 158, 11, 0.15);
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-accent: #a5b4fc;
    
    --font-heading: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --shadow-main: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px -5px rgba(99, 102, 241, 0.2);
    --radius-main: 20px;
    --radius-card: 16px;
    
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(244, 63, 94, 0.06) 0px, transparent 50%),
        linear-gradient(var(--bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* App Container Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 290px;
    background: rgba(11, 15, 25, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--panel-border);
    padding: 2.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 3.5rem;
}

.brand-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, #818cf8 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    color: #fff;
    transition: var(--transition-normal);
}

.brand:hover .brand-logo-container {
    transform: rotate(10deg) scale(1.05);
}

.brand-svg {
    width: 20px;
    height: 20px;
}

.brand h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 30%, var(--text-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.nav-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.9rem 1.25rem;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.nav-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2.2px;
    transition: var(--transition-fast);
}

.nav-item:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0.02) 100%);
    border-left: 3px solid var(--primary);
    padding-left: calc(1.25rem - 3px);
}

.nav-item.active .nav-icon {
    color: var(--primary);
    filter: drop-shadow(0 0 5px var(--primary));
}

.system-status {
    padding-top: 1.5rem;
    border-top: 1px solid var(--panel-border);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.65rem 1rem;
    border-radius: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
}

.dot.pulse {
    box-shadow: 0 0 0 0 var(--success-glow);
    animation: pulse-green 2s infinite;
}

.status-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Main Content Styling */
.main-content {
    flex-grow: 1;
    margin-left: 290px;
    padding: 2.5rem 3rem;
    max-width: 1500px;
    width: calc(100% - 290px);
}

/* Header & Stats Cards */
.dashboard-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--panel-border);
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius-main);
    box-shadow: var(--shadow-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.6), 0 0 1px 1px rgba(255, 255, 255, 0.05) inset;
}

.stat-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.65rem;
}

.stat-info h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.stat-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
}

.stat-icon-svg {
    width: 22px;
    height: 22px;
    color: var(--text-muted);
    transition: var(--transition-normal);
}

/* Stat specific hover indicators */
.stat-card:hover .stat-icon-wrapper.channel {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.25);
}
.stat-card:hover .stat-icon-wrapper.channel .stat-icon-svg {
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary));
}
.stat-card:hover .stat-icon-wrapper.accounts {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
}
.stat-card:hover .stat-icon-wrapper.accounts .stat-icon-svg {
    color: var(--success);
    filter: drop-shadow(0 0 8px var(--success));
}
.stat-card:hover .stat-icon-wrapper.tasks {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.25);
}
.stat-card:hover .stat-icon-wrapper.tasks .stat-icon-svg {
    color: var(--warning);
    filter: drop-shadow(0 0 8px var(--warning));
}

/* Tab Content Layout */
.tab-pane {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Glass Card */
.glass-card {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-main);
    box-shadow: var(--shadow-main);
    margin-bottom: 2rem;
    overflow: hidden;
}

.panel-header {
    padding: 1.4rem 1.75rem;
    border-bottom: 1px solid var(--panel-border);
    background: rgba(11, 15, 25, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.header-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.2px;
}

.panel-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

/* Panel Layout: Grid split */
.panel-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
}

.main-panel {
    padding: 2rem;
}

.side-panel {
    display: flex;
    flex-direction: column;
}

/* Form Styling */
.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-action-group {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.input-prefix {
    position: absolute;
    left: 1.1rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    user-select: none;
}

.input-wrapper input {
    padding-left: 1.1rem;
}

.input-prefix + input {
    padding-left: 2.2rem;
}

input[type="text"], 
input[type="number"], 
input[type="password"], 
textarea, 
select {
    width: 100%;
    background: rgba(11, 15, 25, 0.65);
    border: 1px solid var(--panel-border);
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

input[type="text"]:focus, 
input[type="number"]:focus, 
input[type="password"]:focus, 
textarea:focus, 
select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(11, 15, 25, 0.85);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

/* Hide number input spin buttons */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

textarea {
    resize: none;
}

/* Reason Grid Options */
.reason-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 0.85rem;
}

.reason-card {
    cursor: pointer;
    position: relative;
}

.reason-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.reason-card-content {
    background: rgba(11, 15, 25, 0.35);
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    padding: 1.25rem 0.75rem;
    text-align: center;
    transition: var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.reason-icon-holder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.reason-icon-svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.2px;
    transition: var(--transition-normal);
}

.reason-card-content h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.15rem;
}

.reason-card-content p {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Hover States */
.reason-card:hover .reason-card-content {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    background: rgba(11, 15, 25, 0.5);
}

/* Card Specific Active Glow Styles */
/* Pornography (Rose/Pink Accent) */
.reason-card.r-porn input[type="radio"]:checked + .reason-card-content {
    border-color: #f43f5e;
    background: rgba(244, 63, 94, 0.08);
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.12);
}
.reason-card.r-porn input[type="radio"]:checked + .reason-card-content .reason-icon-holder {
    background: rgba(244, 63, 94, 0.2);
    border-color: rgba(244, 63, 94, 0.4);
    color: #f43f5e;
    filter: drop-shadow(0 0 5px rgba(244, 63, 94, 0.4));
}

/* Spam (Orange/Amber Accent) */
.reason-card.r-spam input[type="radio"]:checked + .reason-card-content {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.12);
}
.reason-card.r-spam input[type="radio"]:checked + .reason-card-content .reason-icon-holder {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
    color: #f59e0b;
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.4));
}

/* Violence (Red/Crimson Accent) */
.reason-card.r-violence input[type="radio"]:checked + .reason-card-content {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.12);
}
.reason-card.r-violence input[type="radio"]:checked + .reason-card-content .reason-icon-holder {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.4));
}

/* Copyright (Cyan/Blue Accent) */
.reason-card.r-copyright input[type="radio"]:checked + .reason-card-content {
    border-color: #06b6d4;
    background: rgba(6, 182, 212, 0.08);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.12);
}
.reason-card.r-copyright input[type="radio"]:checked + .reason-card-content .reason-icon-holder {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.4);
    color: #06b6d4;
    filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0.4));
}

/* Child Abuse (Deep Red Accent) */
.reason-card.r-child_abuse input[type="radio"]:checked + .reason-card-content {
    border-color: #e11d48;
    background: rgba(225, 29, 72, 0.08);
    box-shadow: 0 0 20px rgba(225, 29, 72, 0.15);
}
.reason-card.r-child_abuse input[type="radio"]:checked + .reason-card-content .reason-icon-holder {
    background: rgba(225, 29, 72, 0.2);
    border-color: rgba(225, 29, 72, 0.4);
    color: #e11d48;
    filter: drop-shadow(0 0 5px rgba(225, 29, 72, 0.4));
}

/* Other (Violet Accent) */
.reason-card.r-other input[type="radio"]:checked + .reason-card-content {
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.08);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.12);
}
.reason-card.r-other input[type="radio"]:checked + .reason-card-content .reason-icon-holder {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.4);
    color: #a855f7;
    filter: drop-shadow(0 0 5px rgba(168, 85, 247, 0.4));
}

/* Slide Input */
.slide-input {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 0;
}

.slide-input.active {
    max-height: 160px;
    margin-bottom: 1.75rem;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Slider styling */
.slider-label-group {
    display: flex;
    justify-content: space-between;
}

#frequency-value {
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary);
}

.slider-wrapper {
    background: rgba(11, 15, 25, 0.5);
    padding: 0.75rem 1.1rem;
    border-radius: 12px;
    border: 1px solid var(--panel-border);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 12px var(--primary);
    transition: var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Buttons */
.btn-primary, 
.btn-secondary, 
.btn-success, 
.btn-danger {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    border-radius: 12px;
    padding: 0.9rem 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}

.btn-icon-svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 20px var(--primary-glow);
    transform: translateY(-1px);
}
.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    border: 1px solid var(--panel-border);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.btn-success {
    background: var(--success);
    color: #fff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}
.btn-success:hover {
    background: var(--success-hover);
    box-shadow: 0 6px 20px var(--success-glow);
    transform: translateY(-1px);
}
.btn-success:active {
    transform: translateY(1px);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.3);
}
.btn-danger:hover {
    background: var(--danger-hover);
    box-shadow: 0 6px 20px var(--danger-glow);
    transform: translateY(-1px);
}
.btn-danger:active {
    transform: translateY(1px);
}

.btn-large {
    padding: 1.15rem 2rem;
    font-size: 0.98rem;
    border-radius: 14px;
}

.btn-block {
    width: 100%;
}

.action-buttons-row {
    display: flex;
    gap: 1.25rem;
    margin-top: 2rem;
}

.action-buttons-row button {
    flex-grow: 1;
}

/* Progress Monitor Console */
.progress-header-panel {
    border-bottom: none;
}

.progress-console {
    background: #060911;
    flex-grow: 1;
    margin: 0 1.75rem 1.75rem 1.75rem;
    border-radius: 14px;
    border: 1px solid var(--panel-border);
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    overflow-y: auto;
    color: #60a5fa;
    max-height: 490px;
    white-space: pre-wrap;
    box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.4);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    color: var(--text-muted);
}

.empty-state-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.empty-state-icon {
    width: 32px;
    height: 32px;
}

.progress-active {
    animation: fadeIn 0.3s ease;
}

.terminal-output {
    line-height: 1.6;
}

.active-task-list {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-accent);
}

/* Accounts Tab Panel */
.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.panel-header-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-controls {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.filter-controls input {
    width: 250px;
}

.filter-controls select {
    width: 220px;
}

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.25rem;
    padding: 1.75rem;
    max-height: 70vh;
    overflow-y: auto;
}

.account-card {
    background: rgba(11, 15, 25, 0.4);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition-normal);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.account-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(11, 15, 25, 0.65);
    box-shadow: var(--shadow-main);
}

.account-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.account-card-header h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge {
    font-size: 0.68rem;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge.success {
    background: rgba(16, 185, 129, 0.08);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.18);
}

.badge.muted {
    background: rgba(148, 163, 184, 0.08);
    color: var(--text-muted);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.badge.warning {
    background: rgba(245, 158, 11, 0.08);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.18);
}

.account-phone {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.account-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-icon {
    padding: 0.65rem 1rem;
    border-radius: 10px;
    font-size: 0.82rem;
}

/* Terminal Log View styling */
.terminal-window-header {
    background: #0f172a;
    border: 1px solid var(--panel-border);
    border-bottom: none;
    padding: 0.8rem 1.4rem;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-dots {
    display: flex;
    gap: 0.5rem;
}

.t-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.t-dot.close { background: #f43f5e; }
.t-dot.minimize { background: #f59e0b; }
.t-dot.maximize { background: #10b981; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.terminal-container {
    padding: 0 1.75rem 1.75rem 1.75rem;
}

.terminal {
    background: #060911;
    border: 1px solid var(--panel-border);
    border-top: none;
    border-radius: 0 0 14px 14px;
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    color: #e2e8f0;
    height: 60vh;
    overflow-y: auto;
    white-space: pre-wrap;
    box-shadow: inset 0 4px 20px rgba(0,0,0,0.5);
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 6, 17, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    width: 480px;
    box-shadow: var(--shadow-main), 0 0 50px -10px rgba(0,0,0,0.8);
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 1.4rem 1.75rem;
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(11, 15, 25, 0.5);
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    letter-spacing: -0.01em;
}

.close-modal {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.close-modal svg {
    width: 16px;
    height: 16px;
}

.close-modal:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 2rem 1.75rem;
}

/* Steps indicator in Modal */
.steps-indicator {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2.5rem;
}

.steps-indicator::before {
    content: '';
    position: absolute;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    width: calc(100% - 32px);
    left: 16px;
    top: 15px;
    z-index: 1;
}

.steps-indicator .step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0f172a;
    border: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-muted);
    z-index: 2;
    position: relative;
}

.steps-indicator .step span {
    position: absolute;
    top: 36px;
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--text-muted);
    font-family: var(--font-heading);
}

.steps-indicator .step.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.steps-indicator .step.active span {
    color: #fff;
    font-weight: 700;
}

.steps-indicator .step.completed {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}

.steps-indicator .step.completed span {
    color: var(--success);
}

/* Wizard step pane logic */
.wizard-step {
    display: none;
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wizard-step.active {
    display: block;
}

.wizard-step small {
    display: block;
    margin-top: 0.4rem;
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* Alerts and Messages in wizard */
.info-alert {
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    display: flex;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

.alert-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    flex-shrink: 0;
}

.alert-icon-wrapper svg {
    width: 20px;
    height: 20px;
}

.info-alert.warning {
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.info-alert.warning .alert-icon-wrapper {
    color: #f59e0b;
}

.success-state {
    text-align: center;
    padding: 1rem 0;
}

.success-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    margin-bottom: 1.25rem;
    animation: scaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-icon-wrapper svg {
    width: 32px;
    height: 32px;
}

.success-state h4 {
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
}

.success-state p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Toast Notification Styling */
.toast-container {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    z-index: 10000;
}

.toast {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-left: 4px solid var(--primary);
    border-top: 1px solid var(--panel-border);
    border-right: 1px solid var(--panel-border);
    border-bottom: 1px solid var(--panel-border);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-main), 0 10px 20px -5px rgba(0,0,0,0.3);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    animation: slideInRight 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.18);
    transition: opacity 0.3s ease;
}

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

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

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scaleUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(120px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.animate-pulse-slow {
    animation: pulse-glow 3s infinite;
}

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

/* Bottom navigation default hidden state */
.bottom-nav {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .panel-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        width: 85px;
        padding: 2rem 0.5rem;
    }
    
    .brand h2, 
    .sidebar .nav-item span,
    .status-text {
        display: none;
    }
    
    .brand, 
    .sidebar .nav-item {
        justify-content: center;
    }
    
    .main-content {
        margin-left: 85px;
        padding: 2rem;
        width: calc(100% - 85px);
    }
}

@media (max-width: 768px) {
    /* Hide left sidebar completely */
    .sidebar {
        display: none !important;
    }
    
    /* Display bottom navigation bar */
    .bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 68px;
        background: rgba(11, 15, 25, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--panel-border);
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
        padding: 0 1rem;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .bottom-nav .nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: none !important;
        color: var(--text-muted) !important;
        padding: 0.5rem 0.75rem !important;
        border-radius: 12px !important;
        gap: 0.25rem !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        width: 85px !important;
        text-align: center !important;
        border-left: none !important;
        padding-left: 0.5rem !important;
    }
    
    .bottom-nav .nav-item.active {
        color: var(--primary) !important;
        background: transparent !important;
    }
    
    .bottom-nav .nav-item.active .nav-icon {
        color: var(--primary) !important;
        filter: drop-shadow(0 0 5px var(--primary)) !important;
    }
    
    /* Reset main content layout */
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 1.25rem !important;
        padding-bottom: 95px !important; /* Leave room for bottom nav */
        max-width: 100% !important;
    }
    
    /* Stats grid: single column */
    .dashboard-header {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .stat-card {
        padding: 1.25rem !important;
    }
    
    .stat-info h3 {
        font-size: 1.25rem !important;
    }
    
    /* Settings panel grids */
    .panel-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .main-panel {
        padding: 1.25rem !important;
    }
    
    /* 2 columns on mobile for reasons grid */
    .reason-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem !important;
    }
    
    .reason-card-content {
        padding: 1rem 0.5rem !important;
    }
    
    .reason-icon-holder {
        width: 38px !important;
        height: 38px !important;
        margin-bottom: 0.5rem !important;
    }
    
    .reason-icon-svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    /* Stack elements vertically */
    .input-action-group {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }
    
    .input-action-group button {
        width: 100% !important;
    }
    
    .action-buttons-row {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .action-buttons-row button {
        width: 100% !important;
        padding: 1rem !important;
    }
    
    /* Progress Monitor */
    .progress-console {
        margin: 0 1.25rem 1.25rem 1.25rem !important;
        max-height: 320px !important;
    }
    
    /* Accounts Search & Filter Stack */
    .account-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.85rem !important;
    }
    
    .filter-controls {
        flex-direction: column !important;
        gap: 0.65rem !important;
    }
    
    .filter-controls input,
    .filter-controls select {
        width: 100% !important;
    }
    
    .accounts-grid {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
        padding: 1rem !important;
    }
    
    /* Modal resizing */
    .modal-card {
        width: 92% !important;
        border-radius: 20px !important;
    }
    
    .modal-body {
        padding: 1.5rem 1.25rem !important;
    }
}
