/* =============================================
   Muslim Prayer Times - Modern UI Stylesheet
   ============================================= */

:root {
  --mpt-primary: #1a5276;
  --mpt-primary-light: #2e86c1;
  --mpt-primary-dark: #154360;
  --mpt-accent: #d4ac0d;
  --mpt-accent-light: #f4d03f;
  --mpt-bg: #f0f4f8;
  --mpt-white: #ffffff;
  --mpt-text: #2c3e50;
  --mpt-text-muted: #7f8c8d;
  --mpt-border: #dce9f3;
  --mpt-shadow: 0 4px 20px rgba(26, 82, 118, 0.12);
  --mpt-shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --mpt-shadow-hover: 0 8px 30px rgba(26, 82, 118, 0.2);
  --mpt-radius: 16px;
  --mpt-radius-sm: 10px;
  --mpt-radius-lg: 24px;
  --mpt-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mpt-font-arabic: 'Amiri', 'Traditional Arabic', serif;
  --mpt-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --mpt-today-bg: rgba(212, 172, 13, 0.08);
  --mpt-today-border: #d4ac0d;
}

/* Reset & Base */
.mpt-page-wrapper *,
.mpt-page-wrapper *::before,
.mpt-page-wrapper *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.mpt-page-wrapper {
  font-family: var(--mpt-font);
  color: var(--mpt-text);
  background: var(--mpt-bg);
  min-height: 100vh;
  line-height: 1.6;
}

/* ========================
   HERO SECTION
   ======================== */
.mpt-hero {
  position: relative;
  background: linear-gradient(135deg, var(--mpt-primary-dark) 0%, var(--mpt-primary) 50%, var(--mpt-primary-light) 100%);
  padding: 60px 0 80px;
  overflow: visible;
  color: white;
  /* z-index must be higher than .mpt-main-content so the search results
     dropdown (a child of .mpt-hero) can paint over the overlapping content
     section. Both elements need position set to participate in stacking. */
  z-index: 10;
}

.mpt-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  overflow: hidden;
}

.mpt-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 172, 13, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  overflow: hidden;
}

.mpt-hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M30 0L35 20H55L40 32L45 52L30 40L15 52L20 32L5 20H25z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Container */
.mpt-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Breadcrumbs */
.mpt-breadcrumbs {
  font-size: 13px;
  margin-bottom: 24px;
  opacity: 0.8;
}

.mpt-breadcrumbs a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: var(--mpt-transition);
}

.mpt-breadcrumbs a:hover {
  color: white;
  text-decoration: underline;
}

.mpt-breadcrumbs .sep {
  margin: 0 8px;
  opacity: 0.5;
}

/* Hero Content */
.mpt-hero-content {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.mpt-location-icon {
  font-size: 56px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.mpt-hero-title {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 700;
  color: white;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.mpt-hero-title span {
  color: var(--mpt-accent-light);
  display: block;
  font-size: clamp(26px, 5vw, 44px);
}

.mpt-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.mpt-date-gregorian {
  font-size: 15px;
  opacity: 0.9;
  font-weight: 500;
}

.mpt-date-hijri {
  font-family: var(--mpt-font-arabic);
  font-size: 14px;
  background: rgba(255,255,255,0.1);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
}

/* ========================
   SEARCH BAR
   ======================== */
.mpt-hero-search {
  position: relative;
  max-width: 620px;
  z-index: 2;  /* above other .mpt-hero children; dropdown uses position:absolute from here */
}

.mpt-search-wrapper {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 50px;
  padding: 6px 6px 6px 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2), 0 0 0 3px rgba(255,255,255,0.1);
  transition: var(--mpt-transition);
}

.mpt-search-wrapper:focus-within {
  box-shadow: 0 8px 30px rgba(0,0,0,0.25), 0 0 0 3px var(--mpt-accent-light);
}

.mpt-search-icon {
  font-size: 18px;
  margin-right: 10px;
  flex-shrink: 0;
  opacity: 0.5;
}

.mpt-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: var(--mpt-font);
  color: var(--mpt-text);
  background: transparent;
  min-width: 0;
  padding: 8px 0;
}

.mpt-search-input::placeholder {
  color: #aab7c4;
}

.mpt-detect-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--mpt-primary);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--mpt-transition);
  box-shadow: 0 2px 8px rgba(26, 82, 118, 0.4);
}

.mpt-detect-btn:hover {
  background: var(--mpt-primary-dark);
  transform: scale(1.05);
}

/* Search Results Dropdown */
.mpt-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: var(--mpt-radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  z-index: 100;  /* within .mpt-hero stacking context — hero itself is z-index:10 above content */
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--mpt-border);
}

.mpt-search-results[hidden] {
  display: none;
}

.mpt-search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: var(--mpt-text);
  border-bottom: 1px solid #f0f4f8;
}

.mpt-search-result-item:last-child {
  border-bottom: none;
}

.mpt-search-result-item:hover {
  background: #f0f7ff;
}

.mpt-result-icon {
  font-size: 20px;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
}

.mpt-result-body {
  flex: 1;
  min-width: 0;
}

/* Sub-label badge: shown when user searched a neighbourhood/area
   e.g. "🔍 DC Colony → Gujranwala" */
.mpt-result-sub {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #6b7280;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 1px 7px 1px 5px;
  margin-bottom: 4px;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.mpt-result-arrow {
  color: #9ca3af;
  font-style: normal;
  margin: 0 1px;
}

.mpt-result-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--mpt-primary);
}

.mpt-result-detail {
  font-size: 12px;
  color: var(--mpt-text-muted);
  margin-top: 2px;
}

/* ========================
   MAIN CONTENT AREA
   ======================== */
.mpt-main-content {
  padding: 40px 24px 60px;
  max-width: 1200px;
  margin: -40px auto 0;
  position: relative;
  z-index: 1;  /* lower than .mpt-hero z-index:10 */
}

/* ========================
   NEXT PRAYER COUNTDOWN
   ======================== */
.mpt-next-prayer-bar {
  background: white;
  border-radius: var(--mpt-radius);
  box-shadow: var(--mpt-shadow);
  padding: 20px 28px;
  margin-bottom: 32px;
  border-left: 4px solid var(--mpt-accent);
}

.mpt-next-prayer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.mpt-next-label {
  font-size: 13px;
  color: var(--mpt-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.mpt-next-prayer-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--mpt-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.mpt-countdown {
  font-family: 'Courier New', monospace;
  font-size: 28px;
  font-weight: 700;
  color: var(--mpt-accent);
  background: rgba(212, 172, 13, 0.1);
  padding: 8px 20px;
  border-radius: 10px;
  letter-spacing: 2px;
}

/* ========================
   TODAY'S PRAYERS GRID
   ======================== */
.mpt-today-section {
  margin-bottom: 40px;
}

.mpt-section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--mpt-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mpt-section-icon {
  font-size: 22px;
}

.mpt-prayers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

/* Prayer Card */
.mpt-prayer-card {
  background: white;
  border-radius: var(--mpt-radius);
  overflow: hidden;
  box-shadow: var(--mpt-shadow-sm);
  transition: var(--mpt-transition);
  position: relative;
  cursor: default;
}

.mpt-prayer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mpt-shadow-hover);
}

.mpt-prayer-card.mpt-active-prayer {
  background: linear-gradient(135deg, var(--mpt-primary) 0%, var(--mpt-primary-light) 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(26, 82, 118, 0.4);
  transform: translateY(-4px) scale(1.02);
}

.mpt-prayer-card.mpt-active-prayer .mpt-prayer-name,
.mpt-prayer-card.mpt-active-prayer .mpt-prayer-arabic,
.mpt-prayer-card.mpt-active-prayer .mpt-prayer-desc {
  color: rgba(255,255,255,0.9);
}

.mpt-prayer-card.mpt-active-prayer .mpt-prayer-time {
  color: var(--mpt-accent-light);
}

.mpt-prayer-card-inner {
  padding: 20px 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.mpt-prayer-icon {
  font-size: 32px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  margin-bottom: 4px;
}

.mpt-prayer-arabic {
  font-family: var(--mpt-font-arabic);
  font-size: 18px;
  color: var(--mpt-primary);
  font-weight: 700;
}

.mpt-prayer-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--mpt-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mpt-prayer-desc {
  font-size: 11px;
  color: var(--mpt-text-muted);
}

.mpt-prayer-time {
  font-size: 20px;
  font-weight: 700;
  color: var(--mpt-primary);
  padding: 8px 16px;
  background: rgba(26, 82, 118, 0.06);
  border-radius: 8px;
  min-width: 100px;
  text-align: center;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.mpt-prayer-progress {
  height: 3px;
  background: var(--mpt-accent);
  width: 0;
  transition: width 1s ease;
}

/* ========================
   CALENDAR SECTION
   ======================== */
.mpt-calendar-section {
  background: white;
  border-radius: var(--mpt-radius-lg);
  box-shadow: var(--mpt-shadow);
  overflow: hidden;
  margin-bottom: 40px;
}

.mpt-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--mpt-primary) 0%, var(--mpt-primary-light) 100%);
  color: white;
  flex-wrap: wrap;
  gap: 16px;
}

.mpt-calendar-header .mpt-section-title {
  color: white;
  margin-bottom: 0;
  font-size: 18px;
}

.mpt-calendar-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mpt-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--mpt-transition);
  line-height: 1;
  padding-bottom: 2px;
}

.mpt-nav-btn:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.7);
  transform: scale(1.1);
}

.mpt-nav-btn:active {
  transform: scale(0.95);
}

.mpt-month-year {
  font-size: 18px;
  font-weight: 700;
  min-width: 160px;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

/* Calendar Table */
.mpt-calendar-wrapper {
  position: relative;
  min-height: 200px;
}

.mpt-calendar-loading {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(255,255,255,0.95);
  z-index: 10;
  color: var(--mpt-text-muted);
  font-size: 14px;
}

.mpt-calendar-loading[hidden] {
  display: none;
}

.mpt-calendar-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mpt-calendar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.mpt-calendar-table thead th {
  background: #f8fafc;
  color: var(--mpt-primary);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 12px;
  border-bottom: 2px solid var(--mpt-border);
  text-align: center;
  white-space: nowrap;
}

.mpt-calendar-table thead th:first-child,
.mpt-calendar-table thead th:nth-child(2) {
  text-align: left;
}

.mpt-th-icon {
  margin-right: 4px;
}

.mpt-calendar-table tbody tr {
  border-bottom: 1px solid #f0f4f8;
  transition: background 0.15s;
}

.mpt-calendar-table tbody tr:hover {
  background: #f8fafc;
}

.mpt-calendar-table tbody tr.mpt-today-row {
  background: var(--mpt-today-bg);
  border-left: 3px solid var(--mpt-today-border);
}

.mpt-calendar-table tbody tr.mpt-today-row td {
  font-weight: 600;
}

.mpt-calendar-table tbody tr.mpt-friday-row td:first-child .mpt-day-num {
  color: var(--mpt-primary-light);
}

.mpt-calendar-table tbody tr.mpt-holiday-row td {
  background: rgba(212, 172, 13, 0.04);
}

.mpt-calendar-table td {
  padding: 12px 12px;
  vertical-align: middle;
}

.mpt-td-date {
  min-width: 90px;
}

.mpt-date-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mpt-day-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--mpt-text);
  width: 28px;
  text-align: center;
}

.mpt-today-badge {
  background: var(--mpt-accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mpt-day-name {
  font-size: 11px;
  color: var(--mpt-text-muted);
}

.mpt-td-hijri {
  min-width: 120px;
}

.mpt-hijri-cell {
  font-family: var(--mpt-font-arabic);
  font-size: 13px;
  color: var(--mpt-text-muted);
  direction: ltr;
}

.mpt-hijri-cell .mpt-holiday-tag {
  display: block;
  font-family: var(--mpt-font);
  font-size: 10px;
  color: var(--mpt-accent);
  font-weight: 600;
  margin-top: 2px;
}

.mpt-td-prayer {
  text-align: center;
  min-width: 80px;
}

.mpt-time-value {
  font-weight: 600;
  color: var(--mpt-primary);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  white-space: nowrap;
}

/* ========================
   LOCATION INFO CARDS
   ======================== */
.mpt-location-info {
  margin-bottom: 40px;
}

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

.mpt-info-card {
  background: white;
  border-radius: var(--mpt-radius);
  padding: 20px;
  box-shadow: var(--mpt-shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--mpt-transition);
}

.mpt-info-card:hover {
  box-shadow: var(--mpt-shadow);
  transform: translateY(-2px);
}

.mpt-info-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.mpt-info-content h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--mpt-text-muted);
  margin-bottom: 4px;
}

.mpt-info-content p {
  font-size: 15px;
  font-weight: 600;
  color: var(--mpt-text);
  margin: 0;
}

.mpt-info-content small {
  display: block;
  font-size: 12px;
  color: var(--mpt-text-muted);
  margin-top: 2px;
}

/* ========================
   SEO CONTENT
   ======================== */
.mpt-seo-content {
  background: white;
  border-radius: var(--mpt-radius);
  padding: 28px;
  box-shadow: var(--mpt-shadow-sm);
  margin-bottom: 40px;
}

.mpt-seo-content h2 {
  font-size: 20px;
  color: var(--mpt-primary);
  margin-bottom: 16px;
}

.mpt-seo-content p {
  color: var(--mpt-text);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

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

/* ========================
   SPINNERS & LOADING
   ======================== */
.mpt-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(26, 82, 118, 0.2);
  border-top-color: var(--mpt-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.mpt-spinner-sm {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(26, 82, 118, 0.2);
  border-top-color: var(--mpt-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.mpt-spinner-lg {
  width: 40px;
  height: 40px;
  border-width: 4px;
}

.mpt-loading-dots::after {
  content: '';
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%, 20% { content: '•'; }
  40% { content: '••'; }
  60%, 100% { content: '•••'; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================
   SHORTCODE STYLES
   ======================== */
.mpt-shortcode-wrap {
  font-family: var(--mpt-font);
  color: var(--mpt-text);
}

/* Location detection prompt - shown when no location is set */
.mpt-detect-prompt {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid var(--mpt-primary);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(26, 82, 118, 0.08);
}

.mpt-detect-prompt-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.mpt-detect-prompt-icon {
  font-size: 48px;
  line-height: 1;
  flex-shrink: 0;
}

.mpt-detect-prompt-content {
  flex: 1;
  min-width: 200px;
}

.mpt-detect-prompt-content h4 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--mpt-primary);
}

.mpt-detect-prompt-content p {
  margin: 0;
  font-size: 14px;
  color: var(--mpt-text);
  line-height: 1.5;
}

.mpt-detect-prompt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--mpt-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(26, 82, 118, 0.15);
}

.mpt-detect-prompt-btn:hover {
  background: #164667;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 82, 118, 0.25);
}

.mpt-detect-prompt-btn:active {
  transform: translateY(0);
}

.mpt-detect-prompt-btn-icon {
  font-size: 18px;
  line-height: 1;
}

/* Hide prompt after location is detected */
.mpt-detect-prompt.mpt-hidden {
  display: none;
}

@media (max-width: 640px) {
  .mpt-detect-prompt {
    padding: 20px;
  }
  
  .mpt-detect-prompt-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .mpt-detect-prompt-btn {
    width: 100%;
    justify-content: center;
  }
}

.mpt-sc-search-area {
  position: relative;
  margin-bottom: 24px;
}

.mpt-sc-search {
  border: 2px solid var(--mpt-border);
  box-shadow: var(--mpt-shadow-sm);
}

.mpt-sc-search .mpt-search-input {
  color: var(--mpt-text);
}

.mpt-sc-search:focus-within {
  border-color: var(--mpt-primary-light);
  box-shadow: 0 0 0 3px rgba(46, 134, 193, 0.1);
}

.mpt-sc-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99999;
}

/* Shortcode today section */
.mpt-sc-today-section {
  margin-bottom: 32px;
}

.mpt-sc-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--mpt-primary);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mpt-sc-prayers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.mpt-sc-prayer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-align: center;
  transition: all 0.2s;
}

.mpt-sc-prayer-card:hover {
  border-color: var(--mpt-primary);
  box-shadow: 0 4px 12px rgba(26,82,118,0.08);
}

.mpt-sc-prayer-icon {
  font-size: 28px;
  line-height: 1;
}

.mpt-sc-prayer-info {
  flex: 1;
}

.mpt-sc-prayer-arabic {
  font-size: 13px;
  color: var(--mpt-text-muted);
  margin-bottom: 2px;
}

.mpt-sc-prayer-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--mpt-text);
}

.mpt-sc-prayer-time {
  font-size: 18px;
  font-weight: 700;
  color: var(--mpt-primary);
  min-height: 24px;
}

@media (max-width: 640px) {
  .mpt-sc-prayers-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
  }
  
  .mpt-sc-prayer-card {
    padding: 12px 8px;
  }
  
  .mpt-sc-prayer-icon {
    font-size: 24px;
  }
  
  .mpt-sc-prayer-time {
    font-size: 16px;
  }
}

/* ========================
   SIDEBAR WIDGET STYLES
   ======================== */
.mpt-sidebar-widget .mpt-widget-container {
  font-family: var(--mpt-font);
}

.mpt-widget-search {
  margin-bottom: 12px;
}

.mpt-widget-search-input {
  width: 100%;
  padding: 8px 12px;
  border: 2px solid var(--mpt-border);
  border-radius: var(--mpt-radius-sm);
  font-size: 14px;
  outline: none;
  transition: var(--mpt-transition);
}

.mpt-widget-search-input:focus {
  border-color: var(--mpt-primary-light);
}

.mpt-widget-times {
  display: grid;
  gap: 6px;
}

.mpt-widget-prayer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 14px;
}

.mpt-widget-prayer-row.mpt-active-prayer {
  background: var(--mpt-primary);
  color: white;
}

.mpt-widget-prayer-name {
  font-weight: 500;
}

.mpt-widget-prayer-time {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mpt-widget-footer {
  margin-top: 12px;
  text-align: right;
}

.mpt-more-link {
  font-size: 13px;
  color: var(--mpt-primary);
  text-decoration: none;
  font-weight: 500;
}

.mpt-more-link:hover {
  text-decoration: underline;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 768px) {
  .mpt-hero {
    padding: 40px 0 60px;
  }

  .mpt-hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .mpt-location-icon {
    font-size: 40px;
  }

  .mpt-prayers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .mpt-prayer-card-inner {
    padding: 14px 10px 10px;
  }

  .mpt-prayer-icon {
    font-size: 24px;
  }

  .mpt-prayer-arabic {
    font-size: 15px;
  }

  .mpt-prayer-time {
    font-size: 15px;
    padding: 6px 10px;
  }

  .mpt-calendar-header {
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .mpt-calendar-table {
    font-size: 12px;
  }

  .mpt-calendar-table td {
    padding: 8px 6px;
  }

  .mpt-td-hijri {
    display: none;
  }

  .mpt-next-prayer-bar {
    padding: 16px 20px;
  }

  .mpt-countdown {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .mpt-prayers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mpt-info-grid {
    grid-template-columns: 1fr;
  }

  .mpt-calendar-table thead th.mpt-th-prayer:nth-child(3) { /* Sunrise */
    display: none;
  }
}

/* ========================
   ADMIN STYLES
   ======================== */
.mpt-admin-wrap {
  max-width: 960px;
}

.mpt-admin-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
}

.mpt-admin-logo {
  font-size: 48px;
  line-height: 1;
}

.mpt-admin-header h1 {
  font-size: 28px;
  color: #1a5276;
  margin: 0;
}

.mpt-admin-subtitle {
  color: #7f8c8d;
  margin: 0;
}

.mpt-admin-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

.mpt-admin-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.mpt-card-title {
  font-size: 16px;
  color: #1a5276;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f4f8;
}

.mpt-admin-tools .mpt-tools-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.mpt-tool-item h4 {
  margin-bottom: 6px;
}

.mpt-tool-item p {
  font-size: 13px;
  color: #7f8c8d;
  margin-bottom: 10px;
}

/* ========================
   PRINT STYLES
   ======================== */
@media print {
  .mpt-hero-search,
  .mpt-next-prayer-bar,
  .mpt-detect-btn,
  .mpt-nav-btn {
    display: none !important;
  }

  .mpt-calendar-section {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .mpt-prayer-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ========================
   RAMADAN STYLES
   ======================== */

/* Ramadan Banner */
.mpt-ramadan-banner {
  background: linear-gradient(135deg, #1a0533 0%, #4a1060 50%, #7b2d8b 100%);
  border-radius: var(--mpt-radius);
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(123, 45, 139, 0.35);
  position: relative;
}

.mpt-ramadan-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M40 0 L44 28 L72 20 L52 40 L72 60 L44 52 L40 80 L36 52 L8 60 L28 40 L8 20 L36 28z'/%3E%3C/g%3E%3C/svg%3E");
}

.mpt-ramadan-banner-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.mpt-ramadan-icon {
  font-size: 52px;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(212,172,13,0.6));
  flex-shrink: 0;
}

.mpt-ramadan-text {
  flex: 1;
  min-width: 160px;
}

.mpt-ramadan-text h2 {
  color: #f4d03f;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.mpt-ramadan-text p {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  margin: 0;
}

.mpt-ramadan-countdown-wrap {
  text-align: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--mpt-radius);
  padding: 14px 24px;
  min-width: 160px;
  flex-shrink: 0;
}

.mpt-ramadan-countdown-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 6px;
  font-weight: 600;
}

.mpt-ramadan-countdown {
  font-family: 'Courier New', monospace;
  font-size: 28px;
  font-weight: 700;
  color: #f4d03f;
  letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(244, 208, 63, 0.5);
}

/* Sehri & Iftar Cards */
.mpt-ramadan-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.mpt-ramadan-card {
  border-radius: var(--mpt-radius);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--mpt-shadow);
  position: relative;
  overflow: hidden;
  transition: var(--mpt-transition);
}

.mpt-ramadan-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--mpt-shadow-hover);
}

.mpt-ramadan-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  opacity: 0.06;
}

.mpt-sehri-card {
  background: linear-gradient(135deg, #0d1b2a 0%, #1a2f4e 100%);
  border: 1px solid rgba(100,149,237,0.2);
  color: white;
}

.mpt-sehri-card::before {
  background: #6495ed;
}

.mpt-iftar-card {
  background: linear-gradient(135deg, #1a0e00 0%, #3d2200 100%);
  border: 1px solid rgba(212,172,13,0.3);
  color: white;
}

.mpt-iftar-card::before {
  background: #d4ac0d;
}

.mpt-ramadan-card-icon {
  font-size: 42px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.mpt-ramadan-card-body {
  flex: 1;
}

.mpt-ramadan-card-arabic {
  font-family: var(--mpt-font-arabic);
  font-size: 20px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2px;
}

.mpt-ramadan-card-label {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 2px;
}

.mpt-ramadan-card-sublabel {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

.mpt-ramadan-card-time {
  text-align: right;
  flex-shrink: 0;
}

.mpt-ramadan-time-value {
  font-size: 28px;
  font-weight: 700;
  color: #f4d03f;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 0 10px rgba(244,208,63,0.4);
}

.mpt-sehri-card .mpt-ramadan-time-value {
  color: #a8d8f0;
  text-shadow: 0 0 10px rgba(168,216,240,0.4);
}

.mpt-ramadan-imsak-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.mpt-ramadan-imsak-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.5);
}

.mpt-ramadan-imsak-time {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

/* Calendar Ramadan Rows */
.mpt-calendar-table tbody tr.mpt-ramadan-row {
  background: linear-gradient(90deg, rgba(123,45,139,0.04) 0%, rgba(123,45,139,0.02) 100%);
}

.mpt-calendar-table tbody tr.mpt-ramadan-row:hover {
  background: linear-gradient(90deg, rgba(123,45,139,0.1) 0%, rgba(123,45,139,0.06) 100%);
}

.mpt-calendar-table tbody tr.mpt-ramadan-row td {
  border-left: 2px solid rgba(123,45,139,0.0);
}

.mpt-calendar-table tbody tr.mpt-ramadan-row:first-child td {
  border-top: 2px solid rgba(123,45,139,0.3);
}

/* Ramadan day badge in date cell */
.mpt-ramadan-day-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #7b2d8b, #4a1060);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  margin-left: 4px;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Sehri/Imsak columns in calendar */
.mpt-col-ramadan {
  background: rgba(123,45,139,0.05) !important;
}

.mpt-col-ramadan .mpt-time-value {
  color: #7b2d8b;
}

/* Iftar badge on Maghrib header */
.mpt-iftar-badge {
  font-size: 10px;
  font-weight: 700;
  color: #f4d03f;
  background: rgba(212,172,13,0.15);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
}

/* Ramadan Iftar highlight in Maghrib cell */
.mpt-td-iftar .mpt-time-value {
  color: #c0392b;
  font-weight: 700;
}

/* Responsive Ramadan */
@media (max-width: 600px) {
  .mpt-ramadan-times {
    grid-template-columns: 1fr;
  }
  .mpt-ramadan-banner-inner {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .mpt-ramadan-countdown-wrap {
    width: 100%;
  }
  .mpt-ramadan-card {
    flex-wrap: wrap;
  }
  .mpt-ramadan-card-time {
    text-align: left;
    width: 100%;
  }
}

/* ========================
   MAIN INDEX PAGE (All Countries)
   ======================== */
.mpt-index-page .mpt-hero-index {
  background: linear-gradient(135deg, #1e3a5f 0%, #2c5f7d 100%);
}

.mpt-countries-section {
  margin-bottom: 48px;
}

.mpt-countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.mpt-country-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
}

.mpt-country-card:hover {
  border-color: var(--mpt-primary);
  box-shadow: 0 8px 24px rgba(26, 82, 118, 0.12);
  transform: translateY(-2px);
}

.mpt-country-card-flag {
  font-size: 44px;
  line-height: 1;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f0f6ff, #e8f0fe);
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.10), inset 0 1px 0 rgba(255,255,255,0.8);
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s;
  border: 1px solid rgba(255,255,255,0.9);
}

.mpt-country-card:hover .mpt-country-card-flag {
  transform: scale(1.15) rotate(-3deg);
  box-shadow: 0 6px 18px rgba(26, 82, 118, 0.18), inset 0 1px 0 rgba(255,255,255,0.8);
}

.mpt-country-card-body {
  flex: 1;
  min-width: 0;
}

.mpt-country-card-name {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--mpt-text);
}

.mpt-country-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mpt-text-muted);
}

.mpt-country-card-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mpt-country-card-arrow {
  font-size: 24px;
  color: var(--mpt-primary);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.mpt-country-card:hover .mpt-country-card-arrow {
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .mpt-countries-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .mpt-country-card {
    padding: 16px;
  }
  
  .mpt-country-card-flag {
    font-size: 34px;
    width: 52px;
    height: 52px;
  }
  
  .mpt-country-card-name {
    font-size: 16px;
  }
}

/* ========================
   COUNTRY INDEX PAGE
   ======================== */
.mpt-country-page .mpt-main-content {
  padding-top: 30px;
}

/* State quick-nav bar */
.mpt-state-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.mpt-state-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mpt-primary);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}

.mpt-state-nav-link:hover {
  background: var(--mpt-primary);
  border-color: var(--mpt-primary);
  color: #fff;
}

.mpt-state-count {
  background: rgba(0,0,0,.1);
  border-radius: 50px;
  padding: 1px 7px;
  font-size: 11px;
}

/* State section heading */
.mpt-state-section {
  margin-bottom: 36px;
}

.mpt-state-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--mpt-primary);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e5e7eb;
}

.mpt-state-badge {
  font-size: 12px;
  font-weight: 600;
  background: var(--mpt-primary);
  color: #fff;
  border-radius: 50px;
  padding: 2px 9px;
  margin-left: 4px;
}

/* City grid */
.mpt-city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.mpt-city-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  text-decoration: none;
  color: var(--mpt-text);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.mpt-city-card:hover {
  border-color: var(--mpt-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transform: translateY(-1px);
}

.mpt-city-card-icon {
  font-size: 18px;
  margin-bottom: 2px;
}

.mpt-city-card-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--mpt-primary);
  line-height: 1.3;
}

.mpt-city-card-state {
  font-size: 11px;
  color: var(--mpt-text-muted);
}

/* Empty state */
.mpt-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--mpt-text-muted);
}

/* ========================
   CALCULATION METHOD SWITCHER (#6)
   ======================== */
.mpt-method-select {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
  color: var(--mpt-text);
  cursor: pointer;
  margin-top: 4px;
  transition: border-color .15s;
}

.mpt-method-select:focus {
  outline: none;
  border-color: var(--mpt-primary);
  box-shadow: 0 0 0 3px rgba(26,82,118,.12);
}

/* Current method name shown above dropdown */
.mpt-method-current {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--mpt-primary);
}

/* Juristic (Asr school) toggle — Hanafi vs Standard */
.mpt-juristic-wrap {
  margin-top: 10px;
}

.mpt-juristic-label {
  display: block;
  font-size: 11px;
  color: var(--mpt-text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 5px;
}

.mpt-juristic-toggle {
  display: flex;
  gap: 6px;
}

.mpt-juristic-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 7px 10px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--mpt-text);
  transition: all .15s;
  line-height: 1.3;
}

.mpt-juristic-btn:hover {
  border-color: var(--mpt-primary);
  background: #f0f7ff;
}

.mpt-juristic-btn.active {
  border-color: var(--mpt-primary);
  background: var(--mpt-primary);
  color: #fff;
}

.mpt-juristic-btn.active .mpt-juristic-sub {
  color: rgba(255,255,255,.8);
}

.mpt-juristic-sub {
  font-size: 10px;
  font-weight: 400;
  color: var(--mpt-text-muted);
  text-align: center;
}

.mpt-method-hint {
  display: block;
  font-size: 11px;
  color: var(--mpt-text-muted);
  margin-top: 8px;
}

/* A–Z quick jump navigation on country pages */
.mpt-az-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.mpt-az-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-weight: 700;
  font-size: 13px;
  color: var(--mpt-primary);
  text-decoration: none;
  transition: all .15s;
}

.mpt-az-link:hover {
  background: var(--mpt-primary);
  border-color: var(--mpt-primary);
  color: #fff;
}

/* Letter group heading on country page */
.mpt-letter-group {
  margin-bottom: 32px;
}

.mpt-letter-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--mpt-primary);
  border-bottom: 2px solid var(--mpt-primary);
  padding-bottom: 6px;
  margin-bottom: 14px;
  display: inline-block;
}

/* Empty state on country page */
.mpt-empty-country {
  text-align: center;
  padding: 60px 20px;
  color: var(--mpt-text-muted);
}

@media (max-width: 640px) {
  .mpt-city-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
  .mpt-state-nav {
    gap: 6px;
  }
  .mpt-juristic-toggle {
    flex-direction: column;
  }
}

/* ========================
   AZAN AUDIO BUTTON
   ======================== */
.mpt-prayer-time-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.mpt-azan-btn {
  background: none;
  border: 1px solid var(--mpt-border);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 16px;
  cursor: pointer;
  color: var(--mpt-text-muted);
  transition: var(--mpt-transition);
  line-height: 1;
}

.mpt-azan-btn:hover {
  border-color: var(--mpt-primary);
  background: rgba(26,82,118,0.06);
  color: var(--mpt-primary);
}

.mpt-azan-btn.mpt-azan-playing {
  background: var(--mpt-primary);
  border-color: var(--mpt-primary);
  color: #fff;
  animation: mpt-pulse 1.2s ease-in-out infinite;
}

.mpt-azan-btn.mpt-azan-loading {
  background: rgba(26,82,118,0.1);
  border-color: var(--mpt-primary);
  color: var(--mpt-primary);
  cursor: wait;
  animation: mpt-spin-text 0.8s linear infinite;
}

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

/* ========================
   QIBLA COMPASS
   ======================== */
.mpt-qibla-card .mpt-info-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mpt-qibla-compass {
  margin: 12px auto;
  width: 100px;
  height: 100px;
  position: relative;
}

.mpt-compass-ring {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--mpt-primary);
  background: radial-gradient(circle, #f8fafc 60%, #dce9f3 100%);
  position: relative;
  box-shadow: 0 4px 16px rgba(26,82,118,0.18);
}

.mpt-compass-n {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  color: var(--mpt-primary);
}

.mpt-compass-needle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center bottom;
  transform: translateX(-50%) translateY(-100%);
  display: flex;
  justify-content: center;
  height: 46px;
}

.mpt-needle-kaaba {
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.mpt-qibla-bearing {
  font-size: 16px;
  margin-top: 8px;
  color: var(--mpt-text);
}

.mpt-qibla-bearing strong {
  color: var(--mpt-primary);
  font-size: 20px;
}

.mpt-widget-qibla {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(26,82,118,0.05);
  border-radius: 8px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--mpt-primary);
  font-weight: 500;
}

.mpt-widget-qibla-icon { font-size: 18px; }

/* ========================
   PRINT BUTTON
   ======================== */
.mpt-calendar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mpt-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--mpt-border);
  border-radius: var(--mpt-radius-sm);
  background: var(--mpt-white);
  color: var(--mpt-text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--mpt-transition);
  white-space: nowrap;
}

.mpt-print-btn:hover {
  border-color: var(--mpt-primary);
  color: var(--mpt-primary);
  background: rgba(26,82,118,0.04);
}

/* ========================
   ENHANCED TODAY HIGHLIGHT
   ======================== */
.mpt-calendar-table tbody tr.mpt-today-row {
  background: linear-gradient(90deg, rgba(212,172,13,0.12) 0%, rgba(212,172,13,0.04) 100%);
  border-left: 4px solid var(--mpt-accent);
  box-shadow: inset 0 0 0 1px rgba(212,172,13,0.2);
}

.mpt-calendar-table tbody tr.mpt-today-row td {
  font-weight: 600;
}

.mpt-calendar-next-prayer-cell {
  background: rgba(26,82,118,0.10) !important;
  border-radius: 6px;
}

.mpt-calendar-next-prayer-cell .mpt-time-value {
  color: var(--mpt-primary);
  font-weight: 700;
  position: relative;
}

.mpt-calendar-next-prayer-cell .mpt-time-value::after {
  content: '▶';
  font-size: 8px;
  color: var(--mpt-accent);
  margin-left: 4px;
  vertical-align: middle;
}

/* ========================
   IMPROVED PRINT STYLES
   ======================== */
@media print {
  .mpt-hero-search,
  .mpt-next-prayer-bar,
  .mpt-detect-btn,
  .mpt-nav-btn,
  .mpt-print-btn,
  .mpt-azan-btn,
  .mpt-location-info,
  .mpt-seo-content,
  .mpt-ramadan-banner,
  .mpt-ramadan-times,
  .mpt-breadcrumbs,
  .mpt-hero-search,
  .mpt-section-icon,
  #mpt-next-prayer,
  .mpt-juristic-wrap,
  .mpt-method-select {
    display: none !important;
  }

  .mpt-page-wrapper {
    background: white !important;
  }

  .mpt-hero {
    background: #1a5276 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    padding: 20px !important;
  }

  .mpt-hero-title { color: white !important; font-size: 18pt !important; }
  .mpt-hero-meta  { color: rgba(255,255,255,0.8) !important; }

  .mpt-calendar-section {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    margin-top: 20px !important;
  }

  .mpt-calendar-table {
    width: 100% !important;
    font-size: 9pt !important;
  }

  .mpt-calendar-table th,
  .mpt-calendar-table td {
    padding: 6px 4px !important;
    border: 1px solid #ddd !important;
  }

  .mpt-calendar-table tbody tr.mpt-today-row {
    background: #fff8e1 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .mpt-today-badge {
    background: #d4ac0d !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .mpt-prayers-grid { display: none !important; }

  .mpt-calendar-controls { display: block !important; }

  @page {
    size: A4 landscape;
    margin: 1cm;
  }
}

/* ========================
   DARK MODE
   Auto: follows OS preference.
   Forced dark: [data-mpt-color-mode="dark"] on <html>
   Forced light: [data-mpt-color-mode="light"] always overrides dark.
   ======================== */
@media (prefers-color-scheme: dark) {
  html:not([data-mpt-color-mode="light"]) {
  :root {
    --mpt-primary:       #4da6e8;
    --mpt-primary-light: #6dbff5;
    --mpt-primary-dark:  #2980b9;
    --mpt-accent:        #f4d03f;
    --mpt-accent-light:  #fce589;
    --mpt-bg:            #0f1923;
    --mpt-white:         #1a2533;
    --mpt-text:          #e8edf2;
    --mpt-text-muted:    #8fa3b8;
    --mpt-border:        #2a3d52;
    --mpt-shadow:        0 4px 20px rgba(0,0,0,0.4);
    --mpt-shadow-sm:     0 2px 8px rgba(0,0,0,0.3);
    --mpt-shadow-hover:  0 8px 30px rgba(0,0,0,0.5);
    --mpt-today-bg:      rgba(212,172,13,0.1);
    --mpt-today-border:  #f4d03f;
  }

  .mpt-page-wrapper { background: var(--mpt-bg); }

  .mpt-hero { background: linear-gradient(135deg, #0a1628 0%, #1a2e44 100%); }

  .mpt-prayer-card,
  .mpt-info-card,
  .mpt-country-card,
  .mpt-city-card,
  .mpt-calendar-section,
  .mpt-next-prayer-bar,
  .mpt-ramadan-times,
  .mpt-today-section {
    background: var(--mpt-white);
    border-color: var(--mpt-border);
    color: var(--mpt-text);
  }

  .mpt-prayer-card {
    background: linear-gradient(135deg, #1e2d3d 0%, #1a2533 100%);
  }

  .mpt-prayer-card.mpt-active-prayer {
    background: linear-gradient(135deg, #1a3a5c 0%, #1e4a7a 100%);
    border-color: var(--mpt-accent);
  }

  .mpt-calendar-table {
    background: var(--mpt-white);
    color: var(--mpt-text);
  }

  .mpt-calendar-table th {
    background: #1e2d3d;
    color: var(--mpt-text);
    border-color: var(--mpt-border);
  }

  .mpt-calendar-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.02);
  }

  .mpt-calendar-table tbody tr:hover {
    background: rgba(77,166,232,0.08);
  }

  .mpt-calendar-table td {
    border-color: var(--mpt-border);
    color: var(--mpt-text);
  }

  .mpt-calendar-table tbody tr.mpt-today-row {
    background: linear-gradient(90deg, rgba(244,208,63,0.12) 0%, rgba(244,208,63,0.04) 100%);
    border-left-color: var(--mpt-accent);
  }

  .mpt-search-input {
    background: var(--mpt-white);
    color: var(--mpt-text);
    border-color: var(--mpt-border);
  }

  .mpt-search-results,
  .mpt-search-result-item {
    background: var(--mpt-white);
    border-color: var(--mpt-border);
    color: var(--mpt-text);
  }

  .mpt-search-result-item:hover {
    background: rgba(77,166,232,0.1);
  }

  .mpt-country-card {
    background: linear-gradient(135deg, #1a2533 0%, #1e2d3d 100%);
    border-color: var(--mpt-border);
  }

  .mpt-country-card:hover {
    border-color: var(--mpt-primary);
  }

  .mpt-country-card-flag {
    background: #1e2d3d;
  }

  .mpt-city-card {
    background: var(--mpt-white);
    border-color: var(--mpt-border);
    color: var(--mpt-text);
  }

  .mpt-city-card:hover {
    background: rgba(77,166,232,0.1);
    border-color: var(--mpt-primary);
  }

  .mpt-section-title,
  .mpt-country-card-name,
  .mpt-prayer-name,
  .mpt-prayer-arabic,
  .mpt-info-content h3 {
    color: var(--mpt-text);
  }

  .mpt-next-prayer-bar {
    background: linear-gradient(135deg, #1e3a5f 0%, #1a2e48 100%);
  }

  .mpt-print-btn {
    background: var(--mpt-white);
    border-color: var(--mpt-border);
    color: var(--mpt-text-muted);
  }

  .mpt-print-btn:hover {
    border-color: var(--mpt-primary);
    color: var(--mpt-primary);
  }

  .mpt-azan-btn {
    border-color: var(--mpt-border);
    color: var(--mpt-text-muted);
  }

  .mpt-azan-btn:hover {
    background: rgba(77,166,232,0.1);
    border-color: var(--mpt-primary);
    color: var(--mpt-primary);
  }

  .mpt-compass-ring {
    background: radial-gradient(circle, #1e2d3d 60%, #152233 100%);
    border-color: var(--mpt-primary);
  }

  .mpt-method-select,
  .mpt-juristic-btn {
    background: var(--mpt-white);
    color: var(--mpt-text);
    border-color: var(--mpt-border);
  }

  .mpt-juristic-btn.active {
    background: var(--mpt-primary);
    color: #fff;
  }

  .mpt-seo-content {
    background: var(--mpt-white);
    color: var(--mpt-text);
  }

  .mpt-state-nav-link {
    background: var(--mpt-white);
    border-color: var(--mpt-border);
    color: var(--mpt-text);
  }

  .mpt-state-nav-link:hover {
    background: var(--mpt-primary);
    color: #fff;
  }

  .mpt-widget-qibla {
    background: rgba(77,166,232,0.08);
    color: var(--mpt-primary);
  }
  } /* end html:not([data-mpt-color-mode="light"]) */
} /* end @media prefers-color-scheme: dark */

/* Forced dark mode — applies regardless of OS preference */
[data-mpt-color-mode="dark"] {
  --mpt-primary:       #4da6e8;
  --mpt-primary-light: #6dbff5;
  --mpt-primary-dark:  #2980b9;
  --mpt-accent:        #f4d03f;
  --mpt-accent-light:  #fce589;
  --mpt-bg:            #0f1923;
  --mpt-white:         #1a2533;
  --mpt-text:          #e8edf2;
  --mpt-text-muted:    #8fa3b8;
  --mpt-border:        #2a3d52;
  --mpt-shadow:        0 4px 20px rgba(0,0,0,0.4);
  --mpt-shadow-sm:     0 2px 8px rgba(0,0,0,0.3);
  --mpt-shadow-hover:  0 8px 30px rgba(0,0,0,0.5);
  --mpt-today-bg:      rgba(212,172,13,0.1);
  --mpt-today-border:  #f4d03f;
}

[data-mpt-color-mode="dark"] .mpt-page-wrapper { background: var(--mpt-bg); }
[data-mpt-color-mode="dark"] .mpt-hero { background: linear-gradient(135deg, #0a1628 0%, #1a2e44 100%); }
[data-mpt-color-mode="dark"] .mpt-prayer-card,
[data-mpt-color-mode="dark"] .mpt-info-card,
[data-mpt-color-mode="dark"] .mpt-country-card,
[data-mpt-color-mode="dark"] .mpt-city-card,
[data-mpt-color-mode="dark"] .mpt-calendar-section,
[data-mpt-color-mode="dark"] .mpt-next-prayer-bar,
[data-mpt-color-mode="dark"] .mpt-ramadan-times,
[data-mpt-color-mode="dark"] .mpt-today-section {
  background: var(--mpt-white);
  border-color: var(--mpt-border);
  color: var(--mpt-text);
}
[data-mpt-color-mode="dark"] .mpt-prayer-card {
  background: linear-gradient(135deg, #1e2d3d 0%, #1a2533 100%);
}
[data-mpt-color-mode="dark"] .mpt-prayer-card.mpt-active-prayer {
  background: linear-gradient(135deg, #1a3a5c 0%, #1e4a7a 100%);
  border-color: var(--mpt-accent);
}
[data-mpt-color-mode="dark"] .mpt-calendar-table { background: var(--mpt-white); color: var(--mpt-text); }
[data-mpt-color-mode="dark"] .mpt-calendar-table th { background: #1e2d3d; color: var(--mpt-text); border-color: var(--mpt-border); }
[data-mpt-color-mode="dark"] .mpt-calendar-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
[data-mpt-color-mode="dark"] .mpt-calendar-table tbody tr:hover { background: rgba(77,166,232,0.08); }
[data-mpt-color-mode="dark"] .mpt-calendar-table td { border-color: var(--mpt-border); color: var(--mpt-text); }
[data-mpt-color-mode="dark"] .mpt-calendar-table tbody tr.mpt-today-row {
  background: linear-gradient(90deg, rgba(244,208,63,0.12) 0%, rgba(244,208,63,0.04) 100%);
  border-left-color: var(--mpt-accent);
}
[data-mpt-color-mode="dark"] .mpt-search-input { background: var(--mpt-white); color: var(--mpt-text); border-color: var(--mpt-border); }
[data-mpt-color-mode="dark"] .mpt-search-results,
[data-mpt-color-mode="dark"] .mpt-search-result-item { background: var(--mpt-white); border-color: var(--mpt-border); color: var(--mpt-text); }
[data-mpt-color-mode="dark"] .mpt-search-result-item:hover { background: rgba(77,166,232,0.1); }
[data-mpt-color-mode="dark"] .mpt-country-card { background: linear-gradient(135deg, #1a2533 0%, #1e2d3d 100%); border-color: var(--mpt-border); }
[data-mpt-color-mode="dark"] .mpt-country-card:hover { border-color: var(--mpt-primary); }
[data-mpt-color-mode="dark"] .mpt-country-card-flag { background: #1e2d3d; }
[data-mpt-color-mode="dark"] .mpt-city-card { background: var(--mpt-white); border-color: var(--mpt-border); color: var(--mpt-text); }
[data-mpt-color-mode="dark"] .mpt-city-card:hover { background: rgba(77,166,232,0.1); border-color: var(--mpt-primary); }
[data-mpt-color-mode="dark"] .mpt-section-title,
[data-mpt-color-mode="dark"] .mpt-country-card-name,
[data-mpt-color-mode="dark"] .mpt-prayer-name,
[data-mpt-color-mode="dark"] .mpt-prayer-arabic,
[data-mpt-color-mode="dark"] .mpt-info-content h3 { color: var(--mpt-text); }
[data-mpt-color-mode="dark"] .mpt-next-prayer-bar { background: linear-gradient(135deg, #1e3a5f 0%, #1a2e48 100%); }
[data-mpt-color-mode="dark"] .mpt-print-btn { background: var(--mpt-white); border-color: var(--mpt-border); color: var(--mpt-text-muted); }
[data-mpt-color-mode="dark"] .mpt-print-btn:hover { border-color: var(--mpt-primary); color: var(--mpt-primary); }
[data-mpt-color-mode="dark"] .mpt-azan-btn { border-color: var(--mpt-border); color: var(--mpt-text-muted); }
[data-mpt-color-mode="dark"] .mpt-azan-btn:hover { background: rgba(77,166,232,0.1); border-color: var(--mpt-primary); color: var(--mpt-primary); }
[data-mpt-color-mode="dark"] .mpt-compass-ring { background: radial-gradient(circle, #1e2d3d 60%, #152233 100%); border-color: var(--mpt-primary); }
[data-mpt-color-mode="dark"] .mpt-method-select,
[data-mpt-color-mode="dark"] .mpt-juristic-btn { background: var(--mpt-white); color: var(--mpt-text); border-color: var(--mpt-border); }
[data-mpt-color-mode="dark"] .mpt-juristic-btn.active { background: var(--mpt-primary); color: #fff; }
[data-mpt-color-mode="dark"] .mpt-seo-content { background: var(--mpt-white); color: var(--mpt-text); }
[data-mpt-color-mode="dark"] .mpt-state-nav-link { background: var(--mpt-white); border-color: var(--mpt-border); color: var(--mpt-text); }
[data-mpt-color-mode="dark"] .mpt-state-nav-link:hover { background: var(--mpt-primary); color: #fff; }
[data-mpt-color-mode="dark"] .mpt-widget-qibla { background: rgba(77,166,232,0.08); color: var(--mpt-primary); }

/* Forced light mode — overrides even if OS is dark */
[data-mpt-color-mode="light"] {
  --mpt-primary:       #1a5276;
  --mpt-primary-light: #2e86c1;
  --mpt-primary-dark:  #154360;
  --mpt-accent:        #d4ac0d;
  --mpt-accent-light:  #f4d03f;
  --mpt-bg:            #f0f4f8;
  --mpt-white:         #ffffff;
  --mpt-text:          #2c3e50;
  --mpt-text-muted:    #7f8c8d;
  --mpt-border:        #dce9f3;
  --mpt-today-bg:      rgba(212, 172, 13, 0.08);
  --mpt-today-border:  #d4ac0d;
}

/* ============================================================
   DETECT LOCATION - LOADING OVERLAY & AUTO-DETECT STATES
   ============================================================ */

/* Wrapper must be position:relative to contain the overlay */
.mpt-detect-prompt {
    position: relative;
    overflow: hidden;
}

/* Full-cover loading overlay inside the detect prompt card */
.mpt-detect-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: inherit;
}

[data-mpt-color-mode="dark"] .mpt-detect-loading-overlay {
    background: rgba(15, 25, 38, 0.92);
}

.mpt-detect-loading-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.mpt-detect-loading-inner p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--mpt-primary);
}

/* Spinner animation */
.mpt-detect-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid var(--mpt-border);
    border-top-color: var(--mpt-primary);
    border-radius: 50%;
    animation: mpt-spin 0.75s linear infinite;
}

@keyframes mpt-spin {
    to { transform: rotate(360deg); }
}

/* Pulsing icon shown in the prompt area while detecting */
.mpt-detect-prompt-icon.mpt-detecting {
    animation: mpt-pulse-icon 1s ease-in-out infinite;
}

@keyframes mpt-pulse-icon {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%       { transform: scale(1.2); opacity: 0.7; }
}

/* Disabled state on the detect button */
.mpt-detect-prompt-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

/* Auto-detect status message (shown briefly before detection starts) */
.mpt-autodetect-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--mpt-primary);
    font-weight: 500;
    margin-top: 6px;
    opacity: 0;
    animation: mpt-fade-in 0.4s ease forwards;
}

@keyframes mpt-fade-in {
    to { opacity: 1; }
}

/* Success strip shown after successful detection */
.mpt-sc-detected-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px 14px;
    background: #ecfdf5;
    border: 1px solid #10b981;
    border-radius: 8px;
    font-size: 14px;
    color: #059669;
    font-weight: 500;
    animation: mpt-fade-in 0.3s ease forwards;
}

[data-mpt-color-mode="dark"] .mpt-sc-detected-location {
    background: rgba(16,185,129,0.1);
    color: #34d399;
    border-color: #065f46;
}

/* ============================================================
   V2 FEATURES CSS
   ============================================================ */

/* ── Hijri Calendar Widget ─────────────────────────────────── */
.mpt-hijri-widget {
    margin-bottom: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f2942 0%, #1a3a5c 100%);
    padding: 14px 20px;
    display: none;
}
.mpt-hijri-widget-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}
.mpt-hijri-moon { font-size: 28px; line-height: 1; flex-shrink: 0; }
.mpt-hijri-text { flex: 1; }
.mpt-hijri-arabic {
    font-family: 'Amiri', serif;
    font-size: 20px;
    color: #f4d03f;
    line-height: 1.3;
    direction: rtl;
}
.mpt-hijri-gregorian {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}
.mpt-hijri-year-badge {
    background: rgba(244,208,63,0.15);
    color: #f4d03f;
    border: 1px solid rgba(244,208,63,0.3);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* ── Islamic Events Banner ─────────────────────────────────── */
.mpt-islamic-event-banner {
    margin-bottom: 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
    border-left: 4px solid #34d399;
    padding: 12px 16px;
    display: none;
    animation: mpt-fade-in 0.4s ease;
}
.mpt-islamic-event-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mpt-islamic-event-icon { font-size: 24px; flex-shrink: 0; }
.mpt-islamic-event-text { color: #fff; }
.mpt-islamic-event-text strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
}
.mpt-islamic-event-text span {
    font-size: 12px;
    opacity: 0.8;
}

/* ── Notification Bar ──────────────────────────────────────── */
.mpt-notif-bar {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 13px;
    color: #1e40af;
    flex-wrap: wrap;
}
.mpt-notif-bar-icon { font-size: 18px; flex-shrink: 0; }
.mpt-notif-bar-text { flex: 1; font-weight: 500; }
.mpt-notif-bar-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.mpt-notif-bar-btn:hover { background: #1d4ed8; }
.mpt-notif-bar-dismiss {
    background: none;
    border: none;
    color: #93c5fd;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
    line-height: 1;
    flex-shrink: 0;
}
.mpt-notif-bar-dismiss:hover { color: #1e40af; }

/* ── Next Prayer Countdown Bar ─────────────────────────────── */
.mpt-sc-countdown-bar {
    display: none;
    margin-bottom: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--mpt-primary) 0%, var(--mpt-primary-dark) 100%);
    padding: 16px 20px;
}
.mpt-sc-countdown-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.mpt-sc-countdown-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.6);
    flex-basis: 100%;
    margin-bottom: -4px;
}
.mpt-sc-countdown-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.mpt-sc-countdown-timer {
    font-size: 28px;
    font-weight: 800;
    color: #f4d03f;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    flex: 1;
    text-align: right;
}
.mpt-sc-countdown-time {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    flex-basis: 100%;
    text-align: right;
    margin-top: -8px;
}

/* ── Today Prayer Highlight ────────────────────────────────── */
.mpt-sc-prayer-card {
    position: relative;
    transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
}
.mpt-sc-prayer-status {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 10px;
    font-weight: 600;
    color: var(--mpt-text-muted);
}
/* Active / next prayer */
.mpt-sc-prayer-card.mpt-prayer-active {
    background: linear-gradient(135deg, rgba(212,172,13,0.12) 0%, rgba(212,172,13,0.04) 100%) !important;
    border-color: var(--mpt-accent) !important;
    box-shadow: 0 0 0 2px rgba(212,172,13,0.25), 0 4px 20px rgba(212,172,13,0.15);
}
.mpt-sc-prayer-card.mpt-prayer-active .mpt-sc-prayer-time {
    color: var(--mpt-accent);
    font-weight: 700;
}
.mpt-sc-prayer-card.mpt-prayer-active::before {
    content: '▶ Next';
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 10px;
    font-weight: 700;
    color: var(--mpt-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
/* Passed prayers */
.mpt-sc-prayer-card.mpt-prayer-passed {
    opacity: 0.55;
}
.mpt-sc-prayer-card.mpt-prayer-passed .mpt-sc-prayer-status {
    color: #10b981;
}

/* ── Daylight Arc ──────────────────────────────────────────── */
.mpt-daylight-arc-wrap {
    display: none;
    margin-bottom: 16px;
}
.mpt-daylight-arc-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mpt-daylight-label-left,
.mpt-daylight-label-right {
    font-size: 12px;
    color: var(--mpt-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 70px;
}
.mpt-daylight-label-right { text-align: right; }
.mpt-daylight-bar-wrap { flex: 1; }
.mpt-daylight-bar-track {
    position: relative;
    height: 10px;
    background: var(--mpt-border);
    border-radius: 20px;
    overflow: visible;
}
.mpt-daylight-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
    border-radius: 20px;
    transition: width 0.5s ease;
}
.mpt-daylight-sun-dot {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    line-height: 1;
    pointer-events: none;
    transition: left 0.5s ease;
    filter: drop-shadow(0 0 4px rgba(251,191,36,0.6));
}
.mpt-daylight-bar-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 10px;
    color: var(--mpt-text-muted);
}

/* ── Qibla Compass (Shortcode version) ─────────────────────── */
.mpt-sc-qibla-wrap { display: none; margin-bottom: 20px; }
.mpt-sc-qibla-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}
.mpt-qibla-compass-ring {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, #f8fafc 60%, #e2ecf8 100%);
    border: 3px solid var(--mpt-primary);
    box-shadow: 0 4px 20px rgba(26,82,118,0.15), inset 0 0 0 8px rgba(26,82,118,0.05);
    position: relative;
    flex-shrink: 0;
}
.mpt-qibla-compass-face {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}
.mpt-qibla-n, .mpt-qibla-s,
.mpt-qibla-e, .mpt-qibla-w {
    position: absolute;
    font-size: 11px;
    font-weight: 700;
    color: var(--mpt-primary);
}
.mpt-qibla-n { top: 4px; left: 50%; transform: translateX(-50%); }
.mpt-qibla-s { bottom: 4px; left: 50%; transform: translateX(-50%); }
.mpt-qibla-e { right: 6px; top: 50%; transform: translateY(-50%); }
.mpt-qibla-w { left: 6px; top: 50%; transform: translateY(-50%); }

.mpt-qibla-needle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) rotate(0deg);
    transform-origin: 50% 100%;
    width: 4px;
    height: 60px;
    margin-top: -60px;
    /* default pointer is up (0°=North), rotation set by JS */
}
.mpt-qibla-needle-north {
    width: 4px;
    height: 45px;
    background: linear-gradient(to top, var(--mpt-primary) 0%, #2e86c1 100%);
    border-radius: 4px 4px 0 0;
    margin: 0 auto;
}
.mpt-qibla-needle-south {
    width: 4px;
    height: 15px;
    background: #e74c3c;
    border-radius: 0 0 4px 4px;
    margin: 0 auto;
}
.mpt-qibla-kaaba {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    line-height: 1;
}
.mpt-sc-qibla-info { text-align: center; }
.mpt-qibla-degrees {
    font-size: 36px;
    font-weight: 800;
    color: var(--mpt-primary);
    line-height: 1;
}
.mpt-qibla-label {
    font-size: 12px;
    color: var(--mpt-text-muted);
    margin-top: 4px;
}
.mpt-qibla-sublabel {
    font-size: 13px;
    font-weight: 600;
    color: var(--mpt-text);
    margin-top: 6px;
}

/* ── Dark mode overrides for v2 ────────────────────────────── */
[data-mpt-color-mode="dark"] .mpt-notif-bar {
    background: rgba(37,99,235,0.1);
    border-color: rgba(96,165,250,0.3);
    color: #93c5fd;
}
[data-mpt-color-mode="dark"] .mpt-notif-bar-dismiss { color: rgba(147,197,253,0.5); }
[data-mpt-color-mode="dark"] .mpt-qibla-compass-ring {
    background: radial-gradient(circle, #1e2d3d 60%, #152233 100%);
}
[data-mpt-color-mode="dark"] .mpt-daylight-bar-track { background: rgba(255,255,255,0.1); }
[data-mpt-color-mode="dark"] .mpt-sc-prayer-card.mpt-prayer-passed { opacity: 0.4; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 480px) {
    .mpt-sc-countdown-timer { font-size: 22px; }
    .mpt-hijri-arabic { font-size: 16px; }
    .mpt-qibla-compass-ring { width: 130px; height: 130px; }
    .mpt-daylight-label-left,
    .mpt-daylight-label-right { min-width: 55px; font-size: 11px; }
}
