/* ==========================================================================
   app.css — Hand-written implementation of the reference utility classes.
   The reference loads Tailwind from a CDN; this project is offline-capable
   and ships plain CSS instead. Class names are kept 1:1 so the markup
   matches the reference exactly.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }

.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: auto; }
.grow { flex-grow: 1; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-baseline { align-items: baseline; }
.items-stretch { align-items: stretch; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.justify-around { justify-content: space-around; }

.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* --------------------------------------------------------------------------
   Spacing — reference custom scale + Tailwind default scale
   -------------------------------------------------------------------------- */

.gap-0\.5 { gap: 0.125rem; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-space-sm { gap: 0.5rem; }
.gap-space-md { gap: 1rem; }
.gap-space-lg { gap: 1.5rem; }
.gap-space-xl { gap: 2.5rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-space-md { padding: 1rem; }

.px-0\.5 { padding-left: 0.125rem; padding-right: 0.125rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-gutter-mobile { padding-left: 1rem; padding-right: 1rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }

.pl-1 { padding-left: 0.25rem; }
.pl-2 { padding-left: 0.5rem; }
.pl-11 { padding-left: 2.75rem; }
.pr-3 { padding-right: 0.75rem; }
.pr-4 { padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

.pt-1 { padding-top: 0.25rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-16 { padding-top: 4rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pb-24 { padding-bottom: 6rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.mt-1 { margin-top: 0.25rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }

/* --------------------------------------------------------------------------
   Sizing
   -------------------------------------------------------------------------- */

.w-full { width: 100%; }
.w-auto { width: auto; }
.w-5 { width: 1.25rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }

.h-full { height: 100%; }
.h-auto { height: auto; }
.h-1\.5 { height: 0.375rem; }
.h-5 { height: 1.25rem; }
.h-8 { height: 2rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-44 { height: 11rem; }

.min-h-screen { min-height: 100vh; }
.min-w-0 { min-width: 0; }
.max-w-sm { max-width: 24rem; }
.max-w-xs { max-width: 20rem; }

/* --------------------------------------------------------------------------
   Position
   -------------------------------------------------------------------------- */

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.inset-0 { inset: 0; }
.inset-x-0 { left: 0; right: 0; }
.top-0 { top: 0; }
.bottom-5 { bottom: 1.25rem; }
.-top-5 { top: -1.25rem; }
.-top-1\.5 { top: -0.375rem; }
.left-3\.5 { left: 0.875rem; }
.left-1\/2 { left: 50%; }

.-translate-x-1\/2 { transform: translateX(-50%); }

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-50 { z-index: 50; }

/* --------------------------------------------------------------------------
   Typography — sizes copied from reference theme.extend.fontSize
   -------------------------------------------------------------------------- */

.font-title-md { font-family: var(--font-title-md); }
.font-label-xs { font-family: var(--font-label-xs); }
.font-display-lg-mobile { font-family: var(--font-display-lg-mobile); }
.font-body-sm { font-family: var(--font-body-sm); }
.font-body-md { font-family: var(--font-body-md); }
.font-body-lg { font-family: var(--font-body-lg); }
.font-display-lg { font-family: var(--font-display-lg); }
.font-headline-lg-mobile { font-family: var(--font-headline-lg-mobile); }
.font-label-lg { font-family: var(--font-label-lg); }
.font-label-md { font-family: var(--font-label-md); }
.font-headline-md { font-family: var(--font-headline-md); }
.font-headline-lg { font-family: var(--font-headline-lg); }
.font-title-lg { font-family: var(--font-title-lg); }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.text-title-md { font-size: 16px; line-height: 24px; font-weight: 600; }
.text-label-xs { font-size: 11px; line-height: 14px; letter-spacing: 0.04em; font-weight: 600; }
.text-display-lg-mobile { font-size: 34px; line-height: 42px; letter-spacing: -0.02em; font-weight: 700; }
.text-body-sm { font-size: 13px; line-height: 18px; font-weight: 400; }
.text-body-md { font-size: 14px; line-height: 22px; font-weight: 400; }
.text-body-lg { font-size: 16px; line-height: 26px; font-weight: 400; }
.text-display-lg { font-size: 48px; line-height: 56px; letter-spacing: -0.025em; font-weight: 700; }
.text-headline-lg-mobile { font-size: 26px; line-height: 34px; letter-spacing: -0.015em; font-weight: 600; }
.text-label-lg { font-size: 14px; line-height: 20px; letter-spacing: 0.01em; font-weight: 600; }
.text-label-md { font-size: 12px; line-height: 16px; letter-spacing: 0.02em; font-weight: 500; }
.text-headline-md { font-size: 22px; line-height: 30px; letter-spacing: -0.01em; font-weight: 600; }
.text-headline-lg { font-size: 32px; line-height: 40px; letter-spacing: -0.02em; font-weight: 600; }
.text-title-lg { font-size: 18px; line-height: 26px; letter-spacing: -0.005em; font-weight: 600; }

.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-\[12px\] { font-size: 12px; }
.text-\[13px\] { font-size: 13px; }
.text-\[14px\] { font-size: 14px; }
.text-\[15px\] { font-size: 15px; }
.text-\[18px\] { font-size: 18px; }
.text-\[20px\] { font-size: 20px; }
.text-\[22px\] { font-size: 22px; }
.text-\[24px\] { font-size: 24px; }
.text-\[36px\] { font-size: 36px; }
.text-\[90px\] { font-size: 90px; }

/* font-weight utilities come after font-size so they win, as in Tailwind */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.uppercase { text-transform: uppercase; }
.underline { text-decoration: underline; text-underline-offset: 3px; }
.no-underline { text-decoration: none; }
.hover\:underline:hover { text-decoration: underline; text-underline-offset: 3px; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

.leading-tight { line-height: 1.25; }
.leading-normal { line-height: 1.5; }
.leading-none { line-height: 1; }

.line-clamp-1 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.whitespace-nowrap { white-space: nowrap; }
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Colors
   -------------------------------------------------------------------------- */

.text-primary { color: var(--primary); }
.text-on-primary { color: var(--on-primary); }
.text-on-primary-container { color: var(--on-primary-container); }
.text-on-surface { color: var(--on-surface); }
.text-on-surface-variant { color: var(--on-surface-variant); }
.text-secondary { color: var(--secondary); }
.text-on-secondary { color: var(--on-secondary); }
.text-secondary-fixed { color: var(--secondary-fixed); }
.text-surface-variant { color: var(--surface-variant); }
.text-surface { color: var(--surface); }
.text-error { color: var(--error); }
.text-on-error-container { color: var(--on-error-container); }
.text-outline { color: var(--outline); }
.text-white { color: #fff; }

.bg-surface { background-color: var(--surface); }
.bg-surface-container { background-color: var(--surface-container); }
.bg-surface-container-low { background-color: var(--surface-container-low); }
.bg-surface-container-high { background-color: var(--surface-container-high); }
.bg-surface-container-lowest { background-color: var(--surface-container-lowest); }
.bg-surface-bright { background-color: var(--surface-bright); }
.bg-primary { background-color: var(--primary); }
.bg-primary-container { background-color: var(--primary-container); }
.bg-primary-fixed { background-color: var(--primary-fixed); }
.bg-secondary { background-color: var(--secondary); }
.bg-secondary-container { background-color: var(--secondary-container); }
.bg-secondary-fixed { background-color: var(--secondary-fixed); }
.bg-error { background-color: var(--error); }
.bg-error-container { background-color: var(--error-container); }
.bg-tertiary { background-color: var(--tertiary); }
.bg-transparent { background-color: transparent; }
.bg-white { background-color: #fff; }

.text-on-tertiary { color: var(--on-tertiary); }

.border { border-width: 1px; border-style: solid; border-color: currentColor; }
.border-surface-container-high { border-color: var(--surface-container-high); }
.border-outline-variant { border-color: var(--outline-variant); }

.placeholder\:text-outline::placeholder { color: var(--outline); }
.placeholder\:text-outline:focus::placeholder { color: var(--outline); }

/* Opacity modifiers, resolved with color-mix() */
.bg-surface\/85 { background-color: color-mix(in srgb, var(--surface) 85%, transparent); }
.bg-surface-container-lowest\/90 { background-color: color-mix(in srgb, var(--surface-container-lowest) 90%, transparent); }
.bg-primary\/5 { background-color: color-mix(in srgb, var(--primary) 5%, transparent); }
.bg-primary\/80 { background-color: color-mix(in srgb, var(--primary) 80%, transparent); }
.bg-primary\/20 { background-color: color-mix(in srgb, var(--primary) 20%, transparent); }
.bg-primary-fixed\/40 { background-color: color-mix(in srgb, var(--primary-fixed) 40%, transparent); }
.bg-secondary\/10 { background-color: color-mix(in srgb, var(--secondary) 10%, transparent); }
.bg-secondary-container\/10 { background-color: color-mix(in srgb, var(--secondary-container) 10%, transparent); }
.bg-secondary-container\/30 { background-color: color-mix(in srgb, var(--secondary-container) 30%, transparent); }
.bg-secondary-container\/40 { background-color: color-mix(in srgb, var(--secondary-container) 40%, transparent); }
.bg-on-surface\/40 { background-color: color-mix(in srgb, var(--on-surface) 40%, transparent); }

/* --------------------------------------------------------------------------
   Gradients
   -------------------------------------------------------------------------- */

.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-b { background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); }

.from-primary { --tw-gradient-from: var(--primary); }
.from-primary\/80 { --tw-gradient-from: color-mix(in srgb, var(--primary) 80%, transparent); }
.via-primary\/20 { --tw-gradient-via: color-mix(in srgb, var(--primary) 20%, transparent); }
.to-transparent { --tw-gradient-to: transparent; }
.to-primary\/80 { --tw-gradient-to: color-mix(in srgb, var(--primary) 80%, transparent); }
.to-primary-container { --tw-gradient-to: var(--primary-container); }

.from-primary.to-primary-container,
.bg-gradient-to-r.from-primary.to-primary-container {
    --tw-gradient-stops: var(--tw-gradient-from, transparent),
                          var(--tw-gradient-to, transparent);
}

.bg-gradient-to-t.from-primary\/80.via-primary\/20.to-transparent,
.bg-gradient-to-t.from-primary.via-primary\/20.to-transparent {
    --tw-gradient-stops: var(--tw-gradient-from, transparent),
                          var(--tw-gradient-via, transparent),
                          var(--tw-gradient-to, transparent);
}

/* Fallback so the gradient is painted even when the modifier pair differs */
.bg-gradient-to-t,
.bg-gradient-to-r,
.bg-gradient-to-b {
    --tw-gradient-stops: var(--tw-gradient-from, transparent),
                          var(--tw-gradient-via, transparent),
                          var(--tw-gradient-to, transparent);
}

/* --------------------------------------------------------------------------
   Borders / radius
   -------------------------------------------------------------------------- */

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* --------------------------------------------------------------------------
   Shadows
   -------------------------------------------------------------------------- */

.shadow-sm { box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
.shadow-\[0_1px_8px_rgba\(0\,0\,0\,0\.04\)\] { box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04); }

/* --------------------------------------------------------------------------
   Filters — composed via custom properties, matching Tailwind's behaviour
   -------------------------------------------------------------------------- */

.invert,
.brightness-0,
.saturate-0 {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, )
            var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, )
            var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
}

.invert { --tw-invert: invert(100%); }
.brightness-0 { --tw-brightness: brightness(0); }
.saturate-0 { --tw-saturate: saturate(100%); }

/* --------------------------------------------------------------------------
   Backdrop
   -------------------------------------------------------------------------- */

.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-xl { backdrop-filter: blur(24px); }

/* --------------------------------------------------------------------------
   Objects / overflow / misc
   -------------------------------------------------------------------------- */

.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.overflow-hidden { overflow: hidden; }
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }
.select-none { user-select: none; }
.shrink-0 { flex-shrink: 0; }
.italic { font-style: italic; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:bg-surface-bright:focus { background-color: var(--surface-bright); }

/* Transitions */
.transition-all { transition-property: all; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; }
.transition-opacity { transition-property: opacity; }
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter; }
.duration-200 { transition-duration: 200ms; }

.active\:scale-\[0\.98\]:active { transform: scale(0.98); }
.active\:scale-95:active { transform: scale(0.95); }
.active\:opacity-90:active { opacity: 0.9; }
.hover\:text-primary:hover { color: var(--primary); }

/* --------------------------------------------------------------------------
   Animation (replaces tailwindcss-animate's animate-in / fade-in / zoom-in)
   -------------------------------------------------------------------------- */

.animate-in { animation-duration: 200ms; animation-fill-mode: both; }
.fade-in { animation-name: fade-in; }
.zoom-in { animation-name: zoom-in; }

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

@keyframes zoom-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .animate-in {
        animation: none;
    }
}

/* --------------------------------------------------------------------------
   Form control normalisation
   -------------------------------------------------------------------------- */

input,
select,
textarea {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
}

input::placeholder {
    color: var(--outline);
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Desktop / laptop
   The reference is a mobile-first single column. On wider screens the column
   is centred and clamped instead of stretching edge to edge.
   -------------------------------------------------------------------------- */

@media (min-width: 640px) {
    :root {
        --app-column: 30rem;
    }

    /* Dim the page around the column so the layout reads as a panel */
    body {
        background-color: var(--surface-container);
    }

    main {
        width: 100%;
        max-width: var(--app-column);
        margin-inline: auto;
        background-color: var(--surface);
        box-shadow: 0 0 0 1px var(--surface-container-high);
    }

    /* Keep the fixed header aligned with the same column.
       The <header> carries bg-surface/85 itself, so hand the surface
       (and the blur) over to the inner bar to stop it spanning full width. */
    header {
        background-color: transparent;
    }

    header > div {
        max-width: var(--app-column);
        margin-inline: auto;
        background-color: color-mix(in srgb, var(--surface) 85%, transparent);
        backdrop-filter: blur(24px);
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
    }
}

@media (min-width: 1024px) {
    :root {
        --app-column: 32rem;
    }
}

/* --------------------------------------------------------------------------
   Utilities required by the step-1 and step-2 markup that the block above
   does not cover. Names mirror the Tailwind class names used in the views.
   -------------------------------------------------------------------------- */

.gap-0\.5 { gap: 0.125rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-5 { gap: 1.25rem; }

.p-2\.5 { padding: 0.625rem; }
.p-3\.5 { padding: 0.875rem; }
.p-5 { padding: 1.25rem; }

.px-0\.5 { padding-left: 0.125rem; padding-right: 0.125rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }

.pl-4 { padding-left: 1rem; }
.pr-11 { padding-right: 2.75rem; }
.pt-2 { padding-top: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-28 { padding-bottom: 7rem; }

.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-2\.5 { margin-bottom: 0.625rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }

.w-1\.5 { width: 0.375rem; }
.w-2\.5 { width: 0.625rem; }
.w-10 { width: 2.5rem; }
.h-1\.5 { height: 0.375rem; }
.h-2 { height: 0.5rem; }
.h-2\.5 { height: 0.625rem; }
.h-10 { height: 2.5rem; }

.inset-y-0 { top: 0; bottom: 0; }
.right-0 { right: 0; }
.left-3\.5 { left: 0.875rem; }

.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-\[17px\] { font-size: 17px; }
.text-\[18px\] { font-size: 18px; }
.text-\[20px\] { font-size: 20px; }
.text-\[22px\] { font-size: 22px; }
.text-\[24px\] { font-size: 24px; }
.text-\[28px\] { font-size: 28px; }
.text-\[36px\] { font-size: 36px; }
.text-\[56px\] { font-size: 56px; }
.text-\[90px\] { font-size: 90px; }

.text-on-secondary-container { color: var(--on-secondary-container); }
.bg-surface-container-high { background-color: var(--surface-container-high); }

.border-l-4 { border-left-width: 4px; border-left-style: solid; border-left-color: transparent; }
.border-secondary { border-left-color: var(--secondary); }

.opacity-40 { opacity: 0.4; }
.opacity-70 { opacity: 0.7; }

.appearance-none { -webkit-appearance: none; appearance: none; }
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-wait { cursor: wait; }
.resize-none { resize: none; }
.resize-y { resize: vertical; }
.min-h-\[104px\] { min-height: 104px; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }

/* State invalid: ditambahkan oleh registration.js dan profil.js */
.is-invalid {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 1px var(--error);
}
.is-invalid:focus {
    background-color: color-mix(in srgb, var(--error-container) 35%, var(--surface-container-lowest));
}

.placeholder\:text-outline::placeholder { color: var(--outline); }
.placeholder\:text-on-surface-variant\/70::placeholder { color: color-mix(in srgb, var(--on-surface-variant) 70%, transparent); }

.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:bg-surface-bright:focus { background-color: var(--surface-bright); }
.focus\:bg-surface-container-lowest:focus { background-color: var(--surface-container-lowest); }

.hover\:bg-primary:hover { background-color: var(--primary); }
.hover\:text-primary:hover { color: var(--primary); }
.hover\:text-primary-container:hover { color: var(--primary-container); }

.active\:scale-95:active { transform: scale(0.95); }
.active\:scale-\[0\.98\]:active { transform: scale(0.98); }
.active\:opacity-90:active { opacity: 0.9; }

.from-primary\/80 { --tw-gradient-from: color-mix(in srgb, var(--primary) 80%, transparent); }
.via-primary\/20 { --tw-gradient-via: color-mix(in srgb, var(--primary) 20%, transparent); }

.bg-surface\/85 { background-color: color-mix(in srgb, var(--surface) 85%, transparent); }
.bg-surface-container-lowest\/90 { background-color: color-mix(in srgb, var(--surface-container-lowest) 90%, transparent); }
.bg-primary\/80 { background-color: color-mix(in srgb, var(--primary) 80%, transparent); }
.bg-primary\/20 { background-color: color-mix(in srgb, var(--primary) 20%, transparent); }
.bg-primary-fixed\/40 { background-color: color-mix(in srgb, var(--primary-fixed) 40%, transparent); }
.bg-secondary\/10 { background-color: color-mix(in srgb, var(--secondary) 10%, transparent); }
.bg-on-surface\/40 { background-color: color-mix(in srgb, var(--on-surface) 40%, transparent); }

.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.shadow-\[0_1px_8px_rgba\(0\,0\,0\,0\.04\)\] { box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04); }

.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.animate-spin { animation: spin 0.7s linear infinite; }
.animate-beat { animation: beat 1.6s ease-in-out infinite; transform-origin: center; will-change: transform; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

/* Detak jantung: dua denyut per siklus, dipakai tombol klaim saat terbuka. */
@keyframes beat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.08); }
    28% { transform: scale(1); }
    42% { transform: scale(1.08); }
    70% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .animate-pulse,
    .animate-beat,
    .animate-spin { animation: none; }
}

.pb-safe { padding-bottom: env(safe-area-inset-bottom, 0px); }
.pt-safe { padding-top: env(safe-area-inset-top, 0px); }

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   Utilities required by the spin-wheel markup
   -------------------------------------------------------------------------- */

.pb-space-lg { padding-bottom: 2.5rem; }

.pt-0\.5 { padding-top: 0.125rem; }

.-mt-2 { margin-top: -0.5rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mb-3 { margin-bottom: 0.75rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }

.h-6 { height: 1.5rem; }
.h-9 { height: 2.25rem; }
.h-20 { height: 5rem; }
.w-9 { width: 2.25rem; }
.w-11 { width: 2.75rem; }
.w-20 { width: 5rem; }
.w-\[280px\] { width: 280px; }
.h-\[280px\] { height: 280px; }

.border-4 { border-width: 4px; border-style: solid; border-color: currentColor; }
.border-surface-container-highest { border-color: var(--surface-container-highest); }
.bg-surface-container-highest { background-color: var(--surface-container-highest); }

.text-secondary-container { color: var(--secondary-container); }

.rounded-t-sm { border-top-left-radius: 0.125rem; border-top-right-radius: 0.125rem; }

/* Penunjuk di atas roda, bentuk panah yang mengarah ke bawah */
.clip-pointer { clip-path: polygon(50% 100%, 0 0, 100% 0); }

.shadow-inner { box-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05); }

.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.duration-\[4500ms\] { transition-duration: 4500ms; }
.transition-transform { transition-property: transform; }
.ease-\[cubic-bezier\(0\.15\,0\.9\,0\.2\,1\.0\)\] { transition-timing-function: cubic-bezier(0.15, 0.9, 0.2, 1.0); }

.bg-gradient-to-tr { background-image: linear-gradient(to top right, var(--tw-gradient-stops)); }
.from-primary-container { --tw-gradient-from: var(--primary-container); }
.from-secondary-container\/10 { --tw-gradient-from: color-mix(in srgb, var(--secondary-container) 10%, transparent); }
.to-primary { --tw-gradient-to: var(--primary); }
.to-secondary { --tw-gradient-to: var(--secondary); }
.via-transparent { --tw-gradient-via: transparent; }
.to-primary\/5 { --tw-gradient-to: color-mix(in srgb, var(--primary) 5%, transparent); }

.bg-gradient-to-t,
.bg-gradient-to-tr,
.bg-gradient-to-r,
.bg-gradient-to-b {
    --tw-gradient-stops: var(--tw-gradient-from, transparent),
                          var(--tw-gradient-via, transparent),
                          var(--tw-gradient-to, transparent);
}

/*
 * .hidden harus menang atas .material-symbols-outlined (display:inline-block).
 * Karena itu utility ini diletakkan paling akhir, bukan di bagian atas.
 */
.hidden { display: none; }

@media (prefers-reduced-motion: reduce) {
    .animate-pulse { animation: none; }
}

@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:w-2\/3 { width: 66.666667%; }
}
