:root {
    /* Palette */
    --bg-light: #1F2937; 
    --bg-dark: #111827;
    --glass-surface: rgba(31, 41, 55, 0.55);
    --edge-highlight: rgba(255, 255, 255, 0.5);
    --glass-blur: blur(45px);
    --accent-color: #0A84FF;
    --text-main: #FFFFFF;
    --text-sub: rgba(209, 213, 219, 0.7);
    --spring-overshoot: cubic-bezier(0.175, 0.885, 0.32, 1.4); 
    --sticky-gooey: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Admin Specific */
    --admin-accent: #FF9F0A; 
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', 'Noto Sans JP', sans-serif; -webkit-tap-highlight-color: transparent; user-select: none; }
body { background-color: var(--bg-dark); color: var(--text-main); height: 100vh; overflow: hidden; background: radial-gradient(circle at 50% 30%, #1F2937 0%, #0f131f 60%, #050508 100%); }

/* Admin Mode Styles */
body.admin-mode { background: radial-gradient(circle at 50% 30%, #3a2510 0%, #1f150a 60%, #080502 100%); }
body.admin-mode .talk-fab, body.admin-mode .cta-btn { background: linear-gradient(135deg, #FF9F0A, #FF7F00); box-shadow: 0 15px 30px rgba(255, 159, 10, 0.3), inset 1px 1px 0 rgba(255,255,255,0.3); }
body.admin-mode .status-pill.active { background: var(--admin-accent) !important; border-color: var(--admin-accent) !important; }
body.admin-mode .color-input-sm:focus { border-bottom-color: var(--admin-accent); }
/* Admin Badge */
.admin-owner-badge { font-size: 10px; color: var(--admin-accent); display: flex; align-items: center; gap: 4px; margin-top: 4px; font-weight: 600; }
.admin-status-badge { font-size: 10px; padding: 2px 6px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.7); margin-left: 5px; }

/* --- Animations --- */
@keyframes menu-gooey-expand { 0% { opacity: 0; transform: scale(0.2) translateY(-50px); border-radius: 100px; } 40% { opacity: 1; transform: scale(1.1, 0.8) translateY(10px); border-radius: 50px; } 60% { transform: scale(0.9, 1.1) translateY(-5px); border-radius: 35px; } 80% { transform: scale(1.02, 0.98) translateY(2px); } 100% { transform: scale(1) translateY(0); border-radius: 28px; } }
@keyframes liquid-drop-in { 0% { transform: translateY(-80px) scale(0.8, 1.4); opacity: 0; } 40% { transform: translateY(10px) scale(1.1, 0.9); opacity: 1; } 60% { transform: translateY(-5px) scale(0.95, 1.05); } 80% { transform: translateY(0) scale(1.02, 0.98); } 100% { transform: translateY(0) scale(1, 1); opacity: 1; } }
@keyframes emerge-quiet { 0% { opacity: 0; transform: scale(0.7) translateY(100px); filter: blur(30px) brightness(0.5); } 100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0) brightness(1); } }
@keyframes float-logo { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Toast Animations */
@keyframes toast-in { 0% { opacity: 0; transform: translateY(30px) scale(0.9); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-out { 0% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(30px) scale(0.95); } }

/* --- Utility & Glass --- */
.gooey-btn { pointer-events: auto; transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s; cursor: pointer; }
.gooey-btn:active { transform: scale(0.9); filter: brightness(1.3); }
.liquid-glass { background: var(--glass-surface); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid transparent; border-top: 1px solid rgba(255, 255, 255, 0.15); border-left: 1px solid rgba(255, 255, 255, 0.1); border-right: 1px solid rgba(0, 0, 0, 0.1); border-bottom: 1px solid rgba(0, 0, 0, 0.2); box-shadow: 15px 30px 60px -5px rgba(0,0,0,0.6), inset 1px 1px 0 0 var(--edge-highlight), inset -2px -2px 20px rgba(0,0,0,0.5), inset 0 0 40px rgba(255,255,255,0.02); position: relative; }

/* --- Auth View (Page Scroll Enabled) --- */
#auth-view { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    z-index: 1000; 
    /* Flex Column for centering but allowing scroll */
    display: flex; flex-direction: column; align-items: center; 
    overflow-y: auto; /* Enable vertical scroll for the page */
    background: radial-gradient(circle at 50% 50%, #1F2937 0%, #0f131f 60%, #000000 100%); 
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
    padding: 40px 0; /* Add padding to prevent card touching edges */
    opacity: 1; visibility: visible;
}
#auth-view.hidden { opacity: 0; visibility: hidden; pointer-events: none; filter: blur(20px); }

/* Scroll Helper for Flex Container */
#auth-view::before, #auth-view::after { content: ''; display: block; height: 20px; flex-shrink: 0; }

.auth-card {
    width: 85%; 
    padding: 45px 30px;
    border-radius: 40px;
    display: flex; flex-direction: column; align-items: center;
    position: relative; z-index: 10;
    background: rgba(31, 41, 55, 0.45); backdrop-filter: blur(60px); 
    border-top: 1px solid rgba(255,255,255,0.25); border-left: 1px solid rgba(255,255,255,0.15);
    box-shadow: 20px 50px 100px rgba(0,0,0,0.7), inset 1px 1px 0 rgba(255,255,255,0.3), inset -2px -2px 20px rgba(0,0,0,0.3);
    animation: emerge-quiet 2.5s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
    
    /* Card Size & Scroll Logic */
    margin: auto; /* Vertically center if possible */
    flex-shrink: 0; /* Prevent shrinking */
    max-height: none; /* Disable card-internal height limit */
    overflow: visible; /* Disable card-internal scroll */
}

/* Card Specific Sizes */
#login-card { max-width: 360px; } /* Reverted to 360px for compactness */
#register-card { max-width: 520px; padding: 50px 40px; } /* Wider for inputs */

.logo-area {
    width: 80px; height: 80px; border-radius: 26px;
    background: #111; color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: bold; margin-bottom: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), inset 1px 1px 0 rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 2; animation: float-logo 5s ease-in-out infinite;
    flex-shrink: 0;
}

.auth-title { font-size: 22px; font-weight: 700; margin-bottom: 20px; letter-spacing: 0.5px; color: #fff; z-index: 2; text-align: center; }
.auth-title-jp { font-size: 20px; font-weight: 700; margin-bottom: 30px; letter-spacing: 1px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.5); text-align: center; }

.auth-desc { font-size: 13px; color: rgba(255,255,255,0.7); text-align: center; margin-bottom: 25px; line-height: 1.6; font-weight: 500; }

.input-group-wrapper { width: 100%; display: flex; flex-direction: column; gap: 14px; z-index: 2; }

.form-label-sm { font-size: 11px; color: rgba(255,255,255,0.6); margin-left: 8px; margin-bottom: 4px; font-weight: 600; letter-spacing: 0.5px; }
.form-input {
    border: none; border-radius: 18px; padding: 16px; font-size: 16px; color: white; outline: none; font-family: inherit;
    background: rgba(0,0,0,0.3); box-shadow: inset 2px 2px 5px rgba(0,0,0,0.6), inset -1px -1px 0 rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.05); transition: all 0.3s; width: 100%;
}
.form-input:focus { background: rgba(0,0,0,0.5); border: 1px solid rgba(10, 132, 255, 0.5); box-shadow: 0 0 15px rgba(10,132,255,0.2), inset 1px 1px 5px rgba(0,0,0,0.5); }

/* Select */
select.form-input { appearance: none; cursor: pointer; }
.select-wrapper { position: relative; width: 100%; }
.select-wrapper::after { content: '▼'; font-size: 0.7rem; color: rgba(255, 255, 255, 0.6); position: absolute; right: 15px; top: 50%; transform: translateY(-50%); pointer-events: none; }
select.form-input option { background-color: #1F2937; color: #fff; }

.cta-btn {
    width: 100%; padding: 18px; border-radius: 22px;
    background: linear-gradient(135deg, #0A84FF, #0055D4);
    color: white; font-weight: 700; font-size: 16px;
    border: none; margin-top: 25px; z-index: 2;
    box-shadow: 0 15px 30px rgba(10,132,255,0.3), inset 1px 1px 0 rgba(255,255,255,0.3);
    text-align: center; text-shadow: 0 0 10px rgba(255,255,255,0.4); flex-shrink: 0;
}

.switch-link { margin-top: 24px; font-size: 13px; color: var(--text-sub); z-index: 2; flex-shrink: 0; }
.switch-link span { color: var(--accent-color); font-weight: 600; }

.issho-error-message {
    color: #ffb3b3; background: rgba(150, 0, 0, 0.3); padding: 12px; border-radius: 12px;
    margin-bottom: 20px; font-size: 0.85rem; width: 100%;
    border: 1px solid rgba(255, 100, 100, 0.3); display: none; backdrop-filter: blur(5px); flex-shrink: 0;
}

/* --- Toast Notification (Fixed Position) --- */
#toast-container {
    position: fixed; /* 常に画面基準 */
    bottom: 50px; 
    left: 0; 
    width: 100%;
    display: flex; justify-content: center; 
    pointer-events: none; 
    z-index: 9999; /* モーダルより上に */
}
.toast-notification {
    background: rgba(31, 41, 55, 0.95); backdrop-filter: blur(15px);
    color: #fff; padding: 14px 28px; border-radius: 50px;
    font-size: 14px; font-weight: 600;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    animation: toast-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}
.toast-notification.hide { 
    animation: toast-out 0.5s forwards !important; 
}

/* --- Header --- */
header {
    position: absolute; top: 0; width: 100%; height: 110px;
    padding: 50px 20px 10px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100; pointer-events: none;
    opacity: 0; transition: opacity 1s 1s; 
}
body.logged-in header { opacity: 1; }

/* 【修正】正しいアニメーション名(liquid-drop-in-vis)を指定 */
.header-btn {
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; color: #fff;
    background: rgba(55, 65, 81, 0.4); backdrop-filter: blur(25px);
    border-top: 1px solid rgba(255,255,255,0.15); border-left: 1px solid rgba(255,255,255,0.1);
    box-shadow: 5px 10px 25px rgba(0,0,0,0.4), inset 1px 1px 0 rgba(255,255,255,0.4), inset -2px -2px 10px rgba(0,0,0,0.3);
    position: relative; z-index: 102;
    /* Default Hidden */
    opacity: 0; visibility: hidden; 
    /* Apply Correct Animation */
    animation: liquid-drop-in-vis 0.8s 1.5s forwards;
}

@keyframes liquid-drop-in-vis { 
    0% { transform: translateY(-80px) scale(0.8, 1.4); opacity: 0; visibility: visible; } 
    100% { transform: translateY(0) scale(1, 1); opacity: 1; visibility: visible; } 
}

.header-title { font-size: 17px; font-weight: 600; letter-spacing: 0.5px; opacity: 0; transition: opacity 0.3s; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }

/* --- Main Layout --- */
#app-container { width: 100%; height: 100%; display: flex; flex-direction: column; opacity: 0; transition: opacity 1.5s 0.5s; }
body.logged-in #app-container { opacity: 1; }
#main-viewport { flex: 1; position: relative; overflow: hidden; }

.view-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    overflow-y: auto; overflow-x: hidden; padding-top: 120px; padding-bottom: 140px;
    transition: transform 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.4s;
    scroll-behavior: smooth; /* Added Smooth Scroll */
}

/* Lists */
.list-section { margin-bottom: 20px; }
.list-title { padding: 0 24px 15px; font-size: 32px; font-weight: 800; letter-spacing: -0.5px; text-shadow: 0 4px 15px rgba(0,0,0,0.5); color: #F3F4F6; }

.glass-list-item {
    margin: 0 16px 16px; padding: 18px; border-radius: 26px;
    display: flex; align-items: center;
    background: rgba(31, 41, 55, 0.4); backdrop-filter: blur(30px);
    border-top: 1px solid rgba(255,255,255,0.1); border-left: 1px solid rgba(255,255,255,0.05);
    box-shadow: 5px 10px 20px rgba(0,0,0,0.3), inset 1px 1px 0 rgba(255,255,255,0.25), inset -1px -1px 15px rgba(0,0,0,0.4); 
    opacity: 0; transform: translateY(-50px);
}
.glass-list-item.drop-in { animation: liquid-drop-in 0.8s cubic-bezier(0.2, 1.2, 0.4, 1) forwards; }
.glass-list-item:active { transform: scale(0.95) !important; background: rgba(55, 65, 81, 0.5); box-shadow: inset 1px 1px 20px rgba(0,0,0,0.5); }

.item-icon {
    width: 58px; height: 58px; border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: white; margin-right: 18px;
    background: rgba(0,0,0,0.2);
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.15), 3px 5px 10px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
    /* Add: Shrink prevention */
    flex-shrink: 0;
}
.item-content { flex: 1; }
.item-name { font-size: 17px; font-weight: 700; margin-bottom: 5px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
/* Modified for extra info */
.item-meta { font-size: 13px; color: var(--text-sub); display: flex; flex-direction: column; gap: 4px; font-weight: 500; }
.status-pill { font-size: 11px; padding: 4px 10px; border-radius: 12px; font-weight: 700; box-shadow: inset 1px 1px 0 rgba(255,255,255,0.15), 2px 2px 5px rgba(0,0,0,0.2); backdrop-filter: blur(5px); display: inline-block; width: fit-content; cursor: pointer; transition: transform 0.2s;}
.status-pill.active { background: var(--accent-color) !important; color: white !important; border: 1px solid var(--accent-color) !important; }

/* Added for Brand Info display in List */
.brand-info-row { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.target-text { font-size: 11px; color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.1); padding: 2px 6px; border-radius: 6px; }
.color-dots { display: flex; gap: 4px; }
.color-dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); }

/* Detail View */
#detail-view { 
    transform: translateX(110%); 
    background: rgba(17, 24, 39, 0.85); /* Default */
    backdrop-filter: blur(60px); z-index: 20; 
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.6s;
    padding-bottom: 120px; /* Space for bottom button */
}

/* New Scrollable Page Title */
.scrollable-page-title {
    text-align: center; font-weight: 700; font-size: 17px; 
    padding-bottom: 20px; color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    letter-spacing: 0.5px;
}

.hero-section { display: flex; flex-direction: column; align-items: center; padding: 10px 0 30px; }

/* 【修正】Hero Image (Logo) Adjustment - Centering Fix */
.hero-img {
    width: 120px; height: 120px; border-radius: 35px; margin-bottom: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 1px 1px 0 rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.1); 
    background-size: cover; background-position: center; background-repeat: no-repeat;
    /* CENTERING MAGIC */
    display: flex; align-items: center; justify-content: center;
    background-color: #1a1a1a; 
    overflow: hidden; 
}
.hero-img img {
    width: 100%; height: 100%; object-fit: cover;
}
.hero-img span {
    font-size: 48px; font-weight: 800; color: rgba(255,255,255,0.9);
    line-height: 1; /* Fix vertical alignment */
}

/* Detail Brand Name Label */
.detail-brand-name {
    font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.8);
    margin-bottom: 10px; padding: 4px 12px; border-radius: 20px;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1);
}

.detail-glass-card {
    margin: 0 16px 16px; border-radius: 28px; overflow: hidden;
    background: rgba(31, 41, 55, 0.45); backdrop-filter: blur(40px);
    border-top: 1px solid rgba(255,255,255,0.1); border-left: 1px solid rgba(255,255,255,0.05);
    box-shadow: 10px 20px 40px rgba(0,0,0,0.4), inset 1px 1px 0 rgba(255,255,255,0.2), inset -2px -2px 30px rgba(0,0,0,0.4);
}
.detail-cell { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.06); }
.detail-cell:last-child { border-bottom: none; }

/* Bottom Nav */
.bottom-nav-container { 
    position: absolute; bottom: 35px; width: 100%; padding: 0 24px; 
    display: flex; justify-content: space-between; align-items: flex-end; 
    z-index: 50; pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glass-tab-switch {
    pointer-events: auto; display: flex; gap: 0; background: rgba(31, 41, 55, 0.6); backdrop-filter: blur(40px);
    border-radius: 36px; padding: 6px; border-top: 1px solid rgba(255,255,255,0.15); border-left: 1px solid rgba(255,255,255,0.1);
    box-shadow: 10px 20px 50px rgba(0,0,0,0.5), inset 1px 1px 0 rgba(255,255,255,0.25), inset -2px -2px 15px rgba(0,0,0,0.5);
    position: relative; height: 64px; width: 190px;
    transition: opacity 0.3s, transform 0.3s; /* Hide animation */
}

.tab-indicator {
    position: absolute; top: 6px; left: 6px; width: 89px; height: 52px; background: rgba(255, 255, 255, 0.15); border-radius: 28px;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.3), inset 1px 1px 0 rgba(255,255,255,0.3), inset -1px -1px 0 rgba(0,0,0,0.1);
    will-change: transform, width, left;
}
.tab-btn { position: absolute; top: 6px; width: 89px; height: 52px; border-radius: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 2; font-size: 10px; color: #9CA3AF; gap: 4px; transition: color 0.3s; cursor: pointer; }
.tab-btn:first-of-type { left: 6px; } .tab-btn:last-of-type { right: 6px; }
.tab-btn.active { color: #fff; text-shadow: 0 0 15px rgba(255,255,255,0.8); }
.talk-fab {
    pointer-events: auto; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #0A84FF, #0055D4);
    box-shadow: 5px 15px 40px rgba(10, 132, 255, 0.4), inset 2px 2px 0 rgba(255,255,255,0.3), inset -3px -3px 10px rgba(0,0,0,0.3);
    display: flex; align-items: center; justify-content: center; font-size: 26px; color: white;
    border: 1px solid rgba(255,255,255,0.05); transition: transform 0.4s var(--spring-overshoot);
}
.talk-fab:active { transform: scale(0.7) rotate(-15deg); }

/* Modals & Menus (Styles preserved) */
.modal-overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 101; pointer-events: none; 
    opacity: 0; transition: opacity 0.3s; /* Added default hidden state */
}
.modal-overlay.active { 
    pointer-events: auto; 
    opacity: 1; /* Added active visible state */
}
.modal-backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0); transition: background 0.3s; }
.modal-overlay.active .modal-backdrop { background: rgba(0,0,0,0.4); backdrop-filter: blur(8px); }
.glass-menu {
    position: absolute; top: 105px; width: 260px; border-radius: 28px; 
    background: rgba(31, 41, 55, 0.8); backdrop-filter: blur(50px);
    border-top: 1px solid rgba(255,255,255,0.1); border-left: 1px solid rgba(255,255,255,0.05);
    box-shadow: 15px 30px 80px rgba(0,0,0,0.7), inset 1px 1px 0 rgba(255,255,255,0.3), inset -2px -5px 30px rgba(0,0,0,0.4);
    opacity: 0; pointer-events: none; transform: scale(0.5); transform-origin: top center;
}
#left-menu-container .glass-menu { left: 20px; transform-origin: top left; }
#right-menu-container .glass-menu { right: 20px; transform-origin: top right; }
.modal-overlay.active .glass-menu { opacity: 1; pointer-events: auto; animation: menu-gooey-expand 0.6s var(--sticky-gooey) forwards; }
.menu-item { padding: 18px 24px; font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 14px; color: white; border-bottom: 1px solid rgba(255,255,255,0.08); }
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: rgba(255,255,255,0.1); }
/* Modified: target Material Symbols instead of i */
.menu-item .material-symbols-rounded { width: 24px; text-align: center; color: var(--accent-color); }
.menu-item.danger { color: #FF453A; } 
.menu-item.danger .material-symbols-rounded { color: #FF453A; }

.full-modal {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 95%; border-radius: 36px 36px 0 0;
    transform: translateY(110%); transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 300; display: flex; flex-direction: column;
    border-top: 1px solid rgba(255,255,255,0.2); background: rgba(17, 24, 39, 0.9); backdrop-filter: blur(50px);
    box-shadow: 0 -20px 80px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.2), inset 0 0 50px rgba(0,0,0,0.5);
}
.full-modal.active { transform: translateY(0); }
.modal-header { padding: 20px; text-align: center; font-weight: 700; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; }
.modal-close-btn { color: var(--accent-color); font-size: 16px; cursor: pointer; padding: 10px; }
.modal-save-btn { color: var(--accent-color); font-size: 16px; font-weight: bold; cursor: pointer; padding: 10px; opacity: 0.5; }
.modal-save-btn.active { opacity: 1; }
.modal-body { padding: 20px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 24px; }
.form-section-title { font-size: 13px; color: var(--text-sub); font-weight: 600; text-transform: uppercase; margin-bottom: 8px; margin-left: 10px; letter-spacing: 0.5px;}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 14px; color: #fff; font-weight: 600; margin-left: 10px; }

/* Checkbox style override for modals */
.modal-body input[type="checkbox"] { accent-color: white; width: 18px; height: 18px; }
.modal-body .checkbox-label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,0.8); }

/* New Color Picker Styles */
.color-edit-row {
    display: flex; flex-direction: column; gap: 8px;
    background: rgba(0,0,0,0.2); padding: 12px; border-radius: 16px; margin-bottom: 8px;
}
.color-role-label { font-size: 12px; color: var(--text-sub); font-weight: 600; }
.color-ui-group { display: flex; align-items: center; gap: 10px; }
.color-preview {
    width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.2);
    overflow: hidden; position: relative; flex-shrink: 0; cursor: pointer;
}
.color-preview input[type="color"] {
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; opacity: 0; cursor: pointer;
}
.color-mode-select {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); color: #fff;
    font-size: 12px; border-radius: 8px; padding: 6px 4px; cursor: pointer; outline: none;
}
.color-mode-select option { background: #333; }
.color-val-inputs { flex: 1; display: flex; gap: 6px; }
.color-input-sm {
    width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.3);
    color: #fff; text-align: center; font-size: 14px; padding: 4px 0; outline: none;
}
.color-input-sm:focus { border-bottom-color: var(--accent-color); }

/* --- Liquid Glass Segment Control (Toggle/Radio replacement) --- */
.glass-segment-control {
    display: flex; background: rgba(0,0,0,0.2); border-radius: 16px; padding: 4px;
    position: relative; border: 1px solid rgba(255,255,255,0.1); gap: 4px;
}
.glass-segment-item {
    flex: 1; text-align: center; padding: 10px 4px; font-size: 13px; color: rgba(255,255,255,0.6);
    border-radius: 12px; cursor: pointer; transition: color 0.3s; z-index: 2; font-weight: 500;
}
.glass-segment-item.active { color: #fff; font-weight: 700; text-shadow: 0 0 10px rgba(255,255,255,0.5); }

/* The liquid highlighter */
.glass-segment-indicator {
    position: absolute; top: 4px; left: 4px; height: calc(100% - 8px);
    background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
    border-radius: 12px; border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3), inset 1px 1px 0 rgba(255,255,255,0.2);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), width 0.3s;
    z-index: 1;
}

/* --- File Upload Area --- */
.file-upload-area {
    border: 2px dashed rgba(255,255,255,0.2); border-radius: 20px;
    padding: 20px; text-align: center; color: var(--text-sub);
    transition: border-color 0.3s, background-color 0.3s; cursor: pointer;
    background: rgba(255,255,255,0.02); display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.file-upload-area:hover { border-color: var(--accent-color); background: rgba(10, 132, 255, 0.05); }
.file-upload-preview { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; margin-top: 10px; display: none; }
.file-upload-preview.active { display: block; }

/* Hidden Input helper */
.hidden-input { display: none; }

/* Multi-Select Glass Buttons (Checkbox replacement) */
.glass-multi-select {
    display: flex; flex-wrap: wrap; gap: 10px;
}
.glass-multi-item {
    padding: 12px 20px; border-radius: 16px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.05);
}
.glass-multi-item:hover {
    background: rgba(255,255,255,0.08);
}
.glass-multi-item.active {
    background: rgba(10, 132, 255, 0.25); 
    border-color: #0A84FF;
    color: #fff;
    box-shadow: 0 0 15px rgba(10, 132, 255, 0.4), inset 1px 1px 0 rgba(255,255,255,0.2);
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
    transform: translateY(-1px);
}

/* Horizontal Color Grid */
.color-grid-container {
    display: flex;
    gap: 8px;
    width: 100%;
}
.color-grid-container .color-edit-row {
    flex: 1;
    margin-bottom: 0; 
    min-width: 0;
}
.color-grid-container .color-ui-group {
    flex-direction: column; 
    gap: 8px;
}
.color-grid-container .color-preview {
    width: 100%;
    height: 40px; 
}
.color-grid-container .color-mode-select {
    width: 100%;
}

/* Read-only Liquid Segment (for Detail View) */
.glass-segment-control.readonly {
    pointer-events: none; /* Disable interaction */
    background: rgba(255,255,255,0.02);
}
.glass-segment-control.readonly .glass-segment-indicator {
    background: rgba(10, 132, 255, 0.4); /* Brighter for display */
    box-shadow: 0 0 15px rgba(10, 132, 255, 0.6);
}
.glass-segment-control.readonly .glass-segment-item.active {
    color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.8);
}

/* Read-only Tags (for Detail View) */
.glass-multi-item.readonly-tag {
    cursor: default; pointer-events: none;
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}
.glass-multi-item.readonly-tag.active {
    background: rgba(10, 132, 255, 0.2);
    border-color: #0A84FF;
    color: #fff;
    box-shadow: 0 0 10px rgba(10, 132, 255, 0.3);
}

/* Floating Action Button in Detail */
.detail-float-btn {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 360px; z-index: 50;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

/* --- Color Help Modal Styles (Added) --- */
.color-help-card {
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-bottom: 10px;
}
.help-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.help-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.help-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}
.help-tagline {
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 12px;
    padding-left: 24px; /* Align with title */
}
.help-body {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 12px;
}
.help-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}
.help-row:last-child {
    margin-bottom: 0;
}
.help-label {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.help-text {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
}
.help-desc strong {
    color: var(--accent-color);
}

/* --- Price List Modal Styles (Added) --- */
.price-list-container {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.2);
}
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 12px 0;
}
.price-row:last-child {
    border-bottom: none;
}
.price-name {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}
.price-val {
    font-size: 13px;
    color: #fff;
    font-weight: 700;
    text-align: right;
}