/**
 * PyrMaker Platform - Auth, User Profile, Admin Dashboard, Ad Placements, Sandbox & Light Theme (css/auth_ads.css)
 */

/* ==========================================================================
   1. USER PROFILE WIDGET & HEADER MENU
   ========================================================================== */
.user-profile-widget {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  color: #fff;
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-pill-btn:hover {
  background: rgba(245, 158, 11, 0.14);
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.user-avatar-badge {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #070d18;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  line-height: 1;
  overflow: hidden;
  flex-shrink: 0;
}

.user-avatar-badge img,
.user-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.user-name-text {
  max-width: 125px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-role-tag {
  font-size: 0.65rem;
  padding: 0.12rem 0.45rem;
  border-radius: 9999px;
  font-weight: 800;
}

.user-role-tag.role-admin {
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #fff;
}

.user-role-tag.role-premium {
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
  color: #fff;
}

.user-role-tag.role-user {
  display: none !important;
}

.dropdown-arrow-icon {
  font-size: 0.7rem;
  opacity: 0.7;
}

/* Dropdown Menu */
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  inset-inline-end: 0;
  width: 280px;
  background: rgba(13, 22, 39, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
  padding: 0.75rem;
  z-index: 2500;
  animation: dropdownFadeIn 0.16s ease-out;
}

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

.dropdown-user-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.25rem 0.35rem 0.6rem;
}

.user-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  overflow: hidden;
  flex-shrink: 0;
}

.user-header-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-header-name {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-header-email {
  color: var(--text-muted, #94a3b8);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.45rem 0;
}

.dropdown-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: none;
  color: #e2e8f0;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-align: start;
  transition: all 0.15s ease;
}

.dropdown-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dropdown-menu-item.item-admin {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.08);
}

.dropdown-menu-item.item-admin:hover {
  background: rgba(245, 158, 11, 0.18);
}

.dropdown-menu-item.item-logout {
  color: #f87171;
}

.dropdown-menu-item.item-logout:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* ==========================================================================
   2. AUTH MODAL & USER PROFILE MODAL
   ========================================================================== */
.auth-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.auth-field-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
}

.auth-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #fff;
  padding: 0.55rem 0.75rem;
  font-family: inherit;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.auth-input:focus {
  outline: none;
  border-color: var(--gold, #f59e0b);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

.auth-error-banner {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.avatar-picker-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.avatar-choice-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.avatar-choice-btn.active,
.avatar-choice-btn:hover {
  border-color: var(--gold);
  background: rgba(245, 158, 11, 0.2);
  transform: scale(1.08);
}

/* ==========================================================================
   3. AD PLACEMENT UNITS & DESIGNER WIREFRAME BOXES
   ========================================================================== */
.ad-container-slot {
  width: 100%;
}

.ad-banner-leaderboard {
  max-width: 980px;
  margin: 0.5rem auto 0;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 0.75rem 1.15rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.ad-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.ad-tag-badge {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
}

.ad-remove-perk-btn {
  background: transparent;
  border: none;
  color: #f472b6;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.ad-remove-perk-btn:hover {
  text-decoration: underline;
}

.ad-content-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.ad-media-icon {
  font-size: 2rem;
  line-height: 1;
}

.ad-text-block {
  flex: 1;
}

.ad-title {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  margin: 0 0 0.15rem 0;
}

.ad-subtitle {
  color: var(--text-muted, #94a3b8);
  font-size: 0.76rem;
  margin: 0;
}

/* Slot 2: In-Feed Sponsored Card */
.ad-card-infeed {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.98)) !important;
  border: 1.5px dashed rgba(245, 158, 11, 0.5) !important;
}

.ad-thumb-bg {
  background: radial-gradient(circle at 50% 40%, #312e81 0%, #0f172a 85%) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ad-thumb-decor {
  font-size: 1.05rem;
  font-weight: 900;
  color: #c7d2fe;
  text-align: center;
  letter-spacing: 1px;
}

.ad-infeed-badge {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  background: #f59e0b;
  color: #000;
  font-weight: 900;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 5px;
}

.ad-cat-tag {
  background: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
}

/* Slot 3: Workspace Canvas Banner */
.ad-banner-workspace {
  max-width: 760px;
  margin: 0.75rem auto 0;
  background: rgba(15, 23, 42, 0.92);
  border: 1px dashed rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 0.45rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  font-size: 0.76rem;
}

.ad-tag-badge-sm {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.ad-workspace-text {
  color: #e2e8f0;
  font-weight: 600;
}

.ad-remove-perk-btn-sm {
  background: rgba(217, 70, 239, 0.15);
  border: 1px solid rgba(217, 70, 239, 0.4);
  color: #f472b6;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
}

/* Designer Wireframe Boxes (for inspecting exact ad dimensions & locations) */
.ad-wireframe-box {
  max-width: 960px;
  margin: 0.6rem auto;
  background: repeating-linear-gradient(
    -45deg,
    rgba(245, 158, 11, 0.08),
    rgba(245, 158, 11, 0.08) 12px,
    rgba(15, 23, 42, 0.9) 12px,
    rgba(15, 23, 42, 0.9) 24px
  );
  border: 2px dashed #f59e0b;
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.wf-badge {
  background: #f59e0b;
  color: #000;
  font-weight: 900;
  font-size: 0.72rem;
  padding: 2px 10px;
  border-radius: 99px;
  letter-spacing: 0.5px;
}

.wf-title {
  color: #fde047;
  font-weight: 800;
  font-size: 0.88rem;
}

.wf-meta {
  color: #cbd5e1;
  font-size: 0.75rem;
}

.ad-wireframe-card {
  background: repeating-linear-gradient(
    -45deg,
    rgba(245, 158, 11, 0.09),
    rgba(245, 158, 11, 0.09) 12px,
    rgba(15, 23, 42, 0.95) 12px,
    rgba(15, 23, 42, 0.95) 24px
  ) !important;
  border: 2px dashed #f59e0b !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 290px;
  padding: 1.2rem;
  text-align: center;
}

.wf-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.wf-dimensions {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
}

.wf-desc {
  font-size: 0.8rem;
  color: #fde047;
  line-height: 1.45;
}

body.ad-free-experience .ad-banner-leaderboard,
body.ad-free-experience .ad-card-infeed,
body.ad-free-experience .ad-banner-workspace,
body.ad-free-experience .ad-wireframe-box,
body.ad-free-experience .ad-wireframe-card,
body.ad-free-experience .ad-container-slot {
  display: none !important;
}

/* ==========================================================================
   5. COMPLETE LIGHT THEME SUPPORT (body.light-theme)
   ========================================================================== */
body.light-theme {
  --bg-dark: #f1f5f9;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --slot-bg: rgba(15, 23, 42, 0.04);
  background: #f1f5f9 !important;
  background-image: radial-gradient(circle at 50% 0%, #e2e8f0 0%, #f8fafc 75%) !important;
  color: #0f172a !important;
}

body.light-theme header.app-header,
body.light-theme .workspace-sub-toolbar,
body.light-theme .drawer-section,
body.light-theme .app-global-footer {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}

body.light-theme .homepage-hero,
body.light-theme .template-card,
body.light-theme .spotlight-video-card,
body.light-theme .brand-banner-box,
body.light-theme #pyramid-export-node,
body.light-theme .modal-box {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
  color: #0f172a !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

body.light-theme .hero-title,
body.light-theme .section-title,
body.light-theme .card-title,
body.light-theme .video-title,
body.light-theme .brand-intro-text h3,
body.light-theme .footer-brand-title,
body.light-theme .footer-col-title,
body.light-theme .pyramid-title-input {
  color: #0f172a !important;
}

body.light-theme .btn:not(.btn-gold):not(.btn-danger):not(.btn-remix):not(.btn-premium) {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.18);
  color: #0f172a;
}

@media (max-width: 768px) {
  .user-name-text {
    display: none;
  }
  .ad-content-row {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   Live Visitor Counter & Pulse Dot
   ========================================================================== */
.live-visitor-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 99px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .live-visitor-pill {
    display: none !important;
  }
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.visitor-stats-footer {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Report violation button on cards */
.btn-report-card {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm, 6px);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-report-card:hover {
  background: rgba(239, 68, 68, 0.22);
  color: #fff;
  border-color: #ef4444;
}

/* Moderation Reports Table */
.report-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.report-reason-badge {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
  font-weight: 700;
}

/* Import Cards Modal */
.import-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 0.5rem;
  max-height: 280px;
  overflow-y: auto;
  padding: 0.6rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.import-card-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: #0f172a;
  transition: all 0.15s ease;
}

.import-card-item.selected {
  border-color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.import-card-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.import-card-check {
  position: absolute;
  top: 4px;
  inset-inline-end: 4px;
  width: 16px;
  height: 16px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #fbbf24;
}

.import-card-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.75);
  font-size: 0.6rem;
  color: #fff;
  padding: 1px 3px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   TierMaker Style 1-Click Social Auth Buttons
   ========================================================================== */
.btn-social-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
}

.btn-social-twitter {
  background: #111827;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-social-twitter:hover {
  background: #000000;
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
  transform: translateY(-1px);
}

.btn-social-google {
  background: #ffffff;
  color: #1f2937;
  border-color: #e5e7eb;
}
.btn-social-google:hover {
  background: #f8fafc;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* ==========================================================================
   MOBILE RESPONSIVE OVERRIDES (<= 860px)
   ========================================================================== */
@media (max-width: 860px) {
  .user-profile-widget {
    position: relative !important;
  }
  .user-pill-btn {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 9px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    color: var(--gold) !important;
  }
  .user-pill-btn .user-name-text,
  .user-pill-btn .dropdown-arrow-icon,
  .user-pill-btn .user-role-badge,
  .user-pill-btn .user-role-tag,
  .user-pill-btn .user-hamburger-icon {
    display: none !important;
  }
  .user-pill-btn .user-avatar-badge {
    display: inline-flex !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 8px !important;
  }

  .user-dropdown-menu {
    position: fixed !important;
    top: 52px !important;
    left: 8px !important;
    right: auto !important;
    width: 290px !important;
    max-width: calc(100vw - 16px) !important;
    background: #0b1220 !important;
    opacity: 1 !important;
    animation: none !important;
    z-index: 9999 !important;
    box-sizing: border-box !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(245, 158, 11, 0.35) !important;
  }
  html[dir="ltr"] .user-dropdown-menu {
    left: auto !important;
    right: 8px !important;
  }
}

/* ==========================================================================
   7. PREMIUM MODAL (DESKTOP & MOBILE RESPONSIVE DESIGN)
   ========================================================================== */
.premium-modal-box {
  max-width: 660px !important;
  width: 94vw !important;
  max-height: 90vh !important;
  display: flex !important;
  flex-direction: column !important;
  border: 1.5px solid rgba(236, 72, 153, 0.45) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(168, 85, 247, 0.22) !important;
  overflow: hidden !important;
}

.premium-modal-header {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.26), rgba(217, 70, 239, 0.22)) !important;
  border-bottom: 1px solid rgba(236, 72, 153, 0.3) !important;
  padding: 0.9rem 1.25rem !important;
  flex-shrink: 0 !important;
}

.premium-modal-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
}

.premium-crown-icon {
  font-size: 1.65rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
}

.premium-modal-body {
  padding: 1.1rem 1.25rem !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.95rem !important;
  flex: 1 1 auto !important;
}

.premium-hero-banner {
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.18), rgba(15, 23, 42, 0.6));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.premium-hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #f472b6;
  background: rgba(236, 72, 153, 0.14);
  border: 1px solid rgba(236, 72, 153, 0.35);
  padding: 2px 10px;
  border-radius: 99px;
  margin-bottom: 0.35rem;
}

.premium-hero-heading {
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  margin: 0 0 0.25rem 0;
}

.premium-hero-sub {
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.5;
  margin: 0;
}

.premium-active-status-banner {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.premium-perks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.premium-perk-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.premium-perk-card:hover {
  border-color: rgba(236, 72, 153, 0.35);
  background: rgba(168, 85, 247, 0.06);
}

.premium-perk-icon {
  font-size: 1.35rem;
  line-height: 1.1;
  flex-shrink: 0;
}

.premium-perk-info strong {
  display: block;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.premium-perk-info p {
  font-size: 0.74rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.4;
  margin: 0;
}

.premium-plans-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.premium-plan-option {
  background: rgba(15, 23, 42, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.premium-plan-option:hover {
  border-color: rgba(236, 72, 153, 0.5);
}

.premium-plan-option.selected {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(236, 72, 153, 0.14));
  border-color: #f472b6;
  box-shadow: 0 0 18px rgba(236, 72, 153, 0.22);
}

.plan-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.plan-name {
  font-size: 0.84rem;
  font-weight: 800;
  color: #fff;
}

.plan-badge-flex {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.plan-badge-save {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.plan-price strong {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fbbf24;
}

.plan-price span {
  font-size: 0.74rem;
  color: var(--text-muted, #94a3b8);
}

.plan-note {
  font-size: 0.7rem;
  color: #cbd5e1;
}

.premium-modal-footer {
  padding: 0.85rem 1.25rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.65rem !important;
  flex-shrink: 0 !important;
  background: rgba(11, 18, 32, 0.95) !important;
}

.premium-cta-main-btn {
  flex: 1;
  justify-content: center;
  background: linear-gradient(135deg, #8b5cf6, #ec4899) !important;
  border: 1px solid #f472b6 !important;
  color: #fff !important;
  font-weight: 900 !important;
  font-size: 0.9rem !important;
  padding: 0.65rem 1rem !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.35) !important;
}

.premium-cta-main-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5) !important;
}

@media (max-width: 640px) {
  .premium-modal-box {
    width: 96vw !important;
    max-height: 88vh !important;
    margin: auto !important;
    border-radius: 14px !important;
  }
  .premium-modal-header {
    padding: 0.75rem 1rem !important;
  }
  .premium-modal-body {
    padding: 0.85rem 0.9rem !important;
    gap: 0.75rem !important;
  }
  .premium-perks-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .premium-perk-card {
    padding: 0.6rem 0.75rem;
  }
  .premium-plans-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .premium-modal-footer {
    flex-direction: column !important;
    padding: 0.75rem 0.9rem !important;
  }
  .premium-cta-main-btn,
  .premium-close-secondary-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}
