/* Shared visual language for all cabinet pages. The home page remains the reference. */
:root {
  color-scheme: dark;
  --panel: rgba(255,255,255,.10);
  --panel-soft: rgba(255,255,255,.075);
  --line: rgba(255,255,255,.20);
  --line-soft: rgba(255,255,255,.15);
  --text-soft: #d5d5d5;
  --green: #3d9b68;
  --green-hover: #55c984;
  --pink: #ff79b7;
  --yellow: #ffd45f;
}

body {
  min-height: 100vh;
  padding: 32px 0 48px;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #fff;
  background:
    linear-gradient(rgba(15,23,42,.78), rgba(15,23,42,.78)),
    url("/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  line-height: 1.55;
}

.page {
  width: min(920px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}
.page.site-header {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto 18px;
  padding: 0;
}

.site-header {
  align-items: flex-end;
  margin-bottom: 18px;
  padding: 0;
  border-bottom: 0;
}

.site-brand { gap: 16px; min-width: 0; }
.site-brand img {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
.site-brand strong { font-size: 32px; line-height: 1.1; }
.site-brand small { margin-top: 5px; color: var(--text-soft); }

.site-status {
  min-width: 250px;
  padding: 18px;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
}
.site-status strong {
  min-width: 0;
  flex: 1;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.site-status button,
.button,
.support-actions button,
.support-ticket > button,
.support-inline-form button,
.support-form button,
.referral-card .button {
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid rgba(151,225,177,.58);
  border-radius: 8px;
  background: rgba(76,124,96,.36);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}

.site-status button {
  width: auto;
  min-height: 0;
  flex: none;
  margin-top: 0;
  padding: 10px 16px;
  font-size: 14px;
}
.site-status button:hover,
.button:hover,
.support-actions button:hover,
.support-ticket > button:hover,
.support-inline-form button:hover,
.support-form button:hover,
.referral-card .button:hover {
  background: rgba(74,194,125,.68);
  border-color: rgba(204,255,220,.94);
  transform: translateY(-1px);
}

.site-nav { margin-bottom: 18px; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(151,225,177,.58);
  border-radius: 8px;
  background: rgba(76,124,96,.36);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.site-nav a:hover { background: rgba(74,194,125,.68); border-color: rgba(204,255,220,.94); }

.page.doc,
.support-form,
.support-ticket,
.guide-app,
.guide-step,
.payment-choice,
.tariff-info-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(0,0,0,.22);
}

.page.doc {
  margin-top: 0;
  margin-bottom: 18px;
  padding: 22px;
}
.referral-card {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.page.doc h1 { margin-top: 0; font-size: 32px; line-height: 1.1; }
.page.doc h2 { margin-top: 28px; font-size: 20px; }
.page.doc h3 { font-size: 17px; }
.guide-intro, .page.doc > p { color: var(--text-soft); }

.quick-actions,
.page.quick-actions {
  margin-top: 18px;
  margin-bottom: 32px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(0,0,0,.22);
}
.quick-actions h2 { margin: 0 0 14px; font-size: 20px; }
.quick-actions-links { gap: 10px; }
.quick-actions-links a {
  min-height: 60px;
  padding: 12px;
  border: 1px solid rgba(151,225,177,.40);
  border-left: 3px solid rgba(255,121,183,.72);
  border-radius: 8px;
  background: rgba(76,124,96,.26);
  box-shadow: none;
}
.quick-actions-links a::after { color: #ff9bc8; }
.quick-actions-links a:hover,
.quick-actions-links a.active {
  background: rgba(74,194,125,.58);
  border-color: rgba(204,255,220,.88);
  border-left-color: var(--pink);
}

.support-page-hint {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0;
  color: #fff3bd;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}
.support-page-hint a { color: #8ff3ff; font-weight: 700; }

/* Keep the signed-in page hint attached to the navigation block. */
.quick-actions:has(+ .support-page-hint) { margin-bottom: 10px; }
body:has(.support-page-hint) { padding-bottom: 14px; }

.guide-choice button,
.guide-app,
.guide-step,
.tariff-info-item,
.support-form,
.support-ticket,
.referral-card,
.payment-choice { border-radius: 12px; }
.guide-choice button:hover,
.guide-choice button.active { background: rgba(74,194,125,.42); border-color: rgba(204,255,220,.82); }
.guide-step { border-left-color: var(--pink); }
.guide-note { border-radius: 12px; border-color: rgba(255,212,95,.48); background: rgba(255,190,54,.12); }
.referral-stat { border-color: rgba(255,132,190,.42); background: rgba(191,62,126,.13); border-radius: 8px; }
.referral-rules, .support-contacts { border-color: var(--line-soft); }

.payment-choice .button,
.support-reply .support-close,
.support-inline-form .support-close,
.support-ticket > .support-close {
  background: rgba(255,193,7,.82);
  border-color: rgba(255,226,132,.90);
  color: #211b0b;
}
.payment-choice .button:hover,
.support-ticket > .support-close:hover { background: #ffd45f; border-color: #fff0ad; }

.payment-confirmation {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(255,212,95,.42);
  border-radius: 12px;
  background: rgba(255,190,54,.10);
}
.payment-confirmation h3 { margin: 0 0 10px; font-size: 18px; }
.payment-confirmation p { margin-bottom: 12px; }
.payment-details {
  display: grid;
  gap: 4px;
  margin: 12px 0;
  padding: 12px;
  border-left: 3px solid var(--yellow);
  border-radius: 8px;
  background: rgba(255,255,255,.075);
}
.payment-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.payment-actions .button { width: auto; }
.payment-actions .button:first-child { background: rgba(255,193,7,.82); border-color: rgba(255,226,132,.90); color: #211b0b; }
.payment-actions .button:first-child:hover { background: #ffd45f; border-color: #fff0ad; }
.payment-notice { color: #d9ffe7; font-weight: 700; }

/* Button treatment based on the mobile app reference: dark surface, cyan edge and text. */
button:not(.renew-link),
.button,
.site-nav a,
.quick-actions-links a,
.referral-card .button,
.referral-actions a,
.copy-row button,
.links a,
.support-actions button,
.support-ticket > button,
.support-inline-form button,
.support-form button {
  border-color: rgba(66,211,236,.56);
  border-radius: 9px;
  background: rgba(18,42,53,.72);
  color: #62dced;
  box-shadow: 0 5px 16px rgba(0,0,0,.14);
}
button:not(.renew-link):hover,
.button:hover,
.site-nav a:hover,
.quick-actions-links a:hover,
.quick-actions-links a.active,
.support-actions button.active,
.referral-card .button:hover,
.referral-actions a:hover,
.copy-row button:hover,
.links a:hover,
.support-actions button:hover,
.support-ticket > button:hover,
.support-inline-form button:hover,
.support-form button:hover {
  background: rgba(32,118,137,.72);
  border-color: rgba(127,239,255,.96);
  color: #d9fbff;
  box-shadow: 0 7px 20px rgba(0,177,211,.18);
}
.site-status button { background: rgba(22,39,48,.78); color: #d9fbff; }
.site-status button:hover { background: rgba(32,118,137,.72); }
.quick-actions-links a.active:hover,
.support-actions button.active:hover,
.guide-choice button.active:hover,
.support-ticket > .support-collapse-ticket:hover {
  background: rgba(30,82,96,.78) !important;
  border-color: rgba(105,226,240,.84) !important;
  color: #b8f5fa !important;
  box-shadow: 0 6px 18px rgba(0,177,211,.18) !important;
  transform: none !important;
}
.quick-actions-links a::after,
.links a::after { color: #79e9f8; }
.payment-actions .button:first-child,
.payment-choice .button,
.support-reply .support-close,
.support-inline-form .support-close,
.support-ticket > .support-close { background: rgba(255,193,7,.82); color: #211b0b; }

input, select, textarea {
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
  background: rgba(52,61,77,.88);
  color: #fff;
  font: inherit;
}

@media (max-width: 680px) {
  body { padding: 24px 0 36px; }
  .page { width: calc(100% - 24px); }
  .page.doc { padding: 20px 18px; }
  .support-page-hint { width: calc(100% - 24px); }
}

@media (max-width: 760px) {
  .page.site-header {
    display: grid;
    grid-template-columns: 1fr;
    width: min(920px, calc(100% - 32px));
    margin-bottom: 18px;
    padding: 0;
  }
  .site-status { min-width: 0; }
}
