:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Tahoma, sans-serif;
  color: #172033;
  background: #f5f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  height: 72px;
  max-width: 1120px;
  margin: auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand span {
  color: #5568e8;
}

.language-switch {
  display: flex;
  gap: 8px;
}

.language-switch a {
  padding: 8px 12px;
  border: 1px solid #e0e5ef;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
}

.hero {
  padding: 78px 24px 88px;
  text-align: center;
  color: #fff;
  background: linear-gradient(130deg, #253582, #5968e8 65%, #7883f4);
}

.eyebrow {
  margin: 0 0 12px;
  color: #8895ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.hero .eyebrow {
  color: #c8ceff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin: 0 auto 16px;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -1.5px;
  line-height: 1.15;
}

.subtitle {
  max-width: 600px;
  margin: 0 auto 28px;
  color: #e5e8ff;
  font-size: 17px;
  line-height: 1.7;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #5263df;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.15s ease, transform 0.15s ease;
}

.button:hover {
  background: #3e4fc8;
  transform: translateY(-1px);
}

.button-light {
  color: #3545b5;
  background: #fff;
}

.button-light:hover {
  background: #f0f2ff;
}

.plans {
  max-width: 1120px;
  margin: auto;
  padding: 66px 24px 84px;
}

.section-heading {
  margin-bottom: 28px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 30px;
  letter-spacing: -0.7px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 20px;
}

.plan-card {
  padding: 26px;
  border: 1px solid #e8ebf3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 35px rgb(27 43 94 / 5%);
}

.plan-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.plan-description,
.hint {
  min-height: 24px;
  color: #687187;
  font-size: 14px;
  line-height: 1.7;
}

.price {
  margin: 22px 0;
  font-size: 27px;
  font-weight: 800;
}

.price span {
  color: #687187;
  font-size: 13px;
  font-weight: 600;
}

.empty-state {
  padding: 28px;
  border: 1px dashed #cbd2e2;
  border-radius: 14px;
  color: #687187;
  text-align: center;
}

footer {
  padding: 24px;
  border-top: 1px solid #e8ebf3;
  color: #687187;
  text-align: center;
  font-size: 13px;
}

footer p {
  margin: 0;
}

html[dir="rtl"] {
  font-family: Tahoma, "Segoe UI", sans-serif;
}

html[dir="rtl"] .eyebrow {
  letter-spacing: 0;
}

@media (max-width: 600px) {
  .hero {
    padding: 60px 20px;
  }

  .plans {
    padding: 48px 20px 60px;
  }
}

.account-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 0, rgb(86 103 230 / 11%), transparent 48%),
    #f5f7fb;
}

.account-shell {
  width: min(100%, 1120px);
  min-height: 100vh;
  margin: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.account-card {
  width: min(100%, 480px);
  margin: auto;
  padding: 38px;
  border: 1px solid #e8ebf3;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgb(27 43 94 / 11%);
}

.account-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #eef0ff;
  font-size: 26px;
}

.account-card .eyebrow {
  margin-bottom: 10px;
  color: #5968e8;
  text-align: center;
}

.account-card h1 {
  margin-bottom: 14px;
  text-align: center;
  font-size: clamp(26px, 5vw, 34px);
  letter-spacing: 0;
}

.account-intro {
  margin-bottom: 26px;
  color: #687187;
  font-size: 14px;
  line-height: 1.9;
  text-align: center;
}

.account-form {
  display: grid;
  gap: 11px;
}

.account-form label {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
}

.account-input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #dfe4ef;
  border-radius: 11px;
  outline: none;
  color: #172033;
  background: #fff;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.account-input:focus {
  border-color: #5968e8;
  box-shadow: 0 0 0 4px rgb(89 104 232 / 13%);
}

.account-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 5px;
  cursor: pointer;
  font-size: 15px;
}

.account-code-form {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #e8ebf3;
}

.account-code-input {
  max-width: 220px;
  letter-spacing: 8px;
}

.account-messages {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.account-message {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.account-message.success {
  color: #17613a;
  background: #eaf8ef;
}

.account-message.error {
  color: #9c2c32;
  background: #fff0ef;
}

.account-back-link {
  display: inline-block;
  margin-top: 24px;
  color: #5263df;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.account-footer {
  padding: 18px 0 4px;
  color: #7a8498;
  font-size: 13px;
  text-align: center;
}

.account-dashboard {
  gap: 20px;
}

.account-dashboard .dashboard-title {
  margin: 34px 0 0;
  font-size: clamp(30px, 5vw, 42px);
}

.dashboard-card {
  padding: 28px;
  border: 1px solid #e8ebf3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 35px rgb(27 43 94 / 5%);
}

.dashboard-card .eyebrow {
  color: #5968e8;
  letter-spacing: 0;
}

.dashboard-card h2 {
  margin-bottom: 8px;
  font-size: 16px;
}

.dashboard-phone {
  margin-bottom: 20px;
  color: #5263df;
  font-size: 25px;
  font-weight: 800;
}

.dashboard-telegram {
  display: grid;
  gap: 7px;
  padding-top: 16px;
  border-top: 1px solid #e8ebf3;
}

.dashboard-telegram span,
.dashboard-telegram small {
  color: #687187;
  overflow-wrap: anywhere;
}

.table-wrap {
  overflow-x: auto;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
}

.orders-table th,
.orders-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #e8ebf3;
  white-space: nowrap;
}

.orders-table th {
  color: #687187;
  font-size: 13px;
}

@media (max-width: 600px) {
  .account-shell {
    padding: 18px;
  }

  .account-card {
    padding: 28px 22px;
  }

  .dashboard-card {
    padding: 22px 18px;
  }
}
