:root {
    --bg-dark: #090b10;
    --bg-card: rgba(18, 22, 33, 0.78);
    --bg-card-hover: rgba(26, 32, 48, 0.9);
    --bg-input: #0e121b;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(124, 58, 237, 0.45);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --primary: #7c3aed; /* Stremio Purple */
    --primary-hover: #6d28d9;
    --accent-br: #10b981; /* Emerald Green */
    --accent-yellow: #f59e0b;
    --danger: #ef4444;
    --blue: #3b82f6;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.16;
    z-index: -2;
    pointer-events: none;
}

.glow-1 {
    top: -180px;
    left: -120px;
    background: var(--primary);
}

.glow-2 {
    bottom: -200px;
    right: -120px;
    background: var(--accent-br);
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 11, 16, 0.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.brand-logo {
    position: relative;
    width: 44px;
    height: 44px;
    min-width: 44px;
    max-width: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #1e202b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.45);
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 11px;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.badge-br {
    position: absolute;
    bottom: -4px;
    right: -6px;
    background: var(--accent-br);
    color: #052e16;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 6px;
    border: 2px solid var(--bg-dark);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-name .highlight {
    color: var(--accent-br);
}

.brand-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    padding: 5px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

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

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

.nav-btn.active {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.4);
}

.nav-counter {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 99px;
}

.nav-btn.active .nav-counter {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

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

.server-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 0.78rem;
    font-family: var(--font-mono);
    color: #a7f3d0;
}

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

.status-dot.online {
    box-shadow: 0 0 8px var(--accent-br);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.84rem;
}

.btn-lg {
    padding: 13px 22px;
    font-size: 0.98rem;
    border-radius: 10px;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #5b21b6);
    color: #fff;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #8b5cf6, var(--primary));
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(16, 185, 129, 0.14);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}

.btn-secondary:hover {
    background: rgba(16, 185, 129, 0.22);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border-color: var(--border-color);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.35);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.26);
}

.icon-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Main Content & Tabs */
.main-content {
    flex: 1;
    padding-top: 32px;
    padding-bottom: 64px;
}

.tab-section {
    display: none;
    animation: fadeIn 0.25s ease;
}

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

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

/* Hero Section */
.hero-card {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 38px;
    box-shadow: var(--shadow-lg);
    align-items: center;
    margin-bottom: 28px;
}

.pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.35);
    color: #c4b5fd;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 99px;
    margin-bottom: 16px;
}

.pill-tag svg {
    width: 14px;
    height: 14px;
}

.hero-title {
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}

.gradient-text {
    background: linear-gradient(90deg, #34d399, #fbbf24, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.02rem;
    margin-bottom: 24px;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.manifest-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

.manifest-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    white-space: nowrap;
}

.manifest-label svg {
    width: 15px;
    height: 15px;
    color: var(--primary);
}

.manifest-box code {
    color: #a7f3d0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Terminal Visual */
.terminal-window {
    background: #07090e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6);
}

.terminal-header {
    background: #111520;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.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; }

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

.terminal-body {
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.65;
    max-height: 290px;
    overflow-y: auto;
}

.log-line {
    margin-bottom: 6px;
    word-break: break-word;
}
.log-time { color: #6b7280; }
.log-info { color: #60a5fa; font-weight: 600; }
.log-ok { color: #34d399; font-weight: 600; }
.log-req { color: #c084fc; font-weight: 600; }
.log-hit { color: #fbbf24; font-weight: 600; }
.log-ai { color: #f472b6; font-weight: 600; }

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

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.purple { background: rgba(124, 58, 237, 0.15); color: #a78bfa; }
.stat-icon.green { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.stat-icon.blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.stat-icon.orange { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    cursor: pointer;
    transition: all 0.22s ease;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-highlight);
    transform: translateY(-3px);
}

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

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(124, 58, 237, 0.15);
    color: #c4b5fd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-arrow {
    color: var(--text-muted);
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Section Header */
.section-header {
    margin-bottom: 24px;
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.65rem;
    margin-bottom: 4px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Search Panel */
.search-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.imdb-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
    margin-bottom: 16px;
}

.imdb-input-wrap {
    flex: 2;
    min-width: 240px;
}

.type-select-wrap {
    flex: 1;
    min-width: 160px;
}

.series-fields {
    display: flex;
    gap: 10px;
}

.series-fields.hidden {
    display: none;
}

.small-input {
    width: 95px;
}

.input-group label,
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #d1d5db;
    margin-bottom: 6px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.input-with-icon input {
    padding-left: 38px;
}

input, select, textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    padding: 10px 14px;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
}

.quick-examples {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.chip-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #d1d5db;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    padding: 4px 10px;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.2s;
}

.chip-btn:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--primary);
    color: #fff;
}

/* Search Result Cards */
.result-header-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.media-meta h3 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.imdb-badge {
    background: #f5c518;
    color: #000;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
}

.subs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sub-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sub-item-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.sub-release {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.92rem;
}

.badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-native {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-ai {
    background: rgba(124, 58, 237, 0.18);
    color: #c4b5fd;
    border: 1px solid rgba(124, 58, 237, 0.35);
}

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

.sub-meta-row {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.sub-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Two Column Layout (Requests & Reports) */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 24px;
    align-items: start;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
}

.card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.12rem;
    margin-bottom: 18px;
}

.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.req {
    color: var(--danger);
}

.help-text {
    display: block;
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 4px;
}

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

.list-card-header h3 {
    margin-bottom: 0;
}

.filter-pills {
    display: flex;
    gap: 6px;
}

.pill-filter {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.78rem;
    padding: 5px 12px;
    border-radius: 99px;
    cursor: pointer;
}

.pill-filter.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-item {
    background: rgba(14, 18, 27, 0.75);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.item-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-title {
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.item-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.upvote-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s;
}

.upvote-btn:hover, .upvote-btn.voted {
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--primary);
    color: #c4b5fd;
}

/* AI Engine Section */
.ai-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 24px;
}

.specs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.specs-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
}

.spec-key {
    color: var(--text-muted);
}

.spec-val {
    text-align: right;
    font-weight: 500;
}

.pipeline-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.step-item {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-item strong {
    font-size: 0.85rem;
    display: block;
}

.step-item small {
    font-size: 0.74rem;
    color: var(--text-muted);
}

.card-subtitle {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.sandbox-io {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sandbox-box label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.sandbox-box textarea {
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    margin-top: auto;
    background: rgba(9, 11, 16, 0.9);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-main);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}

.modal-overlay.hidden {
    display: none;
}

.modal-card {
    background: #121621;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 640px;
    width: 100%;
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

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

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.modal-install-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.code-label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.code-block {
    background: #080a0f;
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #a7f3d0;
    overflow-x: auto;
    max-height: 260px;
}

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

.toast {
    background: #161b28;
    border: 1px solid rgba(124, 58, 237, 0.5);
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.25s ease;
}

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

/* Responsive */
@media (max-width: 980px) {
    .hero-card,
    .two-col-layout,
    .ai-grid {
        grid-template-columns: 1fr;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 20px;
        right: 20px;
        flex-direction: column;
        background: #121621;
        padding: 12px;
        border: 1px solid var(--border-color);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-btn {
        width: 100%;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .server-pill {
        display: none;
    }
}

@media (max-width: 560px) {
    .stats-grid,
    .form-row,
    .pipeline-steps {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.75rem;
    }
}

/* Ajuste responsivo estrito da logo para Tablet, Celular e Smart TV */
@media (max-width: 980px) {
    .brand-logo {
        width: 40px;
        height: 40px;
        min-width: 40px;
        max-width: 40px;
        border-radius: 11px;
    }
    .brand-logo-img {
        border-radius: 10px;
    }
}

@media (max-width: 560px) {
    .navbar {
        padding: 10px 0;
    }
    .brand {
        gap: 9px;
    }
    .brand-logo {
        width: 36px;
        height: 36px;
        min-width: 36px;
        max-width: 36px;
        border-radius: 10px;
    }
    .brand-logo-img {
        border-radius: 9px;
    }
    .badge-br {
        font-size: 8.5px;
        padding: 1px 4px;
        bottom: -3px;
        right: -4px;
    }
    .brand-name {
        font-size: 1.05rem;
    }
    .brand-sub {
        font-size: 0.65rem;
    }
}

@media (min-width: 1920px) {
    .container {
        max-width: 1480px;
    }
    .brand-logo {
        width: 52px;
        height: 52px;
        min-width: 52px;
        max-width: 52px;
        border-radius: 14px;
    }
    .brand-logo-img {
        border-radius: 13px;
    }
    .brand-name {
        font-size: 1.35rem;
    }
    .brand-sub {
        font-size: 0.8rem;
    }
}
