:root { --fc-purple: #5b35f5; --fc-purple-dark: #4324d8; --fc-purple-soft: #f0ecff; --fc-purple-pale: #f7f4ff; --fc-blue: #2f80ed; --fc-blue-soft: #edf5ff; --fc-pink: #d91f62; --fc-pink-soft: #fff2f8; --fc-pink-pale: #fff8fc; --fc-mint: #14b8a6; --fc-mint-soft: #effffd; --fc-mint-pale: #f6fffd; --fc-yellow: #ffd66b; --fc-text: #151827; --fc-muted: #6f7890; --fc-border: rgba(113, 119, 145, 0.14); --fc-shadow-soft: 0 20px 60px rgba(24, 20, 70, 0.08); --fc-shadow-card: 0 24px 70px rgba(24, 20, 70, 0.10); } /* ---------- Global page background ---------- */ body { background: radial-gradient(circle at 8% 8%, rgba(139, 92, 246, 0.16), transparent 28%), radial-gradient(circle at 92% 8%, rgba(47, 128, 237, 0.10), transparent 28%), radial-gradient(circle at 80% 92%, rgba(20, 184, 166, 0.08), transparent 30%), linear-gradient(180deg, #fbfbff 0%, #f5f6ff 100%) !important; } .app { background: radial-gradient(circle at 0% 0%, rgba(139, 92, 246, 0.07), transparent 30%), radial-gradient(circle at 100% 0%, rgba(47, 128, 237, 0.05), transparent 32%), #fbfbff !important; } /* ---------- Header ---------- */ .top-header, .smart-header { background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)) !important; border-bottom: 1px solid rgba(91, 53, 245, 0.08) !important; backdrop-filter: blur(16px); } .global-search, .smart-header-search { background: rgba(255, 255, 255, 0.92) !important; border-color: rgba(91, 53, 245, 0.12) !important; box-shadow: 0 14px 36px rgba(24, 20, 70, 0.06) !important; } .global-search i, .smart-header-search i { color: #7d86a0 !important; } .smart-header-logo { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; overflow: visible !important; } .smart-header-logo::before, .smart-header-logo::after { display: none !important; content: none !important; } .smart-header-logo img { width: 42px; height: 42px; display: block; object-fit: contain; } /* ---------- Sidebar ---------- */ .left-sidebar { position: relative; overflow: hidden; display: flex; flex-direction: column; background: linear-gradient(180deg, #ffffff 0%, #fbfbff 100%) !important; border-right-color: rgba(91, 53, 245, 0.08) !important; } .user-card { position: relative; overflow: hidden; background: radial-gradient(circle at 86% 20%, rgba(255, 255, 255, 0.95) 0 3px, transparent 4px), radial-gradient(circle at 94% 48%, rgba(255, 255, 255, 0.85) 0 2px, transparent 3px), radial-gradient(circle at 74% 68%, rgba(255, 255, 255, 0.90) 0 2px, transparent 3px), linear-gradient(135deg, rgba(91, 53, 245, 0.11), rgba(139, 92, 246, 0.04)), #ffffff !important; border-color: rgba(91, 53, 245, 0.08) !important; box-shadow: 0 20px 50px rgba(91, 53, 245, 0.08) !important; } .premium-badge { background: rgba(255, 255, 255, 0.72) !important; color: var(--fc-purple) !important; border: 1px solid rgba(91, 53, 245, 0.10) !important; } /* Active sidebar item */ .side-tab.active { position: relative; overflow: visible; background: linear-gradient(135deg, rgba(91, 53, 245, 0.12), rgba(139, 92, 246, 0.05)), #ffffff !important; color: var(--fc-purple) !important; box-shadow: none !important; } .side-tab.active::before { content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 5px; border-radius: 999px; background: linear-gradient(180deg, #8b5cf6, var(--fc-purple)); box-shadow: 0 8px 18px rgba(91, 53, 245, 0.22); } .side-tab.active i { color: var(--fc-purple) !important; } .side-tab:hover, .side-action-button:hover { background: rgba(91, 53, 245, 0.055) !important; } .side-action-button { background: transparent !important; } /* ---------- Sidebar decorative illustration ---------- */ .sidebar-decor-card { position: relative; height: 104px; margin: auto 14px 12px; border-radius: 28px; overflow: hidden; background: linear-gradient(135deg, #eef0ff 0%, #edf5ff 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 18px 42px rgba(91, 53, 245, 0.08); } .sidebar-decor-card::before { content: ""; position: absolute; inset: auto -10px 0; height: 42px; background: radial-gradient(circle at 16% 100%, rgba(255, 255, 255, 0.96) 0 34px, transparent 35px), radial-gradient(circle at 76% 100%, rgba(255, 255, 255, 0.94) 0 46px, transparent 47px), linear-gradient(90deg, rgba(222, 217, 255, 0.88), rgba(226, 239, 255, 0.86)); } .sidebar-decor-sky-dot { position: absolute; display: block; border-radius: 999px; background: rgba(255, 255, 255, 0.92); } .sidebar-decor-sky-dot.dot-one { width: 7px; height: 7px; left: 38px; top: 28px; } .sidebar-decor-sky-dot.dot-two { width: 5px; height: 5px; right: 46px; top: 23px; } .sidebar-decor-hill { position: absolute; left: 14px; bottom: -2px; width: 88px; height: 70px; border-radius: 999px 999px 0 0; background: linear-gradient(180deg, #d9ccff 0%, #c9bbff 100%); } .sidebar-decor-small-hill { position: absolute; right: 18px; bottom: 0; width: 56px; height: 42px; border-radius: 999px 999px 0 0; background: rgba(199, 189, 255, 0.56); } .sidebar-decor-house { position: absolute; left: 118px; bottom: 24px; width: 48px; height: 46px; filter: drop-shadow(0 12px 20px rgba(91, 53, 245, 0.14)); } .sidebar-decor-house .roof { position: absolute; top: 0; left: 3px; width: 42px; height: 23px; background: linear-gradient(135deg, #8b5cf6, #6d4df6); clip-path: polygon(50% 0, 100% 100%, 0 100%); } .sidebar-decor-house .body { position: absolute; left: 8px; bottom: 0; width: 32px; height: 27px; border-radius: 7px 7px 5px 5px; background: #ffffff; } .sidebar-decor-house .door { position: absolute; left: 20px; bottom: 0; width: 9px; height: 15px; border-radius: 5px 5px 0 0; background: #f8cb57; } .sidebar-decor-line { position: absolute; left: 114px; bottom: 47px; width: 46px; height: 2px; background: #7b5cff; transform: rotate(-45deg); transform-origin: left center; opacity: 0.82; } .sidebar-decor-dot { position: absolute; right: 22px; top: 20px; width: 38px; height: 38px; border-radius: 999px; background: rgba(160, 140, 255, 0.35); } /* Hide decorative sidebar card on mobile. */ @media (max-width: 820px) { .sidebar-decor-card { display: none !important; } } /* ---------- Main panel cards ---------- */ .full-page-panel, .tab-card, .schedule-calendar-card, .settings-detail-card, .settings-menu-card, .overview-card { border-color: rgba(91, 53, 245, 0.10) !important; } .tab-card, .schedule-calendar-card, .settings-detail-card, .settings-menu-card, .overview-card { box-shadow: var(--fc-shadow-soft) !important; } /* ---------- Schedule / Calendar container ---------- */ .schedule-calendar-card { position: relative; overflow: hidden; background: radial-gradient(circle at 86% 0%, rgba(91, 53, 245, 0.14), transparent 35%), radial-gradient(circle at 0% 100%, rgba(47, 128, 237, 0.07), transparent 32%), linear-gradient(180deg, #ffffff 0%, #fbfbff 100%) !important; border-color: rgba(91, 53, 245, 0.11) !important; box-shadow: var(--fc-shadow-card) !important; } .schedule-calendar-view-tabs { position: relative; z-index: 2; } .schedule-calendar-view-tab { border-color: rgba(91, 53, 245, 0.12) !important; } .schedule-calendar-view-tab.active { background: linear-gradient(135deg, #7b5cff, #4d2de1) !important; color: #ffffff !important; box-shadow: 0 16px 34px rgba(91, 53, 245, 0.26) !important; } .schedule-calendar-view-tab:not(.active) { background: linear-gradient(135deg, rgba(47, 128, 237, 0.10), rgba(91, 53, 245, 0.04)), #ffffff !important; color: #66708f !important; } .schedule-calendar-view-tab:not(.active):hover { color: var(--fc-purple) !important; border-color: rgba(91, 53, 245, 0.22) !important; background: var(--fc-purple-soft) !important; } .schedule-calendar-actions button { background: rgba(255, 255, 255, 0.82) !important; color: #66708f !important; box-shadow: 0 12px 28px rgba(24, 20, 70, 0.05); } .schedule-calendar-actions button:hover { background: var(--fc-purple-soft) !important; color: var(--fc-purple) !important; } #calendarTodayButton { background: rgba(245, 243, 255, 0.95) !important; color: #4f5a77 !important; } .big-calendar-weekdays span { color: #69738d !important; } .big-calendar-day { background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(250, 250, 255, 0.96)), #fbfbff !important; border-color: rgba(91, 53, 245, 0.09) !important; } .big-calendar-day:hover { border-color: rgba(91, 53, 245, 0.26) !important; background: #ffffff !important; box-shadow: 0 12px 28px rgba(24, 20, 70, 0.07) !important; } .big-calendar-day.muted { background: linear-gradient(180deg, rgba(248, 249, 255, 0.72), rgba(244, 246, 252, 0.92)), #f8f8fc !important; } .big-calendar-day.selected { border-color: rgba(91, 53, 245, 0.58) !important; background: radial-gradient(circle at top right, rgba(91, 53, 245, 0.17), transparent 42%), #ffffff !important; box-shadow: 0 16px 36px rgba(91, 53, 245, 0.13) !important; } .big-calendar-day.today .big-calendar-date-number { background: linear-gradient(135deg, #8b5cf6, var(--fc-purple)) !important; color: #ffffff !important; box-shadow: 0 10px 24px rgba(91, 53, 245, 0.24); } /* ---------- Schedule side cards ---------- */ .schedule-calendar-side .tab-card, .schedule-side-card { position: relative; overflow: hidden; border-color: rgba(91, 53, 245, 0.08) !important; box-shadow: 0 24px 70px rgba(24, 20, 70, 0.10) !important; } .schedule-calendar-side .tab-card:first-child, .schedule-side-card.selected-date-card { background: radial-gradient(circle at 100% 0%, rgba(255, 114, 176, 0.18), transparent 35%), linear-gradient(180deg, #ffffff 0%, #fff7fb 100%) !important; } .schedule-calendar-side .tab-card:nth-child(2), .schedule-side-card.upcoming-card { background: radial-gradient(circle at 100% 0%, rgba(20, 184, 166, 0.18), transparent 35%), linear-gradient(180deg, #ffffff 0%, #f3fffc 100%) !important; } .schedule-calendar-side .card-header a { color: var(--fc-purple) !important; font-weight: 800; } /* ---------- Illustrated empty states ---------- */ .selected-date-empty, .upcoming-calendar-empty, .illustrated-empty { position: relative; isolation: isolate; overflow: hidden; min-height: 176px; padding: 26px 18px !important; border-radius: 24px !important; text-align: center; } .selected-date-empty, .illustrated-empty-pink { background: linear-gradient(180deg, #fff8fc 0%, #fff2f8 100%) !important; } .upcoming-calendar-empty, .illustrated-empty-mint { background: linear-gradient(180deg, #f2fffc 0%, #ebfffb 100%) !important; } .empty-illustration { position: absolute; inset: 0; pointer-events: none; z-index: -1; } .empty-illustration-pink { background: radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.85) 0 3px, transparent 4px), radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.88) 0 3px, transparent 4px), linear-gradient(180deg, #fff8fc 0%, #fff2f8 100%); } .empty-illustration-mint { background: radial-gradient(circle at 19% 22%, rgba(255, 255, 255, 0.88) 0 10px, transparent 11px), radial-gradient(circle at 84% 25%, rgba(20, 184, 166, 0.24) 0 4px, transparent 5px), linear-gradient(180deg, #f2fffc 0%, #ebfffb 100%); } .empty-sparkle { position: absolute; display: block; width: 7px; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); } .empty-sparkle.sparkle-one { top: 28px; left: 28px; } .empty-sparkle.sparkle-two { top: 18px; right: 52px; } .empty-sparkle.sparkle-three { top: 44px; right: 24px; background: rgba(20, 184, 166, 0.28); } .empty-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 62px; background: rgba(232, 227, 255, 0.52); } .empty-illustration-mint .empty-ground { background: rgba(223, 236, 255, 0.54); } .empty-hill { position: absolute; bottom: -8px; width: 78px; height: 48px; border-radius: 999px 999px 0 0; background: rgba(255, 255, 255, 0.92); } .empty-hill-left { left: -8px; } .empty-hill-right { right: -8px; } /* Fallback decoration for dynamically generated empty states */ .selected-date-empty::before, .upcoming-calendar-empty::before { content: ""; position: absolute; inset: auto 0 0; height: 62px; z-index: -1; pointer-events: none; } .selected-date-empty::before { background: radial-gradient(circle at 8% 100%, rgba(255, 255, 255, 0.95) 0 38px, transparent 39px), radial-gradient(circle at 92% 100%, rgba(255, 255, 255, 0.95) 0 44px, transparent 45px), rgba(232, 227, 255, 0.52); } .upcoming-calendar-empty::before { background: radial-gradient(circle at 8% 100%, rgba(255, 255, 255, 0.95) 0 38px, transparent 39px), radial-gradient(circle at 92% 100%, rgba(255, 255, 255, 0.95) 0 44px, transparent 45px), rgba(223, 236, 255, 0.54); } .selected-date-empty i, .upcoming-calendar-empty i { width: 52px !important; height: 52px !important; display: grid !important; place-items: center !important; margin: 0 auto 12px !important; border-radius: 18px !important; background: rgba(91, 53, 245, 0.10) !important; color: var(--fc-purple) !important; font-size: 19px !important; } .selected-date-empty strong, .upcoming-calendar-empty strong { display: block; color: var(--fc-text) !important; font-weight: 800; } .selected-date-empty p, .upcoming-calendar-empty p { max-width: 260px; margin: 8px auto 0 !important; color: var(--fc-muted) !important; line-height: 1.45; } /* ---------- Upcoming calendar/gift illustration ---------- */ .calendar-gift-illustration { position: absolute; left: 50%; top: 56%; width: 82px; height: 72px; transform: translate(-50%, -50%) rotate(4deg); opacity: 0.95; } .calendar-gift-lid { position: absolute; top: 7px; left: 8px; width: 66px; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #b097ff, #7dded2); box-shadow: 0 8px 16px rgba(91, 53, 245, 0.12); } .calendar-gift-box { position: absolute; top: 16px; left: 12px; width: 58px; height: 44px; border-radius: 8px; background: #ffffff; box-shadow: 0 12px 24px rgba(24, 20, 70, 0.09); } .calendar-gift-ring { position: absolute; top: 0; width: 9px; height: 18px; border: 3px solid #a78bfa; border-bottom: 0; border-radius: 999px 999px 0 0; } .calendar-gift-ring.ring-left { left: 25px; } .calendar-gift-ring.ring-right { right: 25px; } .calendar-gift-square { position: absolute; width: 10px; height: 10px; border-radius: 3px; background: #8ce0d3; } .calendar-gift-square.square-one { top: 26px; left: 22px; } .calendar-gift-square.square-two { top: 26px; left: 42px; } .calendar-gift-square.square-three { top: 43px; left: 22px; } .calendar-gift-square.square-four { top: 43px; left: 42px; } .empty-plant { position: absolute; bottom: 42px; width: 28px; height: 30px; opacity: 0.62; } .empty-plant::before, .empty-plant::after { content: ""; position: absolute; bottom: 0; width: 10px; height: 26px; border-radius: 999px 999px 0 999px; background: #81ded2; } .empty-plant::before { left: 8px; transform: rotate(-28deg); } .empty-plant::after { right: 2px; transform: rotate(25deg); } .plant-left { left: 42px; } .plant-right { right: 42px; transform: scaleX(-1); } /* ---------- Settings overview cards ---------- */ .settings-dashboard-grid .overview-card { background: radial-gradient(circle at top right, rgba(91, 53, 245, 0.05), transparent 36%), #ffffff !important; border-color: rgba(91, 53, 245, 0.10) !important; } .overview-card { text-decoration: none; color: inherit; } .overview-card:hover { transform: translateY(-1px); border-color: rgba(91, 53, 245, 0.24) !important; background: #ffffff !important; } .overview-icon.bug { background: linear-gradient(135deg, #ff4d8d, #d91f62) !important; color: #ffffff !important; } .overview-icon.help { background: linear-gradient(135deg, #6d4df6, #2f80ed) !important; color: #ffffff !important; } .overview-icon.blue { background: linear-gradient(135deg, #2f80ed, #1768d3) !important; color: #ffffff !important; } .bug-report-card, .overview-help-card { cursor: pointer; text-align: left; } /* ---------- Bug report modal ---------- */ .bug-report-backdrop { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 24px; background: rgba(16, 20, 40, 0.42); backdrop-filter: blur(8px); } .bug-report-backdrop[hidden] { display: none !important; } .bug-report-modal { width: min(480px, 100%); border: 1px solid rgba(91, 53, 245, 0.12); border-radius: 28px; background: radial-gradient(circle at top right, rgba(255, 77, 141, 0.08), transparent 34%), #ffffff; box-shadow: 0 30px 90px rgba(24, 20, 70, 0.22); overflow: hidden; } .bug-report-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 24px; border-bottom: 1px solid rgba(91, 53, 245, 0.10); } .bug-report-header h2 { margin: 6px 0 0; color: var(--fc-text); font-size: 28px; letter-spacing: -0.04em; } .bug-report-close { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; background: #f4f5fb; color: #66708f; } .bug-report-close:hover { background: #ffe6ef; color: var(--fc-pink); } .bug-report-form { display: grid; gap: 18px; padding: 22px 24px 24px; } .bug-report-form label { display: grid; gap: 10px; color: #303854; font-size: 14px; font-weight: 800; } .bug-report-form textarea { width: 100%; min-height: 130px; padding: 14px; border: 1px solid rgba(91, 53, 245, 0.12); border-radius: 18px; background: #fbfbff; color: var(--fc-text); font: inherit; line-height: 1.5; resize: vertical; outline: none; } .bug-report-form textarea:focus { border-color: rgba(217, 31, 98, 0.38); background: #ffffff; box-shadow: 0 0 0 4px rgba(217, 31, 98, 0.08); } .bug-report-footer { display: flex; justify-content: flex-end; gap: 10px; } /* ---------- Mobile adjustments ---------- */ @media (max-width: 820px) { body { background: radial-gradient(circle at 8% 0%, rgba(139, 92, 246, 0.14), transparent 28%), linear-gradient(180deg, #fbfbff 0%, #f5f6ff 100%) !important; } .smart-header-logo img { width: 40px; height: 40px; } .schedule-calendar-side { display: none !important; } .schedule-calendar-card { background: radial-gradient(circle at 90% 0%, rgba(91, 53, 245, 0.11), transparent 34%), #ffffff !important; } .bug-report-backdrop { align-items: end; padding: 0; } .bug-report-modal { width: 100%; border-radius: 28px 28px 0 0; } .bug-report-footer { display: grid; grid-template-columns: 1fr 1fr; } #settingsTab .settings-mobile-hero .settings-hero-copy > p, #settingsTab .settings-mobile-hero .settings-header-actions { display: none !important; } } /* ---------- Dark theme fallback ---------- */ body.dark-theme .schedule-calendar-card, body.dark-theme .tab-card, body.dark-theme .settings-detail-card, body.dark-theme .settings-menu-card, body.dark-theme .overview-card, body.dark-theme .bug-report-modal { background: #171b30 !important; } body.dark-theme .big-calendar-day, body.dark-theme .faq-item, body.dark-theme .bug-report-form textarea { background: #1d223a !important; } body.dark-theme .selected-date-empty, body.dark-theme .upcoming-calendar-empty { background: #1d223a !important; }
.sidebar-house-illustration {
  width: 100%;
  display: block;
  border-radius: 28px;
}
.profile-background-settings {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fbfbff;
}

.profile-background-settings h4 {
  margin: 0 0 4px;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 800;
}

.profile-background-settings p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.profile-background-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.profile-bg-preset {
  height: 48px;
  border: 2px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(24, 20, 70, 0.08);
}

.profile-bg-preset:hover,
.profile-bg-preset.active {
  border-color: var(--primary);
}

.profile-bg-preset.purple {
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.9) 0 4px, transparent 5px),
    linear-gradient(135deg, #f2edff, #ded4ff);
}

.profile-bg-preset.blue {
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.9) 0 4px, transparent 5px),
    linear-gradient(135deg, #eef6ff, #cfe4ff);
}

.profile-bg-preset.pink {
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.9) 0 4px, transparent 5px),
    linear-gradient(135deg, #fff1f8, #ffd6e8);
}

.profile-bg-preset.mint {
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.9) 0 4px, transparent 5px),
    linear-gradient(135deg, #effffd, #cdf7ef);
}

.profile-background-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-bg-upload {
  cursor: pointer;
}

/* Profile card custom background support */
#sidebarUserCard {
  position: relative;
  overflow: hidden;
  background-image: var(--profile-card-bg, none);
  background-size: cover;
  background-position: center;
}

#sidebarUserCard.has-custom-background {
  background:
    linear-gradient(rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.62)),
    var(--profile-card-bg) !important;
  background-size: cover !important;
  background-position: center !important;
}

#sidebarUserCard.has-custom-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 86% 20%, rgba(255, 255, 255, 0.72) 0 4px, transparent 5px),
    radial-gradient(circle at 94% 48%, rgba(255, 255, 255, 0.5) 0 3px, transparent 4px);
  pointer-events: none;
}

#sidebarUserCard > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 820px) {
  .profile-background-presets {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* =========================================================
   Fun profile picture frames
   ========================================================= */

.profile-frame-settings {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fbfbff;
}

.profile-frame-settings h4 {
  margin: 0 0 4px;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 800;
}

.profile-frame-settings p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.profile-frame-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.profile-frame-preset {
  min-height: 86px;
  display: grid;
  place-items: center;
  gap: 7px;
  padding: 10px 8px;
  border: 2px solid transparent;
  border-radius: 18px;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(24, 20, 70, 0.08);
}

.profile-frame-preset:hover,
.profile-frame-preset.active {
  border-color: var(--primary);
}

.profile-frame-preset small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

/* Shared frame shell */
.profile-picture-frame-shell,
.profile-frame-preview-shell {
  position: relative;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  isolation: isolate;
}

.profile-picture-frame-shell {
  flex: 0 0 auto;
}

.profile-picture-frame-shell > img {
  position: relative;
  z-index: 2;
  display: block;
  border-radius: 999px;
}

.profile-frame-preview-shell {
  width: 42px;
  height: 42px;
}

.profile-frame-preview-face {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 30%, #ffffff 0 4px, transparent 5px),
    linear-gradient(135deg, #ede9fe, #dcd3ff);
}

/* ---------- Party Pop ---------- */

.profile-picture-frame-shell.profile-frame-party,
.profile-frame-preview-shell.profile-frame-party {
  padding: 4px;
  background:
    conic-gradient(
      from 20deg,
      #ff4d8d,
      #ffd66b,
      #14b8a6,
      #2f80ed,
      #8b5cf6,
      #ff4d8d
    );
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.85),
    0 12px 24px rgba(91, 53, 245, 0.18);
}

.profile-picture-frame-shell.profile-frame-party::before,
.profile-frame-preview-shell.profile-frame-party::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 14% 24%, #ff4d8d 0 2px, transparent 3px),
    radial-gradient(circle at 82% 18%, #ffd66b 0 2px, transparent 3px),
    radial-gradient(circle at 92% 72%, #14b8a6 0 2px, transparent 3px),
    radial-gradient(circle at 20% 82%, #2f80ed 0 2px, transparent 3px);
}

/* ---------- Heart Glow ---------- */

.profile-picture-frame-shell.profile-frame-hearts,
.profile-frame-preview-shell.profile-frame-hearts {
  padding: 4px;
  background: linear-gradient(135deg, #ff9ac6, #ff4d8d, #d91f62);
  box-shadow:
    0 0 0 4px rgba(255, 230, 239, 0.9),
    0 12px 24px rgba(217, 31, 98, 0.18);
}

.profile-picture-frame-shell.profile-frame-hearts::before,
.profile-frame-preview-shell.profile-frame-hearts::before {
  content: "♥";
  position: absolute;
  right: -6px;
  top: -9px;
  z-index: 4;
  color: #ff4d8d;
  font-size: 18px;
  text-shadow: 0 4px 10px rgba(217, 31, 98, 0.22);
}

.profile-picture-frame-shell.profile-frame-hearts::after,
.profile-frame-preview-shell.profile-frame-hearts::after {
  content: "♥";
  position: absolute;
  left: -5px;
  bottom: -8px;
  z-index: 4;
  color: #ff9ac6;
  font-size: 14px;
}

/* ---------- Starry Night ---------- */

.profile-picture-frame-shell.profile-frame-stars,
.profile-frame-preview-shell.profile-frame-stars {
  padding: 4px;
  background:
    radial-gradient(circle at 30% 25%, #ffffff 0 2px, transparent 3px),
    radial-gradient(circle at 72% 70%, #ffffff 0 2px, transparent 3px),
    linear-gradient(135deg, #1f2a68, #5b35f5, #2f80ed);
  box-shadow:
    0 0 0 4px rgba(237, 245, 255, 0.9),
    0 12px 24px rgba(47, 128, 237, 0.18);
}

.profile-picture-frame-shell.profile-frame-stars::before,
.profile-frame-preview-shell.profile-frame-stars::before {
  content: "✦";
  position: absolute;
  right: -6px;
  top: -10px;
  z-index: 4;
  color: #ffd66b;
  font-size: 20px;
  text-shadow: 0 5px 12px rgba(255, 214, 107, 0.28);
}

.profile-picture-frame-shell.profile-frame-stars::after,
.profile-frame-preview-shell.profile-frame-stars::after {
  content: "✧";
  position: absolute;
  left: -6px;
  bottom: -9px;
  z-index: 4;
  color: #ffffff;
  font-size: 15px;
}

/* ---------- Sunny ---------- */

.profile-picture-frame-shell.profile-frame-sunny,
.profile-frame-preview-shell.profile-frame-sunny {
  padding: 5px;
  background:
    repeating-conic-gradient(
      from 0deg,
      #ffd66b 0deg 12deg,
      #fff1b6 12deg 24deg
    );
  box-shadow:
    0 0 0 4px rgba(255, 246, 205, 0.9),
    0 12px 24px rgba(245, 158, 11, 0.18);
}

.profile-picture-frame-shell.profile-frame-sunny::before,
.profile-frame-preview-shell.profile-frame-sunny::before {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: 1;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe27a, #f59e0b);
}

/* ---------- Cloud Puff ---------- */

.profile-picture-frame-shell.profile-frame-clouds,
.profile-frame-preview-shell.profile-frame-clouds {
  padding: 5px;
  background: linear-gradient(135deg, #dff3ff, #b8ddff, #f4f8ff);
  box-shadow:
    0 0 0 4px rgba(237, 245, 255, 0.95),
    0 12px 24px rgba(47, 128, 237, 0.14);
}

.profile-picture-frame-shell.profile-frame-clouds::before,
.profile-frame-preview-shell.profile-frame-clouds::before {
  content: "";
  position: absolute;
  left: -8px;
  bottom: 0;
  z-index: 4;
  width: 26px;
  height: 14px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 35%, #ffffff 0 8px, transparent 9px),
    radial-gradient(circle at 62% 30%, #ffffff 0 10px, transparent 11px),
    #ffffff;
  box-shadow: 36px -32px 0 -3px rgba(255, 255, 255, 0.92);
}

/* ---------- Game Mode ---------- */

.profile-picture-frame-shell.profile-frame-game,
.profile-frame-preview-shell.profile-frame-game {
  padding: 4px;
  border-radius: 16px;
  background:
    linear-gradient(90deg, #14b8a6 0 25%, #8b5cf6 25% 50%, #ffd66b 50% 75%, #ff4d8d 75%);
  box-shadow:
    0 0 0 4px rgba(20, 184, 166, 0.12),
    0 12px 24px rgba(20, 184, 166, 0.16);
}

.profile-picture-frame-shell.profile-frame-game > img,
.profile-frame-preview-shell.profile-frame-game .profile-frame-preview-face {
  border-radius: 12px;
}

.profile-picture-frame-shell.profile-frame-game::before,
.profile-frame-preview-shell.profile-frame-game::before {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: 0;
  border-radius: 18px;
  background:
    linear-gradient(#ffffff 0 0) top left / 8px 8px no-repeat,
    linear-gradient(#ffffff 0 0) top right / 8px 8px no-repeat,
    linear-gradient(#ffffff 0 0) bottom left / 8px 8px no-repeat,
    linear-gradient(#ffffff 0 0) bottom right / 8px 8px no-repeat;
}

/* ---------- Frame reset/actions ---------- */

.profile-frame-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- Mobile ---------- */

@media (max-width: 820px) {
  .profile-frame-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Dark theme ---------- */

body.dark-theme .profile-frame-settings {
  border-color: var(--border);
  background: #1d223a;
}

body.dark-theme .profile-frame-preset {
  background: #171b30;
}