/* ==========================================================================
   PackForm Studio — Profile Page
   Scope: Profile page only. Header is a pre-existing, separately styled
   component and is intentionally left untouched by this file.
   ========================================================================== */

:root {
  --profile-bg: #f4f6f8;
  --profile-card: #ffffff;
  --profile-line: #e5e7eb;
  --profile-line-2: #eaebed;
  --profile-ink: #111827;
  --profile-muted: #6b7280;
  --profile-soft: #9ca3af;
  --profile-blue: #0ea5e9;
  --profile-blue-dark: #0284c7;
  --profile-danger: #dc2626;
  --profile-danger-bg: #fef2f2;
  --profile-danger-line: #fecaca;
  --profile-radius: 16px;
  --profile-radius-sm: 10px;
  --profile-shadow: 0 12px 32px rgba(15, 23, 42, .08);
  --profile-shadow-hover: 0 16px 40px rgba(15, 23, 42, .12);
}

body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, "Open Sans", Arial, sans-serif;
  color: var(--profile-ink);
  background: var(--profile-bg);
  letter-spacing: 0;
}

/* ===== Page layout ===== */

.profile-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: flex;
  flex-direction: column;
}

.profile-title {
  margin: 0 0 24px;
  font-family: Montserrat, Inter, sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--profile-ink);
  letter-spacing: -.01em;
}

/* ===== Cards ===== */

.profile-card {
  background: var(--profile-card);
  border: 1px solid var(--profile-line);
  border-radius: var(--profile-radius);
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: none;
  transition: box-shadow .18s ease, border-color .18s ease;
}

.profile-card:hover {
  border-color: var(--profile-line-2);
  box-shadow: var(--profile-shadow);
}

.profile-card:last-child {
  margin-bottom: 0;
}

.profile-card-title {
  margin: 0 0 20px;
  font-family: Montserrat, Inter, sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--profile-ink);
}

/* ===== Card 1: Profile identity ===== */

.profile-card-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--profile-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Montserrat, Inter, sans-serif;
  font-size: 32px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(14, 165, 233, .28);
}

.profile-identity-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--profile-ink);
}

.profile-email {
  font-size: 14px;
  color: var(--profile-muted);
}

/* ===== Card 2 & 3: Account / Usage grids ===== */

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 32px;
}

.profile-info-item {
  display: grid;
  gap: 6px;
}

.profile-info-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--profile-muted);
  text-transform: uppercase;
  letter-spacing: .02em;
}

.profile-info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--profile-ink);
}

/* ===== Card 4: Security actions ===== */

.profile-security-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.profile-btn {
  flex: 1;
  min-width: 200px;
  padding: 14px 20px;
  border-radius: var(--profile-radius-sm);
  border: 1px solid var(--profile-line);
  background: #fff;
  color: var(--profile-ink);
  font-family: Inter, "Open Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}

.profile-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.profile-btn:active {
  transform: translateY(1px);
}

.profile-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, .18);
  border-color: var(--profile-blue);
}

.profile-btn-danger {
  border-color: var(--profile-danger-line);
  color: var(--profile-danger);
}

.profile-btn-danger:hover {
  background: var(--profile-danger-bg);
  border-color: var(--profile-danger);
}

.profile-btn-danger:focus-visible {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .16);
  border-color: var(--profile-danger);
}

/* ===== Responsive ===== */

@media (max-width: 640px) {
  .profile-info-grid {
    grid-template-columns: 1fr;
  }

  .profile-security-actions {
    flex-direction: column;
  }

  .profile-btn {
    min-width: 0;
  }
}

/* ===== Change Password Modal ===== */

.profile-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(4px);
}

.profile-modal-backdrop.open {
  display: flex;
}

.profile-modal {
  width: min(100%, 460px);
  background: var(--profile-card);
  border: 1px solid var(--profile-line);
  border-radius: var(--profile-radius);
  box-shadow: 0 24px 64px rgba(15, 23, 42, .18);
  overflow: hidden;
}

.profile-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--profile-line-2);
}

.profile-modal-title {
  margin: 0;
  font-family: Montserrat, Inter, sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--profile-ink);
}

.profile-modal-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--profile-muted);
}

.profile-modal-close {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--profile-muted);
  font-size: 16px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.profile-modal-close:hover {
  background: #f3f4f6;
  color: var(--profile-ink);
}

.profile-password-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 32px 32px;
}

.profile-form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.profile-form-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--profile-muted);
  text-transform: uppercase;
  letter-spacing: .02em;
}

.profile-form-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--profile-line);
  border-radius: var(--profile-radius-sm);
  background: #fff;
  color: var(--profile-ink);
  font-family: Inter, "Open Sans", Arial, sans-serif;
  font-size: 14px;
  outline: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.profile-form-field input:focus {
  border-color: var(--profile-blue);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, .12);
}

.profile-password-message {
  min-height: 20px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--profile-muted);
}

.profile-password-message.error {
  color: var(--profile-danger);
}

.profile-password-message.success {
  color: #15803d;
}

.profile-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.profile-modal-actions .profile-btn {
  min-width: 0;
}

.profile-btn-primary {
  border-color: var(--profile-blue);
  background: var(--profile-blue);
  color: #fff;
}

.profile-btn-primary:hover {
  background: var(--profile-blue-dark);
  border-color: var(--profile-blue-dark);
}

.profile-btn-primary:focus-visible {
  border-color: var(--profile-blue-dark);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, .18);
}

.profile-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 640px) {
  .profile-modal-backdrop {
    padding: 16px;
  }

  .profile-modal-head {
    padding: 24px 20px 18px;
  }

  .profile-password-form {
    padding: 24px 20px 24px;
  }

  .profile-modal-actions {
    flex-direction: column;
  }
}

/* =========================================================
   Profile — Plan Selector
   ========================================================= */

.profile-plan-trigger {
  width: fit-content;
  min-width: 120px;

  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: 7px 10px 7px 12px;

  border: 1px solid var(--profile-line);
  border-radius: 8px;

  background: #f9fafb;
  color: var(--profile-ink);

  font: inherit;
  font-size: 13px;
  font-weight: 700;

  text-align: left;
  cursor: pointer;

  box-sizing: border-box;

  transition:
    background .15s ease,
    border-color .15s ease,
    color .15s ease,
    box-shadow .15s ease;
}

.profile-plan-trigger:hover {
  border-color: #cbd5e1;
  background: #f3f4f6;
  color: var(--profile-ink);

  box-shadow:
    0 2px 8px rgba(15, 23, 42, .06);
}

.profile-plan-trigger:active {
  transform: translateY(1px);
}

.profile-plan-trigger:focus-visible {
  outline: none;

  border-color: var(--profile-blue);

  box-shadow:
    0 0 0 3px rgba(14, 165, 233, .12);
}

.profile-plan-trigger-icon {
  width: 16px;
  height: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  color: var(--profile-muted);

  font-size: 13px;
  line-height: 1;
  font-weight: 600;

  transition:
    color .15s ease,
    transform .15s ease;
}

.profile-plan-trigger:hover
.profile-plan-trigger-icon {
  color: var(--profile-blue);
  transform: translateY(1px);
}

/* =========================================================
   Profile — Usage Values
   ========================================================= */

.profile-usage-value {
  width: fit-content;
  min-width: 84px;

  height: 32px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;

  padding: 7px 12px;

  border: 1px solid var(--profile-line);
  border-radius: 8px;

  background: #f9fafb;
  color: var(--profile-ink);

  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;

  letter-spacing: 0;

  box-shadow:
    0 1px 2px rgba(15, 23, 42, .03);
}

/* =========================================================
   Profile — Plan Selection Modal
   Visual system copied from PackForm Upgrade Modal
   ========================================================= */

#upgradePlanModal {
    position: fixed;
    inset: 0;
    z-index: 220;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(4px);
}

#upgradePlanModal.open {
    display: flex;
}

.profile-plan-modal {
    width: 860px;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);

    overflow-y: auto;

    background: #fff;

    border: 1px solid var(--profile-line);
    border-radius: 12px;

    box-shadow:
        0 24px 64px rgba(15, 23, 42, .18);
}


/* =========================================================
   Header
   ========================================================= */

.profile-plan-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    padding: 20px 24px;

    border-bottom: 1px solid var(--profile-line-2);
}

.profile-plan-modal-title {
    margin: 0;

    font-family: Montserrat, Inter, sans-serif;

    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;

    color: var(--profile-ink);
}

.profile-plan-modal-subtitle {
    margin: 5px 0 0;

    max-width: 560px;

    font-size: 12px;
    line-height: 1.5;

    color: var(--profile-muted);
}

.profile-plan-modal-close {
    width: 32px;
    height: 32px;

    flex-shrink: 0;

    border: 0;
    border-radius: 8px;

    background: transparent;
    color: var(--profile-muted);

    font-size: 16px;
    line-height: 1;

    cursor: pointer;

    transition:
        background .15s ease,
        color .15s ease;
}

.profile-plan-modal-close:hover {
    background: #f3f4f6;
    color: var(--profile-ink);
}


/* =========================================================
   Body
   ========================================================= */

.profile-plan-modal-body {
    padding: 20px 24px 22px;
}


/* =========================================================
   Current Plan
   ========================================================= */

.profile-plan-current-info {
    padding: 16px;

    margin-bottom: 22px;

    border: 1px solid var(--profile-line);
    border-radius: 12px;

    background: #f9fafb;
}

.profile-plan-modal-label {
    margin-bottom: 8px;

    font-size: 10px;
    line-height: 1;

    font-weight: 800;

    letter-spacing: .08em;

    color: var(--profile-muted);
}

.profile-plan-current-main {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 16px;
}

.profile-plan-current-name {
    font-family: Montserrat, Inter, sans-serif;

    font-size: 18px;
    line-height: 1.2;

    font-weight: 800;

    color: var(--profile-ink);
}

.profile-plan-current-price {
    margin-top: 3px;

    font-size: 11px;

    color: var(--profile-muted);
}

.profile-plan-limit-reached {
    flex-shrink: 0;

    padding: 5px 9px;

    border: 1px solid #fecaca;
    border-radius: 999px;

    background: #fef2f2;

    color: #991b1b;

    font-size: 10px;
    line-height: 1;

    font-weight: 700;
}


/* =========================================================
   Usage
   ========================================================= */

.profile-plan-usage-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.profile-plan-usage-item {
    min-width: 0;
}

.profile-plan-usage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 7px;

    font-size: 11px;

    color: var(--profile-muted);
}

.profile-plan-usage-header strong {
    color: var(--profile-ink);

    font-size: 11px;
    font-weight: 700;
}

.profile-plan-progress {
    width: 100%;
    height: 5px;

    overflow: hidden;

    border-radius: 999px;

    background: #e5e7eb;
}

.profile-plan-progress-fill {
    width: 0%;
    height: 100%;

    border-radius: inherit;

    background: var(--profile-blue);

    transition: width .2s ease;
}


/* =========================================================
   Plans
   ========================================================= */

.profile-plan-options-title {
    margin-bottom: 12px;

    font-family: Montserrat, Inter, sans-serif;

    font-size: 14px;
    font-weight: 800;

    color: var(--profile-ink);
}

.profile-plan-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;
}

.profile-plan-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    padding: 18px;

    border: 1px solid var(--profile-line);
    border-radius: 12px;

    background: #fff;

    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        transform .16s ease;
}

.profile-plan-card:hover {
    border-color: #cbd5e1;

    box-shadow:
        0 10px 28px rgba(15, 23, 42, .08);

    transform: translateY(-2px);
}

.profile-plan-card-recommended {
    border-color: var(--profile-blue);

    box-shadow:
        0 8px 24px rgba(14, 165, 233, .10);
}

.profile-plan-card-recommended:hover {
    border-color: var(--profile-blue);

    box-shadow:
        0 12px 30px rgba(14, 165, 233, .14);
}

.profile-plan-recommended {
    position: absolute;

    top: 0;
    right: 14px;

    transform: translateY(-50%);

    padding: 4px 8px;

    border-radius: 999px;

    background: var(--profile-blue);
    color: #fff;

    font-size: 8px;
    line-height: 1;

    font-weight: 800;

    letter-spacing: .06em;
}

.profile-plan-card-head {
    min-height: 24px;

    margin-bottom: 10px;
}

.profile-plan-card-name {
    font-family: Montserrat, Inter, sans-serif;

    font-size: 15px;
    font-weight: 800;

    color: var(--profile-ink);
}

.profile-plan-card-price {
    display: flex;
    align-items: baseline;

    gap: 4px;

    margin-bottom: 16px;
}

.profile-plan-card-price strong {
    font-family: Montserrat, Inter, sans-serif;

    font-size: 24px;
    line-height: 1;

    font-weight: 800;

    color: var(--profile-ink);
}

.profile-plan-card-price span {
    font-size: 10px;

    color: var(--profile-muted);
}

.profile-plan-card-features {
    display: grid;

    gap: 8px;

    margin-bottom: 18px;
}

.profile-plan-card-feature {
    display: flex;
    align-items: center;

    gap: 7px;

    font-size: 11px;

    color: var(--profile-muted);
}

.profile-plan-card-feature > span:first-child {
    color: var(--profile-blue);

    font-weight: 800;
}


/* =========================================================
   Buttons
   ========================================================= */

.profile-plan-select {
    width: 100%;

    margin-top: auto;

    padding: 9px 12px;

    border: 1px solid #d1d5db;
    border-radius: 8px;

    background: #fff;
    color: #374151;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.profile-plan-select:hover {
    border-color: var(--profile-blue);

    color: var(--profile-blue);

    background: #f8fdff;
}

.profile-plan-select-primary {
    border-color: var(--profile-blue);

    background: var(--profile-blue);

    color: #fff;
}

.profile-plan-select-primary:hover {
    border-color: var(--profile-blue-dark);

    background: var(--profile-blue-dark);

    color: #fff;
}

.profile-plan-select:disabled {
    opacity: .65;

    cursor: default;
}


/* =========================================================
   Message
   ========================================================= */

.profile-plan-modal-message {
    min-height: 20px;

    margin-top: 18px;

    font-size: 10px;
    line-height: 1.5;

    color: var(--profile-soft);
}

.profile-plan-modal-message.error {
    color: var(--profile-danger);
}

.profile-plan-modal-message.success {
    color: #15803d;
}

.profile-plan-message-action {
    margin-top: 12px;

    padding: 9px 14px;

    border: 1px solid var(--profile-line);
    border-radius: 8px;

    background: #fff;
    color: var(--profile-ink);

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;
}

.profile-plan-message-action:hover {
    border-color: var(--profile-blue);

    background: #f8fdff;

    color: var(--profile-blue);
}


/* =========================================================
   Footer
   ========================================================= */

.profile-plan-modal-footer {
    margin-top: 18px;

    text-align: center;

    font-size: 10px;
    line-height: 1.5;

    color: var(--profile-soft);
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 760px) {

    .profile-plan-modal {
        max-width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
    }

    .profile-plan-modal-body {
        padding: 18px;
    }

    .profile-plan-usage-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .profile-plan-grid {
        grid-template-columns: 1fr;
    }

    .profile-plan-card {
        padding: 16px;
    }

}

@media (max-width: 480px) {

    .profile-plan-modal {
        max-width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
    }

    .profile-plan-modal-head {
        padding: 16px 18px;
    }

    .profile-plan-modal-subtitle {
        padding-right: 4px;
    }

    .profile-plan-current-main {
        align-items: flex-start;

        flex-direction: column;

        gap: 8px;
    }

    .profile-plan-limit-reached {
        align-self: flex-start;
    }

}

/* Modal */

.profile-plan-modal {
    width: 860px;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);

    overflow-y: auto;

    background: #fff;

    border-radius: 16px;

    box-shadow:
        0 24px 64px rgba(15, 23, 42, .16);

    overflow-x: hidden;
}


/* Header */

.profile-plan-modal .modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    padding: 20px 24px 18px;

    border-bottom: 1px solid #e5e7eb;
}

.profile-plan-modal .modal-title {
    font-family:
        Montserrat,
        Inter,
        sans-serif;

    font-size: 16px;
    font-weight: 800;

    color: #111827;
}

.profile-plan-modal .upgrade-modal-subtitle {
    margin-top: 5px;

    max-width: 560px;

    font-size: 12px;
    line-height: 1.5;

    color: #6b7280;
}

.profile-plan-modal .modal-close {
    width: 32px;
    height: 32px;

    flex: 0 0 auto;

    border: 1px solid #e5e7eb;
    border-radius: 50%;

    background: #f9fafb;
    color: #6b7280;

    font-size: 16px;

    display: grid;
    place-items: center;

    cursor: pointer;
}

.profile-plan-modal .modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}


/* Body */

.profile-plan-modal .modal-body {
    padding: 20px 24px 24px;
}


/* Current plan */

.profile-plan-modal .upgrade-current-plan {
    padding: 16px;

    margin-bottom: 22px;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    background: #f9fafb;
}

.profile-plan-modal .upgrade-current-plan-label {
    margin-bottom: 8px;

    font-size: 10px;
    line-height: 1;

    font-weight: 800;
    letter-spacing: .08em;

    color: #6b7280;
}

.profile-plan-modal .upgrade-current-plan-main {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 16px;
}

.profile-plan-modal .upgrade-current-plan-name {
    font-family:
        Montserrat,
        Inter,
        sans-serif;

    font-size: 18px;
    line-height: 1.2;

    font-weight: 800;

    color: #111827;
}

.profile-plan-modal .upgrade-current-plan-price {
    margin-top: 3px;

    font-size: 11px;

    color: #6b7280;
}


/* Usage */

.profile-plan-modal .upgrade-usage-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.profile-plan-modal .upgrade-usage-item {
    min-width: 0;
}

.profile-plan-modal .upgrade-usage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 7px;

    font-size: 11px;

    color: #6b7280;
}

.profile-plan-modal .upgrade-usage-header strong {
    color: #111827;

    font-size: 11px;
    font-weight: 700;
}

.profile-plan-modal .upgrade-progress {
    width: 100%;
    height: 5px;

    overflow: hidden;

    border-radius: 999px;

    background: #e5e7eb;
}

.profile-plan-modal .upgrade-progress-fill {
    width: 0%;
    height: 100%;

    border-radius: inherit;

    background: #0ea5e9;

    transition: width .2s ease;
}


/* Available plans */

.profile-plan-modal .upgrade-options-title {
    margin-bottom: 12px;

    font-family:
        Montserrat,
        Inter,
        sans-serif;

    font-size: 14px;
    font-weight: 800;

    color: #111827;
}

.profile-plan-modal .upgrade-plan-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;
}

.profile-plan-modal .upgrade-plan-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    padding: 18px;

    border: 1px solid #e5e7eb;
    border-radius: 12px;

    background: #fff;

    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        transform .16s ease;
}

.profile-plan-modal .upgrade-plan-card:hover {
    border-color: #cbd5e1;

    box-shadow:
        0 10px 28px rgba(15, 23, 42, .08);

    transform: translateY(-2px);
}

.profile-plan-modal
.upgrade-plan-card-recommended {
    border-color: #0ea5e9;

    box-shadow:
        0 8px 24px rgba(14, 165, 233, .10);
}

.profile-plan-modal
.upgrade-plan-card-recommended:hover {
    border-color: #0ea5e9;

    box-shadow:
        0 12px 30px rgba(14, 165, 233, .14);
}


/* Recommended */

.profile-plan-modal .upgrade-plan-recommended {
    position: absolute;

    top: 0;
    right: 14px;

    transform: translateY(-50%);

    padding: 4px 8px;

    border-radius: 999px;

    background: #0ea5e9;
    color: #fff;

    font-size: 8px;
    line-height: 1;

    font-weight: 800;

    letter-spacing: .06em;
}


/* Card content */

.profile-plan-modal .upgrade-plan-card-head {
    min-height: 24px;

    margin-bottom: 10px;
}

.profile-plan-modal .upgrade-plan-name {
    font-family:
        Montserrat,
        Inter,
        sans-serif;

    font-size: 15px;
    font-weight: 800;

    color: #111827;
}

.profile-plan-modal .upgrade-plan-price {
    display: flex;
    align-items: baseline;

    gap: 4px;

    margin-bottom: 16px;
}

.profile-plan-modal .upgrade-plan-price strong {
    font-family:
        Montserrat,
        Inter,
        sans-serif;

    font-size: 24px;
    line-height: 1;

    font-weight: 800;

    color: #111827;
}

.profile-plan-modal .upgrade-plan-price span {
    font-size: 10px;

    color: #6b7280;
}


/* Features */

.profile-plan-modal .upgrade-plan-features {
    display: grid;

    gap: 8px;

    margin-bottom: 18px;
}

.profile-plan-modal
.upgrade-plan-features > div {
    display: flex;
    align-items: center;

    gap: 7px;

    font-size: 11px;

    color: #6b7280;
}

.profile-plan-modal
.upgrade-plan-features > div > span:first-child {
    color: #0ea5e9;

    font-weight: 800;
}

.profile-plan-modal .profile-plan-cancel {
    flex-shrink: 0;

    padding: 8px 12px;

    border: 1px solid #d1d5db;
    border-radius: 8px;

    background: #fff;
    color: #6b7280;

    font-size: 10px;
    line-height: 1.2;

    font-weight: 700;

    cursor: pointer;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.profile-plan-modal .profile-plan-cancel:hover {
    border-color: #dc2626;

    background: #fef2f2;
    color: #dc2626;
}

/* Buttons */

.profile-plan-modal .upgrade-plan-button {
    width: 100%;

    margin-top: auto;

    padding: 9px 12px;

    border: 1px solid #d1d5db;
    border-radius: 8px;

    background: #fff;

    color: #374151;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.profile-plan-modal .upgrade-plan-button:hover {
    border-color: #0ea5e9;

    color: #0ea5e9;

    background: #f8fdff;
}

.profile-plan-modal
.upgrade-plan-button-primary {
    border-color: #0ea5e9;

    background: #0ea5e9;

    color: #fff;
}

.profile-plan-modal
.upgrade-plan-button-primary:hover {
    border-color: #0284c7;

    background: #0284c7;

    color: #fff;
}

.profile-plan-modal
.upgrade-plan-button:disabled {
    border-color: #e5e7eb;

    background: #f3f4f6;

    color: #6b7280;

    cursor: default;
}


/* Footer */

.profile-plan-modal .upgrade-modal-footer {
    margin-top: 18px;

    text-align: center;

    font-size: 10px;
    line-height: 1.5;

    color: #9ca3af;
}


/* Error / success message */

.profile-plan-modal
.profile-plan-modal-message {
    min-height: 20px;

    margin-top: 14px;

    font-size: 13px;
    line-height: 1.5;

    color: #6b7280;
}

.profile-plan-modal
.profile-plan-modal-message.error {
    color: #dc2626;
}

.profile-plan-modal
.profile-plan-modal-message.success {
    color: #15803d;
}


/* Responsive */

@media (max-width: 760px) {

    .profile-plan-modal {
        max-width: calc(100vw - 32px);
        max-height: calc(100vh - 32px);
    }

    .profile-plan-modal .modal-body {
        padding: 18px;
    }

    .profile-plan-modal
    .upgrade-usage-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .profile-plan-modal
    .upgrade-plan-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 480px) {

    .profile-plan-modal {
        max-width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
    }

    .profile-plan-modal
    .modal-head {
        padding: 16px 18px;
    }

    .profile-plan-modal
    .modal-body {
        padding: 16px;
    }

}
