/* Global Styles */
:root {
  --primary-color: #6a3093;
  --secondary-color: #a044ff;
  --accent-color: #e91e63;
  --background-color: #1a1a2e;
  --text-color: #f0f0f0;
  --card-bg: #242444;
  --added-color: #4caf50;
  --deleted-color: #f44336;
  --modified-color: #ff9800;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100"><circle cx="50" cy="50" r="1" fill="rgba(255, 255, 255, 0.05)"/></svg>');
  background-size: 50px 50px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background: linear-gradient(45deg, var(--accent-color), #ff4081);
}

.card {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color),
    var(--accent-color)
  );
  z-index: -1;
  filter: blur(20px);
  opacity: 0.2;
  border-radius: 12px;
}

/* Header Styles */
header {
  background-color: rgba(26, 26, 46, 0.95);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
}

.logo i {
  margin-right: 10px;
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-color);
}

.user-actions {
  display: flex;
  align-items: center;
}

.user-actions .btn {
  margin-left: 10px;
}

.user-profile {
  display: none; /* Initially hidden, shown after login */
  align-items: center;
  margin-left: 15px;
  flex-wrap: nowrap;
}

.user-profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}

.user-profile > div {
  display: flex;
  flex-direction: row;
  align-items: center;
  white-space: nowrap;
}

.usage-count {
  background-color: var(--card-bg);
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 14px;
  margin-left: 10px;
  white-space: nowrap;
}

.subscription-info {
  background-color: rgba(16, 185, 129, 0.2);
  color: #10B981;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin-left: 8px;
  white-space: nowrap;
  display: none;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.subscription-info i {
  font-size: 10px;
  color: #10B981;
}

.subscription-info.expired {
  background-color: rgba(239, 68, 68, 0.2);
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.subscription-info.expired i {
  color: #EF4444;
}

.logout-btn {
  background: none;
  border: none;
  color: var(--text-color);
  margin-left: 10px;
  cursor: pointer;
  font-size: 18px;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  opacity: 1;
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  padding: 60px 0;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100"><path d="M30,30L70,70M30,70L70,30" stroke="rgba(255, 255, 255, 0.03)" stroke-width="1"/></svg>');
  background-size: 30px 30px;
  pointer-events: none;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color),
    var(--accent-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 10s ease infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 30px;
  color: rgba(240, 240, 240, 0.8);
}

/* Input Section */
.input-section {
  padding: 40px 0;
}

.text-input-container {
  position: relative;
  margin-bottom: 20px;
}

.text-input {
  width: 100%;
  height: 250px;
  padding: 15px;
  background-color: var(--card-bg);
  border: 2px solid rgba(106, 48, 147, 0.3);
  border-radius: 8px;
  resize: vertical;
  color: var(--text-color);
  font-size: 16px;
  transition: all 0.3s ease;
}

.text-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 8px rgba(106, 48, 147, 0.5);
}

.file-upload {
  display: flex;
  margin-bottom: 20px;
  align-items: center;
}

.file-upload input[type="file"] {
  display: none;
}

.file-upload label {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  color: var(--text-color);
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(106, 48, 147, 0.3);
}

.file-upload label:hover {
  background: rgba(106, 48, 147, 0.2);
}

.file-upload i {
  margin-right: 10px;
}

.file-name {
  margin-left: 10px;
  font-style: italic;
  color: rgba(240, 240, 240, 0.7);
  display: flex;
  align-items: center;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  background: var(--card-bg);
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.action-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  border-color: var(--secondary-color);
}

.action-btn.polish {
  border-color: rgba(106, 48, 147, 0.3);
}

.action-btn.expand {
  border-color: rgba(76, 175, 80, 0.3);
}

.action-btn.condense {
  border-color: rgba(255, 152, 0, 0.3);
}

.action-btn i {
  font-size: 36px;
  margin-bottom: 10px;
}

.action-btn.polish i {
  color: var(--primary-color);
}

.action-btn.expand i {
  color: var(--added-color);
}

.action-btn.condense i {
  color: var(--modified-color);
}

.action-btn h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.action-btn p {
  font-size: 12px;
  text-align: center;
  color: rgba(240, 240, 240, 0.7);
}

/* Result Section */
.result-section {
  padding: 40px 0;
  display: none; /* Initially hidden, shown after processing */
}

.comparison-container {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.text-column {
  flex: 1;
  min-width: 300px;
}

.text-column h3 {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.text-column h3 i {
  margin-right: 10px;
}

.text-content {
  background-color: var(--card-bg);
  padding: 15px;
  border-radius: 8px;
  height: 400px;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.8;
  font-size: 15px;
}

.text-content::-webkit-scrollbar {
  width: 8px;
}

.text-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.text-content::-webkit-scrollbar-thumb {
  background: rgba(106, 48, 147, 0.5);
  border-radius: 10px;
}

.legend {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  margin-right: 8px;
}

.added {
  background-color: var(--added-color);
}

.deleted {
  background-color: var(--deleted-color);
}

.modified {
  background-color: var(--modified-color);
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

/* Pricing Section */
.pricing-section {
  padding: 60px 0;
  text-align: center;
}

.pricing-heading {
  margin-bottom: 50px;
}

.pricing-heading h2 {
  font-size: 36px;
  margin-bottom: 20px;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-heading p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
  color: rgba(240, 240, 240, 0.8);
}

.pricing-plans {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.pricing-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 30px;
  width: 300px;
  text-align: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary-color);
}

.pricing-card.popular {
  border-color: var(--accent-color);
}

.popular-tag {
  position: absolute;
  top: 15px;
  right: -30px;
  background: var(--accent-color);
  color: white;
  padding: 5px 30px;
  transform: rotate(45deg);
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pricing-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.price {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.price span {
  font-size: 16px;
  font-weight: normal;
  color: rgba(240, 240, 240, 0.7);
}

.credits {
  font-size: 18px;
  margin-bottom: 30px;
  font-weight: 600;
}

.pricing-card .btn {
  width: 100%;
  padding: 12px;
}

/* About Section Styles */
.about-section {
  padding: 60px 0;
  display: none; /* Initially hidden, shown when About is clicked */
}

.about-header {
  text-align: center;
  margin-bottom: 50px;
}

.about-header h2 {
  font-size: 36px;
  margin-bottom: 15px;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-header p {
  font-size: 18px;
  color: rgba(240, 240, 240, 0.8);
  max-width: 600px;
  margin: 0 auto;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.about-story,
.about-mission {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.image-credit {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: rgba(255, 255, 255, 0.7);
  padding: 5px 10px;
  font-size: 12px;
  border-top-left-radius: 8px;
  display: none; /* Hide all image credits */
}

.image-credit a {
  color: var(--secondary-color);
  text-decoration: none;
}

.image-credit a:hover {
  text-decoration: underline;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  color: var(--secondary-color);
  font-size: 24px;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: rgba(240, 240, 240, 0.9);
}

.about-team h3,
.about-values h3 {
  color: var(--secondary-color);
  font-size: 24px;
  margin-bottom: 30px;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.team-member {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
}

.member-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 15px;
  border: 3px solid var(--secondary-color);
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member h4 {
  color: var(--text-color);
  font-size: 18px;
  margin-bottom: 5px;
}

.member-role {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 10px;
}

.member-bio {
  font-size: 14px;
  color: rgba(240, 240, 240, 0.8);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.value-item {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.value-item:hover {
  transform: translateY(-5px);
  background-color: rgba(106, 48, 147, 0.2);
}

.value-item i {
  font-size: 36px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.value-item h4 {
  color: var(--text-color);
  font-size: 18px;
  margin-bottom: 10px;
}

.value-item p {
  font-size: 15px;
  color: rgba(240, 240, 240, 0.8);
  line-height: 1.6;
}

.about-cta {
  text-align: center;
  padding: 40px;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
}

.about-cta h3 {
  color: var(--secondary-color);
  font-size: 24px;
  margin-bottom: 15px;
}

.about-cta p {
  margin-bottom: 25px;
  color: rgba(240, 240, 240, 0.9);
}

@media (max-width: 900px) {
  .about-story,
  .about-mission {
    flex-direction: column;
  }

  .about-mission {
    flex-direction: column-reverse;
  }

  .team-grid,
  .values-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Login/Register Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal {
  background-color: var(--card-bg);
  width: 100%;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  height: 10px;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 8px 8px 0 0;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  font-size: 22px;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-btn:hover {
  color: var(--accent-color);
}

.modal-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-tab {
  flex: 1;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.modal-tab.active {
  color: var(--secondary-color);
  border-bottom: 3px solid var(--secondary-color);
}

.modal-content {
  padding: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  color: var(--text-color);
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(160, 68, 255, 0.2);
}

.forgot-password {
  text-align: right;
  margin-bottom: 20px;
}

.forgot-password a {
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 14px;
}

.modal-content .btn {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
}

.social-login {
  margin-top: 30px;
  text-align: center;
}

.social-login p {
  margin-bottom: 15px;
  color: rgba(240, 240, 240, 0.7);
  position: relative;
}

.social-login p::before,
.social-login p::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
}

.social-login p::before {
  left: 0;
}

.social-login p::after {
  right: 0;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
}

.social-btn:hover {
  transform: translateY(-3px);
}

.social-btn.google:hover {
  color: #ea4335;
}

.social-btn.facebook:hover {
  color: #1877f2;
}

.social-btn.twitter:hover {
  color: #1da1f2;
}

/* Purchase Confirmation Modal */
.purchase-modal .modal-content {
  text-align: center;
}

.purchase-details {
  margin-bottom: 20px;
}

.purchase-details h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.purchase-details p {
  font-size: 16px;
  margin-bottom: 8px;
}

.purchase-price {
  font-size: 36px;
  font-weight: 700;
  margin: 20px 0;
  color: var(--secondary-color);
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.payment-method {
  display: flex;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-method:hover,
.payment-method.selected {
  background-color: rgba(106, 48, 147, 0.1);
  border-color: var(--secondary-color);
}

.payment-method img {
  width: 40px;
  margin-right: 15px;
}

/* History Section */
.history-section {
  padding: 40px 0;
  display: none; /* Initially hidden, shown after login */
}

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

.history-list {
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
}

.history-item {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-item:last-child {
  border-bottom: none;
}

.history-item:hover {
  background-color: rgba(106, 48, 147, 0.1);
}

.history-content {
  display: flex;
  flex-direction: column;
}

.history-date {
  font-size: 12px;
  color: rgba(240, 240, 240, 0.6);
  margin-top: 5px;
}

.history-type {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 10px;
}

.history-type.polish {
  background-color: rgba(106, 48, 147, 0.2);
  color: var(--primary-color);
}

.history-type.expand {
  background-color: rgba(76, 175, 80, 0.2);
  color: var(--added-color);
}

.history-type.condense {
  background-color: rgba(255, 152, 0, 0.2);
  color: var(--modified-color);
}

/* Footer */
footer {
  background-color: rgba(26, 26, 46, 0.95);
  padding: 40px 0 20px;
  margin-top: 60px;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color),
    var(--accent-color)
  );
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-bottom: 30px;
  text-align: center;
}

.footer-branding {
  max-width: 600px;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 15px;
}

.footer-logo i {
  margin-right: 10px;
  color: var(--accent-color);
  font-size: 32px;
}

.footer-description {
  color: rgba(240, 240, 240, 0.7);
  line-height: 1.8;
  font-size: 15px;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(240, 240, 240, 0.6);
  font-size: 14px;
}

/* Floating credit badge */
.credits-badge {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(26, 26, 46, 0.8);
  border: 1px solid var(--secondary-color);
  border-radius: 20px;
  padding: 8px 15px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  z-index: 100;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.credits-badge:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.credits-badge i {
  color: var(--secondary-color);
  margin-right: 8px;
}

.credits-badge span {
  font-weight: 600;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
}

.toast {
  background-color: var(--card-bg);
  color: var(--text-color);
  padding: 15px 20px;
  border-radius: 5px;
  margin-bottom: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 300px;
  animation: slideInRight 0.3s ease, fadeOut 0.5s ease 3.5s forwards;
  border-left: 4px solid var(--secondary-color);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.toast i {
  margin-right: 10px;
  font-size: 18px;
}

.toast.success {
  border-left-color: var(--added-color);
}

.toast.success i {
  color: var(--added-color);
}

.toast.error {
  border-left-color: var(--deleted-color);
}

.toast.error i {
  color: var(--deleted-color);
}

.toast.info {
  border-left-color: var(--secondary-color);
}

.toast.info i {
  color: var(--secondary-color);
}

.toast-close {
  background: none;
  border: none;
  color: rgba(240, 240, 240, 0.7);
  cursor: pointer;
  font-size: 16px;
  padding: 0 5px;
}

.toast-close:hover {
  color: var(--text-color);
}

/* Loading Indicator */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(26, 26, 46, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1500;
  backdrop-filter: blur(5px);
}

.loading-spinner {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 6px solid transparent;
  border-top-color: var(--primary-color);
  border-bottom-color: var(--secondary-color);
  animation: spin 1.5s linear infinite;
}

.loading-spinner::before,
.loading-spinner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.loading-spinner::before {
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 6px solid transparent;
  border-left-color: var(--accent-color);
  border-right-color: var(--secondary-color);
  animation: spin 1s linear infinite reverse;
}

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

.loading-text {
  position: absolute;
  top: calc(50% + 50px);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
  }

  .action-buttons {
    flex-direction: column;
    align-items: center;
  }

  .action-btn {
    width: 100%;
    max-width: 300px;
  }

  .comparison-container {
    flex-direction: column;
  }

  .pricing-card {
    width: 100%;
    max-width: 350px;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 36px;
  }

  .footer-content {
    flex-direction: column;
  }

  .modal {
    width: 90%;
  }

  .legend {
    flex-direction: column;
    align-items: flex-start;
  }

  .pagination-controls {
    flex-wrap: wrap;
    gap: 5px;
  }

  .pagination-btn {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .user-profile > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .usage-count {
    margin-left: 0;
    font-size: 12px;
  }
  
  .subscription-info {
    margin-left: 0;
    font-size: 11px;
    padding: 3px 6px;
  }
  
  .subscription-info i {
    font-size: 9px;
  }
}

/* Added Text Styles */
.added-text {
  background-color: rgba(76, 175, 80, 0.2);
  color: var(--added-color);
  padding: 0 3px;
  border-radius: 3px;
  font-weight: 500;
}

/* Deleted Text Styles */
.deleted-text {
  background-color: rgba(244, 67, 54, 0.2);
  color: var(--deleted-color);
  padding: 0 3px;
  border-radius: 3px;
  text-decoration: line-through;
  font-weight: 500;
  display: inline-block;
}

/* Modified Text Styles */
.modified-text {
  background-color: rgba(255, 152, 0, 0.2);
  color: var(--modified-color);
  padding: 0 3px;
  border-radius: 3px;
  font-weight: 500;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  height: 100%;
  background-color: var(--background-color);
  z-index: 1500;
  transform: translateX(-100%);
  transition: transform 0.3s ease-out;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  padding: 20px;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.mobile-menu-links {
  list-style: none;
}

.mobile-menu-links li {
  margin-bottom: 15px;
}

.mobile-menu-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 18px;
  display: block;
  padding: 10px 0;
  transition: all 0.3s ease;
}

.mobile-menu-links a:hover {
  color: var(--accent-color);
}

.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1400;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-backdrop.active {
  display: block;
  opacity: 1;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 24px;
  cursor: pointer;
}

.modal-back {
  margin-bottom: 20px;
}

.modal-back a {
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.modal-back a:hover {
  color: var(--accent-color);
}

.modal-back i {
  margin-right: 8px;
}

.reset-title {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--text-color);
  text-align: center;
}

.reset-info {
  margin-bottom: 25px;
  color: rgba(240, 240, 240, 0.7);
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

/* Privacy Policy Modal Styles */
.policy-modal {
  max-width: 800px;
  max-height: 80vh;
}

.privacy-content {
  max-height: 70vh;
  overflow-y: auto;
  padding: 20px 30px;
  text-align: left;
}

.privacy-content h3 {
  color: var(--secondary-color);
  margin: 20px 0 10px;
  font-size: 18px;
}

.privacy-content p,
.privacy-content li {
  margin-bottom: 10px;
  color: rgba(240, 240, 240, 0.9);
  line-height: 1.6;
  font-size: 15px;
}

.privacy-content ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.privacy-content .last-updated {
  font-style: italic;
  color: rgba(240, 240, 240, 0.6);
  text-align: right;
  margin-top: 30px;
  font-size: 14px;
}

.privacy-content::-webkit-scrollbar {
  width: 8px;
}

.privacy-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.privacy-content::-webkit-scrollbar-thumb {
  background: rgba(106, 48, 147, 0.5);
  border-radius: 10px;
}

.purchase-details {
  margin-bottom: 20px;
}

/* Add styles for privacy policy and terms of service */
.terms-checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: rgba(240, 240, 240, 0.8);
  font-size: 14px;
}

.terms-checkbox input[type="checkbox"] {
  margin-right: 10px;
  cursor: pointer;
  width: 16px;
  height: 16px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.terms-checkbox label {
  cursor: pointer;
  display: flex;
  align-items: center;
  margin: 0;
}

.terms-link,
.privacy-link {
  color: var(--secondary-color);
  text-decoration: none;
  margin: 0 4px;
  transition: all 0.2s ease;
}

.terms-link:hover,
.privacy-link:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Verification code input box styles */
.verification-group .verification-container {
  display: flex;
  gap: 10px;
}

.verification-container input {
  flex: 3;
  min-width: 150px;
}

.get-code-btn {
  flex: 1;
  padding: 8px 10px;
  white-space: nowrap;
  font-size: 0.85rem;
  min-width: 110px;
  max-width: 120px;
}

.get-code-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Pagination control styles */
.history-pagination {
  margin-top: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pagination-info {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pagination-btn {
  background: rgba(128, 90, 213, 0.1);
  border: 1px solid rgba(128, 90, 213, 0.3);
  color: var(--accent-color);
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(128, 90, 213, 0.2);
}

.pagination-btn:disabled {
  opacity: 1;
  background: rgba(128, 90, 213, 0.15);
  border: 1.5px solid var(--secondary-color);
  color: var(--accent-color);
  cursor: not-allowed;
}

.page-info {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Order status styles */
.order-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.order-amount {
  font-weight: 600;
  color: var(--accent-color);
  font-size: 16px;
}

.order-credits {
  background-color: rgba(106, 48, 147, 0.2);
  color: var(--secondary-color);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

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

.status-pending {
  background-color: rgba(255, 152, 0, 0.2);
  color: #ff9800;
}

.status-success {
  background-color: rgba(76, 175, 80, 0.2);
  color: #4caf50;
}

.status-failed {
  background-color: rgba(244, 67, 54, 0.2);
  color: #f44336;
}

.status-cancelled {
  background-color: rgba(158, 158, 158, 0.2);
  color: #9e9e9e;
}

/* Payment result modal styles */
.payment-result-modal .modal-header h2 {
  display: flex;
  align-items: center;
}

/* Mobile responsive for order details */
@media (max-width: 600px) {
  .order-info {
    gap: 8px;
  }
  
  .order-amount {
    font-size: 14px;
  }
  
  .order-credits,
  .order-status {
    font-size: 11px;
    padding: 2px 6px;
  }
}
