:root{
--deep-black:#050505;
--ocean-blue:#0077ff;
--tropical-teal:#00f2fe;
--paper:#f0f4f8;
--accent-blue:#00aaff;
}

/* ---------------------------
GLOBAL BODY + OCEAN BACKGROUND
---------------------------- */
body{
margin:0;
font-family:'DM Sans';
color:white;
overflow-x:hidden;
position:relative;

/* deep ocean gradient */

background:linear-gradient(
180deg,
#00111f 0%,
#002b4a 30%,
#004f7a 60%,
#0077aa 100%
);

min-height:200vh;
}

body::before{
content:"";
position:fixed;
top:-200px;
left:0;
width:100%;
height:500px;

background:radial-gradient(
ellipse at center,
rgba(255,255,255,.35) 0%,
rgba(255,255,255,.1) 30%,
transparent 70%
);

pointer-events:none;
z-index:-2;
}

body::after{
content:"";
position:fixed;
bottom:-200px;
left:0;
width:100%;
height:200%;

background-image:
radial-gradient(circle, rgba(255,255,255,.25) 2px, transparent 3px),
radial-gradient(circle, rgba(255,255,255,.15) 3px, transparent 4px),
radial-gradient(circle, rgba(255,255,255,.2) 2px, transparent 3px);

background-size:
120px 200px,
180px 260px,
240px 300px;

animation:bubbleRise 20s linear infinite;

pointer-events:none;
z-index:-1;
}

@keyframes bubbleRise{

0%{
transform:translateY(0);
}

100%{
transform:translateY(-600px);
}

}
.water-overlay{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;

background:linear-gradient(
45deg,
rgba(255,255,255,.03),
rgba(255,255,255,.08),
rgba(255,255,255,.03)
);

background-size:400px 400px;

animation:waterMove 12s linear infinite;

pointer-events:none;
z-index:-1;
}

@keyframes waterMove{

0%{
background-position:0 0;
}

100%{
background-position:400px 400px;
}

}
/* ---------------------------
NAVBAR
---------------------------- */
header{
position:fixed;
top:0;
width:100%;
height:18vh;

background:rgba(5,5,5,.7);
backdrop-filter:blur(20px);

z-index:5000;
display:flex;
justify-content:center;

border-bottom:1px solid rgba(255,255,255,0.1);

/* animation */
transition:transform .35s ease;
}

/* hidden state */

header.nav-hidden{
transform:translateY(-100%);
}
.header-container{
display:flex;
justify-content:space-between;
align-items:center;
width:92%;
}

.logo-container img{
height:16vh;
transition:.35s;
}

.logo-container img:hover{
transform:scale(1.1) rotate(-2deg);
}

/* nav links */

.nav_links{
display:flex;
list-style:none;
gap:1.2rem;
margin:0;
}

.nav_links a{
color:white;
text-decoration:none;
font-family:'Antonio';
text-transform:uppercase;
letter-spacing:.3vw;
font-size:1.8vh;

transition:.3s;
}

.nav_links a:hover{
color:#00f2fe;

text-shadow:
0 0 10px #00aaff,
0 0 25px #00f2fe;

transform:translateY(-2px);
}

/* header icons */

.header-icons{
display:flex;
gap:1vw;
align-items:center;
}

.header-icons img{
height:2.2vh;
min-height:18px;
filter:brightness(0) invert(1);
transition:.3s;
}

.header-icons img:hover{

transform:translateY(-3px) scale(1.2);

filter:drop-shadow(0 0 10px var(--accent-blue));

}

/* ---------------------------
MAIN
---------------------------- */

main{
padding-top:20vh;
width:90%;
margin:auto;
}

.account-title{
font-family:'Playfair Display';
font-style:italic;
font-size:3rem;
margin-bottom:40px;
color:white;
text-shadow:0 5px 20px rgba(0,0,0,.3);
}

/* ---------------------------
ACCOUNT GRID
---------------------------- */

.account-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:40px;
}

/* ---------------------------
CARDS
---------------------------- */

.account-card{
background:rgba(255,255,255,.08);
backdrop-filter:blur(12px);

border:1px solid rgba(255,255,255,.15);

padding:30px;
border-radius:25px;

color:white;

box-shadow:
0 10px 40px rgba(0,0,0,.4);

transition:.3s;
}

.account-card:hover{

transform:translateY(-10px);

box-shadow:
0 20px 70px rgba(0,0,0,.6);

}
/* ---------------------------
PROFILE
---------------------------- */

.profile{
display:flex;
gap:30px;
align-items:flex-start;
flex-wrap:wrap;
}

/* avatar */

.avatar{
width:110px;
height:110px;

border-radius:50%;

background:linear-gradient(
135deg,
#0077ff,
#00f2fe
);

display:flex;
align-items:center;
justify-content:center;

box-shadow:0 0 15px rgba(0,170,255,.4);

animation:avatarGlow 4s ease-in-out infinite;
transition:.3s;
}

@keyframes avatarGlow{

0%{box-shadow:0 0 10px rgba(0,170,255,.4);}
50%{box-shadow:0 0 35px rgba(0,242,254,.9);}
100%{box-shadow:0 0 10px rgba(0,170,255,.4);}

}

.avatar img{
width:100%;
height:100%;
object-fit:cover;
display:none;
border-radius: 100%;
}

.avatar i{
font-size:2rem;
color:white;
}

/* profile inputs */

.profile-info{
display:flex;
flex-direction:column;
gap:8px;
width:100%;
}

.profile-info label{
font-size:.8rem;
opacity:.7;
}

.profile-info input{

padding:12px;
border-radius:12px;
border:1px solid #ddd;

font-family:'DM Sans';
font-size:.9rem;

transition:.25s;
}

.profile-info input:focus{

outline:none;

border:1px solid var(--ocean-blue);

box-shadow:0 0 12px rgba(0,170,255,.4);

}

/* ---------------------------
BUTTON
---------------------------- */
.save-profile{

margin-top:12px;
padding:14px;

border:none;
border-radius:16px;

background:linear-gradient(
90deg,
#00aaff,
#00f2fe
);

color:#002b4a;

font-family:'Antonio';
letter-spacing:2px;

cursor:pointer;

transition:.3s;
}

.save-profile:hover{

transform:translateY(-3px) scale(1.05);

box-shadow:
0 0 20px rgba(0,242,254,.7);

}
/* ---------------------------
ORDERS
---------------------------- */

.order{

display:flex;
justify-content:space-between;

padding:12px 0;

border-bottom:1px solid #eee;

font-size:.9rem;

cursor:pointer;

transition:.25s;
}

.order:hover{

transform:translateX(8px);

background:rgba(0,170,255,.15);

border-radius:10px;

padding-left:10px;

color:var(--ocean-blue);

}

/* ---------------------------
FOOTER
---------------------------- */

.wave-container{
height:100px;
margin-top:100px;
overflow:hidden;
line-height:0;
}

.wave-container svg{
height:100%;
width:100%;
fill:var(--deep-black);
}

footer{

background-color:var(--deep-black);

padding:60px 0 30px;

color:white;
}

.footerContainer{
width:90vw;
margin:auto;
text-align:center;
}

.socialIcons{
display:flex;
justify-content:center;
gap:30px;
margin-bottom:40px;
}

.socialIcons a{
color:white;
font-size:30px;
transition:.3s;
}

.socialIcons a:hover{
color:var(--tropical-teal);
transform:translateY(-5px) scale(1.1);
}

.footerNav ul{
display:flex;
list-style:none;
justify-content:center;
gap:40px;
padding:0;
}

.footerNav a{
color:white;
text-decoration:none;
font-family:'Antonio';
text-transform:uppercase;
}

/* ---------------------------
MOBILE
---------------------------- */

@media(max-width:900px){

.account-grid{
grid-template-columns:1fr;
}

.account-title{
font-size:2rem;
}

}

.rewards-section {
    text-align: center;
    background: linear-gradient(145deg, rgba(5, 11, 36, 0.8), rgba(0, 40, 80, 0.4)) !important;
    margin-top: 5vh;
}

.points-display {
    font-family: 'Antonio', sans-serif;
    font-size: 3rem;
    color: #00aaff;
    text-shadow: 0 0 15px rgba(0, 170, 255, 0.5);
    margin: 10px 0;
}

.progress-container {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    margin: 20px 0;
    border: 1px solid rgba(0, 170, 255, 0.2);
}

.progress-bar {
    width: 0%; /* Controlled by JS */
    height: 100%;
    background: linear-gradient(90deg, #00aaff, #fa5ccd98);
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.8);
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.reward-status {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 20px;
    font-family: 'DM Sans', sans-serif;
}

.tier-info {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* --- NATURE & OCEAN SEARCH STYLING --- */
.search-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    inset: 0;
    background: rgba(10, 25, 35, 0.9); /* Sea-depth blue */
    backdrop-filter: blur(12px);
    padding: 5vh 2vw;
    animation: fadeIn 0.4s ease;
}

.organic-shape {
    background: white;
    margin: auto;
    padding: 6vh;
    width: 90%;
    max-width: 900px;
    min-height: 70vh;
    /* This creates a soft, pebble-like organic shape */
    border-radius: 30px; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.search-greeting {
    font-family: 'Raleway', sans-serif;
    font-weight: 200;
    color: #1a1a1a;
    font-size: 5vh;
    line-height: 1.1;
}

.search-greeting span {
    font-family: 'DM Sans';
    font-size: 2vh;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-blue);
}

.search-bar-container {
    margin: 4vh 0;
    position: relative;
    z-index: 3000;
}

#searchInput {
    width: 100%;
    border: none;
    border-bottom: 2px solid #eee;
    padding: 15px 0;
    font-size: 2.5vh;
    font-family: 'DM Sans';
    background: transparent;
    outline: none;
    transition: 0.3s;
}

.ocean-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#searchInput:focus + .ocean-line {
    width: 100%;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    max-height: 45vh;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom Scrollbar for the Grid */
.results-grid::-webkit-scrollbar { width: 4px; }
.results-grid::-webkit-scrollbar-thumb { background: var(--accent-blue); border-radius: 10px; }

/* Item Card Style */
.search-item-card {
    text-decoration: none;
    color: #333;
    transition: 0.3s;
    text-align: left;
}

.search-item-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 15px; /* Softer corners */
    margin-bottom: 10px;
    background: #f9f9f9;
}

.search-item-card h4 {
    font-family: 'Antonio';
    text-transform: uppercase;
    font-size: 1.8vh;
    margin: 5px 0;
}

.search-item-card p {
    font-size: 1.4vh;
    color: #888;
}

.close-search {
    position: absolute;
    top: 30px;
    right: 30px;
    cursor: pointer;
    font-size: 3vh;
    color: #ccc;
    transition: 0.3s;
}

.close-search:hover { color: var(--accent-blue); transform: rotate(90deg); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
/* Class to hide the navbar */
header.nav-search-active {
    opacity: 0;
    pointer-events: none; /* Prevents clicking links while hidden */
    transition: opacity 0.4s ease;
}

/* Ensure the normal state has a transition too */
header {
    transition: opacity 0.4s ease, transform 0.35s ease;
}