:root {
  --bg-main: #000000;
  --bg-card: #0F0F0F;
  --bg-card-hover: #1A1A1A;
  --color-primary: #FF9F00;
  --color-purple: #B233FF;
  --color-green: #00C853;
  --text-main: #FFFFFF;
  --text-muted: #AAAAAA;
  --border-color: rgba(255, 255, 255, 0.08);
  --text-week: #888888;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
}

.auth-screen {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: #000;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 400px;
}

.shift-loc-info-without-first-child {
  color: #888;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.last-update-info {
  text-align: center;
  color: #8e8e93;
  font-size: 11px;
  margin-top: 24px;
  margin-bottom: 8px;
  font-weight: 400;
}

.last-update-info span {
  display: inline-block;
}

.shift-loc-info,
.shift-motiv-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}


.shift-loc-info span:first-child,
#ui-motivation-icon {
  width: 16px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}


#ui-shift-branch,
#ui-motivation-text {
  flex: 1;
  line-height: 1.2;

}

.auth-content {
  width: 100%;
  padding: 69px 16px 20px 16px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.auth-logo {
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.auth-logo::before {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  background: rgba(255, 159, 0, 0.5);
  border-radius: 50%;
  filter: blur(30px);
  z-index: 1;
}

.auth-logo img,
.auth-logo svg {
  z-index: 2;
  height: auto;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-title {
  color: #FF9F00;
  font-size: 24px;
  font-weight: 800;
  line-height: 29px;
  text-align: inherit;
}

.auth-subtitle {
  color: #FFF;
  font-size: 16px;
  font-weight: 400;
  line-height: 23px;
  letter-spacing: 0.32px;
  text-align: inherit;
}

.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.auth-input-wrapper {
  width: 100%;
  height: 60px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.auth-input-wrapper:focus-within {
  border-color: rgba(255, 159, 0, 0.5);
}

.auth-input-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(170, 170, 170, 1);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.28px;
  pointer-events: none;
  transition: all 0.2s ease;
}

.auth-phone-input:focus~.auth-input-label,
.auth-phone-input:not(:placeholder-shown)~.auth-input-label {
  top: 10px;
  transform: translateY(0);
  font-size: 11px;
  color: #AAA;
  letter-spacing: 0.22px;
}

.auth-input-label.error-active {
  top: 10px;
  transform: translateY(0);
  font-size: 11px;
  color: #FF4444;
  letter-spacing: 0.22px;
}

.auth-phone-input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #FFF;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.28px;
  caret-color: #FF9F00;
  padding-top: 14px;
  text-align: left;
  padding-right: 30px;
}

.auth-phone-input::placeholder {
  color: transparent;
}

.auth-input-clear {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 22px;
  cursor: pointer;
  display: none;
  line-height: 1;
  padding: 5px;
  transition: color 0.2s ease;
  z-index: 2;
}

.auth-input-clear:hover {
  color: #FFF;
}

.auth-input-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-input-wrapper.auth-input-error {
  border-color: rgba(255, 63, 66, 0.5);
  ;
  background: rgba(255, 68, 68, 0.08);
}

.auth-input-wrapper.auth-input-error:focus-within {
  border-color: #FF4444;
}

.login-error {
  color: #D94444;
  font-size: 11px;
  font-weight: 400;
  text-align: left;
  line-height: 1.4;
}

.auth-button {
  width: 100%;
  height: 60px;
  background: #FF9F00;
  border: none;
  border-radius: 12px;
  color: #000;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-button:hover {
  background: #FFB033;
}

.auth-button:active {
  background: #E68F00;
}

.auth-button:disabled {
  background: #734700;
  color: rgba(0, 0, 0, 0.5);
  cursor: not-allowed;
  pointer-events: none;
}

.back-button {
  align-self: flex-start;
  margin-bottom: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.back-button:hover {
  opacity: 0.7;
}

.verify-code-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.verify-code-wrapper {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.verify-code-input {
  width: 100%;
  max-width: 76px;
  height: 60px;
  background: #171717;
  border: 1px solid #171717;
  border-radius: 12px;
  color: #FFF;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  outline: none;
  transition: all 0.2s ease;
}

.verify-code-input.verify-input-error {
  border-color: #D94444;
  background: rgba(255, 68, 68, 0.08);
}

.verify-code-input:focus:not(.verify-input-error),
.verify-code-input.filled:not(.verify-input-error) {
  border-color: rgba(255, 159, 0, 0.5);
  background: rgba(255, 159, 0, 0.05);
  box-shadow: 0 0 8px rgba(255, 159, 0, 0.2);
}




.verify-error {
  color: #D94444;
  font-size: 11px;
  font-weight: 400;
  text-align: left;
  margin: 0;
  padding-left: 4px;
}

#verify-btn:disabled {
  background: #B37100;
  color: #000;
  cursor: not-allowed;
  pointer-events: none;
}

.verify-change-link {
  color: #FF9F00;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.verify-change-link:hover {
  text-decoration: underline;
}

.verify-resend-wrapper {
  text-align: center;
}

#resend-timer {
  color: rgba(255, 255, 255, 1);
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  display: block;
}

.verify-resend-active {
  color: #FF9F00;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.verify-resend-active:hover {
  text-decoration: underline;
}

.verify-header {
  gap: 16px;
}

.verify-subtitle {
  font-size: 14px;
  line-height: 20px;
}

.verify-phone {
  font-weight: 700;
  color: #FFF;
  margin-right: 8px;
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  z-index: 9999;
  overflow: hidden;
}

#loading-screen::before {
  content: "";
  position: absolute;
  width: 185px;
  height: 160px;
  background: rgba(255, 159, 0, 0.3);
  border-radius: 50%;
  filter: blur(80px);
  transform: translate(0%, -20%);
}

.loading-logo-glow::before {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;

  border: 3px solid rgba(255, 159, 0, 0.4);
  box-sizing: border-box;
}

.loading-logo-glow {
  width: 90px;
  height: 90px;
  background: #FF9F00;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.loading-logo-glow img {
  width: 90px;
  height: 90px;
  z-index: 2;
  position: relative;

  filter: drop-shadow(0 0 20px rgba(255, 159, 0, 0.4));
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.loading-logo-glow::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;

  border: 3px solid transparent;
  border-top: 3px solid #FF9F00;
  box-sizing: border-box;


  filter: drop-shadow(0 0 5px rgba(255, 159, 0, 0.8));

  animation: logo-spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  z-index: 2;
}

.loading-text {
  color: #AAA;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.8;
}


#instruction-screen {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.onboarding-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  z-index: 100;
  transition: opacity 0.5s ease;
}

.onboarding-content {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  padding-top: 60px;
  padding-bottom: 40px;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
}


.onboarding-close {
  position: absolute;
  top: 24px;
  right: 24px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.onboarding-close:hover {
  opacity: 1;
}

.onboarding-btn {
  max-height: 60px;
}

.onboarding-title {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 10px;
  width: 100%;
  color: #FFF;
}

.os-toggle-wrapper-admin {
  display: flex;
  background: #1A1A1A;
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.os-toggle-wrapper {
  display: flex;
  background: #1A1A1A;
  border-radius: 10px;
  padding: 4px;
  width: 100%;
  gap: 4px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.os-tab {
  flex: 1;
  height: 35px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #FFF;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.os-tab.active {
  background: #FF9F00;
  color: #000;
}

.os-content {
  width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;

}

.os-subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.os-list {
  color: #FFF;
  font-size: 15px;
  line-height: 1.5;
  padding-left: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.os-list li {
  padding-left: 6px;
}

.os-list li::marker {
  font-variant-numeric: tabular-nums;
}

.os-list b {
  font-weight: 700;
}

.inline-step-icon {
  height: auto;
  width: auto;
  vertical-align: middle;
  display: inline-block;
  margin-left: 6px;
  margin-top: -3px;
}

.inline-icon {
  color: #FF9F00;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin: 0 4px;
}

.app-container {
  max-width: 400px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

.main-content {
  padding: 16px 6px 0px 6px;
  max-width: 100vw;
}

#ui-share-history .share-row {

  padding-right: 32px;
}

.calendar-grid-error {
  display: flex;
  justify-content: center;
  align-items: center;
}

#ui-share-history {
  padding-right: 0;
  gap: 12px;
}

.bottom-nav-spacer {
  height: 90px;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 4px 4px 4px 4px;
  position: relative;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

section {
  margin-bottom: 24px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.header-logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  background-color: var(--color-primary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.brand-name {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.brand-subtitle {
  color: var(--color-primary);
  font-size: 10px;
  letter-spacing: 1px;
}

.header-update-area {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: right;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.header-update-area:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.05);
}


.header-update-area:active .update-icon-btn img {
  transform: rotate(180deg);
}

.update-icon-btn img {
  transition: transform 0.4s ease;
  display: block;
}

.header-update-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.update-date {
  font-size: 15px;
  color: #FFFFFF;
  line-height: 1.2;
}

.update-time {
  color: var(--text-week);
  font-size: 12px;
  line-height: 1.2;
  margin-top: 2px;
}

.update-icon-btn {
  cursor: pointer;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
}

.update-icon-btn:active {
  transform: rotate(180deg);
}

.update-icon-btn img {
  width: 24px;
  height: 24px;
}

.header-date {
  text-align: right;
}

.date-day {
  font-weight: 700;
  font-size: 14px;
}

.date-weekday {
  color: var(--text-muted);
  font-size: 11px;
}

.notification-banner {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 159, 0, 0.15);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  animation: notifySlideIn 0.5s ease-out;
}

.notification-banner.hiding {
  animation: notifySlideOut 0.45s ease forwards;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 159, 0, 0.2);
}

.notification-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right,
      rgba(255, 159, 0, 0) 0%,
      rgba(255, 159, 0, 0.3) 50%,
      rgba(255, 159, 0, 0) 100%);
  z-index: 1;
}

@keyframes notifySlideIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes notifySlideOut {
  0% {
    opacity: 1;
    transform: translateY(0);
    max-height: 80px;
    margin-bottom: 32px;
  }

  60% {
    opacity: 0;
    transform: translateY(-16px);
    max-height: 80px;
    margin-bottom: 32px;
  }

  100% {
    opacity: 0;
    transform: translateY(-16px);
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    overflow: hidden;
  }
}

.notify-icon-wrapper {
  position: relative;
  font-size: 24px;
  background: rgba(255, 159, 0, 0.1);
  padding: 8px 0px 8px 12px;
  border-radius: 35%;
  width: 48px;
  height: 48px;
}

.notify-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background-color: var(--color-primary);
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}

.notify-text {
  flex-grow: 1;
}

.notify-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 2px;
}

.notify-desc {
  color: var(--text-week);
  font-size: 11px;
  line-height: 1.3;
}

.notify-btn {
  background-color: var(--color-primary);
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 11px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}


.notify-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.6) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  animation: shine-cycle 5s infinite;
}


@keyframes shine-cycle {
  0% {
    left: -150%;
  }

  50% {
    left: 150%;
  }

  100% {
    left: 150%;
  }
}


.notify-btn:active {
  transform: scale(0.95);
}

.notify-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  margin-left: -4px;
}

.greeting-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 25px;
  margin-top: 5px;
}

.dropdown-text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}


.date-separator {
  display: inline-block;
  width: 4px;
  height: 4px;
  background-color: #FFFFFF;
  border-radius: 50%;
  margin: 0 10px;
  vertical-align: middle;
  opacity: 0.8;
}


.section-label {
  color: var(--text-week);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.icon-calendar {
  margin-right: 12px;
  font-size: 18px;
}

.calendar-accordion-container {
  background: #121212;
  border: 1px solid #2A2A2A;
  border-radius: 16px;
  margin-top: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.calendar-header-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 16px;
  display: flex;
  align-items: center;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 12px;
}

.calendar-header-btn .accordion-chevron {
  margin-left: auto;
  transition: transform 0.3s ease;
  margin-right: 0;
  width: 24px;
}

.calendar-accordion-container.expanded .calendar-header-btn .accordion-chevron {
  transform: rotate(180deg);
  width: 24px;
  display: flex;
  justify-content: flex-end;
}

.calendar-body-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease-out;
  padding: 0 16px;
}

.calendar-body-inner {
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.calendar-accordion-container.expanded .calendar-body-content {
  grid-template-rows: 1fr;
  padding: 0 16px 16px 16px;
}

.calendar-accordion-container.expanded .calendar-body-inner {
  opacity: 1;
}

.calendar-month-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #2A2A2A;
  border-radius: 12px;
  padding: 8px 16px;
  margin-bottom: 16px;
}

.calendar-nav-btn {
  background: none;
  border: none;
  color: #FF9F00;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.calendar-month-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-week);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  color: var(--text-week);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-day {
  background: transparent;
  border: 1px solid #222222;
  border-radius: 8px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.25);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.cal-day.empty {
  border-color: transparent;
  cursor: default;
}

.cal-day.has-data {
  color: #FF9F00;
}

.cal-day.selected {
  background: #FF9F00;
  border-color: #FF9F00;
  color: #000000;
}

.cal-amount {
  font-size: 9px;
  font-weight: 500;
  margin-top: 4px;
}

.cal-day.selected .cal-amount {
  color: #000000;
}

.cal-day.has-data:not(.selected) .cal-amount {
  color: #FF9F00;
}

.shift-card {
  background: #121212;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #2A2A2A;
}

.shift-info-top {
  display: flex;
  justify-content: space-between;

  align-items: stretch;
  margin-bottom: 16px;
}

.shift-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.shift-number {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
}

.shift-location {
  font-size: 13px;
  color: var(--text-week);
  display: flex;
  align-items: center;
  gap: 8px;
}

.shift-motivation {
  font-size: 13px;
  color: var(--text-week);
  display: flex;
  align-items: center;
  gap: 8px;
}

.shift-visits {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.21);
  ;
  padding-left: 16px;
  margin-left: 12px;
  min-width: 65px;

  /* 2. Добавляем отрицательные отступы сверху и снизу, 
     чтобы линия доходила до краев карточки (если нужно) */
  margin-top: 4px;
  margin-bottom: 4px;
}

.visits-count {
  font-size: 26px;
  font-weight: 800;
  color: #FF9F00;
  line-height: 1;
  margin-bottom: 4px;
}

.visits-label {
  font-size: 10px;
  color: var(--text-week);
  text-transform: lowercase;
  font-weight: 500;
}

.shift-progress-pills {
  display: flex;
  gap: 4px;
  width: 100%;
}

.shift-progress-pills .pill {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #333333;
}

.shift-progress-pills .pill.active {
  background: #FF9F00;
}

.vat-toggle-container {
  display: inline-flex;
  background: #18181A;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 16px;
  border: 1px solid #2A2A2A;
}

.vat-btn {
  background: transparent;
  border: none;
  color: var(--text-week);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vat-btn.active {
  background: #FF9F00;
  color: #000000;
}

.financial-wrapper {
  transition: opacity 0.3s ease;
}

.accordion-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.accordion-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.accordion-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  transition: color 0.3s ease;
}

.accordion-chevron {
  margin-left: auto;
  transition: transform 0.3s ease;
  display: flex;
  color: #888;
}

.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-out;
}

.accordion-content {
  overflow: hidden;
  padding: 0 16px;
  opacity: 0;
  transition: opacity 0.3s ease, padding 0.3s ease;
}

.accordion-card.expanded .accordion-body {
  grid-template-rows: 1fr;
}

.accordion-card.expanded .accordion-content {
  padding: 0 16px 20px 16px;
  opacity: 1;
}

.accordion-card.expanded .accordion-chevron {
  transform: rotate(180deg);
}

.center-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 16px 16px;
}

.header-text-group {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.accordion-label-small {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-week);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cal-error-wrapper {
  grid-column: 1 / -1;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 14px;
  gap: 12px;
  text-align: center;
}

.cal-error-icon {
  font-size: 32px;
  margin-bottom: 4px;
}

.accordion-value-huge {
  font-size: 40px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
}

.accordion-card.earnings-card {

  background: linear-gradient(55deg,
      rgba(0, 200, 83, 0.12) 0%,
      rgba(0, 200, 83, 0.04) 100%) !important;

  border: 1px solid rgba(0, 200, 83, 0.2);
  position: relative;
  box-shadow: none;
}

.earnings-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right,
      rgba(0, 200, 83, 0) 0%,
      rgba(0, 200, 83, 0.5) 50%,
      rgba(0, 200, 83, 0) 100%);
  z-index: 2;
}

.earnings-card .accordion-label-small,
.earnings-card .accordion-chevron {
  color: #00C853 !important;
}

.earnings-card .accordion-content {
  padding-top: 16px;
}

.earnings-card .breakdown-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.earnings-card .breakdown-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.earnings-card .total-green-row .breakdown-row-left {
  color: var(--text-week);
}

.note-center {
  text-align: center;
  color: #8f8f8f;
  font-size: 10px;
  margin-top: 15px;
  margin-bottom: auto;
}

.gray {
  color: var(--text-week);
}

.earnings-card .total-green-row .breakdown-row-right {
  color: #00C853;
  font-size: 16px;
  font-weight: 800;
}

.breakdown-list2 {
  display: flex;
  flex-direction: column;
  gap: 12px;

  border-top: 1px solid rgba(255, 255, 255, 0.05);

}

.breakdown-list {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);

}

.revenue-card-orange {
  position: relative;
  overflow: hidden;
}

.orange {
  color: #FF9F00;
}

.revenue-card-orange::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      rgba(255, 159, 0, 0) 0%,
      rgba(255, 159, 0, 1) 50%,
      rgba(255, 159, 0, 0) 100%);
  z-index: 2;

  box-shadow: 0 1px 4px rgba(255, 159, 0, 0.3);
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;

  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.breakdown-row2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;

  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.breakdown-row2:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.breakdown-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.breakdown-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.breakdown-row-right {
  font-weight: 700;
  color: var(--text-main);
  font-size: 18px;
}

.breakdown-subtext {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.breakdown-icon {
  font-size: 16px;
}

.share-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.breakdown-list .share-row:last-child {
  margin-bottom: 0;
}

.share-date {
  width: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-week);
}

.share-row.header-row .share-date {
  color: #FFFFFF;
}

.share-track {
  flex: 1;
  height: 22px;
  background: #1C1C1E;
  border-radius: 6px;
  position: relative;
  display: flex;
  align-items: center;
}

.share-fill {
  height: 100%;
  background: linear-gradient(to right, rgba(156, 81, 182, 0.5) 0%, #B855D6 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  transition: width 0.4s ease;
  min-width: 4px;
}

.share-text {
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  padding-right: 8px;
}

.share-text.outside {
  position: absolute;
  padding-right: 0;
  margin-left: 6px;
}

.bonus-card {
  background: #121212;
  border: 1px solid #2A2A2A;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}

.bonus-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.bonus-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bonus-amount {
  font-size: 22px;
  font-weight: 800;
}

.color-yellow {
  color: var(--color-primary);
}

.color-purple {
  color: var(--color-purple);
}

.color-blue {
  color: #00A3FF;
}

.bonus-desc {
  font-size: 12px;
  color: var(--text-week);
  line-height: 1.4;
  margin-bottom: 36px;
}

.bonus-desc b {
  color: var(--text-muted);
}

.bonus-bar-container {
  position: relative;
  width: 100%;
  margin-bottom: 8px;
}

.bonus-track {
  height: 8px;
  background: transparent;
  position: relative;
  overflow: visible;
}




.bonus-bg-empty {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(102, 102, 102, 0.4) 0%, #666 100%);
  border-radius: 2px;
  z-index: 0;
  transition: left 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}


.bonus-target-line {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 1px;
  background: #FFFFFF;
  z-index: 5;
  transform: translateX(-50%);
}

.bonus-label {
  position: absolute;
  bottom: 32px;
  font-size: 11px;
  font-weight: 800;
  transform: translateX(-50%);
  white-space: nowrap;

  transition: left 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 10;
}

.bonus-track {
  height: 8px;
  background: transparent;
  position: relative;
  overflow: visible;
}


.bonus-bar-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 2px;
  overflow: hidden;
  background: #1a1a1a;
}


.bonus-gradient-track {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;

  background: linear-gradient(90deg, rgba(102, 102, 102, 0.4) 0%, #666 100%);
  z-index: 1;
  transition: left 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}


.bonus-target-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;

  background: rgba(0, 0, 0, 0.35);
  z-index: 2;
}


.bonus-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  border-radius: 2px;
}


.bonus-sold-lbl-yellow,
.bonus-sold-lbl-purple {
  position: absolute;
  transform: translateX(-50%);
  transition: left 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  white-space: nowrap;
}

s .bonus-label.target {
  bottom: 32px;
  color: #FFFFFF;
  opacity: 0.8;
}

.bonus-label.offset-up {
  font-size: 12px;
}

.bonus-footer-labels {
  display: flex;
  justify-content: end;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 8px;
  position: relative;
}

.next-shift-card {
  background: #121212;
  border: 1px solid rgba(255, 159, 0, 0.2);
  border-radius: 16px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

.next-shift-label {
  color: #FF9F00;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.next-shift-date-text {
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.next-shift-watermark {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 70px;
  font-weight: 900;
  color: rgba(255, 159, 0, 0.1);
  line-height: 1;
  pointer-events: none;
}

.schedule-day {
  background: transparent;
  border: 1px solid #222222;
  border-radius: 8px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #555555;
  font-size: 14px;
  font-weight: 600;
}

.schedule-day.shift {
  background: rgba(255, 159, 0, 0.15);
  border-color: rgba(255, 159, 0, 0.3);
  color: #FF9F00;
}

.schedule-day.shift.highlight {
  background: #FF9F00;
  color: #000000;
}

.schedule-subtext {
  font-size: 8px;
  font-weight: 600;
  margin-top: 2px;
}

.schedule-day.shift.highlight .schedule-subtext {
  color: #000000;
}

.schedule-footer {
  text-align: center;
  color: #666666;
  font-size: 11px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #222222;
}

.footer-update-text {
  text-align: center;
  color: #666666;
  font-size: 11px;
  margin-top: 24px;
  margin-bottom: 32px;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #0F0F0F;
  border-top: 1px solid #1a1a1a;
  display: flex;
  padding: 6px 3px;
  padding-bottom: calc(6px + env(safe-area-inset-bottom));
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 8px 0;
  text-decoration: none;
  color: #FFFFFF;
  flex: 1;
  margin: 0 3px;
  border-radius: 24px;


  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;


  transform: scale(1);
}

/* ЭФФЕКТ ПРИ НАЖАТИИ (Тактильный отклик) 
   Когда пользователь зажимает пальцем кнопку, она слегка уменьшается */
.nav-item:active {
  transform: scale(0.9);
  background-color: rgba(255, 255, 255, 0.05);
}

/* ЭФФЕКТ ПРИ АКТИВАЦИИ
   Когда вкладка становится активной, она плавно "вырастает" */
.nav-item.active {
  background-color: rgba(255, 159, 0, 0.18);
  color: #FF9F00;

  animation: navItemPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}



.nav-item.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 18px;
  box-shadow: 0 0 15px rgba(255, 159, 0, 0.1);
  pointer-events: none;
}

.nav-indicator {
  position: absolute;
  left: 0;
  top: 8px;
  bottom: calc(8px + env(safe-area-inset-bottom));
  background-color: rgba(255, 159, 0, 0.15);
  border-radius: 18px;
  z-index: 0;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
    width 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}


.nav-item.active {
  background-color: transparent !important;
}

.inline-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.inline-header h2 {
  margin: 0;
  font-size: 18px;
}

.ui-sal-bonus {
  color: var(--text-muted);
}

.icon-box {
  border-radius: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}


.cal-day.future-shift {
  cursor: default;
  background: transparent;
}

.cal-day.future-shift .cal-amount {
  display: none;
}

.cal-loader {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px 0;
  color: #FF9F00;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 159, 0, 0.3);
  border-radius: 50%;
  border-top-color: #FF9F00;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.85);
  padding: 16px;
}

.page-title {
  font-size: 24px;
  font-weight: 800;
  margin: 20px 0 16px 0;
  color: #FFF;
}

.dark-nav-btn {
  background: #121212;
  border: 1px solid #2A2A2A;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #FFF;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 16px;
}

.chart-card {
  width: 100%;
  overflow: hidden;
  padding: 16px 0 16px 16px;
  margin-bottom: 30px;
}

.css-chart {
  display: flex;
  align-items: stretch;
  height: 220px;
  position: relative;
}

.y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 12px;
  font-size: 10px;
  color: #FFF;
  position: sticky;
  left: 0;
  background: var(--bg-card);
  z-index: 10;
}

.chart-bars {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-right: 16px;
  align-items: flex-end;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chart-bars::-webkit-scrollbar {
  display: none;
}

.chart-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  min-width: 44px;
}

.bars-container {
  display: flex;
  gap: 6px;
  height: 100%;
  align-items: flex-end;
  position: relative;
  width: 100%;
  justify-content: center;
}

.bar {
  width: 16px;
  border-radius: 10px;
  position: relative;
  display: flex;
  justify-content: center;
}

.bar-gray {
  background: #444;
}

.bar-green {
  background: #00C853;
}

.bar-val {
  position: absolute;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.val-inside {
  top: 8px;
}

.val-outside {
  bottom: calc(100% + 6px);
}

.bar-gray .val-inside,
.bar-gray .val-outside {
  color: #FFF;
}

.bar-green .val-inside {
  color: #000;
}

.bar-green .val-outside {
  color: #00E676;
}

.bar-topup {
  position: absolute;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  font-weight: 700;
  color: #B855D6;
  white-space: nowrap;
}

.expected-income-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right,
      rgba(0, 200, 83, 0) 0%,
      rgba(0, 200, 83, 0.8) 50%,
      rgba(0, 200, 83, 0) 100%);
  z-index: 2;
}

.x-axis-label {
  font-size: 10px;
  color: #888;
  font-weight: 600;
}

.chart-legend {
  border-top: 1px solid #222;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 10px;
}

.legend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.expected-income-card {
  border: 1px solid rgba(0, 200, 83, 0.3);
  background: linear-gradient(135deg,
      rgba(0, 200, 83, 0.12) 0%,
      rgba(0, 200, 83, 0.04) 100%);
  position: relative;
  overflow: hidden;
}

.income-green {
  color: #00E676;
  font-size: 18px;
  white-space: nowrap;
}

.income-header-title {
  color: #00C853;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-align: center;
}

.income-total {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  white-space: nowrap;
}

.income-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
  font-weight: 500;
}

.income-row:last-child {
  border-bottom: none;
}

.income-val {
  font-weight: 800;
  font-size: 18px;
  white-space: nowrap;
}

.sub-val {
  font-size: 11px;
  color: #888;
  display: block;
  margin-top: 4px;
  font-weight: 500;
}

.rules-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.rules-header {
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.rules-badge {
  font-size: 14px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
}

.badge-purple {
  background: rgba(178, 51, 255, 0.2);
  color: #B233FF;
}

.badge-blue {
  background: rgba(0, 163, 255, 0.2);
  color: #00A3FF;
}

.rules-bar-container {
  display: flex;
  width: 100%;
  height: 12px;
  margin-top: 16px;
  background: transparent;
}

.rule-segment {
  flex: 1;
  background: #222;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease;
}


.rule-segment-fill {
  height: 100%;
  width: 0%;
  transition: width 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fill-purple {
  background: #B233FF;
}

.fill-blue {
  background: #00A3FF;
}

.rules-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 1s ease;
}

.rules-bar-purple {
  background: #B233FF;
}

.rules-bar-blue {
  background: #00A3FF;
}

.rules-scale-labels {
  display: flex;
  margin-top: 10px;
  padding: 0;
}


.rules-scale-labels span {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: #888;
  /* Добавляем небольшой сдвиг, чтобы цифра была по центру блока, 
     учитывая margin-right: 6px у блоков */
  padding-right: 6px;
}


.rules-scale-labels span:last-child {
  padding-right: 0;
}

.rules-chevron {
  display: flex;
  justify-content: center;
  color: #666;
  margin-top: 12px;
  transition: transform 0.3s ease;
}

.rules-card.expanded .rules-chevron {
  transform: rotate(180deg);
}

.rules-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-out;
  padding: 0 16px;
}

.rules-content {
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rules-card.expanded .rules-body {
  grid-template-rows: 1fr;
  padding: 0 16px 16px 16px;
}

.rules-card.expanded .rules-content {
  opacity: 1;
}

.rules-detail-text {
  font-size: 13px;
  color: #AAA;
  margin-top: 8px;
  line-height: 1.5;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 4px;
}

.rule-item {
  font-size: 12px;
  color: #AAA;
  white-space: nowrap;
}

.rule-item b {
  color: #FFF;
  font-weight: 600;
}

.summary-card-dark {
  border: 1px solid rgba(255, 159, 0, 0.2);
  background: linear-gradient(135deg,
      rgba(255, 159, 0, 0.12) 0%,
      rgba(255, 159, 0, 0.04) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 159, 0, 0.05);
}

.visits-list-card {
  background: #111111 !important;
  border-radius: 16px;
  padding: 20px 12px;
  border: 1px solid #222222;
  margin-bottom: 24px;
}

.visit-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.visit-row:last-child {
  margin-bottom: 0;
}

.visit-time {
  width: 42px;
  font-size: 11px;
  font-weight: 700;
  color: #888;
  text-align: right;
  padding-top: 2px;
}

.visit-time.is-goods {
  color: #FF9F00;
}

.visit-icon {
  width: 20px;
  display: flex;
  justify-content: center;
}

.visit-content {
  flex: 1;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.visit-row:last-child .visit-content {
  border-bottom: none;
  padding-bottom: 0;
}

.visit-name {
  font-size: 15px;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 6px;
  line-height: 1.2;
}

.visit-calc {
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
  font-weight: 500;
}

.visit-calc b {
  color: #888;
}

.visit-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.visit-tag.gold {
  color: #FFD700;
}

.visit-tag.gray {
  color: #AAA;
}

.visit-total-block {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
}

.visit-total-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #00E676;
  margin-bottom: 2px;
}

.visit-total-val {
  font-size: 14px;
  font-weight: 800;
  color: #FFF;
}

.cal-day-sub {
  font-size: 8px;
  color: #FF9F00;
  font-weight: 700;
  margin-top: 2px;
}

.bonus-current-line {
  position: absolute;
  top: -6px;
  bottom: -6px;
  width: 2px;
  z-index: 6;
  transform: translateX(-50%);
  transition: left 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.shift-card-ongoing {
  background: linear-gradient(to bottom right,
      rgba(255, 159, 0, 0.44) 0%,
      rgba(255, 159, 0, 0.15) 100%);
  border: 1px solid rgba(255, 159, 0, 0.5) !important;
}

.shift-card-ongoing .shift-visits {
  border-left: 1px solid rgba(255, 159, 0, 0.2);
}


.shift-card-ongoing .shift-motiv-info {
  color: #FFFFFF;
}


.shift-card-ongoing .shift-progress-pills .pill {
  background: rgba(255, 159, 0, 0.15);
}


.shift-card-ongoing .shift-progress-pills .pill.active {
  background: linear-gradient(180deg, #FFC066 0%, #FF9F00 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5);
}


.tl-row {
  display: flex;
  position: relative;
}


.tl-time {
  width: 50px;
  flex-shrink: 0;
  text-align: right;
  padding-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: #888;
  padding-right: 12px;
}

.tl-goods-lbl {
  color: #FF9F00;
  font-weight: 700;
}


.tl-divider {
  position: relative;
  width: 20px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.tl-divider::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(-50%);
}

.tl-row:last-child .tl-divider::before {
  bottom: 50%;
}

.tl-icon {
  position: relative;
  z-index: 2;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  margin-top: 2px;
  background: var(--bg-main);
}

.tl-icon img {
  width: 14px;
  height: 14px;
}

.tl-icon-goods {
  font-size: 12px;
  background: transparent;
}

.tl-icon-own {
  background: rgba(178, 51, 255, 0.2);
}

.tl-icon-rep {
  background: transparent;
}


.tl-content {
  flex: 1;
  padding-left: 12px;
  padding-bottom: 32px;
}

.tl-client-name {
  font-size: 15px;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 6px;
  line-height: 1.2;
}

.tl-item {
  margin-bottom: 12px;
}

.tl-item-title {
  font-size: 13px;
  color: #AAA;
  line-height: 1.3;
  margin-bottom: 4px;
}

.tl-item-calc {
  text-align: right;
  font-size: 13px;
}

.tl-calc-gray {
  color: #888;
  margin-right: 4px;
}

.tl-calc-white2 {
  color: #FFF;
}

.tl-calc-white {
  color: #FFF;
  font-weight: 700;
}


.tl-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 16px;
  margin-bottom: 4px;
  color: #FF9F00;
}


.tl-total-box {
  margin-top: 12px;
  text-align: right;
}

.tl-total-lbl {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #00E676;
  margin-bottom: 2px;
}

.tl-total-val {
  font-size: 15px;
  font-weight: 800;
  color: #FFF;
}

.nav-text {
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

/* =========================================
   1. ТАКТИЛЬНЫЙ ОТКЛИК (Micro-interactions) 
   ========================================= */

.card,
.bonus-card,
.next-shift-card,
.visits-list-card,
.nav-item,
.vat-btn,
.calendar-header-btn {
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), filter 0.15s ease !important;

  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}


.card:active,
.bonus-card:active,
.next-shift-card:active,
.visits-list-card:active,
.nav-item:active,
.vat-btn:active,
.calendar-header-btn:active {
  transform: scale(0.99) !important;
  filter: brightness(1.1);
}


.nav-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-bottom: 2px;



  background-color: currentColor;


  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.custom-toast {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  min-width: 280px;
  max-width: 92%;
  background: #121212;
  border-radius: 16px;
  padding: 8px 16px 8px 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  transition: top 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: auto;
}

.custom-toast.show {
  top: 24px;
  opacity: 1;
}


.toast-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}


.toast-text {
  flex-grow: 1;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
}


.toast-close {
  color: #888;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

.toast-close:hover {
  color: #FFF;
}


.custom-toast.success {
  border: 1px solid rgba(0, 230, 118, 0.15);
}

.custom-toast.success .toast-icon-wrapper {
  background: rgba(0, 230, 118, 0.1);
  color: #00E676;
}

.custom-toast.success .toast-text {
  color: #00E676;
}


.custom-toast.error {
  border: 1px solid rgba(229, 57, 53, 0.15);
}

.custom-toast.error .toast-icon-wrapper {
  background: rgba(229, 57, 53, 0.1);
  color: #E53935;
}

.custom-toast.error .toast-text {
  color: #E53935;
}

@media (display-mode: standalone) {
  .install-hint {
    display: none !important;
  }
}

#view-main,
#view-salary,
#view-clients {
  min-height: calc(100vh - 160px);
}

.main-content {
  width: 100% !important;
  max-width: 100vw;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}


.app-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}


#view-main,
#view-salary,
#view-clients {
  width: 100%;
  box-sizing: border-box;
}

.privilege-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.priv-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 4px;
}

.priv-yes {
  background: rgba(0, 230, 118, 0.1);
  color: #00E676;
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.priv-no {
  background: rgba(255, 255, 255, 0.05);
  color: #666;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: line-through;
}

.admin-branches {
  font-size: 11px;
  color: var(--color-primary);
  margin-top: 6px;
  font-weight: 600;
  opacity: 0.8;
}

a[href^="tel"] {
  color: inherit !important;
  text-decoration: none !important;
  font-size: inherit !important;
  font-family: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

/* =========================================
   EXTRACTED FROM HTML <STYLE> & INLINE STYLES
   ========================================= */

.logo-icon {
  background: none;
  border: none;
  padding: 0;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.notify-icon-wrapper img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

.icon-box.purple {
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-box img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.icon-calendar {
  display: flex;
  align-items: center;
  margin-right: 6px;
}

.shift-loc-info {
  color: #888;
  font-size: 13px;
  gap: 6px;
}

.shift-motiv-info {
  color: #888;
  font-size: 12px;
  gap: 6px;
}

.row-flex-center {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.row-flex-center.mb-8 {
  margin-bottom: 8px;
}

.title-flex {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.desc-muted {
  font-size: 12px;
  color: #AAA;
  line-height: 1.4;
}

.income-left {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--text-muted);
  font-size: 14px;
}

.bonus-sold-lbl-yellow {
  color: #FF9F00;
}

.bonus-sold-lbl-purple {
  color: #AB47BC;
}

.install-hint {
  text-align: center;
  margin-top: 4px;
  font-size: 13px;
  color: #FFF;
  line-height: 1.6;
}

.install-link {
  color: #FF9F00;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-top: 4px;
}

.icon-box-sm {
  width: 20px;
  height: 20px;
}

.icon-box-sm-font {
  width: 20px;
  height: 20px;
  font-size: 12px;
}

.icon-box-sm-font-green {
  width: 20px;
  height: 20px;
  font-size: 12px;
}

.income-total-right {
  text-align: right;
}

.salary-section-title {
  font-size: 14px;
  text-transform: uppercase;
  color: #AAA;
  letter-spacing: 1px;
}

.nav-icon {
  -webkit-mask-image: var(--mask-icon);
  mask-image: var(--mask-icon);
}

.admin-back-link {
  text-decoration: none;
  display: block;
  margin-top: 30px;
}

.admin-back-bar {
  background: #FF9F00;
  text-align: center;
  padding: 10px;
  cursor: pointer;
  border-radius: 10px;
}

.admin-back-text {
  color: #000;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.icon-calendar-img {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

.earnings-card-mt {
  margin-top: 12px;
}

.sal-bonus-sub {
  color: var(--text-muted);
}

.sal-bonus-val {
  font-size: 11px;
  font-weight: 500;
}

.breakdown-row-right-ta {
  text-align: right;
}

.inline-header-mb-sm {
  margin-bottom: 12px;
}

.icon-box-mr {
  margin-right: 12px;
}

.share-accordion-header {
  padding: 16px;
  align-items: center;
  display: flex;
}

.share-header-content {
  flex: 1;
  padding-right: 8px;
}

.accordion-content-pt0 {
  padding-top: 0;
}

.next-shift-inner {
  position: relative;
  z-index: 2;
}

.dropdown-text-lg {
  font-size: 16px;
}

.salary-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #121212;
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.salary-nav-btn {
  background: none;
  border: none;
  color: #FF9F00;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 10px;
  font-weight: bold;
  transition: color 0.2s;
}

.salary-nav-btn:disabled {
  color: #444;
  cursor: default;
}

.salary-nav-title {
  font-weight: 700;
  font-size: 14px;
  color: #FFF;
}

.vat-toggle-mb-lg {
  margin-bottom: 20px;
}

.legend-dot-gray {
  background: #555;
}

.legend-dot-green {
  background: #00E676;
}

.legend-dot-purple {
  background: #B233FF;
}

.expected-income-mb {
  margin-bottom: 24px;
}

.income-accordion-header {
  display: flex;
  align-items: center;
  padding: 16px;
}

.income-center-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-left: 24px;
}

.income-total-nomb {
  margin-bottom: 0;
}

.income-chevron-green {
  color: #00E676;
  margin-left: 0;
}

.income-row-compact {
  border-bottom: none;
  padding: 4px 0;
}

.income-label-muted {
  color: #AAA;
  font-size: 14px;
}

.income-value-white {
  font-weight: 700;
  font-size: 14px;
  color: #FFF;
}

.income-row-total {
  padding: 4px 0;
  border-bottom: none;
}

.income-label-total {
  font-weight: 800;
  font-size: 18px;
  color: #FFF;
}

.income-value-total {
  font-weight: 800;
  font-size: 18px;
  color: #00E676;
}

.income-row-mt {
  margin-top: 16px;
}

.emoji-16 {
  font-size: 16px;
}

.summary-card-mt {
  margin-top: 16px;
  margin-bottom: 24px;
}

.accordion-label-white {
  color: #FFF;
}

.accordion-value-orange {
  color: #FF9F00;
}

.rules-bar-initial {
  width: 0%;
}

.desc-muted-sm {
  margin-top: 16px;
  font-size: 13px;
}

#instruction-screen {
  background-color: #000;
}

.onboarding-content-inner {
  width: 100%;
  max-width: 400px;
}

.onboarding-close-btn {
  background: none;
  border: none;
  cursor: pointer;
}

.flex-grow-1 {
  flex-grow: 1;
}

.android-auto-install {
  display: none;
  flex-direction: column;
  flex-grow: 1;
}

.android-auto-install-inner {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.install-pwa-btn {
  width: 100%;
  cursor: pointer;
}

.later-btn {
  background: #2A2A2A;
  color: #FFF;
  margin-top: 24px;
}

.android-manual-install {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

#error-screen {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 9999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
  box-sizing: border-box;
}

.error-icon {
  font-size: 64px;
  margin-bottom: 24px;
}

.error-title {
  color: #FFF;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

.error-text {
  color: #AAA;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 32px;
}

.error-btn {
  width: 100%;
  max-width: 300px;
  cursor: pointer;
}

.view-initial-hidden {
  display: none;
}

.tl-icon-img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.inline-icon-sm {
  vertical-align: middle;
  margin: 0 2px;
}

.text-purple-bold {
  color: #AB47BC;
  font-weight: 700;
}

.text-blue-bold {
  color: #29B6F6;
  font-weight: 700;
}

.text-white-bold {
  color: #FFF;
  font-weight: 700;
}

.tl-calc-strikethrough {
  text-decoration: line-through;
  margin-right: 6px;
}

.empty-visits-msg {
  text-align: center;
  color: #888;
  font-size: 14px;
  padding: 20px 0;
}

.cal-error-msg {
  text-align: center;
  padding: 20px;
  color: #888;
}

.toast-icon-img {
  width: 24px;
  height: 24px;
}

.rules-badge-sm {
  padding: 2px 8px;
  font-size: 13px;
  margin: 0;
}

.rules-stats-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rules-stats-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #888;
}

.chart-x-label {
  margin-top: 10px;
  color: #888;
  font-size: 11px;
  font-weight: 500;
}

#view-main,
#view-salary,
#view-clients {
  width: 100%;
  box-sizing: border-box;
}



.section-title,
.vat-toggle-container,
.card,
.bonus-card,
.next-shift-card,
.visits-list-card {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

.reveal-card {
  animation: cardEntrance 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  will-change: transform, opacity;
}

@keyframes cardEntrance {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-slide-left {
  animation: slideLeft 0.35s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.page-slide-right {
  animation: slideRight 0.35s cubic-bezier(0.25, 1, 0.5, 1) both;
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.barber-logout-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: #121212;
  border: 1px solid rgba(255, 68, 68, 0.2);
  color: #FF4444;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  margin-top: 24px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.barber-logout-btn:active {
  transform: scale(0.97);
  background: rgba(255, 68, 68, 0.1);
}

.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 10001;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.custom-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.custom-modal-card {
  background: #121212;
  border: 1px solid #2A2A2A;
  border-radius: 16px;
  width: 100%;
  max-width: 320px;
  padding: 24px;
  text-align: center;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-modal-overlay.active .custom-modal-card {
  transform: translateY(0) scale(1);
}

.custom-modal-title {
  color: #FFF;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
}

.custom-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.custom-modal-btn {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s;
}

.custom-modal-btn:active {
  transform: scale(0.95);
}

.custom-modal-cancel {
  background: #2A2A2A;
  color: #FFF;
}

.custom-modal-confirm {
  background: rgba(255, 68, 68, 0.1);
  color: #FF4444;
  border: 1px solid rgba(255, 68, 68, 0.2);
}

.header-update-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
}

.header-update-btn:active {
  transform: scale(0.9) rotate(45deg);
  background: rgba(255, 255, 255, 0.2);
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 20px 0 30px 0;
  padding-top: 10px;
}

.pg-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 90px;
}

.pg-btn:active:not(:disabled) {
  transform: scale(0.95);
  border-color: var(--color-primary);
}

.pg-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.pg-info {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 80px;
  text-align: center;
}


/* =========================================
   ГРЕЙДЫ - ВЕРХНЯЯ ЧАСТЬ
   ========================================= */

/* Блок информации о периоде */
.grades-period-box {
  background: transparent;
  border: 1px solid #2A2A2A;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 20px;
}

.grades-period-dot {
  color: #FF9F00;
  line-height: 1;
  margin-top: 3px;
}

.grades-period-main {
  color: #F3F4F6;
  font-size: 14px;
  font-weight: 500;
}

.grades-period-main span {
  font-weight: 700;
}

.grades-period-sub {
  color: #9CA3AF;
  font-size: 13px;
  margin-top: 4px;
  line-height: 1.4;
}


.grade-main-card {
  background: #121212;

  border: 1px solid #2A2A2A;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.grade-main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.grade-main-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFF;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.grade-medal-icon {
  width: 16px;
  height: 16px;
}

.grade-step-pill {
  background: rgba(255, 159, 0, 0.15);
  color: #FF9F00;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.grade-name {
  font-size: 28px;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 12px;
}

.grade-progress-container {
  width: 100%;
  display: block;
}

.grade-progress-track {
  height: 8px;
  background: #2A2A2A;
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
}

.grade-progress-fill {
  height: 100%;
  background: #FF9F00;
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.grade-top-text {
  display: none;
  color: #FFF;
  font-size: 14px;
  font-weight: 500;
}

.grade-main-card.is-top-grade {
  background: linear-gradient(135deg, #072a15 0%, #021208 100%);
  border-color: rgba(0, 200, 83, 0.3);
}

.grade-main-card.is-top-grade .grade-step-pill {
  display: none;
}

.grade-main-card.is-top-grade .grade-progress-container {
  display: none;
}

.grade-main-card.is-top-grade .grade-top-text {
  display: block;
}

/* =========================================
   ГРЕЙДЫ - КАРТОЧКИ ПОКАЗАТЕЛЕЙ (ШАГ 2)
   ========================================= */

.grade-card {
  background: #121212;
  border: 1px solid #2A2A2A;
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}

/* Переопределяем стандартный accordion-header, чтобы он не был display: flex; */
.grade-card-header {
  display: block;
  padding: 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.grade-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.grade-title {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #F3F4F6;
}

.grade-title .emoji-icon {
  margin-right: 8px;
  font-size: 16px;
}

.grade-value {
  font-size: 22px;
  font-weight: 800;
}

.grade-desc {
  font-size: 13px;
  color: var(--text-week);
  line-height: 1.4;
  margin-bottom: 20px;
}

.grade-desc b {
  color: var(--text-muted);
  font-weight: 600;
}

/* Прогресс-бары внутри карточек */
.grade-progress-area {
  position: relative;
  width: 100%;
}

.grade-progress-top-label {
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 6px;
}

.grade-progress-track {
  position: relative;
  height: 8px;
  background: #666;
  /* Темно-серый фон трека */
  border-radius: 4px;
  width: 100%;
}

.grade-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  z-index: 2;
}

.grade-gradient-track {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(135deg, #171717 0%, #373737 100%);
  z-index: 1;
  border-radius: 0 4px 4px 0;
  transition: left 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.grade-target-line {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  background: #FFFFFF;
  z-index: 3;
  transform: translateX(-50%);
  /* Центруем ровно по проценту */
  border-radius: 1px;
}

.grade-progress-bottom-labels {
  position: relative;
  height: 16px;
  margin-top: 6px;
}

.grade-target-label {
  position: absolute;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  color: #F3F4F6;
  white-space: nowrap;
}

.grade-max-label {
  position: absolute;
  right: 0;
  font-size: 10px;
  font-weight: 600;
  color: #9CA3AF;
}

/* Иконка-шеврон (по центру) */
.grade-chevron {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
  color: #6B7280;
  transition: transform 0.3s ease;
}

.grade-card.expanded .grade-chevron {
  transform: rotate(180deg);
}

.grade-history-content {
  padding-top: 12px;
  /* border-top: 1px solid #2A2A2A; */
}

.grade-history-item {
  /* margin-bottom: 16px; */
  margin-top: 12px;
}

.grade-history-item:last-child {
  margin-bottom: 0;
}

.grade-history-title {
  font-size: 13px;
  color: #9CA3AF;
  margin-bottom: 6px;
}

.grade-history-bottom {
  text-align: right;
  font-size: 10px;
  color: #6B7280;
  margin-top: 4px;
  font-weight: 600;
}

/* Карточка Скилл-чека */
.skill-check-card {
  background: #121212;
  border: 1px solid #2A2A2A;
  border-radius: 16px;
  padding: 16px;
  margin-top: 12px;
  margin-bottom: 32px;
}

.skill-header {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #F3F4F6;
  margin-bottom: 12px;
}

.skill-header .emoji-icon {
  margin-right: 8px;
  font-size: 16px;
}

.skill-desc {
  font-size: 13px;
  color: #9CA3AF;
  line-height: 1.5;
  padding-bottom: 16px;
  border-bottom: 1px solid #2A2A2A;
  margin-bottom: 16px;
}

.skill-action {
  display: flex;
}

.skill-btn {
  background: rgba(255, 159, 0, 0.15);
  /* Темно-оранжевый фон */
  color: #FF9F00;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 8px;
  text-transform: lowercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

/* Системные цвета для показателей */
.value-orange {
  color: #FF9F00 !important;
}

.value-green {
  color: #00C853 !important;
}

.bg-orange {
  background: #FF9F00 !important;
}

.bg-green {
  background: #00C853 !important;
}

/* =========================================
   ГРЕЙДЫ - ФИНАЛЬНЫЕ ПРАВКИ (ЦВЕТА И ПОЗИЦИИ)
   ========================================= */

.value-green {
  color: #00C853 !important;
}

.bg-green {
  background: #00C853 !important;
}

.grade-progress-track {
  overflow: visible !important;
}

.grade-progress-area .grade-progress-track {
  margin-top: 24px;
}

.grade-progress-top-label {
  position: absolute;
  top: -20px;
  transform: translateX(calc(-1% * var(--percent, 50)));
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  z-index: 5;
  transition: left 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.grade-progress-bottom-labels {
  margin-top: 4px;
  height: 14px;
}

/* =========================================
   ЭФФЕКТ ЗОЛОТОГО СВЕЧЕНИЯ ДЛЯ СРЕДНЕГО ГРЕЙДА
   ========================================= */

.grade-main-card.is-gold-grade {
  background: linear-gradient(135deg, #452b00 0%, #1e1201 100%);
  border: 1px solid rgba(255, 159, 0, 0.5) !important;
  box-shadow: 0 0 25px rgba(249, 115, 22, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}


.grade-main-card.is-gold-grade .grade-step-pill {
  background: rgba(249, 115, 22, 0.25) !important;
  color: #FF9F00 !important;
}

.grade-progress-area {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 16px;
  padding-top: 12px;
}

.grades-period-box {
  background: #121212 !important;
  border: 1px solid rgba(249, 115, 22, 0.25) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(249, 115, 22, 0.04) !important;
  position: relative;
  overflow: hidden;
}

.grades-period-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      rgba(249, 115, 22, 0) 0%,
      rgba(249, 115, 22, 0.5) 50%,
      rgba(249, 115, 22, 0) 100%) !important;
  z-index: 2;
}


.grades-period-main {
  color: #F3F4F6 !important;
}

.grades-period-sub {
  color: #F3F4F6 !important;
}

#ui-grades-period {
  font-weight: 700 !important;
  color: #FFFFFF !important;
}