/**
 * MediaGrab WordPress Theme Stylesheet
 * Full Responsive Glassmorphic Dark & Light Mode System
 */

:root {
  --mg-bg: #020617;
  --mg-bg-surface: rgba(15, 23, 42, 0.75);
  --mg-bg-card: rgba(15, 23, 42, 0.6);
  --mg-border: rgba(255, 255, 255, 0.08);
  --mg-border-hover: rgba(99, 102, 241, 0.35);
  --mg-text-main: #f8fafc;
  --mg-text-muted: #94a3b8;
  --mg-primary: #6366f1;
  --mg-primary-hover: #4f46e5;
  --mg-secondary: #ec4899;
  --mg-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --mg-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

html.light {
  --mg-bg: #f8fafc;
  --mg-bg-surface: #ffffff;
  --mg-bg-card: #ffffff;
  --mg-border: rgba(0, 0, 0, 0.08);
  --mg-border-hover: rgba(99, 102, 241, 0.5);
  --mg-text-main: #0f172a;
  --mg-text-muted: #475569;
  --mg-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
}

/* Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.mg-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--mg-bg);
  color: var(--mg-text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Ambient Glow */
body.mg-body::before {
  content: '';
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(236, 72, 153, 0.12) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mg-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.mg-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--mg-bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--mg-border);
  transition: all 0.3s ease;
}

.mg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.mg-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mg-logo-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--mg-gradient);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: transform 0.25s ease;
}

.mg-brand:hover .mg-logo-icon {
  transform: scale(1.05);
}

.mg-brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.mg-brand-gradient {
  background: var(--mg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mg-version-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.25);
  margin-left: 6px;
}

.mg-desktop-nav {
  display: flex;
  align-items: center;
}

.mg-nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.mg-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mg-text-muted);
  transition: all 0.2s ease;
}

.mg-nav-link:hover,
.mg-nav-link.active {
  color: var(--mg-text-main);
  background: rgba(255, 255, 255, 0.06);
}

html.light .mg-nav-link:hover,
html.light .mg-nav-link.active {
  background: rgba(0, 0, 0, 0.05);
}

.mg-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mg-theme-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--mg-border);
  color: var(--mg-text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mg-theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

html.light .mg-moon-icon { display: block; }
html.light .mg-sun-icon { display: none; }
html.dark .mg-moon-icon { display: none; }
html.dark .mg-sun-icon { display: block; }

.mg-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--mg-text-main);
  cursor: pointer;
  padding: 6px;
}

.mg-mobile-drawer {
  background: var(--mg-bg);
  border-bottom: 1px solid var(--mg-border);
  padding: 16px 20px;
}

.mg-mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mg-mobile-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--mg-text-main);
  background: rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.mg-hero-section {
  padding: 44px 0 20px;
  text-align: center;
}

.mg-hero-content {
  max-width: 860px;
  margin: 0 auto;
}

.mg-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.mg-badge-sm {
  padding: 4px 12px;
  font-size: 12px;
  margin-bottom: 12px;
}

.mg-hero-title {
  font-size: 46px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 14px;
  color: var(--mg-text-main);
}

.mg-text-gradient {
  display: block;
  background: var(--mg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mg-hero-subtitle {
  font-size: 17px;
  color: var(--mg-text-muted);
  max-width: 640px;
  margin: 0 auto 24px;
}

.mg-downloader-box {
  margin-bottom: 0;
}

.mg-quick-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.mg-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mg-text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--mg-border);
  padding: 6px 14px;
  border-radius: 9999px;
}

/* ==========================================================================
   Generic Section Headers
   ========================================================================== */
.mg-section {
  padding: 38px 0;
}

.mg-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 28px;
}

.mg-section-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--mg-text-main);
  margin-bottom: 8px;
}

.mg-section-subtitle {
  font-size: 15px;
  color: var(--mg-text-muted);
}

/* ==========================================================================
   Features Grid
   ========================================================================== */
.mg-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.mg-feature-card {
  background: var(--mg-bg-card);
  border: 1px solid var(--mg-border);
  border-radius: 20px;
  padding: 32px 26px;
  backdrop-filter: blur(16px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mg-feature-card:hover {
  border-color: var(--mg-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--mg-shadow);
}

.mg-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.mg-icon-indigo { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.mg-icon-pink { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
.mg-icon-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.mg-icon-emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; }

.mg-feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--mg-text-main);
  margin-bottom: 8px;
}

.mg-feature-desc {
  font-size: 14px;
  color: var(--mg-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   How It Works Steps
   ========================================================================== */
.mg-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.mg-step-card {
  position: relative;
  background: var(--mg-bg-card);
  border: 1px solid var(--mg-border);
  border-radius: 24px;
  padding: 36px 30px;
  backdrop-filter: blur(16px);
}

.mg-step-number {
  position: absolute;
  top: 24px;
  right: 26px;
  font-size: 36px;
  font-weight: 900;
  color: rgba(99, 102, 241, 0.18);
  font-family: monospace;
}

.mg-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.mg-step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--mg-text-main);
}

.mg-step-desc {
  font-size: 14px;
  color: var(--mg-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Supported Formats
   ========================================================================== */
.mg-formats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.mg-format-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--mg-bg-card);
  border: 1px solid var(--mg-border);
  border-radius: 18px;
  padding: 24px;
  transition: all 0.2s ease;
}

.mg-format-card:hover {
  border-color: var(--mg-border-hover);
}

.mg-format-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.mg-format-info {
  flex: 1;
}

.mg-format-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--mg-text-main);
}

.mg-format-desc {
  font-size: 13px;
  color: var(--mg-text-muted);
  margin-bottom: 10px;
}

.mg-format-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 2px 8px;
  border-radius: 6px;
}

/* ==========================================================================
   Trust Section
   ========================================================================== */
.mg-trust-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 27, 75, 0.4) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 24px;
  padding: 38px 32px;
  backdrop-filter: blur(20px);
}

.mg-trust-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 28px;
}

.mg-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.mg-trust-item {
  text-align: center;
}

.mg-trust-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--mg-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.mg-trust-item-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.mg-trust-item-desc {
  font-size: 13px;
  color: var(--mg-text-muted);
}

/* ==========================================================================
   Accordion FAQ
   ========================================================================== */
.mg-faq-container {
  max-width: 860px;
}

.mg-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mg-accordion-item {
  background: var(--mg-bg-card);
  border: 1px solid var(--mg-border);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.mg-accordion-item.open {
  border-color: rgba(99, 102, 241, 0.4);
}

.mg-accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  color: var(--mg-text-main);
  font-size: 16px;
  font-weight: 700;
}

.mg-accordion-chevron {
  color: var(--mg-text-muted);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  margin-left: 12px;
}

.mg-accordion-item.open .mg-accordion-chevron {
  transform: rotate(180deg);
  color: #818cf8;
}

.mg-accordion-body {
  padding: 0 24px 22px;
  color: var(--mg-text-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ==========================================================================
   SEO Article
   ========================================================================== */
.mg-seo-article {
  background: var(--mg-bg-card);
  border: 1px solid var(--mg-border);
  border-radius: 24px;
  padding: 38px 32px;
  backdrop-filter: blur(16px);
}

.mg-article-header {
  margin-bottom: 24px;
  text-align: center;
}

.mg-article-main-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--mg-text-main);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.mg-article-lead {
  font-size: 16px;
  color: var(--mg-text-muted);
  max-width: 720px;
  margin: 0 auto;
}

.mg-article-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.mg-article-block h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--mg-text-main);
  margin-bottom: 12px;
}

.mg-article-block p {
  color: var(--mg-text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.mg-article-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.mg-article-checklist li {
  position: relative;
  padding-left: 26px;
  color: var(--mg-text-muted);
  font-size: 14px;
}

.mg-article-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #34d399;
  font-weight: 800;
}

/* ==========================================================================
   Ad Slots
   ========================================================================== */
.mg-ad-container {
  padding: 24px 0;
  text-align: center;
}

.mg-ad-wrapper {
  display: inline-block;
  width: 100%;
  max-width: 970px;
}

.mg-ad-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mg-text-muted);
  margin-bottom: 6px;
}

.mg-ad-slot-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--mg-border);
  border-radius: 12px;
  padding: 16px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mg-ad-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--mg-text-muted);
  font-size: 13px;
  font-weight: 600;
}

.mg-ad-placeholder small {
  font-size: 11px;
  opacity: 0.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.mg-footer {
  background: var(--mg-bg);
  border-top: 1px solid var(--mg-border);
  padding: 44px 0 24px;
  position: relative;
  z-index: 1;
}

.mg-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}

.mg-footer-desc {
  font-size: 14px;
  color: var(--mg-text-muted);
  margin: 16px 0 20px;
  max-width: 380px;
  line-height: 1.6;
}

.mg-trust-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 600;
}

.mg-trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}

.mg-footer-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--mg-text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.mg-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mg-footer-links a {
  font-size: 14px;
  color: var(--mg-text-muted);
}

.mg-footer-links a:hover {
  color: var(--mg-text-main);
  padding-left: 4px;
}

.mg-disclaimer-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--mg-border);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 12px;
  color: var(--mg-text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

.mg-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--mg-border);
  font-size: 13px;
  color: var(--mg-text-muted);
}

.mg-footer-legal-tag {
  font-size: 12px;
}

.mg-hidden {
  display: none !important;
}

/* ==========================================================================
   Main Body Format Sub-Navigation Bar (Above #1 Rated Badge)
   ========================================================================== */
.mg-format-bar-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 28px;
  width: 100%;
}

.mg-format-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--mg-bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 14px;
  border-radius: 9999px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 14px 35px -8px rgba(0, 0, 0, 0.5), 0 0 25px rgba(99, 102, 241, 0.18);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

html.light .mg-format-bar {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.12);
}

.mg-format-bar::-webkit-scrollbar {
  display: none;
}

.mg-format-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--mg-text-muted);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mg-format-tab:hover {
  color: var(--mg-text-main);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

html.light .mg-format-tab:hover {
  background: rgba(0, 0, 0, 0.06);
}

.mg-format-tab.active {
  color: #ffffff !important;
  background: var(--mg-gradient);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

.mg-tab-icon {
  font-size: 19px;
}

/* Mobile Divider */
.mg-mobile-divider {
  height: 1px;
  background: var(--mg-border);
  margin: 8px 0;
}

/* ==========================================================================
   Inner Page Templates (About, Contact, Legal)
   ========================================================================== */
.mg-page-main,
.mg-about-page,
.mg-contact-page {
  padding-bottom: 80px;
}

.mg-page-hero {
  padding: 50px 0 36px;
  text-align: center;
  border-bottom: 1px solid var(--mg-border);
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
}

.mg-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mg-text-muted);
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 14px;
  border-radius: 9999px;
  border: 1px solid var(--mg-border);
}

.mg-breadcrumbs a:hover {
  color: #818cf8;
}

.mg-crumb-sep {
  opacity: 0.5;
}

.mg-crumb-current {
  color: var(--mg-text-main);
  font-weight: 600;
}

.mg-page-title {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -1px;
  margin: 12px 0;
  color: var(--mg-text-main);
}

.mg-page-lead {
  font-size: 17px;
  color: var(--mg-text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

.mg-page-meta {
  font-size: 13px;
  color: var(--mg-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.mg-meta-dot {
  opacity: 0.4;
}

/* Page Card / Article Body */
.mg-page-section,
.mg-about-section,
.mg-contact-section {
  padding-top: 40px;
}

.mg-page-card {
  background: var(--mg-bg-surface);
  border: 1px solid var(--mg-border);
  border-radius: 24px;
  padding: 44px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--mg-shadow);
}

.mg-glass-card {
  background: var(--mg-bg-surface);
  border: 1px solid var(--mg-border);
  border-radius: 24px;
  padding: 36px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--mg-shadow);
}

/* Prose Typography for Legal & Article Pages */
.mg-prose {
  color: var(--mg-text-muted);
  line-height: 1.75;
  font-size: 15px;
}

.mg-prose h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--mg-text-main);
  margin: 36px 0 16px;
  letter-spacing: -0.5px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--mg-border);
}

.mg-prose h2:first-child {
  margin-top: 0;
}

.mg-prose h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--mg-text-main);
  margin: 24px 0 12px;
}

.mg-prose p {
  margin-bottom: 16px;
}

.mg-prose ul,
.mg-prose ol {
  margin: 16px 0;
  padding-left: 24px;
}

.mg-prose li {
  margin-bottom: 8px;
}

.mg-prose strong {
  color: var(--mg-text-main);
}

.mg-prose a {
  color: #818cf8;
  text-decoration: underline;
}

.mg-prose a:hover {
  color: #a5b4fc;
}

.mg-prose blockquote {
  border-left: 4px solid #6366f1;
  background: rgba(99, 102, 241, 0.08);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 20px 0;
  font-style: italic;
}

/* SEO Article Comparison Table & Step List */
.mg-table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 16px;
  border: 1px solid var(--mg-border);
}

.mg-compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.mg-compare-table th {
  background: rgba(99, 102, 241, 0.12);
  color: var(--mg-text-main);
  padding: 14px 18px;
  font-weight: 700;
  border-bottom: 1px solid var(--mg-border);
}

.mg-compare-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--mg-border);
  color: var(--mg-text-muted);
}

.mg-compare-table tr:last-child td {
  border-bottom: none;
}

.mg-text-success {
  color: #34d399;
  font-weight: 700;
}

.mg-text-danger {
  color: #f87171;
  font-weight: 600;
}

.mg-text-warning {
  color: #fbbf24;
  font-weight: 600;
}

.mg-step-list {
  margin: 16px 0 24px 20px;
  padding: 0;
  color: var(--mg-text-muted);
  line-height: 1.7;
}

.mg-step-list li {
  margin-bottom: 10px;
}

/* About Page Elements */
.mg-about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.mg-about-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mg-card-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 6px;
}

.mg-pillars-section {
  margin: 50px 0;
}

.mg-legal-callout {
  margin-top: 40px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.mg-legal-callout h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--mg-text-main);
  margin-bottom: 12px;
}

.mg-legal-callout p {
  color: var(--mg-text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.mg-legal-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.mg-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  background: var(--mg-gradient);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.mg-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.mg-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--mg-border);
  color: var(--mg-text-main);
  font-weight: 600;
  font-size: 14px;
}

.mg-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Contact Page Layout */
.mg-contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
}

.mg-contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mg-contact-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mg-contact-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--mg-text-main);
}

.mg-contact-card p {
  font-size: 14px;
  color: var(--mg-text-muted);
  line-height: 1.6;
}

.mg-email-link {
  font-size: 16px;
  font-weight: 700;
  color: #818cf8;
  text-decoration: underline;
}

.mg-support-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #34d399;
}

.mg-status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
}

.mg-link-sub {
  font-size: 13px;
  font-weight: 600;
  color: #818cf8;
}

/* Contact Form Styling */
.mg-form-card {
  padding: 40px;
}

.mg-form-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--mg-text-main);
  margin-bottom: 6px;
}

.mg-form-subtitle {
  font-size: 14px;
  color: var(--mg-text-muted);
  margin-bottom: 24px;
}

.mg-contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mg-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mg-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mg-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--mg-text-main);
}

.mg-required {
  color: #ef4444;
}

.mg-form-input,
.mg-form-select,
.mg-form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--mg-border);
  color: var(--mg-text-main);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.mg-form-input:focus,
.mg-form-select:focus,
.mg-form-textarea:focus {
  outline: none;
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.06);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.mg-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  background: var(--mg-gradient);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 8px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.mg-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.55);
}

.mg-btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.mg-form-alert {
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.mg-alert-success {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #6ee7b7;
}

.mg-alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
  .mg-desktop-nav { display: none; }
  .mg-mobile-toggle { display: block; }
  .mg-footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .mg-hero-title { font-size: 38px; }
  .mg-contact-layout { grid-template-columns: 1fr; }
  .mg-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .mg-hero-title { font-size: 30px; }
  .mg-page-title { font-size: 32px; }
  .mg-page-card,
  .mg-glass-card { padding: 24px 18px; }
  .mg-section-title { font-size: 26px; }
  .mg-trust-box { padding: 30px 20px; }
  .mg-seo-article { padding: 30px 20px; }
  .mg-format-tab { padding: 8px 14px; font-size: 13px; }
  .mg-footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* ==========================================================================
   Complete High-Contrast Light Mode Design System
   ========================================================================== */
html.light body.mg-body {
  background-color: #f8fafc;
  color: #0f172a;
}

html.light body.mg-body::before {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(236, 72, 153, 0.05) 50%, transparent 70%);
  filter: blur(60px);
}

/* Header & Navigation in Light Mode */
html.light .mg-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

html.light .mg-logo-text {
  color: #0f172a;
}

html.light .mg-nav-link {
  color: #475569;
}

html.light .mg-nav-link:hover,
html.light .mg-nav-link.active {
  color: #4338ca;
  background: rgba(99, 102, 241, 0.08);
}

html.light .mg-theme-btn {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #334155;
}

html.light .mg-theme-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

html.light .mg-mobile-drawer {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Badges & Pills in Light Mode */
html.light .mg-badge-pill {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.22);
  color: #4338ca;
}

html.light .mg-pill {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #475569;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Format Sub-Navigation Bar in Light Mode */
html.light .mg-format-bar {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.08), 0 0 15px rgba(99, 102, 241, 0.06);
}

html.light .mg-format-tab {
  color: #475569;
}

html.light .mg-format-tab:hover {
  color: #0f172a;
  background: rgba(99, 102, 241, 0.08);
}

html.light .mg-format-tab.active {
  color: #ffffff !important;
  background: var(--mg-gradient);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

/* Feature Cards in Light Mode */
html.light .mg-feature-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

html.light .mg-feature-card:hover {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.12), 0 0 15px rgba(99, 102, 241, 0.06);
}

html.light .mg-feature-title {
  color: #0f172a;
}

html.light .mg-feature-desc {
  color: #475569;
}

/* Steps Cards in Light Mode */
html.light .mg-step-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

html.light .mg-step-number {
  color: rgba(99, 102, 241, 0.14);
}

html.light .mg-step-title {
  color: #0f172a;
}

html.light .mg-step-desc {
  color: #475569;
}

/* Supported Formats Cards in Light Mode */
html.light .mg-format-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.04);
}

html.light .mg-format-card:hover {
  border-color: rgba(99, 102, 241, 0.45);
}

html.light .mg-format-name {
  color: #0f172a;
}

html.light .mg-format-desc {
  color: #475569;
}

html.light .mg-format-badge {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #4338ca;
}

/* Trust Section in Light Mode */
html.light .mg-trust-box {
  background: #ffffff !important;
  border: 1px solid rgba(99, 102, 241, 0.25) !important;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06) !important;
}

html.light .mg-trust-item-title {
  color: #0f172a !important;
}

html.light .mg-trust-item-desc {
  color: #475569 !important;
}

html.light .mg-trust-icon-wrap {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

/* FAQ Accordion in Light Mode */
html.light .mg-accordion-item {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

html.light .mg-accordion-item.open {
  border-color: rgba(99, 102, 241, 0.45);
}

html.light .mg-accordion-question {
  color: #0f172a;
}

html.light .mg-accordion-answer p {
  color: #475569;
}

html.light .mg-accordion-icon svg {
  stroke: #64748b;
}

html.light .mg-accordion-item.open .mg-accordion-icon svg {
  stroke: #4338ca;
}

/* SEO Article Section in Light Mode */
html.light .mg-seo-article {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06);
}

html.light .mg-article-main-title {
  color: #0f172a;
}

html.light .mg-article-lead {
  color: #475569;
}

html.light .mg-article-block h3 {
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
}

html.light .mg-article-block h4 {
  color: #1e293b;
}

html.light .mg-article-block p,
html.light .mg-step-list li {
  color: #334155;
}

html.light .mg-table-responsive {
  border-color: #e2e8f0;
}

html.light .mg-compare-table th {
  background: #f1f5f9;
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
}

html.light .mg-compare-table td {
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

/* Inner Pages (About, Contact, Legal) in Light Mode */
html.light .mg-page-hero {
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

html.light .mg-breadcrumbs {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  color: #64748b;
}

html.light .mg-crumb-current {
  color: #0f172a;
}

html.light .mg-page-title {
  color: #0f172a;
}

html.light .mg-page-lead {
  color: #475569;
}

html.light .mg-page-meta {
  color: #64748b;
}

html.light .mg-page-card,
html.light .mg-glass-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06);
}

html.light .mg-prose {
  color: #334155;
}

html.light .mg-prose h2,
html.light .mg-prose h3,
html.light .mg-prose strong {
  color: #0f172a;
}

html.light .mg-prose h2 {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

html.light .mg-prose a {
  color: #4f46e5;
}

html.light .mg-prose blockquote {
  background: rgba(99, 102, 241, 0.06);
  border-left-color: #6366f1;
  color: #1e293b;
}

html.light .mg-card-icon-wrap {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
}

html.light .mg-btn-secondary {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

html.light .mg-btn-secondary:hover {
  background: #f1f5f9;
}

html.light .mg-contact-card h3 {
  color: #0f172a;
}

html.light .mg-contact-card p {
  color: #475569;
}

html.light .mg-form-title {
  color: #0f172a;
}

html.light .mg-form-subtitle {
  color: #475569;
}

html.light .mg-form-group label {
  color: #0f172a;
}

html.light .mg-form-input,
html.light .mg-form-select,
html.light .mg-form-textarea {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

html.light .mg-form-input:focus,
html.light .mg-form-select:focus,
html.light .mg-form-textarea:focus {
  border-color: #6366f1;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Footer in Light Mode */
html.light .mg-footer {
  background: #ffffff;
  border-top-color: rgba(0, 0, 0, 0.08);
}

html.light .mg-footer-desc {
  color: #475569;
}

html.light .mg-footer-heading {
  color: #0f172a;
}

html.light .mg-footer-links a {
  color: #475569;
}

html.light .mg-footer-links a:hover {
  color: #0f172a;
}

html.light .mg-disclaimer-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
}

html.light .mg-footer-bottom {
  border-top-color: rgba(0, 0, 0, 0.08);
  color: #64748b;
}

/* ==========================================================================
   Contact Page Exact Styling (Matches Next.js Design & AdSense Standards)
   ========================================================================== */
.mg-contact-page-wrap {
  padding: 48px 0 80px;
}

.mg-contact-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.mg-contact-hero .mg-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: #818cf8;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.mg-contact-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .mg-contact-title {
    font-size: 3rem;
  }
}

.mg-contact-subtitle {
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* 4 Direct Contact Cards Grid */
.mg-contact-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .mg-contact-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .mg-contact-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.mg-contact-info-card {
  padding: 24px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.mg-contact-info-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
}

.mg-card-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.mg-icon-indigo {
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.mg-icon-emerald {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.mg-icon-purple {
  background: rgba(168, 85, 247, 0.1);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.mg-icon-amber {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.mg-icon-pink {
  background: rgba(236, 72, 153, 0.1);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.2);
}

.mg-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.mg-card-val {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  word-break: break-all;
}

.mg-card-val a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mg-card-val a:hover {
  color: #818cf8;
}

.mg-card-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

/* Main Grid: 7 Cols Form + 5 Cols Sidebar */
.mg-contact-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 1024px) {
  .mg-contact-main-grid {
    grid-template-columns: 7fr 5fr;
  }
}

/* Form Wrapper */
.mg-form-wrapper {
  padding: 32px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

@media (min-width: 640px) {
  .mg-form-wrapper {
    padding: 40px;
  }
}

.mg-form-header {
  margin-bottom: 24px;
}

.mg-form-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.mg-form-header p {
  font-size: 13px;
  color: #94a3b8;
}

.mg-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .mg-form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mg-form-field {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mg-form-field label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #cbd5e1;
}

.mg-req {
  color: #ec4899;
}

.mg-opt {
  color: #64748b;
  font-weight: 400;
  text-transform: none;
}

.mg-form-field input,
.mg-form-field select,
.mg-form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mg-form-field input:focus,
.mg-form-field select:focus,
.mg-form-field textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.mg-form-field textarea {
  resize: vertical;
}

.mg-form-btn-wrap {
  margin-top: 8px;
  margin-bottom: 16px;
}

.mg-btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
  transition: opacity 0.2s, transform 0.2s;
}

.mg-btn-gradient:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.mg-btn-gradient:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.mg-privacy-note {
  font-size: 11px;
  color: #64748b;
  line-height: 1.5;
}

.mg-privacy-note a {
  color: #818cf8;
  text-decoration: underline;
}

/* Success Box State */
.mg-success-box {
  padding: 32px;
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.3);
  text-align: center;
}

.mg-success-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.mg-success-box h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.mg-success-box p {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto 20px;
}

.mg-btn-outline {
  padding: 10px 24px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.mg-btn-outline:hover {
  background: rgba(51, 65, 85, 0.8);
}

/* Form Alert Banner */
.mg-form-alert {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 20px;
}

.mg-alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.mg-alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.mg-hidden {
  display: none !important;
}

/* Sidebar Cards */
.mg-contact-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mg-sidebar-card {
  padding: 28px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.mg-sidebar-card-sm {
  padding: 20px;
  background: rgba(15, 23, 42, 0.3);
}

.mg-sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.mg-sidebar-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.mg-sidebar-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 16px;
}

.mg-check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mg-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.5;
}

.mg-check-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.mg-sidebar-text {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 12px;
}

.mg-email-link-pink {
  color: #818cf8;
  font-weight: 600;
  text-decoration: underline;
}

.mg-link-arrow {
  font-size: 12px;
  font-weight: 600;
  color: #818cf8;
  text-decoration: none;
  transition: color 0.2s;
}

.mg-link-arrow:hover {
  color: #a5b4fc;
}

.mg-inline-link {
  color: #818cf8;
  text-decoration: underline;
}

/* Light Theme Overrides for Contact Page */
html.light .mg-contact-title {
  color: #0f172a;
}

html.light .mg-contact-subtitle {
  color: #475569;
}

html.light .mg-contact-info-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

html.light .mg-card-val {
  color: #0f172a;
}

html.light .mg-card-label,
html.light .mg-card-desc {
  color: #64748b;
}

html.light .mg-form-wrapper {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.08);
}

html.light .mg-form-header h2 {
  color: #0f172a;
}

html.light .mg-form-field label {
  color: #334155;
}

html.light .mg-form-field input,
html.light .mg-form-field select,
html.light .mg-form-field textarea {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

html.light .mg-sidebar-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

html.light .mg-sidebar-header h3 {
  color: #0f172a;
}

html.light .mg-sidebar-desc {
  color: #64748b;
}

html.light .mg-check-list li {
  color: #334155;
}

html.light .mg-sidebar-text {
  color: #475569;
}

/* ==========================================================================
   Format Sub-Navigation Bar (Top SEO Tab Silo)
   ========================================================================== */
.mg-format-bar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  width: 100%;
}

.mg-format-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--mg-border);
  border-radius: 9999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mg-format-bar::-webkit-scrollbar {
  display: none;
}

.mg-format-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mg-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.mg-format-tab:hover {
  color: var(--mg-text-main);
  background: rgba(255, 255, 255, 0.08);
}

.mg-format-tab.active {
  color: #ffffff;
  background: var(--mg-gradient);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.mg-tab-icon {
  font-size: 14px;
}

html.light .mg-format-bar {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

html.light .mg-format-tab {
  color: #64748b;
}

html.light .mg-format-tab:hover {
  color: #0f172a;
  background: #f1f5f9;
}

html.light .mg-format-tab.active {
  color: #ffffff;
}

@media (max-width: 768px) {
  .mg-format-bar-wrap {
    justify-content: flex-start;
    padding: 0 10px;
  }
  .mg-format-bar {
    border-radius: 16px;
    padding: 4px;
  }
  .mg-format-tab {
    padding: 6px 12px;
    font-size: 12px;
  }
}

