/* ==========================================
   ByteBuild - CSS Premium Design System
   ========================================== */

/* Custom Fonts & Base Variables */
:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-code: 'Fira Code', monospace;

    /* Color Palette */
    --primary: #0f82fa;
    --primary-hover: #036bd2;
    --primary-light: #e8f3ff;
    --teal: #10b981;
    --teal-hover: #059669;
    --teal-light: #ecfdf5;

    --bg-main: #f5f8fc;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-card-hover: rgba(255, 255, 255, 0.9);

    --border-color: rgba(15, 130, 250, 0.12);
    --border-light: rgba(255, 255, 255, 0.4);

    --text-title: #0f172a;
    --text-main: #334155;
    --text-sub: #64748b;
    --text-light: #94a3b8;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 25px -5px rgba(15, 130, 250, 0.06), 0 8px 16px -6px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 40px -10px rgba(15, 130, 250, 0.08), 0 12px 20px -8px rgba(0, 0, 0, 0.04);
    --shadow-premium: 0 10px 30px rgba(0, 92, 151, 0.06);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-title);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Button UI Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, #0f82fa 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(15, 130, 250, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #036bd2 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 130, 250, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-text {
    background: transparent;
    color: var(--text-main);
}

.btn-text:hover {
    color: var(--primary);
    background-color: rgba(15, 130, 250, 0.05);
}

.btn-full {
    width: 100%;
}

/* Header & Glassmorphic Navigation */
.app-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    padding: 10px 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.app-header.scrolled {
    top: 0;
    width: 100%;
    border-radius: 0;
    max-width: 100%;
    border-bottom: 1px solid rgba(15, 130, 250, 0.08);
    box-shadow: var(--shadow-lg);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

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

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

.brand-title {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 800;
    color: var(--text-title);
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-sub);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.nav-link:hover {
    color: var(--primary);
    background-color: rgba(15, 130, 250, 0.05);
}

.nav-link.active {
    color: var(--primary);
    background-color: var(--primary-light);
}

.auth-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* User Account Display in Header & Premium Dropdown Menu */
.user-dropdown-container {
    position: relative;
    display: inline-block;
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    background: linear-gradient(135deg, rgba(15, 130, 250, 0.06) 0%, rgba(15, 130, 250, 0.02) 100%);
    border: 1px solid rgba(15, 130, 250, 0.1);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.user-profile-header:hover {
    background: var(--primary-light);
    border-color: rgba(15, 130, 250, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 130, 250, 0.06);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f82fa 0%, #3b82f6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    box-shadow: 0 2px 6px rgba(15, 130, 250, 0.2);
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.dropdown-arrow {
    width: 14px;
    height: 14px;
    color: var(--primary);
    transition: var(--transition);
}

.user-dropdown-container.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Glassmorphic Dropdown Card */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(15, 130, 250, 0.12);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.95);
    transform-origin: top right;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000;
}

.user-dropdown-container.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Dropdown Menu Items */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: var(--transition);
}

.dropdown-item i {
    width: 16px;
    height: 16px;
    color: var(--text-sub);
    transition: var(--transition);
}

.dropdown-item:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

.dropdown-item:hover i {
    color: var(--primary);
    transform: translateX(3px);
}

.dropdown-item.logout-btn {
    border-top: 1px solid rgba(15, 130, 250, 0.08);
    margin-top: 6px;
    padding-top: 12px;
    color: var(--text-sub);
}

.dropdown-item.logout-btn:hover {
    color: #ef4444;
    background-color: #fef2f2;
}

.dropdown-item.logout-btn:hover i {
    color: #ef4444;
    transform: translateX(3px);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-title);
}

/* AdSense Banners */
.adsense-banner {
    background-color: #f1f5f9;
    border: 1px dashed var(--text-light);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 30px auto;
    padding: 16px;
    width: 100%;
    max-width: 1100px;
    min-height: 90px;
    text-align: center;
}

.ads-label {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.ads-box {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-sub);
}

/* Page Section Router Container */
.app-content {
    margin-top: 110px;
    min-height: calc(100vh - 350px);
}

.page-section {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Banner Headers */
.page-header-banner {
    position: relative;
    padding: 60px 5%;
    text-align: center;
    background-color: #ffffff;
    background-image:
        radial-gradient(rgba(15, 130, 250, 0.07) 1.5px, transparent 1.5px),
        radial-gradient(circle at top right, rgba(15, 130, 250, 0.12) 0%, transparent 60%),
        radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.06) 0%, transparent 60%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
    background-size: 24px 24px, 100% 100%, 100% 100%, 100% 100%;
    background-repeat: repeat, no-repeat, no-repeat, no-repeat;
    border-bottom: 1px solid rgba(15, 130, 250, 0.08);
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.page-header-banner h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--text-title);
}

.page-header-banner p {
    color: var(--text-sub);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.page-header-banner.software-theme {
    background-image:
        radial-gradient(rgba(16, 185, 129, 0.07) 1.5px, transparent 1.5px),
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.12) 0%, transparent 60%),
        radial-gradient(circle at bottom left, rgba(15, 130, 250, 0.06) 0%, transparent 60%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
    background-size: 24px 24px, 100% 100%, 100% 100%, 100% 100%;
    background-repeat: repeat, no-repeat, no-repeat, no-repeat;
    border-bottom: 1px solid rgba(16, 185, 129, 0.08);
}

/* 1. HERO BANNER */
.hero-banner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 4%;
}

.hero-text h1 {
    font-size: 52px;
    line-height: 1.15;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 17px;
    color: var(--text-sub);
    margin-bottom: 30px;
    max-width: 540px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--primary-light);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    border: 1px solid rgba(15, 130, 250, 0.08);
}

/* Search Bar Home */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid rgba(15, 130, 250, 0.15);
    border-radius: 30px;
    padding: 6px;
    box-shadow: var(--shadow-md);
    max-width: 580px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.search-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(15, 130, 250, 0.12);
    transform: translateY(-1px);
}

.search-icon {
    position: absolute;
    left: 20px;
    color: var(--text-light);
}

.search-container input {
    width: 100%;
    border: none;
    outline: none;
    padding: 10px 10px 10px 48px;
    font-size: 15px;
    font-family: var(--font-body);
    background: transparent;
    color: var(--text-title);
}

.search-btn {
    border-radius: 25px;
    padding: 8px 24px;
}

.trending-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
}

.tag-label {
    color: var(--text-light);
    font-weight: 600;
}

.tag {
    cursor: pointer;
    padding: 4px 12px;
    background: rgba(15, 130, 250, 0.04);
    border-radius: 30px;
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

/* Hero Vector Interactive Canvas Simulation */
.hero-animation {
    background: radial-gradient(circle at center, rgba(15, 130, 250, 0.08) 0%, transparent 70%);
    height: 380px;
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    perspective: 1000px;
}

.animation-perspective-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 450px;
    max-height: 350px;
    transform-style: preserve-3d;
}

.connection-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* IDE Code Window */
.ide-window-mockup {
    position: absolute;
    left: 15px;
    top: 35px;
    width: 200px;
    height: 220px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    z-index: 3;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: rotateY(18deg) rotateX(10deg) translateZ(10px);
    animation: floatIDE 6s ease-in-out infinite;
}

.ide-titlebar {
    background: rgba(30, 41, 59, 0.8);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ide-dots {
    display: flex;
    gap: 5px;
}

.ide-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.ide-dot.red {
    background-color: #ef4444;
}

.ide-dot.yellow {
    background-color: #f59e0b;
}

.ide-dot.green {
    background-color: #10b981;
}

.ide-filename {
    font-family: var(--font-heading);
    font-size: 10px;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.ide-code-container {
    padding: 12px;
    font-family: var(--font-code);
    font-size: 10px;
    color: #e2e8f0;
    line-height: 1.4;
    text-align: left;
    flex: 1;
    background: rgba(15, 23, 42, 0.2);
}

.code-line {
    white-space: nowrap;
    opacity: 0.85;
}

.code-line.indent {
    padding-left: 12px;
}

/* Code syntax coloring */
.c-keyword {
    color: #ff79c6;
    font-weight: 600;
}

.c-func {
    color: #50fa7b;
}

.c-num {
    color: #ffb86c;
}

.c-const {
    color: #bd93f9;
}

/* Microcontroller Board */
.mcu-board-mockup {
    position: absolute;
    right: 15px;
    bottom: 45px;
    width: 210px;
    height: 160px;
    z-index: 2;
    transform: rotateY(-18deg) rotateX(10deg) translateZ(20px);
    animation: floatMCU 6s ease-in-out infinite;
    animation-delay: -3s;
}

.mcu-pcb-surface {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    border: 2px solid #3b82f6;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(15, 130, 250, 0.25), inset 0 0 15px rgba(59, 130, 246, 0.3);
    overflow: hidden;
}

.pcb-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(59, 130, 246, 0.15) 1px, transparent 1px);
    background-size: 8px 8px;
    opacity: 0.8;
}

.pcb-component {
    position: absolute;
    background-color: #475569;
    border: 1px solid #64748b;
    border-radius: 2px;
}

/* USB Port */
.usb-port {
    left: -2px;
    top: 55px;
    width: 25px;
    height: 35px;
    background: linear-gradient(90deg, #94a3b8 0%, #cbd5e1 50%, #64748b 100%);
    border: 1px solid #cbd5e1;
    border-radius: 0 4px 4px 0;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

/* Crystal Oscillator */
.crystal-osc {
    left: 45px;
    top: 75px;
    width: 18px;
    height: 10px;
    background: #cbd5e1;
    border: 1px solid #94a3b8;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ATMEGA328P Chip */
.atmega-chip {
    left: 85px;
    top: 45px;
    width: 42px;
    height: 65px;
    background-color: #1e293b;
    border: 1.5px solid #0f172a;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.chip-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 4px;
    background-color: #0f172a;
    border-radius: 0 0 5px 5px;
}

.chip-text {
    font-family: var(--font-heading);
    font-size: 6px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
    letter-spacing: 0.5px;
    transform: rotate(-90deg);
}

/* Chip pins visual details */
.chip-pins-left,
.chip-pins-right {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 80%;
    top: 10%;
}

.chip-pins-left {
    left: -6px;
}

.chip-pins-right {
    right: -6px;
}

.chip-pins-left span,
.chip-pins-right span {
    width: 5px;
    height: 2px;
    background-color: #cbd5e1;
    border: 0.5px solid #94a3b8;
}

/* PCB Pin Headers */
.pin-header-top,
.pin-header-bottom {
    display: flex;
    background-color: #0f172a;
    border: 1px solid #1e293b;
    padding: 1px;
}

.pin-header-top {
    left: 40px;
    top: 12px;
    width: 130px;
    height: 10px;
}

.pin-header-bottom {
    left: 40px;
    bottom: 12px;
    width: 130px;
    height: 10px;
}

.pin-header-top span,
.pin-header-bottom span {
    flex: 1;
    margin: 1px;
    background-color: #f1f5f9;
    border: 0.5px solid #94a3b8;
    border-radius: 1px;
}

/* LEDs */
.pwr-led {
    right: 25px;
    top: 25px;
    width: 6px;
    height: 8px;
    background-color: #1e293b;
}

.pin13-led {
    right: 25px;
    top: 45px;
    width: 6px;
    height: 8px;
    background-color: #1e293b;
}

.led-glow {
    position: absolute;
    inset: 0;
    border-radius: 1px;
}

.green-glow {
    background-color: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.yellow-glow {
    background-color: #f59e0b;
    box-shadow: 0 0 6px #f59e0b;
}

.led-lbl {
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-heading);
    font-size: 6px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
}

/* Copper traces SVG */
.copper-traces-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.trace {
    fill: none;
    stroke: rgba(59, 130, 246, 0.25);
    stroke-width: 1;
}

.trace-glow-1 {
    stroke: #3b82f6;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: pulseTrace 4s linear infinite;
}

.trace-glow-2 {
    stroke: #10b981;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: pulseTrace 5s linear infinite 1s;
}

.trace-glow-3 {
    stroke: #f59e0b;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: pulseTrace 3s linear infinite 2s;
}

/* ==========================================
   ANIMATIONS KEYFRAMES
   ========================================== */
@keyframes floatIDE {

    0%,
    100% {
        transform: rotateY(18deg) rotateX(10deg) translateZ(10px) translateY(0);
    }

    50% {
        transform: rotateY(18deg) rotateX(10deg) translateZ(10px) translateY(-10px);
    }
}

@keyframes floatMCU {

    0%,
    100% {
        transform: rotateY(-18deg) rotateX(10deg) translateZ(20px) translateY(0);
    }

    50% {
        transform: rotateY(-18deg) rotateX(10deg) translateZ(20px) translateY(-10px);
    }
}

@keyframes pulseTrace {
    to {
        stroke-dashoffset: 0;
    }
}

/* Blinking Pin13 LED */
.blinking-led {
    animation: blinkLED 2.4s steps(1) infinite;
}

@keyframes blinkLED {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 8px #f59e0b, 0 0 15px #f59e0b;
    }

    50% {
        opacity: 0.15;
        box-shadow: none;
    }
}

/* Sections Containers */
.section-container {
    max-width: 1200px;
    margin: 40px auto 60px;
    padding: 0 4%;
}

.section-container.bg-light {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 50px 6%;
    border: 1px solid rgba(15, 130, 250, 0.06);
    box-shadow: var(--shadow-sm);
}

.section-header {
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header p {
    color: var(--text-sub);
    font-size: 15px;
}

/* Feature Split Columns */
.features-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.feature-checklist {
    list-style: none;
    margin-top: 24px;
}

.feature-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--text-main);
}

.icon-success {
    color: var(--teal);
    flex-shrink: 0;
    margin-top: 2px;
}

.features-stats-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-box {
    background: var(--bg-main);
    border: 1px solid rgba(15, 130, 250, 0.08);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
    background: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 4px;
}

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

/* Project Card Grids */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* Premium Project Card */
.project-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-lg);
    border-color: rgba(15, 130, 250, 0.2);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: #e2e8f0;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .card-img {
    transform: scale(1.05);
}

.card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cat-arduino {
    background-color: var(--primary);
}

.cat-software {
    background-color: var(--teal);
}

.card-difficulty {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 10px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 30px;
}

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 10px;
    color: var(--text-title);
}

.card-excerpt {
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(15, 130, 250, 0.06);
    font-size: 13px;
    color: var(--text-sub);
}

.card-budget {
    font-weight: 700;
    color: var(--text-title);
}

.card-tags {
    display: flex;
    gap: 6px;
}

.card-tag {
    color: var(--primary);
    font-weight: 500;
}

/* FILTER PAGE LAYOUT */
.filter-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 4%;
}

.filter-sidebar {
    background: white;
    border: 1px solid rgba(15, 130, 250, 0.08);
    border-radius: var(--radius-md);
    padding: 24px;
    height: fit-content;
    box-shadow: var(--shadow-sm);
}

.filter-group {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.filter-group:last-child {
    border: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-title);
}

.sidebar-search {
    position: relative;
}

.sidebar-search input {
    width: 100%;
    padding: 10px 36px 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
}

.sidebar-search input:focus {
    border-color: var(--primary);
}

.sidebar-search i,
.sidebar-search svg {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    width: 16px;
    height: 16px;
    pointer-events: none;
}

/* Custom Checkboxes */
.custom-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-main);
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    transition: var(--transition);
}

.custom-checkbox:hover input~.checkmark {
    background-color: #e2e8f0;
}

.custom-checkbox input:checked~.checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked~.checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Budget Range Slider styling */
.budget-slider-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#budget-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    text-align: right;
}

.budget-slider-container input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #cbd5e1;
    border-radius: 5px;
    outline: none;
}

.budget-slider-container input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(15, 130, 250, 0.3);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-light);
}

/* Filter Results Styles */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-sub);
}

.results-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-sort select {
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-main);
    outline: none;
    background-color: white;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid rgba(15, 130, 250, 0.05);
    grid-column: 1 / -1;
}

.no-results i {
    width: 48px;
    height: 48px;
    color: var(--text-light);
    margin-bottom: 12px;
}

/* ABOUT PAGE SPECIFIC STYLES */
.about-container {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 4%;
}

.about-hero {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 40px;
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(15, 130, 250, 0.05);
}

.about-large-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.about-tagline {
    font-size: 18px;
    color: var(--text-sub);
    font-weight: 500;
    max-width: 600px;
    margin: 10px auto 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
}

.about-main-text h2 {
    font-size: 26px;
    margin-bottom: 16px;
}

.about-main-text p {
    color: var(--text-main);
    font-size: 15px;
    margin-bottom: 20px;
}

.about-features-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.about-box {
    background-color: white;
    border: 1px solid #f1f5f9;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.about-box-icon {
    margin-bottom: 12px;
}

.about-box h4 {
    margin-bottom: 8px;
}

.about-box p {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 0;
}

.blue-icon {
    color: var(--primary);
}

.teal-icon {
    color: var(--teal);
}

/* Contact Sidebar Card */
.about-sidebar-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(15, 130, 250, 0.06);
    height: fit-content;
}

.about-sidebar-card h3 {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.about-sidebar-card p {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-title);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    background-color: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
    background-color: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 130, 250, 0.1);
}

/* ==========================================
   PROJECT DETAIL PAGE (MATCHES IMAGE LAYOUT)
   ========================================== */

.detail-container {
    max-width: 1100px;
    margin: 30px auto 60px;
    padding: 0 4%;
}

.detail-loading {
    text-align: center;
    padding: 100px 20px;
    font-size: 16px;
    color: var(--text-sub);
}

/* Back Link Button */
.back-btn-row {
    margin-bottom: 24px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-sub);
    transition: var(--transition);
}

.btn-back:hover {
    color: var(--primary);
    transform: translateX(-4px);
}

/* Project Header Block */
.detail-header {
    margin-bottom: 24px;
}

.detail-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.2;
    color: var(--text-title);
}

.detail-meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: var(--text-sub);
    font-weight: 500;
}

.meta-split {
    color: #cbd5e1;
}

.detail-tags {
    display: flex;
    gap: 8px;
}

.detail-tag {
    color: var(--primary);
    font-weight: 700;
}

/* 2-Column Detail Layout */
.detail-grid-columns {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 30px;
}

.detail-left-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.detail-right-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Custom Interactive Video Player Placeholder */
.video-player-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background-color: #1e293b;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.video-mock-thumbnail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-mock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    color: white;
}

.video-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.video-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Top Left YouTube Channel Info (Expandable on hover) */
.video-channel-info-container {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 40px;
    padding: 6px;
    gap: 0;
    max-width: 44px;
    /* Icon width + padding */
    height: 44px;
    overflow: hidden;
    transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1), gap 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-channel-info-container:hover {
    max-width: 320px;
    padding: 6px 16px 6px 6px;
    gap: 12px;
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(255, 255, 255, 0.15);
}

.video-channel-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    background-color: white;
}

.video-channel-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.1s, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
    white-space: nowrap;
    pointer-events: none;
}

.video-channel-info-container:hover .video-channel-details {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.video-channel-name {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.video-channel-subs {
    color: #cbd5e1;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    margin-top: 1px;
}

.video-subscribe-btn {
    background-color: #ffffff;
    color: #0f172a;
    border: none;
    border-radius: 50px;
    padding: 6px 14px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.15s, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.15s, background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.video-subscribe-btn:hover {
    background-color: #f1f5f9;
    color: #000000;
}

.video-channel-info-container:hover .video-subscribe-btn {
    opacity: 1;
    transform: translateX(0);
}

/* Bottom Right YouTube Pill */
.video-youtube-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 6px 14px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.video-youtube-pill:hover {
    background: rgba(15, 23, 42, 0.9);
    transform: scale(1.03);
}

.video-youtube-pill span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
}

.video-youtube-logo-container {
    display: flex;
    align-items: center;
    gap: 5px;
    background: white;
    padding: 4px 10px;
    border-radius: 50px;
}

.video-youtube-logo-container span {
    color: #000000;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -0.4px;
    line-height: 1;
}

.video-bottom-bar {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin-top: auto;
}

/* Center Play Button (Restore) */
.video-play-btn-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: none;
    z-index: 10;
}

.video-play-btn-center svg {
    width: 100%;
    height: 100%;
    transition: transform 0.2s ease;
}

.video-play-btn-center svg .yt-play-bg {
    fill: #ff0000;
    transition: fill 0.2s ease;
}

.video-player-container:hover .video-play-btn-center svg {
    transform: scale(1.1);
}

.video-player-container:hover .video-play-btn-center svg .yt-play-bg {
    fill: #e60000;
}

.video-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.video-progress-fill {
    width: 40%;
    height: 100%;
    background-color: var(--primary);
    border-radius: 2px;
}

.video-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.controls-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.video-action-icon {
    cursor: pointer;
    opacity: 0.85;
    transition: var(--transition);
}

.video-action-icon:hover {
    opacity: 1;
}

/* Material List (BOM) Section */
.detail-section-card {
    background: white;
    border: 1px solid rgba(15, 130, 250, 0.08);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.detail-section-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* BOM Table Design */
.bom-table-wrapper {
    overflow-x: auto;
}

.bom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.bom-table th {
    font-weight: 700;
    color: var(--text-sub);
    background-color: #f8fafc;
    padding: 10px 14px;
    border-bottom: 2px solid #e2e8f0;
}

.bom-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-main);
    vertical-align: middle;
}

.bom-checkbox-td {
    width: 40px;
}

.bom-buy-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bom-buy-link:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}

/* Schematic Section Vector Layout */
.schematic-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.schematic-svg-container {
    width: 100%;
    max-width: 440px;
    height: auto;
}

/* Code Editor Block with Dark Theme */
.code-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #18181b;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #27272a;
}

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

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

.dot-red {
    background-color: #ef4444;
}

.dot-yellow {
    background-color: #f59e0b;
}

.dot-green {
    background-color: #10b981;
}

.code-title-text {
    color: #e4e4e7;
    font-size: 13px;
    font-weight: 500;
}

.btn-copy {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e4e4e7;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: white;
}

.code-block-body {
    background-color: #09090b;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    padding: 16px 20px;
    overflow-x: auto;
    max-height: 280px;
}

.code-block-body pre {
    margin: 0;
}

.code-block-body code {
    font-family: var(--font-code);
    font-size: 13px;
    color: #e4e4e7;
    white-space: pre;
    line-height: 1.5;
}

/* Syntax Highlighting Colors */
.code-keyword {
    color: #f43f5e;
}

.code-func {
    color: #3b82f6;
}

.code-comment {
    color: #71717a;
    font-style: italic;
}

.code-string {
    color: #10b981;
}

.code-num {
    color: #f59e0b;
}

/* Download Actions Panel Styles */
.download-panel-card {
    background: white;
    border: 1px solid rgba(15, 130, 250, 0.08);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.download-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

/* Simulated Loader on Click */
.btn-download-zip {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(15, 130, 250, 0.08) 0%, rgba(59, 130, 246, 0.04) 100%);
    color: var(--primary);
    border: 2px dashed rgba(15, 130, 250, 0.3);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.btn-download-zip:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.download-progress-slider {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background-color: var(--primary);
    width: 0%;
    transition: width 0.1s linear;
}

.btn-buy-premium {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #fef08a 0%, #fef3c7 100%);
    color: #854d0e;
    border: 1px solid rgba(254, 240, 138, 0.5);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(254, 240, 138, 0.2);
    transition: var(--transition);
}

.btn-buy-premium:hover {
    background: #fef08a;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(254, 240, 138, 0.3);
}

/* Comment Box Styles */
.comments-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.comment-card {
    display: flex;
    gap: 16px;
    background-color: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 16px;
    border: 1px solid #f1f5f9;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.comment-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.comment-main {
    flex-grow: 1;
}

.comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.comment-user {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-title);
}

.comment-time {
    font-size: 12px;
    color: var(--text-light);
}

.comment-content {
    font-size: 14px;
    color: var(--text-main);
}

/* Comment Entry Form */
.comment-form-container {
    display: flex;
    gap: 16px;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.comment-input-area {
    flex-grow: 1;
}

.comment-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    resize: vertical;
    background-color: #f8fafc;
}

.comment-textarea:focus {
    background-color: white;
    border-color: var(--primary);
}

.comment-submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

/* Vertical Ads Block */
.sidebar-adsense {
    position: fixed;
    right: 20px;
    top: 150px;
    width: 120px;
    height: 600px;
    border: 1px dashed var(--text-light);
    background-color: #f1f5f9;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.adsense-vertical-content {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-sub);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

/* ==========================================
   MODALS & POP-UPS (COFFEE AND SIMULATIONS)
   ========================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

/* Coffee Donation Popup */
.coffee-card {
    background: white;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 440px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(15, 130, 250, 0.25);
    border: 1px solid rgba(15, 130, 250, 0.15);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.coffee-header-decoration {
    height: 120px;
    background: linear-gradient(135deg, #0f82fa 0%, #3b82f6 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coffee-header-decoration::before {
    content: '☕';
    font-size: 52px;
    animation: bounceCoffee 3s infinite ease-in-out;
}

@keyframes bounceCoffee {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.confetti-emoji {
    position: absolute;
    font-size: 20px;
}

.confetti-emoji:nth-child(1) {
    top: 20px;
    left: 30px;
    animation: floatConf 4s infinite;
}

.confetti-emoji:nth-child(2) {
    bottom: 20px;
    right: 30px;
    animation: floatConf 5s infinite 1s;
}

@keyframes floatConf {

    0%,
    100% {
        transform: scale(1) translateY(0);
    }

    50% {
        transform: scale(1.2) translateY(-8px);
    }
}

.coffee-body {
    padding: 30px;
    text-align: center;
}

.coffee-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 12px;
}

.coffee-message {
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 24px;
    line-height: 1.5;
}

.coffee-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-coffee {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: white;
    padding: 12px 24px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-coffee:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
}

/* Authentication Modal (Tabs) */
.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

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

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr 40px;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.auth-tab {
    background: transparent;
    border: none;
    padding: 16px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-sub);
    cursor: pointer;
    transition: var(--transition);
}

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

.auth-tab.active {
    color: var(--primary);
    background-color: white;
    border-bottom: 2px solid var(--primary);
}

.auth-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-close:hover {
    color: #ef4444;
}

.auth-form {
    padding: 24px;
    display: none;
}

.auth-form.active {
    display: block;
}

/* Google Login Button & Divider Styles */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--text-light);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.auth-divider:not(:empty)::before {
    margin-right: .8em;
}

.auth-divider:not(:empty)::after {
    margin-left: .8em;
}

.btn-google {
    background-color: white !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700 !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
    margin-bottom: 12px;
}

.btn-google:hover {
    background-color: #f8fafc !important;
    border-color: #94a3b8 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

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

.google-icon {
    display: block;
    flex-shrink: 0;
}

/* Generic Modal Card */
.generic-modal-card {
    background: white;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 480px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

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

.generic-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.generic-modal-body {
    padding: 24px;
}

.close-modal-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-light);
}

.close-modal-btn:hover {
    color: #ef4444;
}

/* Dynamic toast banner style */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #0f172a;
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInLeft 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.toast-success {
    border-left: 4px solid var(--teal);
}

.toast.toast-error {
    border-left: 4px solid #ef4444;
}

/* ==========================================
   FOOTER SECTION
   ========================================== */

.app-footer {
    background-color: white;
    border-top: 1px solid var(--border-color);
    padding-top: 60px;
    color: var(--text-main);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4% 40px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-sub);
    max-width: 420px;
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}

.footer-col ul a {
    color: var(--text-sub);
}

.footer-col ul a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid #f1f5f9;
    padding: 24px 0;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-light);
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    color: var(--text-sub);
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--primary);
    transform: scale(1.15);
}

/* ==========================================
   RESPONSIVE LAYOUT BREAKPOINTS
   ========================================== */

/* Wide Desktops */
@media (min-width: 1400px) {
    .app-content {
        padding-right: 0;
    }
}

@media (max-width: 1399px) {
    .sidebar-adsense {
        display: none;
        /* Hide vertical adsense column on smaller screens */
    }
}

/* Laptop Viewports */
@media (max-width: 1024px) {
    .hero-banner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 4%;
    }

    .hero-text p {
        margin: 0 auto 30px;
    }

    .search-container {
        margin: 0 auto 20px;
    }

    .trending-tags {
        justify-content: center;
    }

    .hero-animation {
        display: none;
        /* Hide interactive circuit on small screens */
    }

    .features-split {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .filter-layout {
        grid-template-columns: 1fr;
    }

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

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

/* Mobile & Tablet Devices */
@media (max-width: 768px) {
    .app-header {
        top: 0;
        width: 100%;
        border-radius: 0;
        padding: 8px 16px;
    }

    .nav-menu,
    .auth-area {
        display: none;
        /* Hide default navbar links and auth button in mobile */
    }

    .mobile-menu-toggle {
        display: block;
        /* Show hamburger toggle */
    }

    .hero-text h1 {
        font-size: 36px;
    }

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

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

    .bom-table-wrapper {
        border: 1px solid #f1f5f9;
        border-radius: var(--radius-sm);
    }

    .bom-table th,
    .bom-table td {
        padding: 8px 10px;
        font-size: 13px;
    }

    .detail-title {
        font-size: 24px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links-group {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Mobile Drawer Sidebar Navigation menu */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background-color: white;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 250;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.mobile-nav-drawer.active {
    right: 0;
}

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

.close-drawer {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-title);
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.drawer-link.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

.drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.3);
    z-index: 240;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ==========================================
   Admin Panel Page & Interactive Refinements
   ========================================== */

.page-header-banner.admin-theme {
    background-color: #ffffff;
    background-image:
        radial-gradient(rgba(15, 130, 250, 0.07) 1.5px, transparent 1.5px),
        radial-gradient(circle at top right, rgba(15, 130, 250, 0.15) 0%, transparent 60%),
        radial-gradient(circle at bottom left, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
    background-size: 24px 24px, 100% 100%, 100% 100%, 100% 100%;
    background-repeat: repeat, no-repeat, no-repeat, no-repeat;
    border-bottom: 1px solid rgba(15, 130, 250, 0.12);
}

.nav-admin-badge {
    color: var(--primary) !important;
    border: 1px solid rgba(15, 130, 250, 0.25);
    background: rgba(15, 130, 250, 0.03);
}

.nav-admin-badge:hover,
.nav-admin-badge.active {
    background: var(--primary-light) !important;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 4%;
}

.admin-form-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.admin-panel-card {
    background: white;
    border: 1px solid rgba(15, 130, 250, 0.08);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.admin-panel-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-panel-card .title-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.admin-panel-card .title-action-row h3 {
    border: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

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

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

.form-group select,
.admin-dynamic-card select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    background-color: #f8fafc;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.form-group select:focus,
.admin-dynamic-card select:focus {
    background-color: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 130, 250, 0.1);
}

.admin-bom-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 15px;
}

.admin-bom-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 40px;
    gap: 8px;
    align-items: center;
    background-color: #f8fafc;
    padding: 8px;
    border-radius: var(--radius-sm);
    border: 1px solid #cbd5e1;
    animation: slideInDown 0.2s ease forwards;
}

.admin-bom-row input {
    background-color: white;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 12px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
    width: 100%;
}

.admin-bom-row input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(15, 130, 250, 0.08);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-delete-row {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    width: 36px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-delete-row:hover {
    background-color: #fef2f2;
}

.code-textarea {
    font-family: var(--font-code);
    font-size: 13px;
    background-color: #09090b;
    color: #e4e4e7;
    border: 1px solid #27272a;
    padding: 14px;
    border-radius: var(--radius-sm);
    outline: none;
    width: 100%;
    resize: vertical;
}

.code-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 130, 250, 0.1);
}

.publish-btn {
    padding: 14px 20px;
    font-size: 16px;
}

/* Detailed Project Like Button & Instruction list */
.btn-like {
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    background: rgba(239, 68, 68, 0.02);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid #fecaca;
}

.btn-like:hover {
    background: rgba(239, 68, 68, 0.06);
    transform: scale(1.03);
}

.btn-like.liked {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-like i {
    width: 16px;
    height: 16px;
    fill: transparent;
    transition: var(--transition);
}

.btn-like.liked i {
    fill: white;
}

.btn-dislike {
    border: 1px solid #cbd5e1;
    color: #64748b;
    background: rgba(100, 116, 139, 0.02);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    padding: 6px 16px;
    border-radius: 30px;
}

.btn-dislike:hover {
    background: rgba(100, 116, 139, 0.06);
    transform: scale(1.03);
}

.btn-dislike.disliked {
    background: #64748b;
    color: white;
    border-color: #64748b;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.2);
}

.btn-dislike i {
    width: 16px;
    height: 16px;
    fill: transparent;
    transition: var(--transition);
}

.btn-dislike.disliked i {
    fill: white;
}

.btn-report-project {
    border: 1px solid #fde68a;
    color: #d97706;
    background: rgba(217, 119, 6, 0.02);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    padding: 6px 16px;
    border-radius: 30px;
}

.btn-report-project:hover {
    background: rgba(217, 119, 6, 0.06);
    transform: scale(1.03);
}

.btn-report-project i {
    width: 16px;
    height: 16px;
}

/* Numbered Step Instructions Layout */
.instruction-step-card {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    background-color: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 16px;
    border: 1px solid #f1f5f9;
    align-items: flex-start;
}

.instruction-step-num {
    background-color: var(--primary-light);
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(15, 130, 250, 0.1);
}

.instruction-step-text {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.5;
    margin-top: 3px;
}

/* Dynamic floating hearts particle effect */
.floating-heart {
    position: absolute;
    font-size: 24px;
    color: #ef4444;
    pointer-events: none;
    z-index: 1000;
    animation: floatUpHeart 0.8s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

@keyframes floatUpHeart {
    0% {
        transform: translate(0, 0) scale(0.6);
        opacity: 1;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(1.4) rotate(var(--rot));
        opacity: 0;
    }
}

/* Mobile responsive fixes for admin page */
@media (max-width: 1024px) {
    .admin-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-bom-row {
        grid-template-columns: 1fr;
        gap: 6px;
        position: relative;
        padding-bottom: 40px;
    }

    .btn-delete-row {
        position: absolute;
        right: 8px;
        bottom: 8px;
    }

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

/* Admin Mode Global Link Display Toggles */
.admin-only {
    display: none !important;
}

body.admin-mode .admin-only.nav-link {
    display: inline-flex !important;
}

body.admin-mode .admin-only.drawer-link {
    display: flex !important;
}

/* ==========================================
   Premium Schematic Image & Lightbox Styles
   ========================================== */
.schematic-img-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(15, 130, 250, 0.08);
    background-color: white;
    transition: var(--transition);
}

.schematic-img-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.schematic-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 320px;
    transition: var(--transition);
}

.schematic-img-wrapper:hover .schematic-img {
    transform: scale(1.02);
}

.schematic-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 130, 250, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    opacity: 0;
    transition: var(--transition);
}

.schematic-img-wrapper:hover .schematic-img-overlay {
    opacity: 1;
}

.schematic-img-overlay i {
    width: 24px;
    height: 24px;
}

/* Premium File Upload Zone */
.file-upload-zone {
    border: 2px dashed rgba(15, 130, 250, 0.25);
    background-color: rgba(15, 130, 250, 0.02);
    border-radius: var(--radius-sm);
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.file-upload-zone:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 130, 250, 0.05);
}

.upload-icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
    transition: var(--transition);
}

.file-upload-zone:hover .upload-icon {
    transform: scale(1.1);
}

.upload-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-sub);
    transition: var(--transition);
}

.file-upload-zone.success {
    border-color: var(--teal);
    background-color: var(--teal-light);
}

.file-upload-zone.success .upload-icon {
    color: var(--teal);
}

.file-upload-zone.success .upload-text {
    color: var(--teal-hover);
}

/* ==========================================
   Admin Project Management Dashboard Styles
   ========================================== */
.admin-projects-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.admin-project-manage-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.admin-project-manage-item:hover {
    border-color: rgba(15, 130, 250, 0.2);
    background-color: #f1f5f9;
}

.admin-proj-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-grow: 1;
}

.admin-proj-thumb {
    width: 64px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.admin-proj-details h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-title);
    line-height: 1.3;
}

.delete-proj-btn {
    color: #ef4444 !important;
    border-color: #fca5a5 !important;
    background: transparent !important;
    padding: 6px 14px !important;
    font-size: 13px !important;
}

.delete-proj-btn:hover {
    color: white !important;
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
}

/* ==========================================
   AD ADVERTISING CONTROL PANEL HIDE STYLES
   ========================================== */
.adsense-banner,
.sidebar-adsense,
.horizontal-adsense,
.adsense-label,
.ads-label,
.ads-box {
    display: none !important;
}

/* ==========================================
   DYNAMIC COMPONENT CARDS & GALLERY STYLES
   ========================================== */
.admin-dynamic-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(15, 130, 250, 0.02);
    animation: slideInDown 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.admin-dynamic-card:hover {
    border-color: rgba(15, 130, 250, 0.18);
    box-shadow: 0 4px 14px rgba(15, 130, 250, 0.05);
}

.btn-delete-card {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    width: 32px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    z-index: 10;
}

.btn-delete-card:hover {
    background-color: #fef2f2;
    transform: scale(1.05);
}

.admin-codes-list,
.admin-schematics-list,
.admin-stls-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.schematics-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.schematic-gallery-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-stacked-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 960px;
    margin: 30px auto 0;
    width: 100%;
}

/* Responsive mobile overrides */
@media (max-width: 1024px) {
    .detail-stacked-column {
        padding: 0 10px;
    }
}

/* ==========================================
   Admin Sub-navigation Tabs Styles
   ========================================== */
.admin-tabs-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 2px;
}

.admin-tab-btn,
.member-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-sub);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.admin-tab-btn i,
.member-tab-btn i {
    width: 16px;
    height: 16px;
}

.admin-tab-btn:hover,
.member-tab-btn:hover {
    color: var(--primary);
}

.admin-tab-btn.active,
.member-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.admin-tab-content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.admin-tab-content.active {
    display: block;
}

/* Premium Custom Slide Toggle Switch */
.switch-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.switch-container input {
    display: none;
}

.switch-slider {
    position: relative;
    width: 38px;
    height: 20px;
    background-color: #cbd5e1;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid #cbd5e1;
}

.switch-slider::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.switch-container input:checked+.switch-slider {
    background-color: var(--primary);
    border-color: var(--primary);
}

.switch-container input:checked+.switch-slider::before {
    transform: translateX(18px);
}

/* ==========================================
   STL 3D Viewer Styles
   ========================================== */

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

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

.animate-spin {
    animation: spin 1.2s linear infinite;
}

.stl-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stl-viewer-wrapper {
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.stl-3d-canvas-container {
    cursor: grab;
    transition: box-shadow 0.3s ease;
}

.stl-3d-canvas-container:active {
    cursor: grabbing;
}

.stl-3d-canvas-container:hover {
    box-shadow: 0 0 0 2px rgba(15, 130, 250, 0.35), var(--shadow-md) !important;
}

.stl-controls-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 6px;
    font-weight: 500;
}

/* Admin STL list */
.admin-stls-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

/* ==========================================
   STL Tabbed Viewer
   ========================================== */

/* Tab navigation strip */
.stl-tab-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 6px;
    background: rgba(15, 130, 250, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.stl-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-sub);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stl-tab-btn:hover {
    background: rgba(15, 130, 250, 0.08);
    color: var(--primary);
    border-color: rgba(15, 130, 250, 0.2);
}

.stl-tab-btn.active {
    background: linear-gradient(135deg, #0f82fa 0%, #3b82f6 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(15, 130, 250, 0.3);
}

/* Panels container */
.stl-panels-container {
    position: relative;
}

.stl-panel {
    display: none;
}

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

/* Prev / Next arrow buttons inside 3D canvas */
.stl-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.stl-arrow-btn:hover {
    background: rgba(15, 130, 250, 0.55);
    transform: translateY(-50%) scale(1.08);
}

.stl-arrow-prev {
    left: 12px;
}

.stl-arrow-next {
    right: 12px;
}

.stl-arrow-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

/* ==========================================
   Developer Profile & Visuals
   ========================================== */

/* Card Creator Hover Styles */
.card-creator {
    transition: color 0.2s, transform 0.2s;
}

.card-creator:hover {
    color: var(--primary-hover) !important;
    transform: translateX(2px);
}

/* Developer Profile Page Styling */
#profile-page .user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--teal) 100%);
    color: white;
    font-weight: 800;
    font-family: var(--font-heading);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

#profile-page .admin-panel-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(15, 130, 250, 0.08);
    box-shadow: 0 8px 32px rgba(15, 130, 250, 0.04);
}

#profile-page .comment-textarea {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(15, 130, 250, 0.15);
    background: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
    padding: 10px;
    font-family: inherit;
    color: var(--text-main);
}

#profile-page .comment-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 130, 250, 0.15);
}

/* Follow Button Transitions & Pulse Bounce */
@keyframes bouncePulse {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(0.9);
    }

    60% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

.pulse-bounce {
    animation: bouncePulse 0.5s ease-in-out;
}

#profile-follow-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(15, 130, 250, 0.35);
}

#profile-follow-btn.btn-outline {
    box-shadow: none !important;
}

#profile-follow-btn.btn-outline:hover {
    background: rgba(239, 68, 68, 0.12) !important;
    transform: translateY(-2px);
}

#profile-follow-btn:hover {
    transform: translateY(-2px);
}

#profile-follow-btn:active {
    transform: translateY(1px);
}

/* ==========================================
   Geliştirici Arama & Keşif (Discovery Directory)
   ========================================== */

/* Community Page Sub Tabs Styling */
.community-tabs-nav button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.community-tabs-nav button.btn-outline:hover {
    background: rgba(15, 130, 250, 0.08) !important;
    border-color: rgba(15, 130, 250, 0.2) !important;
    color: var(--primary) !important;
}

/* Geliştirici Arama & Keşif Kartı */
.creator-directory-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 130, 250, 0.08);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.creator-directory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(15, 130, 250, 0.08);
    border-color: rgba(15, 130, 250, 0.2);
    background: rgba(255, 255, 255, 0.85);
}

.creator-directory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--teal) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.creator-directory-card:hover::before {
    opacity: 1;
}

.creator-directory-card .creator-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--teal) 100%);
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(15, 130, 250, 0.2);
    font-family: var(--font-heading);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.creator-directory-card .creator-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 4px;
    cursor: pointer;
    transition: color 0.2s;
}

.creator-directory-card .creator-name:hover {
    color: var(--primary);
}

.creator-directory-card .creator-email {
    font-size: 12px;
    color: var(--text-sub);
    margin-bottom: 14px;
}

.creator-directory-card .creator-bio {
    font-size: 12px;
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 18px;
    height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.creator-directory-card .creator-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    padding: 12px 0;
    margin-bottom: 20px;
}

.creator-directory-card .creator-stat-num {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.creator-directory-card .creator-stat-num.blue {
    color: var(--primary);
}

.creator-directory-card .creator-stat-num.teal {
    color: var(--teal);
}

.creator-directory-card .creator-stat-label {
    font-size: 10px;
    color: var(--text-sub);
    font-weight: 600;
    text-transform: uppercase;
}

/* Feed segment toggler slider CSS */
.feed-toggle-container button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.feed-toggle-container button.btn-outline:hover {
    color: var(--primary) !important;
    background: rgba(15, 130, 250, 0.08) !important;
}

/* Smart lock screen inside feed */
.feed-locked-container {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 24px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 130, 250, 0.08);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* Recommended creators box inside empty feed */
.feed-recommended-container {
    grid-column: 1 / -1;
    width: 100%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 130, 250, 0.08);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

/* ==========================================
   DEVELOPER PROFILE CARD ENHANCEMENTS
   ========================================== */
.profile-card-layout {
    display: flex !important;
    flex-direction: row !important;
    gap: 32px;
    align-items: stretch;
    justify-content: space-between;
    padding: 32px !important;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    text-align: left !important;
}

.profile-left-col {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid rgba(15, 130, 250, 0.08);
    padding-right: 32px;
}

.profile-right-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 24px;
    padding-left: 8px;
}

.profile-stats-row {
    display: flex;
    gap: 48px;
    border-bottom: 1px solid rgba(15, 130, 250, 0.08);
    padding-bottom: 20px;
}

.profile-stat-item {
    text-align: left;
}

.profile-stat-item span {
    font-size: 11px;
    color: var(--text-sub);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-stat-item h4 {
    font-size: 26px;
    margin-top: 4px;
    font-weight: 800;
}

.profile-bio-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#profile-projects-grid {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    #profile-projects-grid {
        grid-template-columns: 1fr;
    }

    .profile-card-layout {
        flex-direction: column !important;
        padding: 24px !important;
        gap: 24px;
        text-align: center !important;
    }

    .profile-left-col {
        flex: 1;
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid rgba(15, 130, 250, 0.08);
        padding-bottom: 24px;
        width: 100%;
    }

    .profile-right-col {
        width: 100%;
        padding-left: 0;
    }

    .profile-stats-row {
        justify-content: center;
        gap: 40px;
    }

    .profile-stat-item {
        text-align: center;
    }
}

/* Media Selection Switch & Custom Media Player Styles */
.media-type-switch {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    background: #f8fafc;
    padding: 4px;
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
}

.media-tab-btn {
    flex: 1;
    border-radius: var(--radius-sm) !important;
    font-size: 13px;
    font-weight: 700;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.media-tab-btn.btn-outline {
    background: transparent;
    color: var(--text-sub);
}

.media-tab-btn.btn-outline:hover {
    color: var(--primary);
    background: rgba(15, 130, 250, 0.04);
}

.media-tab-btn.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.media-input-section {
    animation: fadeIn 0.25s ease forwards;
}

/* Premium Project Detail Media Blocks */
.project-hero-image-container {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(15, 130, 250, 0.15);
    box-shadow: 0 8px 32px rgba(15, 130, 250, 0.08);
}

.project-hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
}

.project-hero-image-container:hover img {
    transform: scale(1.02);
}

.video-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: inherit;
    aspect-ratio: 16/9;
    box-shadow: 0 8px 32px rgba(15, 130, 250, 0.15);
}

/* Hover Subscribe Popover */
.video-creator-avatar-container {
    position: relative;
    z-index: 100;
}

.channel-subscribe-popover {
    position: absolute;
    top: 50px;
    left: 0;
    width: 260px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Upward pointing arrow for popover */
.channel-subscribe-popover::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 16px;
    width: 12px;
    height: 12px;
    background: rgba(15, 23, 42, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

.video-creator-avatar-container:hover .channel-subscribe-popover {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.popover-channel-info {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.popover-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.popover-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.popover-channel-name {
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.popover-subscribers {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.btn-popover-subscribe {
    width: 100%;
    height: 36px;
    background: #ff0000;
    color: white;
    border: none;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-popover-subscribe:hover {
    background: #cc0000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.btn-popover-subscribe.subscribed {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-popover-subscribe.subscribed:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: none;
    transform: none;
}

.popover-channel-name-link:hover {
    color: var(--primary) !important;
}

.video-creator-name-link:hover {
    color: white !important;
    text-decoration: underline !important;
}