/* Import Starborn Font */
@import url('https://fonts.cdnfonts.com/css/starborn');

/* Structural Layout Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fredoka', sans-serif;
    min-height: 100vh;
    background-color: #02050c;
    color: #ffffff;
    overflow-x: hidden;
}

/* --- SYSTEM CANVAS BACKGROUNDS --- */
.bg-environment {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0; 
}

.sky-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; 
    overflow: hidden;
    z-index: 1; 
    background-color: #02050c; 
}

.ocean-horizon {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50vh; 
    background: transparent; 
    overflow: hidden;
    z-index: 2; 
}

/* Page Transition States */
[data-theme="cosmic-green-pink"] .sky-container, [data-theme="discord-space"] .sky-container { height: 100vh; }
[data-theme="cosmic-green-pink"] .ocean-horizon, [data-theme="discord-space"] .ocean-horizon { display: none !important; }

/* Home Nebula Gradients */
[data-theme="horizon"] .galaxy-nebula {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 25%, rgba(155, 81, 224, 0.16) 0%, transparent 50%),
        radial-gradient(circle at 85% 20%, rgba(0, 242, 254, 0.12) 0%, transparent 50%),
        linear-gradient(to bottom, #040814 0%, #0a142c 100%);
}

/* What We Do Nebula Gradients */
[data-theme="cosmic-green-pink"] .galaxy-nebula {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 35%, rgba(236, 72, 153, 0.45) 0%, transparent 60%),
        radial-gradient(circle at 75% 40%, rgba(34, 197, 94, 0.4) 0%, transparent 60%),
        linear-gradient(to bottom, #06020c 0%, #010804 100%);
}

/* New Discord Space Theme Gradients */
[data-theme="discord-space"] .bg-environment {
    background: linear-gradient(to bottom, #1a0b2e 0%, #02050c 100%);
    transition: background 1s ease;
}
[data-theme="discord-space"] .galaxy-nebula {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 40%, rgba(236, 72, 153, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 80% 60%, rgba(34, 197, 94, 0.3) 0%, transparent 60%);
}

/* Yellow Crescent Moon */
.crescent-moon {
    position: absolute;
    top: 40px;
    left: 50px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    box-shadow: -16px 12px 0 0 #f1c40f;
    filter: drop-shadow(0 0 15px rgba(241, 196, 15, 0.6));
    z-index: 3;
}
[data-theme="cosmic-green-pink"] .crescent-moon { display: none; }
[data-theme="discord-space"] .crescent-moon { display: none; }

/* --- HOME PAGE STARS --- */
.star-cluster-field {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffffff;
    border-radius: 50%;
    filter: drop-shadow(0 0 4px #ffffff);
    animation: panoramicHorizontalOrbit 45s linear infinite;
}

@keyframes panoramicHorizontalOrbit {
    0% { transform: translateX(-5vw); opacity: 0; }
    5% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(105vw); opacity: 0; }
}

/* --- DENSE PULSING STARS --- */
.cosmic-dashboard-stars {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

[data-theme="cosmic-green-pink"] .cosmic-dashboard-stars { display: block; }
[data-theme="pricing"] .cosmic-dashboard-stars { display: block; }
[data-theme="discord-space"] .cosmic-dashboard-stars { display: block; }

.dashboard-star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px #ffffff, 0 0 14px rgba(236, 72, 153, 0.9);
    animation: starPulseFlicker 3s infinite ease-in-out;
}

@keyframes starPulseFlicker {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* --- SHOOTING STARS --- */
.cosmic-shooting-star {
    display: none;
    position: absolute;
    top: -100px;
    left: -100px;
    width: 160px;
    height: 4px;
    background: linear-gradient(to right, transparent 0%, rgba(236, 72, 153, 0.6) 40%, #ffffff 100%);
    border-radius: 4px;
    filter: drop-shadow(0 0 12px #ffffff) drop-shadow(0 0 22px #ec4899);
    z-index: 5;
    transform: rotate(45deg);
    transform-origin: right center;
    opacity: 0;
}

[data-theme="cosmic-green-pink"] .cosmic-shooting-star { display: block; }
[data-theme="pricing"] .cosmic-shooting-star { display: block; }
[data-theme="discord-space"] .cosmic-shooting-star { display: block; }

.comet-one { animation: forwardStreakPassOne 6s linear infinite; }
.comet-two { animation: forwardStreakPassTwo 9s linear infinite; animation-delay: 2s; }
.comet-three { animation: forwardStreakPassThree 12s linear infinite; animation-delay: 4.5s; }

@keyframes forwardStreakPassOne {
    0% { transform: translate(0, 0) rotate(45deg); opacity: 0; }
    4% { opacity: 1; }
    35% { transform: translate(1400px, 1400px) rotate(45deg); opacity: 0; }
    100% { transform: translate(1400px, 1400px) rotate(45deg); opacity: 0; }
}
@keyframes forwardStreakPassTwo {
    0% { transform: translate(400px, -100px) rotate(45deg); opacity: 0; }
    4% { opacity: 1; }
    40% { transform: translate(1700px, 1200px) rotate(45deg); opacity: 0; }
    100% { transform: translate(1700px, 1200px) rotate(45deg); opacity: 0; }
}
@keyframes forwardStreakPassThree {
    0% { transform: translate(-200px, 200px) rotate(45deg); opacity: 0; }
    4% { opacity: 1; }
    30% { transform: translate(1200px, 1600px) rotate(45deg); opacity: 0; }
    100% { transform: translate(1200px, 1600px) rotate(45deg); opacity: 0; }
}

/* --- OCEAN SURFACES --- */
.ripple-ocean-surface {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.flat-horizon-base {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: calc(100% - 20px);
    background: #01142e;
    border-top: 1px solid rgba(0, 242, 254, 0.4);
    box-shadow: inset 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.fluid-wave {
    position: absolute;
    left: 0;
    width: 200%; 
    height: 100%;
    background-repeat: repeat-x;
    transform: translateZ(0); 
    will-change: transform;
}

.distant-ripple-layer {
    top: 21px;
    height: 40px;
    z-index: 1;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 40" preserveAspectRatio="none"><path d="M 0,20 Q 25,12 50,20 T 100,20 T 150,20 T 200,20 T 250,20 T 300,20 T 350,20 T 400,20 L 400,40 L 0,40 Z" fill="%23011a3a" opacity="0.6"/><path d="M 0,20 Q 25,12 50,20 T 100,20 T 150,20 T 200,20 T 250,20 T 300,20 T 350,20 T 400,20" fill="none" stroke="%2300f2fe" stroke-width="0.8" stroke-opacity="0.25"/></svg>');
    background-size: 25% 100%;
    animation: detailedOceanDrift 25s linear infinite reverse; 
}

.mid-sea-layer-2 {
    top: 20px;
    z-index: 2;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 200" preserveAspectRatio="none"><path d="M 0,80 Q 125,20 250,80 T 500,80 T 750,80 T 1000,80 L 1000,200 L 0,200 Z" fill="%23002857" opacity="0.85"/><path d="M 0,80 Q 125,20 250,80 T 500,80 T 750,80 T 1000,80" fill="none" stroke="%2300f2fe" stroke-width="1.5" stroke-opacity="0.4"/></svg>');
    background-size: 50% 100%;
    animation: detailedOceanDrift 18s linear infinite;
}

.surface-sea-layer-1 {
    top: 40px;
    z-index: 3;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 200" preserveAspectRatio="none"><path d="M 0,100 Q 125,160 250,100 T 500,100 T 750,100 T 1000,100 L 1000,200 L 0,200 Z" fill="%23001938"/><path d="M 0,100 Q 125,160 250,100 T 500,100 T 750,100 T 1000,100" fill="none" stroke="%2300f2fe" stroke-width="2.5" stroke-opacity="0.65"/></svg>');
    background-size: 50% 100%;
    animation: detailedOceanDrift 12s linear infinite;
}

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

/* --- FOREGROUND LAND SILHOUETTE --- */
.foreground-land-silhouette {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 70px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,120 L0,50 Q100,20 250,60 T600,70 T950,40 T1200,80 L1200,120 Z" fill="%2301050c"/></svg>');
    background-size: 100% 100%;
    z-index: 5;
    filter: drop-shadow(0 -8px 15px rgba(0,0,0,0.9));
}

/* --- PIXEL FISH & SPLASH ANIMATION --- */
.fish-scene {
    position: absolute;
    bottom: 50px; 
    right: 35%;
    z-index: 4;
}

.jumping-fish {
    position: absolute;
    height: 60px;
    image-rendering: pixelated;
    opacity: 0;
    animation: jumpArc 12s infinite cubic-bezier(0.25, 1, 0.5, 1);
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.6));
}

.water-splash {
    position: absolute;
    bottom: -15px;
    width: 60px;
    height: 15px;
    background: rgba(0, 242, 254, 0.4);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
}

.splash-in { left: -10px; animation: splashEffectIn 12s infinite; }
.splash-out { left: 90px; animation: splashEffectOut 12s infinite; }

@keyframes jumpArc {
    0%, 80% { transform: translate(0, 50px) scaleX(-1) rotate(0deg); opacity: 0; }
    81% { transform: translate(0, 50px) scaleX(-1) rotate(0deg); opacity: 1; }
    85% { transform: translate(60px, -140px) scaleX(-1) rotate(45deg); opacity: 1; }
    89% { transform: translate(120px, 50px) scaleX(-1) rotate(120deg); opacity: 1; }
    90%, 100% { transform: translate(120px, 50px) scaleX(-1) rotate(120deg); opacity: 0; }
}

@keyframes splashEffectIn {
    0%, 80% { transform: scale(0); opacity: 0; }
    81% { transform: scale(1); opacity: 0.8; }
    84%, 100% { transform: scale(2); opacity: 0; }
}

@keyframes splashEffectOut {
    0%, 88% { transform: scale(0); opacity: 0; }
    89% { transform: scale(1); opacity: 0.8; }
    92%, 100% { transform: scale(2); opacity: 0; }
}

body:not([data-page="home"]) .fish-scene { display: none; }

/* --- USER INTERFACE OVERLAYS --- */
.content-layer {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10vh;
    min-height: 100vh;
    text-align: center;
    pointer-events: none;
}

header, nav, .split-workspace-layout, #backHomeBtn, #backToMenuBtn, .comment-section, .preorder-card, .socials-container, .socials-bio, .tos-container, .form-card, .admin-dashboard, .pricing-container, .nav-btn, .preorder-btn {
    pointer-events: auto;
}

.gif-container { margin-bottom: 15px; height: 75px; }
.active-pokemon-gif { height: 65px; image-rendering: pixelated; }

header h1 { font-size: 3rem; font-weight: 700; text-shadow: 0 0 20px rgba(255,255,255,0.2); margin-bottom: 4px; }
header h2 { font-size: 1.7rem; color: #a2b7cc; margin-bottom: 6vh; }

.button-grid { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; max-width: 800px; }

.nav-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(0, 242, 254, 0.25);
    backdrop-filter: blur(12px);
    color: #ffffff;
    padding: 12px 26px;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-btn:hover {
    background: rgba(0, 242, 254, 0.15);
    border-color: #00f2fe;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 242, 254, 0.3);
}

.split-workspace-layout { display: flex; gap: 35px; max-width: 950px; width: 100%; margin-top: 20px; text-align: left; padding: 0 20px; }

.text-scroller-card {
    flex: 1.3; background: rgba(8, 2, 15, 0.85); border: 3px solid #ec4899; border-radius: 24px; padding: 35px;
    max-height: 440px; overflow-y: auto; backdrop-filter: blur(20px); box-shadow: 0 0 30px rgba(236, 72, 153, 0.2);
}
.text-scroller-card::-webkit-scrollbar { width: 8px; }
.text-scroller-card::-webkit-scrollbar-thumb { background: #22c55e; border-radius: 10px; }

.text-scroller-card h3 { font-size: 2rem; color: #22c55e; margin-bottom: 15px; }
.text-scroller-card p { font-size: 1.1rem; line-height: 1.6; margin-bottom: 15px; color: #f3f4f6; }

.visual-media-card {
    flex: 0.8; background: rgba(1, 12, 4, 0.85); border: 3px solid #22c55e; border-radius: 24px; padding: 35px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; backdrop-filter: blur(20px); box-shadow: 0 0 30px rgba(34, 197, 94, 0.2);
}
.visual-media-card h3 { font-size: 1.7rem; color: #ec4899; margin-bottom: 25px; }
.mew-display-gif { height: 110px; image-rendering: pixelated; filter: drop-shadow(0 0 15px rgba(236, 72, 153, 0.5)); }

@media (max-width: 850px) { .split-workspace-layout { flex-direction: column; } }

/* ==========================================
   --- PREORDER MAGICAL OCEAN THEME ---
   ========================================== */
[data-theme="preorder"] .bg-environment {
    background: linear-gradient(to bottom, #00f2fe 0%, #4facfe 40%, #006994 100%);
    transition: background 1s ease;
}

[data-theme="preorder"] .sky-container, 
[data-theme="preorder"] .ocean-horizon { 
    display: none !important; 
}

/* CSS Bubbles */
.bubble-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.magical-bubble {
    position: absolute;
    bottom: -50px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.1) 60%, transparent 80%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.3);
    animation: floatUp ease-in infinite;
}

@keyframes floatUp {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-110vh) scale(1.2); opacity: 0; }
}

/* Preorder Center Card (Updated Width for 3-Column Support) */
.preorder-card {
    background: rgba(0, 105, 148, 0.2);
    backdrop-filter: blur(25px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 40px rgba(0, 242, 254, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.2);
    padding: 45px;
    border-radius: 30px;
    text-align: center;
    width: min(1100px, 94vw);
    max-width: 1100px;
    margin: 0 auto;
    color: white;
}

/* Layout Grid for Preorder Menus */
.preorder-section-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: left;
}

@media (max-width: 1024px) {
    .preorder-section-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .preorder-section-grid {
        grid-template-columns: 1fr;
    }
}

.menu-section {
    background: rgba(0, 0, 0, 0.25);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(0, 242, 254, 0.3);
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: inset 0 0 15px rgba(0, 242, 254, 0.1);
}

.menu-section h3 {
    color: #ec4899;
    font-size: 1.4rem;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
    text-align: center;
}

/* Glossy Ocean Pill Buttons */
.preorder-btn {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.5), rgba(79, 172, 254, 0.5));
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 14px 28px;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preorder-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.9), rgba(79, 172, 254, 0.9));
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.7);
}

.preorder-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================
   --- OUR SOCIALS MAGICAL GALAXY THEME ---
   ========================================== */
[data-theme="socials"] .bg-environment {
    background: radial-gradient(circle at top right, #3b0764 0%, #1e1b4b 40%, #02050c 100%);
    transition: background 1s ease;
}

[data-theme="socials"] .sky-container, 
[data-theme="socials"] .ocean-horizon { 
    display: none !important; 
}

/* Galaxy Comets */
.galaxy-comet {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 15px 3px rgba(255, 255, 255, 0.8);
    opacity: 0;
    z-index: 1;
}

.galaxy-comet::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8));
    transform: translateY(-50%);
}

.comet-a { top: 20%; left: -10%; animation: shootComet 8s linear infinite; }
.comet-b { top: 60%; left: -10%; animation: shootComet 12s linear infinite 3s; }
.comet-c { top: 30%; left: -10%; animation: shootComet 10s linear infinite 6s; }

@keyframes shootComet {
    0% { transform: translate(0, 0) rotate(15deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(120vw, 30vh) rotate(15deg); opacity: 0; }
}

/* Socials Layout */
.socials-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    max-width: 900px;
}

.profile-card {
    background: rgba(10, 5, 20, 0.85);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 30px;
    width: 320px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
}

.card-green {
    border: 3px solid #22c55e;
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.3);
}

.card-pink {
    border: 3px solid #ec4899;
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.3);
}

.card-espeon {
    height: 65px;
    image-rendering: pixelated;
    margin-bottom: -10px; 
    z-index: 2;
    position: relative;
}

.profile-img {
    width: 170px; 
    height: 170px; 
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.card-green .profile-img { border: 4px solid #22c55e; }
.card-pink .profile-img { border: 4px solid #ec4899; }

/* Font Setup for Starborn */
.starborn-name {
    font-family: 'Starborn', 'Fredoka', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.card-green .starborn-name { color: #4ade80; text-shadow: 0 0 10px rgba(74, 222, 128, 0.5); }
.card-pink .starborn-name { color: #f472b6; text-shadow: 0 0 10px rgba(244, 114, 182, 0.5); }

/* Glowing Links */
.social-link-btn {
    display: block;
    width: 100%;
    text-decoration: none;
    color: white;
    padding: 10px 0;
    margin-bottom: 12px;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.card-green .social-link-btn {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.5);
}
.card-green .social-link-btn:hover {
    background: rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.6);
}

.card-pink .social-link-btn {
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.5);
}
.card-pink .social-link-btn:hover {
    background: rgba(236, 72, 153, 0.3);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.6);
}

/* Bio Description Box */
.socials-bio {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 25px 40px;
    max-width: 800px;
    line-height: 1.7;
    font-size: 1.15rem;
    color: #e2e8f0;
    margin: 10px auto 30px auto;
    backdrop-filter: blur(10px);
}

/* ==========================================
   --- START TOS PAGE PINK/GREEN THEME ---
   ========================================== */
[data-theme="tos"] .bg-environment {
    background: linear-gradient(135deg, #1b0616 0%, #2a0b22 40%, #061c13 100%);
    transition: background 1s ease;
}

[data-theme="tos"] .galaxy-nebula {
    background: 
        radial-gradient(circle at 20% 30%, rgba(236, 72, 153, 0.35) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(34, 197, 94, 0.3) 0%, transparent 60%);
}

.tos-container {
    background: rgba(10, 5, 20, 0.85);
    backdrop-filter: blur(20px);
    border: 3px solid #22c55e;
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.2), inset 0 0 20px rgba(34, 197, 94, 0.1);
    border-radius: 24px;
    padding: 40px;
    max-width: 900px;
    width: 90%;
    max-height: 70vh;
    overflow-y: auto;
    text-align: left;
    margin-bottom: 30px;
}

/* Custom Scrollbar for TOS */
.tos-container::-webkit-scrollbar { width: 10px; }
.tos-container::-webkit-scrollbar-thumb { background: linear-gradient(to bottom, #ec4899, #22c55e); border-radius: 10px; }

.tos-container h1 { color: #f472b6; font-size: 2.5rem; text-align: center; margin-bottom: 10px; text-shadow: 0 0 15px rgba(244, 114, 182, 0.5); }
.tos-container h2 { color: #4ade80; font-size: 1.5rem; margin-top: 30px; margin-bottom: 15px; border-bottom: 1px solid rgba(74, 222, 128, 0.3); padding-bottom: 5px; }
.tos-container p, .tos-container ul { color: #e2e8f0; font-size: 1.1rem; line-height: 1.7; margin-bottom: 15px; }
.tos-container ul { padding-left: 20px; }
.tos-container li { margin-bottom: 8px; }

/* ==========================================
   --- START FULL SCREEN CIRCLE TRANSITION ---
   ========================================== */
.btn-squish {
    transform: scale(0.85) !important;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.9) !important;
    border-color: #ffffff !important;
    background: rgba(255, 255, 255, 0.4) !important;
}

.transition-star {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px #ec4899, 0 0 20px 4px #00f2fe;
    pointer-events: none;
    opacity: 1;
    animation: starExplode 1.2s cubic-bezier(0.15, 0.85, 0.35, 1) forwards;
}

@keyframes starExplode {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(0) rotate(360deg); opacity: 0; }
}

/* NEW CIRCLE EXPANSION ANIMATION (Speed tweaked to be slow to cover, fast to reveal) */
.transition-circle {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 250vmax; /* Ensures the circle completely covers any screen size */
    height: 250vmax;
    z-index: 999999; /* Forces the circle to render ON TOP of everything */
    pointer-events: none;
    background: radial-gradient(circle, 
        rgba(236, 72, 153, 1) 0%, 
        rgba(168, 85, 247, 1) 50%, 
        rgba(0, 242, 254, 1) 100%
    );
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.transition-circle.active {
    /* 2.2s total duration allowing a slow start and a quick finish */
    animation: expandCircleTransition 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes expandCircleTransition {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    5% { opacity: 1; transform: translate(-50%, -50%) scale(0.02); }
    55% { transform: translate(-50%, -50%) scale(1); opacity: 1; } /* Expands slowly to cover screen */
    70% { transform: translate(-50%, -50%) scale(1); opacity: 1; } /* Holds briefly while page swaps */
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; } /* Fades out very quickly */
}

/* Confetti Effect */
.confetti {
    position: fixed;
    top: -10px;
    width: 10px;
    height: 20px;
    z-index: 999999;
    animation: confettiFall 3s linear forwards;
}

@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ==========================================
   --- START FORMS & ADMIN CSS   ---
   ========================================== */
.form-card {
    background: rgba(10, 5, 20, 0.85);
    backdrop-filter: blur(20px);
    border: 3px solid #00f2fe;
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.2), inset 0 0 20px rgba(236, 72, 153, 0.1);
    border-radius: 24px;
    padding: 40px;
    max-width: 700px;
    width: 90%;
    max-height: 75vh;
    overflow-y: auto;
    text-align: left;
    margin-bottom: 20px;
}

.form-card::-webkit-scrollbar { width: 8px; }
.form-card::-webkit-scrollbar-thumb { background: linear-gradient(to bottom, #00f2fe, #ec4899); border-radius: 10px; }

.form-card h1 { color: #ffffff; text-shadow: 0 0 15px #00f2fe; margin-bottom: 10px; font-size: 2.2rem; text-align: center; }
.form-card p.form-desc { color: #a2b7cc; text-align: center; margin-bottom: 25px; font-size: 1.1rem; }

.form-group { margin-bottom: 20px; display: flex; flex-direction: column; }
.form-group label { color: #e2e8f0; margin-bottom: 8px; font-weight: 500; font-size: 1.05rem; }
.form-group label span { color: #ec4899; }

.form-input, .form-select, .form-textarea {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 242, 254, 0.4);
    color: white;
    padding: 12px 15px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.4);
    background: rgba(0, 0, 0, 0.6);
}

.form-select option { background: #0a0514; color: white; }

.checkbox-group { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; margin-bottom: 25px; }
.checkbox-group input { margin-top: 5px; cursor: pointer; }
.checkbox-group label { font-size: 0.9rem; color: #a2b7cc; cursor: pointer; }

/* Admin Dashboard Styles */
.admin-dashboard {
    width: 95%; max-width: 1200px;
    display: flex; flex-direction: column; gap: 20px;
}
.admin-filters {
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px;
}
.admin-card {
    background: rgba(10, 18, 38, 0.9);
    border: 2px solid #a855f7;
    border-radius: 16px;
    padding: 20px;
    text-align: left;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.admin-card h3 { color: #00f2fe; font-size: 1.3rem; grid-column: span 2; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px;}
.admin-detail { color: #e2e8f0; font-size: 0.95rem; }
.admin-detail strong { color: #f472b6; }
.admin-actions { grid-column: span 2; display: flex; gap: 10px; margin-top: 10px; }

/* ==========================================
   --- START PRICING SHEET STYLE          ---
   ========================================== */
[data-theme="pricing"] .bg-environment {
    background: radial-gradient(circle at center, #1e0a29 0%, #02050c 100%);
    transition: background 1s ease;
}

[data-theme="pricing"] .sky-container, 
[data-theme="pricing"] .ocean-horizon { 
    display: none !important; 
}

.pricing-container {
    background: rgba(10, 5, 20, 0.85);
    backdrop-filter: blur(20px);
    border: 3px solid #a855f7;
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.3), inset 0 0 20px rgba(0, 242, 254, 0.1);
    border-radius: 24px;
    padding: 40px;
    max-width: 800px;
    width: 90%;
    max-height: 75vh;
    overflow-y: auto;
    color: white;
    text-align: left;
    margin-bottom: 20px;
}

.pricing-container::-webkit-scrollbar { width: 8px; }
.pricing-container::-webkit-scrollbar-thumb { background: linear-gradient(to bottom, #a855f7, #00f2fe); border-radius: 10px; }

.pricing-container h1 { color: #00f2fe; font-size: 2.5rem; text-align: center; margin-bottom: 10px; text-shadow: 0 0 15px rgba(0, 242, 254, 0.5); }
.pricing-container p.subtitle { color: #a2b7cc; text-align: center; font-size: 1.1rem; margin-bottom: 30px; }

.pricing-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    border-left: 4px solid #ec4899;
}

.pricing-section h2 { color: #ec4899; font-size: 1.6rem; margin-bottom: 15px; }
.pricing-section h3 { color: #22c55e; font-size: 1.2rem; margin-top: 15px; margin-bottom: 8px; }
.pricing-section p { color: #e2e8f0; font-size: 1.05rem; line-height: 1.6; margin-bottom: 10px; }
.pricing-section ul { padding-left: 20px; margin-bottom: 15px; color: #e2e8f0; }
.pricing-section li { margin-bottom: 6px; }

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-top: 10px; }
.price-item { display: flex; justify-content: space-between; border-bottom: 1px dotted rgba(255,255,255,0.2); padding-bottom: 5px; }
.price-item span:first-child { color: #e2e8f0; }
.price-item span:last-child { color: #00f2fe; font-weight: bold; }

/* Special Glowing Pricing Button */
.pricing-btn-glow {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(236, 72, 153, 0.4));
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5), inset 0 0 10px rgba(236, 72, 153, 0.3);
    animation: glowPulseBtn 2s infinite alternate;
}

.pricing-btn-glow:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.8), rgba(236, 72, 153, 0.8));
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.7), inset 0 0 15px rgba(255, 255, 255, 0.5);
}

@keyframes glowPulseBtn {
    0% { box-shadow: 0 0 15px rgba(168, 85, 247, 0.5); }
    100% { box-shadow: 0 0 25px rgba(236, 72, 153, 0.8); border-color: #fbcfe8; }
}

/* ==========================================
   --- GALLERY & PREMADE IMAGE CARDS ---
   ========================================== */

/* Horizon Tide Gallery Homepage Button Highlight */
.btn-pink-highlight {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.5), rgba(168, 85, 247, 0.5)) !important;
    border: 2px solid rgba(251, 207, 232, 0.8) !important;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.4) !important;
    font-size: 1.25rem !important;
    padding: 16px 30px !important;
    animation: glowPulsePink 3s infinite alternate !important;
    color: white !important;
    border-radius: 50px !important;
}

.btn-pink-highlight:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.8), rgba(168, 85, 247, 0.8)) !important;
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.7) !important;
    transform: translateY(-4px) scale(1.02) !important;
    border-color: #ffffff !important;
}

@keyframes glowPulsePink {
    0% { box-shadow: 0 0 15px rgba(236, 72, 153, 0.4); }
    100% { box-shadow: 0 0 25px rgba(236, 72, 153, 0.8); }
}

/* Gallery Filters */
.filter-btn-group {
    display: flex; gap: 15px; justify-content: center; margin-bottom: 25px; flex-wrap: wrap;
}
.filter-btn {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 242, 254, 0.4);
    color: white; padding: 10px 24px; border-radius: 20px; cursor: pointer;
    font-family: inherit; transition: 0.3s ease; font-size: 1.05rem;
}
.filter-btn.active, .filter-btn:hover {
    background: rgba(0, 242, 254, 0.25); border-color: #00f2fe; box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}

/* Image Grids */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 25px;
    margin-bottom: 25px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 15px;
    padding-left: 5px;
}

.gallery-grid::-webkit-scrollbar { width: 10px; }
.gallery-grid::-webkit-scrollbar-thumb { background: linear-gradient(to bottom, #00f2fe, #ec4899); border-radius: 10px; }

/* Floating underwater feeling for gallery cards */
@keyframes subtleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Standard Gallery Card */
.gallery-card {
    background: rgba(10, 5, 20, 0.75);
    border: 2px solid rgba(0, 242, 254, 0.5);
    border-radius: 18px;
    padding: 15px;
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    animation: subtleFloat 6s ease-in-out infinite;
    height: 300px; 
    overflow: hidden;
}

.gallery-card:nth-child(even) { animation-delay: 1.5s; }
.gallery-card:nth-child(3n) { animation-delay: 3s; }

.gallery-card:hover {
    animation-play-state: paused;
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 242, 254, 0.5), inset 0 0 20px rgba(255,255,255,0.15);
    border-color: #ffffff;
    z-index: 2;
}

/* Specific Premade Card (taller for contain images) */
.premade-card {
    background: rgba(10, 5, 20, 0.75);
    border: 2px solid rgba(0, 242, 254, 0.5);
    border-radius: 18px;
    padding: 15px;
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 340px;
    overflow: hidden;
}
.premade-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 242, 254, 0.5), inset 0 0 20px rgba(255,255,255,0.15);
    border-color: #ffffff;
    z-index: 2;
}

/* Strict Image Sizing Constraints */
.gallery-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    background: rgba(0,0,0,0.3);
}

.premade-img {
    width: 100%;
    height: 220px;
    max-height: 220px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
}

.gallery-card p, .premade-card p {
    font-size: 1rem;
    color: #e2e8f0;
    margin-bottom: 5px;
    text-align: center;
    letter-spacing: 0.5px;
}