/* === GLOBAL STYLES === */
body {
  margin: 0;
  margin-top: 0%;
  padding: 1em 1em; /* was 3em 1em */
  background-color: #0d0d0d;
  color: #f0f0f0;
  font-family: 'Sora', sans-serif;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

/* === CONTAINER === */
.container {
  text-align: center;
  max-width: 700px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0px;
  margin-top: 0px;
  padding: 2%;
}

.responsive-container {
  margin-top: 0%;
  
  width: 100%;
  max-width: 700px;
  padding: 1em;
  box-sizing: border-box;
}


/* === HEADINGS === */
h1 {
  font-size: 2.5rem;
  margin-bottom: 0.2em;
  margin-top: 0px;
  letter-spacing: -0.5px;
}

.tagline {
  font-size: 1.1rem;
  margin-bottom: 2em;
  color: #ccc;
}

/* === ORB === */
.orb {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  box-shadow: 0 0 25px 10px #a685f2;
  position: relative;
  overflow: hidden;

  background: 
    radial-gradient(circle at center, rgba(166, 133, 242, 0.5), rgba(91, 71, 166, 0.9)),
    url('logo.png');  /* 👈 Replace with your image */
  background-size: cover;
  background-position: center;

  opacity: 0;
  height: 0;
  margin-top: 0;
  margin-bottom: 0;
  pointer-events: none;
  transition: opacity 2s ease, height 2s ease, margin 2s ease;
}

.orb.visible {
  opacity: 1;
  height: 200px;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  pointer-events: auto;
}

/* === GHOST FACE === */
.ghost-face {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 55px;
  height: 77px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 23px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.eye {
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
}

.prompt {
  font-size: 1.05rem;
  line-height: 1.6;
  letter-spacing: 0.2px;
  margin-bottom: 1.2em;
  margin-top: 0em;
}

.container p {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

p.prompt {
  margin: 0.5em 0;
}

button {
  background-color: #a685f2;
  color: #000;
  border: none;
  padding: 0.8em 1.6em;
  font-size: 1rem;
  border-radius: 12px;
  margin-bottom:5px;
  margin-top: 5px;
  cursor: pointer;
  transition: opacity 0.3s ease, background-color 0.3s ease;
  max-width: 220px;
  width: 100%;
}

button:hover {
  background-color: #6044a4;
}

.subscription-section {
  text-align: center;
  margin-top: 60px;
  padding: 40px 20px;
  background: #0d0d0d;
  color: #fff;
  border-top: 1px solid #222;
  font-family: 'Sora', sans-serif;
}

.sub-heading {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
}

.sub-tagline {
  font-size: 16px;
  color: #bbb;
  margin-bottom: 0px;
}

.plans {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.plan {
  background: #111;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
  border: 1px solid #333;
}

.plan h3 {
  margin-top: 0;
  font-size: 20px;
  color: #653086; /* Preserved purple */
}

.plan .price {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 10px 0;
}

.plan ul {
  list-style: none;
  padding: 0;
  font-size: 14px;
  color: #ccc;
}

.plan ul li {
  margin: 8px 0;
}

.plan.featured {
  border: 2px solid #653086;
  background: #1a0e2d;
}

li {
  position: relative;
  display: inline-block;
  cursor: help;
}

.tooltip {
  visibility: hidden;
  opacity: 0;
  width: 200px;
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* Position above */
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.3s;
  font-size: 13px;
  line-height: 1.4;
  pointer-events: none;
}

li:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.plan.premium {
  border: 2px solid #653086;
  background: #0c0c0c;
  color: #fff;
}

.plan.premium h3 {
  color: #653086;
}

.plan.premium .tooltip {
  background-color: #222;
  color: #eee;
}

.form {
  background-color: #111;
  padding: 2em;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(166, 133, 242, 0.05);
  width: 100%;
  max-width: 380px;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  max-width: 320px;
  padding: 0.75em 1em;
  margin-bottom: 1.2em;
  border: 1px solid #333;
  border-radius: 10px;
  background-color: #1a1a1a;
  color: #f0f0f0;
  font-size: 1rem;
  transition: border-color 0.3s, background-color 0.3s;
}

input[type="email"]::placeholder,
input[type="password"]::placeholder {
  color: #888;
}

input[type="email"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: #a685f2;
  background-color: #222;
}

input:-webkit-autofill {
  background-color: #1a1a1a !important;
  -webkit-box-shadow: 0 0 0 1000px #1a1a1a inset !important;
  -webkit-text-fill-color: #f0f0f0 !important;
  transition: background-color 5000s ease-in-out 0s;
}

input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #222 inset !important;
  -webkit-text-fill-color: #f0f0f0 !important;
}

select {
  width: 100%;
  max-width: 320px;
  padding: 0.75em 1em;
  margin-bottom: 1.2em;
  border: 1px solid #333;
  border-radius: 10px;
  background-color: #1a1a1a;
  color: #f0f0f0;
  font-size: 1rem;
  font-family: 'Sora', sans-serif;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%204%205'%3E%3Cpath%20fill='white'%20d='M2%200L0%202h4L2%200z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  background-size: 0.65em;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
}

select:focus {
  outline: none;
  border-color: #a685f2;
  background-color: #222;
}

option {
  background-color: #1a1a1a;
  color: #f0f0f0;
}

.memory-card {
  background-color: #1a1a1a;
  padding: 1em;
  width: 90%;
  max-width: 100%; /* Important */
  border-radius: 12px;
  margin-bottom: 1em;
  box-shadow: 0 0 8px rgba(166, 133, 242, 0.1);
  border: 1px solid #333;
  text-align: left;
  box-sizing: border-box; /* CRITICAL for width control */
  margin: 0 auto 1em; /* Center horizontally, keep bottom margin */
}



.memory-list {
  display: flex;
  flex-direction: column;
  gap: 1em;
  width: 100%;
  box-sizing: border-box;
}


.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(3px);
}

.modal-content {
  background-color: #111;
  margin: 10% auto;
  padding: 20px 30px;
  border: 1px solid #444;
  width: 90%;
  max-width: 500px;
  border-radius: 16px;
  color: #f0f0f0;
  font-family: 'Sora', sans-serif;
  box-shadow: 0 0 20px rgba(166, 133, 242, 0.1);
}

.modal-content h2 {
  color: #a685f2;
}

.modal-content .close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.modal-content .close:hover {
  color: #fff;
}

.tiny-pulsate {
      animation: pulse 1s infinite ease-in-out;
      margin-top: 2em;
    }

    @keyframes pulse {
      0% {
        transform: scale(1);
      }
      50% {
        transform: scale(1.05);
      }
      100% {
        transform: scale(1);
      }
    }

.share-link-container {
  margin-top: 1em;
  background-color: #111;
  padding: 0.8em;
  border-radius: 10px;
  border: 1px solid #333;
}

.share-label {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 0.4em;
  display: block;
}

.share-row {
  display: flex;
  gap: 0.5em;
  align-items: center;
}

.share-input {
  flex: 1;
  padding: 0.6em 1em;
  border: 1px solid #333;
  border-radius: 8px;
  background-color: #1a1a1a;
  color: #f0f0f0;
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s, background-color 0.3s;
}

.share-input:focus {
  border-color: #a685f2;
  background-color: #222;
  outline: none;
}

.copy-btn {
  background-color: #a685f2;
  color: #000;
  border: none;
  padding: 0.6em 1em;
  font-size: 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.copy-btn:hover {
  background-color: #6044a4;
}


img {
  max-width: 60%;
  height: auto;
}

.logo-img {
  margin-top: 0;
  margin-bottom: 0.5em;
  max-width: 60%;
  display: block;
}

@media (max-width: 480px) {
  .memory-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.delete-btn {
  background-color: #bb2d3b;
  color: white;
  border: none;
  padding: 0.5em 1em;
  margin-top: 0.75em;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9em;
}

@media (max-width: 480px) {
  .share-row {
    flex-direction: column;
    align-items: stretch;
  }

  .copy-btn {
    width: 100%;
  }

  .share-input {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .subscription-buttons {
    flex-direction: column;
    gap: 0.5em;
    align-items: stretch;
  }

  .subscription-buttons button {
    width: 100%;
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  .form {
    width: 100%;
    padding: 1em;
    box-sizing: border-box;
  }

  .form input,
  .form select,
  .form button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .responsive-container {
    padding: 1em;
  }
}

/* Toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  margin-top: 0px;
}

.switch input {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  top: 2;
  left: 0;
  z-index: 2;
  cursor: pointer;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #666;
  transition: 0.4s;
  border-radius: 34px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: rgb(98, 54, 202);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

@media (max-width: 480px) {
  .switch {
    min-width: 52px;
  }

  .switch-container {
    display: flex;
    align-items: center;
    gap: 1em;
    flex-wrap: nowrap;
    margin-top: 5px;
    width: 100%;
  }
}

.icon-buttons {
  display: flex;
  justify-content: center;
  gap: 0.5em;
  margin-top: 0em;   /* reduced from 1.5em */
  margin-bottom: 0em;
}

.icon-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.2s;
  outline: none;
  will-change: transform;
  width: 150px;
  height: 150px;
}

.icon-btn:hover,
.icon-btn:focus,
.icon-btn:active {
  background: none !important;
  box-shadow: none;
  outline: none;
  transform: scale(1.1); /* Add this line */
  transition: box-shadow 0.3s, transform 0.2s;
}



