.base-container {
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  padding: 20px 12px;
  box-sizing: border-box;
}

.subscription-btns {
  display: flex;
  flex-flow: column;
  width: 100%;
}

.develope-links {
  display: flex;
  flex-flow: column;
}

.btn {
  padding: 10px 15px;
  font-size: 16pt;
  color: #ffffff;
  background: #689efc;
  border-radius: 10px;
  border: none;
}
.btn:hover {
  cursor: pointer;
  background: #5886d6;
}

.link {
  font-size: 12pt;
  color: #689efc;
  text-align: center;
  text-decoration: underline;
}

.mt-20 {
  margin-top: 20px;
}

.mt-10 {
  margin-top: 10px;
}

.subscription-description {
  font-size: 18pt;
  text-align: center;
}

.payment-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px 0;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.back-button {
  padding: 10px 20px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
}

.back-button:hover {
  background-color: #2980b9;
}

.payment-result {
  gap: 14px;
}

.payment-result-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.payment-result-success .payment-result-icon {
  background-color: #27ae60;
}

.payment-result-fail .payment-result-icon {
  background-color: #e74c3c;
}

.payment-result-title {
  margin: 0;
  color: #2c3e50;
  font-size: 24px;
  line-height: 1.2;
}

.payment-result-message {
  margin: 0;
  color: #555555;
  font-size: 16px;
  line-height: 1.45;
}

.profile-container {
    background-color: #f5f5f5;
    padding: 30px;
    display: flex;
    flex-flow: column;
    border-radius: 10px;
    margin: 0 auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: min(440px, calc(100vw - 24px));
    box-sizing: border-box;
}

.profile-section {

}

.profile-title {
    color: #333;
    font-size: 20px;
    margin-bottom: 15px;
    border-bottom: 2px solid #6ea7e3;
    padding-bottom: 5px;
}

.profile-email {
    display: flex;
    align-items: center;
    gap: 10px;
}

.email-label {
    font-weight: bold;
    color: #555;
}

.email-value {
    color: #333;
}

.about-app {
    color: #555;
    line-height: 1.5;
}

.profile-button {
    width: 100%;
    padding: 12px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-family: 'SFProM', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s;
}

.profile-button:hover {
    background-color: #2980b9;
}

.subscription-info {
    background-color: #e8f4fc;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.subscription-info p {
    color: #2c3e50;
    font-size: 16px;
    margin: 0;
}

.subscription-info span {
    font-weight: bold;
    color: #3498db;
}

.cancel-recurrent {
    background-color: #e74c3c;
    margin-top: 15px;
}

.cancel-recurrent:hover {
    background-color: #c0392b;
}

.logout-button {
    background-color: #dc3f3f;
}

.logout-button:hover {
    background-color: #b83232;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.close {
  font-size: 24px;
  cursor: pointer;
}

.checkbox-container {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.checkbox-container input[type="checkbox"] {
  margin-right: 10px;
}

.explanation {
  display: none;
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 5px;
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}

.buy-button {
  width: 100%;
  padding: 12px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
}

.link-primary {
  color: #689efc;
  text-decoration: none;
}

.link-hover {
  color: #5886d6;
}

body {
  font-family: 'SFProM', sans-serif;
  margin: 0;
  background: radial-gradient(circle at top left, #ecf7ff 0%, #f7fbff 45%, #ffffff 100%);
}

.buy-button:hover {
  background-color: #2980b9;
}

@font-face {
  font-family: 'SFProM';
  src: url('fonts/SFProMedium.woff2') format('woff2'),
       url('fonts/SFProMedium.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

.brand-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.brand-mark {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(33, 96, 197, 0.25);
}

.brand-title {
  font-size: 28px;
  line-height: 1.1;
  color: #0f2747;
  margin: 0;
  text-align: center;
}

.brand-subtitle {
  margin: 0;
  color: #2f5f96;
  font-size: 14px;
  text-align: center;
}

.brand-subtitle strong {
  color: #1f4f86;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #c5d8f1;
  background: #fff;
  color: #123;
  font-size: 16px;
}

.auth-input:focus {
  outline: 2px solid #9ac0f4;
  outline-offset: 0;
  border-color: #80aee8;
}

.auth-link-row {
  margin-top: 12px;
  text-align: center;
}

.auth-divider {
  margin: 14px 0 10px;
  text-align: center;
  font-size: 13px;
  color: #5c78a0;
}

.google-auth-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.auth-processing {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  color: #2f5f96;
}

.auth-error {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #f2b5b5;
  background: #fdecec;
  color: #8e2727;
  font-size: 14px;
}

.payment-shell {
  max-width: 440px;
}

.payment-shell .profile-title {
  margin-bottom: 12px;
}

.payment-shell .develope-links {
  border-top: 1px solid #d4e5f8;
  padding-top: 16px;
}

.payment-shell .link {
  font-size: 14px;
}

.modal-content {
  border-radius: 14px;
  width: min(420px, calc(100vw - 28px));
  box-sizing: border-box;
}

.payment-loading {
  text-align: center;
  font-size: 14px;
  color: #2f5f96;
}

.selected-plan-badge {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #e8f4fc;
  color: #24486f;
  font-size: 14px;
}

.selected-plan-badge span {
  font-weight: 700;
  color: #1b3f66;
}

@media (max-width: 480px) {
  .profile-container {
    padding: 22px 16px;
    border-radius: 12px;
  }

  .brand-mark {
    width: 64px;
    height: 64px;
  }

  .brand-title {
    font-size: 24px;
  }
}
