@font-face {
  font-family: Geist;
  src: url("./fonts/geist-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Cairo;
  src: url("./fonts/cairo-arabic.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
  color-scheme: dark;
  --bg: #08101e;
  --panel: #101b2c;
  --panel-alt: #142236;
  --line: #263850;
  --text: #f4f7fb;
  --muted: #aebed2;
  --mint: #a0f4d0;
  --mint-dark: #08291e;
  --danger: #ffa4a4;
  --gold: #ffdb9a;
  --radius: 18px;
  font-family: "Geist", "Cairo", "Tahoma", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--text); background: var(--bg); line-height: 1.65; }
a { color: var(--mint); text-decoration: none; }
a:hover { color: white; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button[disabled] { cursor: default; opacity: .6; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; }
::selection { background: var(--mint); color: var(--mint-dark); }
h1, h2, h3, h4, p { margin-block: 0; }
h1, h2, h3, h4 { line-height: 1.28; overflow-wrap: anywhere; }
p { color: var(--muted); overflow-wrap: anywhere; }
address { font-style: normal; }
code { overflow-wrap: anywhere; }
img, video { max-width: 100%; height: auto; }
section[id], article[id], footer[id] { scroll-margin-top: 110px; }
.shell { width: min(100% - 72px, 1232px); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  z-index: 10;
  padding: 12px;
  color: var(--mint-dark);
  background: var(--mint);
}

.market { background: radial-gradient(ellipse at 22% 3%, #12243b, transparent 51rem), var(--bg); }
.market-header { background: #0a1424ed; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.market-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.12rem; font-weight: 850; letter-spacing: .035em; color: var(--text); white-space: nowrap; }
.market-brand img { display: block; width: 38px; max-height: 38px; object-fit: contain; }
.brand-mark { display: inline-flex; gap: 3px; place-content: center; align-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--mint); direction: ltr; }
.brand-mark i { flex: 0 0 4px; height: 11px; border-radius: 4px; background: #153d32; transform: skew(-17deg); }
.brand-mark i:nth-child(2) { height: 19px; }
.brand-mark i:nth-child(3) { height: 15px; }
.desktop-nav, .mobile-nav, .header-actions { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.desktop-nav a, .mobile-nav a, .header-actions a { color: var(--muted); font-weight: 650; font-size: .88rem; white-space: nowrap; }
.desktop-nav a:hover, .mobile-nav a:hover, .header-actions a:hover { color: var(--text); }
.header-actions { gap: 16px; }
.header-actions .basket { display: inline-flex; align-items: center; gap: 8px; color: var(--text); border: 1px solid var(--line); border-radius: 9px; padding: 7px 12px; }
.basket b { min-width: 20px; border-radius: 6px; padding-inline: 3px; background: #263d47; color: var(--mint); text-align: center; font-size: .75rem; }
.language { letter-spacing: .02em; }
.mobile-nav { display: none; }
.market-flash, .flash { margin-block: 16px; padding: 14px 18px; background: #15372e; color: #d6ffed; border: 1px solid #407f66; border-radius: 12px; }

.market-hero { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 7vw, 108px); min-height: 466px; padding-block: 52px; }
.hero-copy { display: grid; gap: 20px; align-content: center; }
.location { display: flex; align-items: center; gap: 8px; color: var(--mint); font-size: .85rem; font-weight: 700; }
.location i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px #a0f4d021; }
.location span { color: var(--muted); }
.hero-copy h1 { font-size: clamp(2.75rem, 5.55vw, 5.4rem); font-weight: 850; letter-spacing: -.052em; }
[dir="rtl"] .hero-copy h1 { line-height: 1.18; letter-spacing: -.035em; }
.hero-copy p { max-width: 49ch; font-size: clamp(1rem, 1.5vw, 1.23rem); }
.market-actions, .cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.action, .portal .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 9px 16px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--text); font-weight: 750; text-align: center; }
.action.primary, .portal .btn.primary { background: var(--mint); color: var(--mint-dark); }
.action.primary:hover, .portal .btn.primary:hover { background: #c5ffe7; }
.action.outline, .portal .btn.ghost { border-color: #3a526a; background: #102033; color: var(--text); }
.action.outline:hover, .portal .btn.ghost:hover { border-color: var(--mint); }

.hero-art { position: relative; align-self: stretch; overflow: hidden; min-height: 355px; border: 1px solid #294357; border-radius: 23px; isolation: isolate; background: radial-gradient(ellipse at 53% 54%, #294c65 0, #152c44 35%, #091525 80%); }
.hero-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, #92cfff12 1px, transparent 1px), linear-gradient(35deg, #92cfff0d 1px, transparent 1px); background-size: 35px 32px; mask-image: radial-gradient(ellipse at center, #000, transparent 76%); }
.rack-scene { position: absolute; inset: 5% 0 12%; display: flex; align-items: center; justify-content: center; direction: ltr; perspective: 720px; isolation: isolate; }
.rack-floor { position: absolute; z-index: -1; inset: 15% 11% -29%; border-radius: 50%; transform: rotateX(65deg) rotateZ(-15deg); background: repeating-radial-gradient(ellipse at center, #66b6f02c 0 1px, transparent 2px 26px), radial-gradient(ellipse at center, #2a68899a, transparent 65%); }
.rack { position: relative; display: grid; align-content: space-between; width: 15%; height: 67%; padding: 13px 8px; border: 1px solid #648699; border-radius: 5px; background: linear-gradient(151deg, #243c53, #071320 72%); transform: rotateY(-26deg) skewY(5deg); box-shadow: 13px 15px 24px #050c16c9, inset 2px 1px 0 #a8ccdf2b; }
.rack::after { content: ""; position: absolute; width: 30px; top: 0; bottom: 0; left: 100%; background: linear-gradient(90deg, #0c1b2a, #222f3d); border-inline-end: 1px solid #37566b; transform: skewY(-16deg); transform-origin: left; }
.rack:nth-of-type(2) { height: 53%; translate: 3px 18px; filter: brightness(.69); z-index: 1; }
.rack:nth-of-type(3) { height: 68%; translate: 2px 4px; filter: brightness(.86); z-index: 2; }
.rack:nth-of-type(4) { height: 79%; translate: 0 -13px; z-index: 3; }
.rack:nth-of-type(5) { height: 60%; translate: 0 -5px; filter: brightness(.75); }
.rack i { display: block; height: 70%; min-height: 8px; border-radius: 2px; border: 1px solid #344a62; background: linear-gradient(90deg, #172e42, #23394c); }
.rack i::before { content: ""; display: block; width: 3px; height: 3px; margin: 3px; background: #c1ffe3; border-radius: 50%; box-shadow: 6px 0 #4ff5d2, 12px 0 #6bd4ff, 0 0 8px #62ffce; }
.rack i:nth-child(3n)::before { background: #7bbfff; box-shadow: 6px 0 #4ff5d2; }

.domain-bar { padding: 23px 28px; display: grid; grid-template-columns: 1fr minmax(0, 1.45fr); gap: 25px; align-items: center; border: 1px solid #375468; border-radius: var(--radius); background: #132538; }
.domain-bar h2, .catalog-heading h2 { font-size: clamp(1.45rem, 2.7vw, 2.1rem); margin-block-end: 4px; }
.domain-bar form { display: flex; align-items: stretch; min-width: 0; overflow: hidden; padding: 5px; border: 1px solid #4a6377; border-radius: 11px; background: #0a1525; }
.domain-bar input { flex: 1; min-width: 0; padding: 8px 11px; border: 0; border-radius: 6px; color: var(--text); background: #0a1525; }
.domain-bar input:focus { outline: none; }
.domain-bar form:focus-within { outline: 2px solid var(--mint); outline-offset: 2px; }
.domain-bar button { white-space: nowrap; }

.catalog { padding-block: 62px 42px; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.text-link { color: var(--mint); font-weight: 700; font-size: .92rem; }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 9px; padding-block: 17px 23px; }
.catalog-filters a { border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; color: #d7e2ee; background: #101b2a; font-size: .88rem; white-space: nowrap; }
.catalog-filters a:hover { border-color: #76baa7; }
.catalog-filters a[aria-current] { border-color: var(--mint); color: var(--mint); background: #15342f; }
.market-products, .feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.market-product, .feature-grid article, .extra-sections article { display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; min-width: 0; padding: clamp(16px, 2.15vw, 25px); border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(153deg, #152437, #0d1726); }
.market-product:hover { border-color: #4e7883; }
.product-tag { display: flex; align-items: center; gap: 10px; color: #c5d3e1; font-size: .81rem; font-weight: 650; }
.glyph { display: inline-grid; place-items: center; width: 35px; height: 35px; color: var(--mint); font-size: 1.22rem; border: 1px solid #43666c; border-radius: 9px; background: #17313c; line-height: 1; }
.market-product h3 { font-size: 1.22rem; }
.market-product p { font-size: .93rem; }
.product-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 11px; margin-top: 6px; padding-top: 15px; border-top: 1px solid var(--line); }
.product-price small { color: var(--muted); font-size: .76rem; }
.price { color: var(--text); white-space: nowrap; }
.price span { color: var(--muted); font-size: .8em; }
.small-action { min-height: 40px; padding: 6px 10px; color: var(--mint); background: #132c36; border: 1px solid #385a64; border-radius: 8px; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.small-action span { margin-inline-start: 4px; }
.small-action:hover { border-color: var(--mint); }
.feature-grid { margin-block: 14px 46px; }
.feature-grid article { padding-block: 24px; background: #0b1524; }
.feature-grid h2, .extra-sections h2 { font-size: 1.2rem; }
.extra-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; margin-block-end: 42px; }
.extra-sections article { border-inline-start: 3px solid #85d6b7; }
.market-footer { padding-block: 28px; border-top: 1px solid var(--line); background: #0b1626; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 21px; }
.footer-inner p { margin-block-start: 8px; font-size: .9rem; }

.portal-nav { border-bottom: 1px solid var(--line); background: #0c192a; }
.portal-nav .header-inner { flex-wrap: wrap; padding-block: 10px; }
.portal-nav .links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; }
.portal-nav .links a { color: var(--muted); font-size: .89rem; padding-block: 5px; }
.portal-nav .links a:hover { color: var(--mint); }
.portal-main { padding-block: 32px 60px; }
.portal-main > :where(h1, h2, h3, p, div, form, section, nav, article, ul) { margin-block-end: 16px; }
.portal-main h1 { font-size: clamp(1.75rem, 4vw, 2.8rem); }
.portal-main h2 { margin-block-start: 25px; font-size: clamp(1.22rem, 2.8vw, 1.65rem); }
.portal-main .pcard > :where(h2, h3, h4, p, .cluster) { margin-block-end: 9px; }
.portal-main .pcard > h2 { margin-block-start: 0; }
.portal-main dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; }
.portal-main dt { color: var(--muted); }
.portal-main dd { margin: 0; overflow-wrap: anywhere; }
.portal-main a:not(.btn):not(.action) { overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.good { color: var(--mint); }
.warn { color: var(--gold); }
.bad { color: var(--danger); }
.two, .pgrid, .checkout-grid { display: grid; gap: 14px; align-items: start; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.checkout-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.pcard, .form { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 19px; min-width: 0; overflow-wrap: anywhere; }
.pcard + .pcard, .form + .form { margin-block-start: 10px; }
.pgrid .pcard + .pcard, .two .pcard + .pcard { margin-block-start: 0; }
.form { max-width: 740px; }
.form.wide, .wide { width: 100%; }
.form label { display: grid; gap: 5px; margin-block: 11px; }
.form label:has(input[type="checkbox"]) { display: flex; align-items: center; gap: 8px; }
.form :where(input:not([type="hidden"], [type="checkbox"]), textarea, select), .control {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid #3d5471;
  background: #0a1525;
  color: var(--text);
}
.form input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--mint); }
.form textarea { min-height: 98px; resize: vertical; }
.form .btn { margin-block-start: 5px; }
.order-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 15px; align-items: start; }
.order-line .form { padding: 0; border: 0; background: transparent; }
.line-controls { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; }
.line-controls input { max-width: 110px; }
.invoice-details { white-space: pre-line; overflow-wrap: anywhere; }
.amount-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.amount-total .price { font-size: 1.35rem; }
.tablewrap { border: 1px solid var(--line); border-radius: 12px; overflow: auto; background: var(--panel); }
.ptable { width: 100%; border-collapse: collapse; min-width: 550px; }
.ptable th, .ptable td { padding: 12px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable th { color: #dbe9f6; background: #1a2a3d; }
.ptable tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; max-width: 100%; padding: 3px 9px; border: 1px solid #3d6371; color: #d3eceb; background: #19323d; border-radius: 7px; font-size: .8rem; }

@media (max-width: 1060px) {
  .desktop-nav { gap: 13px; }
  .desktop-nav a, .header-actions a { font-size: .83rem; }
}
@media (max-width: 870px) {
  .shell { width: min(100% - 42px, 1232px); }
  .desktop-nav { display: none; }
  .mobile-nav { display: flex; gap: 17px; padding-block: 0 12px; overflow: auto; }
  .header-inner { min-height: 68px; }
  .market-hero { gap: 25px; min-height: 380px; padding-block: 32px; }
  .hero-art { min-height: 290px; }
  .market-products, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .shell { width: calc(100% - 30px); }
  .header-inner { gap: 8px; }
  .header-actions { gap: 9px; }
  .header-actions .basket { gap: 4px; padding-inline: 6px; }
  .market-brand { gap: 6px; font-size: .96rem; }
  .brand-mark { width: 29px; height: 29px; border-radius: 8px; }
  .hero-copy { gap: 16px; }
  .hero-copy h1 { font-size: clamp(2.35rem, 11.4vw, 3.8rem); }
  .market-actions { gap: 7px; }
  .action, .portal .btn { padding-inline: 12px; font-size: .91rem; }
  .market-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 25px; }
  .hero-art { min-height: 213px; border-radius: 16px; }
  .rack { padding: 8px 6px; }
  .domain-bar { grid-template-columns: minmax(0, 1fr); gap: 13px; padding: 16px; }
  .domain-bar button { padding-inline: 8px; }
  .catalog { padding-block: 38px 23px; }
  .catalog-filters { gap: 6px; }
  .catalog-filters a { font-size: .8rem; padding-inline: 8px; }
  .market-products, .feature-grid, .pgrid, .two, .checkout-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { margin-bottom: 25px; }
  .portal-nav .links { gap: 4px 12px; }
  .portal-main { padding-block-start: 21px; }
  .order-line { grid-template-columns: minmax(0, 1fr); }
  .portal-main dl { gap: 6px 12px; }
}

.chat-video { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.gallery .pcard { display: grid; gap: 9px; color: var(--text); }
.gallery img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 9px; }
.pcard details { margin-block-start: 12px; }
.pcard summary { cursor: pointer; color: var(--mint); }
