.pricing {
  padding: var(--spacing-xl) var(--spacing-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 1rem;
}

.pricing-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  min-width: 0; /* Allow cards to shrink */
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--primary-light);
  display: flex;
  flex-direction: column;
  min-height: 500px; /* Set fixed height for cards */
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.pricing-header {
  margin-bottom: 2rem;
  flex-shrink: 0; /* Prevent header from shrinking */
  height: 150px; /* Fixed height for header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.pricing-header i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.pricing-header h2 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pricing-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.pricing-features {
  margin: 2rem 0;
  text-align: left;
  flex: 1; /* Take up remaining space */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.pricing-features p {
  margin: 1rem 0;
  color: var(--text-primary);
}

.pricing-features i {
  color: var(--primary);
  margin-right: 0.5rem;
}

.pricing-price {
  position: relative;
  padding: 20px 0;
  text-align: center;
  flex-shrink: 0; /* Prevent price from shrinking */
  height: 80px; /* Fixed height for price section */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.price-badge {
  background: #3498db;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pricing-price .price {
  font-size: 2.2rem;
  font-weight: 700;
  display: block;
  color: #333;
  margin: 5px 0;
}

.pricing-price .period {
  font-size: 0.9rem;
  color: #666;
  opacity: 0.8;
}

.cta-button {
  margin-top: auto; /* Push button to bottom */
}

/* Contact section improvements */
.contact {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="none"/><path d="M50 0h50v50H50z" fill="rgba(0,0,0,0.02)"/><path d="M0 50h50v50H0z" fill="rgba(0,0,0,0.02)"/></svg>');
  background-size: 30px 30px;
  opacity: 0.4;
  z-index: 0;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-header {
  text-align: center;
  margin-bottom: 50px;
}

.contact-header h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.contact-header h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #3498db, #673ab7);
  border-radius: 3px;
}

.contact-subtitle {
  font-size: 1.2rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.contact-info {
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 30px;
  line-height: 1.6;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.contact-button {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-button i {
  font-size: 1.2rem;
  margin-right: 12px;
}

.contact-button.discord {
  background-color: #5865F2;
  color: white;
}

.contact-button.discord:hover {
  background-color: #4752C4;
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(88, 101, 242, 0.3);
}

.contact-button.email {
  background-color: #3498db;
  color: white;
}

.contact-button.email:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(52, 152, 219, 0.3);
}

.contact-button.whatsapp {
  background-color: #25D366;
  color: white;
}

.contact-button.whatsapp:hover {
  background-color: #1fad54;
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(37, 211, 102, 0.3);
}

.response-time {
  display: flex;
  align-items: center;
  padding: 15px;
  border-radius: 8px;
  background-color: rgba(52, 152, 219, 0.1);
}

.response-time i {
  font-size: 1.2rem;
  color: #3498db;
  margin-right: 12px;
}

.response-time p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

.contact-card {
  background: linear-gradient(135deg, #0a192f 0%, #172a45 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
}

.card-content {
  padding: 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.inquiry-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(100, 255, 218, 0.9);
  color: #0a192f;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 30px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2364ffda' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.2;
}

.card-content h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #64ffda;
}

.card-content p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 25px;
  color: #8892b0;
}

.contact-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 15px;
  border-radius: 8px;
  text-align: left;
}

.contact-highlight i {
  color: #64ffda;
  font-size: 1.1rem;
}

.contact-highlight p {
  margin: 0;
  font-size: 0.95rem;
  color: #e6f1ff;
}

.contact-cta {
  margin-top: 25px;
  background: #64ffda;
  color: #0a192f;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(100, 255, 218, 0.2);
}

.contact-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(100, 255, 218, 0.3);
  background: #72ffde;
}

.contact-cta i {
  font-size: 1rem;
}

/* Footer improvements */
.footer {
    background-color: #0a192f; /* Match dark theme */
    color: #8892b0; /* Match text color */
    padding: 30px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 25px; /* Increased gap */
}

.footer-links a {
    color: #8892b0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #64ffda; /* Highlight color */
}

.footer p {
    font-size: 0.85rem;
    margin-top: 10px;
}

/* Live Chat Styles */
.chat-window {
    position: fixed;
    bottom: 30px; /* Adjusted position */
    right: 30px;
    width: 350px;
    max-height: 500px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000; /* Ensure it's above other elements */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95); /* Added scale for effect */
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.chat-window.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1); /* Added scale for effect */
}

.chat-header {
    background: linear-gradient(135deg, #3498db, #673ab7);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.close-chat-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.chat-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    line-height: 1.4;
    font-size: 0.9rem;
    position: relative; /* Needed for absolute positioning of status */
    word-wrap: break-word; /* Ensure long words break */
}

.message p {
    margin: 0; /* Remove default paragraph margin */
    padding-right: 25px; /* Add space for status icon on sent messages */
}

.message.received p {
    padding-right: 0; /* No extra padding needed for received */
}

.message.received {
    background-color: #e9e9eb;
    color: #333;
    border-bottom-left-radius: 3px;
    align-self: flex-start;
}

.message.sent {
    background-color: #3498db;
    color: white;
    border-bottom-right-radius: 3px;
    align-self: flex-end;
}

/* Style for system/error messages */
.message.system-error {
    background-color: #ffcdd2; /* Light red */
    color: #b71c1c; /* Dark red */
    font-style: italic;
    font-size: 0.85rem;
    align-self: center; /* Center system messages */
    max-width: 90%;
    text-align: center;
    border-radius: 5px;
}

/* Style for system info messages */
.message.system-info {
    background-color: #e0e0e0; /* Light grey */
    color: #616161; /* Dark grey */
    font-style: italic;
    font-size: 0.8rem;
    align-self: center;
    max-width: 90%;
    text-align: center;
    border-radius: 5px;
    padding: 5px 10px; /* Smaller padding */
}

/* Message Status Indicator Styles */
.message-status {
    position: absolute;
    bottom: 5px;
    right: 8px;
    font-size: 0.7rem; /* Smaller icon */
    opacity: 0.7;
}

.message-status[data-status="sending"] i {
    color: rgba(255, 255, 255, 0.7);
}
.message-status[data-status="sent"] i {
    color: rgba(255, 255, 255, 0.8);
}
.message-status[data-status="read"] i {
    color: #a7ffeb; /* A brighter color for read */
}
.message-status[data-status="failed"] i {
    color: #ff8a80; /* Reddish color for failed */
}

.chat-input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid #e0e0e0;
    background-color: #ffffff;
}

/* Connection Status Bar Styles */
.connection-status {
    padding: 8px 15px;
    font-size: 0.8rem;
    text-align: center;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.connection-status.connecting {
    background-color: #ffe0b2; /* Light orange */
    color: #e65100; /* Dark orange */
}

.connection-status.connected {
    background-color: #c8e6c9; /* Light green */
    color: #1b5e20; /* Dark green */
}

.connection-status.failed {
    background-color: #ffcdd2; /* Light red */
    color: #b71c1c; /* Dark red */
}

#chat-input {
    flex-grow: 1;
    border: 1px solid #dcdcdc;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 0.9rem;
    margin-right: 10px;
    outline: none;
    transition: border-color 0.3s ease;
}

#chat-input:focus {
    border-color: #3498db;
}

.send-chat-button {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.send-chat-button:hover {
    background-color: #2980b9;
}

/* Responsive adjustments for chat */
@media (max-width: 480px) {
    .chat-window {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 20px; /* Adjusted position */
    }
}

/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-buttons {
    flex-direction: column;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-header h2 {
    font-size: 2rem;
  }
  
  .contact-subtitle {
    font-size: 1rem;
  }
}
