/* 🌍 Theme Variables */
:root {
    /* 🌞 LIGHT MODE */
    --primary:       #dc7228;
    --primary-dark:  #c45e06;
    --primary-light: #f58934;

    --bg:            #f8fafc;
    --bg-dark:       #ffffff;

    --glass:        rgba(255, 248, 235, 0.55);
    --glass-hover:  rgba(255, 245, 220, 0.70);
    --glass-card:   rgba(255, 250, 240, 0.60);

    --gold:        #f59e0b;
    --gold-light:       #7dd3fc;

    --text:          #1a1a1a;
    --text-muted:    #6b7280;

    --text-primary:  #1a1008;
    --text-secondary:#6b4a1e;

    --bg-footer:     #000000;
    --bg-footer-bar: #1c1c1c;

    --border:        rgba(180, 100, 20, 0.18);
    --border-hover:  rgba(180, 100, 20, 0.40);

    --shadow:        0 8px 40px rgba(0,0,0,0.25);
    --radius:         16px;
    --radius-sm:      10px;

    --error-color:   #dc3545;

    --gradient:      linear-gradient(90deg, #dc7228 50%, #000 100%);
}

[data-theme="dark"] {
    /* 🌙 DARK MODE */
    --primary:       #f58934;
    --primary-dark:  #dc7228;
    --primary-light: #ff9b50;

    --bg:            #000000;
    --bg-dark:       #1a1a1a;

    --glass:        rgba(10, 8, 20, 0.55);
    --glass-hover:  rgba(18, 14, 35, 0.68);
    --glass-card:   rgba(15, 11, 28, 0.60);

    --gold:        #f59e0b;
    --gold-light:       #7dd3fc;

    --text:          #ffffff;
    --text-muted:    #aaaaaa;

    --text-primary:  #f0e8d0;
    --text-secondary:#a89880;

    --bg-footer:     #111111;
    --bg-footer-bar: #1c1c1c;

    --border:        rgba(255, 165, 50, 0.15);
    --border-hover:  rgba(255, 165, 50, 0.35);

    --shadow:         0 8px 40px rgba(0,0,0,0.6);
    --radius:         16px;
    --radius-sm:      10px;

    --error-color:   #ff4d4f;

    --gradient:       linear-gradient(90deg, #f58934 50%, #000 100%);
}

/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background-image: url('https://d15v7gz4sgnote.cloudfront.net/backgrounds/new-bg-landscape.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    color: var(--text) !important;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.aurora-words {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(90deg, #e60073, #000000, #dc7228, #a54db7);
    background-size: 400% 400%;
    animation: aurora-text-gradient 8s ease infinite;
}

.aurora-words:nth-child(2) {
    animation-delay: 0.5s;
}
.aurora-words:nth-child(3) {
    animation-delay: 1s;
}
.aurora-words:nth-child(4) {
    animation-delay: 1.5s;
}
.aurora-words:nth-child(5) {
    animation-delay: 2s;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Search overlay styles */
.search-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(8px);
    z-index: 3000;
    opacity: 0; pointer-events: none;
    transition: opacity .25s;
}
.search-overlay.active { opacity: 1; pointer-events: all; }

.so-inner {
    background: #fff;
    max-width: 620px;
    margin: 0 auto;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,.4);
    transform: translateY(-16px);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.search-overlay.active .so-inner { transform: translateY(0); }

.so-bar {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}
.so-bar-icon { color: #888; font-size: 1rem; flex-shrink: 0; }

.so-input {
    flex: 1; border: none; outline: none;
    font-size: .9rem; font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    color: #111; background: transparent;
}
.so-input::placeholder { color: #bbb; }

.so-cancel-btn {
    background: none; border: none;
    color: #007aff; font-size: .85rem;
    font-weight: 700; font-family: 'Montserrat', sans-serif;
    cursor: pointer; flex-shrink: 0;
}

/* Results list */
.so-results { background: #fff; max-height: 68vh; overflow-y: auto; }

.so-result-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background .15s;
}

.so-result-item:last-child { border-bottom: none; }
.so-result-item:hover { background: #f8f8f8; }

.so-result-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.so-result-body { flex: 1; min-width: 0; }

.so-result-name {
    font-size: .9rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 2px;
}

.so-result-name mark {
    background: transparent;
    color: var(--sp-orange);
    font-weight: 800;
}

.so-result-sub {
    font-size: .75rem;
    color: #888;
    font-weight: 500;
}

.so-result-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.so-action-btn {
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: .72rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    color: #007aff;
    cursor: pointer;
    transition: background .15s;
}

.so-action-btn:hover { background: #e0e0e0; }

.so-section-label {
    padding: 10px 16px 4px;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #aaa;
    background: #fafafa;
}

.so-empty {
    text-align: center;
    padding: 40px 20px;
    color: #aaa;
    font-size: .85rem;
}

/* 🔝 Header */
.fp-header {
    background-color: #1a1a1a;;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.brand-logo img {
    width: 30px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text {
    color: #ffffff;
    font-weight: 900;
    font-size: 16px;
    margin-left: 5px;
}

.logo-tagline {
    font-size: 10px;
    color: #ff8c2a;
    opacity: 0.8;
    margin-top: 2px;
}

.header-mobile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaaaaa;
    text-decoration: none;
    font-size: .8rem;
    font-weight: 600;
    transition: color .2s;
}

.header-mobile-link:hover { color: var(--primary-light); }
.header-mobile-link img { width: 24px; height: 24px; }

.header-search {
    flex: 1; max-width: 520px; position: relative;
}
.header-search-input {
    width: 100%;
    background: #f5f5f5;
    border: none;
    border-radius: 28px;
    padding: 10px 20px 10px 42px;
    font-size: .8rem; font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    color: #111;
    cursor: pointer;
    transition: box-shadow .2s;
}
.header-search-input:focus { outline: none; box-shadow: 0 0 0 2px var(--primary); }
.header-search-input::placeholder { color: #999; }
.header-search-icon {
    position: absolute; left: 16px; top: 50%;
    transform: translateY(-50%);
    color: #999; font-size: .9rem; pointer-events: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-channeled {
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 8px 18px;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    transition: background .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-channeled:hover { background: var(--primary-dark); color: #fff; }

.channeled-modal {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: none;
    min-height: 420px;
    background: #000;
}

/* Background image */
.channeled-bg {
    position: absolute;
    inset: 0;
    background: url('https://www.finderspage.com/public/uploads/banners/banner_uq44DC5wAs.jpeg') center/cover no-repeat;
    filter: brightness(0.6) blur(1px);
    transform: scale(1.05);
}

/* Overlay */
.channeled-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Close button */
.channeled-close {
    position: absolute;
    top: 12px;
    right: 12px;
    opacity: 0.9;
}

/* Inner content */
.channeled-inner {
    max-width: 320px;
    color: #fff;
}

/* Title */
.channeled-title {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 18px;
    color: #fff !important;
}

/* Message text */
.channeled-text {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Author */
.channeled-author {
    font-size: 0.85rem;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

.notif-badge {
	position: absolute;
	top: -6px;
	right: -6px;
	background: #ff6b35;
	color: white;
	font-size: .55rem;
	font-weight: 800;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	/* border: 2px solid var(--bg); */
    border: 2px solid #111111;
}

.nav-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    /* color: var(--text-secondary); */
    color: #a89880;
    position: relative;
    text-decoration: none;
}
.nav-icon-btn:hover {
    background: rgba(245,158,11,0.15);
    border-color: var(--border-hover);
    color: var(--gold);
    transform: translateY(-1px);
}

.badge-dot {
    position: absolute;
    top: 4px; right: 4px;
    width: 8px; height: 8px;
    background: var(--gold);
    border-radius: 50%;
    border: 1.5px solid var(--glass-nav);
}

.avatar {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

.btn-login-link {
    color: var(--primary);
    font-weight: 700;
    font-size: .85rem;
    text-decoration: none;
    transition: color .2s;
}

.btn-login-link:hover { color: var(--primary-light); }

.btn-sign-up-link {
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    text-decoration: none;
    transition: color .2s;
    /* animation: shake 2s infinite; */
    display: inline-block;
    animation: flash 1s linear infinite;
    text-shadow:
        0 0 10px #fff,
        0 0 20px #fff,
        0 0 30px #e60073,
        0 0 40px #e60073,
        0 0 50px #e60073,
        0 0 60px #e60073,
        0 0 70px #e60073;
}

@keyframes flash {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}


/* Shake + Shadow animation */
@keyframes shake {

  /* Shake part */
  0% {
    transform: translate(1px, 1px) rotate(0deg);
    filter: drop-shadow(0 0 15px #dc7228);
  }

  20% {
    transform: translate(-3px, 0px) rotate(1deg);
  }

  40% {
    transform: translate(1px, -1px) rotate(1deg);
  }

  /* Pause part (no shake but glow stays) */
  50% {
    transform: translate(0, 0) rotate(0);
  }

  100% {
    transform: translate(0, 0) rotate(0);
    filter: drop-shadow(0 0 5px #dc7228);
  }
}


/* NAV */
.header-nav {
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between; /* 🔥 MAIN FIX */
    align-items: center;
    gap: 10px;
    padding: 0 8px;
}

/* LEFT SIDE */
.header-nav-left {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
}

.header-nav-left::-webkit-scrollbar {
    display: none;
}

/* RIGHT SIDE */
.header-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-link-item {
    color: #fff;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 600;
    padding: 12px 10px;
    white-space: nowrap;
    transition: color .2s, border-bottom .2s;
    border-bottom: 2px solid transparent;
}

.nav-link-item:hover,
.nav-link-item.active {
    color: var(--primary-light);
    border-bottom-color: var(--primary);
}

/* 🌗 Theme toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 12px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    white-space: nowrap;
}
.theme-toggle:hover { border-color: var(--border-hover); color: var(--gold); }

.fp-btn {
	display: inline-block;
	padding: 8px 0px;
	font-size: 14px;
	font-weight: 500;
	border-radius: 50px;
	text-align: center;
	text-decoration: none;
	min-width: 100px;
	cursor: pointer;
	border: 0;
}

/* ── RESPONSIVE ── */
/* ── FOOTER ────────────────────────────────────── */
.site-footer {
    background-color: var(--bg-footer);
    color: var(--text-light);
    padding: 48px 24px 24px;
}

.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-brand-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-links { padding: 0; list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: .9rem;
    transition: color .2s;
}
.footer-links a:hover { color: var(--primary-light); }

/* =========================================
   Partner Modal
========================================= */
.fp-partner-modal .modal-content{
    border: none;
    overflow: hidden;
}
.fp-partner-content{
    position: relative;
    border-radius: 28px;
    padding: 10px;
    background: var(--bg-dark);
    backdrop-filter: blur(18px);
    transition: 0.3s ease;
}

/* Glow */
.fp-partner-glow{
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.35;
    z-index: 0;
    background: linear-gradient(135deg,#7c3aed,#06b6d4);
}

/* Body */
.fp-partner-body{
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 35px 28px 40px;
}

/* Close */
.fp-partner-close{
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 10;
    filter: var(--filter);
    opacity: 0.7;
}

.fp-partner-close:hover{
    opacity: 1;
}

/* Icon */
.fp-partner-icon-wrap{
    margin-bottom: 24px;
}

.fp-partner-icon{
    width: 95px;
    height: 95px;
    margin: auto;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.fp-partner-icon img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Title */
.fp-partner-title{
    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
}

/* Text */
.fp-partner-text{
    font-size: 16px;
    line-height: 1.8;
    max-width: 500px;
    margin: auto auto 28px;
}

/* Points */
.fp-partner-points{
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.fp-point{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
}

.fp-point i{
    font-size: 18px;
    color: var(--gold);
}

/* Button */
.fp-partner-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    transition: 0.3s ease;
    min-width: 240px;
}

.fp-partner-btn i{
    font-size: 18px;
}

.fp-partner-btn:hover{
    transform: translateY(-2px);
    color: var(--primary-hover);
}

/* Mobile */
@media(max-width:576px){

    .fp-partner-title{
        font-size: 24px;
    }

    .fp-partner-body{
        padding: 32px 20px;
    }

    .fp-partner-btn{
        width: 100%;
    }

}

.newsletter-box {
    background: #222;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}

.newsletter-box h5 {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 6px;
    text-align: center;
}

.newsletter-box p {
    font-size: .9rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    text-align: center;
}

.newsletter-input {
    width: 100%;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px 14px;
    color: white;
    font-size: .82rem;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.newsletter-input::placeholder { color: #888; }
.newsletter-input:focus { outline: none; border-color: var(--primary); }

.btn-subscribe {
    width: 100%;
    background: linear-gradient(90deg, rgba(220, 114, 40, 1) 50%, #000 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: background .2s;
}

.btn-subscribe:hover { background: #000; }

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-icon {
	width: 36px;
	height: 36px;
	border: 1px solid #444;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-size: 1rem;
	transition: color .2s, border-color .2s;
}

.social-icon:hover {
    color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.social-icon img {
	width: 34px;
	height: 34px;
	object-fit: contain;
	background: #111111;
	padding: 5px;
	border-radius: 10px;
	transition: 0.2s;
}

.footer-links-col h6 {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #aaaaaa;
    margin-bottom: 14px;
}

.footer-join h6 {
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 4px;
	color: #fff;
}

.footer-join p {
	font-size: 1rem;
	color: #fff;
	margin-bottom: 10px;
}

.join-script {
    font-family: 'Bonheur Royale', cursive;
    font-size: 3.5rem;
    color: #fff;
    line-height: 0.8;
    margin-bottom: 16px;
}

.btn-signup-footer {
    background: linear-gradient(90deg, rgba(220, 114, 40, 1) 50%, #000 100%);
    color: white;
    border: none;
    border-radius: 24px;
    padding: .3rem .65rem;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    display: inline-block;
    transition: background .2s;
}

.btn-signup-footer:hover { background: #000; color: white; }

.footer-bottom {
    text-align: center;
    color: #fff;
    font-size: 1rem;
    padding-top: 28px;
    margin-top: 28px;
    border-top: 1px solid #222;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .btn-channeled span { display: none; }
}

.info-box {
    background: rgba(255, 165, 0, 0.08);
    border: 1px solid rgba(255, 165, 0, 0.3);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-top: 10px;
    color: #ff9800;
}

.colored-toast.swal2-icon-success {
  background-color: #28a745 !important;
}

.colored-toast.swal2-icon-error {
  background-color: #dc3545 !important;
}

.colored-toast.swal2-icon-warning {
  background-color: #ffc107 !important;
}

.colored-toast.swal2-icon-info {
  background-color: #17a2b8 !important;
}

.colored-toast.swal2-icon-question {
  background-color: #6c757d !important;
}

.colored-toast .swal2-title,
.colored-toast .swal2-close,
.colored-toast .swal2-html-container {
  color: white;
}
