/* ==========================================================================
   Abel WebADB — стили
   ========================================================================== */

:root {
    --bg: #07090f;
    --bg-elevated: #0d1117;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);

    --text: #e7ecf3;
    --text-muted: #8b96a8;
    --text-dim: #5b6678;

    --accent: #22D3EE;
    --accent-hover: #67E8F9;
    --accent-2: #0EA5E9;
    --accent-3: #1E3A8A;
    --accent-warn: #ff9d3d;
    --accent-danger: #ff5470;

    --gradient: linear-gradient(135deg, #22D3EE 0%, #0EA5E9 55%, #1E3A8A 100%);
    --gradient-soft: linear-gradient(135deg, rgba(34, 211, 238, 0.20) 0%, rgba(14, 165, 233, 0.18) 50%, rgba(30, 58, 138, 0.15) 100%);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.30);

    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    --font: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Backgrounds */
.bg-gradient {
    position: fixed;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 140%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(34, 211, 238, 0.18) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 30%, rgba(14, 165, 233, 0.18) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 80%, rgba(30, 58, 138, 0.18) 0%, transparent 50%);
    pointer-events: none;
    z-index: -2;
    animation: drift 30s ease-in-out infinite;
}

.bg-grid {
    position: fixed;
    inset: 0;
    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: 56px 56px;
    pointer-events: none;
    z-index: -1;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-3%, 2%); }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glass card */
.glass {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    background: rgba(7, 9, 15, 0.7);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 18px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
}

.logo-icon img,
.logo-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.logo-block {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text {
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.02em;
}

.logo-accent {
    background: linear-gradient(90deg, #22D3EE 0%, #0EA5E9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-left: 4px;
}

.logo-sub {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-top: 1px;
}

.logo-sub-accent {
    background: linear-gradient(90deg, #22D3EE 0%, #1E3A8A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text);
    background: var(--surface);
}

.nav-link-license {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.10), rgba(14, 165, 233, 0.10));
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: var(--accent) !important;
    font-weight: 600;
}

.nav-link-license:hover {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.20), rgba(14, 165, 233, 0.20)) !important;
    border-color: var(--accent);
    color: var(--accent) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 12px 16px;
        gap: 12px;
    }
    .logo {
        flex: 0 0 auto;
    }
    .nav {
        order: 3;
        flex: 1 0 100%;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: flex-start;
    }
    .nav-link {
        font-size: 13px;
        padding: 6px 10px;
    }
    .logo-sub { display: none; }
}

@media (max-width: 380px) {
    .nav-link { font-size: 12px; padding: 5px 8px; }
    .logo-text { font-size: 15px; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 10px;
}

.btn-lg {
    padding: 16px 28px;
    font-size: 16px;
    border-radius: 16px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(14, 165, 233, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

.btn-primary:hover::before {
    opacity: 1;
}

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

.btn-ghost:hover {
    background: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.24);
}

.btn-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
}

.btn-icon svg {
    width: 100%;
    height: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-icon-only {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon-only:hover {
    background: var(--surface);
    color: var(--text);
}

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

/* Hero */
.hero {
    padding: 80px 0 100px;
    text-align: center;
    position: relative;
}

.hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
    animation: floatIn 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-logo img {
    width: 100%;
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 12px 32px rgba(14, 165, 233, 0.35));
    transition: var(--transition-slow);
}

.hero-logo img:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 20px 48px rgba(14, 165, 233, 0.5));
}

.hero-presents {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 14px;
    opacity: 0.7;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    background: var(--gradient-soft);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 24px;
    backdrop-filter: blur(20px);
}

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

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6); }
    100% { box-shadow: 0 0 0 12px rgba(34, 211, 238, 0); }
}

.hero-title {
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 32px;
    padding: 20px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border-strong);
}

@media (max-width: 480px) {
    .hero-stats { gap: 16px; padding: 16px 20px; }
    .stat-value { font-size: 22px; }
}

/* Sections */
.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 17px;
    max-width: 560px;
    margin: 0 auto 56px;
}

.features {
    padding: 80px 0;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

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

/* Feature cards */
.feature {
    padding: 28px;
    transition: var(--transition);
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.icon-emerald { background: rgba(34, 211, 238, 0.15); color: #22D3EE; }
.icon-violet  { background: rgba(124, 58, 237, 0.15); color: #a78bfa; }
.icon-orange  { background: rgba(255, 157, 61, 0.15); color: #ffb86b; }
.icon-cyan    { background: rgba(34, 211, 238, 0.15); color: #67e8f9; }
.icon-pink    { background: rgba(255, 84, 112, 0.15); color: #ff8fa3; }
.icon-yellow  { background: rgba(250, 204, 21, 0.15); color: #fde047; }

.feature h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

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

/* Manifesto / Team section */
.manifesto {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.manifesto::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 0%, rgba(34, 211, 238, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 100%, rgba(30, 58, 138, 0.18) 0%, transparent 50%);
    pointer-events: none;
}

.manifesto-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.manifesto-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 36px 0;
    flex-wrap: wrap;
    animation: floatIn 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

.manifesto-logo {
    width: 110px;
    height: 110px;
    border-radius: 22px;
    overflow: hidden;
    flex-shrink: 0;
    transition: var(--transition-slow);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    display: grid;
    place-items: center;
}

.manifesto-logo:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 24px 64px rgba(14, 165, 233, 0.4);
    border-color: var(--accent);
}

.manifesto-logo img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

.manifesto-logo-team {
    background: #1B3A6B;
    padding: 6px;
}

.manifesto-logo-evocar {
    padding: 0;
}

.manifesto-logo-evocar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.manifesto-logo-pekin {
    background: #0a0a0a;
    padding: 8px;
}

.manifesto-logo-pekin img {
    object-fit: contain;
    width: 100%;
}

.manifesto-logo-abel {
    background: #0a0a0a;
    padding: 0;
}

.manifesto-logo-abel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 600px) {
    .manifesto-logo { width: 80px; height: 80px; border-radius: 18px; }
    .manifesto-logos { gap: 12px; }
}

.manifesto-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.manifesto-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 32px;
}

.manifesto-text {
    font-size: clamp(16px, 1.8vw, 19px);
    line-height: 1.7;
    color: var(--text);
    max-width: 600px;
    margin: 0 auto 36px;
}

.manifesto-text p {
    margin-bottom: 18px;
}

.manifesto-text strong {
    color: var(--accent);
    font-weight: 700;
}

.manifesto-text em {
    color: var(--text-muted);
    font-style: italic;
}

.manifesto-cta-line {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 600;
    color: var(--text);
    margin-top: 28px;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .manifesto { padding: 60px 0; }
    .manifesto-logo { width: 72px; height: 72px; border-radius: 18px; }
    .manifesto-divider { height: 48px; }
}

/* How it works */
.how {
    padding: 80px 0;
}

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

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

.step {
    padding: 32px;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--gradient);
    color: white;
    font-weight: 800;
    font-size: 18px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* FAQ */
.faq {
    padding: 80px 0;
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    padding: 0;
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 24px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 22px;
    color: var(--text-muted);
    transition: var(--transition);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:hover {
    background: var(--surface-hover);
}

.faq-item p {
    padding: 0 24px 20px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer */
.footer {
    padding: 40px 0 32px;
    border-top: 1px solid var(--border);
    margin-top: 80px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    max-width: 360px;
}

.footer-logo-full {
    display: block;
    width: 200px;
    height: auto;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 16px rgba(14, 165, 233, 0.25));
}

.footer-text {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 8px;
    max-width: 360px;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text-dim);
    font-size: 13px;
}

.footer-tech a {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px dashed var(--text-dim);
}

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

/* ==========================================================================
   Dashboard
   ========================================================================== */

.dashboard {
    padding: 40px 0 80px;
    animation: fadeIn 600ms ease-out;
}

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

.device-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.device-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.device-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gradient-soft);
    display: grid;
    place-items: center;
    color: var(--accent);
}

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

.device-name {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.01em;
}

.device-serial {
    color: var(--text-muted);
    font-size: 13px;
    font-family: var(--font-mono);
    margin-top: 2px;
}

.device-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 100px;
    background: rgba(14, 165, 233, 0.14);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}

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

@media (max-width: 600px) {
    .device-card { flex-wrap: wrap; }
}

/* Tabs */
.tabs {
    display: flex;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px;
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tab svg { width: 16px; height: 16px; }

.tab:hover { color: var(--text); }

.tab.active {
    background: var(--surface-hover);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.tab-panel {
    display: none;
    animation: fadeIn 300ms ease-out;
}

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

/* Info cards */
.info-card {
    padding: 20px 24px;
}

.info-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-value {
    font-size: 18px;
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: -0.01em;
    word-break: break-all;
}

.info-card-wide {
    grid-column: 1 / -1;
}

/* Dropzone */
.dropzone {
    padding: 60px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px dashed var(--border-strong);
}

.dropzone:hover, .dropzone.dragover {
    border-color: var(--accent);
    background: rgba(14, 165, 233, 0.05);
}

.dropzone-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--gradient-soft);
    color: var(--accent);
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
}

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

.dropzone-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.dropzone-subtitle {
    color: var(--text-muted);
    font-size: 14px;
}

.install-progress {
    margin-top: 20px;
    padding: 20px 24px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.install-progress-label {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text);
}

.progress {
    width: 100%;
    height: 6px;
    background: var(--surface-hover);
    border-radius: 100px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient);
    border-radius: 100px;
    width: 0%;
    transition: width 300ms ease-out;
}

/* Terminal */
.terminal {
    overflow: hidden;
    margin-bottom: 16px;
    padding: 0;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border);
}

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

.terminal-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-dim);
}

.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }

.terminal-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.terminal-output {
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    height: 360px;
    overflow-y: auto;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-all;
}

.terminal-output .cmd {
    color: var(--accent);
}

.terminal-output .err {
    color: var(--accent-danger);
}

.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
}

.terminal-prompt {
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 600;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 13px;
}

/* Library of ADB commands */
.cmd-library {
    margin-top: 8px;
}

.cmd-library-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.cmd-library-header h3 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.cmd-search {
    flex: 0 0 240px;
    max-width: 100%;
    padding: 9px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: var(--transition);
}

.cmd-search:focus {
    border-color: var(--accent);
    background: var(--surface-hover);
}

.cmd-group {
    margin-bottom: 18px;
}

.cmd-group.hidden {
    display: none;
}

.cmd-group-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 0 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}

.cmd-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 6px;
}

.cmd-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    min-height: 56px;
}

.cmd-item:hover {
    background: var(--surface-hover);
    border-color: var(--accent);
}

.cmd-item.hidden {
    display: none;
}

.cmd-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.cmd-item code {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    background: transparent;
    padding: 0;
    word-break: break-all;
    line-height: 1.4;
}

.cmd-item:hover code {
    color: var(--accent);
}

/* Screenshot */
.screenshot-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.screenshot-container {
    padding: 20px;
    min-height: 320px;
    display: grid;
    place-items: center;
}

.screenshot-container img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.screenshot-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.screenshot-placeholder p {
    margin-top: 12px;
    font-size: 14px;
}

/* Logcat */
.logcat-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.logcat-filter {
    flex: 1;
    min-width: 200px;
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.logcat-filter:focus {
    border-color: var(--accent);
}

.logcat-output {
    height: 480px;
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.5;
    overflow-y: auto;
    white-space: pre;
    word-break: keep-all;
}

.logcat-placeholder {
    color: var(--text-dim);
    font-family: var(--font);
    font-size: 14px;
    text-align: center;
    padding: 40px 20px;
    white-space: normal;
}

.log-line {
    padding: 2px 0;
}

.log-V { color: #8b96a8; }
.log-D { color: #67e8f9; }
.log-I { color: #22D3EE; }
.log-W { color: #ffb86b; }
.log-E { color: #ff8fa3; }
.log-F { color: #ff5470; font-weight: 600; }

/* Custom scrollbars */
.terminal-output::-webkit-scrollbar,
.logcat-output::-webkit-scrollbar {
    width: 8px;
}

.terminal-output::-webkit-scrollbar-track,
.logcat-output::-webkit-scrollbar-track {
    background: transparent;
}

.terminal-output::-webkit-scrollbar-thumb,
.logcat-output::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 4px;
}

/* Music player — floating bottom-right */
.music-player {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(13, 17, 23, 0.85);
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    backdrop-filter: blur(20px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    max-width: calc(100vw - 40px);
}

.music-player:hover {
    border-color: var(--accent);
    box-shadow: 0 16px 48px rgba(14, 165, 233, 0.3);
}

.music-btn {
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    transition: var(--transition);
}

.music-btn:hover { background: var(--surface-hover); color: var(--accent); }

.music-icon { width: 16px; height: 16px; }

.music-toggle {
    background: var(--gradient);
    color: white;
    width: 36px;
    height: 36px;
}

.music-toggle:hover { color: white; }
.music-toggle .music-icon { width: 14px; height: 14px; }

.music-info {
    padding: 0 8px;
    line-height: 1.2;
    min-width: 0;
}

.music-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.music-artist {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
}

@media (max-width: 480px) {
    .music-info { display: none; }
    .music-player { padding: 6px; left: 12px; bottom: 12px; }
}

/* Toasts */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    padding: 14px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 400px;
    font-size: 14px;
    animation: slideIn 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.toast-leave {
    animation: slideOut 300ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast-success { border-left: 3px solid var(--accent); }
.toast-success .toast-icon { color: var(--accent); }
.toast-error { border-left: 3px solid var(--accent-danger); }
.toast-error .toast-icon { color: var(--accent-danger); }
.toast-info { border-left: 3px solid #67e8f9; }
.toast-info .toast-icon { color: #67e8f9; }

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

@keyframes slideOut {
    to { opacity: 0; transform: translateX(20px); }
}

@media (max-width: 600px) {
    .toast-container {
        bottom: 12px;
        right: 12px;
        left: 12px;
    }
    .toast { min-width: auto; }
}
