*{box-sizing:border-box}

.remove-photo{
    position:absolute;
    top:5px;
    right:5px;

    width:24px !important;
    height:24px !important;
    padding:0 !important;
    margin:0 !important;

    background:transparent;
    border:none;

    color:white;
    font-size:20px;
    font-weight:bold;
    line-height:24px;

    cursor:pointer;
    z-index:100;

    text-shadow:0 0 4px black;
}

.thumbnail{
    width:50px;
    height:50px;
    object-fit:cover;
    border-radius:10px;
}

#mainPhoto{
    width:100%;
    max-height:350px;
    object-fit:cover;
    border-radius:12px;
}

.photo-grid{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}



.photo-grid > div{
    position:relative;
    width:120px;
    height:120px;
}

.tag{
    padding:4px 8px;
    font-size:0.75rem;

    border-radius:14px;
    border:1px solid #ccc;

    cursor:pointer;
    user-select:none;
    transition:0.2s;
    background:#fff;
}

.tag.active{
    background:#1e3a5f;
    color:white;
    border-color:#1e3a5f;
}

input, textarea{
    width:100%;
    padding:12px;
    border-radius:6px;
    border:1px solid #ccc;
}

select{
    width:100%;
    padding:12px;
    border-radius:6px;
    border:1px solid #ccc;
}

.progress-bar{
    width:100%;
    height:20px;

    background:#ddd;

    border-radius:20px;

    overflow:hidden;
}

.progress-fill{
    width:0%;

    height:100%;

    background:#1e3a5f;

    transition:.3s;
}

#progressText{
    text-align:center;
    font-weight:bold;
    margin-top:10px;
}


.photo-grid img{
    width:120px;
    height:120px;
    object-fit:cover;
    display:block;
    border-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,.15);
}

.welcome-user{
    color:#ffd700;
    font-weight:bold;
    margin-left:20px;
    margin-right:10px;
}

body{
    margin:0;
    font-family:Arial;
    color:#333;

    background-size:cover;
    background-position:center;
    background-attachment:fixed;
    background-repeat:no-repeat;

   margin:0;
    padding:0;
    width:100%;
    height:100%;
}

.hero{
    width:100vw;
    height:100vh;

    background-image: url("Images/hero-background.png");
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    text-align:center;
    color:white;

    position:relative;
}

.hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.45);
}

.hero h1{
    font-size:4rem;
    font-weight:700;
    margin-bottom:20px;
    color:white;
}

.hero p{
    font-size:1.4rem;
    max-width:800px;
    line-height:1.7;
    color:white;
}

.hero *{
    position:relative;
    z-index:1;
}

.photo-container{
    position:relative;
    width:120px;
    height:120px;
    flex:0 0 120px;
}

.photo-container img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    border-radius:10px;
}

.photo-grid button{
    background:#d32f2f;
    color:white;
    border:none;
    font-weight:bold;
}

#profilePreview{
    border-top:5px solid #1e3a5f;
}

#profilePreview h3{
    color:#1e3a5f;
    margin-top:20px;
}

#saveProfile{
    width:100%;
    padding:16px;
}

.my-profile-card{
    background:white;
    max-width:300px;
    margin:20px auto;
    padding:20px;
    border-radius:15px;
    text-align:center;
    box-shadow:0 2px 12px rgba(0,0,0,.08);
}

.my-profile-card img{
    width:150px;
    height:150px;
    border-radius:50%;
    object-fit:cover;
    border:4px solid #ffd700;
}

.my-profile-card h2{
    margin-top:15px;
    color:#1e3a5f;
}

.swipe-card{
    background:white;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 2px 15px rgba(0,0,0,.12);
    max-width:420px;
    margin:20px auto;
}

.swipe-card img{
    width:100%;
    height:420px;
    object-fit:cover;
    display:block;
}

.card-content{
    padding:20px;
}

.swipe-buttons{
    display:flex;
    justify-content:center;
    gap:12px;
    flex-wrap:wrap;
    margin:20px 0;
}

.my-profile-card{
    background:white;
    padding:15px;
    border-radius:15px;
    text-align:center;
    box-shadow:0 2px 12px rgba(0,0,0,.08);
    min-width:180px;
}

.my-profile-card img{
    width:100px;
    height:100px;
    border-radius:50%;
    object-fit:cover;
    border:4px solid gold;
}

#myUsername{
    margin-top:10px;
    font-weight:bold;
    color:#1e3a5f;
}

nav a.active {
    color: #ffcc00;
    font-weight: bold;
    border-bottom: 2px solid #ffcc00;
}

#mainNav {
    display: flex;
    align-items: center;
    gap: 20px;
}

#mainNav a {
    margin: 0;
}

#myUsername {
    color: gold;
    font-weight: bold;
    white-space: nowrap;
}

#profilePhotoLink {
    display: flex;
    align-items: center;
}

#myPhoto {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}


/* HEADER */

header{
    background:#1e3a5f;
    padding:15px 30px;
}

.header-container{
    display:flex;
    justify-content:space-between;
    align-items:center;

    width:100%;
    max-width:1400px;

    margin:0 auto;
    padding:0 30px;
}

.logo a{
    color:white;
    text-decoration:none;
    font-size:2rem;
    font-weight:bold;
}

nav a{
    color:white;
    margin-left:15px;
    text-decoration:none;
    font-weight:bold;
}

/* LAYOUT */

.container{
    max-width:1000px;
    margin:40px auto;
    padding:20px;
}

.card{
    background:white;
    padding:30px;
    margin-bottom:25px;
    border-radius:10px;
    box-shadow:0 2px 12px rgba(0,0,0,.08);
}

h2{
    color:#1e3a5f;
    margin-bottom:15px;
}

.header-left{
    display:flex;
    align-items:center;
    gap:35px;
}

.logo{
    color:white;
    text-decoration:none;
    font-size:2rem;
    font-weight:bold;
}

#mainNav a{
    color:white;
    text-decoration:none;
    margin-right:18px;
    font-weight:bold;
}

.header-user{
    display:flex;
    align-items:center;
    gap:12px;
}

.header-user img{
    width:60px;
    height:60px;
    border-radius:50%;
    object-fit:cover;
    border:3px solid gold;
}

.discover-header{
    width:100vw !important;
    max-width:none !important;
    margin:0 !important;
    box-sizing:border-box;
}

.swipe-buttons{
    display:flex !important;
    justify-content:center !important;
    gap:15px !important;
    flex-wrap:wrap !important;
    margin:25px auto !important;
    position:relative !important;
    z-index:10 !important;
}

.swipe-buttons button{
    display:inline-block !important;
    width:auto !important;
    min-width:140px !important;
}

#passBtn{
    background:#ff4d6d;
}

#likeBtn{
    background:#28a745;
}

#superLikeBtn{
    background:#f4c430;
    color:#1e3a5f;
    font-weight:bold;
}

#blockBtn{
    background:#343a40;
}

.swipe-card{
    order:1 !important;
}

.swipe-buttons{
    order:2 !important;
    margin-top:25px !important;
    margin-bottom:25px !important;
}

.donate-page{
    max-width:900px;
    margin:60px auto;
    padding:20px;
}

.donate-card{
    background:white;
    padding:45px;
    border-radius:16px;
    box-shadow:0 2px 15px rgba(0,0,0,.08);
}

.donate-card h1{
    color:#1e3a5f;
    text-align:center;
    font-size:2.5rem;
}

.donate-card h2{
    color:#1e3a5f;
    margin-top:30px;
}

.donate-intro{
    font-size:1.2rem;
    line-height:1.7;
    text-align:center;
    color:#555;
}

.donate-card p,
.donate-card li{
    line-height:1.7;
}

.donate-button{
    margin-top:30px;
    width:100%;
    padding:16px;
    background:#ffd700;
    color:#1e3a5f;
    font-size:1.2rem;
    font-weight:bold;
    border:none;
    border-radius:10px;
    cursor:pointer;
}

.donate-note{
    text-align:center;
    margin-top:20px;
    color:#666;
}

.upload-label{
    display:inline-block;
    background:#1e3a5f;
    color:white;
    padding:14px 22px;
    border-radius:8px;
    cursor:pointer;
    font-weight:bold;
    margin:10px 0;
}

.upload-label:hover{
    opacity:.9;
}

.thumbnail{
    width:120px;
    height:120px;
    object-fit:cover;
    border-radius:10px;
    margin:8px;
}


/* TAGS */

.tags{
    display:flex;
    flex-wrap:wrap;
    gap:5px;
}

.tag{
    padding:10px 14px;
    border-radius:20px;
    border:1px solid #ccc;
    cursor:pointer;
    user-select:none;
    transition:0.2s;
    background:#fff;
}

.tag:hover{
    border-color:#1e3a5f;
    color:#1e3a5f;
}

/* selected state */
.tag.active{
    background:#1e3a5f;
    color:white;
    border-color:#1e3a5f;
}

/* FORM */

input[type="range"]{
    width:100%;
    margin-top:10px;
}

#radiusValue{
    color:#1e3a5f;
}

input, textarea{
    width:100%;
    padding:12px;
    border-radius:6px;
    border:1px solid #ccc;
}

textarea{
    min-height:120px;
}

/* BUTTON */

button{
    border:none;
    border-radius:6px;
    cursor:pointer;
}

button:hover{
    opacity:.9;
}

/* RESPONSIVE */

@media(max-width:768px){
    .container{
        padding:10px;
    }
}

/* ======================
   SWIPE CARDS
====================== */

.swipe-card:nth-child(1){ z-index:3; }
.swipe-card:nth-child(2){ z-index:2; transform: scale(.95) translateY(10px); }
.swipe-card:nth-child(3){ z-index:1; transform: scale(.9) translateY(20px); }

.swipe-section{
    max-width:400px;
    margin:40px auto;
    text-align:center;
}

.swipe-card{
    background:white;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 8px 25px rgba(0,0,0,.15);
    transition:.3s;
}

.card-content{
    padding:20px;
}

.buttons a{
    display:inline-block;
    padding:16px 36px;
    margin:10px;
    border-radius:50px;

    background:#1e3a5f;
    color:white;

    text-decoration:none;
    font-weight:bold;

    transition:.3s;
}

.buttons a:hover{
    transform:translateY(-2px);
}

#saveProfile{
    position:relative !important;
    z-index:9999 !important;
    pointer-events:auto !important;
}

*{
    box-sizing:border-box;
}

header{
    background:#1e3a5f;
    padding:15px 25px;
}

.logo{
    color:white;
    font-size:1.8rem;
    font-weight:bold;
}

nav a{
    color:white;
    text-decoration:none;
    margin-left:20px;
    font-weight:bold;
}

.hero h1{
    font-size:4rem;
    color:white;
}

.hero p{
    font-size:1.2rem;
    line-height:1.8;
    margin-bottom:35px;
}

.buttons a{
    display:inline-block;
    padding:15px 35px;
    margin:8px;
    background:#1e3a5f;
    color:white;
    text-decoration:none;
    border-radius:8px;
    transition:.3s;
}

.buttons a:hover{
    opacity:.9;
}

.feature{
    background:rgba(255,255,255,0.95);
    padding:30px;
    border-radius:16px;

    box-shadow:
        0 8px 25px rgba(0,0,0,.08);

    transition:.3s;
}

.feature:hover{
    transform:translateY(-5px);
}

.feature h3{
    color:#1e3a5f;
    font-size:1.3rem;
    margin-bottom:15px;
}

.feature p{
    line-height:1.6;
    color:#555;
}

.features{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    max-width:1200px;
    margin:0 auto 60px;
    padding:0 20px;
}

.feature{
    background:white;
    padding:25px;
    border-radius:12px;
    text-align:center;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.feature h3{
    color:#1e3a5f;
    margin-bottom:10px;
}

.flags{
    padding:40px 20px;
}

.flags h2{
    text-align:center;
    color:#1e3a5f;
    margin-bottom:20px;
}

.flags-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(28px, 1fr));
    gap:10px;
    width:100%;
    padding:0 20px;
    justify-items:center;
    align-items:center;
}

.flags-grid img{
    width:30px;
    height:22px;
}

.flags{
    width:100vw;
    margin-left:calc(-50vw + 50%);
    padding:40px 0;
}

.flags-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(28px, 1fr));
    gap:10px;
    width:100%;
    padding:0 20px;
    justify-items:center;
    align-items:center;
}

.flags-grid img{
    width:18px;
    height:13px;
    object-fit:cover;
    border:1px solid #ddd;
    border-radius:2px;
    transition:transform .2s ease;
}

.flags-grid img:hover{
    transform:scale(1.15);
}

footer{
    background:#1e3a5f;
    color:white;
    text-align:center;
    padding:20px;
    margin-top:50px;
}

@media (max-width:768px){

    nav{
        margin-top:10px;
    }

    nav a{
        margin:0 10px;
    }

    .hero h1{
        font-size:2.2rem;
    }
}

nav{
    display:flex;
    align-items:center;
    gap:25px;

    margin-left:auto;
}