.modal {
  display: none; /* Hide the modal by default */
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 50%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background */
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

.narrow-modal {
  display: none; /* Hide the modal by default */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 33%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background */
}

.narrow-modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 95%;
}

.thumbnail-modal {
  display: none; /* Hide the modal by default */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 25%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background */
}

.hidden-content {
  display: none;
}

.hidden {
    display: none;
}
.visible {
    display: block;
}

/* The Minimize and close button */
.minimize, .close, .maximize-icon {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.minimize:hover, .close:hover, .maximize-icon:hover,
.minimize:focus, .close:focus, .maximize-icon:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}


.minimized {
  width: 30px; /* Smaller width when minimized */
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
  background-color: rgba(128, 128, 128, 0.7); /* Greyish semi-transparent background */
}

.minimized-arrow {
  color: white;
  position: absolute;
  top: 50%;
  left: 10px;
  font-size: 20px;
  cursor: pointer;
  display: none; /* Hide by default */
}

.text-left, .text-center, .text-right {
  display: flex;
  align-items: center;
  justify-content: center; /* For text-right, you might want to use 'flex-end' */
}

/* Adjust the alignment for text-right specifically if needed */
.text-right {
  justify-content: flex-end;
}

.modal-content-wider {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
}

.warning-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    transition: opacity 0.5s;
}

.warning-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 50%;
    text-align: center;
    border-radius: 5px; /* Rounded corners */
    transition: transform 0.3s; /* Slight zoom-in effect */
}

.warning-close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background-color: #f2f2f2;
    border-radius: 50%; /* Makes the button circular */
    padding: 5px; /* Gives some space around the "X" */
}

.warning-close-button:hover,
.warning-close-button:focus {
    color: black;
    background-color: #ddd;
}

#error-text {
    font-weight: bold;
    color: #555;
    font-size: 18px;
    margin-bottom: 1px;
}

#pending-text {
    font-weight: bold;
    color: #555;
    font-size: 18px;
    margin-bottom: 1px;
}

.full-modal {
  display: none; /* Hide the modal by default */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 70%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background */
}

.full-screen-modal {
  display: none; /* Hide the modal by default */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Darker semi-transparent background */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column; /* Stack loader and text vertically */
}

.close_story {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 99;
}

.close_story:hover,
.close_story:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.table-container {
  max-width: 100%; /* Adjust the width as needed */
  margin: 0 auto; /* Center the container horizontally */
  padding: 20px;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 5px;
  overflow-x: auto;
}

.character-container {
  max-width: 100%; /* Adjust the width as needed */
  margin: 0 auto; /* Center the container horizontally */
  padding: 10px;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 5px;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

.table th,
.table td {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.add-btn,
.save-btn {
  padding: 8px 16px;
  background-color: #4caf50;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.add-btn:hover,
.save-btn:hover {
  background-color: #45a049;
}

.add-field-btn {
  padding: 4px 12px;
  margin-left: 25px;
  background-color: #4caf50;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.add-field-btn:hover {
  background-color: #45a049;
}

.remove-row-btn {
  padding: 4px 12px;
  margin-left: 20px;
  background-color: #f44336;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.remove-row-btn-left {
  padding: 4px 12px;
  margin-left: 80px;
  background-color: #f44336;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.remove-row-btn:hover {
  background-color: #e53935;
}

#storyModal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 1);
  display: none;
  z-index: 2;

  /* NEW For Mobile*/
  overscroll-behavior: none;

}

#storyContainer {
  position: relative;
  width: 100%;
  height: 100%;
}

#storyDiv {
  width: 960px;
  height: 540px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;

  /* NEW For Mobile*/
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;

}

#storyModal.storyModalFullscreenFallback {
  position: fixed;
  inset: 0;
  width: 100dvw;
  height: 100dvh;
  overflow: hidden;
}

#fullscreenButton {
  position: absolute;
  width: 30px;
  height: 30px;
  font-size: 24px;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 999;
}

.scene-image {
  display: block;
  position: absolute;
}

#speaker-container {
  position: absolute; /* or "relative" or "fixed" based on your layout needs */
}

#text-container {
  position: absolute; /* or "relative" or "fixed" based on your layout needs */
}

.invisible-image {
  display: none;
}

.visible-image {
  display: block; /* Set to 'block' or 'inline-block' based on your layout needs */
}

.textbox-image {
  /* Does nothing but add an identifier to the image to prevent removal from the div */
  /* Do not add any styling to this or it may have unintended consequences */
}

.scrollable-div {
  height: 225px; /* Set the maximum height for the div */
  overflow-y: scroll; /* Enable vertical scrolling */
 /* border: 1px solid #ccc;  Add a border for visual separation */
  padding: 10px; /* Add some padding for content spacing */
}

.scrollable-div2 {
  height: 225px; /* Set the maximum height for the div */
  overflow-y: scroll; /* Enable vertical scrolling */
 /* border: 1px solid #ccc;  Add a border for visual separation */
  padding: 10px; /* Add some padding for content spacing */
}

.scrollable-div-jsthree {
  overflow-y: scroll; /* Enable vertical scrolling */
 /* border: 1px solid #ccc;  Add a border for visual separation */
  padding: 10px; /* Add some padding for content spacing */
}

.scrollable-div3 {
  height: 350px; /* Set the maximum height for the div */
  overflow-y: scroll; /* Enable vertical scrolling */
 /* border: 1px solid #ccc;  Add a border for visual separation */
  padding: 10px; /* Add some padding for content spacing */
}

.scrollable-div-short {
  height: 150px; /* Set the maximum height for the div */
  overflow-y: scroll; /* Enable vertical scrolling */
 /* border: 1px solid #ccc;  Add a border for visual separation */
  padding: 10px; /* Add some padding for content spacing */
}

/* Basic table styling */
.stats-checklist {
    width: 100%;
    border-collapse: collapse; /* Remove default spacing between table cells */
    font-family: Arial, sans-serif; /* Change this to your preferred font */
    margin: 20px 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.stats-checklist thead th {
    background-color: #4CAF50; /* A green color for the header, change as needed */
    color: white;
    padding: 10px;
    text-align: left;
}

.stats-checklist tbody td {
    padding: 10px;
    border-bottom: 1px solid #dddddd; /* Add a light gray border to separate rows */
}

.stats-checklist tbody tr:hover {
    background-color: #f5f5f5; /* Add a hover effect to rows */
}

.stats-checklist input[type="checkbox"] {
    margin-right: 5px; /* Space out checkbox from the label a bit */
}

.stats-checklist input[type="number"] {
    width: 60px; /* You can adjust this width depending on your preference */
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.stats-checklist input[type="number"].wide {
    width: 120px; /* Adjust the width for the wider input */
}

/* Add zebra-striping for readability */
.stats-checklist tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

.table-responsive {
  overflow-x: auto; /* Allows table to scroll horizontally */
  max-width: 100%; /* Sets the maximum width of the container */
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.tooltipForTableCells {
  position: absolute;
  display: block;
}

.tooltipForTableCells .tooltiptext {
  visibility: hidden;
  width: auto; /* Auto width to accommodate different text lengths */
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px 16px; /* Adjust padding as needed */
  position: absolute;
  z-index: 100;
  bottom: 100%; /* Position the tooltip above the cell */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltipForTableCells:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Modal Header */
.modal-header {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

/* Checkbox Container */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1rem;
}

/* Materials Container */
.materials-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
}

/* Material Item */
.material-item {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer; /* Indicate it's clickable */
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Hover Effect */
.material-item:hover {
    background-color: #eaeaea;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Active Click Effect */
.material-item:active {
    background-color: #dcdcdc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Add Icon (Optional) */
.material-item::after {
    content: '⇨'; /* Arrow indicator */
    font-size: 1rem;
    color: #888;
    margin-left: 10px;
    opacity: 0.8;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.material-item:hover::after {
    transform: translateX(5px); /* Slight animation */
    opacity: 1;
}

/* Modal Footer */
.modal-footer {
    margin-top: 20px;
    text-align: center;
}

/* Revert Button */
.btn-revert {
    padding: 10px 20px;
    background-color: #d9534f;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-revert:hover {
    background-color: #c9302c;
}

/* Apply To All Button */
.btn-apply {
    padding: 10px 20px;
    background-color: #5cb85c; /* Green color */
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-apply:hover {
    background-color: #4cae4c; /* Slightly darker green for hover effect */
}

.makeup-header {
  font-weight: 600; /* Slightly less bold than bold (700) */
  font-size: 1.1rem; /* Smaller than h3 but still noticeable */
  color: #007bff; /* Keep the blue color for consistency */
  margin: 0 0 5px 0; /* Add bottom margin for spacing */
  text-transform: uppercase; /* Optional: Make it uppercase for emphasis */
  letter-spacing: 0.5px; /* Slight letter spacing for elegance */
}

.preview-publish-modal {
    display: none; /* Hide the modal by default */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%; /* Fullscreen modal */
    height: 100%; /* Fullscreen modal */
    background-color: rgba(0, 0, 0, 0.9); /* Semi-transparent background */

    /* Flexbox to center the content */
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    overflow-y: scroll;
}

.preview-publish-modal-content {
    max-width: 270px; /* Limit width */
    max-height: 152px; /* Limit height */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Add a shadow */
    display: block; /* Ensure image is treated as a block element */
}

.preview-publish-modal-content:hover {
    transform: scale(1.42); /* Enlarge on hover */
    transition: transform 0.3s ease; /* Smooth scaling */
}


/* Modal content wrapper */
.preview-detail-modal-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    max-width: 90%;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
}

/* Game background image */
.preview-detail-modal-content {
    width: 848px;
    height: 477px;
    border-radius: 8px;
    margin-top: 50px;
    margin-bottom: 20px;
}

/* Text container */
.preview-detail-text-container {
    text-align: center;
    color: white;
    width: 848px;
}

/* Tags section */
.preview-detail-tags {
    margin-bottom: 10px;
}

.preview-detail-tag {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 5px;
    font-size: 14px;
}

/* Game description */
.preview-detail-description {
    font-size: 16px;
    margin-bottom: 10px;
}

/* Game credits */
.preview-detail-credits {
    font-size: 14px;
    font-style: italic;
    opacity: 0.8;
}

/* Close button */
.preview-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
}

/* Actions container for Add to List & Rating */
.preview-detail-actions-container {
    display: flex;
    align-items: center;
    justify-content: center; /* This centers items horizontally */
    gap: 15px; /* Space between Add to List & Stars */
    margin: 10px 0;
}


/* Add to List Button */
.add-to-list {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.add-to-list:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

/* Star Rating */
.star-rating {
    display: flex;
}

.star {
    font-size: 20px;
    color: #ccc; /* Default color */
    cursor: pointer;
    transition: color 0.3s;
}

.star:hover,
.star.active {
    color: gold; /* Highlighted stars */
}

.launch-game {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  padding: 20px 40px; /* ✅ Larger button */
  font-size: 24px; /* ✅ Bigger text */
  font-weight: bold;
  text-transform: uppercase;
  background: linear-gradient(135deg, #3498db, #2980b9); /* ✅ Gradient effect */
  color: white;
  border: none;
  border-radius: 10px; /* ✅ Rounded edges */
  cursor: pointer;
  box-shadow: 0px 0px 20px rgba(52, 152, 219, 0.8); /* ✅ Glowing effect */
  animation: pulse 2s infinite; /* ✅ Subtle pulsing animation */
  transition: all 0.3s ease-in-out;
}

/* ✅ Hover Effect */
.launch-game:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: linear-gradient(135deg, #2980b9, #1c6ea4);
  box-shadow: 0px 0px 30px rgba(52, 152, 219, 1);
}

/* ✅ Pulse Animation */
@keyframes pulse {
  0% {
    box-shadow: 0px 0px 20px rgba(52, 152, 219, 0.8);
  }
  50% {
    box-shadow: 0px 0px 30px rgba(52, 152, 219, 1);
  }
  100% {
    box-shadow: 0px 0px 20px rgba(52, 152, 219, 0.8);
  }
}

/* Hair Color Selection Pop-Up */
.colorPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 8px;
    text-align: center;
    width: 300px;
}

.popup-content h3 {
    margin-bottom: 10px;
}

.color-options {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

/* 🎨 Custom Color Picker Container */
.colorPopup .customColorPicker {
    appearance: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ccc;
    cursor: pointer;
    padding: 0;
    background: none;
    outline: none;
    transition: border-color 0.2s ease-in-out;
}

/* 🖱️ Hover effect to indicate interactivity */
.colorPopup .customColorPicker:hover {
    border-color: #555;
}

/* ✅ Make the color picker hide the default UI */
.colorPopup .customColorPicker::-webkit-color-swatch-wrapper {
    padding: 0;
}

.colorPopup .customColorPicker::-webkit-color-swatch {
    border: none;
    border-radius: 50%;
}

/* 🎨 Label Styling */
.colorPopup label[for="customHairColor"] {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #333;
    text-align: center;
    cursor: pointer;
}

.colorPopup .color-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 colors per row */
    gap: 8px;
    justify-content: center;
}

.colorPopup .color-swatch-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
}

/* ✨ Hover effect */
.colorPopup .color-swatch-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    border-color: #999;
}

.colorPopup button:not(.color-swatch-btn) {
    padding: 8px 12px;
    border: none;
    background-color: #3498db;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.load-more-button {
    display: block;
    margin: 10px auto;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.load-more-button:hover {
    background-color: #0056b3;
}

.subscription-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.subscription-modal-card {
  width: min(960px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #d9e4f0;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  padding: 1.35rem;
  color: #1f2937;
}

.subscription-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.subscription-modal-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  color: #17202a;
}

.subscription-modal-subtitle {
  margin: 0.3rem 0 0;
  font-size: 0.95rem;
  color: #607080;
}

.subscription-modal-close {
  border: none;
  background: #eef4fb;
  color: #486174;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.subscription-modal-close:hover {
  background: #e1ebf6;
  transform: scale(1.04);
}

.subscription-current-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.subscription-summary-pill {
  background: linear-gradient(145deg, #f4f8fc, #eef3f9);
  border: 1px solid #d6e0ea;
  border-radius: 14px;
  padding: 0.95rem 1rem;
}

.subscription-summary-plan {
  background: linear-gradient(145deg, #edf4ff, #f4f8ff);
  border-color: #bfd3f2;
}

.subscription-summary-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #66788a;
  margin-bottom: 0.35rem;
}

.subscription-summary-value {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2933;
}

.subscription-section {
  margin-top: 1.1rem;
}

.subscription-section-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: #213547;
}

.subscription-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.subscription-plan-card {
  width: 100%;
  text-align: left;
  background: linear-gradient(145deg, #f4f8fc, #eef3f9);
  border: 1px solid #d6e0ea;
  border-radius: 16px;
  padding: 1rem;
  color: #1f2933;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
}

.subscription-plan-card:hover {
  border-color: #6ea8fe;
  background: linear-gradient(145deg, #eaf2ff, #f2f6ff);
  transform: translateY(-2px);
}

.subscription-plan-card.featured {
  border-color: #ffd766;
  background: linear-gradient(145deg, #fff9e6, #fff4cc);
}

.subscription-plan-card.active-plan {
  border-color: #2e8b57;
  background: linear-gradient(145deg, #e9f9ef, #f3fff7);
}

.subscription-plan-badge {
  display: inline-block;
  margin-bottom: 0.65rem;
  background: #ffd766;
  color: #1f2933;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.subscription-plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.subscription-plan-price {
  font-size: 1rem;
  color: #2e8b57;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.subscription-plan-desc {
  font-size: 0.9rem;
  color: #5a6b7b;
  line-height: 1.45;
}

.subscription-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.subscription-btn {
  border: none;
  border-radius: 12px;
  padding: 0.82rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.subscription-btn:hover {
  transform: translateY(-1px);
}

.subscription-btn-primary {
  background: #2563eb;
  color: #fff;
}

.subscription-btn-secondary {
  background: #e9eef5;
  color: #243746;
}

.subscription-btn-danger {
  background: #fff1f2;
  color: #b42318;
  border: 1px solid #fecdd3;
}

.subscription-btn-success {
  background: #ecfdf3;
  color: #027a48;
  border: 1px solid #abefc6;
}

.subscription-notice {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #dbe7f3;
  color: #425466;
  font-size: 0.92rem;
  line-height: 1.5;
}

.subscription-plan-features {
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: #5a6b7b;
  line-height: 1.45;
}

.subscription-plan-features li {
  margin-bottom: 0.25rem;
}

@media (max-width: 860px) {
  .subscription-current-summary,
  .subscription-plan-grid {
    grid-template-columns: 1fr;
  }

  .subscription-modal-card {
    padding: 1rem;
  }
}

.selected-plan {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

#subscriptionActions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.exit-confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
}

.exit-confirm-box {
  width: min(320px, 85vw);
  background: #111;
  color: white;
  border: 2px solid #777;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.exit-confirm-box h3 {
  margin-top: 0;
}

.exit-confirm-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}

.exit-confirm-buttons button {
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}
