/* ===================== Account Page Wrapper ===================== */
.account-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Title */
.account-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

/* ========================= Card Section ========================= */
.account-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    margin-right: 1rem;
    border-left: 6px solid #43b0b3;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.account-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

/* ========================= Card Headings ========================= */
.account-card h3 {
    margin-top: 0;
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

/* ========================= Form Inputs ========================= */
.account-form label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    display: block;
    margin-bottom: 0.4rem;
}

.account-form input {
    width: 95%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1.2rem;
}

.account-form input:focus {
    border-color: #43b0b3;
    box-shadow: 0 0 0 3px rgba(67,176,179,0.3);
    outline: none;
}

/* ========================= Buttons ========================= */
.account-button {
    padding: 0.8rem 1.6rem;
    background: #43b0b3;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.25s ease;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.account-button:hover {
    background: #475569;
    transform: translateY(-2px);
}

.account-button:active {
    transform: translateY(0);
}

/* Danger button (delete account, etc.) */
.account-button-danger {
    background: #ff5757;
}

.account-button-danger:hover {
    background: #e23e3e;
}

/* ========================= User Info Display ========================= */
.account-info-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    justify-content: space-between;
    background: #f1f5f9;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    margin-bottom: 0.8rem;
}

.account-info-label {
    font-weight: 600;
    color: #475569;
}

.info-text, .edit-btn, input {
  margin-left: 0px;
}

.info-text {
  flex: 1;
  text-align: right;
}

input {
  flex: 1;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.edit-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

/* ================== Profile Photo Preview ================== */
#photo-preview {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  object-fit: cover;
}

#crop-container {
  width: 300px;
  height: 300px;
  margin: 10px auto;
  position: relative;
  touch-action: none;
}

.cropper-view-box,
.cropper-face {
  border-radius: 50%;
}

.cropper-container {
  width: 100% !important;
  height: 100% !important;
}


/* ================== Profile Photo Display ================== */
#info-photo {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  object-fit: cover;
  display: block;
}

/* Profile photo wrapper */
.profile-photo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

#profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Buttons below the image */
.profile-photo-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}


/* ===================== SUBSCRIPTIONS ===================== */

#subscriptions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.subscription-item {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 14px 16px;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.subscription-item:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

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

.subscription-name {
  font-weight: 600;
  font-size: 15px;
}

.subscription-status {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
}

.subscription-status.active {
  background: rgba(67,176,179,0.15);
  color: #2c7f81;
}

.subscription-status.inactive {
  background: rgba(0,0,0,0.08);
  color: #555;
}

.subscription-dates {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #666;
  margin-top: 8px;
}


/* ================== Responsive Design ================== */
@media (max-width: 600px) {
    .account-info-row {
        flex-direction: column;
        gap: 0.4rem;
    }
}

@media (max-width: 900px) {
  .account-container {
    max-width: 100%;
    width: 100%;
    padding: 1rem;
  }

  .account-card {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .account-title {
    font-size: 1.5rem;
  }

  .account-card h3 {
    font-size: 1.2rem;
  }

  .account-info-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-text {
    text-align: left;
    margin-top: 0.5rem;
  }

  input {
    margin-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  .account-container {
    padding: 0.5rem;
  }

  .account-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .account-title {
    font-size: 1.3rem;
  }

  .account-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  #photo-preview,
  #info-photo {
    width: 120px;
    height: 120px;
  }
}