:root {
    --background: #0B1220;
    --surface: #111827;
    --primary: #FFD54F;
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --accent-gold: #FFD54F;
    --glass-white: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --whatsapp-green: #25D366;
    --card-bg: #111827;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

#app-container {
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background-color: var(--background);
}

/* App Bar */
.app-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 60px;
    background-color: var(--background);
    display: flex;
    align-items: center;
    padding: 0 16px;
    justify-content: space-between;
}

.header-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
}

.icon-btn:active {
    background-color: var(--glass-white);
}

/* Drawer */
.drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: var(--background);
    z-index: 1001;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.drawer.open {
    left: 0;
}

.drawer-header {
    padding: 40px 24px;
    border-bottom: 1px solid var(--glass-border);
    background: linear-gradient(to bottom, var(--surface), var(--background));
}

.drawer-header img {
    height: 44px;
}

.drawer-menu {
    padding: 16px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.nav-item i {
    width: 32px;
    color: var(--primary);
    font-size: 18px;
}

.nav-item:active {
    background-color: var(--glass-white);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Search */
.search-container {
    padding: 12px 20px;
}

.search-bar {
    background-color: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    cursor: pointer;
}

.search-bar i {
    color: var(--text-secondary);
    margin-right: 12px;
}

.search-bar input {
    background: none;
    border: none;
    color: white;
    width: 100%;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

/* Banner */
.banner-container {
    margin: 20px 16px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--primary);
    height: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 4px;
}

/* Categories */
.section {
    padding-top: 28px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: white;
    padding-left: 20px;
    margin-bottom: 16px;
}

.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    padding: 0 16px 12px 16px;
    gap: 16px;
    scrollbar-width: none;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.category-item {
    flex: 0 0 auto;
    text-align: center;
    width: 80px;
}

.category-icon {
    width: 80px;
    height: 80px;
    background-color: var(--surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border: 1px solid var(--primary);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.category-icon i {
    color: var(--primary);
    font-size: 28px;
}

.category-item span {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Playfair Display', serif;
}

/* Custom Design Card */
.custom-design-card {
    margin: 32px 20px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 213, 79, 0.3);
    position: relative;
    overflow: hidden;
}

.custom-design-card::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 60px;
    opacity: 0.1;
}

.custom-design-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 8px;
}

.custom-design-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.highlights li {
    font-size: 13px;
    color: #e2e8f0;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.highlights i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 12px;
}

.whatsapp-btn {
    width: 100%;
    height: 56px;
    background-color: var(--primary);
    border: none;
    border-radius: 12px;
    color: var(--background);
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(255, 213, 79, 0.3);
}

/* Design Cards */
.design-card {
    flex: 0 0 160px;
    background-color: var(--surface);
    border-radius: 14px;
    overflow: hidden;
    border: 0.5px solid var(--glass-border);
    position: relative;
    transition: transform 0.2s;
}

.design-card:active {
    transform: scale(0.97);
}

.design-img-container {
    height: 160px;
    background-color: black;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.design-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 8px;
}

.btn-wishlist {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.btn-wishlist.active i {
    color: #ff4757;
    font-weight: 900;
}

.badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary);
    color: var(--background);
    font-size: 10px;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 4px;
}

.design-info {
    padding: 12px;
}

.design-cat {
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.design-id {
    color: white;
    font-size: 15px;
    font-weight: 700;
    margin-top: 2px;
}

/* Modal / Details */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.open {
    transform: translateX(0);
}

.modal-header {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: sticky;
    top: 0;
    background: var(--background);
    z-index: 10;
}

.modal-content {
    height: calc(100% - 60px);
    overflow-y: auto;
    padding-bottom: 100px;
}

.detail-image-box {
    width: 100%;
    aspect-ratio: 1/1;
    background: black;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-image-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 20px;
}

.detail-info-box {
    padding: 24px;
}

.detail-id {
    font-size: 28px;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    margin-bottom: 4px;
}

.detail-cat {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 20px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.chip {
    background: var(--surface);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid var(--glass-border);
}

.divider {
    height: 1px;
    background: var(--glass-border);
    margin: 24px 0;
}

.detail-label {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.detail-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.sticky-bottom {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    width: auto;
    z-index: 100;
}

/* Grid View for Search/Categories */
.grid-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px;
}

.grid-view .design-card {
    flex: none;
}

/* FAB */
.fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background-color: var(--whatsapp-green);
    border: none;
    color: white;
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loader */
.loader-container {
    padding: 40px;
    display: flex;
    justify-content: center;
}

.loader {
    width: 40px;
    height: 40px;
    border: 4px solid var(--glass-white);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Before/After Showcase - Idea to Reality */
.ba-comparison {
    display: flex;
    width: 100%;
    height: 140px;
    background: #000;
}

.ba-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    border: 0.5px solid #222;
}

.ba-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ba-label {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 8px;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 800;
}

.ba-label.reality {
    left: auto;
    right: 5px;
    background: rgba(37, 211, 102, 0.8);
}

.ba-card {
    border: 1px solid var(--primary) !important;
}

.hidden { display: none; }
