/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
    font-family: "Roboto Slab", serif;
    font-weight: 400;
    color: var(--color-rock-dark);
    -webkit-font-smoothing: antialiased;
    font-synthesis: none;
}

/* Keep dashboard headings visually stable before component styles fully apply */
.ds-banner-title,
.ds-section-title,
.ds-desktop-panel-title {
  font-family: var(--font-main);
  font-weight: 400;
}

body.topup-modal-open {
  overflow: hidden;
}

body.pwa-install-modal-open {
  overflow: hidden;
}

:root {
  --font-main: "Roboto Slab", serif;
  --font-small: Inter, Arial, sans-serif;

  --font-size-xs: 12px;
  --font-size-sm: 13px;
  --font-size-md: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 21px;
  --font-size-xxl: 28px;

  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 600;

}

a {
  color: var(--color-rock-blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

button,
button[class],
input[type="button"],
input[type="button"][class],
input[type="submit"],
input[type="submit"][class],
input[type="reset"],
input[type="reset"][class] {
  font-family: var(--font-main);
}

#mobile-app-wrapper {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--theme-bg-page);
}

#desktop-app-wrapper {
  min-height: 100vh;
  background: var(--theme-bg-page);
}

.dashboard {
  padding-bottom: 92px;
}

.dashboard-page-desktop {
  min-height: 100vh;
  padding-bottom: 0;
}

span.uppercase {
	text-transform: uppercase;
}

/* ===== LOGIN PAGE ===== */

.login-screen {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 21px 24px;
  background: var(--theme-bg-page);
  overflow: hidden;
}

.login-hero {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.login-logo {
  width: min(100%, 206px);
  height: auto;
  display: block;
}

.login-form {
  width: 100%;
  max-width: 319px;
  margin-top: 62px;
  display: flex;
  flex-direction: column;
  gap: 21px;
}

.login-field {
  position: relative;
}

.login-input {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: var(--color-bg-grey-soft);
  padding: 0 52px 0 24px;
  color: var(--color-rock-dark);
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 42px;
  letter-spacing: 0.01em;
  outline: none;
}

.login-input::placeholder {
  color: var(--color-rock-dark);
  opacity: 1;
}

.login-field-icon,
.login-field-toggle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-rock-dark);
}

.login-field-icon {
  right: 24px;
  width: 16px;
  height: 16px;
  pointer-events: none;
  font-size: 16px;
}

.login-field-toggle {
  right: 18px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  font-size: 16px;
}

.login-field-toggle:hover,
.login-field-toggle:focus,
.login-field-toggle:active {
  color: var(--color-rock-dark);
}

.login-error {
  min-height: 18px;
  margin-top: -2px;
  margin-bottom: -2px;
  color: var(--color-rock-red);
  font-family: var(--font-small);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.login-error.is-hidden {
  display: none;
}

.login-forgot {
  margin-top: 27px;
  text-align: center;
}

.login-footer {
  width: 100%;
  margin-top: auto;
  padding-top: 56px;
  padding-bottom: 8px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
  font-family: var(--font-small);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--color-rock-dark);
}

.register-screen {
  padding-top: 18px;
  padding-bottom: 32px;
}

.restore-screen {
  padding-top: 18px;
  padding-bottom: 32px;
}

.restore-screen > .app-mobile-topbar {
  align-self: stretch;
  width: calc(100% + 42px);
  margin: -18px -21px 0;
}

.register-hero {
  margin-top: 22px;
}

.restore-hero {
  margin-top: 72px;
}

.register-logo {
  width: min(100%, 150px);
}

.restore-logo {
  width: min(100%, 206px);
}

.register-form {
  margin-top: 50px;
  gap: 24px;
}

.restore-form {
  margin-top: 73px;
  gap: 21px;
}

.restore-request-form {
  margin-top: 73px;
  gap: 21px;
}

.register-input {
  color: var(--color-rock-secondary);
  padding-right: 52px;
}

.restore-input {
  color: var(--color-rock-secondary);
  padding-right: 52px;
}

.register-input.is-filled,
.register-input:focus,
.register-input:not(:placeholder-shown) {
  color: var(--color-rock-dark);
}

.restore-input:focus,
.restore-input:not(:placeholder-shown) {
  color: var(--color-rock-dark);
}

.register-input::placeholder {
  color: var(--color-rock-secondary);
  opacity: 1;
}

.restore-input::placeholder {
  color: var(--color-rock-secondary);
  opacity: 1;
}

.register-input.is-invalid {
  background: var(--color-bg-grey-soft);
  border: 1px solid var(--color-rock-red);
  box-shadow: none;
  color: var(--color-rock-secondary);
}

.restore-input.is-invalid {
  background: var(--color-bg-grey-soft);
  border: 1px solid var(--color-rock-red);
  box-shadow: none;
  color: var(--color-rock-secondary);
}

.register-input.is-invalid::placeholder {
  color: var(--color-rock-secondary);
}

.restore-input.is-invalid::placeholder {
  color: var(--color-rock-secondary);
}

.login-field:has(.register-input.is-invalid) .login-field-icon,
.login-field:has(.register-input.is-invalid) .register-field-toggle {
  color: var(--color-rock-dark);
}

.login-field:has(.restore-input.is-invalid) .restore-field-toggle {
  color: var(--color-rock-dark);
}

.register-field-error {
  padding: 6px 0 0 24px;
  font-family: var(--font-small);
  font-size: 10px;
  line-height: 15px;
  letter-spacing: 0.01em;
  color: var(--color-rock-red);
}

.register-field-error.is-hidden {
  display: none;
}

.register-field-toggle {
  right: 20px;
  color: var(--color-rock-secondary);
}

.restore-field-toggle {
  right: 20px;
  color: var(--color-rock-dark);
}

.register-footer {
  margin-top: 36px;
  padding-top: 0;
}

.restore-footer {
  margin-top: auto;
  padding-top: 56px;
}

.restore-request-hint {
  margin-top: -11px;
  color: var(--color-rock-secondary);
  font-family: var(--font-small);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.01em;
  text-align: left;
}

.activation-consent {
  margin-top: -8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-rock-secondary);
  font-family: var(--font-small);
  font-size: 12px;
  line-height: 1.5;
}

.activation-consent-checkbox {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: var(--color-rock-blue);
  flex: 0 0 auto;
}

.activation-consent-text a {
  color: var(--color-rock-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.activation-consent-text a:hover,
.activation-consent-text a:focus {
  color: var(--color-rock-blue);
}

.activation-request-empty {
  margin-top: -4px;
  padding: 18px 18px 16px;
  border: 1px solid color-mix(in srgb, var(--color-rock-blue) 18%, transparent);
  border-radius: 20px;
  background: var(--color-bg-grey-soft);
}

.activation-request-empty.is-hidden {
  display: none;
}

.activation-request-empty-title {
  color: var(--theme-title-primary);
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.activation-request-empty-text {
  margin-top: 10px;
  color: var(--color-rock-secondary);
  font-family: var(--font-small);
  font-size: 13px;
  line-height: 1.55;
}

.activation-request-empty-actions {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activation-request-empty-hint {
  margin-top: 10px;
  color: var(--color-rock-secondary);
  font-family: var(--font-small);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.restore-success-dialog {
  width: min(calc(100vw - 32px), 585px);
  border-radius: 24px;
  padding: 36px 28px 34px;
}

.restore-success-close {
  top: 24px;
  right: 24px;
  color: var(--color-rock-dark);
}

.restore-success-title {
  margin-top: 68px;
  color: var(--theme-title-primary);
  font-family: var(--font-main);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.restore-success-text {
  margin-top: 20px;
  color: var(--color-rock-dark);
  font-family: var(--font-main);
  font-size: 18px;
  line-height: 1.45;
  text-align: center;
}

.restore-success-primary {
  width: min(100%, 311px);
  margin: 48px auto 0;
  display: block;
}

.restore-success-secondary {
  margin: 28px auto 0;
  display: block;
}

.register-submit-message {
  margin-top: -24px;
  margin-bottom: 0;
  text-align: center;
}

.login-loading {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  color: var(--color-rock-dark);
  font-family: var(--font-small);
  text-align: center;
}

.login-loading-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--color-rock-blue) 18%, transparent);
  border-top-color: var(--color-rock-blue);
  animation: login-loading-spin 0.8s linear infinite;
}

@keyframes login-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.ds-header-link {
  font-size: 14px;
  color: white;
  opacity: 0.9;
}


/* ===== HEADER BANNER ===== */

.ds-banner {
  background: var(--dashboard-bg-header);
  height: 130px; /* можна трохи підправити */
  color: white;
  padding: 19px 20px 0 20px;
  position: relative;
  z-index: 1;
}

.ds-banner-title {
  font-size: 21px;
  font-weight: 400;
  color: var(--theme-title-inverse);
}


.ds-banner-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

/* ============================================================
   BOTTOM NAVIGATION
   ============================================================ */

.ds-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: stretch;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-grey-light-50);
  box-shadow: none;
  height: 60px;
  padding: 0 8px;
  z-index: 1400;
}

.ds-nav-item {
  flex: 1 1 0;
  min-width: 0;
  max-width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  color: var(--color-rock-dark);
  font-size: 10px;
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 12px;
  text-decoration: none;
  padding-top: 8px;
}

.ds-nav-item:hover {
  text-decoration: none;
}

.ds-bottom-nav .ds-nav-item {
  min-width: 0;
  flex: 1 1 0;
}

.ds-nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--theme-nav-item-bg);
  color: var(--color-rock-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  flex: 0 0 auto;
}

.ds-nav-icon::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-image: var(--menu-icon);
  mask-image: var(--menu-icon);
}

.ds-nav-icon.ds-nav-icon-home {
  --menu-icon: url("/assets/img/menu-home.svg");
}

.ds-nav-icon.ds-nav-icon-coaches {
  --menu-icon: url("/assets/img/menu-coaches.svg");
}

.ds-nav-icon.ds-nav-icon-schedule {
  --menu-icon: url("/assets/img/menu-schedule.svg");
}

.ds-nav-icon.ds-nav-icon-settings {
  --menu-icon: url("/assets/img/menu-settings.svg");
}

.ds-nav-item span:last-child {
  display: block;
  white-space: nowrap;
}

.ds-nav-item.active {
  color: var(--color-rock-dark);
}

.ds-nav-item.active .ds-nav-icon {
  background: var(--color-rock-blue-highlight);
  color: var(--color-rock-blue);
}

.dark .ds-nav-item.active .ds-nav-icon {
  color: var(--color-rock-turquoise);
}





