/* ========================================
   Account Dashboard Styles
   ======================================== */

/* Base rem font-size (matching theme) */
html {
  font-size: 0.6944444444vw; /* 1rem = 10px at 1440px */
}

/* ========================================
   Dashboard Base
   ======================================== */

.account-dashboard {
  background: #ffffff;
  min-height: 100vh;
}

/* ========================================
   Dashboard Header
   ======================================== */

.account-dashboard__header {
  padding: 1.6rem 0 0 0; 
  background: #ffffff;
}

.account-dashboard__header-container {
  display: flex;
  flex-direction: row;
  gap: 1.6rem;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* User Info Block */
.account-dashboard__user-block {
  background: var(--red, #de3b3b);
  border-radius: 1.6rem 19.2rem 19.2rem 1.6rem;
  padding: 1.6rem;
  display: flex;
  flex-direction: row;
  gap: 1.6rem;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  position: relative;
  overflow: hidden;
}

.account-dashboard__user-avatar {
  flex-shrink: 0;
  width: 22rem;
  height: 22rem;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.account-dashboard__avatar-image {
  background: linear-gradient(to left, #ffffff, #ffffff);
  border-radius: 20rem;
  width: 16rem;
  height: 16rem;
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  overflow: hidden;
  object-fit: cover;
  aspect-ratio: 1;
}

.account-dashboard__user-info {
  padding: 0 3.2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  align-items: flex-start;
  justify-content: center;
  align-self: stretch;
  flex: 1;
  position: relative;
  overflow: hidden;
}

.account-dashboard__greeting {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
}

.account-dashboard__hello {
  color: var(--red-200, #f0a8a8);
  text-align: left;
  font-family: var(--font-manrope);
  font-size: 1.9rem;
  line-height: 100%;
  letter-spacing: -0.02em;
  font-weight: 400;
  position: relative;
  align-self: stretch;
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.account-dashboard__name {
  color: var(--white, #ffffff);
  text-align: left;
  font-family: var(--font-manrope);
  font-size: 4.8rem;
  line-height: 100%;
  letter-spacing: -0.02em;
  font-weight: 600;
  position: relative;
  align-self: stretch;
  min-height: 5.2rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* AI Chat Block */
.account-dashboard__ai-chat {
  background: var(--white, #ffffff);
  border-radius: 19.2rem;
  border: 0.2rem solid var(--black, #121212);
  padding: 1.6rem 5.2rem;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38rem;
  height: 25.2rem;
  position: relative;
  overflow: hidden;
}

.account-dashboard__ai-chat-content {
  padding: 1.2rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
}

.account-dashboard__ai-chat-title {
  color: var(--black, #121212);
  text-align: center;
  font-family: var(--font-manrope);
  font-size: 3rem;
  line-height: 100%;
  letter-spacing: 0.01em;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-dashboard__ai-chat-description {
  color: var(--black, #121212);
  text-align: center;
  font-family: var(--font-manrope);
  font-size: 1.3rem;
  line-height: 120%;
  letter-spacing: -0.02em;
  font-weight: 400;
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-dashboard__ai-chat-button {
  background: var(--white, #ffffff);
  border-radius: 3.2rem;
  border: 0.15rem solid var(--black, #121212);
  padding: 0.4rem 0.4rem 0.4rem 1.6rem;
  display: flex;
  flex-direction: row;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.account-dashboard__ai-chat-button:hover {
  background: var(--black, #121212);
  color: var(--white, #ffffff);
}

.account-dashboard__ai-chat-button--disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.account-dashboard__ai-chat-button--disabled:hover {
  background: var(--white, #ffffff);
}

.account-dashboard__ai-chat-button svg {
  width: 3.2rem;
  height: 3.2rem;
  transform: rotate(0deg);
  transition: transform 0.3s ease;  
}

.account-dashboard__ai-chat-button:hover svg {
  transform: rotate(45deg);
}

.account-dashboard__ai-chat-button--disabled svg rect,
.account-dashboard__ai-chat-button--disabled:hover svg rect {
  fill: var(--black-200, #cccccc);
}

.account-dashboard__ai-chat-button-text {
  color: var(--black, #121212);
  text-align: left;
  font-family: var(--font-manrope);
  font-size: 1.3rem;
  line-height: normal;
  letter-spacing: 0.01em;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transition: color 0.3s ease;
}

.account-dashboard__ai-chat-button:hover .account-dashboard__ai-chat-button-text {
  color: var(--white, #ffffff);
}

.account-dashboard__ai-chat-button--disabled:hover  .account-dashboard__ai-chat-button-text {
  color: var(--black, #121212)!important;
}

.account-dashboard__ai-chat-icon {
  border-radius: 2.4rem;
  flex-shrink: 0;
  width: 3.2rem;
  height: 3.2rem;
  position: relative;
  color: var(--black, #121212);
  transition: color 0.3s ease;
}

.account-dashboard__ai-chat-button:hover .account-dashboard__ai-chat-icon {
  color: var(--white, #ffffff);
}

/* ========================================
   Navigation Tabs
   ======================================== */

.account-dashboard__navigation {
  padding: 3.2rem 0;
  background: #ffffff;
}

.account-dashboard__nav-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.account-dashboard__tabs {
  display: flex;
  flex-direction: row;
  gap: 1.2rem;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  position: relative;
}

.account-dashboard__tab {
  background: var(--white, #ffffff);
  border-radius: 3.2rem;
  border: 0.15rem solid var(--black-100, #e6e6e6);
  padding: 0.4rem 1.6rem;
  display: flex;
  flex-direction: row;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  text-decoration: none;
  transition: all 0.3s ease;
}

.account-dashboard__tab--active {
  background: var(--black, #121212);
  border-color: var(--black, #121212);
}

.account-dashboard__tab:hover:not(.account-dashboard__tab--active) {
  background: var(--black-50, #f2f2f2);
}

.account-dashboard__tab-text {
  color: var(--black, #121212);
  text-align: center;
  font-family: var(--font-manrope);
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.account-dashboard__tab--active .account-dashboard__tab-text {
  color: var(--white, #ffffff);
}

.account-dashboard__logout {
  flex-shrink: 0;
}

.account-dashboard__logout-button {
  background: var(--light-red, #f7e4e4);
  border-radius: 3.2rem;
  padding: 0.4rem 1.6rem;
  display: flex;
  flex-direction: row;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  text-decoration: none;
  transition: all 0.3s ease;
}

.account-dashboard__logout-button:hover {
  background: var(--red, #de3b3b);
}

.account-dashboard__logout-text {
  color: var(--red, #de3b3b);
  text-align: center;
  font-family: var(--font-manrope);
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.account-dashboard__logout-button:hover .account-dashboard__logout-text {
  color: var(--white, #ffffff);
}

/* ========================================
   Content Area
   ======================================== */

.account-dashboard__content {
  padding: 3.2rem 0 6.4rem 0;
  background: #ffffff;
}

.account-dashboard__content-container {
  position: relative;
  overflow: hidden;
}

/* ========================================
   Profile Tab Content
   ======================================== */

.account-dashboard__profile {
  display: flex;
  flex-direction: row;
  gap: 1.6rem;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.account-dashboard__profile-content {
  padding: 0 9.6rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 8rem;
  align-items: flex-start;
  justify-content: center;
  flex: 1;
  position: relative;
}

.account-dashboard__section {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  max-width: 60rem;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
}

.account-dashboard__section-title {
  color: var(--black, #121212);
  text-align: left;
  font-family: var(--font-manrope);
  font-size: 3.2rem;
  line-height: 110%;
  letter-spacing: -0.02em;
  font-weight: 600;
  position: relative;
  align-self: stretch;
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-overflow: ellipsis;
  overflow: hidden;
  margin: 0;
}

/* Form Styles */
.account-dashboard__form {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
}

.account-dashboard__form-fields {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
}

.account-dashboard__form-field {
  border-radius: 1.6rem;
  border: 0.15rem solid var(--black-100, #e6e6e6);
  padding: 1.6rem 2rem;
  display: flex;
  flex-direction: row;
  gap: 0;
  align-items: flex-start;
  justify-content: center;
  align-self: stretch;
  flex-shrink: 0;
  height: 5.6rem;
  min-width: 40rem;
  position: relative;
  transition: border-color 0.3s ease;
}

.account-dashboard__form-field:focus-within {
  border-color: var(--red, #de3b3b);
}

.account-dashboard__form-field--disabled {
  background: var(--black-50, #f2f2f2);
  cursor: not-allowed;
}

.account-dashboard__form-field--password {
  padding-right: 5.6rem;
}

.account-dashboard__form-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--black, #121212);
  text-align: left;
  font-family: var(--font-manrope);
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  font-weight: 500;
  position: relative;
  flex: 1;
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.account-dashboard__form-input::placeholder {
  color: var(--black-200, #cccccc);
}

.account-dashboard__form-input:disabled {
  color: var(--black-200, #cccccc);
  cursor: not-allowed;
}

.account-dashboard__form-lock {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  position: relative;
  color: var(--black-200, #cccccc);
}

.account-dashboard__password-toggle {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black-200, #cccccc);
  transition: color 0.3s ease;
}

.account-dashboard__password-toggle:hover {
  color: var(--black, #121212);
}

.account-dashboard__eye-icon {
  width: 2.4rem;
  height: 2.4rem;
}

/* Avatar Upload Section */
.account-dashboard__avatar-section {
  align-self: flex-start;
}

.account-dashboard__avatar-upload {
  display: flex;
  flex-direction: row;
  gap: 1.6rem;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  position: relative;
}

.account-dashboard__current-avatar {
  background: linear-gradient(to left, var(--black-50, #f2f2f2), var(--black-50, #f2f2f2));
  border-radius: 20rem;
  flex-shrink: 0;
  width: 10rem;
  height: 10rem;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.account-dashboard__current-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20rem;
}

.account-dashboard__avatar-placeholder {
  opacity: 0;
  width: 5.6rem;
  height: 5.6rem;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--black-200, #cccccc);
  aspect-ratio: 1;
}

.account-dashboard__upload-button {
  background: var(--white, #ffffff);
  border-radius: 3.2rem;
  border: 0.15rem solid var(--black-100, #e6e6e6);
  padding: 0.4rem 1.6rem;
  display: flex;
  flex-direction: row;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.account-dashboard__upload-button:hover {
  background: var(--black-50, #f2f2f2);
}

.account-dashboard__upload-text {
  color: var(--black, #121212);
  text-align: center;
  font-family: var(--font-manrope);
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Save Button */
.account-dashboard__save-button {
  background: var(--light-red, #f7e4e4);
  border-radius: 4.8rem;
  border: none;
  padding: 1.6rem 3.2rem;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.account-dashboard__save-button:hover {
  background: var(--red, #de3b3b);
}

.account-dashboard__save-text {
  color: var(--red, #de3b3b);
  text-align: center;
  font-family: var(--font-manrope);
  font-size: 1.4rem;
  line-height: 100%;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.account-dashboard__save-button:hover .account-dashboard__save-text {
  color: var(--white, #ffffff);
}

/* Profile Sidebar */
.account-dashboard__profile-sidebar {
  background: #ffffff;
  align-self: stretch;
  flex: 1;
  position: relative;
}

/* ========================================
   Other Tab Content (Placeholders)
   ======================================== */
.account-dashboard__subscription h2,
.account-dashboard__payments h2,
.account-dashboard__help h2 {
  color: var(--black, #121212);
  font-family: var(--font-manrope);
  font-size: 3.2rem;
  line-height: 110%;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 1.6rem 0;
}

.account-dashboard__subscription p,
.account-dashboard__payments p,
.account-dashboard__help p {
  color: var(--black, #121212);
  font-family: var(--font-manrope);
  font-size: 1.6rem;
  line-height: 145%;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0;
}

/* Help Content Styles */
.account-dashboard__help-content {
  color: var(--black, #121212);
  font-family: var(--font-manrope);
  font-size: 1.6rem;
  line-height: 145%;
  letter-spacing: -0.02em;
  font-weight: 400;
  max-width: 90rem;
}

.account-dashboard__help-content p {
  margin: 0 0 1.6rem 0;
}

.account-dashboard__help-content p:last-child {
  margin-bottom: 0;
}

.account-dashboard__help-content h2,
.account-dashboard__help-content h3,
.account-dashboard__help-content h4 {
  color: var(--black, #121212);
  font-family: var(--font-manrope);
  font-weight: 600;
  margin: 2.4rem 0 1.6rem 0;
}

.account-dashboard__help-content h2 {
  font-size: 2.4rem;
  line-height: 110%;
  letter-spacing: -0.02em;
}

.account-dashboard__help-content h3 {
  font-size: 2rem;
  line-height: 115%;
  letter-spacing: -0.02em;
}

.account-dashboard__help-content h4 {
  font-size: 1.8rem;
  line-height: 120%;
  letter-spacing: -0.01em;
}

.account-dashboard__help-content ul,
.account-dashboard__help-content ol {
  margin: 1.6rem 0;
  padding-left: 2.4rem;
}

.account-dashboard__help-content li {
  margin: 0.8rem 0;
  color: var(--black, #121212);
  font-family: var(--font-manrope);
  font-size: 1.6rem;
  line-height: 145%;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.account-dashboard__help-content a {
  color: var(--red, #de3b3b);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.account-dashboard__help-content a:hover {
  color: var(--black, #121212);
  text-decoration: none;
}

.account-dashboard__help-content strong {
  font-family: var(--font-manrope);
  font-weight: 600;
}

.account-dashboard__help-content blockquote {
  border-left: 0.4rem solid var(--red, #de3b3b);
  padding: 1.6rem 2.4rem;
  margin: 1.6rem 0;
  background: var(--light-red, #f7e4e4);
  border-radius: 0.8rem;
  font-style: italic;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet styles */
@media screen and (max-width: 1089px) {
  .account-dashboard__header {
    padding: .4rem 1.6rem 0;
  }

  .account-dashboard__navigation {
    padding: 3.2rem 1.6rem;
  }

  .account-dashboard__content {
    padding: 0 1.6rem;
  }

  .account-dashboard__header-container {
    flex-direction: column;
    gap: .8rem; 
  }

  .account-dashboard__user-block {
    border-radius: 1.6rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.4rem;
    padding: 3.2rem;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 35rem;
  }

  .account-dashboard__hello,
  .account-dashboard__name {
    justify-content: center; 
  }

  .account-dashboard__hello {
    font-size: 1.9rem;
    line-height: 100%; /* 1.9rem */
    letter-spacing: -0.038rem;
  }

  .account-dashboard__name {
    font-size: 3.2rem;
    font-weight: 600;
    line-height: 100%; /* 3.2rem */
    letter-spacing: -0.064rem;
  }

  .account-dashboard__user-avatar {
    width: 12rem;
    height: 12rem;
  }

  .account-dashboard__avatar-image {
    width: 12rem;
    height: 12rem;
    translate: -50% -50%;
  }

  .account-dashboard__user-info {
    padding: 0;
    align-items: center;
    justify-content: flex-start;
  }

  .account-dashboard__greeting {
    align-items: center;
    text-align: center;
  }

  .account-dashboard__ai-chat {
    width: 100%;
    height: auto;
    padding: 4rem 6.4rem 3.2rem 6.4rem;
    border-radius: 12.6rem;
    gap: 2.4rem;
  }

  .account-dashboard__ai-chat-content {
    gap: .8rem;
  }

  .account-dashboard__ai-chat-title {
    font-size: 2.4rem;
    font-style: normal;
    font-weight: 600;
    line-height: 100%; /* 2.4rem */
    letter-spacing: 0.024rem;
    text-transform: uppercase;
  }

  .account-dashboard__ai-chat-description {
    font-size: 1.2rem;
    line-height: 120%; /* 1.44rem */
    letter-spacing: -0.024rem;
  }

  .account-dashboard__nav-container {
    gap: 1.2rem;
    align-items: stretch;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 -16px;
    padding: 0 16px;
    padding-bottom: 0;
    width: auto;
  }

  .account-dashboard__nav-container::-webkit-scrollbar {
    display: none;
  }

  .account-dashboard__tabs { 
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .account-dashboard__tab {
    padding: .3rem 1.6rem;
  }

  .account-dashboard__profile {
    flex-direction: column;
  }

  .account-dashboard__profile-content {
    padding: 0;
    gap: 5.6rem;
    width: 100%;
  }

  .account-dashboard__section-title {
    font-size: 3.2rem;
    font-weight: 600;
    line-height: 110%; /* 3.52rem */
    letter-spacing: -0.064rem;
  }

  .account-dashboard__section {
    gap: 2.4rem;
  }

  .account-dashboard__form-field {
    min-width: auto;
    width: 100%;
  }

  .account-dashboard__avatar-upload {
    align-items: center;
    gap: 1.6rem;
  }

  .account-dashboard__profile-sidebar {
    display: none;
  }

  .account-dashboard__ai-chat-button {
    padding: 0.3rem 0.4rem 0.3rem 1.6rem;
  }

  .account-dashboard__form {
    gap: 2.4rem;
  }
}

/* Payments Tab Styles */
.payments-container {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Payment Statistics */
.payments-stats {
  display: flex;
  flex-direction: row;
  gap: 2.4rem;
  padding: 2.4rem;
  background: var(--black-50, #f2f2f2);
  border-radius: 1.6rem;
  width: 100%;
}

.payments-stats__item {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
  text-align: center;
}

.payments-stats__label {
  color: var(--black-400, #999999);
  font-family: var(--font-manrope);
  font-size: 1.3rem;
  font-weight: 500;
  text-transform: uppercase;
}

.payments-stats__value {
  color: var(--black, #121212);
  font-family: var(--font-manrope);
  font-size: 2.4rem;
  font-weight: 600;
}

/* Payments Table */
.payments-table {
  border-radius: 1.6rem;
  border: 0.15rem solid var(--black, #121212);
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.payments-table__header {
  background: var(--black, #121212);
  border-radius: 1.2rem 1.2rem 0 0;
  padding: 0.8rem 2.4rem;
  display: flex;
  flex-direction: row;
  gap: 1.6rem;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  position: relative;
}

.payments-table__header-cell {
  color: var(--white, #ffffff);
  text-align: left;
  font-family: var(--font-manrope);
  font-size: 1.4rem;
  line-height: 100%;
  letter-spacing: 0.01em;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
  flex: 1;
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.payments-table__body {
  width: 100%;
}

.payments-table__row {
  background: var(--white, #ffffff);
  border-bottom: 0.15rem solid var(--black, #121212);
  padding: 1.6rem 2.4rem;
  display: flex;
  flex-direction: row;
  gap: 1.6rem;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  position: relative;
  transition: background-color 0.3s ease;
}

.payments-table__row:hover {
  background: var(--black-50, #f2f2f2);
}

.payments-table__row:last-child {
  border-bottom: none;
}

.payments-table__row--empty {
  justify-content: center;
  align-items: center;
  height: 20rem;
}

.payments-table__row--empty:hover {
  background: var(--white, #ffffff);
}

.payments-table__cell {
  position: relative;
  flex: 1;
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  gap: 0.8rem;
}

.payments-table__package-name,
.payments-table__date,
.payments-table__amount {
  color: var(--black, #121212);
  text-align: left;
  font-family: var(--font-manrope);
  font-size: 1.9rem;
  line-height: 100%;
  letter-spacing: -0.02em;
  font-weight: 600;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.payments-table__status {
  color: var(--black, #121212);
  text-align: left;
  font-family: var(--font-manrope);
  font-size: 1.9rem;
  line-height: 100%;
  letter-spacing: 0.01em;
  font-weight: 600;
  text-transform: uppercase;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.payments-table__status--paid {
  color: #2aaa32;
}

.payments-table__status--pending {
  color: var(--black, #121212);
}

.payments-table__status--cancelled {
  color: var(--red, #de3b3b);
}

.payments-table__actions {
  display: none;
  gap: 0.8rem;
  margin-top: 0.8rem;
  width: 100%;
  justify-content: flex-start;
}

.payments-table__action {
  background: transparent;
  border: 0.1rem solid var(--black-200, #cccccc);
  border-radius: 0.8rem;
  padding: 0.4rem 1.2rem;
  font-family: var(--font-manrope);
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payments-table__action--cancel {
  color: var(--red, #de3b3b);
  border-color: var(--red, #de3b3b);
}

.payments-table__action--cancel:hover {
  background: var(--red, #de3b3b);
  color: var(--white, #ffffff);
}

.payments-table__action--retry {
  color: var(--black, #121212);
  border-color: var(--black, #121212);
}

.payments-table__action--retry:hover {
  background: var(--black, #121212);
  color: var(--white, #ffffff);
}

.payments-table__empty {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payments-table__empty-text {
  color: var(--black-300, #b3b3b3);
  text-align: center;
  font-family: var(--font-manrope);
  font-size: 1.9rem;
  line-height: 100%;
  letter-spacing: -0.02em;
  font-weight: 600;
}

/* Pagination */
.payments-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
  padding: 2.4rem 0;
}

.payments-pagination__button {
  background: var(--white, #ffffff);
  border: 0.15rem solid var(--black-100, #e6e6e6);
  border-radius: 2.4rem;
  padding: 1.2rem 2.4rem;
  font-family: var(--font-manrope);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payments-pagination__button:hover {
  background: var(--black-50, #f2f2f2);
}

.payments-pagination__button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.payments-pagination__info {
  color: var(--black, #121212);
  font-family: var(--font-manrope);
  font-size: 1.4rem;
  font-weight: 500;
}

/* Load More */
.payments-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2.4rem 0;
}

.payments-load-more__button {
  background: var(--light-red, #f7e4e4);
  border: none;
  border-radius: 4.8rem;
  padding: 1.6rem 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payments-load-more__button:hover {
  background: var(--red, #de3b3b);
}

.payments-load-more__text {
  color: var(--red, #de3b3b);
  font-family: var(--font-manrope);
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.payments-load-more__button:hover .payments-load-more__text {
  color: var(--white, #ffffff);
}

.payments-load-more__spinner {
  width: 2rem;
  height: 2rem;
  border: 0.2rem solid var(--red-100, #f8d3d3);
  border-top: 0.2rem solid var(--red, #de3b3b);
  border-radius: 50%;
  animation: ainterior-spin 1s linear infinite;
}

@keyframes ainterior-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Subscription Tab Styles */
.subscription-container {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Subscription Table */
.subscription-table {
  border-radius: 1.6rem;
  border: 0.15rem solid var(--black, #121212);
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.subscription-table__header {
  background: var(--black, #121212);
  border-radius: 1.2rem 1.2rem 0 0;
  padding: 0.8rem 2.4rem;
  display: flex;
  flex-direction: row;
  gap: 1.6rem;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  position: relative;
}

.subscription-table__header-cell {
  color: var(--white, #ffffff);
  text-align: left;
  font-family: var(--font-manrope);
  font-size: 1.4rem;
  line-height: 100%;
  letter-spacing: 0.01em;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
  flex: 1;
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.subscription-table__row {
  background: var(--white, #ffffff);
  border-bottom: 0.15rem solid var(--black, #121212);
  padding: 1.6rem 2.4rem;
  display: flex;
  flex-direction: row;
  gap: 1.6rem;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  position: relative;
}

.subscription-table__row:last-child {
  border-bottom: none;
}

.subscription-table__row--empty {
  justify-content: center;
  align-items: center;
  height: 20rem;
}

.subscription-table__cell {
  position: relative;
  flex: 1;
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.subscription-table__cell .subscription-table__header-cell {
  display: none;
}

.subscription-table__package-name,
.subscription-table__generations,
.subscription-table__date {
  color: var(--black, #121212);
  text-align: left;
  font-family: var(--font-manrope);
  font-size: 1.9rem;
  line-height: 100%;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.subscription-table__status {
  color: var(--black, #121212);
  text-align: left;
  font-family: var(--font-manrope);
  font-size: 1.9rem;
  line-height: 100%;
  letter-spacing: 0.01em;
  font-weight: 600;
  text-transform: uppercase;
}

.subscription-table__status--active {
  color: #2aaa32;
}

.subscription-table__status--inactive,
.subscription-table__status--expired {
  color: var(--black, #121212);
}

.subscription-table__empty {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subscription-table__empty-text {
  color: var(--black-300, #b3b3b3);
  text-align: center;
  font-family: var(--font-manrope);
  font-size: 1.9rem;
  line-height: 100%;
  letter-spacing: -0.02em;
  font-weight: 600;
}

/* Payment Table */
.payment-table {
  border-radius: 1.6rem;
  border: 0.15rem solid var(--black, #121212);
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.payment-table__header {
  background: var(--black, #121212);
  border-radius: 1.2rem 1.2rem 0 0;
  padding: 0.8rem 2.4rem;
  display: flex;
  flex-direction: row;
  gap: 1.6rem;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  position: relative;
}

.payment-table__header-cell {
  color: var(--white, #ffffff);
  text-align: left;
  font-family: var(--font-manrope);
  font-size: 1.3rem;
  line-height: 100%;
  letter-spacing: 0.01em;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
  flex: 1;
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.payment-table__row {
  background: var(--white, #ffffff);
  border-bottom: 0.15rem solid var(--black, #121212);
  padding: 1.6rem 2.4rem;
  display: flex;
  flex-direction: row;
  gap: 1.6rem;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  position: relative;
}

.payment-table__row:last-child {
  border-bottom: none;
}

.payment-table__row--empty {
  justify-content: center;
  align-items: center;
  height: 20rem;
}

.payment-table__cell {
  position: relative;
  flex: 1;
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  }

  .payment-table__cell .payment-table__header-cell,
  .payments-table__cell .payments-table__header-cell {
    display: none;
  }

.payment-table__package-name,
.payment-table__date,
.payment-table__amount {
  color: var(--black, #121212);
  text-align: left;
  font-family: var(--font-manrope);
  font-size: 1.9rem;
  line-height: 100%;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.payment-table__status {
  color: var(--black, #121212);
  text-align: left;
  font-family: var(--font-manrope);
  font-size: 1.9rem;
  line-height: 100%;
  letter-spacing: 0.01em;
  font-weight: 600;
  text-transform: uppercase;
}

.payment-table__status--active {
  color: #2aaa32;
}

.payment-table__status--pending {
  color: #ffa500;
}

.payment-table__status--failed,
.payment-table__status--cancelled {
  color: var(--red, #de3b3b);
}

.payment-table__empty {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-table__empty-text {
  color: var(--black-300, #b3b3b3);
  text-align: center;
  font-family: var(--font-manrope);
  font-size: 1.9rem;
  line-height: 100%;
  letter-spacing: -0.02em;
  font-weight: 600;
}

/* Buy Package Button */
.subscription-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.subscription-buy-button {
  background: var(--light-red, #f7e4e4);
  border-radius: 4.8rem;
  border: none;
  padding: 1.6rem 3.2rem;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.subscription-buy-button:hover {
  background: var(--red, #de3b3b);
}

.subscription-buy-text {
  color: var(--red, #de3b3b);
  text-align: center;
  font-family: var(--font-manrope);
  font-size: 1.4rem;
  line-height: 100%;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.subscription-buy-button:hover .subscription-buy-text {
  color: var(--white, #ffffff);
}

/* Package Modal */
.package-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.package-modal.is-active {
  opacity: 1;
}

.package-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.package-modal__container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.package-modal__content {
  background: var(--white, #ffffff);
  border-radius: 3.2rem;
  padding: 4.8rem;
  max-width: 80rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(2rem);
  transition: transform 0.4s ease;
}

.package-modal.is-active .package-modal__content {
  transform: translateY(0);
}

.package-modal__close {
  position: absolute;
  top: 2.4rem;
  right: 2.4rem;
  width: 4rem;
  height: 4rem;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black, #121212);
  transition: opacity 0.3s ease;
}

.package-modal__close:hover {
  opacity: 0.7;
}

.package-modal__header {
  text-align: center;
  margin-bottom: 4rem;
}

.package-modal__title {
  color: var(--black, #121212);
  font-family: var(--font-manrope);
  font-size: 3.2rem;
  line-height: 110%;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 1.6rem 0;
}

.package-modal__description {
  color: var(--black, #121212);
  font-family: var(--font-manrope);
  font-size: 1.6rem;
  line-height: 145%;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0;
}

.package-modal__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  gap: 1.6rem;
}

.package-modal__spinner {
  width: 4rem;
  height: 4rem;
  border: 0.3rem solid var(--black-100, #e6e6e6);
  border-top: 0.3rem solid var(--red, #de3b3b);
  border-radius: 50%;
  animation: ainterior-spin 1s linear infinite;
}

@keyframes ainterior-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media screen and (max-width: 1089px) {
  .subscription-container {
      padding: 0;
      gap: 2.4rem;
  }

  .subscription-table,
  .payment-table,
  .payments-table {
    border-radius: 1.6rem;
    border: none;
    overflow: visible;
  }

  .subscription-table__header,
  .payment-table__header,
  .payments-table__header {
    display: none;
  }

  .subscription-table__header,
  .payment-table__header,
  .subscription-table__row,
  .payment-table__row {
      padding: 1.2rem 1.6rem;
      gap: 1.2rem;
  }

  .subscription-table__header-cell,
  .payment-table__header-cell {
      font-size: 1.2rem;
  }

  .subscription-table__package-name,
  .subscription-table__generations,
  .subscription-table__date,
  .subscription-table__status,
  .payment-table__package-name,
  .payment-table__date,
  .payment-table__amount,
  .payments-table__status,
  .payments-table__package-name,
  .payments-table__date,
  .payments-table__amount,
  .payments-table__status {
      font-size: 1.8rem;
      line-height: 100%;
      letter-spacing: -0.036rem;
  }

  .package-modal__content {
      padding: 2.4rem;
      border-radius: 2.4rem;
  }

  .subscription-table__row,
  .payment-table__row,
  .payments-table__row {
    border-bottom: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
  }
  .payment-table__row:not(:first-child),
  .payments-table__row:not(:first-child) {
    margin-top: 1.6rem;
  }

  .subscription-table__cell span,
  .payment-table__cell span,
  .payments-table__cell span {
    min-height: 3.2rem; 
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .subscription-table__cell .subscription-table__header-cell,
  .payment-table__cell .payment-table__header-cell,
  .payments-table__cell .payments-table__header-cell {
    display: flex;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 100%; /* 1.3rem */
    letter-spacing: 0.013rem;
    text-transform: uppercase;
    min-height: 1.8rem;
    color: var(--Black-300, #B3B3B3);
  }

  .subscription-table__cell,
  .payment-table__cell,
  .payments-table__cell {
    padding: 1.6rem;
    border: 1px solid var(--black-900);
    height: 100%;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0;
  }

  .subscription-table__cell:first-child,
  .payment-table__cell:first-child,
  .payments-table__cell:first-child {
    border-radius: 1.6rem 0 0 0;
    border-bottom: none;
    border-right: none;
  }

  .subscription-table__cell:nth-child(2),
  .payment-table__cell:nth-child(2),
  .payments-table__cell:nth-child(2) {
    border-radius: 0 1.6rem 0 0 ;
    border-bottom: none;
  }

  .subscription-table__cell:nth-child(3),
  .payment-table__cell:nth-child(3),
  .payments-table__cell:nth-child(3) {
    border-radius: 0 0 0 1.6rem;
    border-right: none;
  }

  .subscription-table__cell:last-child,
  .payment-table__cell:last-child,
  .payments-table__cell:last-child {
    border-radius: 0 0 1.6rem 0;
  }
}