:root {
    --background: 220 25% 6%;
    --foreground: 0 0% 98%;
    --card: 220 20% 10%;
    --card-foreground: 0 0% 98%;
    --popover: 220 20% 10%;
    --popover-foreground: 0 0% 98%;
    --primary: 353 89% 51%;
    --primary-foreground: 0 0% 100%;
    --secondary: 220 15% 20%;
    --secondary-foreground: 0 0% 98%;
    --muted: 220 15% 20%;
    --muted-foreground: 220 8% 60%;
    --accent: 353 89% 51%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 70% 50%;
    --destructive-foreground: 0 0% 98%;
    --border: 220 15% 18%;
    --input: 220 15% 18%;
    --ring: 353 89% 51%;
    --success: 142 76% 45%;
    --warning: 38 92% 50%;
    --radius: 1rem;
}

/* Keep scrollbar gutter space to avoid layout shift when toggling scroll */
html { scrollbar-gutter: stable; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #0a0d14;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(244, 5, 82, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(244, 5, 82, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(13, 16, 23, 0.8) 0%, transparent 100%);
    color: hsl(var(--foreground));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(1200px 600px at 20% 20%, rgba(244, 5, 82, 0.08), transparent 60%),
        radial-gradient(800px 400px at 80% 70%, rgba(244, 5, 82, 0.06), transparent 60%);
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
    filter: blur(20px);
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(244, 5, 82, 0.03) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(244, 5, 82, 0.03) 50%, transparent 52%);
    background-size: 100px 100px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

/* ---- Global mobile utilities ---- */
.no-scroll { overflow: hidden; }
img, video, iframe { max-width: 100%; height: auto; display: block; }
.w-full { width: 100%; }

/* Hide inner scrollbars inside cards across browsers */
.card, .card-content {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge legacy */
}
.card::-webkit-scrollbar, .card-content::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.container {
    width: 100%;
    max-width: 36rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.card {
    background: linear-gradient(145deg, rgba(15, 19, 28, 0.95), rgba(20, 25, 35, 0.9));
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(244, 5, 82, 0.15);
    border-radius: var(--radius);
    box-shadow: 
        0 0 0 1px rgba(244, 5, 82, 0.1),
        0 30px 60px -12px rgba(0, 0, 0, 0.5),
        0 18px 36px -18px rgba(244, 5, 82, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    border-color: rgba(244, 5, 82, 0.3);
    box-shadow: 
        0 0 0 1px rgba(244, 5, 82, 0.2),
        0 40px 80px -12px rgba(0, 0, 0, 0.6),
        0 20px 40px -18px rgba(244, 5, 82, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(244, 5, 82, 0.4) 25%,
        rgba(244, 5, 82, 0.8) 50%,
        rgba(244, 5, 82, 0.4) 75%,
        transparent
    );
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

.card-header {
    padding: 3rem 2rem 1.5rem;
    background: linear-gradient(180deg, 
        rgba(244, 5, 82, 0.08) 0%, 
        transparent 100%
    );
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(244, 5, 82, 0.3) 50%,
        transparent
    );
}

.header-logo {
    width: min(var(--logo-size, 200px), 80%);
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto 1.75rem;
    display: block;
    border-radius: 12px;
    filter: drop-shadow(0 0 30px rgba(244, 5, 82, 0.4));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
}

.header-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 40px rgba(244, 5, 82, 0.6));
}

.card-content {
    padding: 2rem;
}

.card-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    padding-bottom: 0.25rem;
    text-shadow: 
        0 0 40px rgba(244, 5, 82, 0.6),
        0 0 20px rgba(244, 5, 82, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.3);
}

.card-description {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.input {
    display: flex;
    height: 3.25rem;
    width: 100%;
    border-radius: calc(var(--radius) - 0.2rem);
    border: 2px solid rgba(244, 5, 82, 0.2);
    background: rgba(10, 13, 20, 0.6);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.25rem;
    font-family: 'Montserrat', sans-serif;
}

.input:focus {
    outline: none;
    border-color: rgba(244, 5, 82, 0.6);
    box-shadow: 
        0 0 0 3px rgba(244, 5, 82, 0.15),
        0 0 25px rgba(244, 5, 82, 0.3);
    background: rgba(10, 13, 20, 0.8);
    transform: translateY(-1px);
}

.input::placeholder {
    color: hsl(var(--muted-foreground));
    font-weight: 400;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: calc(var(--radius) - 0.2rem);
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    text-decoration: none;
    min-height: 3.25rem;
    padding: 0.875rem 2.5rem;
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Pricing specific */
.pricing-container {
    max-width: 48rem;
}

/* ─── Top-right Discord Auth Widget ─────────────────────────────────────── */
.corner-auth {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 200;
}

.auth-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(15,19,28,0.75), rgba(20,25,35,0.75));
    border: 1px solid rgba(244, 5, 82, 0.25);
    backdrop-filter: blur(10px) saturate(140%);
    box-shadow: 0 10px 25px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
    color: hsl(var(--foreground));
}

.auth-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 0 0 2px rgba(244,5,82,0.15);
}

.auth-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    min-height: 2.4rem;
    border-radius: 999px;
    border: 1px solid rgba(244, 5, 82, 0.35);
    background: linear-gradient(135deg, rgba(244,5,82,0.85), rgba(244,5,82,0.65));
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(244,5,82,0.35);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.auth-btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 12px 28px rgba(244,5,82,0.45); }
.auth-btn:active { transform: translateY(0); filter: brightness(0.98); }

.auth-btn.secondary {
    background: linear-gradient(135deg, rgba(70,75,95,0.7), rgba(50,55,75,0.7));
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.auth-btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.auth-icon { width: 18px; height: 18px; filter: drop-shadow(0 0 10px rgba(255,255,255,0.15)); }

@media (max-width: 520px) {
    .corner-auth { right: 0.75rem; top: 0.75rem; gap: 0.5rem; }
    .auth-name { display: none; }
}

.pricing-list {
    display: grid;
    grid-template-columns: 1fr;
    --pricing-gap: 0.75rem;
    gap: var(--pricing-gap);
    padding-top: var(--pricing-gap);
}

.pricing-card {
    border: 1px solid rgba(244, 5, 82, 0.25);
}

.pricing-card .features {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    padding-left: 1rem;
}

.pricing-card .card-content {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
}

.pricing-card .price {
    margin-top: 0;
    justify-self: end;
    text-align: right;
    grid-column: 2;
    font-weight: 900;
    font-size: 2.4rem;
    color: #f40552;
    letter-spacing: 0.02em;
    filter: drop-shadow(0 0 3px rgba(244, 5, 82, 0.3)) drop-shadow(0 0 6px rgba(244, 5, 82, 0.2));
    text-shadow: 0 0 3px rgba(244, 5, 82, 0.35), 0 0 6px rgba(244, 5, 82, 0.2);
    animation: priceGlow 4s ease-in-out infinite;
    will-change: transform, filter;
}

.pricing-card.featured .price {
    font-size: 3rem;
}

@keyframes priceGlow {
    0%   { filter: drop-shadow(0 0 2px rgba(244, 5, 82, 0.25)) drop-shadow(0 0 4px rgba(244, 5, 82, 0.15)); transform: scale(1); }
    50%  { filter: drop-shadow(0 0 6px rgba(244, 5, 82, 0.5)) drop-shadow(0 0 12px rgba(244, 5, 82, 0.3)); transform: scale(1.02); }
    100% { filter: drop-shadow(0 0 2px rgba(244, 5, 82, 0.25)) drop-shadow(0 0 4px rgba(244, 5, 82, 0.15)); transform: scale(1); }
}

.pricing-card.featured {
    min-height: 300px;
    border-color: rgba(244, 5, 82, 0.45);
    box-shadow: 0 0 0 1px rgba(244, 5, 82, 0.2), 0 28px 50px -18px rgba(244, 5, 82, 0.25);
}

.pricing-card.featured .card-header {
    padding-top: 3.25rem;
}

.pricing-card.featured .card-title {
    font-size: 2rem;
}

.pricing-card.featured .card-content {
    padding: 2rem;
}

/* Navigator hint for corner menu */
/* Navigator tooltip removed; added a persistent button effect */
.corner-menu-toggle { position: relative; }
.corner-menu-toggle::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    box-shadow: 0 0 0 0 rgba(244, 5, 82, 0.4);
    animation: ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.corner-menu-toggle:hover::after { animation-play-state: paused; }

@keyframes ping {
    0% { box-shadow: 0 0 0 0 rgba(244, 5, 82, 0.55); }
    70% { box-shadow: 0 0 0 22px rgba(244, 5, 82, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 5, 82, 0); }
}

.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.button:hover::before {
    width: 320px;
    height: 320px;
}

.button-primary {
    background: linear-gradient(135deg, #f40552 0%, #d10447 50%, #c20440 100%);
    color: white;
    box-shadow: 
        0 4px 20px rgba(244, 5, 82, 0.4),
        0 0 40px rgba(244, 5, 82, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 35px rgba(244, 5, 82, 0.5),
        0 0 70px rgba(244, 5, 82, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.button-primary:active {
    transform: translateY(-1px);
}

.button-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    box-shadow: 
        0 4px 20px rgba(34, 197, 94, 0.3),
        0 0 40px rgba(34, 197, 94, 0.15);
}

.button-success:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 25px rgba(34, 197, 94, 0.4),
        0 0 50px rgba(34, 197, 94, 0.2);
}

/* Danger variant for not-logged state */
.button-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow:
        0 4px 20px rgba(239, 68, 68, 0.3),
        0 0 40px rgba(239, 68, 68, 0.15);
}
.button-danger:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 25px rgba(239, 68, 68, 0.4),
        0 0 50px rgba(239, 68, 68, 0.2);
}

.alert {
    border-radius: calc(var(--radius) - 0.2rem);
    border: 1px solid;
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
    display: flex;
    align-items: start;
    gap: 1rem;
    backdrop-filter: blur(15px);
    font-weight: 600;
    font-size: 0.95rem;
}

.alert-processing {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.08);
    color: #fbbf24;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.1);
}

.alert-success {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.08);
    color: #22c55e;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.1);
}

.alert-destructive {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
}

.icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        #0a0d14 0%, 
        #0f1219 50%, 
        #0a0d14 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.preloader-logo {
    width: min(var(--preloader-logo-size, 200px), 40vw);
    height: auto;
    aspect-ratio: 1 / 1;
    margin-bottom: 2rem;
    border-radius: 12px;
    animation: pulse-glow 2s infinite;
    filter: drop-shadow(0 0 50px rgba(244, 5, 82, 0.5));
    object-fit: contain;
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(244, 5, 82, 0.15);
    border-top: 4px solid #f40552;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
    box-shadow: 
        0 0 30px rgba(244, 5, 82, 0.4),
        inset 0 0 20px rgba(244, 5, 82, 0.2);
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        filter: drop-shadow(0 0 50px rgba(244, 5, 82, 0.5));
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
        filter: drop-shadow(0 0 70px rgba(244, 5, 82, 0.7));
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

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

.mt-4 {
    margin-top: 1rem;
}

.w-full {
    width: 100%;
}

.gradient-text {
    background: linear-gradient(135deg, #f40552 0%, #ff2a73 25%, #ff1a6b 50%, #ff2a73 75%, #f40552 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s linear infinite alternate;
    will-change: background-position;
}

@keyframes gradient-shift {
    0%   { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Footer highlight */
.footer-powered {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 0.75rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-powered::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #f40552 0%, #ff1a6b 50%, #f40552 100%);
    box-shadow: 0 0 12px rgba(244, 5, 82, 0.5);
    transition: width 0.35s ease;
}

.footer-powered:hover {
    color: #f40552;
    text-shadow: 0 0 14px rgba(244, 5, 82, 0.6), 0 0 28px rgba(244, 5, 82, 0.25);
}

.footer-powered:hover::after {
    width: 100%;
}

.footer-powered:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(244, 5, 82, 0.25);
    border-radius: 0.75rem;
}

.footer-powered .powered-text {
    font-weight: 600;
    letter-spacing: 0.02em;
}
.auth-btn .auth-icon { display: inline-block; width: 18px; height: 18px; flex-shrink: 0; }

/* Corner social links (top-left) */
.corner-links {
    position: fixed;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 200;
}

.corner-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(10, 13, 20, 0.55);
    border: 1px solid rgba(244, 5, 82, 0.25);
    text-decoration: none;
    color: hsl(var(--foreground));
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.corner-link:hover {
    color: #f40552;
    border-color: rgba(244, 5, 82, 0.5);
    box-shadow: 0 0 16px rgba(244, 5, 82, 0.35);
}

.corner-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    flex-shrink: 0;
}

/* Favorite (heart) toggle on cards and modal */
.fav-toggle {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(244, 5, 82, 0.35);
    background: rgba(10, 13, 20, 0.4);
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 700;
    font-size: 18px;
}
.fav-toggle:hover {
    box-shadow: 0 0 12px rgba(244, 5, 82, 0.35);
    border-color: rgba(244, 5, 82, 0.5);
}
.fav-toggle.is-fav {
    color: #f40552;
    background: rgba(244, 5, 82, 0.12);
    border-color: rgba(244, 5, 82, 0.55);
}

/* Umiejscowienie serduszka w prawym dolnym rogu kafelka */
.shop-item { position: relative; }
.shop-item .fav-toggle {
    position: absolute;
    right: 10px;
    bottom: 10px;
    margin-left: 0;
    z-index: 2;
}

.corner-label {
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.corner-text {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    background: rgba(10, 13, 20, 0.55);
    border: 1px solid rgba(244, 5, 82, 0.25);
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
}

/* Hamburger menu toggle */
.corner-menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    width: 32px;
    height: 32px;
    margin-right: 6px;
    border-radius: 999px;
    background: rgba(10, 13, 20, 0.6);
    border: 1px solid rgba(244, 5, 82, 0.25);
    cursor: pointer;
    transition: all 0.25s ease;
}

.corner-menu-toggle .bar {
    width: 16px;
    height: 2px;
    background: hsl(var(--foreground));
    border-radius: 2px;
}

.corner-menu-toggle:hover {
    box-shadow: 0 0 12px rgba(244, 5, 82, 0.35);
    border-color: rgba(244, 5, 82, 0.5);
}

.corner-menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}
.corner-menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}
.corner-menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* Dropdown menu */
.corner-menu {
    position: absolute;
    top: 44px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    min-width: 180px;
    background: rgba(10, 13, 20, 0.98); /* more opaque background so nothing bleeds through */
    border: 1px solid rgba(244, 5, 82, 0.25);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 0 16px rgba(244, 5, 82, 0.15);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateX(-16px) scale(0.98);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0s linear 0.25s;
    z-index: 400; /* above corner text and icons */
}

.corner-menu.open {
    opacity: 1;
    transform: translateX(0) scale(1);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0s;
}

.corner-menu-item {
    color: hsl(var(--foreground));
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.corner-menu-item:hover {
    background: rgba(244, 5, 82, 0.12);
    color: #f40552;
}

/* Active page highlight in corner menu */
.corner-menu-item.active,
.corner-menu-item[aria-current="page"] {
    background: rgba(244, 5, 82, 0.18);
    color: #f40552;
    font-weight: 700;
}

/* Shop items */
#shop-items {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}
.shop-item {
    margin-top: 0; /* grid has its own spacing */
    cursor: pointer;
}
.shop-item .shop-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.shop-item .shop-item-title {
    font-size: 1.1rem;
    font-weight: 700;
}
.shop-item .shop-item-media img,
.shop-item .shop-item-media video,
.shop-item .shop-item-media iframe {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(244, 5, 82, 0.15);
}
.shop-item .shop-item-media { aspect-ratio: 1 / 1; overflow: hidden; }
.shop-item .shop-item-media img { height: 100%; object-fit: cover; }
.shop-item .shop-item-media iframe { height: 240px; }
.shop-item.collapsed .shop-item-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.25s ease, opacity 0.25s ease;
}
.shop-item.open .shop-item-details {
    max-height: 1200px;
    opacity: 1;
    margin-top: 0.75rem;
}
.shop-item .controls { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 0.5rem; 
}
.shop-item .shop-download[disabled] { opacity: 0.6; cursor: not-allowed; }

/* Prevent content overlapping the fixed footer */
:root {
    --footer-height: 96px;
}

body {
    padding-bottom: calc(var(--footer-height) + 48px);
}

@media (max-width: 480px) {
    :root {
        --footer-height: 112px;
    }
}

/* ---- Rating stars ---- */
.rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    user-select: none;
}
.rating-stars .star {
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    border: none; background: transparent; cursor: pointer;
    color: hsl(var(--muted-foreground));
    transition: color 0.2s ease, transform 0.15s ease;
}
.rating-stars .star::before { content: '★'; font-size: 22px; line-height: 1; }
.rating-stars .star:hover { transform: translateY(-1px) scale(1.05); }
.rating-stars .star.active { color: #f40552; }
.rating-stars .star.hover { color: #f86a94; }
.rating-meta { margin-left: 0.5rem; color: hsl(var(--muted-foreground)); font-size: 0.9rem; }

.shop-item .rating-row { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.modal-details .rating-row { margin-top: 0.75rem; }

/* ---- Home page (index) specific styles ---- */
.home-hero {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.home-card { max-width: 42rem; }

.home-subtext {
    color: hsl(var(--muted-foreground));
    text-align: center;
    font-weight: 500;
}

.decor.orb {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.35;
    animation: float 7s ease-in-out infinite;
}

.decor.orb.one {
    width: 280px; height: 280px;
    top: 12%; left: 8%;
    background: radial-gradient(ellipse at center, rgba(244,5,82,0.45), rgba(244,5,82,0.15) 60%, transparent 70%);
}
.decor.orb.two {
    width: 220px; height: 220px;
    bottom: 10%; right: 10%;
    background: radial-gradient(ellipse at center, rgba(0,212,255,0.4), rgba(0,212,255,0.15) 60%, transparent 70%);
    animation-duration: 8.5s;
}
.decor.orb.three {
    width: 160px; height: 160px;
    top: 65%; left: 15%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.25), rgba(255,255,255,0.08) 60%, transparent 70%);
    animation-duration: 6.5s;
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-6px) translateX(4px); }
    100% { transform: translateY(0) translateX(0); }
}

/* Bottom navigation (mobile) */
@media (max-width: 768px) {
  .bottom-nav {
    position: fixed;
    left: 0; right: 0;
    bottom: calc(var(--footer-height) + 8px);
    z-index: 650;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin: 0 auto;
    max-width: 64rem;
    background: rgba(10, 13, 20, 0.85);
    border: 1px solid rgba(244, 5, 82, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  }
  .bottom-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(244, 5, 82, 0.35);
    background: rgba(10, 13, 20, 0.5);
    color: hsl(var(--foreground));
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .bottom-chip.active {
    color: #f40552;
    background: rgba(244, 5, 82, 0.12);
    border-color: rgba(244, 5, 82, 0.55);
    box-shadow: 0 0 12px rgba(244, 5, 82, 0.25);
  }
}

@media (max-width: 768px) {
  .home-hero { min-height: calc(100vh - 3rem); padding: 1.5rem 1rem; }
  .home-card { max-width: 95vw; }
  .decor.orb.one { width: 180px; height: 180px; left: 2%; }
  .decor.orb.two { width: 160px; height: 160px; right: 4%; }
  .decor.orb.three { width: 120px; height: 120px; left: 8%; top: 60%; }
}

/* ---- Global mobile layout adjustments ---- */
@media (max-width: 1024px) {
  #shop-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  #shop-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-header { padding: 2rem 1.5rem 1rem; }
  .card-content { padding: 1.25rem; }
  .card-title { font-size: clamp(1.6rem, 6vw, 2rem); }
}
@media (max-width: 520px) {
  .corner-links { flex-wrap: wrap; gap: 0.4rem; }
  .corner-link { padding: 0.3rem 0.5rem; }
  .corner-icon, .auth-icon { width: 16px; height: 16px; }
  #shop-items { grid-template-columns: 1fr; }
  .card-content .button, .controls .button { width: 100%; }
  .corner-menu { left: 8px; min-width: 160px; }
}
