/* ==========================================
   DESIGN SYSTEM & VARIABLES (MBS.Tools)
   ========================================== */
:root {
    --bg-color: #0b0b0f;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.07);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Harmonious colors - Purples, Cyans and Blues */
    --primary: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.5);
    --secondary: #06b6d4;
    --secondary-glow: rgba(6, 182, 212, 0.5);
    --accent: #ec4899;
    --accent-glow: rgba(236, 72, 153, 0.5);
    
    --nav-height: 80px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
    overflow: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
    position: relative;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    border: 2px solid var(--bg-color);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================
   GLOWING BACKGROUND EFFECT
   ========================================== */
.glow-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1200px;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.2;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -200px;
    left: 10%;
    animation: pulseGlow 12s infinite alternate ease-in-out;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    top: 200px;
    right: 10%;
    animation: pulseGlow 16s infinite alternate-reverse ease-in-out;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.15; }
    100% { transform: scale(1.2) translate(50px, 30px); opacity: 0.25; }
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(11, 11, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    z-index: 100;
    transition: var(--transition);
}

.navbar.scrolled {
    height: 70px;
    background: rgba(11, 11, 15, 0.85);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

.nav-logo span {
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

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

/* Burger menu button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    padding: 14px;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #6d28d9 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 20px -2px var(--primary-glow);
}

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

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.icon-arrow {
    transition: transform 0.3s ease;
}

.btn-primary:hover .icon-arrow {
    transform: translateX(4px);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #c084fc;
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    animation: flash 1.5s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #ffffff 30%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Mockup CSS (Dashboard Preview) */
.hero-preview {
    perspective: 1000px;
}

.dashboard-mockup {
    width: 100%;
    height: 380px;
    background: rgba(15, 15, 23, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 50px -10px rgba(139, 92, 246, 0.15);
    display: flex;
    flex-direction: column;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.dashboard-mockup:hover {
    transform: rotateY(-5deg) rotateX(2deg) translateY(-5px);
}

.mockup-header {
    height: 44px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 16px;
    justify-content: space-between;
}

.window-controls {
    display: flex;
    gap: 6px;
}

.window-controls .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.window-controls .close { background-color: #ef4444; }
.window-controls .minimize { background-color: #eab308; }
.window-controls .maximize { background-color: #22c55e; }

.mockup-search {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 16px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    width: 200px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.avatar-mock {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: block;
}

.mockup-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.mockup-sidebar {
    width: 120px;
    background: rgba(255, 255, 255, 0.01);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-item {
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.sidebar-item.active, .sidebar-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-icon {
    font-size: 0.85rem;
}

.mockup-canvas {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.canvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.canvas-title {
    font-weight: 600;
    color: var(--text-secondary);
}

.status-indicator {
    color: var(--secondary);
    font-size: 0.7rem;
    animation: flash 1.2s infinite;
}

.canvas-workspace {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.canvas-preview-box {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gradient-ball-1 {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    top: -20px;
    left: -20px;
    animation: rotateBall 8s infinite linear;
}

.gradient-ball-2 {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -10px;
    right: -10px;
    animation: rotateBall 12s infinite linear reverse;
}

@keyframes rotateBall {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, 10px) scale(1.1); }
    100% { transform: translate(0, 0) scale(1); }
}

.glass-ui-card {
    width: 160px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    z-index: 1;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.card-glow-inner {
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.glass-ui-card h3 {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.glass-ui-card p {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.card-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
}

.card-bar::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0; width: 65%;
    background: var(--primary);
    border-radius: 2px;
}

.mockup-panel {
    width: 100px;
    background: rgba(255, 255, 255, 0.01);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.panel-section h4 {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.range-slider {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 8px;
    position: relative;
}

.range-slider::after {
    content: '';
    position: absolute;
    right: 20%; left: 0; top: 0; bottom: 0;
    background: var(--secondary);
    border-radius: 2px;
}

.range-slider:nth-child(3)::after {
    right: 50%;
    background: var(--accent);
}

.stats .stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-val {
    color: var(--text-secondary);
}

.stat-val.active {
    color: var(--secondary);
    font-weight: 600;
}

/* ==========================================
   SECTIONS GENERAL STYLES
   ========================================== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

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

/* ==========================================
   FEATURES SECTION
   ========================================== */
.features {
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(800px circle at var(--x, 0) var(--y, 0), rgba(255,255,255,0.06), transparent 40%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon-wrapper.purple {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.feature-icon-wrapper.cyan {
    background: rgba(6, 182, 212, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.feature-icon-wrapper.magenta {
    background: rgba(236, 72, 153, 0.1);
    color: var(--accent);
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==========================================
   DEMO LIVE SECTION
   ========================================== */
.demo-section {
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.03) 50%, transparent 100%);
}

.demo-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 32px;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.demo-controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.demo-controls h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.prompt-suggestions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.prompt-btn {
    text-align: left;
    padding: 14px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.prompt-btn.active {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: #c084fc;
    box-shadow: 0 0 20px -5px rgba(139, 92, 246, 0.2);
}

.prompt-input-wrapper {
    display: flex;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    padding: 6px;
    border-radius: 14px;
    align-items: center;
}

.prompt-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.prompt-input-wrapper input::placeholder {
    color: var(--text-muted);
}

/* Demo Sandbox Output Area */
.demo-sandbox {
    background: #050508;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.sandbox-header {
    height: 38px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 6px;
}

.sandbox-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.sandbox-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 8px;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.sandbox-output {
    flex: 1;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

/* Sandbox Loading State overlay */
.sandbox-overlay {
    position: absolute;
    top: 38px; left: 0; right: 0; bottom: 0;
    background: rgba(5, 5, 8, 0.95);
    z-index: 10;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 24px;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(139, 92, 246, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

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

.terminal-logs {
    font-family: monospace;
    font-size: 0.75rem;
    color: #22c55e;
    text-align: left;
    white-space: pre-wrap;
    max-width: 80%;
    line-height: 1.5;
}

/* Sandbox design outputs templates */
/* 1. Cyberpunk preview */
.cyber-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

.cyber-card {
    background: rgba(255, 0, 128, 0.02);
    border: 1px solid rgba(255, 0, 128, 0.15);
    border-radius: 12px;
    padding: 16px;
    position: relative;
    box-shadow: 0 0 15px rgba(255, 0, 128, 0.05);
}

.cyber-card.secondary {
    background: rgba(6, 182, 212, 0.02);
    border-color: rgba(6, 182, 212, 0.15);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.05);
}

.cyber-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(236, 72, 153, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.cyber-badge.cyan {
    color: var(--secondary);
    background: rgba(6, 182, 212, 0.1);
}

.cyber-card h3 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.cyber-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.cyber-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
}

.cyber-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #9333ea);
    border-radius: 10px;
}

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

.cyber-chart-dummy {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
    margin-top: 8px;
}

.cyber-chart-dummy .chart-bar {
    flex: 1;
    background: rgba(6, 182, 212, 0.3);
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    transition: height 0.5s ease;
}

/* 2. Portfolio preview */
.portfolio-preview {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    color: #e2e8f0;
}

.port-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.port-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.port-nav {
    display: flex;
    gap: 12px;
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.port-hero {
    text-align: center;
    padding: 16px 0;
}

.port-hero h2 {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.15rem;
    line-height: 1.3;
    margin-bottom: 6px;
}

.port-hero p {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.port-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.port-img {
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.2);
}

/* 3. Fashion premium preview */
.fashion-preview {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 16px;
    width: 100%;
    background: #090909;
    border: 1px solid #1c1c1c;
    border-radius: 12px;
    padding: 16px;
}

.fashion-img-box {
    background: linear-gradient(180deg, #1c1c1c, #0f0f0f);
    border-radius: 8px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.fashion-img-box::before {
    content: 'CLOTHING';
    font-family: var(--font-heading);
    font-size: 0.65rem;
    color: rgba(255,255,255,0.1);
    font-weight: 800;
    letter-spacing: 4px;
}

.fashion-badge {
    position: absolute;
    top: 8px; left: 8px;
    font-size: 0.55rem;
    background: #ffffff;
    color: #000000;
    font-weight: 700;
    padding: 2px 6px;
    letter-spacing: 0.5px;
}

.fashion-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fashion-cat {
    font-size: 0.55rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.fashion-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.fashion-price {
    font-size: 0.95rem;
    font-weight: 500;
    color: #d4af37;
    margin-bottom: 12px;
}

.fashion-btn {
    align-self: flex-start;
    background: #fff;
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 4px;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
}

/* ==========================================
   PRICING SECTION
   ========================================== */
.pricing-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.toggle-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.toggle-label.active {
    color: var(--text-primary);
}

.discount-badge {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 4px;
    border: 1px solid rgba(34, 197, 94, 0.15);
}

.pricing-toggle {
    width: 52px;
    height: 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.pricing-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

.pricing-toggle .toggle-slider {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--text-primary);
    border-radius: 50%;
    left: 3px;
    top: 3px;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.pricing-toggle.active {
    background: var(--primary);
    border-color: rgba(139, 92, 246, 0.5);
}

.pricing-toggle.active .toggle-slider {
    left: 27px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
    align-items: stretch;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px 32px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.pricing-card.popular {
    background: rgba(139, 92, 246, 0.02);
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.15);
}

.popular-glow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 24px;
    pointer-events: none;
    box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.1);
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.plan-price {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.price-period {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.plan-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 32px;
    min-height: 48px;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
    flex: 1;
}

.plan-features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-icon {
    color: var(--secondary);
    font-weight: bold;
}

/* ==========================================
   FAQ SECTION
   ========================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.faq-trigger {
    width: 100%;
    padding: 24px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-secondary);
    transition: transform 0.4s ease;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
    padding: 0 24px;
}

.faq-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding-bottom: 24px;
    line-height: 1.6;
}

/* Active open FAQ state */
.faq-item.active {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-item.active .faq-content {
    /* Calculated dynamically in JS, but fallback here */
    max-height: 200px;
}

/* ==========================================
   CTA / NEWSLETTER SECTION
   ========================================== */
.cta-form-section {
    position: relative;
    padding-bottom: 100px;
}

.cta-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(6, 182, 212, 0.04) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 32px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.4);
}

.cta-box-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.cta-box h3 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-box p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 36px auto;
}

.newsletter-form {
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-form .form-group {
    display: flex;
    background: rgba(11, 11, 15, 0.8);
    border: 1px solid var(--card-border);
    padding: 6px;
    border-radius: 16px;
    transition: var(--transition);
}

.newsletter-form .form-group:focus-within {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 15px -3px rgba(139, 92, 246, 0.3);
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 12px 18px;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form button {
    white-space: nowrap;
}

.form-feedback {
    margin-top: 14px;
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 20px;
}

.form-feedback.success {
    color: #4ade80;
}

.form-feedback.error {
    color: #f87171;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    border-top: 1px solid var(--card-border);
    background: #07070a;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px;
    display: flex;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}

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

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.footer-logo span {
    color: var(--secondary);
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-col h5 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .dashboard-mockup {
        transform: none;
        max-width: 650px;
        margin: 0 auto;
    }
    
    .dashboard-mockup:hover {
        transform: translateY(-5px);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .demo-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .pricing-card.popular {
        grid-row: 1 / span 2;
        grid-column: 2;
    }
    
    .pricing-card:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }
    
    .nav-menu {
        display: none; /* Handled by JS for mobile menu drawer */
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #0b0b0f;
        border-bottom: 1px solid var(--card-border);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        text-align: center;
        z-index: 99;
    }
    
    .nav-menu.open {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* Close burger icon states */
    .menu-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
    }
    
    .pricing-card.popular {
        grid-row: auto;
        grid-column: auto;
    }
    
    .pricing-card:nth-child(3) {
        grid-row: auto;
        grid-column: auto;
    }
    
    .footer-links-wrapper {
        gap: 40px;
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .prompt-input-wrapper {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 12px;
    }
    
    .prompt-input-wrapper input {
        width: 100%;
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid var(--card-border);
        border-radius: 12px;
    }
    
    .prompt-input-wrapper button {
        width: 100%;
        padding: 12px;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 12px;
    }
    
    .newsletter-form input {
        width: 100%;
        background: rgba(11, 11, 15, 0.8);
        border: 1px solid var(--card-border);
        border-radius: 12px;
    }
    
    .newsletter-form button {
        width: 100%;
        padding: 14px;
    }
    
    .cyber-preview {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   COUNTER TOOL STYLES
   ========================================== */
.counter-main-container {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 80px;
    position: relative;
    z-index: 1;
}

.counter-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    margin-top: 40px;
    align-items: start;
}

.counter-input-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.textarea-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.textarea-wrapper:focus-within {
    border-color: var(--primary-glow);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 20px -5px var(--primary-glow);
}

#text-input {
    width: 100%;
    min-height: 350px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.6;
    resize: vertical;
    caret-color: var(--primary);
}

.counter-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.action-group {
    display: flex;
    gap: 12px;
}

.counter-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stats-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.stats-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.counter-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.counter-stat-row:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

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

.stat-number-val {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: var(--transition);
}

.stat-number-val.highlight {
    color: var(--secondary);
    text-shadow: 0 0 10px var(--secondary-glow);
}

/* Simulated AI Card Styles */
.ai-card {
    border-color: rgba(6, 182, 212, 0.25);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
}

.ai-card .ai-title {
    color: var(--text-primary);
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
}

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

.ai-actions-wrapper {
    margin-bottom: 20px;
}

.ai-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.5s ease;
}

.ai-result-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
}

.ai-result-section strong {
    color: var(--text-primary);
}

.ai-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 4px 10px;
    border-radius: 100px;
    text-transform: uppercase;
}

.ai-summary-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 8px;
    line-height: 1.5;
    border-left: 3px solid var(--secondary);
}

.ai-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    animation: fadeIn 0.3s ease;
}

.ai-loader p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

/* Responsive adjustment for counter */
@media (max-width: 900px) {
    .counter-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   WEBP CONVERTER TOOL STYLES
   ========================================== */
.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.01);
    border-radius: 24px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.drop-zone:hover, .drop-zone.dragover {
    background: rgba(139, 92, 246, 0.02);
    border-color: var(--primary);
    box-shadow: 0 0 30px -10px var(--primary-glow);
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    pointer-events: none;
}

.drop-icon {
    color: var(--text-muted);
    transition: var(--transition);
}

.drop-zone:hover .drop-icon, .drop-zone.dragover .drop-icon {
    color: var(--primary);
    transform: translateY(-5px);
}

.drop-zone-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
}

.drop-zone-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.source-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.image-preview-container-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    height: 220px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 12px;
}

.image-preview-container-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.image-details-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.01);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.detail-row span {
    color: var(--text-secondary);
}

.detail-row strong {
    color: var(--text-primary);
}

.quality-settings-box {
    margin-bottom: 24px;
}

.quality-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.quality-label-row span {
    color: var(--text-secondary);
}

.quality-label-row strong {
    color: var(--secondary);
    text-shadow: 0 0 8px var(--secondary-glow);
}

/* Quality range input styling */
#quality-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
}

#quality-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--secondary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--secondary-glow);
    transition: var(--transition);
}

#quality-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Output card states */
.output-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    min-height: 250px;
    color: var(--text-muted);
}

.output-empty-state p {
    font-size: 0.9rem;
    max-width: 220px;
    line-height: 1.5;
}

.compression-gain-badge {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* ==========================================
   PDF TO IMAGE CONVERTER TOOL STYLES
   ========================================== */
.pdf-config-options {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.01);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.config-select-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.config-select-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.premium-select, .premium-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text-primary);
    padding: 10px 14px;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
    width: 100%;
}

.premium-select:focus, .premium-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 10px -2px var(--secondary-glow);
}

/* Progress bar styling */
.progress-bar-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    height: 8px;
    width: 100%;
    margin-top: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.02);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 0 10px var(--secondary-glow);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

.pdf-results-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.results-count-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.rendered-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 6px;
}

/* Custom scrollbar for premium theme */
.rendered-pages-grid::-webkit-scrollbar {
    width: 6px;
}

.rendered-pages-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 100px;
}

.rendered-pages-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
}

.rendered-pages-grid::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

.pdf-page-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.pdf-page-item:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.pdf-page-item img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.pdf-page-item span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.pdf-page-item .btn-sm {
    padding: 6px;
    width: 100%;
    font-size: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}


