:root {
  --bg-main: #04101d;
  --bg-accent: #0b2948;
  --card-bg: rgba(11, 31, 55, 0.84);
  --card-soft: rgba(13, 39, 68, 0.7);
  --text-main: #ebf6ff;
  --text-muted: #9bb8d8;
  --brand: #2ddcff;
  --brand-dark: #1086d1;
  --success: #2ec98f;
  --warning: #f8b84f;
  --danger: #f36c6c;
  --border: rgba(54, 171, 255, 0.34);
  --shadow: 0 18px 55px rgba(2, 12, 28, 0.48);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 11px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Cairo", "Tajawal", "Segoe UI", sans-serif;
  color: var(--text-main);
  direction: rtl;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 16%, rgba(42, 209, 255, 0.14), transparent 38%),
    radial-gradient(circle at 83% 11%, rgba(41, 133, 255, 0.2), transparent 36%),
    linear-gradient(rgba(26, 87, 137, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 87, 137, 0.07) 1px, transparent 1px),
    linear-gradient(160deg, #040c18 0%, #08192f 44%, #0d2e4e 100%);
  background-size: auto, auto, 36px 36px, 36px 36px, auto;
  background-attachment: fixed;
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1280px, 94%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(3, 12, 26, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(60, 169, 255, 0.32);
  box-shadow: 0 8px 30px rgba(2, 11, 26, 0.35);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.16rem;
  color: #dff8ff;
  white-space: nowrap;
}

.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(135deg, #29ddff, #239fff);
  color: #041730;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(34, 190, 255, 0.4);
}

.brand-badge.brand-badge-image {
  padding: 0;
  overflow: hidden;
  background: rgba(6, 20, 38, 0.9);
  color: transparent;
}

.brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.main-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 3px;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(52, 143, 219, 0.2);
  background: rgba(11, 30, 56, 0.28);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: #f0fbff;
  border-color: rgba(93, 203, 255, 0.5);
  background: rgba(29, 86, 139, 0.52);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  color: #04162b;
  background: linear-gradient(135deg, #34ddff, #1ca4ff);
  box-shadow: 0 10px 24px rgba(27, 169, 255, 0.33);
}

.btn-secondary {
  color: #e6f7ff;
  border: 1px solid var(--border);
  background: rgba(19, 46, 86, 0.65);
}

.btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #f56f71, #ec474b);
}

.btn-success {
  color: #03251a;
  background: linear-gradient(135deg, #45e2a7, #2ec98f);
}

.btn-ghost {
  color: var(--text-main);
  border: 1px dashed var(--border);
  background: transparent;
}

.hero {
  padding: 62px 0 34px;
}

.praise-line {
  border-bottom: 1px solid rgba(64, 166, 255, 0.28);
  background: linear-gradient(90deg, rgba(6, 23, 43, 0.82), rgba(10, 38, 66, 0.7));
}

.praise-line .container {
  padding: 11px 0;
  text-align: center;
  color: #d2f4ff;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.2px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
  align-items: center;
}

.hero-card {
  background: linear-gradient(150deg, rgba(24, 57, 102, 0.78), rgba(9, 21, 42, 0.83));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 212, 255, 0.3), transparent 70%);
  left: -50px;
  top: -70px;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(62, 180, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 180, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3.1vw, 2.8rem);
  line-height: 1.35;
}

.hero p {
  margin: 0;
  color: #bdd8f8;
  line-height: 1.85;
  font-size: 0.98rem;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

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

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.stat-value {
  margin: 0;
  font-weight: 800;
  font-size: 1.62rem;
  color: #dff9ff;
}

.stat-label {
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.section {
  padding: 28px 0;
}

.section-title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  position: relative;
  padding-right: 14px;
}

.section-title::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 4px;
  height: 70%;
  transform: translateY(-50%);
  border-radius: 6px;
  background: linear-gradient(180deg, #4ae5ff, #1fa7ff);
}

.section-subtitle {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(54, 201, 255, 0.7);
  box-shadow: 0 20px 38px rgba(2, 12, 30, 0.44);
}

.product-image {
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, rgba(18, 58, 102, 0.75), rgba(9, 25, 49, 0.95));
  display: grid;
  place-items: center;
  padding: 12px;
}

.product-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.image-fallback {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #cfe5ff;
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(44, 91, 144, 0.5), rgba(13, 33, 59, 0.95));
}

.product-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-category {
  display: inline-flex;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #bcecff;
  border: 1px solid rgba(40, 175, 235, 0.5);
  background: rgba(24, 70, 112, 0.44);
}

.product-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.product-desc {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.86rem;
}

.product-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.price {
  font-weight: 800;
  color: #f1fdff;
}

.stock {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.card-actions {
  display: flex;
  gap: 8px;
}

.card-actions .btn {
  flex: 1;
  padding: 9px 14px;
  font-size: 0.86rem;
}

.filters-card {
  background: var(--card-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(57, 140, 220, 0.45);
  background: rgba(9, 25, 52, 0.85);
  color: var(--text-main);
  padding: 10px 11px;
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 92px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #30d7ff;
  box-shadow: 0 0 0 2px rgba(48, 215, 255, 0.2);
}

.empty-state {
  background: var(--card-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  color: var(--text-muted);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 14px;
}

.summary-card,
.form-card,
.panel-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow);
}

.summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #d8ebff;
}

.summary-list .final {
  border-top: 1px solid rgba(57, 140, 220, 0.4);
  padding-top: 10px;
  font-weight: 800;
}

.cart-item {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(51, 135, 215, 0.35);
  border-radius: 12px;
  background: rgba(10, 25, 48, 0.62);
}

.cart-thumb {
  width: 82px;
  height: 82px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(20, 53, 96, 0.9);
}

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

.qty-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty-wrap button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(64, 156, 242, 0.58);
  background: rgba(16, 44, 82, 0.8);
  color: #d7efff;
  cursor: pointer;
}

.qty-wrap input {
  width: 52px;
  text-align: center;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-new {
  color: #eaf8ff;
  background: rgba(23, 165, 255, 0.28);
}

.badge-processing {
  color: #fff4d4;
  background: rgba(248, 184, 79, 0.28);
}

.badge-shipped {
  color: #d8fcff;
  background: rgba(30, 201, 230, 0.28);
}

.badge-completed {
  color: #d7ffe8;
  background: rgba(46, 201, 143, 0.28);
}

.badge-cancelled {
  color: #ffe0e0;
  background: rgba(243, 108, 108, 0.28);
}

.badge-ticket-new {
  color: #eaf8ff;
  background: rgba(23, 165, 255, 0.28);
}

.badge-ticket-open {
  color: #d8fcff;
  background: rgba(30, 201, 230, 0.28);
}

.badge-ticket-pending {
  color: #fff4d4;
  background: rgba(248, 184, 79, 0.28);
}

.badge-ticket-completed {
  color: #d7ffe8;
  background: rgba(46, 201, 143, 0.28);
}

.badge-ticket-closed {
  color: #ffe0e0;
  background: rgba(243, 108, 108, 0.28);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid rgba(58, 144, 227, 0.28);
  padding: 10px 8px;
  text-align: right;
  vertical-align: top;
}

.data-table th {
  color: #a9c6e9;
  font-weight: 700;
  font-size: 0.82rem;
}

.data-table td {
  color: #e3f1ff;
}

.data-table tr:hover td {
  background: rgba(20, 51, 91, 0.45);
}

.tabs {
  display: inline-flex;
  gap: 7px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tab-btn {
  border: 1px solid rgba(56, 138, 216, 0.45);
  background: rgba(12, 35, 67, 0.85);
  color: #cee7ff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 700;
}

.tab-btn.active {
  background: linear-gradient(135deg, #2ad9ff, #1ea0ff);
  color: #031428;
  border-color: transparent;
}

.tab-panel {
  display: none;
}

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

.admin-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.admin-stat {
  background: rgba(12, 34, 66, 0.86);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.admin-stat h4 {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.admin-stat p {
  margin: 8px 0 0;
  font-size: 1.45rem;
  font-weight: 800;
}

.notice {
  border-radius: 12px;
  border: 1px solid rgba(62, 162, 245, 0.45);
  background: rgba(16, 47, 87, 0.7);
  padding: 11px;
  color: #d7edff;
  font-size: 0.9rem;
}

.footer {
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding: 14px 0 24px;
  color: #9bb6d5;
  font-size: 0.86rem;
}

.kbd {
  background: rgba(26, 61, 107, 0.8);
  border: 1px solid rgba(66, 149, 227, 0.7);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.74rem;
}

.login-box {
  max-width: 430px;
  margin: 60px auto;
}

.login-box .form-card {
  padding: 24px;
}

.success-box {
  border: 1px solid rgba(46, 201, 143, 0.5);
  background: rgba(20, 74, 63, 0.45);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.order-timeline {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.order-timeline li {
  position: relative;
  padding-right: 18px;
  color: #c6ddfb;
}

.order-timeline li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(144, 182, 225, 0.6);
}

.order-timeline li.active::before {
  background: #26ddff;
  box-shadow: 0 0 0 4px rgba(38, 221, 255, 0.2);
}

.toast {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 90;
  min-width: 220px;
  max-width: 330px;
  background: rgba(13, 40, 76, 0.92);
  border: 1px solid rgba(59, 152, 238, 0.55);
  border-radius: 12px;
  padding: 12px 14px;
  color: #e6f5ff;
  box-shadow: 0 10px 24px rgba(2, 12, 31, 0.42);
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.inline-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.cms-hero-image-wrap {
  margin-top: 16px;
  border-radius: 14px;
  border: 1px solid rgba(66, 162, 238, 0.45);
  overflow: hidden;
  background: rgba(10, 28, 53, 0.85);
}

.cms-hero-image-wrap img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.cms-highlight-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cms-highlight-media {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(67, 164, 242, 0.42);
  background: rgba(10, 28, 53, 0.85);
  aspect-ratio: 16 / 9;
}

.cms-highlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cms-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.cms-editor-card {
  border: 1px solid rgba(60, 154, 236, 0.4);
  background: rgba(13, 35, 67, 0.72);
  border-radius: 12px;
  padding: 12px;
}

.cms-editor-card h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.cms-upload-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.cms-upload-row input[type="file"] {
  max-width: 100%;
}

.cms-preview {
  margin-top: 8px;
  border: 1px dashed rgba(62, 157, 238, 0.55);
  border-radius: 10px;
  min-height: 110px;
  background: rgba(8, 22, 44, 0.7);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.cms-preview img {
  width: 100%;
  height: 100%;
  max-height: 210px;
  object-fit: cover;
}

.cms-preview span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.ticket-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ticket-chat {
  border: 1px solid rgba(60, 154, 236, 0.35);
  border-radius: 12px;
  background: rgba(9, 25, 49, 0.8);
  padding: 10px;
  max-height: 360px;
  overflow: auto;
  display: grid;
  gap: 10px;
}

.ticket-message {
  border: 1px solid rgba(56, 142, 222, 0.35);
  background: rgba(16, 44, 82, 0.75);
  border-radius: 10px;
  padding: 10px;
}

.ticket-message.admin {
  border-color: rgba(46, 201, 143, 0.5);
  background: rgba(20, 74, 63, 0.45);
}

.ticket-message-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.ticket-message-text {
  white-space: pre-wrap;
  line-height: 1.7;
  color: #e4f3ff;
}

.mobile-only {
  display: none;
}

/* Servers page premium layout */
.servers-page .section {
  padding-top: 22px;
}

.servers-intro {
  margin-bottom: 16px;
  background:
    radial-gradient(circle at 8% 10%, rgba(52, 217, 255, 0.2), transparent 40%),
    radial-gradient(circle at 90% 85%, rgba(44, 137, 255, 0.2), transparent 45%),
    linear-gradient(145deg, rgba(14, 40, 74, 0.92), rgba(8, 24, 46, 0.95));
}

.servers-intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.servers-kicker {
  margin: 0 0 8px;
  font-size: 0.76rem;
  letter-spacing: 1px;
  color: #9fe5ff;
  text-transform: uppercase;
}

.servers-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.servers-points span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(95, 200, 255, 0.45);
  background: rgba(19, 54, 93, 0.66);
  color: #d8f3ff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 11px;
}

.servers-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.server-shot {
  margin: 0;
  border: 1px solid rgba(74, 173, 248, 0.42);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(8, 22, 44, 0.72);
  box-shadow: 0 12px 30px rgba(2, 12, 28, 0.35);
}

.server-shot img {
  width: 100%;
  height: 132px;
  object-fit: cover;
}

.server-shot figcaption {
  border-top: 1px solid rgba(64, 160, 236, 0.34);
  padding: 8px 10px;
  font-size: 0.75rem;
  color: #cde8ff;
  text-align: center;
}

.servers-page .product-card {
  border-color: rgba(85, 184, 255, 0.36);
  background:
    linear-gradient(170deg, rgba(13, 37, 66, 0.9), rgba(10, 28, 49, 0.92));
}

.servers-page .product-card .product-category {
  border-color: rgba(86, 198, 255, 0.55);
  background: rgba(24, 79, 124, 0.52);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-card,
.stat-card,
.panel-card,
.product-card,
.summary-card,
.form-card {
  animation: fade-up 0.4s ease both;
}

@media (max-width: 1040px) {
  .hero-grid,
  .two-col,
  .admin-layout,
  .ticket-layout {
    grid-template-columns: 1fr;
  }

  .filters-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding-top: 38px;
  }

  .servers-intro-grid {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    min-height: 74px;
  }

  .main-nav a {
    font-size: 0.86rem;
    padding: 7px 10px;
  }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    inset: 74px 0 auto 0;
    background: rgba(6, 18, 36, 0.98);
    border-bottom: 1px solid rgba(55, 134, 209, 0.42);
    padding: 12px 5% 14px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
    display: grid;
    gap: 8px;
    overflow: visible;
    max-height: calc(100vh - 80px);
    overscroll-behavior: contain;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
  }

  .nav-toggle {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(69, 151, 228, 0.5);
    background: rgba(14, 37, 67, 0.82);
    color: #d4e9ff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .header-tools .btn-secondary {
    display: none;
  }

  .header-tools .btn-primary {
    padding: 8px 12px;
    font-size: 0.84rem;
  }

  .mobile-only {
    display: inline-flex;
  }

  .filters-card {
    grid-template-columns: 1fr;
  }

  .section-title-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .servers-gallery {
    grid-template-columns: 1fr;
  }

  .server-shot img {
    height: 160px;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-thumb {
    width: 100%;
    height: 180px;
  }

  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .cms-upload-row {
    flex-direction: column;
    align-items: stretch;
  }
}
