/* --- Global & Theme --- */
:root { --f7-theme-color: #007aff; }
body { 
    font-family: -apple-system, SF Pro Display, system-ui, sans-serif; 
    margin: 0; background: #fff; 
    -webkit-font-smoothing: antialiased; 
    overflow-x: hidden; 
}
[x-cloak] { display: none !important; }

.ios .toolbar.messagebar .toolbar-inner, .ios .toolbar.toolbar-bottom .toolbar-inner {
  padding-bottom: 0;
}
.hero-post-wrapper {
    padding: 12px 12px 8px 12px; /* Matches feed padding */
    width: 100%;
    box-sizing: border-box;
}

.hero-item {
    width: 100%;
    height: auto;
    border-radius: 24px; /* Slightly larger radius for the hero post */
    max-height: 75vh; /* Prevents it from being too long on tall phones */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Ensure image fills the hero properly */
.hero-item img {
    position: relative; /* Hero uses natural flow height */
    object-fit: cover;
}

/* Adjust grid padding when hero is present */
@media (max-width: 768px) {
    .hero-post-wrapper { padding: 8px 8px 4px 8px; }
}
/* --- Pinterest Grid (Main Feed) --- */
.feed-columns { display: flex; gap: 12px; padding: 12px; align-items: flex-start; }
@media (max-width: 768px) { .feed-columns { gap: 8px; padding: 8px; } }
.masonry-col { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.grid-item {
    display: block; width: 100%; border-radius: 16px; background-color: #f2f2f7;
    position: relative; overflow: hidden; cursor: pointer;
}
.grid-item::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: var(--bg-image); background-size: cover; background-position: center;
    filter: blur(10px); transform: scale(1.1); z-index: 0;
}
.grid-item img {
    width: 100%; height: 100%; display: block; object-fit: cover; opacity: 0;
    transition: opacity 0.4s ease; position: absolute; top:0; left:0; z-index: 1;
}
.grid-item img.loaded { opacity: 1; }
/* Styling for the hashtag on the masonry grid */
.grid-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-transform: uppercase;
}
/* Make Sell/To-let badges a different color so they stand out */
.badge-cat:contains('HandMade'), 
.badge-cat:contains('New'), 
.badge-cat:contains('Room') {
    background: #ff9500; /* Apple Orange for commerce */
}

/* Label Container */
.item-labels {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 10;
}

/* Category Badge (Moment, Food, etc) */
.badge-cat {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    width: fit-content;
}

/* Tag Badge (#hashtag) */
.badge-tag {
    background: #fff;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: fit-content;
}

/* Special Hero Post Labels */
.hero-item .item-labels { top: 16px; left: 16px; }
/* --- Editor Popup (Add New Post) --- */
.image-container { 
    position: relative; width: 100%; background: #000; 
    overflow: hidden; transition: aspect-ratio 0.4s ease; 
}
.floating-actions { 
    position: absolute; bottom: 15px; left: 0; right: 0; 
    display: flex; justify-content: space-between; padding: 0 15px; 
    z-index: 20; pointer-events: none; 
}
.floating-btn {
    width: 100px; height: 40px; border-radius: 20px; border: none; 
    font-weight: 700; font-size: 15px; cursor: pointer; pointer-events: auto; 
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: transform 0.1s;
}
.floating-btn:active { transform: scale(0.92); }
.btn-apple-cancel { 
    background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); color: #ff3b30; 
    border: 1px solid rgba(255,255,255,0.1); 
}
.btn-apple-post { background: #007aff; color: #fff; }
.btn-apple-post:disabled { background: #555; color: #888; box-shadow: none; }

/* Category Bar below Image in Editor */
.category-chips-inline { 
    display: flex; justify-content: space-around; background: #000; 
    padding: 12px 10px; border-bottom: 1px solid #f0f0f0; 
}
.cat-item { 
    display: flex; flex-direction: column; align-items: center; 
    gap: 4px; color: #fff; cursor: pointer; min-width: 50px; 
}
.cat-item i { font-size: 24px; }
.cat-item span { font-size: 9px; font-weight: 700; text-transform: uppercase; }
.cat-item.active { color: var(--f7-theme-color); }
.cat-item.active i { 
    color: var(--f7-theme-color);
    text-shadow: 0 0 10px rgba(0, 122, 255, 0.5); /* Adds a soft blue glow */
}

/* Form Inputs & Place Suggestions */
.item-label { font-size: 11px !important; font-weight: 800; text-transform: uppercase; color: #8e8e93; }
.item-input-wrap input { font-size: 18px !important; font-weight: 600; }
.place-suggestions .chip { 
    margin-right: 4px; border-color: #ddd; background: #fff; 
}
.active-place { background: #000 !important; color: #fff !important; border-color: #000 !important; }
/* Container to handle the horizontal overflow */
.category-scroll-wrapper {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
}

.category-scroll {
    display: flex;
    flex-wrap: nowrap; /* Forces one line */
    overflow-x: auto;  /* Enables horizontal scroll */
    -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
    padding: 12px 15px;
    gap: 10px;
}

/* Hide the ugly scrollbar while keeping functionality */
.category-scroll::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    flex: 0 0 auto; /* Prevents pills from shrinking */
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f2f2f7;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.cat-pill.active {
    background: #000;
    color: #fff;
    transform: scale(1.05);
}

.emoji-icon {
    font-size: 18px;
}

.pill-label {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* Specific adjustment for News items in the grid if needed */
.news-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 5px 8px;
    font-size: 10px;
    z-index: 2;
}

/* Moment Sub-Category Grid */
.moment-sub-grid {
    display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(100% / 5.5);
  gap: 10px;
  padding: 15px 15px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  overflow-x: auto; 
    /* Hide scrollbar for Chrome/Safari/Firefox */
    scrollbar-width: none; 
    -webkit-overflow-scrolling: touch;
}

.moment-sub-grid::-webkit-scrollbar {
    display: none;
}

.moment-sub-item {
    display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 0;
  padding: 0px;
}

.moment-sub-item i {
    font-size: 22px;
}

.moment-sub-item span {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.moment-sub-item.active {
    color: var(--f7-theme-color);
}

.moment-sub-item.active i {
    transform: scale(1.15);
}



/* News overlay with Gradient Blur */
.grid-item .news {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* Only covers the bottom 50% of the image */
    height: 50%; 
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Keeps text at the bottom */
    padding: 15px 12px;
    color: #fff;
    z-index: 5;
    pointer-events: none;

    /* 1. The Blur and Background Color */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black */

    /* 2. The Magic: Gradient Mask */
    /* This makes the blur and the color fade out from bottom (100%) to middle (0%) */
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

.grid-item .news span {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    /* Limit to 2 lines so it doesn't overlap the top half */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}


/* Full-screen Gallery News Blur */
.zoom-slide.news .zoom-info {
    /* 1. Base background and Frosted Glass */
    background: rgba(0, 0, 0, 0.4) !important; 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    
    /* 2. Higher padding to give the gradient space to fade */
    padding-top: 150px; 
    
    /* 3. The Gradient Blur Mask */
    /* Blurs 100% at the bottom, fades to 0% at the top of the container */
    -webkit-mask-image: linear-gradient(to top, 
        rgba(0,0,0,1) 0%, 
        rgba(0,0,0,1) 30%, 
        rgba(0,0,0,0) 100%
    );
    mask-image: linear-gradient(to top, 
        rgba(0,0,0,1) 0%, 
        rgba(0,0,0,1) 30%, 
        rgba(0,0,0,0) 100%
    );
}

/* Enhancing the News text in full-screen */
.zoom-slide.news .zoom-caption {
    font-size: 16px; /* Slightly larger for News */
    line-height: 1.5;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Ensure the News badge (White box) stays sharp */
.zoom-slide.news .zoom-caption span[x-show="item.sub_category"] {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Keep action buttons (Like, Share) readable over the blur */
.zoom-slide.news .zoom-actions {
    margin-top: 40px;
}

/* Optional: Smooth slide in when image loads */
.grid-item img.loaded + .news {
    animation: fadeReveal 0.5s ease-out;
}

@keyframes fadeReveal {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Sub-Category Bar (Segmented Controls) --- */
.subnavbar-manual { padding: 12px 16px; background: #fff; }
.segmented-strong { 
    background: #efeff4 !important; padding: 2px !important; 
    overflow: hidden; position: relative; border-radius: 8px; 
}
.segmented-highlight {
    position: absolute; top: 2px; left: 0; height: calc(100% - 4px); 
    background: #fff !important; border-radius: 6px; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), width 0.2s; 
    z-index: 1;
}
.subnavbar-manual .button { 
    flex: 1; color: #8e8e93; font-size: 13px; font-weight: 600; 
    z-index: 2; background: transparent !important; 
}
.subnavbar-manual .button.color-black { color: #000 !important; }

/* --- Morphing Zoom Gallery (Visualizer) --- */
.zoom-gallery {
    position: fixed; z-index: 9999; background: #000; overflow: hidden;
    pointer-events: none; opacity: 0; transform-origin: center center;
    will-change: transform, opacity, top, left, width, height;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.2s ease, 
                border-radius 0.25s ease,
                top 0.25s ease, left 0.25s ease, width 0.25s ease, height 0.25s ease;
}
.zoom-gallery.is-active {
    top: 0 !important; left: 0 !important; 
    width: 100vw !important; height: 100dvh !important; 
    border-radius: 0 !important; opacity: 1 !important; 
    pointer-events: auto !important;
}
.zoom-gallery.is-closing {
    transition: all 0.25s cubic-bezier(0.5, 0, 0.5, 1);
    pointer-events: none;
}
.zoom-gallery:not(.is-active) .zoom-info, 
.zoom-gallery:not(.is-active) .zoom-actions { opacity: 0; }

.zoom-slides-container { 
    width: 100%; height: 100%; overflow-y: scroll; 
    scroll-snap-type: y mandatory; -webkit-overflow-scrolling: touch; 
    touch-action: pan-y;
}
.zoom-slide { 
    width: 100%; height: 100dvh; scroll-snap-align: start; 
    scroll-snap-stop: always; display: flex; align-items: center; 
    justify-content: center; position: relative; background: #000; 
}
.zoom-img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* --- Gallery UI --- */
.zoom-info { 
    position: absolute; bottom: 0; left: 0; right: 0; 
    padding: 80px 20px 30px; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%); 
    color: #fff; display: flex; flex-direction: column; gap: 5px; z-index: 10; pointer-events: none; 
}
.zoom-caption, .zoom-price, .zoom-actions { pointer-events: auto; }
.zoom-caption { font-size: 14px; margin: 0; }
.zoom-price { 
    font-size: 16px; font-weight: 800; color: #4cd964; margin: 0; 
    display: flex; justify-content: space-between; flex-direction: row; align-items: center;
}
.zoom-price span.value { margin-right: auto; font-size: 13px; color: #fff; font-weight: normal; padding-left: 5px; }

.zoom-actions { display: flex; justify-content: space-between; width: 100%; margin-top: 30px; }
.zoom-action-btn { 
    border: none; color: #fff; display: flex; font-size: 11px; cursor: pointer; 
    background: transparent; width: auto; align-items: center; flex-direction: column; 
}
.zoom-action-btn i { font-size: 24px; }

/* Buttons inside Zoom */
.call-button { margin-left: auto; margin-right: 5px; gap: 5px; }
.map-button { margin-left: 5px; }

/* --- Big Heart Animation --- */
.big-heart { 
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0); 
    color: rgba(255, 0, 0, 0.4); z-index: 100; pointer-events: none; 
}
.big-heart .f7-icons { font-size: 300px;}
.heart-active { animation: heartPop 0.6s ease-out; }
@keyframes heartPop { 
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; } 
    20% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; color: rgba(255, 0, 0, 0.8); } 
    80% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 
    100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; } 
}

/* --- Apple Dock Toolbar --- */
.apple-dock { 
    height: 70px !important; background: rgba(255,255,255,0.5); 
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); 
    border-radius: 32px 32px 0px 0px;
}
.color-red { color: #ff3b30 !important; }


/* --- Account Page: Profile Header --- */
.profile-section {
    text-align: center;
    padding: 40px 20px 30px;
    background: #fff;
    border-bottom: 1px solid #f2f2f7;
}

.avatar-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 15px;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f2f2f7;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.camera-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--f7-theme-color);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.camera-badge i { font-size: 14px; }

.profile-section h1 { 
    margin: 0; 
    font-size: 24px; 
    font-weight: 800; 
    letter-spacing: -0.5px;
}

.profile-meta { 
    margin: 4px 0; 
    color: #8e8e93; 
    font-size: 14px; 
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f2f2f7;
}

.profile-stats div { 
    display: flex; 
    flex-direction: column; 
    align-items: center;
}

.profile-stats b { 
    font-size: 20px; 
    color: #000;
}

.profile-stats span {  
    color: #8e8e93; 
    text-transform: uppercase; 
    font-weight: 700;
    margin-top: 2px;
}

/* --- Account Masonry Grid Items --- */
.grid-item {
    display: block;
    width: 100%;
    border-radius: 16px;
    background-color: #f2f2f7;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Blurred Placeholder */
.grid-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.2);
    z-index: 0;
}

.grid-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.grid-item img.loaded { opacity: 1; }

/* --- Account Info Overlay (Likes/Views/Delete) --- */
.account-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 10px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.account-item-info i { 
    font-size: 18px; 
    vertical-align: middle;
}

.account-item-info .del-btn {
    margin-left: auto;
    background: rgba(255, 59, 48, 0.2);
    border: none;
    color: #ff3b30;
    padding: 6px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s;
    width: auto;
}

.account-item-info .del-btn:active { transform: scale(0.9); }

/* --- Support for News Category in Account Grid --- */
.grid-item.news::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    z-index: 2;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: rgba(0, 0, 0, 0.4);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

/* If you use the <div class="news"> from index.php here as well */
.grid-item .news {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 35px 12px 40px 12px; /* Extra bottom padding to stay above account-info */
    color: #fff;
    z-index: 5;
    pointer-events: none;
}

.grid-item .news span {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
 

#mood-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: calc(100vh - 70px); 
    /* 11000 is higher than the 9999 gallery z-index */
    z-index: 11000 !important; 
    pointer-events: none;
    background: transparent !important;
}

/* Ensure the app content doesn't have an unexpected z-index fight */
.page-content {
    z-index: 1;
}


/* Full Screen Mood Picker Overlay */
.mood-ring-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 12000;
    background: rgba(0, 0, 0, 0.5); /* Slightly darker for better contrast */
    
    /* Safari Blur Hack */
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto !important;
}

.mood-ring-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    /* Enables 3D space for the items */
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

.mood-ring-wheel {
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: y mandatory;
    padding: 0;
    margin: 0;
    z-index: 12005;
    
    /* Force Hardware Acceleration for Safari */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);

    /* Safari Mask Gradient Hack */
    -webkit-mask-image: -webkit-linear-gradient(to bottom, transparent 0%, black 35%, black 65%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 65%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 65%, transparent 100%);
}

.mood-ring-wheel::-webkit-scrollbar {
    display: none;
}

.mood-ring-item {
    height: 220px; /* Big slot for big emoji */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    
    /* Smooth 3D Transition */
    transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
    opacity: 0.2;
    
    -webkit-transform: scale(0.6) rotateX(-25deg);
    transform: scale(0.6) rotateX(-25deg);
    
    /* Prevents pixelated rendering on older Safari */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

/* Selected Center Emoji */
.mood-ring-item.active-mood {
    opacity: 1;
    -webkit-transform: scale(1.3) rotateX(0deg) !important;
    transform: scale(1.3) rotateX(0deg) !important;
}

.mood-ring-item img {
    width: 160px;
    height: 160px;
    display: block;
    object-fit: contain;
}

.mood-ring-item span {
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Close Button (F7 Toolbar Style) */
.mood-ring-close {
    position: absolute;
    top: 20px; 
    right: 20px;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    z-index: 13000 !important; 
    padding: 15px; 
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

/* Pinned Bottom Confirm Button */
.mood-ring-confirm {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%; /* Spans full bottom */
    background: #000;
    color: #fff;
    z-index: 13000 !important;
    border: none;
    padding: 25px 40px; /* Taller for thumb reach */
    border-radius: 35px 35px 0px 0px; /* Native bottom-sheet feel */
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 1px;
    justify-content: center;
    align-items: center;
    display: flex;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mood-ring-confirm:active {
    background: #222;
    transform: translateX(-50%) scale(0.98);
}

/* Spacer for infinite scroll math */
.mood-wheel-spacer {
    height: calc(50vh - 110px); /* Centers the first/last items */
}

.ios .mood-ring-container  .toolbar.toolbar-top::after {
  background-image: none !important;
}

