/* ═══════════════════════════════════════════════════
   MINI APPS SECTION
═══════════════════════════════════════════════════ */

.mini-apps-section {
  position: relative;
  width: 100% !important;
  max-width: none !important;
  padding: 120px 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(75deg, #FFF8DC 0%, #FFF5E6 35%, #FFE4B5 70%, #FFD70080 100%) !important;
  overflow: hidden;
  box-shadow: none !important;
}

/* ─── Background layer ── */

.ma-background {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.ma-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255, 165, 0, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 200, 50, 0.04) 0%, transparent 55%);
  animation: maFloat 25s ease-in-out infinite;
}

.ma-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 165, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 165, 0, 0.025) 1px, transparent 1px);
  background-size: 58px 58px;
  animation: maGridDrift 38s linear infinite;
}

.ma-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  animation: maOrbPulse 7s ease-in-out infinite;
}

.ma-orb-1 {
  width: 420px;
  height: 420px;
  background: rgba(255, 165, 0, 0.09);
  top: -120px;
  right: 5%;
  animation-delay: 0s;
}

.ma-orb-2 {
  width: 360px;
  height: 360px;
  background: rgba(255, 215, 0, 0.07);
  bottom: -80px;
  left: 5%;
  animation-delay: 3.5s;
}

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

@keyframes maGridDrift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(58px, 58px); }
}

@keyframes maOrbPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.06); }
}

/* ─── Content wrapper ── */

.mini-apps-content {
  position: relative;
  z-index: 2;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 40px !important;
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* ─── Header ── */

.mini-apps-header {
  text-align: center;
  margin-bottom: 24px;
}

.mini-apps-title {
  font-size: 4rem;
  font-weight: 800;
  margin: 0 0 28px 0;
  line-height: 1.1;
}

.mini-apps-title .title-line {
  display: block;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #3d2800 0%, #7a5200 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mini-apps-title .title-highlight {
  background: linear-gradient(135deg, #FFA500, #e68a00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mini-apps-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 165, 0, 0.12);
  color: #b36a00;
  border: 1px solid rgba(255, 165, 0, 0.3);
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mini-apps-subtitle {
  color: rgba(60, 38, 0, 0.55);
  font-size: 1rem;
  text-align: center;
  margin: 20px auto 72px;
  max-width: 500px;
  line-height: 1.7;
}

/* ─── Cards grid ── */

.mini-apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ─── Individual card ── */

.ma-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 165, 0, 0.22);
  border-radius: 28px;
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 4px 24px rgba(180, 120, 0, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition: all 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.ma-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: linear-gradient(
    160deg,
    rgba(255, 215, 0, 0.04) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.ma-card:hover {
  border-color: rgba(255, 165, 0, 0.45);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 20px 60px rgba(180, 120, 0, 0.15),
    0 0 0 1px rgba(255, 165, 0, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
  transform: translateY(-10px);
}

.ma-card:hover .ma-phone {
  transform: rotate(-2deg) scale(1.04);
}

/* Coming soon cards — slightly muted */
.ma-card-soon {
  opacity: 0.72;
}

.ma-card-soon:hover {
  opacity: 0.9;
}

/* ─── Phone mockup ── */

.ma-phone-wrap {
  margin-bottom: 32px;
}

.ma-phone {
  width: 148px;
  height: 272px;
  background: linear-gradient(160deg, #1e1812, #130e08);
  border-radius: 30px;
  border: 2px solid rgba(255, 165, 0, 0.18);
  position: relative;
  margin: 0 auto;
  box-shadow:
    0 24px 56px rgba(100, 60, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

/* Side button detail */
.ma-phone::before {
  content: '';
  position: absolute;
  right: -3px;
  top: 60px;
  width: 3px;
  height: 36px;
  background: rgba(255, 165, 0, 0.2);
  border-radius: 0 3px 3px 0;
}

/* Dynamic island notch */
.ma-phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 6px;
  background: #0a0800;
  border-radius: 3px;
  z-index: 10;
}

.ma-phone-screen {
  position: absolute;
  inset: 6px;
  border-radius: 24px;
  overflow: hidden;
  background: #0f0c06;
}

/* ─── Auth screen ── */

.ma-screen-auth {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 12px 16px;
  background: linear-gradient(170deg, #1a1200 0%, #0f0c06 60%, #0a0800 100%);
}

.ma-statusbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 2px;
}

.ma-statusbar-time {
  font-size: 6px;
  color: rgba(255, 165, 0, 0.6);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.ma-statusbar-icons {
  display: flex;
  gap: 3px;
  align-items: center;
}

.ma-statusbar-icons span {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 165, 0, 0.4);
}

.ma-screen-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.2), rgba(255, 215, 0, 0.1));
  border: 1.5px solid rgba(255, 165, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 0 14px rgba(255, 165, 0, 0.15);
}

.ma-screen-avatar i {
  font-size: 14px;
  color: rgba(255, 165, 0, 0.8);
}

.ma-screen-welcome {
  font-size: 6.5px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.ma-screen-field {
  width: 100%;
  height: 16px;
  background: rgba(255, 165, 0, 0.05);
  border: 1px solid rgba(255, 165, 0, 0.14);
  border-radius: 5px;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  padding: 0 6px;
  gap: 4px;
}

.ma-field-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 165, 0, 0.3);
  flex-shrink: 0;
}

.ma-field-line {
  flex: 1;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 1px;
}

.ma-screen-btn {
  width: 100%;
  height: 18px;
  background: linear-gradient(135deg, #FFA500, #FFD700);
  border-radius: 5px;
  margin: 4px 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6px;
  font-weight: 700;
  color: #1a1000;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
}

.ma-screen-divider {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin-bottom: 8px;
}

.ma-screen-divider::before,
.ma-screen-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.ma-screen-divider span {
  font-size: 5px;
  color: rgba(255, 255, 255, 0.2);
}

.ma-screen-socials {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.ma-social-btn {
  width: 28px;
  height: 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ─── Coming Soon screen ── */

.ma-screen-soon {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(170deg, #100d07 0%, #0a0800 100%);
  gap: 10px;
}

.ma-soon-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 165, 0, 0.07);
  border: 1px solid rgba(255, 165, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: maSoonPulse 3s ease-in-out infinite;
}

.ma-soon-icon i {
  font-size: 16px;
  color: rgba(255, 165, 0, 0.4);
}

.ma-soon-label {
  font-size: 6px;
  color: rgba(255, 165, 0, 0.3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

@keyframes maSoonPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 165, 0, 0); transform: scale(1); }
  50%       { box-shadow: 0 0 16px 3px rgba(255, 165, 0, 0.07); transform: scale(1.05); }
}

/* ─── Card info ── */

.ma-card-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.ma-app-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #2a1800;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.ma-app-desc {
  font-size: 0.85rem;
  color: rgba(50, 30, 0, 0.55);
  line-height: 1.65;
  margin-bottom: 18px;
  max-width: 260px;
}

.ma-app-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 22px;
}

.ma-tag {
  background: rgba(255, 165, 0, 0.1);
  color: #a05a00;
  border: 1px solid rgba(255, 165, 0, 0.22);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Active CTA */
.ma-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #FFA500, #e68a00);
  color: #fff;
  padding: 11px 26px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.3);
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
  margin-top: auto;
}

.ma-cta:hover {
  box-shadow: 0 10px 30px rgba(255, 140, 0, 0.45);
  transform: translateY(-2px);
  color: #fff;
}

.ma-cta i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.ma-cta:hover i {
  transform: translateX(3px);
}

/* Disabled CTA for coming soon */
.ma-cta-disabled {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(180, 120, 0, 0.07);
  color: rgba(120, 80, 0, 0.45);
  padding: 11px 26px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(180, 120, 0, 0.14);
  cursor: default;
  margin-top: auto;
  letter-spacing: 0.02em;
}

/* ─── Responsive ── */

@media (max-width: 1100px) {
  .mini-apps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 860px) {
  .mini-apps-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 700px;
  }

  .ma-card:last-child {
    grid-column: 1 / -1;
    max-width: 340px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .mini-apps-section {
    padding: 80px 0 !important;
  }

  .mini-apps-title {
    font-size: 2.8rem;
  }

  .ma-phone {
    width: 130px;
    height: 240px;
  }
}

@media (max-width: 560px) {
  .mini-apps-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
  }

  .ma-card:last-child {
    grid-column: auto;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .mini-apps-section {
    padding: 60px 0 !important;
  }

  .mini-apps-title {
    font-size: 2.2rem;
  }
}
