/*==========================================================
  CUPCAKE CONNECT
  CUPCAKE TOWN v1.1
  CINEMATIC EDITION
  PART 1 OF 3

  Author: OpenAI + James Clark
==========================================================*/



/*==========================================================
  1. RESET
==========================================================*/

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

html{
    scroll-behavior:smooth;
}

body{
    overflow-x:hidden;
}



/*==========================================================
  2. ROOT VARIABLES
==========================================================*/

:root{

/* Sky */

--sky-top:#6ebcff;
--sky-mid:#8fd2ff;
--sky-bottom:#d9f4ff;

/* Sunrise */

--sun-core:#fff9c4;
--sun-glow:#ffd76b;
--sun-light:#ffe9a6;

/* Mountains */

--mountain-back:#9db4c9;
--mountain-mid:#7996ad;
--mountain-front:#58758b;

/* Grass */

--grass-light:#6fd45d;
--grass-main:#4fbb49;
--grass-dark:#358c32;

/* Flowers */

--flower-pink:#ff9ec8;
--flower-purple:#b996ff;
--flower-yellow:#ffe36d;
--flower-blue:#7fd8ff;

/* Buildings */

--building-cream:#fff8eb;
--building-pink:#ffd9ea;
--building-blue:#d8f3ff;
--building-green:#e5ffd8;
--building-yellow:#fff4bf;

/* Shadows */

--shadow-small:
0 6px 18px rgba(0,0,0,.12);

--shadow-medium:
0 12px 35px rgba(0,0,0,.18);

--shadow-large:
0 24px 60px rgba(0,0,0,.24);

/* Text */

--text-dark:#2d3748;
--text-light:#ffffff;

/* Animation */

--speed-fast:.3s;
--speed-normal:.6s;
--speed-slow:1.4s;

}



/*==========================================================
  3. BODY
==========================================================*/

body{

    font-family:
    "Segoe UI",
    Arial,
    sans-serif;

    color:var(--text-dark);

    background:
    linear-gradient(
        to bottom,
        var(--sky-top) 0%,
        var(--sky-mid) 35%,
        var(--sky-bottom) 70%,
        #b7e79f 100%
    );

    min-height:100vh;

    position:relative;

}



/*==========================================================
  4. CINEMATIC SKY
==========================================================*/

body::before{

    content:"";

    position:fixed;

    inset:0;

    background:

    radial-gradient(
        circle at 50% 15%,
        rgba(255,255,255,.45),
        transparent 40%
    ),

    radial-gradient(
        circle at 80% 10%,
        rgba(255,220,140,.30),
        transparent 45%
    ),

    radial-gradient(
        circle at 20% 5%,
        rgba(255,255,255,.28),
        transparent 35%
    );

    pointer-events:none;

    z-index:-5;

}



/*==========================================================
  5. SUN
==========================================================*/

body::after{

    content:"";

    position:fixed;

    width:220px;
    height:220px;

    border-radius:50%;

    top:60px;
    right:100px;

    background:
    radial-gradient(

        circle,

        var(--sun-core) 0%,

        var(--sun-glow) 45%,

        rgba(255,220,120,.35) 70%,

        transparent 100%

    );

    filter:blur(4px);

    animation:

    sunriseGlow 8s ease-in-out infinite alternate;

    z-index:-4;

}
body::after {
    display: none !important;
}


/*==========================================================
  6. MAIN LAYOUT
==========================================================*/

main{

    width:min(1300px,92%);

    margin:auto;

    position:relative;

    z-index:5;

}



/*==========================================================
  7. HEADER
==========================================================*/

.town-header{

    text-align:center;

    padding:

    70px
    20px
    40px;

}

.town-header h1{

    font-size:clamp(2.8rem,6vw,5.3rem);

    color:white;

    text-shadow:

    0 4px 18px rgba(0,0,0,.18),

    0 10px 45px rgba(255,220,100,.55);

    animation:

    floatLogo 5s ease-in-out infinite;

}

.town-subtitle{

    margin-top:18px;

    font-size:1.25rem;

    color:white;

    text-shadow:

    0 2px 12px rgba(0,0,0,.18);

}



/*==========================================================
  8. SWEET SQUARE
==========================================================*/

.sweet-square{

    margin:

    30px auto 60px;

    padding:

    30px;

    border-radius:28px;

    background:

    rgba(255,255,255,.55);

    backdrop-filter:

    blur(18px);

    box-shadow:

    var(--shadow-large);

}

.sweet-square h2{

    text-align:center;

    margin-bottom:25px;

    font-size:2rem;

}

.square-news{

    display:grid;

    grid-template-columns:

    repeat(auto-fit,minmax(240px,1fr));

    gap:22px;

}



/*==========================================================
  9. NEWS CARDS
==========================================================*/

.news-card{

    background:white;

    padding:22px;

    border-radius:22px;

    box-shadow:

    var(--shadow-medium);

    transition:

    transform var(--speed-fast),

    box-shadow var(--speed-fast);

}

.news-card:hover{

    transform:

    translateY(-8px);

    box-shadow:

    0 18px 45px rgba(0,0,0,.20);

}



/*==========================================================
  10. TOWN MAP
==========================================================*/

.town-map{

    display:grid;

    grid-template-columns:

    repeat(auto-fit,minmax(250px,1fr));

    gap:30px;

    padding-bottom:90px;

}
/*==========================================================
  11. TOWN BUILDINGS
==========================================================*/

.town-building{

    position:relative;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    text-align:center;

    text-decoration:none;

    color:var(--text-dark);

    min-height:250px;

    padding:28px;

    border-radius:32px;

    overflow:hidden;

    background:linear-gradient(
        to bottom,
        rgba(255,255,255,.96),
        rgba(248,250,255,.92)
    );

    box-shadow:var(--shadow-large);

    transition:
        transform .45s ease,
        box-shadow .45s ease,
        filter .45s ease;

}

/*==========================================================
  BUILDING LIGHT
==========================================================*/

.town-building::before{

    content:"";

    position:absolute;

    inset:0;

    background:

    linear-gradient(
        140deg,
        rgba(255,255,255,.70),
        transparent 40%,
        rgba(255,255,255,.15)
    );

    pointer-events:none;

}

.town-building::after{

    content:"";

    position:absolute;

    left:-120%;

    top:0;

    width:60%;

    height:100%;

    background:

    linear-gradient(
        to right,
        transparent,
        rgba(255,255,255,.45),
        transparent
    );

    transition:1s;

}

.town-building:hover::after{

    left:160%;

}

.town-building:hover{

    transform:
        translateY(-14px)
        scale(1.03);

    box-shadow:
        0 28px 60px rgba(0,0,0,.24);

    filter:brightness(1.02);

}

/*==========================================================
  BUILDING EMOJIS
==========================================================*/

.emoji{

    font-size:4.3rem;

    margin-bottom:18px;

    animation:

    buildingFloat 4s ease-in-out infinite;

}

.town-building h3{

    font-size:1.55rem;

    margin-bottom:12px;

}

.town-building p{

    line-height:1.7;

    font-size:1rem;

    opacity:.82;

}

/*==========================================================
  BUILDING COLORS
==========================================================*/

.home{

    background:
    linear-gradient(
        to bottom,
        #fff7df,
        #ffeac0
    );

}

.members{

    background:
    linear-gradient(
        to bottom,
        #eaf7ff,
        #d7f0ff
    );

}

.match{

    background:
    linear-gradient(
        to bottom,
        #ffe3ef,
        #ffd0e3
    );

}

.chat{

    background:
    linear-gradient(
        to bottom,
        #edf8ff,
        #dff2ff
    );

}

.bakery{

    background:
    linear-gradient(
        to bottom,
        #fff0f8,
        #ffdff0
    );

}

.gifts{

    background:
    linear-gradient(
        to bottom,
        #fff5db,
        #ffeab5
    );

}

.coffee{

    background:
    linear-gradient(
        to bottom,
        #f8efe7,
        #ead8c8
    );

}

.arcade{

    background:
    linear-gradient(
        to bottom,
        #ece8ff,
        #dad3ff
    );

}

.music{

    background:
    linear-gradient(
        to bottom,
        #e8fff7,
        #d5fff0
    );

}

/*==========================================================
  FOOTER
==========================================================*/

.town-footer{

    text-align:center;

    padding:70px 20px;

    color:white;

    text-shadow:
        0 2px 8px rgba(0,0,0,.20);

}

/*==========================================================
  FLOATING CLOUD LAYERS
==========================================================*/

.cloud{

    position:absolute;

    width:220px;

    height:70px;

    background:white;

    border-radius:100px;

    opacity:.75;

    filter:blur(1px);

}

.cloud::before{

    content:"";

    position:absolute;

    width:90px;

    height:90px;

    left:25px;

    top:-35px;

    border-radius:50%;

    background:white;

}

.cloud::after{

    content:"";

    position:absolute;

    width:120px;

    height:120px;

    right:20px;

    top:-50px;

    border-radius:50%;

    background:white;

}

/*==========================================================
  DECORATIVE GRASS
==========================================================*/

.grass{

    position:absolute;

    bottom:0;

    width:100%;

    height:180px;

    background:

    linear-gradient(
        to bottom,
        var(--grass-light),
        var(--grass-main),
        var(--grass-dark)
    );

}

/*==========================================================
  FLOWERS
==========================================================*/

.flower{

    position:absolute;

    width:12px;

    height:12px;

    border-radius:50%;

    background:var(--flower-pink);

    box-shadow:
        16px 0 var(--flower-yellow),
        34px 8px var(--flower-blue),
        52px -4px var(--flower-purple);

}

/*==========================================================
  ANIMATIONS
==========================================================*/

@keyframes sunriseGlow{

    from{

        transform:
            scale(.96);

        opacity:.90;

    }

    to{

        transform:
            scale(1.08);

        opacity:1;

    }

}

@keyframes floatLogo{

    0%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-8px);

    }

    100%{

        transform:translateY(0);

    }

}

@keyframes buildingFloat{

    0%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-6px);

    }

    100%{

        transform:translateY(0);

    }

}

@keyframes cloudDrift{

    from{

        transform:translateX(-250px);

    }

    to{

        transform:translateX(calc(100vw + 300px));

    }

}

/*==========================================================
  RESPONSIVE
==========================================================*/

@media(max-width:900px){

.town-header{

padding-top:50px;

}

.town-building{

min-height:220px;

}

.emoji{

font-size:3.4rem;

}

}

@media(max-width:600px){

.town-map{

grid-template-columns:1fr;

}

.town-building{

min-height:200px;

padding:22px;

}

.town-header h1{

font-size:2.8rem;

}

.town-subtitle{

font-size:1rem;

}

}

/*==========================================================
  CUPCAKE CONNECT
  CUPCAKE TOWN v1.1
  CINEMATIC EDITION
  PART 3 OF 3

  Final Polish
  Future Animation Hooks
==========================================================*/



/*==========================================================
  FLOATING PARTICLES
==========================================================*/

.particle{

    position:absolute;

    width:6px;
    height:6px;

    border-radius:50%;

    background:white;

    opacity:.75;

    pointer-events:none;

    animation:
        sparkle 8s linear infinite;

}

.particle.gold{

    background:#ffe680;
}

.particle.pink{

    background:#ffd6ef;
}

.particle.blue{

    background:#d8f5ff;
}



/*==========================================================
  CINEMATIC GLOW
==========================================================*/

.soft-glow{

    position:absolute;

    inset:0;

    pointer-events:none;

    background:

    radial-gradient(
        circle at center,
        rgba(255,255,255,.10),
        transparent 70%
    );

}



/*==========================================================
  LIGHT RAYS
==========================================================*/

.light-rays{

    position:absolute;

    top:0;

    left:50%;

    transform:translateX(-50%);

    width:900px;

    height:700px;

    pointer-events:none;

    opacity:.25;

    background:

    conic-gradient(

        from 180deg,

        transparent,

        rgba(255,255,255,.25),

        transparent,

        rgba(255,255,255,.12),

        transparent

    );

    filter:blur(40px);

}



/*==========================================================
  GLASS PANELS
==========================================================*/

.glass{

    background:

    rgba(255,255,255,.42);

    backdrop-filter:

    blur(20px);

    border:

    1px solid rgba(255,255,255,.35);

}



/*==========================================================
  BUTTON STYLE
==========================================================*/

.town-button{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:

    16px 34px;

    border:none;

    border-radius:999px;

    text-decoration:none;

    font-weight:700;

    color:white;

    background:

    linear-gradient(

        135deg,

        #ff7eb7,

        #ff5b99

    );

    box-shadow:

        0 12px 30px rgba(255,91,153,.35);

    transition:

        transform .35s ease,

        box-shadow .35s ease;

}

.town-button:hover{

    transform:

        translateY(-4px);

    box-shadow:

        0 18px 40px rgba(255,91,153,.45);

}



/*==========================================================
  BUILDING WINDOW GLOW
==========================================================*/

.window-glow{

    position:absolute;

    width:18px;

    height:24px;

    border-radius:4px;

    background:#fff3b0;

    box-shadow:

        0 0 18px rgba(255,243,176,.75);

}



/*==========================================================
  FUTURE FOUNTAIN
==========================================================*/

.fountain{

    position:relative;

    width:170px;

    height:170px;

    margin:auto;

    border-radius:50%;

    background:

    radial-gradient(

        circle,

        #9be7ff,

        #6fd0ff,

        #3caeff

    );

    overflow:hidden;

}

.fountain::before{

    content:"";

    position:absolute;

    left:50%;

    top:20px;

    transform:translateX(-50%);

    width:8px;

    height:90px;

    border-radius:20px;

    background:white;

    opacity:.75;

    animation:

        fountainWater 1.8s linear infinite;

}



/*==========================================================
  FUTURE WEATHER
==========================================================*/

/* Rain */
.rain-drop{}

/* Snow */
.snowflake{}

/* Fog */
.fog-layer{}

/* Lightning */
.lightning-flash{}

/* Rainbow */
.rainbow{}



/*==========================================================
  FUTURE SEASONS
==========================================================*/

/* Spring */
.spring-theme{}

/* Summer */
.summer-theme{}

/* Autumn */
.autumn-theme{}

/* Winter */
.winter-theme{}



/*==========================================================
  THREE.JS SUPPORT
==========================================================*/

/*
Future files

three.min.js
town3d.js
camera.js
birds.js
weather.js
lighting.js
seasons.js

This stylesheet has been organized so the
future 3D environment can reuse colors,
lighting, and spacing without rewriting
the existing design.
*/



/*==========================================================
  ANIMATIONS
==========================================================*/

@keyframes sparkle{

    0%{

        transform:

            translateY(0)
            scale(.4);

        opacity:0;

    }

    20%{

        opacity:1;

    }

    80%{

        opacity:.9;

    }

    100%{

        transform:

            translateY(-180px)
            scale(1.5);

        opacity:0;

    }

}

@keyframes fountainWater{

    0%{

        height:40px;

        opacity:.4;

    }

    50%{

        height:95px;

        opacity:1;

    }

    100%{

        height:40px;

        opacity:.4;

    }

}



/*==========================================================
  PERFORMANCE
==========================================================*/

.town-building,
.news-card,
.town-button,
.cloud,
.emoji{

    will-change:

        transform;

}



/*==========================================================
  ACCESSIBILITY
==========================================================*/

@media (prefers-reduced-motion: reduce){

*{

animation:none !important;

transition:none !important;

scroll-behavior:auto !important;

}

}



/*==========================================================
  END OF FILE

  Cupcake Connect
  Cupcake Town v1.1
  Cinematic Edition

  Next Milestone:
      - Animated SVG scenery
      - Living trees
      - Flying birds
      - Butterflies
      - Fountain
      - Camera entrance
      - Day/Night cycle
      - Seasonal themes
      - Three.js integration

==========================================================*/

/* ==========================================
   CUPCAKE TOWN MAP
========================================== */

html,
body{
    margin:0;
    padding:0;
    width:100%;
    height:100%;
    overflow-x: hidden;
overflow-y: auto;
}

#town-container{

    width:100vw;
    height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    background:#87CEEB;

}

#town-map{

    width:100%;

    height:100%;

    object-fit:cover;

    user-select:none;

    -webkit-user-drag:none;

    display:block;

}
/* Clickable My Home */

#town-container{
    position: relative;
}

#home-link{
    position: absolute;

    left: 14%;
    top: 18%;

    width: 16%;
    height: 26%;

    cursor: pointer;

    border-radius: 20px;
}

#home-link:hover{
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 25px rgba(255,255,255,0.8);
}
/* ===========================
   CUPCAKE TOWN HOTSPOTS
=========================== */

#members-link,
#matches-link,
#messages-link,
#bakery-link,
#gift-link,
#arcade-link,
#music-link{
    position:absolute;
    cursor:pointer;
    border-radius:18px;
    transition:all .25s ease;
}

#members-link:hover,
#matches-link:hover,
#messages-link:hover,
#bakery-link:hover,
#gift-link:hover,
#arcade-link:hover,
#music-link:hover{
    background:rgba(255,255,255,.15);
    box-shadow:0 0 20px rgba(255,255,255,.8);
}

/* Members Plaza */
#members-link{
    left:0%;
    top:0%;
    width:100%;
    height:100%;
}

/* Match Park */
#matches-link{
    left:6%;
    top:40%;
    width:17%;
    height:20%;
}

/* Chat Café */
#messages-link{
    left:71%;
    top:37%;
    width:15%;
    height:18%;
}

/* Bakery */
#bakery-link{
    left:0%;
    top:0%;
    width:0%;
    height:0%;
}
/* Gift Shop */
#gift-link{
    left:39%;
    top:57%;
    width:14%;
    height:18%;
}

/* Arcade */
#arcade-link{
    left:61%;
    top:59%;
    width:14%;
    height:18%;
}

/* Music Hall */
#music-link{
    left:80%;
    top:58%;
    width:13%;
    height:18%;
}
/* ==========================
   WELCOME BANNER
========================== */

#welcome-banner{

    position:absolute;

    top:20px;

    left:50%;

    transform:translateX(-50%);

    background:rgba(255,255,255,.92);

    padding:18px 28px;

    border-radius:18px;

    text-align:center;

    box-shadow:0 10px 25px rgba(0,0,0,.25);

    z-index:999;
}

#welcome-banner h1{

    margin:0;

    font-size:30px;

}

#town-status{

    margin-top:8px;

    font-size:18px;

}
/* ===========================
   CUPCAKE TOWN ANIMATIONS
=========================== */

#town-map{
    animation: townFade 1s ease;
}

@keyframes townFade{
    from{
        opacity:0;
        transform:scale(1.02);
    }
    to{
        opacity:1;
        transform:scale(1);
    }
}

#welcome-banner{
    animation: bannerDrop .8s ease;
}

@keyframes bannerDrop{
    from{
        opacity:0;
        transform:translateY(-40px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

.hotspot{
    transition:.25s;
}

.hotspot:hover{
    transform:scale(1.08);
    filter:drop-shadow(0 0 15px pink);
}
.sparkle{

position:fixed;

width:8px;
height:8px;

border-radius:50%;

background:white;

box-shadow:
0 0 12px white,
0 0 25px pink;

pointer-events:none;

animation:sparkle 1.8s linear forwards;

z-index:9999;

}

@keyframes sparkle{

0%{

opacity:0;
transform:scale(.3);

}

25%{

opacity:1;

}

100%{

opacity:0;

transform:
translateY(-60px)
scale(2);

}

}
/* Walking Cupcake */

.cupcakeWalker{
    position:absolute;
    width:40px;
    height:40px;
    font-size:36px;
    pointer-events:none;
    z-index:50;
    animation:walkAcross 22s linear infinite;
}

@keyframes walkAcross{

    0%{
        left:-60px;
        top:72%;
    }

    25%{
        top:70%;
    }

    50%{
        top:74%;
    }

    75%{
        top:71%;
    }

    100%{
        left:105%;
        top:73%;
    }

}
/* =========================
   CHAT PHOTO STYLES
========================= */

.chatPhoto{
    max-width:280px;
    max-height:280px;
    width:auto;
    height:auto;
    border-radius:16px;
    object-fit:cover;
    display:block;
    margin-top:6px;
}

.chatAvatar{
    width:42px;
    height:42px;
    border-radius:50%;
    object-fit:cover;
}
/* =========================
   CHAT PHOTO FIX
========================= */

.photoBubble{
    display:flex;
    align-items:flex-start;
    gap:12px;
}

.chatAvatar{
    width:45px;
    height:45px;
    min-width:45px;
    border-radius:50%;
    object-fit:cover;
}

.chatPhoto{
    width:auto;
    max-width:100%;
    height:auto;
    border-radius:16px;
    display:block;
}

.messageContent{
    display:flex;
    flex-direction:column;
}
/* ==========================
   🧁 Project Cappy
========================== */


#cappy{
    width:280px;
    cursor:pointer;
    transition:.3s;
    animation:cappyBounce 3s infinite;
}

#cappy:hover{
    transform:scale(1.08);
}

#cappyBubble{
    max-width:280px;
    background:white;
    color:#333;
    padding:15px;
    border-radius:18px;
    font-size:15px;
    font-weight:600;
    box-shadow:0 10px 25px rgba(0,0,0,.25);
    position:relative;
    line-height:1.5;
}

#cappyBubble::after{
    content:"";
    position:absolute;
    right:-12px;
    bottom:25px;
    border-width:12px 0 12px 12px;
    border-style:solid;
    border-color:transparent transparent transparent white;
}

@keyframes cappySlideIn{
    from{
        transform:translateX(250px);
        opacity:0;
    }
    to{
        transform:translateX(0);
        opacity:1;
    }
}

@keyframes cappyBounce{
    0%,100%{
        transform:translateY(0);
    }
    50%{
        transform:translateY(-8px);
    }
}
/* ==========================
   🧁 Cappy Chat Window
========================== */

.hidden{
    display:none;
}

#cappyChat{
    position:fixed;
    bottom:190px;
    right:20px;
    width:340px;
    max-height:520px;
    background:#1f1f2e;
    color:white;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 15px 40px rgba(0,0,0,.45);
    z-index:10000;
    border:2px solid #ff69b4;
}

.cappyHeader{
    background:#ff69b4;
    color:white;
    padding:15px;
    font-size:20px;
    font-weight:bold;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

#closeCappy{
    background:none;
    border:none;
    color:white;
    font-size:20px;
    cursor:pointer;
}

#cappyMessages{
    padding:15px;
    height:220px;
    overflow-y:auto;
}

.cappyMessage{
    background:#2d2d44;
    padding:12px;
    border-radius:14px;
    margin-bottom:12px;
    line-height:1.5;
}

.cappyButtons{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    padding:15px;
}

.cappyAction{
    border:none;
    background:#ff69b4;
    color:white;
    padding:12px;
    border-radius:12px;
    cursor:pointer;
    font-weight:bold;
    transition:.25s;
}

.cappyAction:hover{
    transform:scale(1.05);
}
.cappyInputArea{
    display:flex;
    gap:10px;
    padding:15px;
    border-top:1px solid #333;
    background:#181824;
}

#cappyInput{
    flex:1;
    border:none;
    border-radius:12px;
    padding:12px;
    font-size:15px;
}

#sendToCappy{
    border:none;
    background:#ff69b4;
    color:white;
    padding:12px 18px;
    border-radius:12px;
    cursor:pointer;
    font-weight:bold;
}
/* ===== CAPPY MASCOT ===== */



#cappy {
    width: 230px;
    height: auto;
    display: block;
    border-radius: 20px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.25));
    animation: cappyFloat 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

#cappy:hover {
    transform: scale(1.05);
}

#cappyBubble {
    position: absolute;
    bottom: 245px;
    right: 10px;
    width: 280px;
    background: white;
    color: #444;
    padding: 12px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-size: 14px;
    width: 280px;
max-width: 280px;
word-wrap: break-word;
white-space: normal;
}

@keyframes cappyFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}
/* ===========================================
   CAPPY MAGIC EFFECTS
=========================================== */


#cappy{
    width:230px;
    animation:
        cappyFloat 4s ease-in-out infinite;
    filter:drop-shadow(0 10px 20px rgba(255,105,180,.35));
}

/* Floating Hearts */

#cappyContainer::before,
#cappyContainer::after{
    content:"💖";
    position:absolute;
    font-size:28px;
    opacity:.8;
    pointer-events:none;
    animation:heartRise 5s linear infinite;
}

#cappyContainer::before{
    left:20px;
    bottom:40px;
    animation-delay:0s;
}

#cappyContainer::after{
    right:30px;
    bottom:10px;
    animation-delay:2.5s;
}

/* Sparkles */

#cappySparkles{
    position:absolute;
    inset:0;
    pointer-events:none;
}

#cappySparkles::before,
#cappySparkles::after{
    content:"✨";
    position:absolute;
    font-size:20px;
    animation:sparkle 2.5s ease-in-out infinite;
}

#cappySparkles::before{
    top:40px;
    left:25px;
}

#cappySparkles::after{
    top:90px;
    right:30px;
    animation-delay:1.2s;
}

/* Animations */

@keyframes cappyFloat{

    0%{
        transform:translateY(0px);
    }

    50%{
        transform:translateY(-10px);
    }

    100%{
        transform:translateY(0px);
    }

}

@keyframes heartRise{

    0%{
        transform:translateY(0) scale(.8);
        opacity:0;
    }

    20%{
        opacity:1;
    }

    100%{
        transform:translateY(-170px) scale(1.4) rotate(15deg);
        opacity:0;
    }

}

@keyframes sparkle{

    0%,100%{
        transform:scale(.5) rotate(0deg);
        opacity:.2;
    }

    50%{
        transform:scale(1.4) rotate(25deg);
        opacity:1;
    }

}
/* ==========================
   PROFILE PAGE
========================== */

.profile-card{
    max-width:500px;
    margin:50px auto;
    background:#ffffff;
    padding:30px;
    border-radius:20px;
    box-shadow:0 12px 35px rgba(0,0,0,.18);
    text-align:center;
}

.profile-photo{
    width:180px;
    height:180px;
    border-radius:50%;
    object-fit:cover;
    border:5px solid #ff69b4;
    margin-bottom:20px;
}

.profile-card input,
.profile-card textarea{
    width:100%;
    padding:12px;
    margin:10px 0;
    border:1px solid #ddd;
    border-radius:10px;
    font-size:16px;
    box-sizing:border-box;
}

.profile-card textarea{
    min-height:120px;
    resize:vertical;
}

.profile-card button{
    width:100%;
    padding:14px;
    margin-top:12px;
    border:none;
    border-radius:10px;
    background:#ff69b4;
    color:white;
    font-size:16px;
    cursor:pointer;
}

.profile-card button:hover{
    background:#ff4fa3;
}
.nav-badge {
    display: inline-block;
    min-width: 18px;
    padding: 2px 6px;
    margin-left: 6px;

    background: #ff3b5c;
    color: white;

    border-radius: 999px;

    font-size: 12px;
    font-weight: bold;
    text-align: center;
}
/* =========================================
   CUPCAKE TOWN (NEW)
========================================= */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(to bottom, #87CEEB 0%, #dff6ff 100%);
    color: #333;
}

.town-header {
    text-align: center;
    padding: 20px;
}

.town-header h1 {
    margin: 0;
    font-size: 2rem;
}

#town-status {
    margin-top: 8px;
    color: #666;
    font-size: 1rem;
}

#town-container {
    display: flex;
    justify-content: center;
    padding: 20px;
}
.town-map-wrapper {
    position: relative;
    width: fit-content;
    margin: 0 auto;
}

#town-map {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.town-location {
    position: absolute;
    display: block;
    cursor: pointer;
}
/* ===== NAVBAR ===== */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ff69b4;
    padding: 12px 20px;
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.nav-links a:hover {
    color: #fff4b8;
}

#logoutBtn {
    background: white;
    color: #ff69b4;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: bold;
}

.nav-badge {
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    margin-left: 4px;
}
.conversation{
    background:#fff;
    border-radius:20px;
    padding:18px;
    margin-bottom:16px;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition:.25s ease;
}

.conversation:hover{
    transform:translateY(-3px);
    box-shadow:0 14px 28px rgba(0,0,0,.12);
}
.avatar{
    width:70px;
    height:70px;
    border-radius:50%;
    object-fit:cover;
}
/* ===== Messages Search ===== */

.message-search{
    margin:20px auto;
    width:95%;
    max-width:760px;
}
.message-search input{
    width:100%;
    box-sizing:border-box;
    padding:14px 18px;
    border:none;
    border-radius:30px;
    font-size:16px;
    background:#ffffff;
    box-shadow:0 4px 15px rgba(0,0,0,.08);
    outline:none;
}
/* ===== Conversation Cards ===== */

.conversation{
    background:#fff;
    border-radius:22px;
    padding:24px 24px;
    margin:18px auto;
    max-width:760px;
    width:97%;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    transition:.25s;
    cursor:pointer;
}

.conversation:hover{
    transform:translateY(-3px);
    box-shadow:0 14px 35px rgba(0,0,0,.15);
}
.avatar{
    width:72px;
    height:72px;
    border-radius:50%;
    object-fit:cover;
    border:3px solid #ff77aa;
    flex-shrink:0;
}
.conversation h2{
    margin:0;
    font-size:24px;
    font-weight:700;
}

.conversation p{
    color:#777;
    margin-top:6px;
}
/* =========================================
   WW MOBILE CONVERSATION CARD FIX
========================================= */

@media (max-width: 600px) {

    .conversation {
        display: grid !important;
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 12px 14px;
        align-items: center;
        width: 97%;
        max-width: 100%;
        padding: 16px;
        margin: 12px auto;
    }

    .conversation .avatar,
    .conversation-photo {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    .conversation-info {
        min-width: 0;
        width: 100%;
    }

    .conversation h2,
    .conversation-info h3 {
        font-size: 19px;
        line-height: 1.3;
    }

    .conversation p,
    .conversation-info p {
        font-size: 15px;
        line-height: 1.5;
        overflow-wrap: break-word;
    }

    .conversation-header {
        display: flex;
        flex-wrap: wrap;
        gap: 5px 10px;
    }

    .conversation .unread-badge {
        grid-column: 2;
        justify-self: start;
        width: max-content;
        max-width: 100%;
        margin: 0;
    }

}
/* =========================================
   PREMIUM CHAT GIFT CARD
========================================= */

.giftBubble {
    background: transparent !important;
    box-shadow: none !important;
    padding: 8px !important;
}

.giftMessageContent {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chatGiftCard {
    width: 260px;
    max-width: 90%;
    padding: 20px;
    border-radius: 26px;

    background:
        linear-gradient(
            145deg,
            #fff8fb,
            #ffdbea
        );

    border: 2px solid rgba(255, 79, 139, 0.18);

    box-shadow:
        0 14px 35px rgba(214, 61, 122, 0.20);

    text-align: center;

    position: relative;
    overflow: hidden;

    animation: giftPopIn .55s ease;
}

.chatGiftCard::before {
    content: "✨";
    position: absolute;
    top: 12px;
    left: 18px;
    font-size: 22px;

    animation: giftSparkle 1.8s infinite;
}

.chatGiftCard::after {
    content: "✨";
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 18px;

    animation: giftSparkle 1.8s .5s infinite;
}

.chatGiftTitle {
    font-size: 20px;
    font-weight: 800;
    color: #d63d7a;
    margin-bottom: 14px;
}

.chatGiftImage {
    width: 180px;
    height: 180px;

    object-fit: contain;

    display: block;
    margin: 0 auto 12px;

    filter:
        drop-shadow(
            0 10px 14px
            rgba(0, 0, 0, .15)
        );

    transition: transform .3s ease;

    cursor: pointer;
}

.chatGiftImage:hover {
    transform: scale(1.08);
}

.chatGiftEmoji {
    font-size: 95px;
    margin: 15px 0;
}

.chatGiftRarity {
    display: inline-block;

    padding: 6px 14px;

    border-radius: 999px;

    background: #ff4f8b;

    color: white;

    font-size: 12px;
    font-weight: bold;

    margin: 8px 0;
}

.chatGiftCaption {
    color: #6e5362;

    font-size: 14px;
    font-weight: 600;

    margin-top: 6px;
}

.giftBubble .messageTime {
    margin-top: 8px;
    text-align: center;
}

@keyframes giftPopIn {

    0% {
        opacity: 0;
        transform:
            translateY(18px)
            scale(.80);
    }

    70% {
        transform:
            translateY(-4px)
            scale(1.04);
    }

    100% {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }
}

@keyframes giftSparkle {

    0%,
    100% {
        opacity: .25;
        transform: scale(.8) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.25) rotate(15deg);
    }
}
.messageBubble {
    position: relative;
}

.messageReactions {
    position: absolute;
    right: 14px;
    bottom: -2px;
    background: white;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    border: 1px solid #eee;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
}
/* ===== Reply Bar Fix ===== */

.replyBar {
    display: none;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 10px;
    margin-bottom: 6px;
    background: #fff0f5;
    border-left: 4px solid #ff5fa2;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 13px;
    color: #444;
}

.replyBar span {
    flex: 1;
    min-width: 0;
}

#replyBarText {
    font-weight: 700;
}

#cancelReplyBtn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    flex: 0 0 28px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    background: #ff5fa2 !important;
    color: white !important;
    font-size: 16px !important;
    cursor: pointer;
}
/* ===== Reply Quote Inside Message ===== */

.replyPreview {
    font-size: 12px;
    opacity: 0.75;
    margin-bottom: 4px;
    padding-left: 10px;
    border-left: 3px solid currentColor;
    line-height: 1.3;
}

/* ===== Edited Message Label ===== */

.editedLabel {
    margin-top: 4px;
    font-size: 11px;
    opacity: 0.65;
    font-style: italic;
}

/* ===== Small Edit Message Button ===== */

.editBtn {
    width: auto !important;
    display: inline-block !important;
    padding: 2px 6px !important;
    margin: 3px 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #ff4f93 !important;
    font-size: 12px !important;
    cursor: pointer;
}

#blockUserBtn {
    margin-left: auto;
    padding: 8px 14px;
    border: none;
    border-radius: 12px;
    background: #fff0f3;
    color: #d62828;
    font-weight: 700;
    cursor: pointer;
}

#blockUserBtn:hover {
    background: #ffd9df;
}

/* ========================================
   CUPCAKE CONNECT SIGN IN PAGE
======================================== */

.signin-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffe6f0, #ffd2e5);
    font-family: Arial, sans-serif;
    padding: 20px;
    box-sizing: border-box;
}

.signin-card {
    width: 100%;
    max-width: 500px;
    background: white;
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.signin-card h1 {
    margin: 0 0 8px;
    color: #e83e8c;
    font-size: 30px;
}

.signin-card h2 {
    margin: 0 0 25px;
    color: #444;
    font-size: 22px;
}

.signin-card input {
    width: 100%;
    padding: 17px 18px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 17px;
    box-sizing: border-box;
    outline: none;
}

.signin-card input:focus {
    border-color: #e83e8c;
}

.signin-card button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 20px;
    background: #e83e8c;
    color: white;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}

.signin-card button:hover {
    opacity: 0.9;
}

#message {
    margin-top: 15px;
    font-size: 14px;
    color: #555;
}

/* ========================================
   ADMIN REPORTS SCROLL AREA
======================================== */

#reportsList {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

/* Makes the scrollbar easier to use */
#reportsList::-webkit-scrollbar {
    width: 12px;
}

#reportsList::-webkit-scrollbar-track {
    background: #f3f3f3;
    border-radius: 10px;
}

#reportsList::-webkit-scrollbar-thumb {
    background: #e83e8c;
    border-radius: 10px;
}

#reportsList::-webkit-scrollbar-thumb:hover {
    background: #c92f75;
}

/* ========================================
   ADMIN REPORTS SCROLL AREA + BUTTONS
======================================== */

#reportsList {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
    scroll-behavior: smooth;
}

#reportsList::-webkit-scrollbar {
    width: 12px;
}

#reportsList::-webkit-scrollbar-track {
    background: #f3f3f3;
    border-radius: 10px;
}

#reportsList::-webkit-scrollbar-thumb {
    background: #e83e8c;
    border-radius: 10px;
}

#reportsList::-webkit-scrollbar-thumb:hover {
    background: #c92f75;
}

.report-scroll-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 18px;
    flex-wrap: wrap;
}

.report-scroll-buttons button {
    padding: 12px 18px;
    border: none;
    border-radius: 18px;
    background: #e83e8c;
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

.report-scroll-buttons button:hover {
    opacity: 0.9;
}

/* =========================================
   CUPCAKE CONNECT - ADMIN REPORT CARDS
   ========================================= */

.admin-page {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    padding: 30px 20px 80px;
    box-sizing: border-box;
}
#adminStatus {
    color: #ffffff;
    font-weight: 700;
    margin: 18px 0 10px;
}

#reportsSection > h2 {
    color: #ffffff;
}
.admin-header h1 {
    color: #ffffff;
}

.admin-header p {
    color: rgba(255, 255, 255, 0.78);
}
#reportsList {
    width: 100%;
    max-height: 650px;
    overflow-y: auto;
    padding: 10px;
    box-sizing: border-box;
}

.admin-report-card {
    background: white;
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
    border-left: 6px solid #e83e8c;
}

.admin-report-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #e83e8c;
    font-size: 21px;
}

.admin-report-card p {
    margin: 7px 0;
    line-height: 1.4;
}

.admin-report-card textarea {
    width: 100%;
    min-height: 70px;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
    resize: vertical;
}

.admin-report-card button {
    padding: 9px 13px;
    margin: 5px 3px 3px 0;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 600;
}

.admin-report-card button:hover {
    transform: translateY(-1px);
    opacity: 0.88;
}

#reportsList::-webkit-scrollbar {
    width: 12px;
}

#reportsList::-webkit-scrollbar-track {
    background: #f3f3f3;
    border-radius: 10px;
}

#reportsList::-webkit-scrollbar-thumb {
    background: #e83e8c;
    border-radius: 10px;
}

/* =========================================
   CUPCAKE CONNECT - ADMIN DASHBOARD
   ========================================= */

.admin-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    margin: 25px 0 30px;
}

.admin-stat-card {
    background: white;
    padding: 22px 15px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
    border-bottom: 4px solid #e83e8c;
    transition: transform 0.2s ease;
}

.admin-stat-card:hover {
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 30px;
    margin-bottom: 8px;
}

.admin-stat-card h3 {
    margin: 5px 0 10px;
    font-size: 16px;
    color: #555;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #e83e8c;
}

/* =========================================
   CUPCAKE CONNECT - MEMBERS PAGE
   ========================================= */

.members-hero {
    max-width: 1100px;
    margin: 30px auto 20px;
    padding: 0 20px;
    box-sizing: border-box;
}

.members-hero-content {
    background: linear-gradient(135deg, #fff4f8, #ffe2ee);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    text-align: center;
}

.members-eyebrow {
    display: inline-block;
    color: #e83e8c;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.members-hero h1 {
    margin: 0;
    color: #333;
    font-size: 34px;
}

.members-hero p {
    margin: 10px 0 0;
    color: #666;
    font-size: 16px;
}

.members-grid {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 70px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    box-sizing: border-box;
}

.member-card {
    background: white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 7px 24px rgba(0, 0, 0, 0.12);
    padding: 18px;
    text-align: center;
    border-bottom: 4px solid #e83e8c;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.member-card img,
.member-photo {
    width: 145px;
    height: 145px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #ffd3e4;
    margin-bottom: 12px;
}

.member-card h3 {
    margin: 5px 0 8px;
    font-size: 23px;
    color: #333;
}

.member-card p {
    margin: 6px 0;
    color: #555;
    line-height: 1.4;
}

.member-card button {
    margin-top: 14px;
    padding: 11px 22px;
    border: none;
    border-radius: 18px;
    background: #e83e8c;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.member-card button:hover {
    opacity: 0.9;
}

/* ===== Member Profile Page ===== */

.member-profile-page {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}

.member-profile-page .member-card {
  text-align: center;
  padding: 35px;
  border-radius: 25px;
}

.member-profile-page .profile-photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #ff5fa2;
  margin-bottom: 15px;
}

.back-discover-btn {
  padding: 10px 18px;
  margin-bottom: 20px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
}

/* =========================================
   PROFILE VERIFICATION PAGE
========================================= */

.verification-page {
  width: 100%;
  min-height: 100vh;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.verification-page h1 {
  margin-bottom: 14px;
  text-align: center;
}

.verification-page > p {
  max-width: 650px;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.6;
}

.verification-card {
  width: 100%;
  max-width: 520px;
  padding: 30px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.verification-card h2 {
  margin-bottom: 18px;
}

#verificationStatus {
  font-size: 20px;
  font-weight: 700;
  margin: 20px 0;
}

.verification-card p {
  margin-bottom: 22px;
  line-height: 1.5;
}

#startVerificationBtn {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

/* ==================================================
   CUPCAKE CONNECT - GLOBAL CLICKABLE HOVER
   Makes interactive items clearly feel clickable
================================================== */

button,
a,
input[type="button"],
input[type="submit"],
input[type="reset"],
select,
[role="button"],
.clickable {
    cursor: pointer;
}

/* Buttons visibly react when hovered */
button:not(:disabled):hover,
input[type="button"]:not(:disabled):hover,
input[type="submit"]:not(:disabled):hover,
input[type="reset"]:not(:disabled):hover,
[role="button"]:hover,
.clickable:hover {
    transform: translateY(-2px);
    filter: brightness(0.95);
}

/* Links also clearly respond */
a:hover {
    text-decoration: underline;
}

/* Smooth movement */
button,
a,
input[type="button"],
input[type="submit"],
input[type="reset"],
[role="button"],
.clickable {
    transition:
        transform 0.15s ease,
        filter 0.15s ease,
        opacity 0.15s ease;
}

/* Disabled controls should NOT show the hand */
button:disabled,
input:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* ==================================================
   CUPCAKE CONNECT - GLOBAL PAGE SCROLLING
================================================== */

html {
    min-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Smooth page scrolling */
html {
    scroll-behavior: smooth;
}

/* =========================================
   VERIFIED - CONTINUE TO CUPCAKE TOWN BUTTON
========================================= */

#continueTownBtn {
    background: linear-gradient(135deg, #ff5fa2, #8b5cf6);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 13px 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#continueTownBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 24px rgba(139, 92, 246, 0.35);
}

#continueTownBtn:active {
    transform: translateY(0);
}

/* =========================================================
   PROFILE PAGE - POLISHED GLASS FINISH
========================================================= */

.profile-card {
    width: min(90%, 500px);
    margin: 45px auto;
    padding: 32px;

    background:
        linear-gradient(
            145deg,
            rgba(30, 18, 48, 0.90),
            rgba(15, 10, 30, 0.88)
        );

    border: 1px solid rgba(255, 105, 180, 0.45);
    border-radius: 28px;

    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.40),
        0 0 24px rgba(255, 72, 160, 0.20),
        inset 0 0 25px rgba(255,255,255,0.025);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    text-align: center;
}


/* PROFILE PHOTO */
.profile-photo {
    border: 3px solid #ff5ca8;

    box-shadow:
        0 0 14px rgba(255, 92, 168, 0.70),
        0 0 28px rgba(139, 92, 246, 0.28);
}


/* TITLE */
.profile-card h1 {
    color: #ffffff;
    letter-spacing: 0.3px;

    text-shadow:
        0 0 8px rgba(255, 92, 168, 0.50),
        0 0 18px rgba(139, 92, 246, 0.25);
}


/* INPUTS */
.profile-card input,
.profile-card textarea,
.profile-card select {
    width: 100%;
    box-sizing: border-box;

    margin: 7px 0;
    padding: 14px 16px;

    color: white;

    background: rgba(255,255,255,0.07);

    border:
        1px solid rgba(255,255,255,0.20);

    border-radius: 14px;

    outline: none;

    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}


/* WHEN CUSTOMER CLICKS A FIELD */
.profile-card input:focus,
.profile-card textarea:focus,
.profile-card select:focus {
    background: rgba(255,255,255,0.10);

    border-color: rgba(255, 92, 168, 0.85);

    box-shadow:
        0 0 10px rgba(255, 92, 168, 0.30);
}


/* PLACEHOLDERS */
.profile-card input::placeholder,
.profile-card textarea::placeholder {
    color: rgba(255,255,255,0.58);
}


/* BUTTONS */
#saveProfile,
#verificationBtn,
#logoutBtn {
    width: 100%;
    margin-top: 11px;
    padding: 14px;

    border-radius: 15px;

    color: white;
    font-weight: 700;
    font-size: 15px;

    cursor: pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


/* SAVE */
#saveProfile {
    background:
        linear-gradient(
            90deg,
            #ff428e,
            #d946ef,
            #7c5cff
        );

    border: none;

    box-shadow:
        0 0 16px rgba(255, 66, 142, 0.35);
}


/* VERIFY */
#verificationBtn {
    background:
        linear-gradient(
            90deg,
            #6d4aff,
            #a855f7
        );

    border: none;
}


/* LOG OUT */
#logoutBtn {
    background: rgba(255,255,255,0.07);

    border:
        1px solid rgba(255,255,255,0.18);
}


/* BUTTON LIFT */
#saveProfile:hover,
#verificationBtn:hover,
#logoutBtn:hover {
    transform: translateY(-2px);
}

/* ==========================================
   PROFILE PAGE BACKGROUND
========================================== */

body {
    background:
        radial-gradient(
            circle at 82% 30%,
            rgba(255, 60, 150, 0.16),
            transparent 32%
        ),
        radial-gradient(
            circle at 15% 75%,
            rgba(139, 92, 246, 0.18),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #090711 0%,
            #170b24 45%,
            #0b1020 100%
        ) !important;

    background-attachment: fixed !important;
}

/* ==========================================
   CAPPY SPEECH BUBBLE - PROFILE PAGE
========================================== */

#cappyBubble {
    position: absolute !important;

    right: 0 !important;
    bottom: 245px !important;

    width: 235px !important;
    min-height: 44px;

    padding: 12px 16px !important;

    background:
        linear-gradient(
            135deg,
            rgba(67, 26, 82, 0.96),
            rgba(35, 18, 58, 0.96)
        ) !important;

    color: white !important;

    border: 1px solid rgba(255, 105, 180, 0.70) !important;
    border-radius: 20px !important;

    box-shadow:
        0 0 15px rgba(255, 79, 159, 0.35),
        0 8px 25px rgba(0, 0, 0, 0.25) !important;

    text-align: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;

    z-index: 10001 !important;
}

#cappyBubble::after {
    content: "" !important;

    position: absolute;

    right: 24px;
    bottom: -10px;

    border-width: 10px 10px 0;
    border-style: solid;

    border-color:
        rgba(67, 26, 82, 0.96)
        transparent
        transparent
        transparent !important;
}

/* =========================================
   CAPPY CHAT - READABLE MESSAGE TEXT
========================================= */

#cappyMessages {
    color: #24112f !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    text-align: left !important;
}

#cappyMessages p {
    color: #24112f !important;
    margin: 10px 12px !important;
}

#cappyMessages strong {
    color: #b51f72 !important;
    font-weight: 800 !important;
}

/* =========================================
   CAPPY CHAT - NEON GLASS FINISH
========================================= */

#cappyChat {
    background:
        linear-gradient(
            145deg,
            rgba(22, 13, 38, 0.96),
            rgba(55, 20, 67, 0.94)
        ) !important;

    border: 1px solid rgba(255, 79, 159, 0.75) !important;
    border-radius: 24px !important;

    box-shadow:
        0 0 18px rgba(255, 79, 159, 0.30),
        0 18px 45px rgba(0, 0, 0, 0.45) !important;

    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;

    color: white !important;
}


/* Conversation area */

#cappyMessages {
    background: rgba(10, 7, 20, 0.48) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 16px !important;

    color: #ffffff !important;

    padding: 14px !important;
}


/* Message text */

#cappyMessages p {
    color: #ffffff !important;
}

#cappyMessages strong {
    color: #ff70b7 !important;
}


/* Input area */

.cappyInputArea {
    background: rgba(8, 6, 18, 0.75) !important;
    border-radius: 16px !important;
    padding: 10px !important;
}


/* Text box */

#cappyInput {
    background: rgba(255, 255, 255, 0.10) !important;
    color: white !important;
    border: 1px solid rgba(190, 150, 255, 0.55) !important;
    border-radius: 14px !important;
}

#cappyInput::placeholder {
    color: rgba(255, 255, 255, 0.65) !important;
}


/* Send button */

#sendToCappy {
    background: linear-gradient(135deg, #ff4f9f, #a855f7) !important;
    color: white !important;
    border: none !important;
    border-radius: 14px !important;
    font-weight: 800 !important;

    box-shadow: 0 0 15px rgba(255, 79, 159, 0.35) !important;
}


/* Close X */

#closeCappy {
    background: linear-gradient(135deg, #ff416c, #ff4f9f) !important;
    color: white !important;
    border-radius: 10px !important;
}

/* Favorite Music dropdown */
#favoriteMusic {
    min-height: 52px !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    border-radius: 14px !important;
}

/* PROFILE DROPDOWNS - MATCH OTHER FIELDS */
.profile-card select {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 58px !important;
    padding: 14px 16px !important;
    margin: 7px 0 !important;

    color: white;
    font-size: 16px;

    background: rgba(20, 15, 45, 0.88) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 14px;

    box-sizing: border-box;
}

/* =========================================
   PROFILE DROPDOWNS - CLEAN VERSION
========================================= */

.profile-card select {
    width: 100%;
    min-height: 58px;
    box-sizing: border-box;

    margin: 7px 0;
    padding: 14px 16px;

    color: white;
    font-size: 16px;
    font-weight: 600;

    background: rgba(255, 255, 255, 0.07);

    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 14px;

    outline: none;
}

.profile-card select:focus {
    border-color: rgba(255, 92, 168, 0.85);

    box-shadow:
        0 0 10px rgba(255, 92, 168, 0.30);
}

/* DROPDOWN ARROWS ONLY */
.profile-card select {
    appearance: auto;
    -webkit-appearance: menulist;
    cursor: pointer;
}

/* =========================================
   DATE OF BIRTH FIELD
========================================= */

.dob-field {
    width: 100%;
    margin: 7px 0;
}

.dob-field label {
    display: block;
    margin: 0 0 7px 4px;

    color: rgba(255, 255, 255, 0.90);
    font-size: 15px;
    font-weight: 700;
}

.dob-field input[type="date"] {
    width: 100%;
    height: 58px;

    box-sizing: border-box;
    padding: 14px 16px;

    color: white;
    font-size: 16px;
    font-weight: 600;

    background: rgba(255, 255, 255, 0.07);

    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 14px;

    outline: none;
    cursor: pointer;
}

.dob-field input[type="date"]:focus {
    border-color: rgba(255, 92, 168, 0.85);
    box-shadow: 0 0 10px rgba(255, 92, 168, 0.30);
}

.dob-field input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 1;
    filter: invert(1);
}

/* =========================================
   MEMBER PROFILE - PREMIUM CUPCAKE DESIGN
========================================= */

.member-profile-page {
    min-height: 100vh;
    padding: 40px 20px;

    background:
        radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.25), transparent 35%),
        radial-gradient(circle at 80% 40%, rgba(139, 92, 246, 0.25), transparent 35%),
        linear-gradient(135deg, #0b1020, #24113d 50%, #111827);

    color: white;
}
.member-profile-page .member-card {
    background: rgba(15, 18, 35, 0.92);
    color: white;

    border: 1px solid rgba(236, 72, 153, 0.45);
    border-radius: 24px;

    box-shadow:
        0 0 25px rgba(236, 72, 153, 0.22),
        0 0 55px rgba(139, 92, 246, 0.18);
}

.member-profile-page .profile-photo {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 50%;
    margin: 10px auto 20px;
    display: block;

    border: 3px solid #ec4899;
    box-shadow: 0 0 22px rgba(236, 72, 153, 0.55);
}

/* =========================================
   MATCH PARK
========================================= */

.match-park {
    max-width: 1100px;
    margin: 40px auto;
    padding: 32px;

    background: rgba(15, 18, 35, 0.88);
    border: 1px solid rgba(236, 72, 153, 0.4);
    border-radius: 24px;

    color: white;
    text-align: center;

    box-shadow:
        0 0 24px rgba(236, 72, 153, 0.2),
        0 0 50px rgba(139, 92, 246, 0.15);
}
.matches-list h2 {
    margin-top: 18px;
    font-size: 1.4rem;
    color: #f9a8d4;
    text-shadow: 0 0 12px rgba(236, 72, 153, 0.35);
}

/* Make chat typing visible */
#messageInput {
    color: #111 !important;
}

/* =========================================================
   CUPCAKE CONNECT CHRISTMAS GARLAND
========================================================= */

#cupcake-christmas-garland {
    position: absolute;

    top: 1.5%;
    left: 50%;

    transform: translateX(-50%);

    width: 88%;

    z-index: 4;

    pointer-events: none;
}

.garland-vine {
    height: 28px;

    display: flex;
    justify-content: space-around;
    align-items: center;

    padding: 0 22px;

    border-radius: 50%;

    background:
        linear-gradient(
            to bottom,
            rgba(20, 90, 45, .95),
            rgba(6, 45, 25, .95)
        );

    border-bottom:
        5px solid rgba(10, 60, 30, .9);

    box-shadow:
        0 5px 10px rgba(0,0,0,.35),
        0 0 14px rgba(255,215,120,.20);
}

.garland-light {
    font-size: 12px;

    color: #ffd875;

    text-shadow:
        0 0 5px #fff,
        0 0 10px #ffd875,
        0 0 18px #ffb52e;

    animation: cupcakeChristmasTwinkle 1.8s ease-in-out infinite alternate;
}

.garland-ornament {
    font-size: 13px;

    color: #d72b55;

    text-shadow:
        0 0 6px rgba(255,60,110,.8);
}

.garland-bow {
    font-size: 27px;

    transform: translateY(8px);

    filter:
        drop-shadow(0 3px 4px rgba(0,0,0,.45));
}

@keyframes cupcakeChristmasTwinkle {

    from {
        opacity: .55;
        transform: scale(.85);
    }

    to {
        opacity: 1;
        transform: scale(1.15);
    }
}

/* Admin Log Out Button */
#adminLogout {
    min-width: 115px;
    padding: 10px 18px;
    margin-left: 12px;

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;

    background: rgba(20, 10, 20, 0.35);
    color: white;

    font-size: 15px;
    font-weight: 700;
    cursor: pointer;

    transition: transform 0.2s ease,
                background 0.2s ease,
                box-shadow 0.2s ease;
}

#adminLogout:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* ========================================
   ADMIN REPORT CARDS - POLISHED LOOK
======================================== */

.admin-report-card {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.96),
        rgba(248, 245, 255, 0.94)
    );

    border: 1px solid rgba(255, 255, 255, 0.55);
    border-left: 6px solid #ff3b72;
    border-radius: 18px;

    padding: 24px;
    margin-bottom: 20px;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.18),
        0 0 18px rgba(255, 59, 114, 0.12);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.admin-report-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.22),
        0 0 22px rgba(255, 59, 114, 0.20);
}

/* ========================================
   ADMIN REPORT ACTION BUTTONS
======================================== */

.admin-report-card button {
    padding: 10px 16px;
    margin: 8px 6px 4px 0;

    border: none;
    border-radius: 10px;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    background: linear-gradient(
        135deg,
        #ff3b72,
        #d946ef
    );

    color: white;

    box-shadow: 0 5px 14px rgba(255, 59, 114, 0.25);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.admin-report-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(255, 59, 114, 0.35);
}

/* ========================================
   ADMIN REPORT DETAILS
======================================== */

.admin-report-card p {
    margin: 8px 0;
    line-height: 1.5;
    font-size: 15px;
    color: #4b4654;
}

.admin-report-card p strong {
    color: #272231;
    font-weight: 700;
}

.admin-report-card h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 21px;
    font-weight: 800;
    color: #e83e6f;
}
/* ========================================
   ADMIN DASHBOARD STAT CARDS
======================================== */

.admin-stat-card {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.96),
        rgba(248, 244, 255, 0.90)
    );

    border: 1px solid rgba(255, 255, 255, 0.65);
    border-bottom: 4px solid #ff3b72;
    border-radius: 18px;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.16),
        0 0 18px rgba(255, 59, 114, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.admin-stat-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.22),
        0 0 22px rgba(255, 59, 114, 0.18);
}

.admin-stat-card strong {
    color: #ff3b72;
    font-size: 26px;
    font-weight: 800;
}

.rarity-epic {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: white;
}

.gift-search {
    position: relative;
}


.gift-search {
    position: relative;
    height: 64px;
}

.gift-search input {
    width: 100%;
    height: 64px;
    box-sizing: border-box;
    padding-right: 65px;
}

.gift-search-btn {
    position: absolute;
    right: 20px;
    top: 0;
    width: 44px;
    height: 64px;
    margin: 0;
    padding: 0;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    line-height: 1;
}

/* Keep Gift Emporium search icon completely still */
.gift-search .gift-search-btn,
.gift-search .gift-search-btn:hover,
.gift-search .gift-search-btn:focus,
.gift-search .gift-search-btn:active {
    transform: none !important;
    animation: none !important;
    transition: none !important;
    top: 0 !important;
}
.gift-search .gift-search-btn:active {
    transform: scale(0.88) !important;
}
.gift-search .gift-search-btn {
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.gift-search .gift-search-btn:active {
    transform: translateY(-50%) scale(0.88) !important;
}

/* =========================================
   CUPCAKE CONNECT
   GIFT PURCHASE CONFIRMATION
========================================= */

.gift-confirmation-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(5, 5, 20, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Keep modal hidden until purchase succeeds */

.gift-confirmation-overlay.hidden {
    display: none !important;
}
/* Confirmation card */

.gift-confirmation-card {
    width: 100%;
    max-width: 420px;
    padding: 38px 30px;

    text-align: center;
    color: #ffffff;

    background: linear-gradient(
        145deg,
        #281342,
        #17132f 55%,
        #10182f
    );

    border: 1px solid rgba(255, 126, 205, 0.45);
    border-radius: 26px;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.65),
        0 0 45px rgba(199, 88, 255, 0.2);

    animation: giftConfirmationAppear 0.35s ease-out;
}

/* Gift icon */

.gift-confirmation-icon {
    font-size: 58px;
    margin-bottom: 16px;

    filter: drop-shadow(
        0 0 18px rgba(255, 100, 190, 0.7)
    );
}

/* Heading */

.gift-confirmation-card h2 {
    font-size: 26px;
    font-weight: 700;
    color: #ffb5df;
    margin: 0 0 15px;
}

/* Message */

#giftConfirmationMessage {
    font-size: 15px;
    line-height: 1.7;
    color: #e8ddf5;
    margin-bottom: 25px;
}

/* Sweet Coin receipt */

.gift-confirmation-details {
    padding: 18px 20px;
    margin-bottom: 26px;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
}

.gift-confirmation-details p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;

    margin: 10px 0;
    font-size: 14px;
    color: #e9dff5;
}

.gift-confirmation-details strong {
    color: #ffd77a;
    font-size: 17px;
}

/* Continue button */

.gift-confirmation-ok {
    width: 100%;
    padding: 15px 22px;

    border: none;
    border-radius: 30px;

    background: linear-gradient(
        135deg,
        #ff5ba7,
        #d64cdb,
        #875cff
    );

    color: white;
    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 8px 25px rgba(225, 77, 184, 0.35);

    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.gift-confirmation-ok:hover {
    transform: translateY(-2px);

    box-shadow: 0 12px 32px rgba(225, 77, 184, 0.55);
}

/* Entrance animation */

@keyframes giftConfirmationAppear {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.94);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .gift-confirmation-card {
        padding: 30px 22px;
    }

    .gift-confirmation-card h2 {
        font-size: 23px;
    }
}


/* Cupcake Connect — Profile Photo Upload */

#photoInput {
    cursor: pointer;
    transition: all 0.25s ease;
}

#photoInput:hover {
    border-color: #ff5cba;
    box-shadow: 0 0 14px rgba(255, 92, 186, 0.45);
}

#photoInput::file-selector-button {
    cursor: pointer;
    background: linear-gradient(135deg, #ff4fa3, #a855f7);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    margin-right: 12px;
    font-weight: 600;
    transition: all 0.25s ease;
}

#photoInput::file-selector-button:hover {
    filter: brightness(1.15);
}

/* =========================================================
   WW MOBILE — MEMBERS PAGE PHOTO FIX
========================================================= */
@media (max-width: 600px) {

    .members-grid .member-card .profile-photo {
        width: 145px !important;
        height: 145px !important;
        max-width: 145px !important;
        object-fit: cover !important;
        display: block !important;
        margin: 0 auto 12px !important;
        border-radius: 50% !important;
    }

}

/* WW MOBILE — MEMBERS CARD PHOTO FIX */
@media (max-width: 600px) {
    .members-grid .member-card img.members-card-photo {
        width: 140px !important;
        height: 140px !important;
        min-width: 140px !important;
        min-height: 140px !important;
        max-width: 140px !important;
        max-height: 140px !important;
        object-fit: cover !important;
        border-radius: 50% !important;
        display: block !important;
        margin: 0 auto 16px !important;
        position: static !important;
        transform: none !important;
    }
}

/* WW MOBILE — FINAL MEMBERS PROFILE PHOTO FIX */
@media (max-width: 600px) {
    .members-grid .member-card .profile-photo {
        width: 140px !important;
        height: 140px !important;
        max-width: 140px !important;
        min-width: 140px !important;
        max-height: 140px !important;
        min-height: 140px !important;
        object-fit: cover !important;
        border-radius: 50% !important;
        display: block !important;
        margin: 0 auto 16px !important;
    }
}

/* WW MOBILE — TOP NAV FIT */
@media (max-width: 600px) {
    .top-nav,
    nav {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch;
    }

    .top-nav a,
    nav a {
        flex-shrink: 0 !important;
    }
}

/* ===== WW CUPCAKE TOWN — FINAL PHONE MAP FIX ===== */

body #town-container {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    display: block !important;
}

body .town-map-wrapper {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: hidden !important;
    transform: none !important;
}

body #town-map {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center top !important;
    display: block !important;
    transform: none !important;
}

/* ===== WW CUPCAKE TOWN — FINISHED PHONE PAGE END ===== */

body {
    min-height: 100dvh !important;
    background: #160d27 !important;
    display: flex !important;
    flex-direction: column !important;
}

#town-container {
    flex: 1 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
}

.town-map-wrapper {
    flex: 0 0 auto !important;
}

#town-container::after {
    content: "🧁  Cupcake Town";
    flex: 1 0 90px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 90px;

    background:
        linear-gradient(
            180deg,
            #211334 0%,
            #160d27 55%,
            #10091d 100%
        );

    color: rgba(255, 255, 255, 0.68);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ===== WW CUPCAKE TOWN — REMOVE BLUE BOTTOM ===== */

body #town-container {
    background: linear-gradient(
        180deg,
        #211334 0%,
        #160d27 55%,
        #10091d 100%
    ) !important;
}

body #town-container::after {
    background: transparent !important;
}

/* ===== WW TOWN — KEEP WEATHER BAR CLEAN ===== */

#town-weather-display {
    position: relative !important;
    z-index: 100 !important;
    overflow: hidden !important;
    background: rgba(20, 15, 45, 0.92) !important;
}

#town-weather-display::before,
#town-weather-display::after {
    content: none !important;
    display: none !important;
}

/* =====================================================
   WW CUPCAKE TOWN — MOBILE BOTTOM NAV
===================================================== */

/* REMOVE THE OLD "CUPCAKE TOWN" FILLER */
body #town-container::after {
    content: none !important;
    display: none !important;
}

/* MOBILE NAV BAR */
#town-bottom-nav {
   position: fixed !important; 
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    width: 100% !important;
    min-height: 72px !important;

    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    align-items: center !important;

    padding:
        7px
        8px
        calc(7px + env(safe-area-inset-bottom)) !important;

    box-sizing: border-box !important;

    background: rgba(18, 10, 31, 0.97) !important;

    border-top:
        1px solid rgba(255, 255, 255, 0.12) !important;

    box-shadow:
        0 -8px 25px rgba(0, 0, 0, 0.35) !important;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    z-index: 1 !important;
}

/* EACH BUTTON */
#town-bottom-nav .town-nav-item {
    min-height: 54px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 4px !important;

    margin: 0 !important;
    padding: 5px !important;

    color: rgba(255, 255, 255, 0.72) !important;
    text-decoration: none !important;

    border-radius: 15px !important;

    font-weight: 700 !important;

    -webkit-tap-highlight-color: transparent;
}

/* ICONS */
#town-bottom-nav .town-nav-item span {
    font-size: 22px !important;
    line-height: 1 !important;
}

/* WORDS */
#town-bottom-nav .town-nav-item small {
    font-size: 11px !important;
    line-height: 1 !important;
    color: inherit !important;
}

/* CURRENT PAGE */
#town-bottom-nav .town-nav-item.active {
    color: #ffffff !important;

    background:
        linear-gradient(
            135deg,
            rgba(255, 79, 163, 0.28),
            rgba(139, 92, 246, 0.30)
        ) !important;

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
}

/* TAP */
#town-bottom-nav .town-nav-item:active {
    transform: scale(0.95) !important;
}

/* KEEP CONTENT FROM HIDING BEHIND NAV */
body {
    padding-bottom: 0 !important;
}

/* =========================================
   WW ANDROID PROFILE MOBILE LAYOUT FIX
========================================= */

@media (max-width: 600px) {

    .profile-card {
        width: calc(100% - 24px) !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 16px auto !important;
        padding: 22px 16px !important;
        box-sizing: border-box;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .profile-card > input:not([type="file"]),
    .profile-card > select,
    .profile-card > textarea {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        box-sizing: border-box;
    }

    .profile-card #photoInput {
        display: block;
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 13px;
    }

    .profile-card #photoInput::file-selector-button {
        padding: 12px;
        border: none;
        border-radius: 12px;
        background: linear-gradient(
            135deg,
            #ff329b,
            #844dff
        );
        color: white;
        font-weight: bold;
        margin-right: 8px;
    }

    .profile-card h1 {
        font-size: 30px !important;
        line-height: 1.3;
        text-align: center;
    }

    .profile-card .dob-selects {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .profile-card .dob-selects select {
        width: 100%;
        min-width: 0;
        font-size: 14px;
    }

}

/* CUPCAKE CONNECT — ACCOUNT MANAGEMENT */

#accountManagementSection {
    max-width: 600px;
    margin: 35px auto;
    padding: 25px 20px;
    border-radius: 24px;
    border: 1px solid #ff9fca;
    background: linear-gradient(160deg, #39204f, #1b112c);
    color: white;
    text-align: center;
}

#accountManagementSection h2 {
    color: #ffb9e1;
}

#deleteAccountBtn {
    width: 100%;
    padding: 15px;
    border-radius: 30px;
    border: 1px solid #ff9fca;
    background: linear-gradient(90deg, #d92d72, #8b46df);
    color: white;
    font-weight: bold;
}

#deleteAccountBtn:disabled {
    opacity: 0.6;
}

/* CUPCAKE CONNECT — DELETE ACCOUNT CONFIRMATION */

#deleteAccountDialog {
    width: calc(100% - 32px);
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 28px 22px;

    background: linear-gradient(160deg, #3b2058, #171126);
    color: white;

    border: 1px solid #ff9fca;
    border-radius: 25px;
    box-shadow: 0 20px 65px rgba(0, 0, 0, 0.6);

    text-align: center;
}

#deleteAccountDialog::backdrop {
    background: rgba(10, 4, 22, 0.85);
    backdrop-filter: blur(8px);
}

#deleteAccountDialog h2 {
    color: #ffb9e1;
    font-size: 24px;
}

#deleteAccountDialog p {
    color: #ead8f0;
    font-size: 15px;
    line-height: 1.6;
}

#deleteAccountConfirmText {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    margin: 12px 0;
    border: 1px solid #ff9fca;
    border-radius: 12px;
    font-size: 16px;
    text-align: center;
}

#keepAccountBtn,
#confirmDeleteAccountBtn {
    width: 100%;
    min-height: 50px;
    margin-top: 12px;
    border-radius: 25px;
    color: white;
    font-weight: bold;
}

#keepAccountBtn {
    background: linear-gradient(90deg, #ec4899, #8b5cf6);
}

#confirmDeleteAccountBtn {
    background: #8b3155;
    border: 1px solid #ff9fca;
}

#confirmDeleteAccountBtn:disabled {
    opacity: 0.5;
}


/* ==========================================
   CUPCAKE CONNECT
   CENTER DELETE ACCOUNT CONFIRMATION
========================================== */

#deleteAccountDialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;

    transform: translate(-50%, -50%) !important;

    width: calc(100% - 32px) !important;
    max-width: 540px !important;
    max-height: 90vh !important;

    margin: 0 !important;
    padding: 24px !important;
    box-sizing: border-box !important;

    overflow-y: auto !important;
    border-radius: 22px !important;
    text-align: center !important;
    z-index: 9999 !important;
}

#deleteAccountDialog::backdrop {
    background: rgba(0, 0, 0, 0.75);
}

#deleteAccountDialog input,
#deleteAccountDialog button {
    width: 100%;
    box-sizing: border-box;
}

#deleteAccountDialog button {
    margin-top: 12px;
}

@media (max-width: 600px) {
    #deleteAccountDialog {
        padding: 18px !important;
        max-height: 85vh !important;
    }
}
