
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}


html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}


img {
    max-width: 100%;
    height: auto;
    display: block;
}


@media (max-width: 768px) {
   
    .split-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

   
    .hero h1 {
        font-size: 2rem !important;
        padding: 0 10px;
    }
    
    .hero p {
        padding: 0 20px;
    }

   
    .form-panel {
        width: 100%;
        padding: 20px;
    }
    
    .auth-container {
        width: 100%;
        max-width: 100%;
    }

   
    .visual-panel {
        display: none;
    }
}


.carousel-container {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
   
    padding: 0 calc(50% - 160px);
}


.brand-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 10px 0;
}

.brand-card {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 700;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.brand-card:active {
    transform: scale(0.95);
    background: #e9ecef;
}

.frag-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.frag-item {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 15px;
    gap: 15px;
}

.frag-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.frag-info {
    flex: 1;
}

.frag-info h4 { font-size: 0.9rem; margin-bottom: 2px; }
.frag-info p { font-size: 0.7rem; color: #666; }

.add-btn {
    background: var(--sb-green);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    cursor: pointer;
}

.add-btn.added {
    background: #ccc;
    cursor: default;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.back-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}

.brand-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 140px;
}

.brand-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 50%;
   
}

.brand-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}


header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    z-index: 10;
    flex-shrink: 0;
    width: 100%;
}


.logo-placeholder {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 1.2rem;
    color: white;
}


.header-center {
    text-align: center;
    flex: 1;
    padding: 0 10px;
}

h1 {
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 10px;
}


.profile-pic {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    background: #ddd;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.nav-logo {
        height: 80px;
        width: auto;
        object-fit: contain;
        margin-top: -14px;
    }


main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.weather-hero {
    text-align: center;
    color: white !important;
    margin-bottom: 20px;
    z-index: 5;
    text-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.weather-hero h1 {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.7;
    letter-spacing: 3px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.weather-temp {
    font-size: 6rem;
    font-weight: 200;
    line-height: 1;
    letter-spacing: -3px;
    background: -webkit-linear-gradient(#fff, #ffffffaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.weather-context {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 5px;
}


.carousel-container {
    height: 450px;
    width: 100%;
    display: flex;
    align-items: center;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 0 50vw; 
    -webkit-overflow-scrolling: touch;
}


    .loader svg {
        width: 200px;
        height: 200px;
        animation: breathe 2s ease-in-out infinite;
    }

    @keyframes breathe {
        0%, 100% {
            opacity: 0.6;
            transform: scale(0.95);
        }
        50% {
            opacity: 1;
            transform: scale(1.05);
        }
    }
   
.weather-mood-card {
    width: 90%;
    max-width: 400px;
    padding: 15px;
    border-radius: 20px;
    margin: 0 auto 20px auto;
    text-align: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: background 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 5;
}


.mood-sunny {
    background: linear-gradient(135deg, #56CCF2 0%, #2F80ED 100%);
}
.mood-cloudy {
    background: linear-gradient(135deg, #757F9A 0%, #D7DDE8 100%);
    color: #333;
}
.mood-rain {
    background: linear-gradient(135deg, #141E30 0%, #243B55 100%);
}
.mood-thunder {
    background: linear-gradient(135deg, #23074d 0%, #cc5333 100%);
}
.mood-default {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

body { 
       
        background: #003322; 
        color: var(--text-dark); 
        height: 100vh; 
        display: flex; 
        flex-direction: column; 
        overflow: hidden; 
    }

   
    #dynamicBackground {
        width: 100%;
        padding-bottom: 40px;
        border-bottom-left-radius: 40px;
        border-bottom-right-radius: 40px;
        transition: background 1s ease;
        box-shadow: 0 10px 40px rgba(0,0,0,0.3);
        z-index: 5;
        position: relative;
    }

   
    .mood-sunny { background: linear-gradient(135deg, #2980B9 0%, #6DD5FA 100%); }
    .mood-cloudy { background: linear-gradient(135deg, #757F9A 0%, #D7DDE8 100%); }
    .mood-rain { background: linear-gradient(135deg, #141E30 0%, #243B55 100%); }
    .mood-thunder { background: linear-gradient(135deg, #23074d 0%, #cc5333 100%); }
    .mood-default { background: linear-gradient(135deg, #006241 0%, #1e3932 100%); }

   
    .mood-text {
        color: rgba(255,255,255,0.9);
        font-size: 0.9rem;
        margin-top: -10px;
        margin-bottom: 20px;
        font-weight: 500;
        letter-spacing: 0.5px;
    }

   
    header { padding: 25px; display: flex; justify-content: space-between; align-items: center; width: 100%; }

   
    main { 
        flex: 1; 
        display: flex; 
        align-items: center; 
        width: 100%; 
        position: relative;
        margin-top: -20px;
    }
   
        header { 
            width: 100%; 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
            padding: 10px 15px;
        }

        .nav-logo { 
            height: 60px;
            width: auto; 
            opacity: 1;
            filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
        }

        .profile-pic { 
            width: 60px; 
            height: 60px;
            border-radius: 50%; 
            object-fit: cover; 
            border: 3px solid rgba(255,255,255,0.5);
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        }
       
main {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: -30px;
    z-index: 1000; 
}


        body { 
            background: #f4f4f4; 
            color: var(--text-dark); 
            min-height: 100vh;
            height: auto;     
            display: flex; 
            flex-direction: column; 
            overflow-x: hidden; 
            overflow-y: auto; 
        }

       
        main {
            flex: 1;
            width: 100%;
            display: flex;
            align-items: center;
            position: relative;
            margin-top: -80px;
            z-index: 1000;    
            overflow: visible;
            padding-bottom: 40px;
        }

       
        .carousel-container {
            height: auto;     
            min-height: 500px;
            width: 100%;
            display: flex;
            align-items: center;
            overflow-x: scroll;
            overflow-y: visible;
            scroll-snap-type: x mandatory;
            padding: 20px 50vw;
            -webkit-overflow-scrolling: touch;
        }
        .carousel-container::-webkit-scrollbar { display: none; }

       
        .card-wrapper { 
            flex: 0 0 85vw;
            max-width: 350px;
            height: auto;    
            min-height: 450px;
            scroll-snap-align: center; 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            perspective: 1000px; 
            margin: 0 15px; 
        }

        .card { 
            background: white; 
            width: 100%; 
            height: 100%; 
            min-height: 480px;
            border-radius: 30px; 
            padding: 25px; 
            box-shadow: 0 15px 40px rgba(0,0,0,0.15); 
            display: flex; 
            flex-direction: column; 
            align-items: center; 
            text-align: center; 
            transition: transform 0.1s; 
        }

        .card { 
            background: white; 
            width: 100%; 
            height: auto;
            min-height: 480px; 
            border-radius: 30px; 
            padding: 25px; 
            box-shadow: 0 15px 40px rgba(0,0,0,0.15); 
            display: flex; 
            flex-direction: column; 
            align-items: center; 
            text-align: center; 
            transition: transform 0.1s;
            
           
            overflow: visible;
            margin-top: 50px; 
            position: relative; 
        }

       
        .fragrance-img-container { 
            width: 180px;     
            height: 240px;    
            margin-top: -100px;
            margin-bottom: 20px; 
            filter: drop-shadow(0 25px 25px rgba(0,0,0,0.3));
            z-index: 50;      
            position: relative;
        }


       
        #setupModal {
            z-index: 5000 !important; 
        }

       
        .brand-grid, .frag-list {
            display: grid; 
            grid-template-columns: repeat(2, 1fr); 
            gap: 15px; 
            padding: 10px 5px;
            
           
            overflow-y: auto; 
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;     
            flex: 1;                          
            min-height: 0;                    
            padding-bottom: 80px;             
        }

       
        #setupModal > div {
            display: flex;
            flex-direction: column;
            overflow: hidden;
            max-height: 90vh;
        }

    .search-container {
        position: relative;
        margin-bottom: 20px;
        flex-shrink: 0;
        z-index: 5;
    }

    .search-input {
        width: 100%;
        padding: 14px 45px 14px 20px;
        border-radius: 20px;
        border: 1px solid #e1e1e1;
        background: #f8f9fa;
        font-size: 0.95rem;
        color: #333;
        outline: none;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    }

    .search-input:focus {
        background: #ffffff;
        border-color: var(--sb-green);
        box-shadow: 0 4px 15px rgba(0, 98, 65, 0.15);
    }

    .search-input::placeholder {
        color: #aaa;
        font-weight: 500;
    }

    .search-icon {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        fill: #999;
        pointer-events: none;
        transition: fill 0.3s;
    }

    .search-input:focus + .search-icon {
        fill: var(--sb-green);
    }

    .frag-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 5px;
    }

    .frag-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        background: white;
        border: 1px solid #f0f0f0;
        border-radius: 25px;
        padding: 20px 15px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.03);
        transition: transform 0.2s, box-shadow 0.2s;
        text-align: center;
        height: 100%;
    }

    .frag-item:active {
        transform: scale(0.97);
    }

    .frag-item img {
        width: 100px;
        height: 100px;
        object-fit: contain;
        margin-bottom: 15px;
        filter: drop-shadow(0 8px 10px rgba(0,0,0,0.15));
        transition: transform 0.3s ease;
    }

    .frag-info {
        width: 100%;
        margin-bottom: 15px;
    }

    .frag-info h4 {
        font-size: 0.9rem;
        font-weight: 700;
        color: #1f1f1f;
        margin-bottom: 6px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 2.6em;
    }

    .frag-info p {
        font-size: 0.7rem;
        color: #888;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .add-btn {
        background: #1f1f1f;
        color: white;
        border: none;
        padding: 12px 0;
        width: 100%;
        border-radius: 15px;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 1px;
        cursor: pointer;
        transition: background 0.3s;
    }

    .add-btn.added {
        background: #e0e0e0;
        color: #888;
    }
    input, select, textarea {
    font-size: 1rem !important;
}

.search-input {
    font-size: 1rem;
    width: 100%;
    padding: 14px 45px 14px 20px;
    border-radius: 20px;
    border: 1px solid #e1e1e1;
    background: #f8f9fa;
    color: #333;
    outline: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

    nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 80px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        justify-content: space-around;
        align-items: center;
        border-top: 1px solid rgba(0,0,0,0.05);
        padding-bottom: env(safe-area-inset-bottom);
        z-index: 1000;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.02);
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: #9ca3af;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        width: 60px;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-item svg {
        width: 26px;
        height: 26px;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        fill: none;
        transition: all 0.3s ease;
    }

    .nav-item span {
        font-size: 0.7rem;
        font-weight: 500;
        letter-spacing: 0.3px;
    }

    .nav-item.active {
        color: #1f1f1f;
        transform: translateY(-2px);
    }

    .nav-item.active svg {
        fill: #1f1f1f;
        stroke: #1f1f1f;
    }

   
    .nav-item.active svg polyline {
        stroke: white;
        fill: none;
    }
   
.view-section {
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    padding-bottom: 90px;
    transition: opacity 0.3s ease;
}

.active { display: block; opacity: 1; }
.hidden-view { display: none; opacity: 0; }


.page-header {
    padding: 40px 20px 20px;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #eee;
}
.page-header h1 { font-size: 1.8rem; color: #1f1f1f; }
.page-header p { color: #888; font-size: 0.9rem; font-weight: 600; }


.collection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
}


.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px 30px;
    background: white;
}
.profile-img-large-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
}
.profile-img-large-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eee;
}
.edit-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--sb-green);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    font-size: 0.8rem;
}
.form-container {
    padding: 20px;
    background: #f4f4f4;
    height: 100%;
}
.form-container label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 8px;
    display: block;
    margin-left: 5px;
}
.page-header, 
.profile-header {
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.view-section {
    background: #f4f4f4;
}

.popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 10000; display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.popup-overlay.active { opacity: 1; pointer-events: all; }
.apple-popup {
    background: rgba(255, 255, 255, 0.95); width: 85%; max-width: 350px;
    border-radius: 20px; padding: 25px; text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2); transform: scale(0.95); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.popup-overlay.active .apple-popup { transform: scale(1); }
.popup-icon { font-size: 3rem; margin-bottom: 15px; display: block; }
.popup-title { font-size: 1.2rem; font-weight: 700; color: #1f1f1f; margin-bottom: 10px; }
.popup-text { font-size: 0.9rem; color: #666; line-height: 1.5; margin-bottom: 20px; }
.popup-btn {
    display: block; width: 100%; padding: 12px; border-radius: 12px; border: none;
    font-size: 1rem; font-weight: 600; cursor: pointer; margin-top: 10px;
    transition: transform 0.1s;
}
.btn-primary { background: #007AFF; color: white; }
.btn-secondary { background: #E5E5EA; color: #1f1f1f; }
.btn-price { display: flex; justify-content: space-between; align-items: center; padding: 15px; margin-bottom: 8px; text-align: left; }
.price-tag { font-weight: 700; }
.hidden-close { display: none; }

.visual-panel {
            display: none;
            flex: 1;
            background-image: url('/resources/hero.png') !important;
            background-size: cover !important;
            background-position: center;
            background-repeat: no-repeat;
            position: relative;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: var(--text-light);
            padding: 40px;
            overflow: hidden;
        }

        .visual-panel::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(0, 98, 65, 0.7) 0%, rgba(30, 57, 50, 0.8) 100%);
            z-index: 1;
        }

        .form-panel {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
            padding: 60px 40px;
            background: #fff;
            position: relative;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        .auth-container {
            width: 100%;
            max-width: 400px;
            margin: auto 0;
            opacity: 0;
            transform: translateY(20px);
            animation: slideUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
        }
        h2 {
            font-size: 2rem;
            color: var(--text-dark);
            margin-top: 20px !important;
            margin-bottom: 10px;
        }

        .feature-icon svg {
            color: var(--text-light);
            margin-bottom: 20px;
            filter: drop-shadow(0 0 8px rgba(255,255,255,0.3));
        }

        .btn-primary {
           
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }

        .cta-section {
            width: calc(100% - 80px);
            max-width: 1120px;
            margin: 60px auto 100px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(15px);
            border-radius: 40px;
            padding: 60px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            overflow: hidden;
            opacity: 0;
            animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.8s;
        }

        .cta-content {
            z-index: 2;
            max-width: 600px;
        }

        .cta-text h2 {
            font-size: 2.5rem;
            margin-bottom: 15px;
            color: #fff;
        }

        .cta-text p {
            font-size: 1.1rem;
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 0;
        }

        .cta-actions {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
            z-index: 2;
        }

        .cta-note {
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.4);
            font-weight: 500;
        }

        .cta-visual {
            position: absolute;
            right: -50px;
            top: 50%;
            transform: translateY(-50%);
            width: 400px;
            z-index: 1;
            pointer-events: none;
        }

        @media (max-width: 900px) {
            .cta-section {
                flex-direction: column;
                text-align: center;
                padding: 40px 20px;
                width: calc(100% - 40px);
            }
            .cta-content {
                margin-bottom: 30px;
            }
            .cta-visual {
                display: none;
            }
        }

        @media (max-width: 768px) {
            .cta-section {
                flex-direction: column;
                text-align: center;
                width: calc(100% - 30px);
                margin: 40px auto;
                padding: 40px 24px;
                gap: 30px;
                overflow: visible;
            }

            .cta-visual {
                position: relative;
                right: auto;
                top: auto;
                transform: none;
               
                width: 280px; 
                height: 280px;
                display: block;
                margin: 0 auto;
                z-index: 5;
            }

            .cta-visual svg {
                width: 100%;
                height: 100%;
                display: block;
            }

            .cta-content {
                order: 1;
            }

            .cta-visual {
                order: 2;
            }

            .cta-actions {
                order: 3;
                width: 100%;
            }
        }
        .view-section { display: none; width: 100%; height: calc(100vh - 75px); overflow-y: auto; padding-bottom: 30px; }
.view-section.active { display: block; }
.hidden-view { display: none !important; }

.analytics-container { padding: 20px; display: flex; flex-direction: column; gap: 20px; }
.analytics-card { background: white; border-radius: 25px; padding: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.analytics-card h3 { font-size: 0.9rem; color: #888; text-transform: uppercase; margin-bottom: 15px; letter-spacing: 1px; }

.usage-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.day-pill { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.day-label { font-size: 0.6rem; font-weight: 700; color: #bbb; }
.day-dot { width: 100%; aspect-ratio: 1; border-radius: 12px; background: #eee; border: 2px solid transparent; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.day-dot img { width: 100%; height: 100%; object-fit: cover; }
.day-dot.active { background: white; border-color: var(--sb-green); }

.top-fragrance { display: flex; align-items: center; gap: 20px; }
.top-frag-img { width: 80px; height: 80px; object-fit: contain; }
.top-frag-info h4 { font-size: 1.1rem; margin-bottom: 4px; }
.top-frag-info p { font-size: 0.8rem; color: #666; }

nav { grid-template-columns: repeat(4, 1fr); display: grid; }
.streak-badge-home {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 100;
}
.streak-icon { width: 16px; height: 16px; fill: #ff9500; }


       
        .page-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; }
        .header-actions { display: flex; gap: 10px; align-items: center; }
        
        .add-frag-btn {
            background: var(--sb-green);
            color: white;
            border: none;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            font-size: 1.2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 4px 10px rgba(0,98,65,0.3);
            transition: transform 0.2s;
        }
        .add-frag-btn:active { transform: scale(0.9); }

        .collection-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            padding: 0 20px 80px 20px;
        }

        .frag-item {
            position: relative;
            transition: all 0.3s ease;
        }

        .delete-btn {
            position: absolute;
            top: -8px;
            right: -8px;
            background: #ff4444;
            color: white;
            border: none;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            font-size: 14px;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            transform: scale(0.5);
            transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            z-index: 2;
        }

        .frag-item:hover .delete-btn {
            opacity: 1;
            transform: scale(1);
        }
        
       
        @media (max-width: 768px) {
            .delete-btn { opacity: 1; transform: scale(1); }
        }

        .removing {
            animation: removeAnim 0.5s forwards;
        }

        @keyframes removeAnim {
            0% { opacity: 1; transform: scale(1); }
            50% { opacity: 0; transform: scale(0.8); }
            100% { opacity: 0; transform: scale(0); height: 0; margin: 0; padding: 0; border: none; }
        }

       
.legal-container {
    margin: 30px 20px 100px 20px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.accordion {
    background-color: white;
    color: #333;
    cursor: pointer;
    padding: 20px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion:last-child {
    border-bottom: none;
}

.accordion:hover {
    background-color: #fafafa;
}

.accordion:after {
    content: '+'; 
    font-size: 1.2rem;
    color: var(--sb-green);
    font-weight: 400;
}

.accordion.active:after {
    content: '-';
}

.panel {
    padding: 0 20px;
    background-color: #fcfcfc;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-bottom: 1px solid #f0f0f0;
}

.panel-content {
    padding: 20px 0;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.6;
    text-align: left;
}

.panel-content h4 {
    color: #333;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.panel-content ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.legal-footer {
    text-align: center;
    font-size: 0.7rem;
    color: #999;
    margin-top: 20px;
    padding-bottom: 20px;
}


nav {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

.nav-item {
    display: flex;         
    flex-direction: column;
    align-items: center;   
    justify-content: center;
    flex: 1;               
    cursor: pointer;
}

.nav-item svg {
    width: 24px;           
    height: 24px;
    margin-bottom: 4px;    
    margin-left: auto;     
    margin-right: auto;    
    stroke: currentColor;  
    stroke-width: 2;
    fill: none;
}


.nav-item:nth-child(3) svg {
    fill: currentColor;
    stroke: none;
}