/* PayByCC — plain CSS (no Tailwind build). Used with Tailwind Play CDN. */

@keyframes marketing-pulse {
    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.05);
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float-soft {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.marketing-gradient {
    animation: marketing-pulse 14s ease-in-out infinite;
}

.animate-fade-up {
    animation: fade-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.animate-delay-100 {
    animation-delay: 0.1s;
}
.animate-delay-200 {
    animation-delay: 0.2s;
}
.animate-delay-300 {
    animation-delay: 0.3s;
}
.animate-delay-400 {
    animation-delay: 0.4s;
}

.animate-float-soft {
    animation: float-soft 6s ease-in-out infinite;
}

@keyframes pay-now-glow {
    0%,
    100% {
        box-shadow:
            0 0 0 0 rgba(34, 211, 238, 0.35),
            0 10px 40px -10px rgba(99, 102, 241, 0.5);
    }
    50% {
        box-shadow:
            0 0 0 4px rgba(34, 211, 238, 0.15),
            0 14px 48px -8px rgba(167, 139, 250, 0.45);
    }
}

.pay-now-btn {
    animation: pay-now-glow 3s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .marketing-gradient,
    .animate-fade-up,
    .animate-float-soft,
    .pay-now-btn {
        animation: none !important;
    }

    .animate-fade-up {
        opacity: 1 !important;
        transform: none !important;
    }

    .auth-btn-primary:hover,
    .auth-btn-primary:active {
        transform: none !important;
    }
}

/* Auth pages */
.auth-body {
    background-color: #020617;
    color: #f1f5f9;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.auth-card {
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(15, 23, 42, 0.7);
    padding: 2rem;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(24px);
}

.auth-label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
}

.auth-input {
    display: block;
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #fff;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transition:
        border-color 0.2s,
        background-color 0.2s,
        box-shadow 0.2s;
}

.auth-input::placeholder {
    color: #64748b;
}

.auth-input:focus {
    border-color: rgba(129, 140, 248, 0.7);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 0 2px rgba(99, 102, 241, 0.35);
}

.auth-input-error,
.auth-input.auth-input-error {
    border-color: rgba(248, 113, 113, 0.55);
}

.auth-input-error:focus,
.auth-input.auth-input-error:focus {
    border-color: rgba(248, 113, 113, 0.8);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 0 2px rgba(239, 68, 68, 0.3);
}

.auth-error-text {
    margin-top: 0.375rem;
    font-size: 0.875rem;
    color: #f87171;
}

.auth-link {
    font-weight: 600;
    color: #818cf8;
    text-underline-offset: 2px;
    transition: color 0.15s;
}

.auth-link:hover {
    color: #a5b4fc;
}

.auth-btn-primary {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    background-image: linear-gradient(to right, #6366f1, #7c3aed);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    box-shadow:
        0 10px 15px -3px rgba(99, 102, 241, 0.3),
        0 4px 6px -2px rgba(99, 102, 241, 0.15);
    outline: none;
    transition:
        transform 0.2s,
        filter 0.2s,
        box-shadow 0.2s;
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow:
        0 12px 20px -4px rgba(99, 102, 241, 0.4),
        0 4px 6px -2px rgba(99, 102, 241, 0.2);
}

.auth-btn-primary:active {
    transform: translateY(0);
}

.auth-btn-primary:focus-visible {
    box-shadow:
        0 0 0 2px #818cf8,
        0 0 0 4px #020617;
}

.auth-btn-primary:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
    filter: none;
}

.auth-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #e2e8f0;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.auth-btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(129, 140, 248, 0.4);
}

.auth-btn-secondary:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

/* App shell — sidebar + main (logged-in marketplace) */
.app-sidebar {
    position: sticky;
    top: 0;
    height: 100dvh;
    max-height: 100vh;
}

.app-main-shell {
    max-width: 72rem;
}

.app-stat-card {
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 1023px) {
    .app-main-shell {
        max-width: 100%;
    }
}

/* Mobile app dock — keep FAB visible above home indicator / rounded corners */
.mobile-dock {
    overflow: visible;
}

.mobile-dock-safe {
    padding-bottom: max(0.75rem, calc(env(safe-area-inset-bottom, 0px) + 0.35rem));
    padding-top: 0.35rem;
}

details > summary::-webkit-details-marker {
    display: none;
}

.mobile-dock-item {
    -webkit-tap-highlight-color: transparent;
}

.mobile-dock-fab {
    -webkit-tap-highlight-color: transparent;
}

/* Mobile explore sheet (dialog) — icon grid, bottom sheet */
.mobile-explore-dialog {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 92dvh;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    overflow: hidden;
    z-index: 80;
}

.mobile-explore-dialog::backdrop {
    background: rgba(2, 6, 23, 0.55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.mobile-explore-dialog--light::backdrop {
    background: rgba(15, 23, 42, 0.4);
}

/* App shell: sit above the fixed bottom dock so logout footer stays visible */
.mobile-explore-dialog--light {
    bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
    max-height: calc(92dvh - 4.5rem - env(safe-area-inset-bottom, 0px));
}

.mobile-explore-dialog__inner {
    display: flex;
    width: 100%;
    max-height: min(85dvh, 34rem);
    flex-direction: column;
    border-radius: 1.25rem 1.25rem 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.25);
}

.mobile-explore-dialog--light .mobile-explore-dialog__inner {
    max-height: min(calc(85dvh - 4.5rem - env(safe-area-inset-bottom, 0px)), 30rem);
}

.mobile-explore-dialog__body {
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
}

.mobile-explore-dialog__grid .mobile-explore-tile {
    min-height: 5.25rem;
    padding: 0.5rem 0.25rem 0.45rem;
}

.mobile-explore-dialog__grid .mobile-explore-tile__icon {
    width: 2.5rem;
    height: 2.5rem;
}

.mobile-explore-dialog__footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    flex-shrink: 0;
    padding-top: 0.5rem;
    padding-bottom: max(0.875rem, env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

.mobile-explore-logout {
    -webkit-tap-highlight-color: transparent;
}

.mobile-explore-logout:active {
    transform: scale(0.99);
}

.mobile-explore-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-radius: 1rem;
    border-width: 1px;
    border-style: solid;
    padding: 0.875rem 0.5rem 0.75rem;
    min-height: 6.75rem;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        transform 0.1s ease;
}

.mobile-explore-tile:active {
    transform: scale(0.98);
}

.mobile-explore-tile__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
    .mobile-explore-tile:active {
        transform: none;
    }
}

/* Payment method badges — marketing & app */
.pay-method-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    border-radius: 1rem;
    border-width: 1px;
    border-style: solid;
    padding: 0.625rem 0.875rem;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.pay-method-pill:hover {
    transform: translateY(-1px);
}

.pay-method-pill--sm {
    padding: 0.375rem 0.625rem;
    border-radius: 0.75rem;
    gap: 0.5rem;
}

.pay-method-pill__code {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.pay-method-pill--sm .pay-method-pill__code {
    min-width: 1.75rem;
    height: 1.75rem;
    font-size: 0.5625rem;
}

.pay-method-pill__text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.pay-method-pill__label {
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.2;
}

.pay-method-pill--sm .pay-method-pill__label {
    font-size: 0.75rem;
}

.pay-method-pill__sub {
    font-size: 0.6875rem;
    line-height: 1.2;
    opacity: 0.75;
}

.pay-method-pill--dark.pay-method-pill--emerald {
    border-color: rgba(52, 211, 153, 0.25);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 78, 59, 0.08));
}
.pay-method-pill--dark.pay-method-pill--emerald .pay-method-pill__code {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}
.pay-method-pill--dark.pay-method-pill--emerald .pay-method-pill__label {
    color: #ecfdf5;
}
.pay-method-pill--dark.pay-method-pill--emerald .pay-method-pill__sub {
    color: #a7f3d0;
}

.pay-method-pill--dark.pay-method-pill--indigo {
    border-color: rgba(129, 140, 248, 0.25);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(49, 46, 129, 0.08));
}
.pay-method-pill--dark.pay-method-pill--indigo .pay-method-pill__code {
    background: rgba(99, 102, 241, 0.22);
    color: #a5b4fc;
}
.pay-method-pill--dark.pay-method-pill--indigo .pay-method-pill__label {
    color: #eef2ff;
}
.pay-method-pill--dark.pay-method-pill--indigo .pay-method-pill__sub {
    color: #c7d2fe;
}

.pay-method-pill--dark.pay-method-pill--violet {
    border-color: rgba(167, 139, 250, 0.25);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(76, 29, 149, 0.08));
}
.pay-method-pill--dark.pay-method-pill--violet .pay-method-pill__code {
    background: rgba(139, 92, 246, 0.22);
    color: #c4b5fd;
}
.pay-method-pill--dark.pay-method-pill--violet .pay-method-pill__label {
    color: #f5f3ff;
}
.pay-method-pill--dark.pay-method-pill--violet .pay-method-pill__sub {
    color: #ddd6fe;
}

.pay-method-pill--dark.pay-method-pill--cyan {
    border-color: rgba(34, 211, 238, 0.25);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(22, 78, 99, 0.08));
}
.pay-method-pill--dark.pay-method-pill--cyan .pay-method-pill__code {
    background: rgba(6, 182, 212, 0.2);
    color: #67e8f9;
}
.pay-method-pill--dark.pay-method-pill--cyan .pay-method-pill__label {
    color: #ecfeff;
}
.pay-method-pill--dark.pay-method-pill--cyan .pay-method-pill__sub {
    color: #a5f3fc;
}

.pay-method-pill--dark.pay-method-pill--fuchsia {
    border-color: rgba(232, 121, 249, 0.25);
    background: linear-gradient(135deg, rgba(192, 38, 211, 0.12), rgba(112, 26, 117, 0.08));
}
.pay-method-pill--dark.pay-method-pill--fuchsia .pay-method-pill__code {
    background: rgba(192, 38, 211, 0.2);
    color: #f0abfc;
}
.pay-method-pill--dark.pay-method-pill--fuchsia .pay-method-pill__label {
    color: #fdf4ff;
}
.pay-method-pill--dark.pay-method-pill--fuchsia .pay-method-pill__sub {
    color: #f5d0fe;
}

.pay-method-pill--light.pay-method-pill--emerald {
    border-color: rgba(16, 185, 129, 0.25);
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}
.pay-method-pill--light.pay-method-pill--emerald .pay-method-pill__code {
    background: #10b981;
    color: #fff;
}
.pay-method-pill--light.pay-method-pill--emerald .pay-method-pill__label {
    color: #064e3b;
}
.pay-method-pill--light.pay-method-pill--emerald .pay-method-pill__sub {
    color: #047857;
}

.pay-method-pill--light.pay-method-pill--indigo {
    border-color: rgba(99, 102, 241, 0.25);
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
}
.pay-method-pill--light.pay-method-pill--indigo .pay-method-pill__code {
    background: #6366f1;
    color: #fff;
}
.pay-method-pill--light.pay-method-pill--indigo .pay-method-pill__label {
    color: #312e81;
}
.pay-method-pill--light.pay-method-pill--indigo .pay-method-pill__sub {
    color: #4338ca;
}

.pay-method-pill--light.pay-method-pill--violet {
    border-color: rgba(139, 92, 246, 0.25);
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
}
.pay-method-pill--light.pay-method-pill--violet .pay-method-pill__code {
    background: #8b5cf6;
    color: #fff;
}
.pay-method-pill--light.pay-method-pill--violet .pay-method-pill__label {
    color: #4c1d95;
}
.pay-method-pill--light.pay-method-pill--violet .pay-method-pill__sub {
    color: #6d28d9;
}

.pay-method-pill--light.pay-method-pill--cyan {
    border-color: rgba(6, 182, 212, 0.25);
    background: linear-gradient(135deg, #ecfeff, #cffafe);
}
.pay-method-pill--light.pay-method-pill--cyan .pay-method-pill__code {
    background: #0891b2;
    color: #fff;
}
.pay-method-pill--light.pay-method-pill--cyan .pay-method-pill__label {
    color: #164e63;
}
.pay-method-pill--light.pay-method-pill--cyan .pay-method-pill__sub {
    color: #0e7490;
}

.pay-method-pill--light.pay-method-pill--fuchsia {
    border-color: rgba(192, 38, 211, 0.25);
    background: linear-gradient(135deg, #fdf4ff, #fae8ff);
}
.pay-method-pill--light.pay-method-pill--fuchsia .pay-method-pill__code {
    background: #c026d3;
    color: #fff;
}
.pay-method-pill--light.pay-method-pill--fuchsia .pay-method-pill__label {
    color: #701a75;
}
.pay-method-pill--light.pay-method-pill--fuchsia .pay-method-pill__sub {
    color: #a21caf;
}

.pay-methods__grid {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .pay-methods__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .pay-methods__grid--5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .pay-method-pill:hover {
        transform: none;
    }
}
