/* =========================================================
   Homa Net Club — CONSOLIDATED STYLESHEET
   Replaces duplicate/overriding rules from the previous file.
   HTML, JavaScript, API, and contract logic are unchanged.
========================================================= */

* { box-sizing: border-box; }


:root {
  --bg: #f3f6fb;
  --bg2: #eaf0f8;
  --card: #ffffff;
  --card2: #f7f9fc;
  --border: #dddfdf;
  --text: #172b46;
  --muted: #64748b;
--green: #02386ad2;
--green-dark: #040e7a;
  --gold: #a7b5c8;
  --danger: #f05858a0;
  --input: #f8f8f8;
  --card-shadow: 0 5px 22px rgba(23, 43, 70, .07);
  --card-shadow-hover: 0 12px 28px rgba(23, 59, 117, .13);
}

@font-face {
  font-family: "Mitra";
  src: url("./fonts/Mitra.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

html[lang="fa"],
html[lang="fa"] body,
html[lang="fa"] body * {
  font-family: "Mitra", serif !important;
}
html { scroll-behavior: smooth; direction: ltr; }
body {
  margin: 0;
  min-height: 100vh;
  direction: ltr;
  font-family: "Times New Roman", Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4 { line-height: 1.3; color: var(--text); }
h1 { margin-bottom: 5px; }
h2 { margin-top: 0; font-size: 23px; letter-spacing: -.3px; }
h3 { margin-top: 0; }
p { overflow-wrap: anywhere; }
a { color: var(--green); text-underline-offset: 3px; }
img { max-width: 100%; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 30px 20px 60px; }
header {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px; margin-bottom: 16px; background: #fff; border-radius: 20px;
  box-shadow: 0 6px 24px rgba(23, 43, 58, .08);
}
header h1 { margin: 0; color: var(--green); font-size: 28px; font-weight: 750; letter-spacing: -.5px; }
header p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }

.card {
  margin-top: 18px; margin-bottom: 24px; padding: 24px; background: var(--card);
  border: 1px solid #e0e8ef; border-radius: 20px; box-shadow: var(--card-shadow);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: #c8e3dc; box-shadow: var(--card-shadow-hover); }
.status {
  margin-top: 12px; padding: 15px 18px; color: var(--text); background: #fff;
  border: 1px solid var(--border); border-radius: 14px; font-size: 16px;
  box-shadow: 0 6px 20px rgba(33, 110, 100, .06);
}

button {
  display: inline-block; border: 1px solid var(--green); border-radius: 12px;
  padding: 11px 18px; color: #fff; background: var(--green); font-weight: 700;
  font-size: 16px; cursor: pointer; box-shadow: 0 5px 14px rgba(8, 127, 114, .15);
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
button:hover:not(:disabled) { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); }
button:active:not(:disabled) { transform: translateY(0); }
button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
button.danger { background: linear-gradient(135deg, #e25555, #c83c46); border-color: #c83c46; }
button.secondary { background: #64736f !important; border-color: #64736f !important; box-shadow: none !important; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(18, 169, 149, .3); outline-offset: 3px;
}

.hidden { display: none !important; }
.menu-section { display: none; scroll-margin-top: 20px; }
.menu-section.active { display: block; }
.public-section {
  display: none;
  margin-bottom: 20px;
  scroll-margin-top: 20px;
}

.public-section:target,
.public-section.public-active,
.public-section.active {
  display: block;
}
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; width: 100%; }
.grid > *, .grid > label { min-width: 0; width: 100%; }
.compact { margin-bottom: 14px; }
.full { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 8px; color: var(--text); font-size: 17px; min-width: 0; }
input, textarea, select {
  width: 100%; max-width: 100%; padding: 12px 14px; border: 1px solid #cbd8e2;
  border-radius: 10px; background: var(--input); color: var(--text); font-size: 16px;
  outline: none; transition: border-color .2s ease, box-shadow .2s ease;
}
input { padding-top: 13px; padding-bottom: 13px; }
textarea { resize: vertical; line-height: 1.65; }
input::placeholder, textarea::placeholder { color: #9aa5a2; }
input:focus, textarea:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(16, 158, 139, .09); }
form button { margin-top: 18px; }
input[type="checkbox"] { width: auto; accent-color: var(--green); cursor: pointer; }
.checkbox-label { flex-direction: row; align-items: center; gap: 8px; }

.button-row { display: flex; flex-direction: column; gap: 10px; width: 100%; direction: ltr; }
.button-row button { display: block; width: 100%; box-sizing: border-box; margin: 0; }
.badge { display: inline-block; padding: 7px 12px; border-radius: 999px; background: #e8f8f4; color: var(--green-dark); font-weight: bold; font-size: 13px; }
.hint { color: var(--muted); font-size: 14px; line-height: 1.7; }
.msg { margin-top: 13px; padding: 11px 0; color: var(--text); font-size: 16px; overflow-wrap: anywhere; }
hr, .admin-divider { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

.wallet { display: flex; align-items: center; 
  justify-content: space-between; gap: 15px; padding: 13px 15px; 
  background: #f4fbf9; border: 1px solid var(--border); 
  border-radius: 12px; direction: ltr; }

.wallet strong { color: var(--green-dark); word-break: break-all; 
  overflow-wrap: anywhere; white-space: normal; 
  direction: ltr; text-align: left; 
  font-family: "Times New Roman", serif; }
.number { font-family: "Times New Roman", serif; direction: ltr; unicode-bidi: isolate; }

.product { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: 15px; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.product:hover { transform: translateY(-2px); border-color: rgba(18, 169, 149, .35); box-shadow: 0 8px 22px rgba(33, 110, 100, .08); }
.product h3 { margin: 0 0 7px; font-size: 20px; }
.product p { margin: 0; color: var(--muted); }
.products-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: var(--card-shadow); transition: transform .22s ease, box-shadow .22s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.product-card img, .product-image-placeholder { display: block; width: 100%; height: 180px; object-fit: cover; background: #f0f8f5; }
.product-image-placeholder { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e7f8f4, #f8efd9); color: var(--green); font-size: 22px; font-weight: bold; }
.product-card-body { padding: 20px; }
.product-card-body h3 { margin-top: 0; line-height: 1.4; }
.product-card-body ul { padding-left: 20px; color: var(--muted); }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.cart-item { margin-bottom: 18px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; }
.admin-product { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 10px; padding: 15px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.admin-product > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.admin-product small { color: var(--muted); }
.order { margin-top: 12px; padding: 15px; border: 1px solid var(--border); border-radius: 14px; background: #fff; direction: ltr; text-align: left; unicode-bidi: isolate; }
.order strong, .order a { color: var(--green-dark); }

.credit-grid, .contract-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: 100%; }
.credit-grid > div, .contract-grid > div {
  display: flex; flex-direction: row; align-items: center; gap: 8px; min-width: 0;
  padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: #fff; direction: ltr;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.credit-grid > div:hover, .contract-grid > div:hover { transform: translateY(-2px); border-color: rgba(18, 169, 149, .35); box-shadow: 0 7px 20px rgba(33, 110, 100, .07); }
.credit-grid strong { display: inline-block; color: var(--green-dark); font-size: 14px; font-family: "Times New Roman", serif; direction: ltr; text-align: left; white-space: nowrap; }




.contract-info { margin-top: 16px; }
.contract-info-grid { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.contract-info-item { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 60px; padding: 16px 20px; border: 1px solid var(--border); border-radius: 15px; background: #fff; }
.contract-info-item span { flex: 0 0 35%; color: #666; font-size: 14px; font-weight: 600; }
.contract-info-item strong { flex: 1; color: #111; font-size: 15px; font-weight: 400; text-align: right; word-break: break-all; }
.contract-read-grid { display: block; width: 100%; }
.contract-read-grid .read-box { width: 100%; }
.read-box { margin-top: 16px; padding: 18px; border: 1px solid var(--border); border-radius: 15px; background: var(--card2); }
.read-box h3 { margin-top: 0; }
.read-output { margin-top: 14px; max-height: 520px; overflow: auto; }
.read-row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.read-row span { color: var(--muted); font-weight: bold; }
.read-row strong { font-weight: 400; }
.write-contract-grid { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
.write-action-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 20px; border: 1px solid var(--border); border-radius: 15px; background: #fff; }
.write-action-card h3 { margin: 0 0 8px; font-weight: 500; }
.write-action-card p { margin: 0; color: #666; line-height: 1.7; }

.registration-option { position: relative; overflow: hidden; border-left: 5px solid var(--green); }
.registration-option::before { content: ""; position: absolute; top: -100px; right: -80px; width: 180px; height: 180px; border-radius: 50%; background: rgba(18, 169, 149, .08); pointer-events: none; }
.profile-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; direction: ltr; }

/* Public side menu */
.main-menu {
  position: fixed; top: 50%; left: 12px; z-index: 2000; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px; width: 54px; padding: 10px;
  background: #123047; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 12px 32px rgba(29, 91, 80, .15); transition: width .28s ease;
}
.main-menu.is-open { width: 225px; }
.main-menu-toggle { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 5px; color: #fff; background: linear-gradient(135deg, #109e8b, #20b8a2); border: 0; border-radius: 11px; font-size: 14px; box-shadow: none; }
.main-menu-toggle:hover:not(:disabled) { transform: none; }
.menu-toggle-icon { font-family: "Times New Roman", sans-serif; font-size: 22px; line-height: 1; }
.menu-toggle-label { display: none; }
.main-menu.is-open .main-menu-toggle { justify-content: flex-start; padding-left: 12px; }
.main-menu.is-open .menu-toggle-label { display: inline; }
.main-menu-links { display: flex; flex-direction: column; gap: 5px; max-height: 0; overflow: hidden; visibility: hidden; opacity: 0; transition: max-height .3s ease, opacity .2s ease; }
.main-menu.is-open .main-menu-links { max-height: 480px; visibility: visible; opacity: 1; }
.main-menu-links a { display: flex; align-items: center; width: 100%; min-height: 42px; padding: 12px 14px; color: #fff; background: transparent; border: 1px solid transparent; border-radius: 10px; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .2s ease, color .2s ease, transform .2s ease; }
.main-menu-links a:hover { color: #fff; background: var(--green); transform: translateX(2px); }
.main-menu-links a:focus-visible, .main-menu-toggle:focus-visible { outline: 3px solid rgba(18, 169, 149, .4); outline-offset: 2px; }

/* Member navigation */
.top-menu { position: sticky; top: 12px; z-index: 1000; width: 100%; margin: 10px 0 20px; padding: 8px; background: rgba(255,255,255,.94); border: 1px solid rgba(205,228,221,.9); border-radius: 16px; box-shadow: 0 6px 22px rgba(29,91,80,.08); backdrop-filter: blur(12px); direction: ltr; }
.top-menu-inner { width: 100%; }
.menu-links { display: flex; align-items: center; justify-content: center; gap: 5px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; direction: ltr; }
.menu-links::-webkit-scrollbar { display: none; }
.menu-links a { flex: 0 0 auto; display: block; padding: 10px 14px; border: 1px solid transparent; border-radius: 10px; text-decoration: none; color: var(--text); font-size: 16px; font-weight: 600; transition: background .2s ease, color .2s ease; }
.menu-links a:hover, .menu-links a.active { background: #e6f7f2; color: var(--green-dark); }
.menu-links a.active { font-weight: bold; }
.menu-links .menu-danger { margin-left: 5px; padding-left: 18px; border-left: 1px solid var(--border); color: var(--danger); }
.menu-links .menu-danger:hover { background: #fff0f0; color: #c93636; }

/* Public home and banners */
.banner-slider { position: relative; min-height: 250px; margin: 20px 0 30px; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: var(--card); box-shadow: 0 10px 30px rgba(23,43,58,.12); }
.banner-slides { position: relative; min-height: 250px; }
.banner-slide { display: none; position: relative; min-height: 250px; }
.banner-slide.active { display: block; }
.banner-slide a { display: block; color: inherit; text-decoration: none; }
.banner-slide img { display: block; width: 100%; height: clamp(250px, 36vw, 430px); object-fit: cover; transition: transform .5s ease; }
.banner-slider:hover .banner-slide.active img { transform: scale(1.015); }
.banner-caption { position: absolute; right: 0; bottom: 0; left: 0; padding: 26px; color: #fff; background: linear-gradient(180deg, transparent 0%, rgba(9,25,30,.76) 100%); }
.banner-caption h3 { margin: 20px 0 0; color: #fff; font-size: clamp(20px, 3vw, 30px); line-height: 1.35; }
.banner-empty { display: flex; min-height: 250px; padding: 30px; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: linear-gradient(135deg, #182c3b, #245d56); color: #fff; }
.banner-empty h2 { margin-bottom: 8px; color: #fff; }
.banner-empty p { color: #fff; }
.banner-arrow { position: absolute; z-index: 2; top: 50%; width: 42px; height: 42px; padding: 0; transform: translateY(-50%); border: 0; border-radius: 50%; color: #fff; background: rgba(0,0,0,.55); box-shadow: none; }
.banner-arrow:hover:not(:disabled) { transform: translateY(-50%); background: rgba(0,0,0,.75); }
.banner-prev { left: 12px; }
.banner-next { right: 12px; }
.banner-dots { position: absolute; z-index: 2; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.banner-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.6); box-shadow: none; }
.banner-dot.active { background: #fff; transform: scale(1.2); }
.services-heading { position: relative; margin: 32px 0 20px; padding-bottom: 12px; color: #123047; font-size: 30px; }
.services-heading::after { content: ""; display: block; width: 52px; height: 3px; margin-top: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--green), var(--gold)); }
.service-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 20px 0 32px; }
.service-cards .service-card { position: relative; isolation: isolate; display: flex; align-items: flex-start; flex-direction: column; gap: 12px; min-width: 0; min-height: 175px; padding: 24px; overflow: hidden; background: #fff; color: var(--text); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 5px 18px rgba(23,43,58,.06); text-decoration: none; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.service-cards .service-card::before { content: ""; position: absolute; z-index: -1; top: -65px; right: -50px; width: 150px; height: 150px; border: 1px solid rgba(18,169,149,.1); border-radius: 50%; background: rgba(18,169,149,.04); pointer-events: none; }
.service-cards .service-card:hover { transform: translateY(-5px); border-color: var(--green); box-shadow: 0 12px 28px rgba(18,48,71,.14); }
.service-cards .service-art { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 0; border-radius: 16px; background: #e1f7f2; font-size: 28px; }
.service-cards .service-card strong { color: #123047; font-size: 18px; }
.service-cards .service-card > span:last-child { color: #657586; font-size: 13px; line-height: 1.6; }

/* Admin banner management */
#bannerForm { display: grid; gap: 10px; margin: 20px 0; }
#bannerForm input { width: 100%; max-width: 100%; }
.admin-banner { display: flex; align-items: center; gap: 16px; margin: 12px 0; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
.admin-banner img { flex: 0 0 auto; width: 130px; height: 78px; object-fit: cover; border-radius: 8px; }
.admin-banner-info { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.admin-banner-info small { display: block; margin-top: 5px; opacity: .75; }

/* Profile products editor and public profile controls */
.profile-products-editor { margin-top: 24px; }
#profileProductsEditor { display: grid; gap: 16px; margin: 16px 0; }
.profile-product-editor { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.profile-product-editor h4 { margin: 0; }
.profile-product-editor label { display: grid; gap: 6px; }
.profile-product-editor input[type="text"], .profile-product-editor input[type="file"], .profile-product-editor textarea { width: 100%; max-width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; }
.profile-product-editor button { justify-self: start; }
.product-existing-image { margin: 0; color: #64748b; font-size: 13px; }
#openPublicProfileUrl { display: inline-block; padding: 10px 18px; border: 0; border-radius: 8px; background: var(--green); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
#openPublicProfileUrl:hover { background: var(--green-dark); }
#openPublicProfileUrl[hidden] { display: none !important; }
#sharePublicProfileUrl, #openPublicProfileUrl, #copyPublicProfileUrl { display: block; width: 100%; box-sizing: border-box; margin: 0 0 10px; text-align: center; }
#addProductButton { display: block; width: 100%; margin: 10px 0; text-align: center; }
.public-profile-share, .public-profile-referral { display: block; width: 100%; margin: 12px 0 0; padding: 0; box-sizing: border-box; }
#sharePublicProfilePage, #copyPublicReferralLink { display: block; width: 100%; box-sizing: border-box; margin: 0 0 12px; padding: 15px 18px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #12a995, #c99704); color: #fff; font-size: 16px; font-weight: 600; line-height: 1.3; text-align: center; cursor: pointer; box-shadow: 0 6px 16px rgba(18,169,149,.2); transition: transform .2s ease, box-shadow .2s ease; }
#sharePublicProfilePage:hover, #copyPublicReferralLink:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(18,169,149,.28); }
#publicReferralUrl { display: block; width: 100%; box-sizing: border-box; margin: 0 0 12px; padding: 15px 18px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #12a995, #c99704); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.5; text-align: center; text-decoration: none; overflow-wrap: anywhere; cursor: pointer; box-shadow: 0 6px 16px rgba(18,169,149,.2); }
#sharePublicProfileMessage, #publicReferralMessage { margin-top: 10px; color: var(--green-dark); font-size: 14px; overflow-wrap: anywhere; }
.public-profile-content > a[href="/"] { display: flex; justify-content: center; width: 100%; box-sizing: border-box; margin: 0; text-align: center; }
#website, #telegram, #instagram { display: block !important; float: none !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
label:has(#website), label:has(#telegram), label:has(#instagram) { display: block !important; width: 100% !important; max-width: 100% !important; margin-bottom: 16px !important; box-sizing: border-box !important; }

/* Language selector and direction */
.language-selector { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 12px 0; }
.language-selector label { display: inline; font-size: 14px; font-weight: bold; }
.language-selector select { width: auto; min-width: 130px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); font-size: 15px; cursor: pointer; }
html[dir="rtl"], html[dir="rtl"] body { direction: rtl; }
html[dir="ltr"], html[dir="ltr"] body { direction: ltr; }
.wallet, .wallet strong, .number, .contract-grid > div, .credit-grid > div, .order { unicode-bidi: isolate; }

/* Scrollbars */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #eaf6f4; }
::-webkit-scrollbar-thumb { background: #a8d8d0; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #7fc5ba; }

@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .service-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 750px) {
  .service-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .container { padding: 20px 14px 45px; }
  header { flex-direction: column; align-items: stretch; padding: 16px; }
  header h1 { font-size: 24px; }
  header button { width: 100%; }
  .main-menu { top: auto; bottom: 16px; left: 12px; transform: none; width: 54px; border-radius: 15px; }
  .main-menu.is-open { width: min(250px, calc(100vw - 24px)); }
  .main-menu.is-open .main-menu-links { max-height: min(65vh, 420px); overflow-y: auto; }
  .grid, .credit-grid, .contract-grid { grid-template-columns: minmax(0, 1fr); }
  .full, .contract-grid .full { grid-column: auto; }
  .product, .profile-header { flex-direction: column; align-items: stretch; }
  .product button, .button-row button { width: 100%; }
  .button-row { flex-direction: column; }
  .card { padding: 19px; }
  .wallet { flex-direction: column; align-items: flex-start; }
  .top-menu { top: 8px; margin: 8px 0 16px; padding: 6px; border-radius: 14px; }
  .menu-links { justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .menu-links a { padding: 9px 13px; font-size: 15px; }
  .menu-links .menu-danger { margin-left: 0; padding-left: 14px; }
  .service-cards { gap: 12px; }
  .service-cards .service-card { min-height: 165px; padding: 16px !important; border-radius: 16px; }
  .service-cards .service-art { width: 48px; height: 48px; border-radius: 14px; font-size: 27px; }
  .service-cards .service-card strong { font-size: 16px; }
  .banner-slider, .banner-slides, .banner-slide { border-radius: 17px; }
  .banner-caption { padding: 16px; }
  .services-heading { font-size: 25px; }
  .card { border-radius: 17px; }
  .language-selector { justify-content: stretch; }
  .language-selector select { flex: 1; min-width: 0; }
  .contract-info-item { flex-direction: column; align-items: flex-start; gap: 8px; }
  .contract-info-item span, .contract-info-item strong { width: 100%; flex: none; text-align: left; }
  .write-action-card { flex-direction: column; align-items: stretch; }
  .write-action-card button { width: 100%; }
  .read-row { grid-template-columns: minmax(0, 1fr); }
  .admin-product, .product-footer { align-items: flex-start; flex-direction: column; }
  .products-grid { grid-template-columns: minmax(0, 1fr); }
  .services-heading { margin-bottom: 18px; }
}
@media (max-width: 480px) {
  .service-cards { grid-template-columns: minmax(0, 1fr); }
  header { padding: 14px !important; }
  .card { padding: 14px; }
  .admin-banner { align-items: flex-start; flex-direction: column; }
  .admin-banner img { width: 100%; height: auto; max-height: 220px; }
  .banner-caption { padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* =========================================================
   FINAL LANGUAGE SELECTOR — TURQUOISE & SILVER
========================================================= */

header .language-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0;
  padding: 4px;
  flex-shrink: 0;
}

header .language-selector label {
  display: none;
}

header .language-selector select {
  width: auto;
  min-width: 125px;
  max-width: 100%;
  padding: 9px 30px 9px 12px;
  margin: 0;
  border: 1px solid #6aa1eeb2;
  border-radius: 10px;
  background: #fff;
  color: #087f78;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(8, 127, 120, 0.07);
  transition: border-color .2s ease, box-shadow .2s ease;
}

header .language-selector select:hover,
header .language-selector select:focus {
  border-color: #2e87f3b9;
  box-shadow: 0 0 0 3px rgba(18, 175, 160, 0.12);
}

header .language-selector .lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  height: 30px;
  padding: 0;
  margin: 0;
  border: 1px solid #c0cad8;
  border-radius: 7px;
  background: #fff;
  color: #087f78;
  font-size: 19px;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
}

header .language-selector .lang-flag:hover,
header .language-selector .lang-flag.active {
  border-color: #12afa0;
  background: #e9f9f6;
}

@media (max-width: 650px) {
  header .language-selector {
    width: auto;
    align-self: center;
    justify-content: center;
    margin: 0;
  }

  header .language-selector select {
    width: auto;
    min-width: 125px;
  }
}



.language-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-flag {
  width: 34px;
  height: 26px;
  padding: 2px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-flag img {
  display: block;
  width: 28px;
  height: 19px;
  object-fit: cover;
  border-radius: 2px;
}

.lang-flag:hover,
.lang-flag.active {
  border-color: #168bd2;
  transform: scale(1.06);
}



.language-selector {
  direction: ltr;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}














.contract-grid > div {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.contract-grid > div span {
  display: block;
  width: 100%;
  white-space: normal;
  text-align: left;
  direction: ltr;
  font-weight: 700;
}

.contract-grid > div strong {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  font-family: "Times New Roman", serif;
  direction: ltr;
  text-align: right;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* =========================================================
   Homa Net Club — VISUAL REFRESH
   Inspired by the supplied dashboard reference.
   Appended overrides only; existing selectors and logic remain.
========================================================= */

:root {
  --bg: #f8f8f1;
  --bg2: #edf8f4;
  --card: #ffffff;
  --card2: #f7fbfa;
  --border: #dcebe7;
  --text: #123b52;
  --muted: #617b87;
  --green: #078f7d;
  --green-dark: #05695f;
  --gold: #d8a52b;
  --danger: #c94d56;
  --input: #fbfdfc;
  --card-shadow: 0 8px 28px rgba(17, 65, 78, .075);
  --card-shadow-hover: 0 14px 34px rgba(17, 65, 78, .13);
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  color: var(--text);
  background:
    radial-gradient(ellipse at 8% 5%, rgba(28, 190, 159, .09), transparent 27rem),
    radial-gradient(ellipse at 96% 15%, rgba(238, 192, 83, .10), transparent 24rem),
    linear-gradient(135deg, #fbfbf6 0%, #f3faf7 48%, #fffdf7 100%);
  font-family:  "Times New Roman", "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  color: #123f58;
  letter-spacing: -.025em;
}

h2 {
  font-size: clamp(20px, 2vw, 26px);
}

a {
  color: var(--green-dark);
}

.container {
  width: min(100% - 36px, 1440px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px 18px 54px;
}

/* Main site header */
header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 22px;
  margin-bottom: 8px;
  background: rgba(248, 248, 248, 0.301);
  border: 1px solid rgba(223, 235, 228, .95);
  border-radius: 24px;
  box-shadow: 0 8px 28px rgba(25, 75, 75, .08);
  backdrop-filter: blur(14px);
}

header h1 {
  color: #087e76;
  font-size: clamp(21px, 2.4vw, 34px);
  font-weight: 800;
  letter-spacing: -.04em;
}

header p {
  color: var(--muted);
}

/* Existing member navigation */
.top-menu {
  top: 10px;
  margin: 8px 0 20px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(211, 231, 225, .95);
  border-radius: 19px;
  box-shadow: 0 8px 26px rgba(20, 77, 78, .08);
  backdrop-filter: blur(14px);
}

.menu-links {
  justify-content: center;
  gap: 7px;
}

.menu-links a {
  padding: 10px 15px;
  border-radius: 999px;
  color: #24485b;
  font-size: 14px;
  font-weight: 650;
}

.menu-links a:hover,
.menu-links a.active {
  background: #e6f7f2;
  color: #057b6d;
}

.menu-links .menu-danger {
  color: #b7444b;
}

/* Floating public sidebar */
.main-menu {
  left: 14px;
  width: 60px;
  padding: 9px;
  gap: 8px;
  background: linear-gradient(160deg, #078f83 0%, #05635f 100%);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 19px;
  box-shadow: 0 14px 34px rgba(4, 95, 88, .22);
}

.main-menu.is-open {
  width: 218px;
}

.main-menu-toggle {
  min-height: 47px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .13);
  color: #fff;
}

.main-menu-links a {
  min-height: 43px;
  border-radius: 12px;
  font-size: 14px;
}

.main-menu-links a:hover {
  background: rgba(255, 255, 255, .17);
  transform: translateX(2px);
}

/* Cards and status panels */
.card {
  margin-top: 16px;
  margin-bottom: 22px;
  padding: clamp(18px, 2vw, 25px);
  background: rgba(255, 255, 255, .95);
  border: 1px solid #e1ece8;
  border-radius: 21px;
  box-shadow: var(--card-shadow);
}

.card:hover {
  border-color: #c6e7de;
  box-shadow: var(--card-shadow-hover);
}

.status {
  border-color: #dcebe7;
  border-radius: 15px;
  background: rgba(255, 255, 255, .92);
}

/* Buttons */
button {
  border: 1px solid var(--green);
  border-radius: 999px;
  padding: 11px 19px;
  background: linear-gradient(135deg, #0aa993, #078271);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 6px 15px rgba(7, 143, 125, .16);
}

button:hover:not(:disabled) {
  background: linear-gradient(135deg, #087c70, #055e58);
  border-color: #05695f;
  transform: translateY(-1px);
}

button.secondary {
  background: #edf4f2 !important;
  border-color: #d4e4df !important;
  color: #31596a !important;
  box-shadow: none !important;
}

/* Inputs */
input, textarea, select {
  border-color: #d4e2df;
  border-radius: 12px;
  background: #fcfefd;
  color: var(--text);
}

input:focus, textarea:focus, select:focus {
  border-color: #18ad98;
  box-shadow: 0 0 0 4px rgba(24, 173, 152, .11);
}

/* Public home banner / slider */
.banner-slider {
  min-height: 250px;
  margin: 18px 0 28px;
  border: 2px solid rgba(255, 255, 255, .95);
  border-radius: 23px;
  background: linear-gradient(120deg, #dff7f0, #eaf6ff 55%, #fff4d7);
  box-shadow: 0 12px 32px rgba(17, 65, 78, .13);
}

.banner-slides,
.banner-slide {
  min-height: 250px;
}

.banner-slide img {
  height: clamp(250px, 30vw, 390px);
  object-fit: cover;
}

.banner-caption {
  padding: 25px 28px;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 44, 57, .74) 100%);
}

.banner-caption h3 {
  font-size: clamp(21px, 2.6vw, 32px);
}

.banner-empty {
  background:
    radial-gradient(circle at 75% 15%, rgba(255, 255, 255, .17), transparent 14rem),
    linear-gradient(120deg, #087e78, #104c67 62%, #d4a53b);
}

.banner-arrow {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, .92);
  color: #0b6f70;
  box-shadow: 0 4px 15px rgba(20, 70, 80, .12);
}

.banner-arrow:hover:not(:disabled) {
  background: #fff;
  color: #034f54;
}

/* Section headings */
.services-heading {
  margin: 25px 0 18px;
  padding-bottom: 12px;
  color: #123f58;
  font-size: clamp(25px, 2.5vw, 32px);
  border-bottom: 1px solid #e2ece8;
}

.services-heading::after {
  width: 76px;
  height: 3px;
  margin-top: 10px;
  background: linear-gradient(90deg, #0aa993, #d8a52b);
}

/* Service tiles */
.service-cards {
  gap: 16px;
  margin: 18px 0 28px;
}

.service-cards .service-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 10px 14px;
  min-height: 145px;
  padding: 19px;
  border-radius: 17px;
  background: linear-gradient(135deg, #ffffff, #effbf7);
  border-color: #b8e8dc;
  box-shadow: 0 5px 18px rgba(19, 87, 88, .055);
}

.service-cards .service-card:nth-child(2) {
  background: linear-gradient(135deg, #fff, #edf7ff);
  border-color: #b9ddfa;
}

.service-cards .service-card:nth-child(3) {
  background: linear-gradient(135deg, #fff, #fff7e4);
  border-color: #f1d48c;
}

.service-cards .service-card:nth-child(4) {
  background: linear-gradient(135deg, #fff, #f4f0ff);
  border-color: #d9ceff;
}

.service-cards .service-card::before {
  top: auto;
  right: -40px;
  bottom: -70px;
  width: 140px;
  height: 140px;
  border-color: rgba(7, 143, 125, .09);
  background: rgba(7, 143, 125, .04);
}

.service-cards .service-art {
  grid-row: span 2;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b89b, #08786d);
  color: #fff;
  box-shadow: 0 5px 13px rgba(7, 143, 125, .16);
}

.service-cards .service-card:nth-child(2) .service-art {
  background: linear-gradient(135deg, #38a8f5, #126bd2);
}

.service-cards .service-card:nth-child(3) .service-art {
  background: linear-gradient(135deg, #f2c65e, #c58c19);
}

.service-cards .service-card:nth-child(4) .service-art {
  background: linear-gradient(135deg, #9580ff, #5235c8);
}

.service-cards .service-card strong {
  align-self: end;
  color: #143f52;
  font-size: 16px;
}

.service-cards .service-card > span:last-child {
  align-self: start;
  color: #617b87;
  font-size: 11px;
}

/* Products and product cards */
.products-grid {
  gap: 17px;
}

.product-card {
  overflow: hidden;
  border: 1px solid #dce9e5;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(17, 65, 78, .055);
}

.product-card:hover {
  border-color: #b9e3d8;
}

.product-card img,
.product-image-placeholder {
  height: 175px;
  background: linear-gradient(135deg, #e8f8f2, #f9f0d9);
}

.product-card-body {
  padding: 16px;
}

.product-card-body h3 {
  margin-bottom: 7px;
  color: #153f58;
  font-size: 17px;
}

.product-card-body p,
.product-card-body ul {
  color: #617b87;
  font-size: 13px;
}

.product-footer {
  align-items: center;
  margin-top: 14px;
}

.product-footer button {
  padding: 9px 15px;
  font-size: 14px;
}

.product {
  border-color: #deebe7;
  border-radius: 17px;
  background: #fff;
}

/* Contract / wallet information panels */
.credit-grid,
.contract-grid {
  gap: 10px;
}

.credit-grid > div,
.contract-grid > div {
  border-color: #dce9e5;
  border-radius: 15px;
  background: linear-gradient(145deg, #fff, #f7fbfa);
}

.contract-info-item {
  border-color: #deebe7;
  border-radius: 14px;
  background: #fff;
}

.contract-info-item span {
  color: #617b87;
}

.contract-info-item strong {
  color: #123f58;
}

.read-box,
.write-action-card,
.profile-product-editor {
  border-color: #deebe7;
  border-radius: 17px;
  background: #fff;
}

/* Profile and admin panels */
.registration-option {
  border-left-color: var(--green);
}

.badge {
  background: #e6f7f2;
  color: #067669;
}

.wallet {
  background: #f3fbf8;
  border-color: #d8e9e3;
}

.wallet strong,
.order strong,
.order a {
  color: #05695f;
}

#sharePublicProfilePage,
#copyPublicReferralLink,
#publicReferralUrl {
  background: linear-gradient(135deg, #0aa993, #08786d);
  box-shadow: 0 6px 16px rgba(7, 143, 125, .18);
}

/* Language selector */
header .language-selector select,
.language-selector select {
  border-color: #d4e3df;
  color: #087b72;
  background-color: #fff;
}

/* Responsive adjustments */
@media (min-width: 1000px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid > .full {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .container {
    width: 100%;
    padding: 14px 14px 44px;
  }

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

  .menu-links {
    justify-content: flex-start;
  }
}

@media (max-width: 650px) {
  .container {
    padding: 12px 10px 82px;
  }

  header {
    gap: 12px;
    padding: 15px;
    border-radius: 18px;
  }

  header h1 {
    font-size: 22px;
  }

  .top-menu {
    top: 6px;
    border-radius: 15px;
  }

  .main-menu {
    bottom: 12px;
    left: 12px;
    border-radius: 17px;
  }

  .card {
    padding: 17px;
    border-radius: 18px;
  }

  .banner-slider,
  .banner-slides,
  .banner-slide {
    border-radius: 17px;
  }

  .banner-slide img {
    height: 250px;
  }

  .banner-caption {
    padding: 15px;
  }

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

  .service-cards .service-card {
    grid-template-columns: 1fr;
    min-height: 160px;
    padding: 14px !important;
    gap: 9px;
  }

  .service-cards .service-art {
    grid-row: auto;
    width: 46px;
    height: 46px;
    font-size: 23px;
  }

  .service-cards .service-card strong {
    font-size: 14px;
  }

  .service-cards .service-card > span:last-child {
    font-size: 12px;
  }

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

  .product-card img,
  .product-image-placeholder {
    height: 130px;
  }

  .product-card-body {
    padding: 12px;
  }

  .product-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .product-footer button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .service-cards,
  .products-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-cards .service-card {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 120px;
  }

  .service-cards .service-art {
    grid-row: span 2;
  }

  .product-card img,
  .product-image-placeholder {
    height: 180px;
  }
}



























/* =========================================================
   Homa Net Club — PROFESSIONAL PALETTE FINAL OVERRIDES
   Visual styling only — no HTML or JavaScript changes.
========================================================= */

:root {
  --blue-soft: #98C1D9;
  --coral: #EE6C4D;
  --slate: #3D5A80;
  --aqua: #E0FBFC;
  --sand: #D6C8B1;

  --bg: #F4F8FB;
  --bg2: #EAF3F8;
  --card: #FFFFFF;
  --card2: #F7FBFD;
  --border: #D7E3EB;
  --text: #20364D;
  --muted: #65788B;
  --green: #3D5A80;
  --green-dark: #2D4564;
  --gold: #D6C8B1;
  --danger: #B93838;
  --input: #FBFDFF;

  --card-shadow: 0 8px 26px rgba(35, 64, 91, .075);
  --card-shadow-hover: 0 14px 34px rgba(35, 64, 91, .14);
}

html,
body {
  color: var(--text);
  background-color: var(--bg);
}

body {
  background:
    radial-gradient(
      ellipse at 5% 0%,
      rgba(152, 193, 217, .22),
      transparent 32rem
    ),
    radial-gradient(
      ellipse at 98% 8%,
      rgba(224, 251, 252, .85),
      transparent 29rem
    ),
    linear-gradient(
      135deg,
      #F7FAFC 0%,
      #EFF6FA 55%,
      #FBFAF7 100%
    );
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--slate);
}

a {
  color: var(--slate);
}

a:hover {
  color: #D9573A;
}

/* Header */
header {
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(152, 193, 217, .48);
  box-shadow: 0 8px 28px rgba(35, 64, 91, .09);
}

header h1 {
  color: var(--slate);
}

/* Main cards */
.card,
.product-card,
.read-box,
.write-action-card,
.profile-product-editor,
.contract-info-item,
.product {
  background-color: #FFFFFF;
  border-color: var(--border);
  box-shadow: var(--card-shadow);
}

.card:hover,
.product-card:hover {
  border-color: var(--blue-soft);
  box-shadow: var(--card-shadow-hover);
}

/* Main navigation */
.top-menu {
  background: rgba(255, 255, 255, .94);
  border-color: rgba(152, 193, 217, .55);
  box-shadow: 0 7px 24px rgba(35, 64, 91, .09);
}

.menu-links a {
  color: var(--slate);
}

.menu-links a:hover,
.menu-links a.active {
  color: var(--slate);
  background: var(--aqua);
}

.menu-links .menu-danger {
  color: var(--danger);
}

/* Floating public menu */
.main-menu {
  background: linear-gradient(160deg, #3D5A80, #2D4564);
  border-color: rgba(255, 255, 255, .3);
  box-shadow: 0 14px 34px rgba(35, 64, 91, .24);
}

.main-menu-toggle {
  background: rgba(255, 255, 255, .12);
  color: #FFFFFF;
}

.main-menu-links a {
  color: #FFFFFF;
}

.main-menu-links a:hover {
  background: rgba(255, 255, 255, .16);
}

/* Primary buttons */
button {
  color: #FFFFFF;
  background: var(--slate);
  border-color: var(--slate);
  box-shadow: 0 5px 14px rgba(61, 90, 128, .18);
}

button:hover:not(:disabled) {
  color: #FFFFFF;
  background: var(--green-dark);
  border-color: var(--green-dark);
}

/* Special coral buttons */
button.danger,
#sharePublicProfilePage,
#copyPublicReferralLink {
  color: #FFFFFF;
  background: var(--coral);
  border-color: var(--coral);
}

button.danger:hover:not(:disabled),
#sharePublicProfilePage:hover,
#copyPublicReferralLink:hover {
  color: #FFFFFF;
  background: #D9573A;
  border-color: #D9573A;
}

/* Secondary buttons */
button.secondary,
.secondary {
  color: var(--slate) !important;
  background: #EDF4F8 !important;
  border-color: #CBDCE7 !important;
  box-shadow: none !important;
}

button.secondary:hover:not(:disabled),
.secondary:hover:not(:disabled) {
  background: var(--aqua) !important;
  border-color: var(--blue-soft) !important;
}

/* Inputs */
input,
textarea,
select {
  color: var(--text);
  background: #FBFDFF;
  border-color: #CBDCE7;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--slate);
  box-shadow: 0 0 0 4px rgba(152, 193, 217, .28);
}

input[type="checkbox"] {
  accent-color: var(--slate);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(152, 193, 217, .65);
  outline-offset: 3px;
}

/* Status and badges */
.status {
  color: var(--text);
  background: var(--aqua);
  border-color: var(--blue-soft);
}

.badge {
  color: var(--slate);
  background: var(--aqua);
  border-color: rgba(152, 193, 217, .7);
}

.hint,
.msg,
.product p,
.product-card-body p,
.product-card-body ul {
  color: var(--muted);
}

/* Service cards */
.services-heading {
  color: var(--slate);
  border-bottom-color: var(--border);
}

.services-heading::after {
  background: linear-gradient(90deg, var(--slate), var(--coral));
}

.service-cards .service-card {
  color: var(--text);
  background: linear-gradient(135deg, #FFFFFF, #F1F8FC);
  border-color: var(--border);
}

.service-cards .service-card:nth-child(2) {
  background: linear-gradient(135deg, #FFFFFF, #EAF8FA);
  border-color: #C7E6EE;
}

.service-cards .service-card:nth-child(3) {
  background: linear-gradient(135deg, #FFFFFF, #FAF5ED);
  border-color: #E8DCC8;
}

.service-cards .service-card:nth-child(4) {
  background: linear-gradient(135deg, #FFFFFF, #F2F5FA);
  border-color: #D2DDE8;
}

.service-cards .service-card strong {
  color: var(--slate);
}

.service-cards .service-card > span:last-child {
  color: var(--muted);
}

.service-cards .service-art {
  color: #FFFFFF;
  background: var(--slate);
}

.service-cards .service-card:nth-child(2) .service-art {
  background: #5C9DBF;
}

.service-cards .service-card:nth-child(3) .service-art {
  background: var(--coral);
}

.service-cards .service-card:nth-child(4) .service-art {
  background: #607E9C;
}

/* Product cards */
.product-card h3,
.product-card-body h3,
.product-card strong,
.product-footer strong {
  color: var(--slate);
}

.product-card img,
.product-image-placeholder {
  background: linear-gradient(135deg, var(--aqua), #F5F0E8);
}

.product-image-placeholder {
  color: var(--slate);
}

/* Wallet and contract information */
.wallet {
  background: #F4F9FC;
  border-color: var(--border);
}

.wallet strong,
.order strong,
.order a {
  color: var(--slate);
}

.credit-grid > div,
.contract-grid > div {
  background: linear-gradient(145deg, #FFFFFF, #F5F9FC);
  border-color: var(--border);
}

.contract-info-item span,
.read-row span {
  color: var(--muted);
}

.contract-info-item strong {
  color: var(--text);
}

.read-box,
.write-action-card,
.profile-product-editor {
  background: #FFFFFF;
  border-color: var(--border);
}

.registration-option {
  border-left-color: var(--coral);
}

.registration-option::before {
  background: rgba(238, 108, 77, .09);
}

/* Public profile sharing */
#openPublicProfileUrl {
  background: var(--slate);
}

#openPublicProfileUrl:hover {
  background: var(--green-dark);
}

#publicReferralUrl {
  color: #FFFFFF;
  background: var(--slate);
  border-color: var(--slate);
}

#publicReferralUrl:hover {
  background: var(--green-dark);
}

#sharePublicProfileMessage,
#publicReferralMessage {
  color: var(--slate);
}

/* Banner */
.banner-slider {
  background: linear-gradient(
    120deg,
    var(--aqua),
    #EDF5FA 58%,
    #F7F2E9
  );
  border-color: rgba(152, 193, 217, .6);
  box-shadow: 0 10px 30px rgba(35, 64, 91, .12);
}

.banner-empty {
  color: var(--slate);
  background: linear-gradient(
    120deg,
    var(--aqua),
    var(--blue-soft) 62%,
    var(--sand)
  );
}

.banner-empty h2,
.banner-empty p {
  color: var(--slate);
}

.banner-caption {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(24, 43, 63, .78) 100%
  );
}

.banner-caption h3 {
  color: #FFFFFF;
}

.banner-arrow {
  color: var(--slate);
  background: rgba(255, 255, 255, .95);
  border-color: rgba(152, 193, 217, .6);
}

.banner-arrow:hover:not(:disabled) {
  color: #FFFFFF;
  background: var(--slate);
}

/* Language selector */
header .language-selector select,
.language-selector select {
  color: var(--slate);
  background-color: #FFFFFF;
  border-color: var(--border);
}

.lang-flag:hover,
.lang-flag.active {
  border-color: var(--blue-soft);
  background: var(--aqua);
}

/* Scrollbar */
::-webkit-scrollbar-track {
  background: #EDF4F8;
}

::-webkit-scrollbar-thumb {
  background: #B7CEDD;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--slate);
}

/* Keep the layout comfortable on phones */
@media (max-width: 650px) {
  header {
    background: rgba(255, 255, 255, .97);
  }

  .card {
    background: #FFFFFF;
  }

  .top-menu {
    background: rgba(255, 255, 255, .97);
  }
}






/* Social media footer */
.social-footer {
  width: 100%;
  box-sizing: border-box;
  margin: 28px auto 0;
  padding: 24px 16px;
  text-align: center;
  border-top: 1px solid var(--border, #dce3e8);
  background: var(--card, #ffffff);
}

.social-footer-title {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text, #172b3a);
}

.social-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 14px;
  box-sizing: border-box;
  border: 1px solid #e1e7ed;
  border-radius: 14px;
  background: #ffffff;
  color: #263746;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.1);
}

.social-link:focus-visible {
  outline: 3px solid #12a995;
  outline-offset: 3px;
}

.social-link svg {
  display: block;
  width: 23px;
  height: 23px;
  flex-shrink: 0;
}

.social-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 23px;
  height: 23px;
  font-size: 18px;
  font-weight: 800;
}

.social-telegram {
  color: #229ed9;
}

.social-bale {
  color: #1689d5;
}

.social-eitaa {
  color: #e87524;
}

.social-instagram {
  color: #c13584;
}

@media (max-width: 480px) {
  .social-footer-links {
    gap: 8px;
  }

  .social-link {
    gap: 6px;
    padding: 9px 10px;
    font-size: 13px;
  }
}





.header-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

@media (max-width: 480px) {
  .header-logo img {
    width: 38px;
    height: 38px;
  }
}









.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1px;
  width: 70%;
}

.brand-row h1 {
  margin: 0;
  font-size: 16px;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-logo img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

@media (max-width: 480px) {
  .brand-row {
    gap: 1px;
  }

  .brand-row h1 {
    font-size: 16px;
  }

  .header-logo img {
    width: 40px;
    height: 40px;
  }
}


/* ==============================
   IMPORT PANEL BUTTON
============================== */

.import-panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  margin: 0 12px;
  border: 2px solid #f5f5fa;
  border-radius: 25px;
  background: linear-gradient(135deg, #044556, #084058);
  color: #faf9f7;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgb(249, 249, 248);
  transition: all 0.25s ease;
}

.import-panel-link:hover {
  background: linear-gradient(135deg, #0d4169, #024b94);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(246, 246, 245, 0.482);
}


@media screen and (max-width: 600px) {

  header {
    display: flex !important;
    flex-wrap: wrap !important;
  }

  header > .brand-row {
    width: 100% !important;
    flex: 0 0 100% !important;
  }

  header > .import-panel-link {
    display: flex ;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 12px 0 !important;
  }

}


@media (max-width: 600px) {
  .import-panel-link {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    margin: 10px 0;
    justify-content: center;
  }
}


