/* =========================================================
   1. BIẾN MÀU & THIẾT LẬP CƠ BẢN
========================================================= */
:root {
  --bg-body: #0a101f; /* Nền trang cực tối */
  --bg-card: #152033; /* Nền thẻ */
  --bg-hex: #1c2a43; /* Nền lục giác mặc định */
  --color-primary: #38bdf8; /* Cyan nổi bật */
  --color-secondary: #3b82f6; /* Xanh dương đậm */
  --color-text: #f8fafc; /* Chữ trắng ngà */
  --color-text-muted: #94a3b8; /* Chữ xám */
  --color-warn: #ef4444; /* Đỏ cảnh báo */
  --color-badge: #facc15; /* Vàng Bestseller */
  --transition-speed: 0.3s;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

body {
  background-color: var(--bg-body);
  color: var(--color-text);
  min-height: 100vh;
  line-height: 1.5;
}

button,
select {
  font: inherit;
}

a,
button,
select {
  outline: none;
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.dashboard-wrapper {
  display: flex;
  width: 100%;
}

/* Mobile: Stack sidebar and content vertically */
@media screen and (max-width: 991px) {
  .dashboard-wrapper {
    flex-direction: column;
  }
}

/* =========================================================
   2. CỘT TRÁI (SIDEBAR CỐ ĐỊNH)
========================================================= */
.sidebar {
  width: 260px;
  background-color: #080d1a;
  padding: 30px 20px;
  border-right: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 100;
  overflow-y: auto;
}

/* Mobile-first: Reset sidebar to static */
@media screen and (max-width: 991px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    z-index: 50;
  }

  /* Profile section on first line */
  .profile-section {
    width: 100%;
    text-align: left;
    margin-bottom: 0;
  }

  /* Contact section: display inline horizontally with flexible wrapping */
  .sidebar-section {
    width: 100%;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .sidebar-section h3 {
    display: none;
  }

  .sidebar-section .sidebar-link {
    display: inline-flex;
    margin-right: 0;
    margin-bottom: 0;
    font-size: 0.75rem;
    padding: 5px 8px;
    flex: 0 0 calc(50% - 4px);
    justify-content: center;
  }
}

/* Mobile only: 1 item per line for phone screens */
@media screen and (max-width: 575px) {
  .sidebar-section .sidebar-link {
    flex: 0 0 100%;
  }
}

.profile-section {
  text-align: center;
}

/* Mobile: Display profile section centered */
@media screen and (max-width: 991px) {
  .profile-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
  }
}
.avatar-circle {
  width: 65px;
  height: 65px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.avatar-upload {
  display: flex;
  justify-content: center;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.avatar-image.active {
  display: block;
}

.avatar-initials {
  line-height: 1;
}

/* Mobile: Adjust avatar sizing */
@media screen and (max-width: 991px) {
  .avatar-circle {
    width: 50px;
    height: 50px;
    margin: 0;
    flex-shrink: 0;
    font-size: 1.1rem;
  }

  .avatar-upload {
    justify-content: flex-start;
  }
}
.profile-section h2 {
  font-size: 1.15rem;
  margin-bottom: 5px;
  font-weight: 700;
  color: #fff;
}

/* Mobile: Adjust h2 for horizontal layout */
@media screen and (max-width: 991px) {
  .profile-section h2 {
    font-size: 0.95rem;
    margin-bottom: 0;
    white-space: nowrap;
  }
}

.profile-section p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Hide description on mobile */
@media screen and (max-width: 991px) {
  .profile-section p {
    display: none;
  }
}

.sidebar-section h3 {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 8px;
}

.sidebar-link {
  color: var(--color-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  font-size: 0.9rem;
  transition: var(--transition-speed);
  border-radius: 6px;
}
.sidebar-link i {
  width: 18px;
  text-align: center;
  color: var(--color-primary);
}
.sidebar-link:hover {
  background-color: rgba(56, 189, 248, 0.1);
  color: var(--color-primary);
  transform: translateX(5px);
}

/* =========================================================
   3. KHU VỰC NỘI DUNG CHÍNH (MAIN CONTENT)
========================================================= */
.main-content {
  margin-left: 260px; /* Desktop: Cách một khoảng bằng sidebar */
  padding: 40px;
  width: calc(100% - 260px);
  max-width: 1400px; /* Chống vỡ trên màn to */
  margin-right: auto;
}

/* Mobile-first: Remove left margin khi sidebar thành navbar */
@media screen and (max-width: 991px) {
  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 25px 20px;
  }
}

@media screen and (max-width: 575px) {
  .main-content {
    padding: 15px 12px;
  }
}

.main-header {
  text-align: center;
  margin-bottom: 40px;
}
.main-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.header-accent {
  color: var(--color-primary);
}

.main-header p {
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* =========================================================
   4. MENU LỤC GIÁC & DROPDOWN MOBILE
========================================================= */
.tool-selector-hex {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Tool Selector Dropdown */
.tool-selector-mobile {
  display: none;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tool-selector-mobile label {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.tool-selector-mobile select {
  width: 100%;
  padding: 12px 15px;
  background-color: #0f1b30;
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #f8fafc;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.tool-selector-mobile select:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.tool-selector-mobile select:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.tool-selector-mobile option {
  background-color: #13233b;
  color: #f8fafc;
  padding: 10px;
}

.hex-wrapper {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
  transition: all var(--transition-speed) ease;
  cursor: pointer;
}

.tool-hex {
  width: 120px;
  height: 135px;
  background-color: var(--bg-hex);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed) ease;
}

.hex-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  transition: var(--transition-speed);
}
.hex-content i {
  font-size: 1.8rem;
}
.hex-content span {
  font-weight: 600;
  font-size: 0.9rem;
}

.hex-wrapper:hover {
  filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.5));
  transform: translateY(-5px);
}
.hex-wrapper:hover .tool-hex {
  background-color: #1e2f4a;
}
.hex-wrapper:hover .hex-content {
  color: #fff;
}

.hex-wrapper.active {
  filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.7));
  transform: translateY(-3px);
}
.hex-wrapper.active .tool-hex {
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.2),
    rgba(59, 130, 246, 0.2)
  );
}
.hex-wrapper.active .hex-content {
  color: var(--color-primary);
}

/* =========================================================
   5. BỐ CỤC CSS GRID: THẺ TRÁI - GHI CHÚ PHẢI (Sửa lỗi dứt điểm)
========================================================= */
.panels-container {
  width: 100%;
}
.tool-panel {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}
.tool-panel.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* KHUNG CHIA CỘT CSS GRID - MOBILE FIRST */
.panel-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  width: 100%;
}

/* Lưới Thẻ Sản Phẩm */
.panel-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  justify-content: center;
}

/* Cột Ghi Chú - MOBILE: HIỂN THỊ DƯỚI */
.panel-notes {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  max-width: 100%;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  margin-top: 15px;
  transition:
    opacity var(--transition-speed),
    transform var(--transition-speed),
    visibility var(--transition-speed);
}

.panel-layout:has(.premium-card:hover) .panel-notes {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hộp Ghi chú */
.note-box {
  background-color: #111a2e;
  border: 1px solid #1e293b;
  border-top: 4px solid var(--color-primary);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.note-box.warn-note {
  border-top-color: var(--color-warn);
}
.note-box h4 {
  font-size: 1.05rem;
  color: var(--color-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.note-box.warn-note h4 {
  color: #fca5a5;
}

.note-content p {
  font-size: 0.85rem;
  margin-bottom: 10px;
  line-height: 1.6;
  color: #cbd5e1;
}

.text-warn {
  color: #fca5a5 !important;
}

.premium-tip {
  font-weight: 600;
  color: #fca5a5 !important;
}

.highlight {
  font-size: 0.8rem;
  background-color: rgba(56, 189, 248, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 5px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--color-primary);
  font-weight: 600;
}

/* =========================================================
   6. THẺ SẢN PHẨM CHUẨN UI (SỬA LỖI ICON CÙNG DÒNG)
========================================================= */
.premium-card {
  background: linear-gradient(160deg, #1a2942 0%, #13233b 55%, #101d33 100%);
  border: 1px solid rgba(90, 169, 255, 0.35);
  padding: 24px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  box-shadow:
    inset 0 1px 0 rgba(203, 232, 255, 0.12),
    0 14px 26px rgba(0, 0, 0, 0.35);
}

.premium-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.35),
    0 16px 30px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(56, 189, 248, 0.2);
}

/* Badges */
.bestseller-badge,
.new-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  padding: 5px 10px;
  border-radius: 4px;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.bestseller-badge {
  background-color: var(--color-badge);
  color: #000;
}
.new-badge {
  background-color: var(--color-primary);
  color: #000;
}

.premium-card:has(.bestseller-badge),
.premium-card:has(.new-badge) {
  padding-top: 52px;
}

/* Hàng chứa Icon và Tiêu đề CÙNG 1 DÒNG */
.title-row {
  display: flex;
  align-items: center;
  gap: 12px; /* Khoảng cách giữa icon và chữ */
  margin-bottom: 8px;
  min-width: 0;
}

/* Ô vuông nhỏ chứa icon */
.icon-box {
  width: 36px;
  height: 36px;
  background: linear-gradient(
    145deg,
    rgba(56, 189, 248, 0.18),
    rgba(37, 99, 235, 0.2)
  );
  color: var(--color-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.card-title {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: 20px;
}

/* Khu vực Mua */
.card-action {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  /* padding-top: 20px; */
}

/* Dropdown */
.product-dropdown {
  width: 100%;
  padding: 10px 34px 10px 12px;
  background: linear-gradient(180deg, #0f1b30, #0b1627);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #e2e8f0;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2338bdf8%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 12px top 50%;
  background-size: 10px auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition:
    border-color var(--transition-speed),
    box-shadow var(--transition-speed),
    color var(--transition-speed);
}

.product-dropdown:hover {
  border-color: var(--color-primary);
  color: #f8fafc;
}

.product-dropdown:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.product-dropdown option {
  background-color: #13233b;
  color: #e2e8f0;
}

/* GIÁ TIỀN (SỬA LỖI ICON) */
.card-price {
  display: flex;
  align-items: center; /* Nằm ngang bằng nhau */
  justify-content: flex-end;
  gap: 6px;
  color: var(--color-primary);
  text-align: right;
}

.price-icon {
  font-size: 1.3rem;
} /* Chỉnh riêng size icon tia sét ở giá */
.price-number {
  font-size: 2.05rem;
  font-weight: 800;
  letter-spacing: -1px;
  text-shadow: 0 1px 8px rgba(56, 189, 248, 0.25);
}
.price-currency {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-top: 6px;
}

/* Nút bấm */
.premium-btn {
  background: linear-gradient(90deg, #44b9f2 0%, #2d79f1 55%, #2a65e8 100%);
  color: #fff;
  border: 1px solid rgba(122, 219, 255, 0.32);
  padding: 12px;
  width: 100%;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-speed);
  box-shadow:
    inset 0 1px 0 rgba(225, 245, 255, 0.25),
    0 10px 22px rgba(37, 99, 235, 0.26);
}
.premium-btn:hover {
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.3),
    0 8px 20px rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
}

.warn-box {
  background-color: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  font-size: 0.85rem;
  padding: 10px;
  border-radius: 6px;
  border-left: 3px solid var(--color-warn);
}

.warn-box.warn-box-info {
  border-color: #38bdf8;
  color: #e2e8f0;
  background: rgba(56, 189, 248, 0.1);
}

/* =========================================================
   7. RESPONSIVE  DESIGN (MOBILE-FIRST)
========================================================= */

/* BASE: MOBILE (< 576px) */
@media screen and (max-width: 575px) {
  /* HIDE HEADER ON MOBILE */
  .main-header {
    display: none;
  }

  /* HIDE LABEL, KEEP DROPDOWN ONLY */
  .tool-selector-mobile label {
    display: none;
  }

  /* SHOW MOBILE DROPDOWN, HIDE DESKTOP HEX MENU */
  .tool-selector-mobile {
    display: block;
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .tool-selector-hex {
    display: none;
  }

  .premium-card {
    padding: 14px;
  }

  .card-title {
    font-size: 0.9rem;
  }

  .card-desc {
    font-size: 0.75rem;
  }

  .price-number {
    font-size: 1.5rem;
  }

  .premium-btn {
    padding: 10px;
    font-size: 0.8rem;
  }

  .product-dropdown {
    font-size: 0.75rem;
    padding: 8px 28px 8px 10px;
  }

  .note-box {
    padding: 12px;
  }

  .note-box h4 {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }

  .note-content p {
    font-size: 0.75rem;
    margin-bottom: 6px;
  }

  .main-header h1 {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  .main-header p {
    font-size: 0.8rem;
  }

  .tool-hex {
    width: 70px;
    height: 80px;
  }

  .hex-content i {
    font-size: 1.1rem;
  }

  .hex-content span {
    font-size: 0.6rem;
  }

  .tool-selector-hex {
    gap: 8px;
    padding-bottom: 15px;
    margin-bottom: 25px;
  }

  .sidebar {
    padding: 15px 12px;
  }

  .avatar-circle {
    width: 45px;
    height: 45px;
  }

  .profile-section h2 {
    font-size: 0.95rem;
  }

  .profile-section p {
    display: none;
  }

  .sidebar-link {
    font-size: 0.8rem;
    padding: 8px 10px;
  }

  .sidebar-link i {
    width: 14px;
  }
}

/* TABLET NHỎ (576px - 767px) */
@media screen and (min-width: 576px) and (max-width: 767px) {
  /* HIDE HEADER ON TABLET SMALL */
  .main-header {
    display: none;
  }

  /* HIDE LABEL, KEEP DROPDOWN ONLY */
  .tool-selector-mobile label {
    display: none;
  }

  /* SHOW MOBILE DROPDOWN, HIDE HEX MENU */
  .tool-selector-mobile {
    display: block;
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .tool-selector-hex {
    display: none;
  }

  .panel-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .premium-card {
    padding: 16px;
  }

  .card-title {
    font-size: 0.95rem;
  }

  .card-desc {
    font-size: 0.8rem;
    margin-bottom: 15px;
  }

  .price-number {
    font-size: 1.6rem;
  }

  .premium-btn {
    padding: 10px;
    font-size: 0.85rem;
  }

  .product-dropdown {
    font-size: 0.8rem;
    padding: 8px 30px 8px 10px;
  }

  .main-header h1 {
    font-size: 1.6rem;
  }

  .main-header p {
    font-size: 0.85rem;
  }

  .note-box {
    padding: 15px;
  }

  .note-box h4 {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  .note-content p {
    font-size: 0.8rem;
  }
}

/* TABLET / ĐIỆN THOẠI LỚN (768px - 991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .tool-selector-mobile {
    display: none;
  }

  .panel-cards {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
  }

  .premium-card {
    padding: 20px;
  }

  .tool-hex {
    width: 95px;
    height: 110px;
  }

  .hex-content i {
    font-size: 1.4rem;
  }

  .hex-content span {
    font-size: 0.75rem;
  }

  .tool-selector-hex {
    gap: 10px;
  }

  .main-header h1 {
    font-size: 1.9rem;
  }

  .main-header p {
    font-size: 0.9rem;
  }

  .price-number {
    font-size: 1.8rem;
  }

  .panel-notes {
    max-width: 600px;
    margin-top: 20px;
  }
}

/* LAPTOP NHỎ (992px - 1199px) */
@media screen and (min-width: 992px) and (max-width: 1199px) {
  .tool-selector-mobile {
    display: none;
  }

  .dashboard-wrapper {
    flex-direction: row;
  }

  .sidebar {
    width: 220px;
    position: fixed;
    height: 100vh;
  }

  .main-content {
    margin-left: 220px;
    width: calc(100% - 220px);
    padding: 35px;
  }

  .panel-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

  .tool-hex {
    width: 110px;
    height: 125px;
  }

  .hex-content i {
    font-size: 1.5rem;
  }

  .main-header h1 {
    font-size: 2.2rem;
  }

  .panel-notes {
    max-width: 700px;
    margin-top: 20px;
  }
}

/* DESKTOP (1200px - 1399px) */
@media screen and (min-width: 1200px) and (max-width: 1399px) {
  .tool-selector-mobile {
    display: none;
  }

  .panel-layout {
    --cards-width: 890px;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
  }

  .panel-layout:has(.panel-cards > .premium-card:only-child) {
    --cards-width: 280px;
  }

  .panel-layout:has(.panel-cards > .premium-card:nth-child(2):last-child) {
    --cards-width: 585px;
  }

  .panel-cards {
    width: var(--cards-width);
    grid-template-columns: repeat(auto-fit, 280px);
    gap: 25px;
  }

  .panel-notes {
    position: absolute;
    left: var(--note-left, 50%);
    top: var(--note-top, 0px);
    width: 320px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    margin-top: 0;
    z-index: 5;
  }

  .panel-layout.note-hover-active .panel-notes {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* ULTRA WIDE DESKTOP (1400px+) */
@media screen and (min-width: 1400px) {
  .tool-selector-mobile {
    display: none;
  }

  .main-content {
    padding: 50px 60px;
  }

  .main-header h1 {
    font-size: 2.8rem;
  }

  .tool-hex {
    width: 140px;
    height: 160px;
  }

  .hex-content i {
    font-size: 2rem;
  }

  .panel-layout {
    --cards-width: 890px;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
  }

  .panel-layout:has(.panel-cards > .premium-card:only-child) {
    --cards-width: 280px;
  }

  .panel-layout:has(.panel-cards > .premium-card:nth-child(2):last-child) {
    --cards-width: 585px;
  }

  .panel-cards {
    width: var(--cards-width);
    grid-template-columns: repeat(auto-fit, 280px);
    gap: 25px;
  }

  .panel-notes {
    position: absolute;
    left: var(--note-left, 50%);
    top: var(--note-top, 0px);
    width: 320px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    z-index: 5;
  }

  .panel-layout.note-hover-active .panel-notes {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}
