:root {
    --primary: #ff5e7e;
    --primary-hover: #e04867;
    --secondary: #4ea8de;
    --accent: #ffd166;
    --purple: #9d4edd;
    --mint: #06d6a0;
    --bg-pink: #fff4f6;
    --bg-cream: #fffdf9;
    --text-dark: #2c3e50;
    --text-muted: #64748b;
    --card-shadow: 0 15px 35px rgba(255, 94, 126, 0.12), 0 5px 15px rgba(0, 0, 0, 0.04);
    --glow-shadow: 0 0 25px rgba(255, 94, 126, 0.3);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-full: 999px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #fff0f4 0%, #f0f7ff 50%, #fff9e6 100%);
    background-attachment: fixed;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, .logo-text, .gender-ribbon, .cat-name, .screen-pop-banner, .arena-cat-title, .callout-badge, .callout-badge-gallery {
    font-family: 'Fredoka', cursive, sans-serif;
}

/* Background floating decorations */
.bg-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-paw {
    position: absolute;
    font-size: 2rem;
    opacity: 0.25;
    animation: floatAnim 12s infinite ease-in-out;
}

.paw-1 { top: 10%; left: 8%; animation-delay: 0s; font-size: 2.5rem; }
.paw-2 { top: 25%; right: 10%; animation-delay: 2s; font-size: 2.2rem; }
.paw-3 { top: 60%; left: 5%; animation-delay: 4s; font-size: 3rem; }
.paw-4 { top: 75%; right: 12%; animation-delay: 1s; font-size: 2.4rem; }
.paw-5 { top: 85%; left: 45%; animation-delay: 5s; font-size: 2rem; }
.paw-6 { top: 40%; right: 40%; animation-delay: 3s; font-size: 1.8rem; }

@keyframes floatAnim {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(15deg); }
}

/* Page Layout */
.page-wrapper {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Navigation Bar */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.header-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-gallery-btn {
    background: linear-gradient(135deg, #06d6a0 0%, #00b4d8 100%);
    color: white;
    font-family: 'Fredoka', cursive, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(6, 214, 160, 0.3);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-gallery-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 22px rgba(6, 214, 160, 0.4);
}

.nav-games-btn {
    background: linear-gradient(135deg, #ff5e7e 0%, #9d4edd 100%);
    color: white;
    font-family: 'Fredoka', cursive, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(255, 94, 126, 0.3);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-games-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 22px rgba(255, 94, 126, 0.4);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 2.2rem;
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-text .highlight {
    color: var(--primary);
}

.designer-badge {
    background: linear-gradient(135deg, #fff0f5, #ffe5ec);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    border: 2px dashed var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    box-shadow: 0 4px 12px rgba(255, 94, 126, 0.1);
}

.badge-icon {
    font-size: 1.2rem;
}

.badge-text strong {
    color: var(--primary);
}

/* Hero Section */
.card-hero {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(15px);
    border-radius: 36px;
    padding: 40px 35px;
    box-shadow: var(--card-shadow);
    border: 3px solid #ffffff;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff0f3;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 94, 126, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 94, 126, 0.7);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 94, 126, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 94, 126, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 94, 126, 0); }
}

.main-title {
    font-size: 2.6rem;
    line-height: 1.25;
    color: var(--text-dark);
    margin-bottom: 35px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mascot Showcase Container */
.mascot-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
    background: linear-gradient(180deg, #fff7f9 0%, #f0f7ff 100%);
    padding: 30px;
    border-radius: 30px;
    border: 2px solid #ffe3ec;
    position: relative;
}

@media (min-width: 650px) {
    .mascot-container {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
}

.mascot-frame-wrapper {
    position: relative;
    width: 210px;
    height: 210px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mascot-frame-wrapper:hover {
    transform: scale(1.06) rotate(-2deg);
}

.mascot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #ffffff;
    box-shadow: 0 12px 30px rgba(255, 94, 126, 0.25);
    transition: transform 0.3s ease;
}

.mascot-img.happy-jump {
    animation: catJump 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes catJump {
    0% { transform: scale(1) translateY(0); }
    30% { transform: scale(1.22, 0.82) translateY(-25px) rotate(6deg); }
    50% { transform: scale(0.92, 1.15) translateY(-40px) rotate(-6deg); }
    70% { transform: scale(1.08, 0.92) translateY(0); }
    100% { transform: scale(1) translateY(0); }
}

.mascot-sparkle {
    position: absolute;
    font-size: 1.5rem;
    animation: sparklePulse 2s infinite ease-in-out alternate;
}

.sparkle-tl { top: -5px; left: -5px; }
.sparkle-tr { top: -5px; right: -5px; animation-delay: 0.5s; }
.sparkle-bl { bottom: 10px; left: -10px; animation-delay: 1s; }
.sparkle-br { bottom: 10px; right: -10px; animation-delay: 1.5s; }

@keyframes sparklePulse {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(1.3); opacity: 1; }
}

.mascot-hover-hint {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--purple);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(157, 78, 221, 0.3);
}

.mascot-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.name-tag {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.name-tag h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
}

.cat-name {
    color: var(--primary);
}

.gender-ribbon {
    background: linear-gradient(135deg, #ff7597, #ff497c);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(255, 73, 124, 0.3);
}

.gender-notice {
    background: #fff0f5;
    border-left: 5px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: 0 4px 15px rgba(255, 94, 126, 0.08);
}

.notice-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.notice-text {
    font-size: 0.95rem;
    color: #4a2c35;
    line-height: 1.45;
}

.notice-text u {
    text-decoration-color: var(--primary);
    text-decoration-thickness: 2px;
}

.petting-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 5px;
}

.btn-pet {
    background: linear-gradient(135deg, #ff7597 0%, #ff4757 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-family: 'Fredoka', cursive, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 71, 87, 0.3);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-pet:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 12px 25px rgba(255, 71, 87, 0.4);
}

.btn-pet:active {
    transform: translateY(1px) scale(0.98);
}

.pet-count-display {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.pet-count-display strong {
    font-size: 1.3rem;
    color: var(--primary);
}

/* Interactive Toys Bar */
.interactive-toys {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
    margin-bottom: 25px;
}

.toy-btn {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    padding: 14px 26px;
    border-radius: var(--radius-full);
    font-family: 'Fredoka', cursive, sans-serif;
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

.toy-btn:hover {
    border-color: var(--primary);
    transform: translateY(-3px) scale(1.06);
    background: #fff0f3;
}

.toy-btn:active {
    transform: translateY(1px) scale(0.96);
}

.toy-feedback {
    margin-bottom: 25px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--purple);
    min-height: 28px;
}

/* Designer Story Card */
.designer-story {
    background: linear-gradient(135deg, #fffbe6 0%, #fff4e6 100%);
    border: 2px solid #ffe8b5;
    border-radius: 24px;
    padding: 24px 28px;
    text-align: left;
    margin-bottom: 35px;
    box-shadow: 0 6px 18px rgba(255, 209, 102, 0.15);
}

.story-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #946200;
}

.story-header h3 {
    font-size: 1.3rem;
}

.story-body {
    font-size: 1rem;
    color: #5c4515;
    line-height: 1.6;
}

/* GALLERY CALLOUT CARD ON HOMEPAGE */
.gallery-callout-card {
    background: linear-gradient(135deg, #e6fffa 0%, #eef7ff 100%);
    border: 3px solid #b2f5ea;
    border-radius: 28px;
    padding: 30px 25px;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(6, 214, 160, 0.15);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.callout-badge-gallery {
    display: inline-block;
    background: #06d6a0;
    color: white;
    font-size: 0.85rem;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.gallery-callout-card h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.gallery-callout-card p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.btn-gallery-cta {
    display: inline-block;
    background: linear-gradient(135deg, #06d6a0 0%, #00b4d8 100%);
    color: white;
    font-family: 'Fredoka', cursive, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(6, 214, 160, 0.35);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-gallery-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 14px 30px rgba(6, 214, 160, 0.45);
}

/* GAMES CALLOUT CARD LOWER DOWN ON HOMEPAGE */
.games-callout-card {
    background: linear-gradient(135deg, #fff3f6 0%, #eef7ff 100%);
    border: 3px solid #ffd8e4;
    border-radius: 28px;
    padding: 30px 25px;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(255, 94, 126, 0.15);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.callout-badge {
    display: inline-block;
    background: var(--purple);
    color: white;
    font-size: 0.85rem;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.games-callout-card h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.games-callout-card p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.btn-games-cta {
    display: inline-block;
    background: linear-gradient(135deg, #ff7597 0%, #9d4edd 100%);
    color: white;
    font-family: 'Fredoka', cursive, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(255, 117, 151, 0.35);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    border: none;
}

.btn-games-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 14px 30px rgba(255, 117, 151, 0.45);
}

/* Email Notify Form */
.notify-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
    border: 2px solid #f1f5f9;
    margin-bottom: 30px;
}

.notify-card h3 {
    font-size: 1.25rem;
    margin-bottom: 18px;
    color: var(--text-dark);
}

.notify-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.input-email {
    flex-grow: 1;
    min-width: 250px;
    padding: 14px 20px;
    border-radius: var(--radius-full);
    border: 2px solid #e2e8f0;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-email:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(78, 168, 222, 0.15);
}

.btn-submit {
    background: linear-gradient(135deg, var(--secondary) 0%, #3a86ff 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-family: 'Fredoka', cursive, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(78, 168, 222, 0.3);
    transition: all 0.2s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(78, 168, 222, 0.4);
}

.notify-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    background: #e6fffa;
    color: #047857;
    border: 1px solid #a7f3d0;
}

/* Footer */
.footer {
    text-align: center;
    padding: 25px;
    margin-top: auto;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ---------------------------------------------------- */
/* GALLERY SUBPAGE STYLING (gallery.html)               */
/* ---------------------------------------------------- */

.gallery-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-upload-cat {
    background: linear-gradient(135deg, #06d6a0 0%, #00b4d8 100%);
    color: white;
    font-family: 'Fredoka', cursive, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(6, 214, 160, 0.3);
    transition: all 0.2s ease;
}

.btn-upload-cat:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(6, 214, 160, 0.4);
}

.admin-link-btn {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.2s ease;
}

.admin-link-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.gallery-main-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(15px);
    border-radius: 36px;
    padding: 35px 28px;
    box-shadow: var(--card-shadow);
    border: 3px solid #ffffff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.cat-gallery-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    border: 3px solid #f1f5f9;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.cat-gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: #ffd8e4;
}

.cat-card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8fafc;
}

.cat-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cat-gallery-card:hover .cat-card-img {
    transform: scale(1.05);
}

.cat-card-ribbon {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

.cat-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cat-card-header h3 {
    font-size: 1.35rem;
    color: var(--text-dark);
}

.owner-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    background: #fff0f3;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.cat-card-bio {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-style: italic;
    flex-grow: 1;
}

.cat-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed #f1f5f9;
}

.btn-like-cat {
    background: #fff0f5;
    border: 1px solid #ffccd5;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-like-cat:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-like-cat.already-liked {
    background: linear-gradient(135deg, #ff7597 0%, #ff4757 100%) !important;
    color: #ffffff !important;
    border-color: #ff4757 !important;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3) !important;
}

.btn-like-cat.heart-pop {
    animation: heartPopAnim 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPopAnim {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.cat-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.empty-gallery-card {
    text-align: center;
    padding: 50px 20px;
}

.empty-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 12px;
}

/* ---------------------------------------------------- */
/* MODAL OVERLAY & UPLOAD MODAL SOLID OPACITY FIX       */
/* ---------------------------------------------------- */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(10px) !important;
    z-index: 999999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-overlay[hidden] {
    display: none !important;
}

.modal-card {
    background: #ffffff !important;
    border-radius: 32px !important;
    padding: 35px 30px !important;
    max-width: 520px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4) !important;
    border: 4px solid #fff0f5 !important;
    opacity: 1 !important;
    z-index: 1000000 !important;
}

.upload-modal-card {
    max-width: 550px;
    text-align: left !important;
    background: #ffffff !important;
}

.upload-modal-card h2 {
    color: #1e293b !important;
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.upload-modal-card p {
    color: #475569 !important;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    color: #1e293b !important;
}

.input-field {
    padding: 14px 18px !important;
    border-radius: var(--radius-md) !important;
    border: 2px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-family: inherit;
    font-size: 1rem !important;
    outline: none;
    transition: border-color 0.2s ease;
}

.input-field:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(255, 94, 126, 0.15) !important;
}

.input-file {
    padding: 12px !important;
    border: 2px dashed #cbd5e1 !important;
    border-radius: var(--radius-md) !important;
    cursor: pointer;
    background: #f8fafc !important;
    color: #0f172a !important;
    font-size: 0.95rem !important;
}

.file-hint {
    font-size: 0.85rem !important;
    color: #475569 !important;
    font-weight: 600 !important;
}

.image-preview-box {
    width: 100%;
    max-height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.image-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-submit-upload {
    background: linear-gradient(135deg, #06d6a0 0%, #00b4d8 100%) !important;
    color: #ffffff !important;
    border: none;
    padding: 16px 24px !important;
    border-radius: var(--radius-full) !important;
    font-family: 'Fredoka', cursive, sans-serif;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(6, 214, 160, 0.35) !important;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.btn-submit-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(6, 214, 160, 0.45) !important;
}

/* Success Modal */
.success-modal-card {
    text-align: center !important;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 10px;
}

.success-msg-text {
    font-size: 1.1rem;
    color: #1e293b !important;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* ---------------------------------------------------- */
/* ADMIN PANEL STYLING (admin.html)                    */
/* ---------------------------------------------------- */

.admin-badge-label {
    background: #fff0f5;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 94, 126, 0.3);
}

.admin-login-card {
    max-width: 480px;
    margin: 40px auto;
}

.admin-login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.login-error-msg {
    color: #c53030;
    background: #fff5f5;
    border: 1px solid #feb2b2;
    padding: 10px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

.admin-dashboard-card {
    padding: 35px 28px;
}

.admin-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    border-bottom: 2px dashed #f1f5f9;
    padding-bottom: 15px;
}

.admin-tab-btn {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-family: 'Fredoka', cursive, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.section-title {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.admin-cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.admin-cat-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.admin-cat-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f8fafc;
}

.admin-cat-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
}

.admin-cat-info h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
}

.admin-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.btn-approve {
    flex-grow: 1;
    background: #06d6a0;
    color: white;
    border: none;
    padding: 8px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
}

.btn-reject {
    flex-grow: 1;
    background: #ff4757;
    color: white;
    border: none;
    padding: 8px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #f1f5f9;
    border: 2px solid #cbd5e1;
    color: #334155;
    font-size: 1.2rem;
    font-weight: bold;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-modal-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}
