:root {
    /* Warna Dasar */
    --bg: #0f1115;
    --panel: #111217;
    --card: #0e1116;
    --text: #e8eef6;
    --muted: #9aa3b2;
    
    /* Aksen */
    --accent: #7b5cff;
    --accent-2: #4ad9c8;
    
    /* Efek & Ukuran */
    --glass: rgba(255, 255, 255, 0.03);
    --radius: 12px;
  }

  /* BASE & RESET */
*, *::before, *::after {
    box-sizing: border-box;
  }
  
  html, body, #root {
    height: 100%;
  }
  
  body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* Background Gradient */
    background: 
      radial-gradient(600px 400px at 10% 10%, rgba(123, 92, 255, 0.06), transparent),
      radial-gradient(500px 300px at 90% 90%, rgba(74, 217, 200, 0.04), transparent),
      var(--bg);
  }
  
  /* GLOBAL INPUTS & TEXTAREA */
  input[type="search"], 
  input[type="number"], 
  input, 
  textarea, 
  select {
    background: var(--glass); 
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 8px;
    color: var(--text);
    outline: none;
  }
  
  input:focus, 
  textarea:focus, 
  select:focus {
    box-shadow: 0 6px 20px rgba(123, 92, 255, 0.06);
    border-color: rgba(123, 92, 255, 0.25);
  }
  
  .muted {
    color: var(--muted);
  }

  /* LAYOUT */
.app {
    display: flex;
    gap: 24px;
    padding: 28px;
    align-items: stretch;
    
    /* Layout Sticky/Internal Scroll (Desktop) */
    height: calc(100vh - 56px);
    overflow: hidden;
  }
  
  /* SIDEBAR */
  .sidebar {
    width: 300px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 8px 30px rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.03);
    
    /* Sticky Sidebar (Desktop) */
    position: sticky;
    top: 28px;
    height: calc(100vh - 56px);
    overflow-y: auto;
  }
  
  /* BRAND */
  .brand {
    display: flex;
    gap: 12px;
    align-items: center;
  }
  
  .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(123, 92, 255, 0.12), rgba(74, 217, 200, 0.06));
    overflow: hidden;
    box-shadow: 0 0 20px rgba(123, 92, 255, 0.2);
  }
  
  .logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
  }
  
  .brand h1 {
    margin: 0;
    font-size: 18px;
  }
  
  .brand .muted {
    font-size: 13px;
    margin: 0;
  }
  
  /* FILTERS & CATEGORIES */
  .filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .label {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
  }
  
  .categories {
    list-style: none;
    padding: 0;
    margin: 6px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .categories li {
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--muted);
    font-size: 14px;
    transition: all 0.15s ease;
  }
  
  .categories li.active {
    background: linear-gradient(90deg, rgba(123, 92, 255, 0.08), rgba(74, 217, 200, 0.03));
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.03);
  }
  
  /* MAIN CONTENT */
  .content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 70vh;
  
    /* Internal Scroll (Desktop) */
    height: calc(100vh - 56px);
    overflow-y: auto;
    padding: 16px 18px; /* Added padding for internal scroll */
  }
  
  /* TOPBAR */
  .topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
  }
  
  .topbar h2 {
    margin: 0;
  }
  
  .topbar .right {
    display: flex;
    gap: 16px;
    align-items: center;
  }
  
  .sort select, .currency select {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 8px;
    border-radius: 6px;
    color: var(--text);
    outline: none;
  }

  /* BANNER SLIDER */
.banner-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 2.7 / 1;
    max-height: 360px;
    margin-bottom: 18px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.005));
    border: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Fix for sticky content layout */
    flex: 0 0 auto;
    align-self: stretch;
    min-height: 200px; 
  }
  
  .banner-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
  }
  
  .banner-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #0b0c0f;
  }
  
  .banner-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background-color: transparent;
    transition: transform 0.35s ease;
  }
  
  .banner-slide img:hover {
    transform: scale(1.02);
  }
  
  .banner-slide .banner-caption {
    position: absolute;
    left: 18px;
    bottom: 18px;
    color: var(--text);
    background: rgba(0, 0, 0, 0.35);
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
  }
  
  /* Nav Buttons */
  .banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.6);
  }
  
  .banner-nav.left { left: 12px; }
  .banner-nav.right { right: 12px; }
  
  /* Indicators */
  .banner-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 30;
  }
  
  .banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.03);
  }
  
  .banner-dot.active {
    background: var(--accent);
    box-shadow: 0 6px 18px rgba(123, 92, 255, 0.1);
  }

  /* PRODUCT GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
  }
  
  /* Grid View Toggles */
  .grid.view-compact {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
  }
  
  .grid.view-large {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
  }
  
  .grid.view-compact .thumb { height: 140px; }
  .grid.view-large .thumb { height: 220px; border-radius: 14px; }
  
  .grid.view-large .card { padding: 18px; }
  .grid.view-compact .card { padding: 12px; }
  
  /* CARD */
  .card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent);
    border-radius: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }
  
  .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.6);
  }
  
  .thumb {
    height: 140px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
  }
  
  .thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
  }
  
  .card h4 {
    margin: 0;
    font-size: 15px;
  }
  
  /* Card Excerpt */
  .card .excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    margin: 0;
    line-height: 1.45;
    color: var(--muted);
  }
  
  /* PRICE & BADGE */
  .price {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
  }
  
  .price .badge {
    margin-right: auto;
    background: rgba(255, 255, 255, 0.04);
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--muted);
  }
  
  .badge { /* Duplicate definition removed, kept inside .price block */
    background: rgba(255, 255, 255, 0.04);
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--muted);
  }
  
  .price .meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
  }
  
  .price .value {
    font-weight: 700;
    white-space: nowrap;
  }
  
  /* RATING STARS */
  .star-svg {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
  }
  
  .stars {
    display: inline-flex;
    gap: 4px;
    align-items: center;
  }
  
  .rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
  }
  
  .rate-value {
    font-size: 12px;
    color: var(--muted);
    margin-left: 4px;
  }
  
  /* ACTIONS */
  .actions {
    display: flex;
    gap: 8px;
  }
  
  .actions button,
  .actions a {
    min-width: 90px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* SPOTLIGHT CARD */
  .card.featured {
    grid-column: span 2;
  }
  
  /* EMPTY STATE */
  .empty {
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent);
    border: 1px solid rgba(255, 255, 255, 0.03);
  }
  /* BUTTONS - GENERAL */
.btn-primary {
    background: linear-gradient(90deg, var(--accent), #3467FF);
    color: white;
    padding: 12px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
  }
  
  .btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px;
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
  }
  
  /* BUTTONS - REFINED ACTIONS */
  
  /* View Button (Primary Action in Card) */
  .btn-outline,
  button.view-btn {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
  }
  .btn-outline:hover,
  button.view-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
  }
  .btn-outline:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  }
  
  /* Contact Button */
  .btn-contact {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    font-weight: 600;
    padding: 9px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  }
  .btn-contact:hover {
    background: linear-gradient(135deg, #10b981, #34d399);
    transform: translateY(-1px);
  }
  
  /* YouTube Button */
  .btn-youtube {
    background: linear-gradient(135deg, #b91c1c, #7f1d1d);
    color: #fff;
    font-weight: 600;
    padding: 9px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none; /* added for anchor tags */
    display: inline-flex; /* added for consistency */
    align-items: center; /* added for consistency */
  }
  .btn-youtube:hover {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    transform: translateY(-1px);
    filter: none; /* removed redundant filter:brightness(.95) */
  }
  
  /* Price List Button (ID Selector) */
  #priceBtn {
    display: inline-block;
    width: 100%;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    color: white;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  }
  
  #priceBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    background: linear-gradient(90deg, #4f46e5, #a855f7);
  }
  
  #priceBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  }
  /* MODAL - GENERAL */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
    backdrop-filter: blur(4px);
  }
  
  .modal[aria-hidden="true"] {
    display: none;
  }
  
  .modal-panel {
    width: min(920px, 96%); /* Widened for About/Price modals */
    max-width: 920px;
    background: linear-gradient(180deg, #0c0d10, #0f1115);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
  }
  
  .modal-close {
    position: absolute;
    right: 16px;
    top: 10px;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 22px;
    cursor: pointer;
    z-index: 5;
  }
  
  .modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
  }
  
  /* GALLERY MODAL */
  .gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 60;
    backdrop-filter: blur(6px);
  }
  
  .gallery-modal[aria-hidden="true"] {
    display: none;
  }
  
  .gallery-panel {
    width: min(1100px, 96%);
    background: linear-gradient(180deg, #0c0d10, #0f1115);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .gallery-close {
    position: absolute;
    right: 12px;
    top: 8px;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 26px;
    cursor: pointer;
  }
  
  .gallery-body {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
  }
  
  .gallery-image-wrap {
    width: 720px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
  }
  
  .gallery-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  
  .nav, .gallery-nav { /* Combined style for nav buttons */
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 8px;
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
  }
  
  .gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px;
  }
  
  .gallery-thumbs img, .product-thumbs img { /* Combined style for thumbnails */
    width: 84px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
  }
  
  .gallery-thumbs img.active, .product-thumbs img.active {
    border-color: var(--accent);
  }
  
  .gallery-caption {
    color: var(--muted);
    font-size: 13px;
    padding: 0 6px;
  }
  
  /* PRODUCT MODAL (Steam-like) */
  .product-modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(6px);
  }
  .product-modal[aria-hidden="true"] {
    display: none;
  }
  .product-panel {
    width: min(1100px, 96%);
    max-height: 92vh;
    overflow: hidden;
    background: linear-gradient(180deg, #0c0d10, #0f1115);
    border-radius: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 60px rgba(2, 6, 23, 0.7);
  }
  .product-close {
    position: absolute;
    right: 18px;
    top: 10px;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 28px;
    cursor: pointer;
  }
  .product-body {
    display: flex;
    gap: 18px;
    align-items: flex-start;
  }
  .product-left {
    flex: 1.4;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 420px;
  }
  .product-main-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
  }
  .product-main-image {
    flex: 1;
    background: var(--glass);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.03);
  }
  .product-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    opacity: 1;
  }
  .product-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-top: 8px;
  }
  .product-thumbs img.active {
    transform: translateY(-3px);
  }
  .product-caption {
    color: var(--muted);
    font-size: 13px;
    padding-top: 6px;
  }
  .product-right {
    flex: 0.8;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .product-meta h2 {
    margin: 0;
    font-size: 20px;
  }
  .product-price {
    font-weight: 800;
    font-size: 20px;
    margin-top: 6px;
    color: var(--text);
  }
  .product-desc {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    max-height: 40vh;
    overflow-y: auto;
    padding-right: 6px;
  }
  .product-tag {
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.02);
  }
  .product-right img#productRightThumb {
    object-fit: contain;
  }
  
  /* ABOUT MODAL */
  .modal-panel .about-wrap { width: 100%; }
  .about-inner {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .about-media {
    flex: 0 0 160px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .about-media img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 10px;
    border: 4px solid rgba(0, 0, 0, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  }
  .about-content {
    flex: 1 1 320px;
    min-width: 200px;
    max-height: 62vh;
    overflow: auto;
    padding-right: 6px;
  }
  .about-content h2 {
    margin: 0 0 8px 0;
  }
  .about-text {
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
  }
  .about-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  /* CONTACT CHANNELS */
.contact-channels {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
  }
  
  .contact-channels .btn-social {
    min-width: 100px;
    text-align: center;
  }
  
  .btn-social {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  
  .btn-social.whatsapp {
    background: linear-gradient(90deg, #25D366, #128C7E);
    color: white;
  }
  
  .btn-social.facebook {
    background: linear-gradient(90deg, #1877F2, #0B5DD7);
    color: white;
  }
  
  .btn-social.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
  }
  
  /* PRICE TABLE */
  .price-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
  }
  
  .price-row .label {
    font-weight: 600;
  }
  /* TOAST NOTIFICATION */
.toast {
    position: fixed;
    min-width: 160px;
    max-width: 360px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
    opacity: 0;
    transform: translate(-50%, -10px) scale(0.98);
    transition: opacity 260ms cubic-bezier(.2, .9, .2, 1), transform 260ms cubic-bezier(.2, .9, .2, 1);
    z-index: 9999;
    pointer-events: none;
    display: flex;
    gap: 10px;
    align-items: center;
  }
  
  .toast.show {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
    pointer-events: auto;
  }
  
  .toast.success { background: linear-gradient(135deg, #10b981, #059669); }
  .toast.error { background: linear-gradient(135deg, #ef4444, #dc2626); }
  .toast.info { background: linear-gradient(135deg, #2563eb, #4f46e5); }
  
  .toast .icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
  }
  
  .toast .msg {
    line-height: 1.1;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
  }
  /* HIDE MOBILE CONTROLS ON DESKTOP */
.mobile-controls-panel,
.mobile-controls-handle,
.mobile-overlay,
#mobileControlsToggle,
#productSKUWrap {
  display: none;
}

/* RESPONSIVE MEDIA QUERIES (MAX-WIDTH: 980px) */
@media (max-width: 980px) {
  /* LAYOUT ADJUSTMENTS */
  .app {
    height: auto;
    overflow: visible;
    flex-direction: column;
    padding: 16px;
  }
  
  /* HIDE DESKTOP SIDEBAR */
  .sidebar {
    display: none !important;
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
    width: 100%;
    padding: 0;
  }
  
  /* MAIN CONTENT ADJUSTMENTS */
  .content {
    height: auto;
    overflow: visible;
    width: 100%;
    padding: 8px 0; /* Adjust spacing */
  }
  
  /* BANNER ADJUSTMENTS */
  .banner-slider {
    aspect-ratio: 2.2 / 1;
    height: auto;
    max-height: 240px;
    min-height: 160px;
  }
  .banner-slide img:hover {
    transform: none; /* Disable hover zoom */
  }
  .banner-nav {
    width: 36px;
    height: 36px;
  }
  
  /* GRID ADJUSTMENTS */
  .grid.view-large {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  .grid.view-compact {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  .grid.view-large .thumb {
    height: 180px;
  }
  /* DI 2ndstore.css - tambahkan di akhir file modal rules */
  body > .modal {
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important; /* sementara untuk debugging/lebih aman */
  }
  body > .modal .modal-panel {
    margin: 0 auto !important;
  }
  
  /* TOPBAR TWEAKS */
  .topbar {
    gap: 8px;
    padding: 10px 12px;
    align-items: flex-start;
  }
  .topbar .left h2 {
    font-size: 18px;
    margin: 0 0 6px 0;
    line-height: 1.05;
  }
  .topbar .left p.muted {
    display: none;
  }
  .topbar .right {
    display: none; /* Hidden on mobile; controls via slide panel */
  }
  
  /* MOBILE CONTROLS TOGGLE BUTTON */
  .mobile-controls-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, rgba(123, 92, 255, 0.12), rgba(74, 217, 200, 0.06));
    color: var(--text);
    font-weight: 700;
    margin-right: 10px;
    cursor: pointer;
  }

  /* MOBILE CONTROLS PANEL (Slide-in) */
  .mobile-controls-panel {
    display: block; /* Override default 'display: none' */
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, #0c0d10, #0f1115);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 8px 0 30px rgba(2, 6, 23, 0.6);
    z-index: 9998;
    padding: 18px;
    transition: left 240ms cubic-bezier(.2, .9, .2, 1);
    overflow-y: auto;
  }
  .mobile-controls-panel.open {
    left: 0;
  }
  
  /* Panel Styling */
  .mobile-controls-panel .section {
    margin-bottom: 18px;
    padding-bottom: 6px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.02);
  }
  .mobile-controls-panel .section:last-child {
    border-bottom: none;
    margin-bottom: 6px;
  }
  .mobile-controls-panel label.muted,
  .mobile-controls-panel .section > label {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
    display: block;
  }
  
  /* Search Input Mobile */
  #searchMobile {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.035);
    color: var(--text);
    box-shadow: 0 6px 18px rgba(123, 92, 255, 0.03);
    outline: none;
  }
  #searchMobile::placeholder {
    color: rgba(255, 255, 255, 0.25);
  }

  /* Mobile Categories */
  #categoryListMobile {
    list-style: none;
    padding: 6px 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  #categoryListMobile li {
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--muted);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: all 180ms ease;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  #categoryListMobile li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.45);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.04);
  }
  #categoryListMobile li.active {
    background: linear-gradient(90deg, rgba(123, 92, 255, 0.10), rgba(74, 217, 200, 0.04));
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.04);
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(123, 92, 255, 0.06);
  }
  
  /* Mobile Selects */
  #sortSelectMobile, #gridViewSelectMobile, #currencySelectMobile {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.035);
    color: var(--text);
    outline: none;
  }

  /* Mobile Buttons (Full Width) */
  #priceBtnMobile, #contactBtnMobile {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 8px 28px rgba(2, 6, 23, 0.4);
    border: none;
    cursor: pointer;
  }
  #priceBtnMobile {
    background: linear-gradient(90deg, #6d5cff, #7b7dff);
    color: #fff;
  }
  #contactBtnMobile {
    background: linear-gradient(90deg, #20b58d, #10b981);
    color: #fff;
  }

  /* MOBILE CONTROLS HANDLE */
  .mobile-controls-handle {
    display: block; /* Override default 'display: none' */
    position: fixed;
    left: 6px;
    top: 60px;
    z-index: 9999;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.5);
    cursor: pointer;
  }
  
  /* MOBILE OVERLAY */
  .mobile-overlay {
    display: block; /* Override default 'display: none' */
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9997;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }
  .mobile-overlay.show {
    opacity: 1;
    pointer-events: auto;
  }

  /* PRODUCT MODAL RESPONSIVE */
  .product-body {
    flex-direction: column;
  }
  .product-left {
    min-width: auto;
  }
  .product-main-image {
    height: 300px;
  }
  .product-right {
    width: 100%;
  }
  .product-thumbs img {
    width: 72px;
    height: 48px;
  }

  /* ABOUT MODAL RESPONSIVE */
  .modal-panel {
    width: calc(100% - 24px);
    margin: 0 12px;
  }
  .about-media {
    flex: 0 0 120px;
  }
  .about-media img {
    width: 110px;
    height: 110px;
  }
}

/* Layout for tutorials + quick specs */
.tutorials-section {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 26px;
  align-items: start;
  margin-top: 18px;
}

/* Make tutorials panel occupy visible height so the cards fill the page */
.tutorials-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent);
  border: 1px solid rgba(255,255,255,0.03);
  padding: 18px;
  border-radius: 12px;
}

/* The scrollable wrapper that visually fills the area */
.tutorials-wrapper {
  min-height: calc(100vh - 420px); /* adjust offset if header or hero taller */
  max-height: calc(100vh - 240px);
  overflow: auto;
  padding-top: 8px;
}

/* Grid for tutorial items: 2 columns on wide screens, 1 column on small */
.links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.links-list li {
  height: 72px; /* fixed card height for uniformity */
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent);
  border: 1px solid rgba(255,255,255,0.03);
  transition: transform .16s ease, box-shadow .16s ease;
  display: flex;
  align-items: center;
  padding: 8px 12px;
}

.links-list li:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(2,6,23,0.6);
}

.links-list a {
  display:flex;
  gap:14px;
  align-items:center;
  width:100%;
  text-decoration:none;
  color:var(--text);
}

/* YouTube-like icon */
.yt-icon {
  width:48px;
  height:48px;
  flex:0 0 48px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(135deg,#ff4b2b,#ff7a59);
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}
.yt-icon path { fill: #fff; }

/* Title text */
.links-list .txt { font-weight:700; font-size:14px; line-height:1.15; }

/* Quick specs sticky column */
.quick-specs {
  position: relative;
}
.quick-specs .spec-card {
  position: sticky;
  top: 28px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent);
  border: 1px solid rgba(255,255,255,0.03);
}

/* Responsive adjustments */
@media (max-width: 980px) {
  .tutorials-section { grid-template-columns: 1fr; }
  .links-list { grid-template-columns: 1fr; }
  .tutorials-wrapper { min-height: auto; max-height: none; }
  .quick-specs .spec-card { position: relative; top: auto; }
}
/* ======================
   MOBILE-ONLY OVERRIDES
   Tempelkan di akhir software.css
   (GUNAKAN untuk layar kecil: <= 680px)
   ====================== */
   @media (max-width: 680px) {
    /* Root tweak: sedikit lebih kontras untuk layar kecil */
    :root {
      --radius: 10px;
    }
  
    /* Layout: single-column, scroll natural */
    .app { flex-direction: column; padding: 12px !important; height: auto !important; overflow: visible !important; }
    .sidebar { display: none !important; } /* tetap sembunyikan sidebar */
    .content { padding: 8px 6px !important; height: auto !important; overflow: visible !important; }
  
    /* Tipografi: perbesar agar nyaman dibaca di ponsel */
    html, body { font-size: 15px; line-height: 1.45; }
    h1, h2, h3 { line-height: 1.08; }
    .hero h1 { font-size: 20px !important; }
    .hero p.lead { font-size: 14px !important; }
  
    /* Hero: bentuk vertikal, gambar disamakan ukuran, prioritaskan teks */
    .hero { padding: 18px !important; gap: 12px !important; align-items: flex-start !important; }
    .hero-left { width: 100% !important; }
    .hero > div[style*="width:360px"] { width: 100% !important; max-width: 420px; margin: 0 auto; }
  
    /* Screenshot slides: batasi tinggi, gunakan object-fit contain, disable pointer-heavy effects */
    .screenshot-slides { max-height: 260px; min-height: 160px; }
    .slides .slide img { max-height: 240px; width: auto; height: auto; object-fit: contain; display:block; margin:0 auto; }
    .slides-nav { display:flex; gap:8px; justify-content:center; margin-top:8px; }
    .slides-nav button { padding:10px 12px; border-radius:8px; }
  
    /* Buttons: buat touch targets besar & full width pada CTA area */
    .cta-group { width:100%; gap:8px; display:flex; flex-direction:row; }
    .cta-group a, .cta-group .btn-download, .cta-group .btn-register {
      flex: 1 1 auto; padding:12px; font-size:15px; border-radius:12px; text-align:center;
    }
  
    /* Features grid: 1 kolom agar tidak padat */
    .features { grid-template-columns: 1fr !important; gap:10px !important; }
    .feature { padding:12px !important; font-size:14px; }
  
    /* Produk / Grid: satu kolom, card jadi lebih tinggi, klik mudah */
    .grid { grid-template-columns: 1fr !important; gap:12px !important; }
    .card { padding:12px !important; border-radius:10px !important; }
    .thumb { height: 180px !important; border-radius:10px; }
  
    /* Banner slider / hero slider: kurangi visual berat */
    .banner-slider, .banner-slide { min-height: 140px !important; max-height: 260px !important; }
    .banner-nav { width:36px; height:36px; }
  
    /* Tutorials section: list full-width, touch-friendly list items */
    .links-list { grid-template-columns: 1fr !important; gap:10px !important; }
    .links-list li { height: auto !important; padding:12px !important; align-items:flex-start; }
    .links-list .txt { font-size:15px; }
  
    /* Quick-specs:, letakkan di bawah tutorials agar satu kolom */
    .tutorials-section { display:block !important; }
    .quick-specs { margin-top:14px !important; }
    .quick-specs .spec-card { position: relative !important; top: auto !important; padding:12px !important; }
  
    /* Modals: full-screen card with safe padding, vertical scroll if perlu */
    .modal, .gallery-modal, .product-modal {
      align-items: flex-end !important; /* pop up dari bawah (native mobile feel) */
    }
    .modal-panel, .gallery-panel, .product-panel {
      width: 100% !important;
      max-width: 100% !important;
      border-radius: 14px 14px 0 0 !important;
      margin: 0 !important;
      padding: 14px !important;
      box-shadow: 0 -8px 30px rgba(2,6,23,0.6) !important;
      max-height: 88vh !important;
      overflow: auto !important;
    }
    .modal-close, .product-close, .gallery-close { top: 8px !important; right: 12px !important; font-size:22px !important; }
  
    /* Product modal body: kolom -> baris, gambar di atas, teks di bawah */
    .product-body { flex-direction: column !important; gap:10px !important; }
    .product-main-image { height: 240px !important; }
    .product-right { width: 100% !important; min-width: auto !important; }
  
    /* Thumbnails: horizontal scroll lebih lebar */
    .gallery-thumbs img, .product-thumbs img { width: 84px !important; height: 56px !important; }
  
    /* Mobile controls: pastikan toggle mudah dijangkau */
    .mobile-controls-handle { left: 10px; top: 80px; padding:10px 12px; border-radius:12px; }
  
    /* Toast: pindah ke atas bawah agar tidak tertutup oleh keyboard */
    .toast { left: 50% !important; bottom: 20px !important; top: auto !important; transform: translateX(-50%) !important; }
  
    /* Remove heavy hover/transform for perf on mobile */
    .card:hover, .btn-outline:hover, .btn-youtube:hover, .btn-contact:hover { transform: none !important; box-shadow: none !important; }
  
    /* Accessibility: lebih besar spasi klik untuk tombol di card */
    .actions button, .actions a { min-width: 120px !important; height:44px !important; padding:0 14px !important; font-size:15px !important; }
  
    /* Prevent unexpected large min-heights from desktop rules */
    .tutorials-wrapper, .content, .tutorials-panel { min-height: auto !important; max-height: none !important; overflow: visible !important; }
  
    /* Disable pointer heavy transitions to save CPU on low-end devices */
    * { transition-duration: 140ms !important; transition-timing-function: cubic-bezier(.2,.9,.2,1) !important; }
  
    /* Small spacing tweak to footer */
    footer.landing-foot { padding-bottom: 20px; font-size:13px; text-align:center; }
  
    /* Fix for inconsistent viewport on some Android webviews */
    html, body { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
  }
  