/* -------------------------------------------------------------
   PICCO GALLERY - KAWAII CUTE & COLORFUL PASTEL DREAM
   Created for: Piccio Gallery (Dinda)
   Powered by: Satuvisi Creative Agency
   ------------------------------------------------------------- */

/* --- ROOT VARIABLES (CUTE COLORFUL PASTEL THEME) --- */
:root {
    /* Colorful Pastel Brand Colors */
    --primary-pink: #ff7597;      /* Sweet Cherry Pink */
    --primary-light: #fff3f6;     /* Cream Strawberry Pink */
    --primary-pastel: #ffe3e8;    /* Softer Rose Pink */
    --accent-purple: #b39cd0;     /* Lilac / Violet */
    --accent-blue: #70b9f1;       /* Sky Blue */
    --accent-mint: #56d0a7;       /* Pastel Mint Green */
    --accent-yellow: #ffd043;     /* Lemon Yellow */
    --text-dark: #2c252a;         /* High Contrast Dark Cocoa (Readable & Solid) */
    --text-muted: #61565d;        /* Dark Muted Purple-Gray */
    --cherry-red: #ff3b5c;        /* Vibrant Cherry */
    --success-green: #2ecc71;     
    --success-bg: rgba(46, 204, 113, 0.12);
    --warning-orange: #f39c12;
    --warning-bg: rgba(243, 156, 18, 0.08);

    /* Background Gradient Flow (Baby Blue, Pale Pink, Mint, Soft Lavender) */
    --glass-bg: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 10px 30px rgba(255, 117, 151, 0.12);
    --card-glow: 0 8px 24px rgba(255, 117, 151, 0.15);
    --modal-bg: #ffffff;

    --border-radius-lg: 24px;
    --border-radius-md: 18px;
    --border-radius-sm: 12px;
    --transition-smooth: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- CYBER CUTE DARK THEME (NEON PURPLE & HOT PASTEL PINK) --- */
body.theme-dark {
    --primary-pink: #ff85a1;
    --primary-light: #2a1622;
    --primary-pastel: #451b32;
    --accent-purple: #c3a6ff;
    --accent-blue: #64b5f6;
    --accent-mint: #4dd0e1;
    --accent-yellow: #ffd54f;
    --text-dark: #f8f6f9;
    --text-muted: #ad9eb0;
    --cherry-red: #ff5270;
    --success-green: #2ecc71;
    --success-bg: rgba(46, 204, 113, 0.2);
    --warning-orange: #fbbf24;
    --warning-bg: rgba(251, 191, 36, 0.15);
    
    --glass-bg: rgba(30, 22, 36, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 10px 40px rgba(10, 5, 18, 0.55);
    --card-glow: 0 8px 24px rgba(255, 133, 161, 0.2);
    --modal-bg: #1f1426;

    background-color: #120c17;
    background-image: radial-gradient(at 0% 0%, hsla(330,50%,15%,1) 0px, transparent 50%),
                      radial-gradient(at 50% 0%, hsla(270,40%,12%,1) 0px, transparent 50%),
                      radial-gradient(at 100% 0%, hsla(200,45%,13%,1) 0px, transparent 50%);
}

/* --- GENERAL RESET & SETUP --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--text-dark);
    background-color: #fff8f9;
    /* Soft Colorful Pastel Rainbow Flow Background */
    background-image: radial-gradient(at 0% 0%, hsla(195, 100%, 93%, 1) 0px, transparent 45%),
                      radial-gradient(at 50% 0%, hsla(343, 100%, 94%, 1) 0px, transparent 45%),
                      radial-gradient(at 100% 0%, hsla(110, 100%, 93%, 1) 0px, transparent 45%),
                      radial-gradient(at 50% 100%, hsla(272, 100%, 94%, 1) 0px, transparent 45%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    padding-bottom: 120px;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, .brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* --- MULTICOLORED FLOATING BLOBS (VIBRANT KAWAII COLORS) --- */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.55;
    animation: floatBlob 25s infinite alternate ease-in-out;
}

body.theme-dark .blob {
    opacity: 0.18;
    filter: blur(120px);
}

.blob-1 {
    width: 450px;
    height: 450px;
    background: #ffd5e5; /* Strawberry Pastel */
    top: -100px;
    left: -100px;
    animation-duration: 28s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #cbf3f0; /* Mint Pastel */
    bottom: -150px;
    right: -100px;
    animation-duration: 32s;
    animation-delay: -8s;
}

.blob-3 {
    width: 380px;
    height: 380px;
    background: #dec0f1; /* Lavender Violet */
    top: 40%;
    left: 45%;
    animation-duration: 22s;
    animation-delay: -3s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(80px, 60px) scale(1.15) rotate(180deg); }
    100% { transform: translate(-40px, -60px) scale(0.9) rotate(360deg); }
}

/* --- APP CONTAINER --- */
.app-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* --- LAYOUT GRID & MAIN CONTENT --- */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

@media (max-width: 1150px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
}

/* --- GLASS DESIGN SYSTEM --- */
.glass-header, .glass-card, .cart-glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--glass-shadow);
    padding: 24px;
    transition: var(--transition-smooth);
}

.glass-header:hover, .glass-card:hover {
    box-shadow: 0 12px 40px rgba(255, 117, 151, 0.2);
}

/* --- HEADER SECTION --- */
.glass-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 245, 246, 0.9));
    border-color: rgba(255, 117, 151, 0.25);
}

body.theme-dark .glass-header {
    background: linear-gradient(135deg, rgba(30, 22, 36, 0.9), rgba(45, 20, 35, 0.9));
    border-color: rgba(255, 117, 151, 0.15);
}

.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo-wrapper {
    position: relative;
    flex-shrink: 0;
}

.brand-logo {
    width: 86px;
    height: 86px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(255, 117, 151, 0.3);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 2;
}

body.theme-dark .brand-logo {
    border-color: var(--primary-pastel);
}

.logo-glow {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-pink), var(--accent-blue));
    z-index: 1;
    opacity: 0.65;
    filter: blur(6px);
}

.logo-wrapper:hover .brand-logo {
    transform: scale(1.08) rotate(5deg);
}

.brand-info {
    flex: 1;
    min-width: 250px;
}

.brand-name {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.2;
}

.bunny-icon {
    font-size: clamp(1.6rem, 3.8vw, 2.2rem);
    animation: bunnyWiggle 3s infinite ease-in-out;
    display: inline-block;
}

@keyframes bunnyWiggle {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-6px) rotate(8deg); }
}

.brand-tagline {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

/* Header Toolbar */
.header-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tool-btn {
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 117, 151, 0.3);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(255, 117, 151, 0.08);
    transition: var(--transition-smooth);
}

body.theme-dark .tool-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.tool-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-pink);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 117, 151, 0.18);
}

@media (max-width: 576px) {
    .header-toolbar {
        width: 100%;
        justify-content: flex-start;
    }
}

.header-notice {
    background: rgba(255, 255, 255, 0.95);
    border-left: 5px solid var(--primary-pink);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.02);
}

body.theme-dark .header-notice {
    background: rgba(30, 22, 36, 0.5);
}

.notice-icon-wrapper {
    background: var(--primary-pastel);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notice-icon {
    color: var(--cherry-red);
    font-size: 1rem;
}

.header-notice p {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.5;
    margin-top: 2px;
}

/* --- QUICK TUTORIAL STEPS --- */
.tutorial-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-left: 4px solid var(--accent-blue);
}

.tut-title {
    font-size: 1.1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tut-title i {
    color: var(--accent-blue);
}

.tut-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.tut-step {
    flex: 1;
    min-width: 240px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.02);
}

body.theme-dark .tut-step {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.04);
}

.step-num {
    background: var(--accent-blue);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(112, 185, 241, 0.35);
    flex-shrink: 0;
}

.step-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.tut-arrow {
    color: var(--accent-blue);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .tut-arrow {
        display: none;
    }
    .tut-step {
        width: 100%;
    }
}

/* --- SEARCH & CONTROL SECTION --- */
.controls-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 14px 18px 14px 48px;
    border-radius: var(--border-radius-md);
    border: 2px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.9);
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition-smooth);
}

body.theme-dark .search-box input {
    background: rgba(30, 22, 36, 0.5);
    border-color: rgba(255, 255, 255, 0.08);
}

.search-box input:focus {
    border-color: var(--primary-pink);
    background: #fff;
    box-shadow: var(--card-glow);
}

body.theme-dark .search-box input:focus {
    background: rgba(28, 20, 33, 0.9);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-pink);
    font-size: 1.1rem;
}

.clear-search-btn {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.clear-search-btn:hover {
    color: var(--cherry-red);
}

/* FILTER TABS */
.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-top: 1px solid var(--glass-border);
    padding-top: 14px;
}

.tab-btn {
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-dark);
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

body.theme-dark .tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.tab-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-pink);
    transform: translateY(-1px);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-pink), #ff4d6e);
    color: #fff;
    border-color: var(--primary-pink);
    box-shadow: var(--card-glow);
}

/* --- PRODUCTS GRID SECTION --- */
.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 8px;
}

.section-title {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--cherry-red);
}

.count-badge {
    background: var(--primary-pastel);
    color: var(--cherry-red);
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 117, 151, 0.25);
}

body.theme-dark .count-badge {
    color: #fff;
    background: var(--primary-light);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 28px;
    min-height: 200px;
}

/* --- APP CARDS --- */
.app-card {
    background: #ffffff;
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(255, 117, 151, 0.05);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

body.theme-dark .app-card {
    background: #191420;
    border-color: rgba(255, 255, 255, 0.05);
}

/* Card custom top visual borders based on Category */
.app-card.cat-streaming::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-pink), var(--cherry-red));
}
.app-card.cat-editing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-mint), #2ecc71);
}
.app-card.cat-ai::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
}
.app-card.cat-music::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-yellow), #f39c12);
}

.app-card:hover {
    transform: translateY(-6px);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(255, 117, 151, 0.18);
    border-color: var(--primary-pink);
}

.app-card.cat-streaming:hover { border-color: var(--primary-pink); }
.app-card.cat-editing:hover { border-color: var(--accent-mint); box-shadow: 0 10px 30px rgba(86, 208, 167, 0.18); }
.app-card.cat-ai:hover { border-color: var(--accent-blue); box-shadow: 0 10px 30px rgba(112, 185, 241, 0.18); }
.app-card.cat-music:hover { border-color: var(--accent-yellow); box-shadow: 0 10px 30px rgba(255, 208, 67, 0.18); }

body.theme-dark .app-card:hover {
    background: #231b2c;
}

.card-top {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* APP LOGO CONTAINER & IMAGE STYLES */
.app-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
    word-break: break-word;
}

.app-logo-container {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
}

body.theme-dark .app-logo-container {
    background: #201726;
    border-color: rgba(255,255,255,0.05);
}

.app-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.app-card:hover .app-logo-img {
    transform: scale(1.15) rotate(-6deg);
}

.app-title i.fallback-icon {
    font-size: 1.15rem;
    color: var(--primary-pink);
    flex-shrink: 0;
}

/* Card Badges */
.card-badges {
    display: flex;
    gap: 6px;
    margin-top: 2px;
    flex-wrap: wrap;
}

.badge-tag {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-tag.promo {
    background: var(--cherry-red);
    color: white;
}

.badge-tag.ready {
    background: var(--success-bg);
    color: var(--success-green);
    border: 1px solid rgba(46, 204, 113, 0.2);
}

/* Card Button Toolbar */
.card-button-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    width: 100%;
}

.info-circle-btn {
    background: var(--primary-light);
    border: 1px solid var(--glass-border);
    color: var(--cherry-red);
    width: 38px;
    height: 38px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.info-circle-btn:hover {
    background: var(--primary-pink);
    color: white;
}

body.theme-dark .info-circle-btn {
    background: rgba(255, 255, 255, 0.04);
}

/* Base Add-to-cart Button */
.add-to-cart-btn {
    width: 100%;
    padding: 10px;
    border-radius: var(--border-radius-sm);
    border: none;
    background: var(--primary-pink);
    color: #ffffff;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.add-to-cart-btn:hover {
    filter: brightness(0.95);
    box-shadow: 0 4px 10px rgba(255, 117, 151, 0.35);
    transform: translateY(-1px);
}

/* Category-specific card button color styles */
.cat-streaming .add-to-cart-btn { background: var(--primary-pink); }
.cat-editing .add-to-cart-btn { background: var(--accent-mint); }
.cat-ai .add-to-cart-btn { background: var(--accent-blue); }
.cat-music .add-to-cart-btn { background: var(--accent-yellow); color: var(--text-dark); }

/* Highlight matching search text */
.highlight-text {
    background: #fdf0cd;
    border-radius: 3px;
    padding: 0 2px;
    color: #4a3c2c;
}

body.theme-dark .highlight-text {
    background: #4a3e2c;
    color: #f7ecd7;
}

/* --- CUSTOM STYLISH DROPDOWN COMPONENT (SOlVES PLAIN OS SELECT MENU) --- */
.selection-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

.form-group label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
}

.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    border: 1.5px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.9);
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
}

body.theme-dark .custom-select-trigger {
    background: rgba(30, 22, 36, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
}

.custom-select-trigger:hover, .custom-select-wrapper.open .custom-select-trigger {
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(255, 117, 151, 0.15);
}

/* Category specific colors on trigger borders */
.cat-streaming .custom-select-trigger:hover, .cat-streaming.open .custom-select-trigger { border-color: var(--primary-pink); box-shadow: 0 0 0 3px rgba(255, 117, 151, 0.15); }
.cat-editing .custom-select-trigger:hover, .cat-editing.open .custom-select-trigger { border-color: var(--accent-mint); box-shadow: 0 0 0 3px rgba(86, 208, 167, 0.15); }
.cat-ai .custom-select-trigger:hover, .cat-ai.open .custom-select-trigger { border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(112, 185, 241, 0.15); }
.cat-music .custom-select-trigger:hover, .cat-music.open .custom-select-trigger { border-color: var(--accent-yellow); box-shadow: 0 0 0 3px rgba(255, 208, 67, 0.15); }

.custom-select-trigger i {
    color: var(--primary-pink);
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.cat-editing .custom-select-trigger i { color: var(--accent-mint); }
.cat-ai .custom-select-trigger i { color: var(--accent-blue); }
.cat-music .custom-select-trigger i { color: var(--accent-yellow); }

.custom-select-wrapper.open .custom-select-trigger i {
    transform: rotate(180deg);
}

/* Custom list of options */
.custom-select-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1.5px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    box-shadow: 0 8px 24px rgba(255, 117, 151, 0.12);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition-smooth);
    max-height: 200px;
    overflow-y: auto;
}

body.theme-dark .custom-select-options {
    background: #1e1526;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.custom-select-wrapper.open .custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-option {
    padding: 10px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.custom-select-option:hover {
    background: var(--primary-light);
    color: var(--cherry-red);
}

body.theme-dark .custom-select-option:hover {
    background: var(--primary-pastel);
    color: #fff;
}

/* Category-specific hovers inside custom options list */
.cat-streaming .custom-select-option:hover { background: var(--primary-light); color: var(--cherry-red); }
.cat-editing .custom-select-option:hover { background: rgba(86, 208, 167, 0.1); color: var(--accent-mint); }
.cat-ai .custom-select-option:hover { background: rgba(112, 185, 241, 0.1); color: var(--accent-blue); }
.cat-music .custom-select-option:hover { background: rgba(255, 208, 67, 0.1); color: #d39c00; }

.custom-select-option.selected {
    background: var(--primary-pastel);
    color: var(--cherry-red);
    font-weight: 700;
}

body.theme-dark .custom-select-option.selected {
    background: var(--primary-pink);
    color: #fff;
}

.cat-editing .custom-select-option.selected { background: rgba(86, 208, 167, 0.18); color: var(--accent-mint); }
.cat-ai .custom-select-option.selected { background: rgba(112, 185, 241, 0.18); color: var(--accent-blue); }
.cat-music .custom-select-option.selected { background: rgba(255, 208, 67, 0.22); color: #c48b00; }

/* Custom scrollbars inside custom options */
.custom-select-options::-webkit-scrollbar {
    width: 6px;
}
.custom-select-options::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.01);
}
.custom-select-options::-webkit-scrollbar-thumb {
    background: rgba(255, 117, 151, 0.3);
    border-radius: 10px;
}

/* Card Price Display */
.card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 12px;
    gap: 8px;
}

.price-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

.app-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cherry-red);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
}

/* LAZY LOAD MORE BUTTON */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    width: 100%;
}

.load-more-btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: 2px solid var(--primary-pink);
    background: transparent;
    color: var(--cherry-red);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.load-more-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 117, 151, 0.2);
}

body.theme-dark .load-more-btn:hover {
    background: rgba(255,255,255,0.03);
}

/* --- SIDEBAR ESTIMATOR / CART PANEL --- */
.cart-glass-card {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: calc(100vh - 48px);
}

body.theme-dark .cart-glass-card {
    background: rgba(30, 22, 36, 0.9);
}

.close-cart-btn {
    display: none;
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid var(--primary-pink);
    background: var(--primary-light);
    color: var(--cherry-red);
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    margin-bottom: 4px;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 12px;
    gap: 8px;
}

.cart-header h3 {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-header h3 i {
    color: var(--primary-pink);
}

.clear-cart-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-smooth);
}

.clear-cart-btn:hover {
    color: var(--cherry-red);
    background: rgba(255, 117, 151, 0.08);
}

/* Cart item scroll list */
.cart-items-container {
    overflow-y: auto;
    max-height: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 4px;
}

.cart-items-container::-webkit-scrollbar {
    width: 6px;
}
.cart-items-container::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.01);
}
.cart-items-container::-webkit-scrollbar-thumb {
    background: rgba(255, 117, 151, 0.3);
    border-radius: 10px;
}

.empty-cart-message {
    padding: 24px 10px;
    text-align: center;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 2.2rem;
    color: var(--primary-pink);
    margin-bottom: 10px;
}

/* Cart list item */
.cart-item {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    animation: cartItemPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.theme-dark .cart-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.04);
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* QUANTITY CONTROLLER */
.item-qty-control {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.qty-btn {
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: var(--primary-pastel);
    color: var(--text-dark);
    font-weight: 800;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.qty-btn:hover {
    background: var(--primary-pink);
    color: white;
}

.item-qty-val {
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 14px;
    text-align: center;
}

.item-price-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.item-price {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--cherry-red);
}

.remove-item-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 2px;
    transition: var(--transition-smooth);
}

.remove-item-btn:hover {
    color: var(--cherry-red);
}

/* User input fields inside cart sidebar */
.checkout-fields {
    border-top: 1px solid var(--glass-border);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.field-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.field-group label i {
    color: var(--primary-pink);
}

.field-group input, .field-group select {
    padding: 10px 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.9);
    font-family: 'Quicksand', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    outline: none;
    transition: var(--transition-smooth);
    width: 100%;
}

body.theme-dark .field-group input, body.theme-dark .field-group select {
    background: rgba(30, 22, 36, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.field-group input:focus, .field-group select:focus {
    border-color: var(--primary-pink);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 117, 151, 0.12);
}

/* Coupon design */
.coupon-wrapper {
    display: flex;
    gap: 8px;
}

.coupon-wrapper input {
    flex: 1;
}

.coupon-btn {
    border: none;
    background: var(--primary-pink);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.coupon-btn:hover {
    background: #ff4d6e;
}

.coupon-message {
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 2px;
    display: block;
}

.coupon-message.success {
    color: var(--success-green);
}

.coupon-message.error {
    color: var(--cherry-red);
}

/* Cart Pricing Summary footer */
.cart-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--glass-border);
    padding-top: 14px;
}

.price-summary-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.price-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.price-summary-row span:nth-child(2) {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.discount-amount {
    color: var(--success-green);
}

.grand-total-row {
    font-size: 1.05rem;
    font-weight: 700;
    border-top: 1px dashed var(--glass-border);
    padding-top: 8px;
    margin-top: 4px;
}

.total-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    color: var(--cherry-red);
    transition: transform 0.2s ease;
}

.order-preview-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-preview-box label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.order-preview-box textarea {
    width: 100%;
    height: 70px;
    resize: none;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: 8px;
    font-family: monospace;
    font-size: 0.72rem;
    outline: none;
    color: var(--text-dark);
}

body.theme-dark .order-preview-box textarea {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    border-radius: var(--border-radius-md);
    border: none;
    background: var(--success-green);
    color: #fff;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    transition: var(--transition-smooth);
}

.checkout-btn:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.checkout-btn:disabled {
    background: #cbd3d8;
    color: #8c979d;
    box-shadow: none;
    cursor: not-allowed;
}

/* --- MOBILE FLOATING ESTIMATE BUTTON --- */
.mobile-cart-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99;
    background: linear-gradient(135deg, var(--cherry-red), var(--primary-pink));
    color: white;
    padding: 12px 22px;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(255, 104, 132, 0.35);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
    animation: mobileCartPulse 2s infinite alternate;
}

.toggle-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: white;
    color: var(--cherry-red);
    font-size: 0.72rem;
    font-family: sans-serif;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    font-weight: 800;
}

.toggle-text {
    font-size: 0.9rem;
}

.mobile-cart-toggle:hover {
    transform: scale(1.05) translateY(-2px);
}

@keyframes mobileCartPulse {
    0% { transform: scale(1); }
    100% { box-shadow: 0 8px 28px rgba(255, 104, 132, 0.5); }
}

/* FLOATING BACK TO TOP BUTTON */
.back-to-top-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-dark);
    box-shadow: var(--glass-shadow);
    cursor: pointer;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

body.theme-dark .back-to-top-btn {
    background: rgba(30, 22, 36, 0.85);
}

.back-to-top-btn.show {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top-btn:hover {
    background: var(--primary-pink);
    color: white;
    transform: translateY(-3px);
}

/* MOBILE Drawer adjustments */
@media (max-width: 1150px) {
    .mobile-cart-toggle {
        display: flex;
    }
    
    .estimator-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.12);
        padding: 0 12px;
    }
    
    .estimator-sidebar.open {
        transform: translateY(0);
    }
    
    .cart-glass-card {
        border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.12);
        max-height: 80vh;
        overflow-y: auto;
        padding: 20px;
    }
    
    .close-cart-btn {
        display: flex;
    }
    
    .cart-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(58, 46, 61, 0.35);
        backdrop-filter: blur(4px);
        z-index: 999;
        display: none;
    }
    .cart-backdrop.show {
        display: block;
    }
}

/* --- MOBILE SPECIFIC COMPACT AND GRID STYLES (SOLVES SCROLL FATIGUE) --- */
@media (max-width: 576px) {
    .app-container {
        padding: 16px 10px;
        gap: 20px;
    }
    
    .app-grid {
        gap: 16px;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .app-card {
        padding: 18px;
        gap: 14px;
    }
    
    .selection-fields {
        gap: 10px;
    }
    
    .form-group label {
        font-size: 0.72rem;
    }
    
    .custom-select-trigger {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .app-title {
        font-size: 1.15rem;
        gap: 10px;
    }
    
    .app-logo-container {
        width: 28px;
        height: 28px;
    }
    
    .card-price-row {
        padding-top: 10px;
    }
    
    .app-price {
        font-size: 1.15rem;
    }
    
    .add-to-cart-btn {
        padding: 8px;
        font-size: 0.85rem;
    }
    
    .info-circle-btn {
        width: 34px;
        height: 34px;
    }
}

/* --- DETAILED PRODUCT MODAL STYLING (WITH BRAND LOGO SUPPORT) --- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 20, 35, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    width: 100%;
    max-width: 500px;
    background: var(--modal-bg);
    border-radius: var(--border-radius-lg);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.modal-backdrop.show .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-muted);
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    color: var(--cherry-red);
    background: rgba(220, 167, 161, 0.08);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.modal-logo-container {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    flex-shrink: 0;
}

body.theme-dark .modal-logo-container {
    background: #201726;
    border-color: rgba(255,255,255,0.05);
}

.modal-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.modal-icon {
    font-size: 2rem;
    color: var(--cherry-red);
}

.modal-title h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
}

.modal-category {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    margin-top: 2px;
}

.modal-desc-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-desc-title i {
    color: var(--primary-pink);
}

.modal-desc-body {
    font-size: 0.88rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 16px;
}

.modal-specs-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.4);
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--glass-border);
}

body.theme-dark .modal-specs-list {
    background: rgba(0, 0, 0, 0.15);
}

.modal-spec-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
}

.modal-spec-item i {
    color: var(--success-green);
    margin-top: 4px;
    font-size: 0.85rem;
}

.modal-rules-box {
    background: var(--warning-bg);
    border: 1px solid rgba(243, 156, 18, 0.15);
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
}

.modal-rules-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--warning-orange);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.modal-rules-text {
    font-size: 0.82rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.modal-cta-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (max-width: 576px) {
    .toast-container {
        top: 16px;
        bottom: auto;
        right: 16px;
        left: 16px;
    }
}

.toast {
    background: white;
    border-left: 5px solid var(--success-green);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    border-radius: var(--border-radius-sm);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
    animation: toastSlideIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: var(--transition-smooth);
}

body.theme-dark .toast {
    background: #201726;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.toast.removing {
    opacity: 0;
    transform: scale(0.9) translateY(15px);
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(30px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast-icon {
    color: var(--success-green);
    font-size: 1.15rem;
}

.toast-message {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
}

body.theme-dark .toast-message {
    color: #fff;
}

/* --- S&K ACCORDION --- */
.snk-section {
    border-left: 5px solid var(--accent-purple);
}

.snk-title {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.snk-title i {
    color: var(--text-muted);
}

.snk-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: var(--transition-smooth);
}

body.theme-dark .accordion-item {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.04);
}

.accordion-header {
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: left;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: var(--transition-smooth);
}

.accordion-header:hover {
    background: var(--primary-light);
}

.accordion-header span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordion-header span i {
    color: var(--primary-pink);
    font-size: 1.05rem;
}

.accordion-arrow {
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    color: var(--text-muted);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding 0.35s ease;
    background: rgba(255, 255, 255, 0.35);
    font-size: 0.88rem;
    color: var(--text-dark);
}

body.theme-dark .accordion-body {
    background: rgba(0, 0, 0, 0.12);
}

.accordion-body ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.accordion-body li {
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
}

.accordion-body li::before {
    content: '🐰';
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.8rem;
}

.accordion-item.open .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-item.open .accordion-body {
    max-height: 1000px;
    padding: 16px 20px 20px 20px;
    transition: max-height 0.4s cubic-bezier(1, 0, 1, 0), padding 0.4s ease;
}

/* --- CUSTOM CONFIRMATION MODAL STYLING (PINK KAWAII THEME) --- */
.confirm-modal-card {
    max-width: 380px;
    text-align: center;
    padding: 28px;
    border-radius: var(--border-radius-lg);
}

.confirm-modal-icon {
    font-size: 3rem;
    color: var(--primary-pink);
    margin-bottom: 16px;
    animation: bounceIcon 1.5s infinite alternate ease-in-out;
}

@keyframes bounceIcon {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

.confirm-modal-title {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.confirm-modal-message {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.confirm-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.confirm-btn {
    padding: 10px 18px;
    border-radius: var(--border-radius-sm);
    border: none;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.confirm-cancel-btn {
    background: var(--primary-light);
    color: var(--cherry-red);
    border: 1.5px solid var(--glass-border);
}

.confirm-cancel-btn:hover {
    background: var(--primary-pastel);
    transform: translateY(-2px);
}

.confirm-ok-btn {
    background: var(--cherry-red);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 59, 92, 0.2);
}

.confirm-ok-btn:hover {
    background: #ff2046;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 59, 92, 0.35);
}

/* --- ADMIN DASHBOARD DESIGN --- */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: transparent;
}

.admin-table th, .admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-dark);
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
}

body.theme-dark .admin-table th, body.theme-dark .admin-table td {
    color: #fff;
}

.admin-table th {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}

body.theme-dark .admin-table th {
    color: var(--accent-purple);
}

.admin-table tbody tr {
    transition: var(--transition-smooth);
}

.admin-table tbody tr:hover {
    background: rgba(255, 117, 151, 0.04);
}

body.theme-dark .admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.admin-btn-action {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.admin-btn-edit {
    color: var(--accent-blue);
}

.admin-btn-edit:hover {
    background: rgba(112, 185, 241, 0.12);
    transform: scale(1.1);
}

.admin-btn-delete {
    color: var(--cherry-red);
}

.admin-btn-delete:hover {
    background: rgba(255, 59, 92, 0.12);
    transform: scale(1.1);
}

.admin-table-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.admin-table-container::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.01);
}

.admin-table-container::-webkit-scrollbar-thumb {
    background: rgba(255, 117, 151, 0.25);
    border-radius: 10px;
}

/* --- FOOTER & WATERMARK --- */
.agency-footer {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0 8px;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.agency-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.agency-badge span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.agency-link {
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--cherry-red);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    background: var(--primary-light);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.agency-link:hover {
    background: var(--cherry-red);
    color: #fff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 10px rgba(255, 104, 132, 0.25);
}

.agency-link i {
    animation: rocketLaunch 4s infinite;
}

@keyframes rocketLaunch {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-4px) translateX(3px) rotate(8deg); }
}

@media (max-width: 576px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .agency-badge {
        align-items: center;
    }
}
