/* ==========================================================================
   Telegram Migrator Pro - Design System & Modern Dark Glassmorphism CSS
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-base: #0a0d14;
    --bg-surface: #111622;
    --bg-surface-elevated: #161c2b;
    --bg-card: rgba(19, 25, 39, 0.72);
    --bg-glass: rgba(22, 30, 48, 0.65);
    
    /* Telegram & Neon Accents */
    --primary: #0088cc;
    --primary-light: #00a2e8;
    --primary-glow: rgba(0, 136, 204, 0.35);
    --cyan-accent: #00d2ff;
    --accent-gradient: linear-gradient(135deg, #0088cc 0%, #00d2ff 100%);
    --card-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    
    /* Status Colors */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.12);
    --success-glow: rgba(16, 185, 129, 0.25);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.12);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.12);
    --danger-glow: rgba(239, 68, 68, 0.3);
    --info: #3b82f6;
    
    /* Typography Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 210, 255, 0.25);
    
    /* Elevation & Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--primary-glow);
    
    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(circle at 15% 10%, rgba(0, 136, 204, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(0, 210, 255, 0.08) 0%, transparent 45%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo-title, .stat-value {
    font-family: 'Outfit', sans-serif;
}

/* App Container */
.app-container {
    max-width: 1720px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 28px 36px;
}

/* Header */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.logo-img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    flex-shrink: 0;
}

.brand-logo-img {
    height: 54px;
    width: auto;
    max-width: 58px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.6)) drop-shadow(0 0 20px rgba(255, 120, 0, 0.35));
    transition: filter 0.3s ease, transform 0.25s ease;
}

.brand-logo-img:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.85)) drop-shadow(0 0 28px rgba(255, 130, 0, 0.6));
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    transform: translate(-1px, 1px);
}

.logo-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    background: linear-gradient(135deg, #00d2ff 0%, #0088cc 100%);
    color: #0b0f17;
    border-radius: 6px;
    letter-spacing: 0.06em;
}

.logo-subtitle {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* Status Pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.status-pill.connected .status-dot {
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-pill.running .status-dot {
    background-color: var(--cyan-accent);
    box-shadow: 0 0 8px var(--cyan-accent);
    animation: pulseDot 1.4s infinite;
}

.status-pill.error .status-dot {
    background-color: var(--danger);
    box-shadow: 0 0 8px var(--danger);
}

.scheduler-pill svg {
    width: 14px;
    height: 14px;
    color: var(--cyan-accent);
}

.scheduler-pill.active {
    background: rgba(0, 210, 255, 0.08);
    border-color: rgba(0, 210, 255, 0.25);
}

/* Icon Buttons */
.btn-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.09);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.18);
}

.btn-quit:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #ff8585;
    border-color: rgba(239, 68, 68, 0.35);
}

.btn-icon svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

/* Stats Overview Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow-md);
}

.stat-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-wrapper svg {
    width: 22px;
    height: 22px;
}

.stat-success .stat-icon-wrapper {
    background: var(--success-bg);
    color: var(--success);
}

.stat-skipped .stat-icon-wrapper {
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-secondary);
}

.stat-failed .stat-icon-wrapper {
    background: var(--danger-bg);
    color: var(--danger);
}

.stat-total .stat-icon-wrapper {
    background: rgba(0, 136, 204, 0.12);
    color: var(--cyan-accent);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.stat-mini-btn {
    font-size: 0.72rem;
    padding: 4px 10px;
    background: var(--danger-bg);
    color: #ff8585;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.stat-mini-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #fff;
}

/* Live Migration Progress Card */
.live-progress-card {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.12) 0%, rgba(22, 28, 43, 0.85) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 210, 255, 0.35);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 0 25px rgba(0, 136, 204, 0.25);
    animation: fadeIn 0.3s ease;
}

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

.progress-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--cyan-accent);
    box-shadow: 0 0 10px var(--cyan-accent);
    animation: pulseDot 1.2s infinite;
}

.progress-badge {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--cyan-accent);
}

.progress-action {
    font-size: 0.88rem;
    color: var(--text-primary);
    font-weight: 500;
}

.btn-stop {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ff9b9b;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-stop svg {
    width: 14px;
    height: 14px;
}

.btn-stop:hover {
    background: rgba(239, 68, 68, 0.35);
    color: #ffffff;
    border-color: var(--danger);
    box-shadow: 0 0 12px var(--danger-glow);
}

.progress-bar-container {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    position: relative;
    margin-bottom: 14px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.progress-bar-fill.indeterminate {
    width: 35%;
    position: absolute;
    animation: shimmerMove 1.8s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

.progress-metrics {
    display: flex;
    gap: 24px;
    font-size: 0.82rem;
}

.metric-item {
    display: flex;
    gap: 6px;
    align-items: center;
}

.metric-label {
    color: var(--text-secondary);
}

.metric-value {
    font-weight: 600;
    color: var(--text-primary);
}

.text-green { color: var(--success); }
.text-red { color: var(--danger); }
.text-muted { color: var(--text-muted); }

/* Dashboard Grid - 3-Column Layout: Left (Route & TG Panel), Middle (Console), Right (1-Click Actions & Auto-Sync) */
.dashboard-grid {
    display: grid;
    grid-template-columns: 360px minmax(460px, 1fr) 380px;
    gap: 20px;
    align-items: stretch;
}

.dashboard-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.left-col {
    min-width: 320px;
}

.middle-col {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.middle-col .terminal-card {
    flex: 1;
    min-height: 720px;
    height: 100%;
}

.right-col {
    min-width: 340px;
}

/* Card Styling */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

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

.card-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title-group svg {
    width: 20px;
    height: 20px;
    color: var(--cyan-accent);
}

.card-title-group h2 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.btn-subtle {
    font-size: 0.78rem;
    font-weight: 500;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-subtle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Channel Flow Component */
.channel-flow {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.channel-box {
    background: rgba(14, 18, 29, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    transition: border-color 0.2s ease;
}

.channel-box:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.box-tag {
    position: absolute;
    top: -8px;
    left: 14px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.source-box .box-tag { color: var(--cyan-accent); }
.dest-box .box-tag { color: var(--success); }

.channel-info {
    overflow: hidden;
}

.channel-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.channel-id {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    margin-top: 2px;
}

.btn-change-channel {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-change-channel:hover {
    background: rgba(0, 136, 204, 0.15);
    color: var(--cyan-accent);
    border-color: rgba(0, 210, 255, 0.3);
}

.flow-arrow {
    display: flex;
    justify-content: center;
    color: var(--text-muted);
    margin: -4px 0;
}

.flow-arrow svg {
    width: 18px;
    height: 18px;
    transform: rotate(90deg);
}

/* 1-Click Action Buttons */
.presets-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-align: left;
    position: relative;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.primary-action {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.22) 0%, rgba(0, 210, 255, 0.12) 100%);
    border-color: rgba(0, 210, 255, 0.4);
    box-shadow: 0 4px 16px rgba(0, 136, 204, 0.15);
}

.primary-action:hover {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.35) 0%, rgba(0, 210, 255, 0.22) 100%);
    border-color: var(--cyan-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.secondary-action {
    background: rgba(255, 255, 255, 0.03);
}

.secondary-action:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-icon-area {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-primary);
}

.primary-action .btn-icon-area {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.btn-icon-area svg {
    width: 18px;
    height: 18px;
}

.btn-text-area {
    flex: 1;
}

.btn-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-desc {
    font-size: 0.74rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.preset-tag {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    background: rgba(0, 210, 255, 0.15);
    color: var(--cyan-accent);
    border-radius: 999px;
    border: 1px solid rgba(0, 210, 255, 0.3);
}

.action-btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}

.action-btn-sub {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn-sub svg {
    width: 15px;
    height: 15px;
}

.action-btn-sub:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.18);
}

/* Custom Time Filter Section */
.time-filter-section {
    margin-top: 14px;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.time-filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.time-filter-label svg {
    width: 14px;
    height: 14px;
    color: var(--cyan-accent);
}

.time-filter-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.time-filter-input {
    flex: 1;
    background: rgba(14, 18, 29, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 9px 12px;
    font-size: 0.84rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.time-filter-input:focus {
    border-color: var(--cyan-accent);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.25);
}

.btn-custom-run {
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.25) 0%, rgba(0, 210, 255, 0.15) 100%);
    border: 1px solid var(--cyan-accent);
    color: var(--cyan-accent);
    font-weight: 700;
    font-size: 0.84rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-custom-run svg {
    width: 13px;
    height: 13px;
}

.btn-custom-run:hover {
    background: var(--accent-gradient);
    color: #0b0f17;
    box-shadow: 0 0 16px var(--primary-glow);
    transform: translateY(-1px);
}

.btn-custom-run:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Scheduler Card */
.scheduler-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scheduler-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.scheduler-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.scheduler-controls label {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
    white-space: nowrap;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    flex: 1;
    background-color: #111724;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    color: #f8fafc;
    padding: 8px 38px 8px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-select:hover {
    border-color: rgba(255, 255, 255, 0.24);
    background-color: #141b2a;
}

.form-select:focus {
    border-color: var(--cyan-accent);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.25);
    background-color: #141b2a;
}

.form-select option {
    background-color: #111724;
    color: #f8fafc;
    padding: 10px;
}

.scheduler-status-text {
    font-size: 0.78rem;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

.scheduler-status-text.active {
    background: rgba(0, 210, 255, 0.08);
    border-color: rgba(0, 210, 255, 0.25);
    color: var(--cyan-accent);
}

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

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
}

input:checked + .slider {
    background: var(--accent-gradient);
    box-shadow: 0 0 10px var(--primary-glow);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Terminal Card (Middle Column: The Console) */
.terminal-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 650px;
    height: 100%;
}

.terminal-header {
    background: rgba(14, 18, 29, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.tab-buttons {
    display: flex;
    gap: 8px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.tab-btn:hover:not(.active) {
    color: var(--text-secondary);
}

.terminal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-term-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 3px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-term-action:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.autoscroll-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    color: var(--text-muted);
    cursor: pointer;
}

/* Log Filters */
.log-filters {
    display: flex;
    gap: 6px;
    padding: 8px 18px;
    background: rgba(10, 13, 20, 0.75);
    border-bottom: 1px solid var(--border-color);
}

.filter-pill {
    background: none;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.filter-pill:hover:not(.active) {
    color: var(--text-secondary);
}

/* Terminal Body & Log Stream */
.terminal-body {
    flex: 1;
    background: #080a10;
    padding: 16px 18px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
}

.log-stream {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.log-entry {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    word-break: break-all;
    animation: fadeIn 0.15s ease;
}

.log-time {
    color: #4b5563;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.log-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    letter-spacing: 0.03em;
}

.badge-info { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.badge-success { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.badge-warn { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.badge-error { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.log-text {
    color: #d1d5db;
}

.log-success .log-text { color: #a7f3d0; }
.log-warning .log-text { color: #fde68a; }
.log-error .log-text { color: #fca5a5; }

/* History View Tab */
.history-view {
    flex: 1;
    background: #080a10;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.history-controls {
    display: flex;
    justify-content: space-between;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-color);
}

.history-table-container {
    flex: 1;
    overflow-y: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
}

.history-table th {
    text-align: left;
    padding: 10px 18px;
    background: rgba(14, 18, 29, 0.9);
    color: var(--text-muted);
    font-weight: 600;
    position: sticky;
    top: 0;
    border-bottom: 1px solid var(--border-color);
}

.history-table td {
    padding: 10px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}

.history-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.status-badge-sm {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
}

.status-badge-sm.SUCCESS { background: var(--success-bg); color: var(--success); }
.status-badge-sm.FAILED { background: var(--danger-bg); color: var(--danger); }
.status-badge-sm.SKIPPED { background: rgba(148, 163, 184, 0.15); color: var(--text-muted); }

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 7, 12, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal-dialog {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 540px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

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

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title-wrap svg {
    width: 20px;
    height: 20px;
    color: var(--cyan-accent);
}

.modal-title-wrap h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 22px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(10, 13, 20, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
}

.modal-search-box svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.modal-search-box input {
    background: none;
    border: none;
    color: var(--text-primary);
    width: 100%;
    outline: none;
    font-size: 0.85rem;
}

.channel-list-container {
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

.channel-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.channel-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
}

.channel-item-left {
    overflow: hidden;
}

.channel-item-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.channel-item-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.channel-item-actions {
    display: flex;
    gap: 6px;
}

.btn-item-action {
    font-size: 0.72rem;
    padding: 5px 9px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-item-action:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.manual-input-box {
    margin-top: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
}

.manual-input-box h4 {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.manual-input-row {
    display: flex;
    gap: 8px;
}

.manual-input-row input {
    flex: 1;
    background: rgba(10, 13, 20, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 0.82rem;
    outline: none;
}

.btn-primary-block {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: var(--accent-gradient);
    border: none;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px var(--primary-glow);
}

/* Power Off Confirmation Modal */
.power-dialog {
    max-width: 400px;
    padding: 32px 28px 26px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(239, 68, 68, 0.2);
}

.power-dialog-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.power-dialog-icon svg {
    width: 28px;
    height: 28px;
}

.power-dialog-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.power-dialog-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

.power-dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 12px;
}

.btn-power-cancel {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-power-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-power-shutdown {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: 1px solid rgba(239, 68, 68, 0.6);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
    transition: all 0.2s ease;
}

.btn-power-shutdown svg {
    width: 16px;
    height: 16px;
}

.btn-power-shutdown:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
}

.btn-primary-block:hover {
    box-shadow: 0 6px 20px var(--primary-glow);
    transform: translateY(-1px);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
}

.toast {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    color: var(--text-primary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    animation: slideInUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.toast-success { border-color: rgba(16, 185, 129, 0.4); }
.toast.toast-error { border-color: rgba(239, 68, 68, 0.4); }

/* Spinners & Utilities */
.loading-spinner-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--cyan-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.hidden { display: none !important; }
.text-center { text-align: center; }

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.22);
}

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

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

@keyframes shimmerMove {
    0% { left: -35%; }
    100% { left: 100%; }
}

/* ==========================================================================
   Telegram Channel Live Control Panel (Telegram Desktop Theme)
   ========================================================================== */

.tg-panel-card {
    padding: 0;
    overflow: hidden;
    background: rgba(16, 23, 35, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.tg-panel-top-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(11, 15, 24, 0.85);
    border-bottom: 1px solid var(--border-color);
}

.tg-panel-tab-group {
    display: flex;
    gap: 6px;
}

.tg-channel-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tg-channel-pill:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.08);
}

.tg-channel-pill.active {
    background: rgba(0, 136, 204, 0.16);
    border-color: rgba(0, 210, 255, 0.3);
    color: var(--text-primary);
}

.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.pill-dot.green { background: #10b981; }
.pill-dot.blue { background: #00c6ff; }

/* 4 Action Buttons Row */
.tg-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 14px 16px;
    background: rgba(14, 20, 31, 0.6);
    border-bottom: 1px solid var(--border-color);
}

.tg-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 6px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tg-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.tg-action-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8fa0b5;
}

.tg-action-icon svg {
    width: 20px;
    height: 20px;
}

.tg-action-btn:hover .tg-action-icon {
    color: var(--cyan-accent);
}

/* Sections */
.tg-panel-section {
    border-bottom: 1px solid var(--border-color);
}

/* Link Section */
.tg-link-section {
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tg-link-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tg-link-text {
    color: #40a7e3;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tg-link-text:hover {
    color: #64bbf5;
    text-decoration: underline;
}

.tg-link-sub {
    font-size: 0.74rem;
    color: var(--text-muted);
}

.tg-view-channel-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #40a7e3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tg-view-channel-link:hover {
    color: #79caff;
}

.tg-qr-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: #8fa0b5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tg-qr-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.tg-qr-btn svg {
    width: 16px;
    height: 16px;
}

/* Media & Community Lists */
.tg-media-list, .tg-community-list {
    padding: 6px 0;
}

.tg-media-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 9px 18px;
    transition: background 0.15s ease;
}

.tg-media-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.tg-media-row-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #76879b;
    flex-shrink: 0;
}

.tg-media-row-icon svg {
    width: 19px;
    height: 19px;
}

.tg-gif-badge {
    border: 1.5px solid #76879b;
    border-radius: 4px;
    font-size: 0.58rem;
    font-weight: 800;
    line-height: 1;
    padding: 2px 3px;
    letter-spacing: 0.02em;
}

.tg-media-row-text {
    font-size: 0.86rem;
    color: var(--text-primary);
    font-weight: 400;
    flex: 1;
}

.highlight-video {
    color: #40a7e3;
    font-weight: 500;
}

.tg-action-mini-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: #76879b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tg-action-mini-btn:hover {
    color: #40a7e3;
    background: rgba(64, 167, 227, 0.15);
}

.tg-action-mini-btn svg {
    width: 16px;
    height: 16px;
}

/* Footer Action */
.tg-panel-footer {
    padding: 12px 18px;
    background: rgba(10, 14, 22, 0.6);
}

.tg-panel-btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    background: rgba(64, 167, 227, 0.12);
    border: 1px solid rgba(64, 167, 227, 0.3);
    color: #40a7e3;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tg-panel-btn-action:hover {
    background: rgba(64, 167, 227, 0.22);
    border-color: #40a7e3;
    color: #fff;
    box-shadow: 0 0 12px rgba(64, 167, 227, 0.3);
}

.tg-panel-btn-action svg {
    width: 15px;
    height: 15px;
}

/* Responsive Media Queries */
@media (max-width: 1400px) {
    .dashboard-grid {
        grid-template-columns: 330px minmax(380px, 1fr) 350px;
        gap: 16px;
    }
}

@media (max-width: 1140px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .middle-col {
        order: 2;
    }
    .left-col {
        order: 1;
    }
    .right-col {
        order: 3;
    }
    .middle-col .terminal-card {
        min-height: 540px;
        height: 600px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .app-container {
        padding: 16px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
}

/* ==========================================================================
   Full-Screen Auth / Lock Screen
   ========================================================================== */
.auth-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 20%, rgba(14, 22, 38, 0.96) 0%, rgba(8, 11, 18, 0.98) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(18, 24, 38, 0.85);
    border: 1px solid rgba(0, 210, 255, 0.25);
    border-radius: var(--radius-xl);
    padding: 40px 32px 32px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 136, 204, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: "";
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 100px;
    background: radial-gradient(ellipse at center, rgba(0, 210, 255, 0.25) 0%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}

.auth-logo-wrap {
    margin-bottom: 18px;
    position: relative;
}

.auth-logo-img {
    height: 72px;
    width: auto;
    object-fit: contain;
    background: transparent;
    border: none;
    outline: none;
    filter: drop-shadow(0 0 12px rgba(0, 210, 255, 0.7)) drop-shadow(0 0 24px rgba(255, 120, 0, 0.5));
}

.auth-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.auth-subtitle {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.auth-error-banner {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ff8585;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-card.shake {
    animation: authShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes authShake {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(3px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.password-field-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.auth-input {
    width: 100%;
    background: rgba(10, 14, 22, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    color: #fff;
    padding: 13px 44px 13px 16px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

.auth-input:focus {
    border-color: var(--cyan-accent);
    box-shadow: 0 0 14px rgba(0, 210, 255, 0.3);
    background: rgba(14, 20, 32, 0.9);
}

.btn-eye-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.2s ease;
}

.btn-eye-toggle:hover {
    color: var(--text-primary);
}

.btn-eye-toggle svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.auth-btn-submit {
    width: 100%;
    padding: 13px 20px;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    border: none;
    color: #0b0f17;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    box-shadow: 0 4px 18px rgba(0, 136, 204, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-btn-submit:hover {
    box-shadow: 0 6px 24px var(--primary-glow);
    transform: translateY(-2px);
    color: #000;
}

.auth-btn-submit svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.auth-btn-submit:hover svg {
    transform: translateX(4px);
}

.auth-footer-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 22px;
}

.auth-footer-badge svg {
    width: 13px;
    height: 13px;
    color: var(--cyan-accent);
}

