/**
 * FRPUnlocker - Homepage styles
 * Neon glow, glass panels, responsive layout
 */

:root {
    --bg0: #05070a;
    --bg1: #0d1117;
    --panel: rgba(22, 27, 34, 0.85);
    --stroke: rgba(48, 54, 61, 0.9);
    --text: #ffffff;
    --muted: #8b949e;
    --neonA: #00f2ff;
    --neonB: #00ff88;
    --neonC: #a855f7;
    --neonA-glow: rgba(0, 242, 255, 0.4);
    --neonB-glow: rgba(0, 255, 136, 0.4);
    --neonC-glow: rgba(168, 85, 247, 0.4);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --radius-panel: 1.25rem;
    --radius-card: 0.75rem;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.4);
    --nav-height: 58px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg0);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--nav-height);
}

.home-main .container {
    max-width: 1700px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* ----- Navbar ----- */
.navbar-home {
    background: linear-gradient(180deg, var(--bg1) 0%, var(--bg0) 100%);
    border-bottom: 1px solid var(--stroke);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    min-height: var(--nav-height);
    padding: 0.5rem 0;
}

.navbar-home .container {
    max-width: 1700px;
}

.frp-logo {
    overflow: visible;
}

.frp-logo-ring {
    filter: drop-shadow(0 0 6px rgba(0, 233, 255, 0.9));
    animation: frp-ring-pulse 3s ease-in-out infinite;
}

.frp-logo-lock,
.frp-logo-shackle,
.frp-logo text,
.frp-logo-text-frp {
    animation: frp-inner-pulse 3s ease-in-out infinite;
}

.frp-logo-shackle {
    transform-origin: 20px 14px;
    animation:
        frp-inner-pulse 3s ease-in-out infinite,
        frp-unlock 4s ease-in-out infinite;
}

.frp-logo-text-frp {
    filter: drop-shadow(0 0 4px rgba(0, 233, 255, 0.9));
}

.brand-logo-text {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--muted);
    margin-left: 0.5rem;
    font-weight: 500;
}

@media (max-width: 991px) {
    .brand-tagline {
        display: none;
    }
}

.navbar-home .nav-link {
    color: var(--muted);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}

.navbar-home .nav-link:hover,
.navbar-home .nav-link.active {
    color: var(--text);
}

.navbar-home .dropdown-menu {
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
}

.navbar-home .dropdown-item {
    color: var(--text);
}

.navbar-home .dropdown-item:hover {
    background: var(--glass);
    color: var(--neonA);
}

.btn-join {
    background: transparent;
    color: var(--neonA);
    border: 1px solid var(--neonA);
    padding: 0.4rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 0 12px var(--neonA-glow);
}

.btn-join:hover {
    background: var(--neonA-glow);
    color: var(--text);
    box-shadow: 0 0 20px var(--neonA-glow);
}

.btn-signup {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: #fff;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-signup:hover {
    opacity: 0.95;
    color: #fff;
    transform: translateY(-1px);
}

.btn-login {
    background: linear-gradient(135deg, var(--neonA) 0%, #0066ff 100%);
    color: var(--bg0);
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 0 16px var(--neonA-glow);
}

.btn-login:hover {
    color: var(--bg0);
    box-shadow: 0 0 24px var(--neonA-glow);
    transform: translateY(-1px);
}

.dropdown-home .dropdown-menu {
    background: var(--panel);
    border: 1px solid var(--stroke);
}

/* Full width section */
.hero-slider-section {
    padding: 0;
}

.hero-panel {
    position: relative;
    height: 620px;
    max-height: 85vh;
    background: var(--panel);
    border-radius: 0;
    border: none;
    box-shadow: none;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: var(--bg1);
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
}

.hero-slide-frame {
    display: none;
}

.hero-slide.green .hero-slide-frame {
    border-color: var(--neonB);
    box-shadow: 0 0 24px var(--neonB-glow), inset 0 0 24px var(--neonB-glow);
}

.hero-slide.cyan .hero-slide-frame {
    border-color: var(--neonA);
    box-shadow: 0 0 24px var(--neonA-glow), inset 0 0 24px var(--neonA-glow);
}

.hero-slide.purple .hero-slide-frame {
    border-color: var(--neonC);
    box-shadow: 0 0 24px var(--neonC-glow), inset 0 0 24px var(--neonC-glow);
}

.hero-slide-corner {
    display: none;
}

.hero-slide-corner-tl {
    top: 12px;
    left: 12px;
    border-right: none;
    border-bottom: none;
    border-radius: var(--radius-card) 0 0 0;
}

.hero-slide-corner-tr {
    top: 12px;
    right: 12px;
    border-left: none;
    border-bottom: none;
    border-radius: 0 var(--radius-card) 0 0;
}

.hero-slide-corner-bl {
    bottom: 12px;
    left: 12px;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 var(--radius-card);
}

.hero-slide-corner-br {
    bottom: 12px;
    right: 12px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 var(--radius-card) 0;
}

.hero-slide.green .hero-slide-corner {
    border-color: var(--neonB);
}

.hero-slide.cyan .hero-slide-corner {
    border-color: var(--neonA);
}

.hero-slide.purple .hero-slide-corner {
    border-color: var(--neonC);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero-headline {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

/* Image-only hero (no text block) */
.hero-slide-content,
.hero-slide-right {
    display: none !important;
}

.btn-hero-cta {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
    transition: var(--transition);
}

.hero-slide.green .btn-hero-cta:hover {
    border-color: var(--neonB);
    box-shadow: 0 0 16px var(--neonB-glow);
}

.hero-slide.cyan .btn-hero-cta:hover {
    border-color: var(--neonA);
    box-shadow: 0 0 16px var(--neonA-glow);
}

.hero-slide.purple .btn-hero-cta:hover {
    border-color: var(--neonC);
    box-shadow: 0 0 16px var(--neonC-glow);
}

.hero-mini-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.hero-mini-tile {
    width: 70px;
    height: 70px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
}

.hero-glow-circle {
    position: absolute;
    right: 2rem;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glass) 0%, transparent 70%);
    border: 1px solid var(--glass-border);
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--stroke);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    background: var(--neonA);
    box-shadow: 0 0 12px var(--neonA-glow);
}

/* ----- Ticker ----- */
.ticker-wrap {
    background: var(--bg1);
    border-top: 1px solid var(--stroke);
    border-bottom: 1px solid var(--stroke);
    padding: 0.75rem 0;
    overflow: hidden;
}

.ticker-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: max-content;
    animation: ticker-scroll 40s linear infinite;
}

.ticker-wrap:hover .ticker-inner {
    animation-play-state: paused;
}

.ticker-item {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}

.ticker-sep {
    color: var(--stroke);
    font-size: 0.6rem;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes tool-strip-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes frp-ring-pulse {

    0%,
    100% {
        stroke-width: 2.2;
        opacity: 0.9;
        filter: drop-shadow(0 0 4px rgba(0, 233, 255, 0.6));
    }

    50% {
        stroke-width: 2.8;
        opacity: 1;
        filter: drop-shadow(0 0 10px rgba(0, 233, 255, 1));
    }
}

@keyframes frp-inner-pulse {

    0%,
    100% {
        opacity: 0.9;
    }

    50% {
        opacity: 1;
    }
}

@keyframes frp-unlock {

    0%,
    80%,
    100% {
        transform: rotate(0deg);
    }

    85% {
        transform: rotate(-10deg);
    }

    90% {
        transform: rotate(0deg);
    }
}

/* ----- Tool strip ----- */
.tool-strip-section {
    padding: 3rem 0;
    background: transparent;
}

.distributor-header {
    display: flex;
    justify-content: center;
    position: relative;
    margin-bottom: 2.5rem;
}

.distributor-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 40px;
    right: 40px;
    height: 1px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.05) 50%, transparent 50%);
    background-size: 8px 1px;
    background-repeat: repeat-x;
    transform: translateY(-50%);
    z-index: 0;
}

.distributor-badge {
    position: relative;
    z-index: 1;
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.tool-strip-wrap {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.tool-strip-wrap::-webkit-scrollbar-track {
    background: var(--bg1);
}

.tool-strip-wrap::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 3px;
}

.tool-strip-inner {
    display: flex;
    gap: 1rem;
    width: max-content;
    padding: 0.5rem 0;
    animation: tool-strip-scroll 40s linear infinite;
}

.tool-card {
    flex-shrink: 0;
    width: 160px;
    padding: 1.5rem 1rem;
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.25rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--neonA);
    background: #161b22;
}

.tool-card-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #1c2128;
    border: 3px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    transition: var(--transition);
    overflow: hidden;
}

.tool-card:hover .tool-card-icon {
    border-color: var(--neonA);
    box-shadow: 0 0 20px var(--neonA-glow);
    transform: scale(1.05);
}

.tool-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-card-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.tool-verified {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--neonB);
    background: rgba(0, 255, 136, 0.08);
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 136, 0.15);
}

.tool-card-fallback {
    display: none;
    font-size: 1.25rem;
    color: var(--neonA);
}

.tool-card-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
}

/* ----- Stats bar ----- */
.stats-bar {
    display: none;
}

.stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--neonA);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--muted);
}

/* ----- Content sections ----- */
.content-section {
    padding: 3rem 0;
}

.section-header {
    border-bottom: 1px solid var(--stroke);
    padding-bottom: 0.75rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text);
    margin: 0;
}

.btn-view-all {
    background: transparent;
    color: var(--neonA);
    border: 1px solid var(--neonA);
    padding: 0.35rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 0 12px var(--neonA-glow);
}

.btn-view-all:hover {
    background: var(--neonA-glow);
    color: var(--text);
}

.section-card {
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.section-card:hover {
    border-color: var(--neonA);
    box-shadow: 0 0 20px var(--neonA-glow);
    transform: translateY(-2px);
}

.section-card-img {
    height: 180px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--bg1);
    border-bottom: 1px solid var(--stroke);
    padding: 1rem;
}

.section-card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.section-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.btn-card-action {
    display: block;
    text-align: center;
    padding: 0.4rem 0.75rem;
    border-radius: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--neonA) 0%, #0066ff 100%);
    color: var(--bg0);
    border: none;
    transition: var(--transition);
}

.btn-card-action:hover {
    opacity: 0.9;
    color: var(--bg0);
    box-shadow: 0 0 16px var(--neonA-glow);
}

/* ----- Chat float ----- */
.chat-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neonA) 0%, #0066ff 100%);
    color: var(--bg0);
    border: none;
    box-shadow: 0 0 24px var(--neonA-glow);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
}

.chat-float:hover {
    transform: scale(1.05);
    box-shadow: 0 0 32px var(--neonA-glow);
}

/* ----- Responsive ----- */
@media (max-width: 767px) {
    .hero-panel {
        height: 250px;
    }

    .hero-slide-content {
        padding: 1rem;
    }

    .hero-mini-tiles {
        display: none;
    }

    .hero-glow-circle {
        display: none;
    }

    .section-card-img {
        height: 150px;
        padding: 0.5rem;
    }
}

@media (max-width: 575px) {
    .btn-join {
        display: none;
    }
}

/* ============================================================
   FOOTER WIDGETS
   ============================================================ */
.footer-widgets {
    background: var(--bg0);
    border-top: 1px solid var(--stroke);
    padding: 2.5rem 2rem;
    margin-top: 3rem;
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-widget-brand img {
    height: 40px;
    margin-bottom: 0.75rem;
}

.footer-widget-brand p {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.trustpilot-widget {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.trustpilot-stars {
    color: #00b67a;
    font-size: 0.875rem;
}

.trustpilot-text {
    font-size: 0.75rem;
    color: var(--muted);
}

.btn-subscribe {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-widget-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.footer-widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget-list li {
    margin-bottom: 0.625rem;
}

.footer-widget-list a {
    color: var(--muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.footer-widget-list a:hover {
    color: var(--neonA);
}

.footer-widget-list i {
    width: 16px;
    font-size: 0.8rem;
}

.payment-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.payment-icon {
    width: 40px;
    height: 26px;
    background: var(--bg1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--muted);
}

.footer-bottom {
    background: var(--bg0);
    border-top: 1px solid var(--stroke);
    padding: 1.25rem 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--muted);
    margin: 0;
}

/* ============================================================
   CHAT WIDGET
   ============================================================ */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.chat-button {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--neonA), #0066ff);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
    transition: all 0.2s ease;
}

.chat-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.5);
}

/* Footer Responsive */
@media (max-width: 1199px) {
    .footer-widgets-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .footer-widgets-grid {
        grid-template-columns: 1fr;
    }
}