*, *::before, *::after { box-sizing: border-box; }
[data-theme="dark"] { color-scheme: dark; }
[data-theme="light"] { color-scheme: light; }
.theme-toggle { display: inline-grid; place-items: center; flex: 0 0 auto; min-width: 2.5rem; min-height: 2.5rem; border: 1px solid #cbd5e1; border-radius: 999px; padding: .4rem; background: #fff; color: #1e293b; box-shadow: 0 4px 14px rgba(15,23,42,.14); font-size: 1rem; font-weight: 700; cursor: pointer; }
.theme-toggle-inline { position: static; }
.theme-toggle-corner { position: fixed; top: max(.75rem, env(safe-area-inset-top)); right: max(.75rem, env(safe-area-inset-right)); z-index: 90; }
.theme-toggle:hover { background: #f1f5f9; }
[data-theme="dark"] body { background-color: #0b1220 !important; color: #e2e8f0 !important; }
[data-theme="dark"] .bg-white, [data-theme="dark"] .bg-slate-50, [data-theme="dark"] .bg-slate-100 { background-color: #111c2e !important; }
[data-theme="dark"] .bg-slate-200 { background-color: #263449 !important; }
[data-theme="dark"] .bg-indigo-50, [data-theme="dark"] .bg-indigo-50\/50 { background-color: #192844 !important; }
[data-theme="dark"] .text-slate-900, [data-theme="dark"] .text-slate-800, [data-theme="dark"] .text-slate-700 { color: #e2e8f0 !important; }
[data-theme="dark"] .text-slate-600, [data-theme="dark"] .text-slate-500 { color: #aab8ca !important; }
[data-theme="dark"] :is(.text-indigo-600,.text-indigo-700,.text-indigo-800,.text-indigo-900,.text-indigo-950,.text-blue-600,.text-blue-700,.text-blue-800,.text-blue-900,.text-blue-950,.text-sky-600,.text-sky-700,.text-sky-800,.text-sky-900,.text-sky-950,.text-cyan-600,.text-cyan-700,.text-cyan-800,.text-cyan-900,.text-cyan-950,.text-violet-600,.text-violet-700,.text-violet-800,.text-violet-900,.text-violet-950,.text-purple-600,.text-purple-700,.text-purple-800,.text-purple-900,.text-purple-950) { color: #c7d2fe !important; }
[data-theme="dark"] :is(.text-green-600,.text-green-700,.text-green-800,.text-green-900,.text-green-950,.text-emerald-600,.text-emerald-700,.text-emerald-800,.text-emerald-900,.text-emerald-950,.text-teal-600,.text-teal-700,.text-teal-800,.text-teal-900,.text-teal-950) { color: #a7f3d0 !important; }
[data-theme="dark"] :is(.text-amber-600,.text-amber-700,.text-amber-800,.text-amber-900,.text-amber-950,.text-yellow-600,.text-yellow-700,.text-yellow-800,.text-yellow-900,.text-yellow-950,.text-orange-600,.text-orange-700,.text-orange-800,.text-orange-900,.text-orange-950) { color: #fde68a !important; }
[data-theme="dark"] :is(.text-red-600,.text-red-700,.text-red-800,.text-red-900,.text-red-950,.text-rose-600,.text-rose-700,.text-rose-800,.text-rose-900,.text-rose-950) { color: #fecaca !important; }
[data-theme="dark"] :is(.text-pink-600,.text-pink-700,.text-pink-800,.text-pink-900,.text-pink-950,.text-fuchsia-600,.text-fuchsia-700,.text-fuchsia-800,.text-fuchsia-900,.text-fuchsia-950) { color: #fbcfe8 !important; }
[data-theme="dark"] :is(.text-slate-400,.text-gray-400,.text-zinc-400,.text-neutral-400) { color: #94a3b8 !important; }
[data-theme="dark"] .border-slate-200, [data-theme="dark"] .border-slate-300 { border-color: #334155 !important; }
[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]), [data-theme="dark"] select, [data-theme="dark"] textarea { background-color: #111c2e; color: #e2e8f0; border-color: #475569; }
[data-theme="dark"] input::placeholder, [data-theme="dark"] textarea::placeholder { color: #94a3b8; }
[data-theme="dark"] nav { background-color: #111c2e !important; border-color: #334155 !important; }
[data-theme="dark"] nav .bg-white { background-color: #263449 !important; }
[data-theme="dark"] nav a.text-slate-600, [data-theme="dark"] nav a.text-slate-900 { color: #dbeafe !important; }
[data-theme="dark"] .bg-red-50, [data-theme="dark"] .bg-rose-50 { background-color: #3a202b !important; }
[data-theme="dark"] .bg-green-50, [data-theme="dark"] .bg-emerald-50 { background-color: #15352d !important; }
[data-theme="dark"] .bg-amber-50, [data-theme="dark"] .bg-yellow-50 { background-color: #392f1b !important; }
[data-theme="dark"] .bg-indigo-50, [data-theme="dark"] .bg-indigo-50\/50 { background-color: #192844 !important; }
[data-theme="dark"] dialog { background-color: #111c2e; color: #e2e8f0; }
[data-theme="dark"] .theme-toggle { background: #1e293b; border-color: #475569; color: #f8fafc; }
[data-theme="dark"] .theme-toggle:hover { background: #334155; }
[data-theme="light"] body.bg-slate-900 { background-color: #f8fafc !important; color: #0f172a !important; }
[data-theme="light"] body.bg-slate-900 header, [data-theme="light"] body.bg-slate-900 footer,
[data-theme="light"] body.bg-slate-900 main section.bg-slate-900, [data-theme="light"] body.bg-slate-900 main section.bg-slate-950 { background-color: #fff !important; border-color: #e2e8f0 !important; }
[data-theme="light"] body.bg-slate-900 :is(.bg-slate-800,.bg-slate-900,.bg-slate-950) { background-color: #f1f5f9 !important; border-color: #dbe3ed !important; }
[data-theme="light"] body.bg-slate-900 :is([class*="bg-slate-800/"],[class*="bg-slate-900/"],[class*="bg-slate-950/"]) { background-color: #f1f5f9 !important; }
[data-theme="light"] body.bg-slate-900 .bg-gradient-to-b { background-image: none !important; background-color: #f1f5f9 !important; }
[data-theme="light"] body.bg-slate-900 main .text-white { color: #0f172a !important; }
[data-theme="light"] body.bg-slate-900 main :is(.bg-indigo-600,.bg-violet-600,.bg-emerald-600,.bg-green-700) .text-white,
[data-theme="light"] body.bg-slate-900 main :is(a.bg-indigo-600,a.bg-violet-600,button.bg-indigo-600,button.bg-violet-600,button.bg-emerald-600) { color: #fff !important; }
[data-theme="light"] body.bg-slate-900 header :is(.text-white,.text-slate-200,.text-slate-300),
[data-theme="light"] body.bg-slate-900 footer :is(.text-white,.text-slate-200,.text-slate-300,.text-slate-400,.text-slate-500) { color: #334155 !important; }
[data-theme="light"] body.bg-slate-900 main :is(.text-slate-100,.text-slate-200,.text-slate-300,.text-slate-400,.text-slate-500) { color: #475569 !important; }
[data-theme="light"] body.bg-slate-900 main :is(.text-indigo-300,.text-indigo-400,.text-violet-300,.text-violet-400,.text-cyan-300,.text-cyan-400,.text-blue-300,.text-blue-400) { color: #4338ca !important; }
[data-theme="light"] body.bg-slate-900 main :is(.text-emerald-100,.text-emerald-300,.text-emerald-400,.text-green-300,.text-green-400) { color: #047857 !important; }
[data-theme="light"] body.bg-slate-900 main :is(.text-amber-300,.text-amber-400,.text-yellow-300,.text-yellow-400) { color: #92400e !important; }
[data-theme="light"] body.bg-slate-900 main :is(.text-pink-300,.text-pink-400,.text-fuchsia-300,.text-fuchsia-400) { color: #be185d !important; }
[data-theme="light"] body.bg-slate-900 main .bg-clip-text { color: transparent !important; }
[data-theme="light"] body.bg-slate-900 .theme-toggle { color: #0f172a !important; background: #fff !important; }
[hidden] { display: none !important; }
html { width: 100%; min-width: 320px; overflow-x: clip; }
body { width: 100%; min-width: 320px; margin: 0; overflow-x: clip; -webkit-font-smoothing: antialiased; }
input, select, textarea, button { max-width: 100%; font: inherit; }
input, select, textarea { min-width: 0; }
main, section, form, article { min-width: 0; }
dialog::backdrop { background: rgba(15, 23, 42, .62); backdrop-filter: blur(2px); }
dialog[open] { animation: dialog-in .16s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.focus-ring:focus-visible { outline: 3px solid rgba(79, 70, 229, .35); outline-offset: 2px; }
.status-active { background: #dcfce7; color: #166534; }
.status-expiring-soon { background: #fef3c7; color: #92400e; }
.status-overdue { background: #fee2e2; color: #991b1b; }
@media (max-width: 767px) { .desktop-only { display: none !important; } }
@media (min-width: 768px) { .mobile-only { display: none !important; } }
dialog { max-width: calc(100vw - 1rem); max-height: calc(100dvh - 1rem); }
dialog[open] { overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 480px) {
    main { padding-left: 1rem; padding-right: 1rem; }
    #member-dialog, #payment-dialog { width: calc(100vw - 1rem); margin: auto; }
    #member-dialog form, #payment-dialog > div { padding: 1rem; }
    #offers-list article { overflow-wrap: anywhere; }
    #offers-list article > div { min-width: 0; flex-wrap: wrap; }
    #members-content > div:last-child { gap: .5rem; }
    #page-label { text-align: center; font-size: .75rem; }
}
