@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

html {
    scroll-behavior: smooth;
}

:root {
    --bg-color: #08070d;
    --card-bg: rgba(18, 16, 26, 0.65);
    --card-border: rgba(139, 92, 246, 0.15);
    --card-border-hover: rgba(6, 182, 212, 0.4);
    --primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    --secondary-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-pink: #d946ef;
    --success: #22c55e;
    --font-sans: 'Outfit', sans-serif;
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-neon: 0 0 20px rgba(139, 92, 246, 0.25);
    --shadow-cyan: 0 0 20px rgba(6, 182, 212, 0.25);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #272530;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3f3c4e;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
    line-height: 1.6;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);
    background-attachment: fixed;
}

/* Typography & Layout */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

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

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

/* Header & Nav */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background-color: rgba(8, 7, 13, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 0;
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: 12px 0;
    background-color: rgba(8, 7, 13, 0.9);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition-smooth);
    position: relative;
    padding: 4px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition-smooth);
}

nav a:hover {
    color: var(--text-primary);
}

nav a:hover::after {
    width: 100%;
}

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

.btn-icon-cart {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition-smooth);
}

.btn-icon-cart:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--accent-purple);
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary-gradient);
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-color);
}

/* Hero Section */
.hero {
    padding: 96px 0 64px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-tagline {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 30px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(217, 70, 239, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: var(--card-bg);
}

.hero-image {
    width: 100%;
    max-width: 480px;
    display: block;
    object-fit: cover;
    aspect-ratio: 1;
    transform: scale(1.02);
    transition: var(--transition-smooth);
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.06);
}

/* Features grid */
.features {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
}

.feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 20px;
}

.feature-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Catalog section */
.catalog {
    padding-bottom: 96px;
    scroll-margin-top: 100px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Filters */
.filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 30px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

.filter-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-neon);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--card-border-hover);
    box-shadow: var(--shadow-cyan);
}

.product-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 16 / 11;
    background: #110f1a;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.product-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 8px;
}

.product-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* Specs list */
.product-specs {
    list-style: none;
    margin-bottom: 24px;
    flex-grow: 1;
}

.product-specs li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.product-specs li:last-child {
    border-bottom: none;
}

.product-specs svg {
    color: var(--accent-purple);
    flex-shrink: 0;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
    margin-top: auto;
}

.product-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.product-price span {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

.btn-add-cart {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-add-cart:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    box-shadow: var(--shadow-neon);
}

/* PC Builder Section */
.pc-builder-section {
    padding: 96px 0;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 60%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    scroll-margin-top: 100px;
}

.builder-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.builder-preview {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.builder-img-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    aspect-ratio: 4/3;
    margin-bottom: 24px;
    background: #110f1a;
}

.builder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.builder-summary-card {
    background: rgba(8, 7, 13, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
}

.builder-summary-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--accent-cyan);
}

.builder-summary-specs {
    list-style: none;
    font-size: 13px;
    color: var(--text-secondary);
}

.builder-summary-specs li {
    padding: 4px 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.builder-summary-specs li span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

.builder-summary-specs li:last-child {
    border-bottom: none;
}

.builder-price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
}

.builder-total-price {
    font-size: 32px;
    font-weight: 800;
}

.builder-options-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-group h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.option-label {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: var(--transition-smooth);
    position: relative;
}

.option-label:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

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

.option-input:checked+.option-card-content {
    color: var(--text-primary);
}

.option-input:checked~.option-label-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--accent-purple);
    border-radius: 12px;
    pointer-events: none;
}

.option-label:has(.option-input:checked) {
    background: rgba(139, 92, 246, 0.08);
}

.option-name {
    font-size: 14px;
    font-weight: 700;
}

.option-details {
    font-size: 12px;
    color: var(--text-secondary);
}

.option-price-diff {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-top: 4px;
}

/* Shopping Cart Drawer */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

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

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background: #0f0e17;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    transform: translateX(0);
}

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

.cart-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.cart-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

.cart-items-container {
    flex-grow: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Empty cart state */
.empty-cart-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--text-secondary);
    gap: 16px;
}

.empty-cart-state svg {
    color: var(--text-muted);
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr 40px;
    gap: 16px;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 12px;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background: #110f1a;
}

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

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
}

.cart-item-desc {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.cart-qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-qty-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cart-item-qty {
    font-size: 14px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
}

.cart-item-remove:hover {
    color: #ef4444;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 7, 13, 0.6);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
}

.cart-total-row.grand-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Modal dialogs */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal {
    background: #0f0e17;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    padding: 36px;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    pointer-events: auto;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-overlay.active .modal {
    transform: scale(1);
}


.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

.modal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Forms styling */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    transition: var(--transition-smooth);
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

.success-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
    font-size: 32px;
    margin: 0 auto 24px;
}

/* Footer styling */
footer {
    background: #06050a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 48px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-brand p {
    max-width: 300px;
    line-height: 1.6;
}

.footer-links h4 {
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .builder-layout {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

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

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

    nav {
        display: none;
        /* In a full app, a burger menu would go here */
    }
}

/* =============================================================================
   SKYREX ASSISTANT (CHAT BOT) STYLES
   ============================================================================= */

.assistant-section {
    padding: 96px 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: radial-gradient(circle at 10% 80%, rgba(139, 92, 246, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 90% 20%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
    scroll-margin-top: 100px;
}

.assistant-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.82fr;
    gap: 32px;
    align-items: start;
}

/* Chat Window Container */
.chat-window {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    height: 620px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    transition: var(--transition-smooth);
}

.chat-window:hover {
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 30px 60px -15px rgba(139, 92, 246, 0.1);
}

/* Chat Header */
.chat-header {
    padding: 16px 24px;
    background: rgba(18, 16, 26, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

.chat-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-neon);
}

.avatar-icon {
    font-size: 22px;
}

.online-indicator {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    border: 2px solid #08070d;
}

.chat-user-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.chat-bot-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
}

.chat-bot-status {
    font-size: 12px;
    color: var(--success);
    font-weight: 500;
}

.chat-clear-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.chat-clear-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    transform: rotate(15deg);
}

/* Chat Message Body */
.chat-body {
    flex-grow: 1;
    min-height: 0;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
    background: rgba(8, 7, 13, 0.3);
}

/* Message Bubbles */
.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 75%;
    opacity: 0;
    transform: translateY(15px);
    animation: messageFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
}

.chat-message-content {
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 14.5px;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.bot .chat-message-content {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-top-left-radius: 4px;
}

.user .chat-message-content {
    background: var(--primary-gradient);
    color: white;
    border-top-right-radius: 4px;
    box-shadow: var(--shadow-neon);
}

.chat-message-content a {
    color: var(--accent-cyan);
    text-decoration: underline;
    font-weight: 600;
}

.user .chat-message-content a {
    color: #fff;
    text-decoration: underline;
}

/* Rich Markdown & Content inside AI Message */
.chat-message-content p {
    margin: 0 0 10px 0;
}

.chat-message-content p:last-child {
    margin-bottom: 0;
}

.chat-message-content ul,
.chat-message-content ol {
    margin: 8px 0 10px 20px;
    padding: 0;
}

.chat-message-content li {
    margin-bottom: 4px;
    line-height: 1.5;
}

.chat-message-content h2,
.chat-message-content h3,
.chat-message-content h4 {
    margin: 12px 0 6px 0;
    color: var(--text-primary);
    font-weight: 700;
}

.chat-message-content h3 {
    font-size: 16px;
}

.chat-message-content h4 {
    font-size: 14.5px;
}

.chat-message-content blockquote {
    margin: 8px 0;
    padding: 6px 14px;
    border-left: 3px solid var(--accent-purple);
    background: rgba(139, 92, 246, 0.08);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.chat-message-content code {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 6px;
    color: #38bdf8;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-message-content pre {
    background: rgba(10, 8, 16, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 14px;
    overflow-x: auto;
    margin: 10px 0;
}

.chat-message-content pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.5;
}

.chat-message-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 13px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-message-content th {
    background: rgba(139, 92, 246, 0.15);
    color: #fff;
    font-weight: 600;
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-message-content td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.chat-message-content tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.chat-message-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
    padding: 0 4px;
}

.chat-msg-actions {
    display: flex;
    gap: 6px;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.chat-message:hover .chat-msg-actions {
    opacity: 1;
}

.msg-action-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-smooth);
}

.msg-action-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.35);
    color: #c084fc;
}

.msg-action-btn.copied {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.chat-message-time {
    font-size: 10px;
    color: var(--text-muted);
    align-self: flex-end;
    margin-top: 4px;
    margin-right: 4px;
}

.user .chat-message-time {
    color: rgba(255, 255, 255, 0.6);
    margin-right: 8px;
}

.user .msg-action-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
}

.user .msg-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

@media (hover: none) {
    .chat-msg-actions {
        opacity: 0.85;
    }
}

/* Modern Chat Toast Notifications */
.chat-toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100001;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    width: 90%;
    max-width: 440px;
}

.chat-toast {
    pointer-events: auto;
    background: rgba(18, 22, 38, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.45);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.25s, transform 0.25s;
}

.chat-toast-warning {
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(245, 158, 11, 0.2);
}

.chat-toast-success {
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(16, 185, 129, 0.2);
}

.chat-toast-hiding {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
}

.chat-toast-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-primary);
}

.chat-toast-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.chat-toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
    transition: color 0.15s;
    border-radius: 4px;
}

.chat-toast-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Inline Keyboard inside Chat */
.inline-keyboard {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    max-width: 100%;
}

.inline-btn {
    background: rgba(139, 92, 246, 0.1);
    border: 1.5px solid rgba(139, 92, 246, 0.25);
    color: #c084fc;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 13.5px;
    text-align: left;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.inline-btn:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
    transform: translateX(4px);
    box-shadow: var(--shadow-neon);
}

.inline-btn::after {
    content: '→';
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.inline-btn:hover::after {
    opacity: 1;
    transform: translateX(2px);
}

/* Typing Indicator (Dots Bouncing) */
.typing-indicator {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    border-top-left-radius: 4px;
    align-self: flex-start;
    margin-left: 24px;
    margin-bottom: 16px;
    width: fit-content;
}

.typing-indicator.active {
    display: flex;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--accent-purple);
    border-radius: 50%;
    animation: typingBouncing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
    background: var(--accent-pink);
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
    background: var(--accent-cyan);
}

@keyframes typingBouncing {

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

    40% {
        transform: translateY(-8px);
    }
}

/* Chat Footer and Input area */
.chat-footer {
    padding: 16px 24px;
    background: rgba(18, 16, 26, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 50;
}

/* Autocomplete Suggestions Popup (Dynamic prompt suggestions while typing) */
.chat-autocomplete {
    display: none;
    flex-direction: column;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 20px;
    right: 20px;
    z-index: 100;
    gap: 4px;
    background: rgba(18, 15, 28, 0.98);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 14px;
    padding: 8px 6px;
    box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.7), 0 0 25px rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    max-height: 250px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
    animation: acSlideUp 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

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

.chat-autocomplete::-webkit-scrollbar {
    width: 5px;
}

.chat-autocomplete::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 4px;
}

.chat-autocomplete-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13.5px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    user-select: none;
}

.chat-autocomplete-item:hover,
.chat-autocomplete-item.active {
    background: rgba(139, 92, 246, 0.16);
    color: #ffffff;
}

.chat-autocomplete-item .ac-main {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-grow: 1;
    min-width: 0;
}

.chat-autocomplete-item .ac-icon {
    font-size: 14px;
    flex-shrink: 0;
    opacity: 0.9;
}

.chat-autocomplete-item .ac-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font-sans);
}

.chat-autocomplete-item .ac-match {
    color: #c4b5fd;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(139, 92, 246, 0.6);
}

.chat-autocomplete-item .ac-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.chat-autocomplete-item .ac-hint {
    font-size: 11px;
    color: var(--text-muted, #71717a);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono, monospace);
    opacity: 0.7;
    transition: opacity 0.15s, color 0.15s;
}

.chat-autocomplete-item:hover .ac-hint,
.chat-autocomplete-item.active .ac-hint {
    opacity: 1;
    color: #a78bfa;
    border-color: rgba(139, 92, 246, 0.35);
}

.chat-autocomplete-item .ac-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s, transform 0.15s;
    cursor: pointer;
}

.chat-autocomplete-item:hover .ac-send-btn,
.chat-autocomplete-item.active .ac-send-btn {
    opacity: 1;
}

.chat-autocomplete-item .ac-send-btn:hover {
    background: var(--accent-purple);
    color: #ffffff;
    transform: scale(1.08);
}

/* Fallback chips if used dynamically */
.chat-reply-keyboard {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 6px 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.chat-reply-keyboard::-webkit-scrollbar {
    display: none;
}

.chat-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-sans);
    white-space: nowrap;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.chat-chip:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--accent-purple);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.chat-input-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

#chat-input {
    flex-grow: 1;
    background: rgba(8, 7, 13, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 16px;
    color: white;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.45;
    resize: none;
    min-height: 44px;
    height: 44px;
    max-height: 130px;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.35) transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#chat-input::-webkit-scrollbar {
    width: 5px;
}

#chat-input::-webkit-scrollbar-track {
    background: transparent;
}

#chat-input::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.35);
    border-radius: 4px;
}

#chat-input::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.6);
}

#chat-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

#chat-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

#chat-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.chat-send-btn {
    background: var(--primary-gradient);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-neon);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.chat-send-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 0 25px rgba(217, 70, 239, 0.4);
}

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

.chat-send-btn.stop-btn {
    background: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.chat-send-btn.stop-btn:hover {
    background: #dc2626;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

.chat-send-btn svg {
    margin-left: -2px;
    margin-top: 2px;
}

.chat-send-btn.stop-btn svg {
    margin: 0;
}

/* Floating Scroll to Bottom Button */
.chat-scroll-bottom-btn {
    position: absolute;
    right: 20px;
    bottom: 95px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(24, 21, 36, 0.9);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #c084fc;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    backdrop-filter: blur(8px);
}

.chat-scroll-bottom-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.chat-scroll-bottom-btn:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
}

.unread-dot {
    display: none;
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: var(--accent-pink);
    border-radius: 50%;
    border: 2px solid #0d0b16;
}

.chat-scroll-bottom-btn.has-unread .unread-dot {
    display: block;
    animation: pulseDot 1.5s infinite;
}

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

.chat-retry-btn {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chat-retry-btn:hover {
    background: #ef4444;
    color: #fff;
}

/* Sidebar Info Panel */
.assistant-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.info-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.info-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 14px;
}

.info-features-list li {
    color: var(--text-secondary);
    line-height: 1.5;
    position: relative;
    padding-left: 20px;
}

.info-features-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

/* Premium Sub Card */
.sub-card {
    border-color: rgba(139, 92, 246, 0.25);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.05) 0%, rgba(18, 16, 26, 0.65) 100%);
    box-shadow: var(--shadow-neon);
}

.sub-status-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.sub-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sub-badge.premium {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-neon);
}

.sub-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.btn-glowing {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    animation: subPulse 2s infinite ease-in-out;
}

@keyframes subPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    }

    50% {
        box-shadow: 0 0 35px rgba(217, 70, 239, 0.7);
    }
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    transition: var(--transition-smooth);
}

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



/* Responsive Grid adaptation */
@media (max-width: 992px) {
    .assistant-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .chat-window {
        height: 550px;
    }
}

@media (max-width: 576px) {
    .assistant-section {
        padding: 64px 0;
    }

    .chat-window {
        height: 500px;
        border-radius: 16px;
    }

    .chat-header,
    .chat-footer {
        padding: 12px 16px;
    }

    .chat-body {
        padding: 16px;
    }

    .chat-message {
        max-width: 85%;
    }


}

/* User Authentication & Profile Styles */
.btn-icon-auth {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition-smooth);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    z-index: 105;
}

.btn-icon-auth svg,
.btn-icon-auth span {
    pointer-events: none;
}

.btn-icon-auth:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: var(--shadow-cyan);
}


.auth-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-color);
    background: var(--text-muted);
    transition: var(--transition-smooth);
}

.auth-status-dot.active-base {
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
}

.auth-status-dot.active-premium {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

/* Auth Modal (Passwordless Email OTP Flow) */
.auth-badge {
    display: inline-block;
    background: rgba(0, 255, 204, 0.08);
    color: #00ffcc;
    border: 1px solid rgba(0, 255, 204, 0.25);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 22px;
}

.auth-highlight-email {
    color: #00ffcc;
    word-break: break-all;
}

.auth-email-step {
    display: none;
    animation: authFadeIn 0.25s ease-out;
}

.auth-email-step.active {
    display: block;
}

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

.auth-otp-input {
    text-align: center !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    letter-spacing: 12px !important;
    font-family: 'Courier New', Courier, monospace !important;
    color: #00ffcc !important;
    background: rgba(0, 255, 204, 0.03) !important;
    border: 1px solid rgba(0, 255, 204, 0.3) !important;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.08) !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    max-width: 280px;
    margin: 0 auto;
}

.auth-otp-input:focus {
    border-color: #00ffcc !important;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.25) !important;
}

.auth-back-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.auth-back-btn:hover {
    color: #00ffcc;
}

.auth-resend-box {
    margin-top: 16px;
    text-align: center;
}

.auth-resend-btn {
    background: none;
    border: none;
    color: var(--accent-purple);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.auth-resend-btn:hover:not(:disabled) {
    color: #00ffcc;
    text-decoration: underline;
}

.auth-resend-btn:disabled {
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.65;
    text-decoration: none;
}

/* Auth Modal Tabs (Legacy fallback) */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
}

.auth-tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
    padding: 12px;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
    border-bottom: 2px solid transparent;
}

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

.auth-tab-btn.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent-purple);
}

.auth-form {
    display: none;
}

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

.auth-error {
    color: #ef4444;
    font-size: 13px;
    margin-top: 8px;
    min-height: 18px;
    font-weight: 500;
}

.auth-helper-code {
    background: rgba(6, 182, 212, 0.08);
    border: 1px dashed rgba(6, 182, 212, 0.3);
    border-radius: 10px;
    padding: 12px;
    color: var(--text-primary);
    font-size: 13px;
    text-align: center;
    margin: 15px 0;
}

/* Profile Modal Styles */
.profile-modal-content {
    max-width: 400px !important;
}

.profile-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-bottom: 20px;
}

.profile-avatar {
    font-size: 28px;
    width: 56px;
    height: 56px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.profile-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.profile-edit-btn {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
    padding: 2px 4px;
    border-radius: 4px;
}

.profile-edit-btn:hover {
    opacity: 1;
    transform: scale(1.15);
}

.profile-email,
.profile-username {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.profile-role {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.profile-subscription-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.profile-subscription-card h4 {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    font-weight: 600;
}

.profile-sub-status-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-sub-time-remaining {
    font-size: 13px;
    color: var(--accent-cyan);
    margin-top: 8px;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.2);
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* =============================================================================
   HERO CHAT BOT & BOT FEATURES REDESIGN
   ============================================================================= */

/* Hero subscription card styling */
.hero-sub-card {
    margin: 32px 0 0;
    text-align: left;
    border: 1px solid rgba(139, 92, 246, 0.25);
    background: rgba(18, 16, 26, 0.45);
    padding: 20px;
    border-radius: 16px;
    max-width: 500px;
    box-shadow: var(--shadow-neon);
}

.hero-sub-card h3 {
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Ensure Chat Window is centered and sized correctly in Hero */
.hero .chat-window {
    max-width: 550px;
    width: 100%;
    margin: 0 auto;
}

/* Bot Features Section */
.bot-features-section {
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.02) 0%, transparent 60%);
}

.center-align {
    justify-content: center;
    text-align: center;
}

.text-center {
    text-align: center;
    width: 100%;
}

.bot-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.bot-feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition-smooth);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.bot-feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--card-border-hover);
    box-shadow: var(--shadow-cyan);
}

.bot-feature-icon {
    font-size: 36px;
    margin-bottom: 16px;
    display: inline-block;
}

.bot-feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

@media (max-width: 992px) {
    .hero-sub-card {
        margin: 32px auto 0;
    }
}



/* Bot Features Section */
.bot-features-section {
    padding: 80px 0;
    background: radial-gradient(circle at 50% 20%, rgba(139, 92, 246, 0.04) 0%, transparent 70%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bot-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 36px;
}

.bot-feature-card {
    background: var(--card-bg, #161224);
    border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
    border-radius: 18px;
    padding: 26px 22px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.bot-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient, linear-gradient(135deg, #8b5cf6, #3b82f6));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bot-feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(139, 92, 246, 0.15);
}

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

.bot-feature-icon {
    font-size: 32px;
    margin-bottom: 14px;
    background: rgba(139, 92, 246, 0.1);
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.bot-feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    margin-bottom: 10px;
    font-family: 'Outfit', 'Inter', sans-serif;
}

.bot-feature-card p {
    font-size: 13.5px;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.55;
    margin: 0;
}

/* Full-width assistant layout and small-screen refinements */
.hero {
    padding: clamp(36px, 6vw, 76px) 0 48px;
}

.hero .container.hero-grid {
    width: 100%;
    max-width: 1680px;
    padding-inline: clamp(16px, 3vw, 48px);
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(24px, 3vw, 40px);
}

.hero-content {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.hero p {
    max-width: 820px;
    margin: 0 auto;
}

.hero .chat-window {
    width: 100%;
    max-width: none;
    height: clamp(560px, 72dvh, 860px);
    min-height: 0;
}

.chat-body {
    min-height: 0;
}

.chat-message {
    max-width: min(75%, 960px);
}

.chat-message-content {
    overflow-wrap: anywhere;
}

#chat-input {
    width: 100%;
    min-width: 0;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 32px;
    }

    .hero .container.hero-grid {
        gap: 24px;
    }

    .hero h1 {
        font-size: clamp(32px, 7vw, 44px);
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 0;
    }

    .hero .chat-window {
        height: clamp(420px, 68dvh, 680px);
    }

    .chat-header {
        padding: 12px 16px;
    }

    .chat-body {
        padding: 16px;
    }

    .chat-footer {
        padding: 12px 16px;
    }

    .chat-message {
        max-width: 90%;
    }

    #chat-input {
        font-size: 16px;
    }

    .bot-features-section {
        padding: 56px 0;
    }
}

@media (max-width: 480px) {
    .hero .container.hero-grid {
        padding-inline: 12px;
        gap: 20px;
    }

    .hero .chat-window {
        height: clamp(400px, 64dvh, 600px);
        border-radius: 16px;
    }

    .chat-header {
        gap: 10px;
        padding: 10px 12px;
    }

    .chat-avatar {
        width: 38px;
        height: 38px;
    }

    .chat-body {
        padding: 12px;
        gap: 12px;
    }

    .chat-message {
        max-width: 94%;
    }

    .chat-message-content {
        padding: 11px 13px;
        font-size: 14px;
    }

    .chat-footer {
        padding: 10px 12px max(10px, env(safe-area-inset-bottom));
    }

    .chat-input-row {
        gap: 8px;
    }

    #chat-input {
        padding: 11px 12px;
    }

    .chat-send-btn {
        width: 42px;
        height: 42px;
    }

    .bot-features-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .bot-feature-card {
        padding: 22px 18px;
    }
}

/* ==========================================================================
   INTERACTIVE PC RIG VISUALIZER & WORKSPACE LAYOUT (Skyrex v3.1)
   ========================================================================== */

.hero-container {
    width: 100%;
    max-width: 1680px;
    padding-inline: clamp(16px, 3vw, 48px);
    margin: 0 auto;
}

.hero-header-banner {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 32px auto;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 10px;
}

.hero-workspace-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: stretch;
    width: 100%;
}

.hero-rig-col,
.hero-chat-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hero-chat-col .chat-window {
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 640px;
    max-height: 750px;
    margin: 0;
}

/* PC Rig Main Card Container */
.pc-rig-card {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    height: 100%;
    min-height: 640px;
    max-height: 750px;
    background: rgba(15, 17, 26, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pc-rig-card:hover {
    border-color: rgba(139, 92, 246, 0.38);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 30px rgba(139, 92, 246, 0.12);
}

/* Dynamic Scan Beam Animation (Triggered upon AI build sync) */
.rig-scan-beam {
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, transparent, rgba(6, 182, 212, 0.35), rgba(139, 92, 246, 0.4), transparent);
    pointer-events: none;
    z-index: 10;
    opacity: 0;
}

.pc-rig-card.rig-updating .rig-scan-beam {
    animation: rigScanSweep 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes rigScanSweep {
    0% {
        top: -10%;
        opacity: 0;
    }
    15% {
        opacity: 0.8;
    }
    85% {
        opacity: 0.8;
    }
    100% {
        top: 110%;
        opacity: 0;
    }
}

/* Header */
.pc-rig-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: rgba(20, 23, 36, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
}

.pc-rig-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rig-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 20px;
}

.rig-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #06b6d4;
    box-shadow: 0 0 8px #06b6d4;
    animation: rigPulse 2s infinite ease-in-out;
}

@keyframes rigPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.rig-status-text {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #38bdf8;
}

.pc-rig-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.pc-rig-header-right {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.rig-total-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.rig-total-val {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, #06b6d4, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

/* Stage Wrapper: Chassis Stage + Component List */
.pc-rig-stage-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
    gap: 16px;
    padding: 16px;
    overflow: hidden;
}

/* Left: PC Chassis Blueprint */
.pc-chassis-stage {
    flex: 0 0 280px !important;
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, rgba(20, 24, 40, 0.9) 0%, rgba(10, 12, 20, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 8px;
    position: relative;
    user-select: none;
}

.pc-chassis-svg {
    width: 100%;
    height: 100%;
    max-height: 480px;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.5));
}

/* Interactive SVG Hotspots & Animations */
.rig-part {
    cursor: pointer;
    transition: all 0.25s ease;
}

.rig-case-outer {
    fill: #0c0e18;
    stroke: #252a40;
    stroke-width: 2.5;
    transition: stroke 0.3s;
}

.rig-case-glass {
    fill: #111422;
    stroke: #1e2438;
    stroke-width: 1.5;
}

.rig-mb-board {
    fill: url(#gradPcb);
    stroke: #334155;
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

.rig-mb-grid {
    fill: url(#pcbGrid);
}

/* Cooler */
.rig-cooler-body {
    fill: url(#gradCooler);
    stroke: #475569;
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

.rig-fan-outer {
    fill: #161826;
    stroke: #38bdf8;
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

.rig-fan-ring {
    transition: all 0.3s ease;
}

/* CPU */
.rig-cpu-frame {
    fill: #151828;
    stroke: #475569;
    stroke-width: 1.8;
    transition: all 0.3s ease;
}

.rig-cpu-ihs {
    fill: #22263d;
    stroke: #64748b;
    stroke-width: 1.8;
    transition: all 0.3s ease;
}

.rig-cpu-core {
    fill: #10121d;
    stroke: #06b6d4;
    stroke-width: 1.2;
    transition: all 0.3s ease;
}

/* RAM */
.rig-ram-stick {
    fill: #181b2a;
    stroke: #3b82f6;
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

.rig-ram-rgb {
    fill: url(#gradFanRgb);
    opacity: 0.85;
}

/* SSD */
.rig-ssd-shield {
    fill: #181c2e;
    stroke: #334155;
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

/* GPU */
.rig-gpu-body {
    fill: url(#gradGpu);
    stroke: #475569;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.rig-gpu-fan {
    fill: #111422;
    stroke: #334155;
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

/* PSU */
.rig-psu-shroud {
    fill: #0c0e18;
    stroke: #252a40;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.rig-psu-unit {
    fill: #131625;
    stroke: #334155;
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

/* SVG Part Hover Active States - Crisp Direct Illuminations (No Blurry Filters) */
.rig-part:hover .rig-case-outer,
.rig-part.rig-part-active .rig-case-outer {
    stroke: #06b6d4;
    stroke-width: 3.5;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.45));
}

.rig-part:hover .rig-mb-board,
.rig-part.rig-part-active .rig-mb-board {
    stroke: #8b5cf6;
    stroke-width: 2.5;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.45));
}

.rig-part:hover .rig-cooler-body,
.rig-part.rig-part-active .rig-cooler-body {
    stroke: #06b6d4;
    stroke-width: 2.5;
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.6));
}

.rig-part:hover .rig-fan-outer,
.rig-part.rig-part-active .rig-fan-outer {
    stroke: #06b6d4;
    filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.8));
}

.rig-part:hover .rig-cpu-frame,
.rig-part.rig-part-active .rig-cpu-frame {
    stroke: #8b5cf6;
    stroke-width: 2.5;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6));
}

.rig-part:hover .rig-cpu-ihs,
.rig-part.rig-part-active .rig-cpu-ihs {
    stroke: #06b6d4;
    stroke-width: 2.5;
    fill: #2a2e4a;
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.8));
}

.rig-part:hover .rig-ram-stick,
.rig-part.rig-part-active .rig-ram-stick {
    stroke: #ec4899;
    stroke-width: 2.5;
    filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.7));
}

.rig-part:hover .rig-ssd-shield,
.rig-part.rig-part-active .rig-ssd-shield {
    stroke: #06b6d4;
    stroke-width: 2.5;
    fill: rgba(6, 182, 212, 0.18);
    filter: drop-shadow(0 0 7px rgba(6, 182, 212, 0.8));
}

.rig-part:hover .rig-gpu-body,
.rig-part.rig-part-active .rig-gpu-body {
    stroke: #a855f7;
    stroke-width: 3;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.6));
}

.rig-part:hover .rig-gpu-fan,
.rig-part.rig-part-active .rig-gpu-fan {
    stroke: #06b6d4;
    filter: drop-shadow(0 0 6px rgba(6, 182, 212, 0.6));
}

.rig-part:hover .rig-psu-unit,
.rig-part.rig-part-active .rig-psu-unit {
    stroke: #f59e0b;
    stroke-width: 2.5;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
}

/* Right: Components List */
.pc-components-list {
    flex: 1 1 auto !important;
    min-width: 260px !important;
    width: auto !important;
    box-sizing: border-box;
    overflow-y: auto;
    padding-right: 4px;
    display: flex !important;
    flex-direction: column !important;
    gap: 7px;
}

/* Custom scrollbar for components list */
.pc-components-list::-webkit-scrollbar {
    width: 5px;
}

.pc-components-list::-webkit-scrollbar-track {
    background: transparent;
}

.pc-components-list::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.25);
    border-radius: 4px;
}

.pc-components-list::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}

/* Component Card */
.pc-part-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(22, 26, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
}

.pc-part-card:hover,
.pc-part-card.part-card-active {
    background: rgba(30, 36, 58, 0.85);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 12px rgba(139, 92, 246, 0.15);
}

.part-card-left {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex: 1;
}

.part-card-icon {
    font-size: 15px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 7px;
    flex-shrink: 0;
}

.part-card-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.part-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.part-category-tag {
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.part-shop-badge {
    font-size: 9.5px;
    padding: 1px 5px;
    border-radius: 5px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-avito {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-wb {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.badge-ot {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-dns {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.badge-empty {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.part-card-placeholder {
    opacity: 0.88;
}

.part-card-placeholder .part-card-price {
    color: #94a3b8;
    font-weight: 600;
}

.part-card-placeholder .part-card-name {
    color: #cbd5e1;
}

.part-card-name {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.part-spec-tag {
    font-size: 10px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.part-card-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 8px;
}

.part-card-price {
    font-size: 13px;
    font-weight: 700;
    color: #38bdf8;
    white-space: nowrap;
}

.part-card-link-btn {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
    text-decoration: none;
}

.part-card-link-btn:hover {
    background: rgba(6, 182, 212, 0.2);
    color: #38bdf8;
    border-color: rgba(6, 182, 212, 0.4);
    transform: scale(1.1);
}

/* Rig Footer */
.pc-rig-footer {
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 11px 18px;
    background: rgba(20, 23, 36, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
}

.pc-rig-footer-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11.5px;
    color: var(--text-secondary);
    text-align: center;
}

.rig-info-icon {
    font-size: 13px;
}

/* Floating Tooltip */
.rig-floating-tooltip {
    position: absolute;
    display: none;
    z-index: 99999;
    pointer-events: none;
    background: rgba(15, 18, 30, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 10px 13px;
    max-width: 270px;
    font-family: inherit;
    transition: opacity 0.15s ease;
}

.tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.tooltip-cat {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
}

.tooltip-shop {
    font-size: 9.5px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid;
}

.tooltip-name {
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.3;
}

.tooltip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tooltip-price {
    font-size: 13.5px;
    font-weight: 800;
    color: #38bdf8;
}

.tooltip-btn {
    pointer-events: auto;
    font-size: 10.5px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #06b6d4, #8b5cf6);
    padding: 3px 8px;
    border-radius: 5px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.tooltip-btn:hover {
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .hero-workspace-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-rig-col,
    .hero-chat-col {
        width: 100%;
        max-width: 900px;
        margin: 0 auto;
    }

    .pc-rig-card {
        height: auto;
        min-height: 520px;
        max-height: none;
    }

    .hero-chat-col .chat-window {
        height: 650px;
    }
}

@media (max-width: 768px) {
    .pc-rig-stage-wrapper {
        flex-direction: column !important;
        height: auto;
    }

    .pc-chassis-stage {
        flex: 0 0 240px !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
    }

    .pc-components-list {
        width: 100% !important;
        min-width: 0 !important;
    }

    .pc-chassis-svg {
        max-height: 230px;
    }

    .pc-rig-footer {
        flex-direction: column !important;
        align-items: stretch;
        text-align: center;
        width: 100% !important;
    }
}

/* ==========================================================================
   Support & Helpdesk Widget Styles
   ========================================================================== */
.support-floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, #00ffcc 0%, #00b4d8 100%);
    color: #0b0f19;
    font-weight: 700;
    font-size: 13px;
    border: none;
    border-radius: 30px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 255, 204, 0.4);
    z-index: 9998;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.support-floating-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 25px rgba(0, 255, 204, 0.65);
}

.support-badge {
    background: #ff3366;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 2px;
}

.support-msg {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.45;
    position: relative;
    word-break: break-word;
}

.support-msg-user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.2), rgba(0, 210, 255, 0.15));
    border: 1px solid rgba(0, 255, 204, 0.35);
    color: #f1f5f9;
    border-bottom-right-radius: 4px;
}

.support-msg-admin {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    border-bottom-left-radius: 4px;
}

.support-msg-sender {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
    color: #00ffcc;
    letter-spacing: 0.04em;
}

.support-msg-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    text-align: right;
}

.support-dialog-item {
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    font-size: 12px;
}

.support-dialog-item:hover, .support-dialog-item.active {
    background: rgba(0, 255, 204, 0.12);
    border-color: rgba(0, 255, 204, 0.3);
}

@media (max-width: 600px) {
    .support-floating-btn {
        bottom: 16px;
        right: 16px;
        padding: 8px 14px;
        font-size: 12px;
    }
    #support-admin-view {
        flex-direction: column !important;
    }
    .support-admin-sidebar {
        width: 100% !important;
        max-height: 140px;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 8px;
    }
}

/* ==========================================================================
   Admin Panel Modal Styles
   ========================================================================== */
.admin-tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.admin-tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-tab-btn.active {
    background: rgba(0, 255, 204, 0.15);
    border-color: #00ffcc;
    color: #00ffcc;
}

.admin-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    color: var(--text-secondary);
}

.admin-data-table th, .admin-data-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-data-table th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
}

.admin-data-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.admin-rule-card, .admin-comp-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: border-color 0.2s;
}

.admin-rule-card:hover, .admin-comp-card:hover {
    border-color: rgba(0, 255, 204, 0.3);
}

.admin-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
}

.admin-stat-val {
    font-size: 28px;
    font-weight: 800;
    color: #00ffcc;
    margin-top: 6px;
}

.admin-stat-lbl {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    #admin-tab-support {
        flex-direction: column !important;
    }
    #admin-tab-support > div:first-child {
        width: 100% !important;
        max-height: 150px;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 10px;
    }
}
