/* Enhanced Crywolf Store Styles */

/* CSS Variables for Theme Management */
:root {
    /* Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --accent-primary: #90c695;
    --accent-secondary: #7fb069;
    --accent-tertiary: #5a9b65;
    --border-color: #dee2e6;
    --border-light: #f1f3f4;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --hover-shadow: rgba(0, 0, 0, 0.15);
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
    --info-color: #17a2b8;
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --accent-primary: #90c695;
    --accent-secondary: #7fb069;
    --accent-tertiary: #5a9b65;
    --border-color: #404040;
    --border-light: #505050;
    --card-shadow: rgba(0, 0, 0, 0.3);
    --hover-shadow: rgba(0, 0, 0, 0.4);
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
    --info-color: #17a2b8;
}

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

/* Add to style/style.css */
.nav-icon {
    margin-right: 8px;
    font-size: 1.1em;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-icon i {
    font-size: 1.1em;
    color: inherit;
}



body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: all 0.3s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Enhanced Header */
.header {
    background: var(--bg-secondary);
    /* border-bottom: 1px solid var(--border-color); */
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 50px;
    height: 50px;
    position: relative;
}

.logo-inner {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.green-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    display: block;
}

.wolf-silhouette {
    width: 30px;
    height: 30px;
    background: var(--bg-primary);
    border-radius: 50%;
    position: absolute;
    z-index: 2;
}

.sheep {
    width: 15px;
    height: 15px;
    background: var(--text-secondary);
    border-radius: 50%;
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 3;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 2px;
}

/* Enhanced Search Bar */
.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 0.8rem 3rem 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(144, 198, 149, 0.1);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent-primary);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.search-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-50%) scale(1.05);
}

/* Enhanced Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle, .language-toggle {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto; /* Allow width to adjust to content */
    height: 40px;
    position: relative; /* For dropdown positioning */
    gap: 5px; /* Space between icon and text */
}

.theme-toggle:hover, .language-toggle:hover {
    border-color: var(--accent-primary);
    background: rgba(144, 198, 149, 0.1);
}

.theme-toggle svg {
    color: var(--text-primary);
}

.language-toggle .fas.fa-globe {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.selected-lang-text {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.dropdown-arrow {
    font-size: 0.7rem;
    color: var(--text-primary);
    transition: transform 0.3s ease;
}

.language-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

.language-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    padding: 0.5rem 0;
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.language-toggle.active .language-dropdown-menu {
    display: flex;
}

.language-option {
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.language-option:hover {
    background-color: var(--bg-tertiary);
}

.language-option.active {
    background-color: var(--accent-primary);
    color: white;
}

.cart-icon {
    position: relative;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.cart-icon:hover {
    border-color: var(--accent-primary);
    background: rgba(144, 198, 149, 0.1);
}

.cart-icon svg {
    color: var(--text-primary);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

.admin-login {
    position: relative;
}

.admin-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Enhanced Navigation */
.main-nav {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown .chevron {
    margin-left: 6px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown .chevron i {
    font-size: 0.8rem;
    color: inherit;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px var(--card-shadow);
    padding: 0.75rem;
    display: none;
    z-index: 1000;
    min-width: 280px;
}

.nav-dropdown:hover .dropdown-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.dropdown-title {
    font-weight: 700;
    color: var(--text-primary);
    padding: 0.25rem 0.5rem 0.5rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    text-align: left;
    padding: 0.5rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.nav-link.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    background: rgba(144, 198, 149, 0.05);
}

/* Enhanced Tab Content */
.tab-content {
    display: none;
    padding: 2rem 0;
    min-height: calc(100vh - 140px);
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* Enhanced Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-radius: 20px;
    margin-bottom: 3rem;
    overflow: hidden;
    position: relative;
}

.banner-slider {
    position: relative;
    height: 500px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 3rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-content {
    flex: 1;
    z-index: 2;
}

.banner-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.banner-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cta-button.primary {
    background: var(--accent-primary);
    color: white;
}

.cta-button.primary:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(144, 198, 149, 0.3);
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.cta-button.secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.banner-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-graphic { display: none; }

.hero-banner-img {
    width: 100%;
    max-width: 2000px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--card-shadow);
}

.pc-tower {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 250px;
}

.tower-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, var(--bg-primary), var(--bg-secondary));
    border-radius: 15px;
    border: 2px solid var(--border-color);
    position: relative;
    box-shadow: 0 10px 30px var(--card-shadow);
}

.tower-lights {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px var(--accent-primary);
}

.tower-fans {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: spin 3s linear infinite;
}

.floating-components {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Keep component icons consistent even when other rows grow (e.g., storage slots) */
.component-info .component-icon {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .component-info .component-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  @media (max-width: 640px) {
    .component-info .component-icon {
      width: 60px;
      height: 60px;
      flex: 0 0 60px;
    }
  }
  

.component {
    position: absolute;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

.component.cpu {
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.component.gpu {
    top: 40px;
    right: 40px;
    animation-delay: 1s;
}

.component.ram {
    bottom: 60px;
    left: 60px;
    animation-delay: 2s;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Services Section */
.services-section {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--hover-shadow);
    border-color: var(--accent-primary);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Categories Preview */
.categories-preview {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.categories-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-preview-card {
    background: var(--bg-primary);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-preview-card:hover::before {
    transform: scaleX(1);
}

.category-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--hover-shadow);
    border-color: var(--accent-primary);
}

.category-preview-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-preview-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.category-preview-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--hover-shadow);
    border-color: var(--accent-primary);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
    font-size: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.author-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* About Section Home */
.about-section-home {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.about-content-home {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text-home h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-text-home p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.about-text-home h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.benefits-list-home {
    list-style: none;
    margin-bottom: 2rem;
}

.benefits-list-home li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.benefits-list-home li::before {
    content: '✓';
    color: var(--accent-primary);
    font-weight: bold;
}

.about-stats-home {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card-home {
    background: var(--bg-primary);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.stat-card-home:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.stat-card-home h4 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.stat-card-home p {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Call to Action Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cta-btn.primary {
    background: white;
    color: var(--accent-primary);
}

.cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-btn.secondary:hover {
    background: white;
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Enhanced PC Builder Promo - New Modern Design */
.pc-builder-promo {
    background: linear-gradient(135deg, #1b291b 0%, #1a1a1a 50%, #1b291b 100%);
    border-radius: 24px;
    margin: 4rem 0;
    padding: 4rem 3rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(144, 198, 149, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pc-builder-promo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: float 20s ease-in-out infinite;
    opacity: 0.4;
}

.pc-builder-promo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-10px, -10px) rotate(1deg); }
    50% { transform: translate(10px, -5px) rotate(-1deg); }
    75% { transform: translate(-5px, 10px) rotate(1deg); }
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.pc-builder-promo .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 3;
}

.builder-content {
    position: relative;
    z-index: 2;
}

.builder-content h2 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #ffffff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.builder-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.7;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.build-button {
    background: linear-gradient(45deg, #ffffff, #f8f9ff);
    color: #5a9b65;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.build-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.build-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    background: linear-gradient(45deg, #f8f9ff, #ffffff);
}

.build-button:hover::before {
    left: 100%;
}

.build-button:active {
    transform: translateY(-1px) scale(1.02);
}

.builder-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.pc-graphic {
    position: relative;
    width: 300px;
    height: 300px;
    animation: pulse 2s ease-in-out infinite;
}

.pc-builder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.pc-builder-image:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

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

@keyframes glow {
    0% { 
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.3),
                    inset 0 0 20px rgba(255, 255, 255, 0.1);
    }
    100% { 
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.5),
                    inset 0 0 30px rgba(255, 255, 255, 0.2);
    }
}

/* Enhanced Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.section-title-with-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.inline-selects { display: flex; gap: 0.5rem; }
.inline-select {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.45rem 0.5rem;
    border-radius: 8px;
}

/* Pretty select baseline */
.pretty-select {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
}

/* Custom dropdown for storage types */
.custom-dropdown { position: relative; margin: 0.75rem 0; }
.custom-dropdown .dropdown-toggle {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
}
.custom-dropdown .dropdown-panel {
    position: absolute; top: calc(100% + 8px); left: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--card-shadow);
    padding: 0.5rem;
    display: none;
    min-width: 320px;
    z-index: 10;
}
.custom-dropdown.open .dropdown-panel { display: block; }
.dropdown-row {
    display: flex; align-items: center; gap: 0.6rem;
    background: transparent; border: none; color: var(--text-primary);
    padding: 0.5rem 0.6rem; border-radius: 8px; cursor: pointer; width: 100%; text-align: left;
}
.dropdown-row:hover { background: var(--bg-secondary); }
.dropdown-row .icon { width: 20px; text-align: center; }

.section-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
    font-weight: 600;
}

.see-more-btn {
    background: none;
    border: none;
    color: var(--accent-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.see-more-btn:hover {
    color: var(--accent-secondary);
    transform: translateX(5px);
}

/* Enhanced Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* removed two-step selector styles */

.product-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px var(--card-shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    box-shadow: 0 8px 25px var(--hover-shadow);
}

.product-image {
    width: 100%;
    height: 210px;
    background: var(--bg-primary);
    border-radius: 10px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
    overflow: hidden;
    /* Remove extra width and fix alignment */
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* or use 'contain' if you want to see the whole image */
    border-radius: 8px;
    display: block;
}

.product-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.product-specs {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.product-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.product-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-featured {
    background: var(--accent-primary);
    color: white;
}

.badge-sale {
    background: var(--warning-color);
    color: white;
}

.badge-new {
    background: var(--info-color);
    color: white;
}

.product-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.add-to-cart-btn {
    width: 100%;
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

.view-details-btn {
    width: 100%;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    padding: 0.8rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-details-btn:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Enhanced Filter Controls */
.filter-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mega-filter { position: relative; }
.mega-btn {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    cursor: pointer;
}
.mega-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--card-shadow);
    padding: 0.75rem;
    display: none;
    z-index: 1000;
    min-width: 520px;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.mega-filter.open .mega-menu { display: grid; }

.filter-controls select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-controls select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.filter-controls select:hover {
    border-color: var(--accent-primary);
}

/* Enhanced Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--hover-shadow);
    border-color: var(--accent-primary);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.category-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-count {
    background: var(--accent-primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Enhanced About Section */
.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-content h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.benefits-list {
    list-style: none;
    margin-bottom: 2rem;
}

.benefits-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.benefits-list li::before {
    content: '✓';
    color: var(--accent-primary);
    font-weight: bold;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.stat-card h4 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Enhanced Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px var(--card-shadow);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-top: 0.2rem;
}

.contact-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.contact-details p {
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.contact-details small {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(144, 198, 149, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form button {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

/* Enhanced Order Modal */
.order-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.order-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.order-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(144, 198, 149, 0.1) 0%,
        rgba(144, 198, 149, 0.05) 50%,
        rgba(144, 198, 149, 0.1) 100%);
    border-radius: 20px;
    z-index: -1;
    pointer-events: none;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(144, 198, 149, 0.3);
    position: relative;
}

.order-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

.order-header h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-order {
    background: rgba(144, 198, 149, 0.1);
    border: 2px solid rgba(144, 198, 149, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close-order:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: rotate(90deg);
}

.order-body {
    padding: 1rem 0;
}

/* Cart styles */
#cartModal .order-content { max-width: 720px; }
#cartItems { display: flex; flex-direction: column; gap: 0.75rem; }
.cart-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 12px; padding: 0.75rem; }
.cart-row-left { display: flex; align-items: center; gap: 0.75rem; }
.cart-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-secondary); }
.cart-info { display: flex; flex-direction: column; gap: 0.2rem; }
.cart-name { font-weight: 600; color: var(--text-primary); line-height: 1.2; }
.cart-price { color: var(--accent-primary); font-weight: 700; }
.cart-row-right { display: flex; align-items: center; gap: 0.5rem; }
.qty { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 8px; padding: 0.2rem 0.4rem; }
.qty button { background: var(--bg-primary); border: 1px solid var(--border-color); width: 26px; height: 26px; border-radius: 6px; cursor: pointer; color: var(--text-primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.qty span { min-width: 22px; text-align: center; display: inline-block; color: var(--text-primary); }
.remove-btn { background: #dc3545; color: #fff; border: none; border-radius: 8px; padding: 0.4rem 0.6rem; cursor: pointer; }
.cart-footer { position: sticky; bottom: 0; background: linear-gradient(180deg, transparent, var(--bg-secondary)); padding-top: 0.5rem; }
.cart-total { color: var(--text-primary); }

.coming-soon-notice {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.notice-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.coming-soon-notice h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.coming-soon-notice p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

.phone-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.phone-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.phone-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.phone-details strong {
    display: block;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.phone-details p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.phone-details small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.benefits h5 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
    text-align: center;
}

.benefits ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.benefits li {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.benefits li:hover {
    background: rgba(144, 198, 149, 0.1);
    transform: translateX(5px);
    color: var(--text-primary);
}

.benefits li::before {
    content: '✓';
    color: var(--accent-primary);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .order-content {
        padding: 2rem 1.5rem;
        width: 95%;
        max-width: 95vw;
    }
    
    .order-header h3 {
        font-size: 1.5rem;
    }
    
    .benefits ul {
        grid-template-columns: 1fr;
    }
    
    .phone-contact {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}


/* Scripts */
    
/* Login/Register Modal Styles */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px var(--card-shadow);
}

.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.auth-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.close-auth {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.auth-form {
    display: none; /* Hidden by default */
    flex-direction: column;
    gap: 1rem;
}

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

.auth-form input {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(144, 198, 149, 0.1);
}

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

.auth-form button {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-form button:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

.auth-switch {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-link {
    color: var(--accent-primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-bar {
        max-width: 100%;
        margin: 0.5rem 0;
    }
    
    .search-bar input {
        font-size: 0.95rem;
        padding: 0.6rem 2.5rem 0.6rem 0.8rem;
    }
    
    .search-btn {
        width: 30px;
        height: 30px;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .theme-toggle, .language-toggle, .cart-icon {
        width: 32px;
        height: 32px;
        padding: 0.3rem;
    }
    
    .admin-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .main-nav {
        padding: 0;
        font-size: 0.95rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 0;
        justify-content: center;
    }
    
    .nav-link {
        padding: 0.6rem 0.7rem;
        font-size: 0.95rem;
    }
    
    .tab-content {
        padding: 1rem 0 0.5rem 0;
        min-height: unset;
    }
    
    .hero-banner {
        margin-bottom: 1.5rem;
        border-radius: 10px;
    }
    
    .banner-slider {
        height: 220px;
    }
    
    .banner-slide {
        flex-direction: column;
        padding: 1rem;
    }
    
    .banner-content h1 {
        font-size: 1.5rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .banner-buttons {
        gap: 0.5rem;
    }
    
    .cta-button, .build-button, .cta-btn {
        padding: 0.7rem 1.2rem;
        font-size: 1rem;
        border-radius: 18px;
    }
    
    .banner-image {
        margin-top: 1rem;
    }
    
    .hero-banner-img {
        max-width: 100%;
        border-radius: 10px;
    }
    
    .services-section,
    .categories-preview,
    .testimonials-section,
    .about-section-home,
    .cta-section {
        padding: 2rem 0.5rem;
    }
    
    .pc-builder-promo {
        padding: 2rem 1rem;
        margin: 2rem 0;
        border-radius: 16px;
    }
    
    .pc-builder-promo .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .pc-graphic {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
    
    .pc-builder-image {
        border-radius: 15px;
        border-width: 2px;
    }
    
    .build-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .services-grid,
    .categories-preview-grid,
    .testimonials-grid,
    .about-stats-home {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card,
    .category-preview-card,
    .testimonial-card,
    .stat-card-home {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
    }
    
    .see-more-btn {
        font-size: 0.95rem;
        gap: 0.3rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .product-card {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .product-image {
        height: 140px;
        border-radius: 8px;
    }
    
    .product-info h3 {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .filter-controls select,
    .pretty-select,
    .inline-select {
        width: 100%;
        font-size: 0.95rem;
        padding: 0.4rem 0.5rem;
    }
    
    .custom-dropdown .dropdown-panel {
        min-width: 90vw;
        left: 0;
    }
    
    .about-content-home {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about-text-home h2,
    .cta-content h2 {
        font-size: 1.3rem;
        margin-bottom: 0.7rem;
    }
    
    .builder-content h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
        -webkit-text-fill-color: #ffffff;
        background: none;
    }
    
    .about-text-home p,
    .cta-content p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .builder-content p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .benefits-list-home li {
        font-size: 0.95rem;
    }
    
    .order-content,
    .admin-content,
    .profile-content,
    .settings-content,
    .auth-content {
        padding: 1rem;
        width: 98vw;
        max-width: 98vw;
        border-radius: 10px;
    }
    
    .order-header,
    .admin-header,
    .profile-header,
    .settings-header,
    .auth-header {
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .chat-modal {
        width: 100vw !important;
        height: 100vh !important;
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        border-radius: 0 !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
    }
    
    .chat-content {
        padding: 0.5rem;
    }
    
    .chat-header {
        padding: 0.5rem;
    }
    
    .chat-messages {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .chat-input-area {
        padding: 0.5rem;
    }
    
    .chat-input-container input {
        font-size: 1rem;
        padding: 0.5rem 0.8rem;
    }
    
    .send-btn {
        width: 32px;
        height: 32px;
    }
    
    .chat-icon {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
}

/* --- Improved Mobile Styles --- */
@media (max-width: 600px) {
    body {
        font-size: 1rem;
        padding: 0;
    }
    .container {
        padding: 0 0.5rem;
        max-width: 100vw;
    }
    .header {
        padding: 0.5rem 0;
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    .header .container {
        flex-direction: column;
        gap: 0.5rem;
    }
    .nav-brand {
        gap: 0.5rem;
    }
    .brand-name {
        font-size: 1.1rem;
    }
    .search-bar {
        max-width: 100%;
        margin: 0.5rem 0;
    }
    .search-bar input {
        font-size: 0.95rem;
        padding: 0.6rem 2.5rem 0.6rem 0.8rem;
    }
    .search-btn {
        width: 30px;
        height: 30px;
    }
    .header-actions {
        gap: 0.5rem;
    }
    .theme-toggle, .language-toggle, .cart-icon {
        width: 32px;
        height: 32px;
        padding: 0.3rem;
    }
    .admin-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    .main-nav {
        padding: 0;
        font-size: 0.95rem;
    }
    .nav-menu {
        flex-wrap: wrap;
        gap: 0;
        justify-content: center;
    }
    .nav-link {
        padding: 0.6rem 0.7rem;
        font-size: 0.95rem;
    }
    .tab-content {
        padding: 1rem 0 0.5rem 0;
        min-height: unset;
    }
    .hero-banner {
        margin-bottom: 1.5rem;
        border-radius: 10px;
    }
    .banner-slider {
        height: 220px;
    }
    .banner-slide {
        flex-direction: column;
        padding: 1rem;
    }
    .banner-content h1 {
        font-size: 1.5rem;
    }
    .banner-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    .banner-buttons {
        gap: 0.5rem;
    }
    .cta-button, .build-button, .cta-btn {
        padding: 0.7rem 1.2rem;
        font-size: 1rem;
        border-radius: 18px;
    }
    .banner-image {
        margin-top: 1rem;
    }
    .hero-banner-img {
        max-width: 100%;
        border-radius: 10px;
    }
    .services-section,
    .categories-preview,
    .testimonials-section,
    .about-section-home,
    .cta-section {
        padding: 2rem 0.5rem;
    }
    
    .pc-builder-promo {
        padding: 2rem 1rem;
        margin: 2rem 0;
        border-radius: 16px;
    }
    
    .pc-builder-promo .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .pc-graphic {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }
    
    .pc-builder-image {
        border-radius: 15px;
        border-width: 2px;
    }
    
    .build-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    .services-grid,
    .categories-preview-grid,
    .testimonials-grid,
    .about-stats-home {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .service-card,
    .category-preview-card,
    .testimonial-card,
    .stat-card-home {
        padding: 1rem;
        border-radius: 10px;
    }
    .section-header {
        flex-direction: column;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
    }
    .section-header h2 {
        font-size: 1.2rem;
    }
    .see-more-btn {
        font-size: 0.95rem;
        gap: 0.3rem;
    }
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    .product-card {
        padding: 1rem;
        border-radius: 10px;
    }
    .product-image {
        height: 140px;
        border-radius: 8px;
    }
    .product-info h3 {
        font-size: 1rem;
    }
    .product-price {
        font-size: 1.1rem;
    }
    .filter-controls {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    .filter-controls select,
    .pretty-select,
    .inline-select {
        width: 100%;
        font-size: 0.95rem;
        padding: 0.4rem 0.5rem;
    }
    .custom-dropdown .dropdown-panel {
        min-width: 90vw;
        left: 0;
    }
    .about-content-home {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .about-text-home h2,
    .cta-content h2 {
        font-size: 1.3rem;
        margin-bottom: 0.7rem;
    }
    
    .builder-content h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
        -webkit-text-fill-color: #ffffff;
        background: none;
    }
    
    .about-text-home p,
    .cta-content p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .builder-content p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    .benefits-list-home li {
        font-size: 0.95rem;
    }
    .order-content,
    .admin-content,
    .profile-content,
    .settings-content,
    .auth-content {
        padding: 1rem;
        width: 98vw;
        max-width: 98vw;
        border-radius: 10px;
    }
    .order-header,
    .admin-header,
    .profile-header,
    .settings-header,
    .auth-header {
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
    }
    .chat-modal {
        width: 100vw !important;
        height: 100vh !important;
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        border-radius: 0 !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
    }
    .chat-content {
        padding: 0.5rem;
    }
    .chat-header {
        padding: 0.5rem;
    }
    .chat-messages {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    .chat-input-area {
        padding: 0.5rem;
    }
    .chat-input-container input {
        font-size: 1rem;
        padding: 0.5rem 0.8rem;
    }
    .send-btn {
        width: 32px;
        height: 32px;
    }
    .chat-icon {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
}

/* Account Menu Styles */
.account-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.account-menu-content {
    position: absolute;
    top: 80px;
    right: 20px;
    background: var(--bg-secondary);
    border-radius: 15px;
    padding: 1.5rem;
    min-width: 300px;
    box-shadow: 0 10px 30px var(--card-shadow);
    border: 2px solid var(--border-color);
}

.account-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.account-avatar {
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.account-info h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.account-info p {
    margin: 0.2rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.account-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.account-actions button {
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 0.9rem;
}

.account-actions button:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateX(5px);
}

.logout-btn {
    background: var(--error-color) !important;
    color: white !important;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-color) !important;
    padding-top: 1rem !important;
}

.logout-btn:hover {
    background: #c82333 !important;
}

/* User Avatar Styles */
.user-profile .avatar {
    transition: all 0.3s ease;
}

.user-profile:hover .avatar {
    transform: scale(1.1);
}

/* Responsive Account Menu */
@media (max-width: 768px) {
    .account-menu-content {
        top: 70px;
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

/* Photo Upload Styles */
.photo-upload-section {
    text-align: center;
    margin-bottom: 1rem;
}

.photo-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 3px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    overflow: hidden;
    transition: all 0.3s ease;
}

.photo-preview:hover {
    border-color: var(--accent-primary);
}

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

.photo-placeholder {
    font-size: 2rem;
    color: var(--text-muted);
}

.upload-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

/* Profile Modal Styles */
.profile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px var(--card-shadow);
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    color: white;
    overflow: hidden;
}

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

.profile-info {
    margin-bottom: 2rem;
}

.profile-info h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.profile-field {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.profile-field:last-child {
    border-bottom: none;
}

.profile-label {
    font-weight: 600;
    color: var(--text-primary);
}

.profile-value {
    color: var(--text-secondary);
}

.profile-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.profile-actions button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.profile-actions .edit-btn {
    background: var(--accent-primary);
    color: white;
}

.profile-actions .close-btn {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.profile-actions button:hover {
    transform: translateY(-2px);
}

/* Settings Modal Styles */
.settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.settings-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px var(--card-shadow);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.settings-header h3 {
    color: var(--text-primary);
    margin: 0;
}

.close-settings {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-settings:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.settings-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.settings-section {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
}

.settings-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.settings-form input {
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.settings-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.settings-form button {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.settings-form button:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

.save-photo-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
    width: 100%;
}

.save-photo-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

/* Responsive Settings Modal */
@media (max-width: 768px) {
    .settings-content {
        width: 95%;
        max-height: 90vh;
        padding: 1.5rem;
    }
    
    .settings-body {
        gap: 1.5rem;
    }
    
    .settings-section {
        padding: 1rem;
    }
}

/* Admin Login Modal Styles */
.admin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-modal.active {
    display: block;
    opacity: 1;
}

.admin-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px var(--card-shadow);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.admin-header h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.5rem;
}

.close-admin {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-admin:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-form input {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.admin-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(144, 198, 149, 0.1);
}

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

.admin-form button {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-form button:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

.admin-credentials {
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    margin-top: 1rem;
}

.admin-credentials h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.admin-credentials p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.2rem 0;
}

/* Admin Panel Styles */
.admin-panel-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-panel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px var(--card-shadow);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.admin-header h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.5rem;
}

.close-admin {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-admin:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.admin-tab {
    background: none;
    border: none;
    padding: 1rem 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

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

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

.admin-tab-content {
    display: none;
}

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

/* Admin Form Styles */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.add-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
}

.add-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

.clear-btn {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* Manage Parts Styles */
.manage-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.manage-controls select,
.manage-controls input {
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.manage-controls select:focus,
.manage-controls input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.parts-list {
    display: grid;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.part-item {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.part-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--card-shadow);
}

.part-info {
    flex: 1;
}

.part-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.part-details {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.part-actions {
    display: flex;
    gap: 0.5rem;
}

.edit-part-btn,
.delete-part-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.edit-part-btn {
    background: var(--accent-primary);
    color: white;
}

.edit-part-btn:hover {
    background: var(--accent-secondary);
}

.delete-part-btn {
    background: #dc3545;
    color: white;
}

.delete-part-btn:hover {
    background: #c82333;
}

/* Blacklist Management Styles */
.blacklist-section {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
}

.blacklist-section h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.blacklist-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.blacklist-controls input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.blacklist-words {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blacklist-word {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.9rem;
}

.remove-blacklist-btn {
    background: #d32f2f;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-blacklist-btn:hover {
    background: #b71c1c;
}

#blacklistResponse {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-primary);
    color: var(--text-primary);
    resize: vertical;
    margin-bottom: 1rem;
}

.test-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.test-controls input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.test-btn {
    background: #2196f3;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.test-btn:hover {
    background: #1976d2;
}

.test-result {
    padding: 1rem;
    border-radius: 4px;
    font-weight: 500;
}

.test-result.blocked {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.test-result.allowed {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* Responsive Admin Panel */
@media (max-width: 768px) {
    .admin-content {
        width: 98%;
        padding: 1.5rem;
        max-height: 95vh;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .manage-controls {
        flex-direction: column;
    }
    
    .part-item {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .part-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* AI Chat Styles */
.chat-icon {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
    color: white;
    border: 2px solid white;
}

.chat-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.chat-icon {
    animation: chatPulse 2s infinite;
}

@keyframes chatPulse {
    0% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 4px 20px rgba(144, 198, 149, 0.4);
    }
    100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }
}

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

.chat-modal {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 500px;
    height: 600px;
    background: var(--bg-primary);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    z-index: 1001;
    border: 1px solid var(--border-color);
}

.chat-modal.active {
    display: flex;
}

.chat-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 15px 15px 0 0;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ai-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.chat-info h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.chat-status {
    font-size: 0.8rem;
    color: var(--success-color);
    font-weight: 500;
}

.close-chat {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-chat:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    gap: 0.75rem;
    max-width: 80%;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.ai-message {
    align-self: flex-start;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: var(--accent-primary);
    color: white;
}

.ai-message .message-avatar {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.message-content {
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.user-message .message-content {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.message-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 0 0 15px 15px;
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.chat-input-container input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input-container input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(144, 198, 149, 0.1);
}

.chat-input-container input::placeholder {
    color: var(--text-muted);
}

.send-btn {
    width: 40px;
    height: 40px;
    background: var(--accent-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
}

.send-btn:hover {
    background: var(--accent-secondary);
    transform: scale(1.05);
}

.send-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.typing-indicator {
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    align-self: flex-start;
    max-width: 80px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Responsive for Chat */
@media (max-width: 768px) {
    .chat-modal {
        width: calc(100vw - 1rem);
        height: calc(100vh - 2rem);
        bottom: 0.5rem;
        right: 0.5rem;
        left: 0.5rem;
    }
    
    .chat-icon {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }
    
    .chat-icon svg {
        width: 20px;
        height: 20px;
    }
}




/* --- Improved Footer Styles --- */
.site-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #eee;
    padding: 3rem 0 1.5rem 0;
    margin-top: 0;
    font-size: 1rem;
    border-top: 4px solid var(--accent-primary);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.footer-brand {
    flex: 1 1 260px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}
.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    background: #333;
    object-fit: contain;
    box-shadow: 0 4px 16px rgba(144,198,149,0.2);
    border: 2px solid var(--accent-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(144,198,149,0.3);
}
.footer-desc {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 0.5rem;
    max-width: 260px;
}
.footer-social {
    display: flex;
    gap: 0.7rem;
    margin-top: 0.5rem;
}
.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #333;
    color: #fff;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
}
.footer-social-btn:hover {
    background: var(--accent-primary, #90c695);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(144, 198, 149, 0.3);
    border-color: var(--accent-primary, #90c695);
}
.footer-links, .footer-contact {
    flex: 1 1 180px;
    min-width: 180px;
}
.footer-links h4, .footer-contact h4 {
    font-size: 1.08rem;
    margin-bottom: 0.7rem;
    color: var(--accent-primary, #90c695);
    font-weight: 700;
}
.footer-links ul, .footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links ul li, .footer-contact ul li {
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-links ul li a {
    color: #eee;
    text-decoration: none;
    font-size: 0.98rem;
    transition: color 0.2s;
}
.footer-links ul li a:hover {
    color: var(--accent-primary, #90c695);
    text-decoration: underline;
}

.footer-contact ul li:hover i {
    transform: scale(1.1);
}
.footer-contact ul li i {
    margin-right: 0.6rem;
    color: var(--accent-primary, #90c695);
    font-size: 1.2rem;
    min-width: 20px;
    text-align: center;
    transition: transform 0.2s ease;
}
.footer-bottom {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    color: #aaa;
    font-size: 0.92rem;
    letter-spacing: 0.5px;
    border-top: 1px solid #444;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 1px;
}

/* Responsive Footer */
@media (max-width: 700px) {
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
        padding: 0 0.5rem;
    }
    .footer-brand, .footer-links, .footer-contact {
        min-width: 0;
        width: 100%;
        align-items: flex-start;
    }
    .footer-desc {
        max-width: 100%;
    }
    .footer-bottom {
        margin-top: 1.2rem;
    }
}

.tab-container {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 120px); /* Adjust based on header/footer height */
}

/* Navigation Tabs */
.main-nav {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}