/* ===========================
   GLOBAL STYLES
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333;
}

body {
  display: flex;
  flex-direction: column;
}

/* ===========================
   AUTH PAGE (INDEX.HTML) SPECIFIC
   =========================== */
body.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  position: relative;
  min-height: 100vh;
}

body.auth-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.1);
  z-index: 0;
  pointer-events: none;
}

.auth-container {
  position: relative;
  background: rgba(255,255,255,0.95);
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 1;
  animation: fadeInUp 0.6s ease both;
  margin: 20px auto;
  min-height: 400px;
  position: relative;
}

.auth-container h1 {
  margin-bottom: 20px;
  font-size: 26px;
  color: #333;
}

.auth-container h2 {
  margin-bottom: 16px;
  font-size: 22px;
  color: #333;
}

.auth-container input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.auth-container input:focus {
  border-color: #4facfe;
  outline: none;
}

.auth-container button {
  width: 100%;
  padding: 10px;
  margin-top: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-container button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.form-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.4s ease;
  padding: 30px;
  box-sizing: border-box;
}

.form-box.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  position: relative;
}

.terms-modal-content {
  max-height: 80vh;
  overflow-y: auto;
  text-align: left;
}

/* ===========================
   MENU BAR
   =========================== */
.menu-bar {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
  transition: box-shadow 0.3s ease;
}

.menu-bar:hover {
  box-shadow: 0 2px 15px rgba(0,0,0,0.12);
}

.menu-bar .left {
  position: absolute;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.menu-bar button.hamburger {
  font-size: 24px;
  cursor: pointer;
  border: none;
  background: none;
  color: #333;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
  width: 40px;
  height: 40px;
}

.menu-bar button.hamburger:hover {
  background: #f5f5f5;
  color: #667eea;
  transform: none;
  box-shadow: none;
}

.menu-bar button.hamburger:active {
  background: #e8e8e8;
  transform: scale(0.95);
}

.menu-bar .title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  letter-spacing: -0.3px;
}

/* ===========================
   SIDEBAR
   =========================== */
.sidebar {
  position: fixed;
  left: -280px;
  top: 0;
  width: 280px;
  height: 100vh;
  background: #fff;
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 200;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar.showSidebar {
  left: 0;
}

.sidebar-header {
  padding: 24px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
}

.sidebar-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.3);
}

.sidebar button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  border: none;
  background: none;
  color: #4a4a4a;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.sidebar button::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #667eea;
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.sidebar button:hover {
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.08) 0%, rgba(255,255,255,0) 100%);
  color: #667eea;
  padding-left: 24px;
  transform: none;
  box-shadow: none;
}

.sidebar button:hover::before {
  transform: scaleY(1);
}

.sidebar button:active {
  background: linear-gradient(90deg, rgba(102, 126, 234, 0.15) 0%, rgba(255,255,255,0) 100%);
  transform: scale(0.98);
}

.sidebar button i {
  font-size: 20px;
  width: 24px;
  text-align: center;
  transition: transform 0.2s ease;
}

.sidebar button:hover i {
  transform: scale(1.1);
}

.sidebar button:last-child {
  border-bottom: none;
  margin-top: auto;
}

/* Logout button special styling */
.sidebar button:last-child {
  color: #dc3545;
  margin-top: 20px;
}

.sidebar button:last-child:hover {
  background: linear-gradient(90deg, rgba(220, 53, 69, 0.08) 0%, rgba(255,255,255,0) 100%);
  color: #dc3545;
}

.sidebar button:last-child::before {
  background: #dc3545;
}

/* ===========================
   OVERLAY
   =========================== */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 150;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay.show {
  display: block;
  animation: fadeIn 0.3s ease forwards;
}

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

/* ===========================
   MAIN CONTAINER
   =========================== */
.main-container {
  padding: 30px 20px;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ===========================
   LOADER / SPINNER
   =========================== */
#loader {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 25px 40px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 18px;
  z-index: 2000;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  pointer-events: none;
}

#loadingOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.spinner,
.loader {
  border: 6px solid rgba(102, 126, 234, 0.2);
  border-top: 6px solid #667eea;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

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

/* ===========================
   BUTTONS
   =========================== */
button {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.link-btn {
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-size: 14px;
}

.link-btn:hover {
  transform: none;
  box-shadow: none;
  color: #0056b3;
}

/* ===========================
   MODALS
   =========================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  padding: 20px;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  position: relative;
  animation: fadeInUp 0.3s ease both;
  color: #333;
  margin: auto;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  color: #666;
}

.modal-close:hover {
  color: #000;
}

.modal-content h2 {
  margin-top: 20px;
  margin-bottom: 20px;
  color: #333;
}

.modal-content input {
  width: 100%;
  padding: 12px;
  border: 2px solid #ccc;
  border-radius: 8px;
  margin: 10px 0;
  font-size: 16px;
  box-sizing: border-box;
}

.modal-content input:focus {
  border-color: #4facfe;
  outline: none;
}

.modal-content button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

/* ===========================
   FORM ELEMENTS
   =========================== */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

input:focus {
  border-color: #4facfe;
  outline: none;
}

/* Password toggle */
.password-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

.password-container input {
  padding-right: 40px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #666;
  font-size: 18px;
  user-select: none;
  padding: 5px;
}

.toggle-password:hover {
  color: #333;
}

/* Checkbox */
.checkbox-container {
  text-align: left;
  margin: 12px 0;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.checkbox-container input[type="checkbox"] {
  width: auto;
  margin: 4px 0 0 0;
  cursor: pointer;
}

.checkbox-container label {
  flex: 1;
  cursor: pointer;
}

/* ===========================
   ERROR & SUCCESS MESSAGES
   =========================== */
.error-text {
  color: #dc3545;
  font-size: 13px;
  margin: -4px 0 8px 0;
  text-align: left;
  display: none;
}

.otp-sent-text,
.success-text {
  color: #28a745;
  font-size: 13px;
  margin: 8px 0;
  display: none;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  display: none;
  border-left: 4px solid #28a745;
}

.success-message.show {
  display: block;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.hidden {
  display: none !important;
}

.switch-text {
  margin-top: 12px;
  font-size: 14px;
}

/* ===========================
   PROFILE PAGE SPECIFIC
   =========================== */
.profile-container {
  max-width: 700px;
  margin: 20px auto;
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.profile-container h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #667eea;
  font-size: 28px;
}

.profile-field {
  margin-bottom: 25px;
}

.profile-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 16px;
  color: #333;
}

.profile-field span,
.profile-field select {
  display: block;
  padding: 12px 15px;
  background: #f8f9fa;
  border-radius: 8px;
  width: 100%;
  font-size: 15px;
  color: #333;
  border: 1px solid #e0e0e0;
}

.profile-field select {
  cursor: pointer;
}

.subscription-actions {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subscription-actions button {
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.change-password-section {
  margin-top: 30px;
  text-align: center;
  padding-top: 25px;
  border-top: 2px solid #f0f0f0;
}

.change-password-section button {
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
}

/* ===========================
   HELP PAGE SPECIFIC
   =========================== */
.help-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  overflow: hidden;
}

.help-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 40px 30px;
  text-align: center;
}

.help-header h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.help-header p {
  font-size: 16px;
  opacity: 0.95;
}

.help-content {
  padding: 30px;
}

.help-section {
  margin-bottom: 40px;
}

.help-section:last-child {
  margin-bottom: 0;
}

.section-title {
  font-size: 24px;
  color: #667eea;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
  font-weight: 600;
}

.install-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
}

.install-steps {
  display: grid;
  gap: 15px;
  margin-top: 15px;
}

.install-step {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.install-step strong {
  color: #667eea;
  display: block;
  margin-bottom: 8px;
}

.faq-list {
  display: grid;
  gap: 15px;
}

.faq-item {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid #667eea;
}

.faq-question {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 16px;
}

.faq-answer {
  color: #666;
  line-height: 1.6;
}

.contact-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 25px;
  border-radius: 12px;
  display: grid;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-item a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover {
  text-decoration: underline;
}

.report-form {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
}

.report-form textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
  min-height: 150px;
  margin-bottom: 15px;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.report-form textarea:focus {
  outline: none;
  border-color: #667eea;
}

.report-form button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.terms-accordion {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
}

.terms-accordion details {
  border-bottom: 1px solid #e0e0e0;
}

.terms-accordion details:last-child {
  border-bottom: none;
}

.terms-accordion summary {
  padding: 20px;
  background: #f8f9fa;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
}

.terms-accordion summary:hover {
  background: #e9ecef;
}

.terms-accordion summary::after {
  content: '+';
  font-size: 20px;
  color: #667eea;
}

.terms-accordion details[open] summary::after {
  content: '−';
}

.terms-content {
  padding: 20px;
  line-height: 1.6;
  color: #666;
}

.terms-content p {
  margin-bottom: 12px;
}

.terms-content p:last-child {
  margin-bottom: 0;
}

/* ===========================
   APP PAGE SPECIFIC (Live Feed)
   =========================== */
#noSubscription {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

#noSubscription h2 {
  color: #667eea;
  margin-bottom: 15px;
}

#noSubscription p {
  color: #666;
  margin-bottom: 20px;
}

#noSubscription button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

#liveFeedContainer {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

#liveFeedContainer h2 {
  color: #667eea;
  text-align: center;
  margin-bottom: 20px;
}

#subscription-status {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
}

#subscription-status p {
  margin: 5px 0;
  color: #666;
}

.feed-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}

img#aerialFeed {
  width: 100%;
  height: auto;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: block;
}

#errorMsg {
  color: #dc3545;
  margin-top: 15px;
  text-align: center;
  padding: 20px;
  background: #fff3cd;
  border-radius: 12px;
  border-left: 4px solid #ffc107;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  animation: slideInFade 0.5s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#errorMsg::before {
  content: "⚠️";
  font-size: 24px;
}

#errorMsg:empty {
  display: none;
  padding: 0;
  margin: 0;
  border: none;
  animation: none;
}

#loadingText {
  color: #667eea;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 500;
  animation: pulse 1.5s ease-in-out infinite;
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* ===========================
   SUBSCRIPTION MODAL (Profile Page)
   =========================== */
.subscription-modal-content {
  background: #fff;
  padding: 40px 30px;
  border-radius: 15px;
  width: 95%;
  max-width: 1000px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  position: relative;
  animation: fadeInUp 0.3s ease both;
  color: #333;
  margin: auto;
}

.subscription-modal-content h2 {
  margin-top: 10px;
  margin-bottom: 30px;
  color: #333;
  font-size: 28px;
}

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

.plan-card {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  padding: 30px 20px;
  color: white;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
}

.plan-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.plan-card.popular {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border: 3px solid #ffd700;
}

.plan-card.popular::before {
  content: "BEST VALUE";
  position: absolute;
  top: -12px;
  right: 20px;
  background: #ffd700;
  color: #333;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
}

.plan-card.premium {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.plan-name {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
}

.plan-price {
  font-size: 42px;
  font-weight: bold;
  margin: 15px 0;
}

.plan-price small {
  font-size: 18px;
  font-weight: normal;
}

.plan-duration {
  font-size: 16px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.plan-savings {
  background: rgba(255,255,255,0.2);
  padding: 10px;
  border-radius: 8px;
  margin: 15px 0;
  font-size: 14px;
  font-weight: bold;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.plan-features li {
  padding: 8px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features li::before {
  content: "✓";
  font-weight: bold;
  font-size: 18px;
}

.plan-select-btn {
  background: white;
  color: #667eea;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
  width: 100%;
}

.plan-select-btn:hover {
  background: rgba(255,255,255,0.9);
  transform: scale(1.05);
}

.plan-card.popular .plan-select-btn {
  background: #ffd700;
  color: #333;
}

.payment-section-modal {
  margin-top: 30px;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 10px;
  display: none;
}

.payment-section-modal h3 {
  margin-bottom: 20px;
  color: #333;
}

.stripe-card-row {
  margin-bottom: 12px;
}

#card-number-element {
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: white;
  margin-bottom: 12px;
}

#card-details-row {
  display: flex;
  gap: 10px;
}

#card-expiry-element,
#card-cvc-element {
  flex: 1;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: white;
}

#payment-button-modal {
  width: 100%;
  padding: 15px;
  background: linear-gradient(90deg, #4facfe, #00f2fe);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 768px) {
  .main-container {
    padding: 20px 15px;
  }

  .profile-container,
  .help-content,
  #liveFeedContainer,
  #noSubscription {
    padding: 20px;
  }

  .help-header h1 {
    font-size: 26px;
  }

  .section-title {
    font-size: 20px;
  }

  .subscription-modal-content {
    padding: 20px 15px;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .subscription-modal-content h2 {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .plans-container {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 15px;
    padding: 10px 5px;
    margin-bottom: 15px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .plan-card {
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: center;
  }

  .payment-section-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 15px 15px 0 0;
    max-height: 60vh;
    overflow-y: auto;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    z-index: 1002;
    background: #f8f9fa;
  }

  .modal {
    overflow: hidden;
  }

  .menu-bar {
    padding: 14px 15px;
  }

  .menu-bar .title {
    font-size: 18px;
  }

  .menu-bar button.hamburger {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .sidebar {
    width: 280px;
    left: -280px;
  }

  .auth-container {
    width: 95%;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 20px;
    width: 95%;
  }
}