/* ==========================================================================
   Lovnex Theme - Main Styles
   ========================================================================== */

/* --- Variables --- */
:root {
    --primary: #D2637C;
    --primary-light: #FFB1C0;
    --primary-dark: #9C3F64;
    --secondary: #FFDAD6;
    --secondary-light: #FFEDE9;
    --accent: #E8A170;
    --dark: #333333;
    --grey: #555555;
    --light: #EFEFEF;
    --white: #ffffff;
    --background: #FFFBFF;
    --border: #dedfde;
    --error: #BA1A1A;
    --success: #4CAF50;
}

/* --- Fonts --- */
@font-face {
    font-family: "Nexa";
    src: url("../fonts/nexa/Nexa-Light.woff2") format("woff2"),
         url("../fonts/nexa/Nexa-Light.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Nexa";
    src: url("../fonts/nexa/Nexa-Bold.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Nexa";
    src: url("../fonts/nexa/Nexa-Black.woff2") format("woff2"),
         url("../fonts/nexa/Nexa-Black.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Nexa", "Montserrat", sans-serif;
    color: var(--dark);
    background-color: var(--background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Nexa", "Montserrat", sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s;
}
a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-muted { color: var(--grey); }

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: 30px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary);
    border-color: var(--white);
}
.btn-white:hover {
    background-color: var(--light);
    color: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-lg {
    font-size: 16px;
    padding: 16px 40px;
}

.btn-block {
    display: block;
    width: 100%;
    margin-bottom: 12px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo img {
    height: 45px;
    background: var(--white);
    padding: 5px 10px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.main-nav .nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}
.main-nav .nav-menu li a {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}
.main-nav .nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s;
}
.main-nav .nav-menu li a:hover::after,
.main-nav .nav-menu li.current-menu-item a::after {
    width: 100%;
}

.site-header.scrolled .nav-menu li a {
    color: var(--dark);
}
.site-header.scrolled .nav-menu li a::after {
    background: var(--primary);
}
.site-header.scrolled .site-logo img {
    box-shadow: none;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.header-actions .btn-outline {
    color: var(--white);
    border-color: var(--white);
    padding: 10px 24px;
    font-size: 13px;
}
.header-actions .btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}
.header-actions .btn-primary {
    padding: 10px 24px;
    font-size: 13px;
}

.site-header.scrolled .header-actions .btn-outline {
    color: var(--primary);
    border-color: var(--primary);
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    margin: 6px 0;
    transition: all 0.3s;
}
.site-header.scrolled .hamburger span {
    background: var(--dark);
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/layout/main_bg.webp');
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    text-align: center;
    padding: 120px 20px 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4em;
    color: var(--white);
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-badges {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-badges .badge {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
}
.hero-badges .badge i {
    margin-right: 6px;
    color: var(--primary-light);
}

/* ==========================================================================
   WHY US SECTION
   ========================================================================== */
.why-us-section {
    padding: 100px 0;
    background-color: var(--secondary);
}

.section-title {
    font-size: 2.8em;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--dark);
    text-align: center;
    margin-bottom: 60px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 24px 60px -20px rgba(13, 18, 118, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px -20px rgba(13, 18, 118, 0.18);
}

.card-icon {
    margin-bottom: 20px;
}
.card-icon i {
    font-size: 2.5em;
    color: var(--primary);
}

.card h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: var(--dark);
}

.card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--grey);
}

/* ==========================================================================
   HOW IT WORKS SECTION
   ========================================================================== */
.how-it-works-section {
    padding: 100px 0;
    background-color: var(--secondary-light);
}

.step-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}
.step-row:last-child {
    margin-bottom: 0;
}
.step-row.reverse {
    flex-direction: row-reverse;
}

.step-image {
    flex: 0 0 45%;
    position: relative;
}
.step-image img {
    width: 100%;
    border-radius: 50%;
    aspect-ratio: 1;
    object-fit: cover;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}
.step-number {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(210, 99, 124, 0.4);
    z-index: 1;
}

.step-content h3 {
    font-size: 2em;
    text-transform: uppercase;
    font-style: italic;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--dark);
}
.step-content p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--grey);
}

/* ==========================================================================
   CTA SECURITY SECTION
   ========================================================================== */
.cta-security-section {
    display: flex;
    min-height: 400px;
}

.cta-content {
    flex: 1;
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cta-content h2 {
    font-size: 2.8em;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.cta-content p {
    font-size: 16px;
    line-height: 2;
    margin-bottom: 15px;
}
.cta-content .btn {
    align-self: flex-start;
    margin-top: 10px;
}

.cta-image {
    flex: 1;
    background-image: url('../images/layout/lets-play.jpg');
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

/* ==========================================================================
   DOWNLOAD APP SECTION
   ========================================================================== */
.download-app-section {
    padding: 80px 0;
    background: var(--white);
}

.section-subtitle {
    font-size: 18px;
    color: var(--grey);
    text-align: center;
    margin-top: -40px;
    margin-bottom: 40px;
}

.download-badges {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.download-badges a img {
    height: 55px;
    transition: transform 0.3s;
}
.download-badges a:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--background);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

.footer-top {
    margin-bottom: 40px;
}
.footer-logo {
    height: 40px;
}
.footer-tagline {
    font-size: 14px;
    color: var(--grey);
    margin-top: 8px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.footer-col h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 15px;
}

.footer-menu {
    padding: 0;
}
.footer-menu li {
    margin-bottom: 8px;
}
.footer-menu li a {
    color: var(--grey);
    font-size: 14px;
    transition: color 0.3s;
}
.footer-menu li a:hover {
    color: var(--primary);
}

.footer-download li {
    margin-bottom: 12px;
}
.footer-download img {
    max-width: 180px;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
}
.footer-bottom p {
    font-size: 14px;
    color: var(--grey);
}

/* ==========================================================================
   PAGE TEMPLATES
   ========================================================================== */
.page-header-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 120px 0 50px;
    color: var(--white);
}
.page-header-banner .page-title {
    font-size: 2.5em;
    font-weight: 700;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
    font-size: 14px;
    color: var(--grey);
}
.breadcrumbs a {
    color: var(--primary);
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumb-sep {
    margin: 0 6px;
    color: var(--border);
}
.breadcrumb-current {
    color: var(--dark);
}

/* About Page */
.about-container {
    max-width: 800px;
    margin: 0 auto;
}
.about-section {
    margin-bottom: 50px;
}
.about-section h2 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 15px;
}
.about-section h3 {
    font-size: 18px;
    color: var(--dark);
    margin: 25px 0 10px;
}
.about-section p {
    line-height: 1.8;
    color: var(--grey);
    margin-bottom: 12px;
}
.about-section ul {
    padding-left: 20px;
    margin-bottom: 15px;
}
.about-section ul li {
    margin-bottom: 8px;
    line-height: 1.7;
    color: var(--grey);
}
.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 25px 0;
}
.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}
.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.stat-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin: 8px 0;
}
.stat-card p {
    font-size: 13px;
    margin: 0;
}
.about-download {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}
.about-download img {
    height: 45px;
}

.page-content {
    padding: 60px 0;
    max-width: 900px;
}
.page-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ==========================================================================
   BLOG
   ========================================================================== */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 60px 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.post-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.post-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-body {
    padding: 20px;
}
.post-card-meta {
    font-size: 12px;
    color: var(--grey);
    margin-bottom: 8px;
}
.post-card-meta span + span::before {
    content: ' | ';
}
.post-card-title {
    font-size: 1.2em;
    margin-bottom: 10px;
}
.post-card-title a {
    color: var(--dark);
}
.post-card-title a:hover {
    color: var(--primary);
}
.post-card-excerpt {
    font-size: 14px;
    color: var(--grey);
    line-height: 1.6;
    margin-bottom: 12px;
}
.post-card-link {
    font-size: 14px;
    font-weight: 500;
}

/* Single post */
.single-post {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.post-hero-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}
.post-header {
    padding: 30px 30px 0;
}
.post-title {
    font-size: 2em;
    margin-bottom: 15px;
}
.post-meta {
    font-size: 14px;
    color: var(--grey);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.post-meta i {
    margin-right: 5px;
}
.post-body {
    padding: 0 30px 30px;
    font-size: 16px;
    line-height: 1.8;
}
.post-body img {
    border-radius: 8px;
    margin: 20px 0;
}
.post-footer {
    padding: 0 30px 30px;
}
.post-tags {
    font-size: 14px;
    color: var(--grey);
}
.post-tags a {
    color: var(--primary);
}

/* Social Share Buttons */
.post-share {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 30px;
    border-top: 1px solid var(--border);
}
.share-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--white);
    font-size: 16px;
    transition: transform 0.2s, opacity 0.2s;
}
.share-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}
.share-facebook { background: #1877F2; }
.share-twitter { background: #1DA1F2; }
.share-linkedin { background: #0A66C2; }
.share-whatsapp { background: #25D366; }

/* CTA Download in articles */
.post-cta-download {
    margin: 40px 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    overflow: hidden;
}
.post-cta-download .cta-inner {
    padding: 40px;
    text-align: center;
    color: var(--white);
}
.post-cta-download h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--white);
}
.post-cta-download p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
}
.post-cta-download .cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.post-cta-download .btn-primary {
    background: var(--white);
    color: var(--primary);
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 30px;
}
.post-cta-download .btn-primary:hover {
    background: var(--secondary-light);
}
.post-cta-download .cta-stores {
    display: flex;
    gap: 12px;
}
.post-cta-download .cta-stores img {
    height: 40px;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid var(--border);
}
.post-navigation a {
    font-size: 14px;
}

/* Sidebar */
.sidebar-widgets .widget {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--dark);
}
.sidebar-widgets .widget ul li {
    padding: 6px 0;
    border-bottom: 1px solid var(--light);
}
.sidebar-widgets .widget ul li:last-child {
    border-bottom: none;
}
.sidebar-widgets .widget ul li a {
    font-size: 14px;
    color: var(--grey);
}

/* Pagination */
.pagination {
    margin-top: 40px;
    text-align: center;
}
.pagination .nav-links {
    display: flex;
    gap: 8px;
    justify-content: center;
}
.pagination .page-numbers {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--dark);
    background: var(--white);
    border: 1px solid var(--border);
}
.pagination .page-numbers.current {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ==========================================================================
   404
   ========================================================================== */
.error-404-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}
.error-404-page h1 {
    font-size: 8em;
    color: var(--primary-light);
}
.error-404-page p {
    font-size: 18px;
    color: var(--grey);
    margin-bottom: 30px;
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-page {
    max-width: 800px;
}
.contact-info {
    margin-bottom: 40px;
}
.contact-info h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
}
.contact-info p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--grey);
}
.contact-methods {
    margin-top: 15px;
}
.contact-methods li {
    padding: 6px 0;
    font-size: 15px;
}
.contact-methods li i {
    color: var(--primary);
    margin-right: 8px;
    width: 20px;
}
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--dark);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
}
.contact-form textarea {
    resize: vertical;
}
@media (max-width: 600px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   FAQ PAGE
   ========================================================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto 60px;
}
.faq-category {
    margin-bottom: 40px;
}
.faq-category-title {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}
.faq-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.faq-item:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    text-align: left;
    gap: 12px;
}
.faq-question:hover {
    color: var(--primary);
}
.faq-icon {
    font-size: 14px;
    transition: transform 0.3s;
    flex-shrink: 0;
    color: var(--primary);
}
.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-answer.open {
    max-height: 500px;
}
.faq-answer p {
    padding: 0 20px 18px;
    color: var(--grey);
    line-height: 1.7;
    font-size: 15px;
}
.faq-cta {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    color: var(--white);
    margin-bottom: 60px;
}
.faq-cta h2 {
    color: var(--white);
    margin-bottom: 10px;
}
.faq-cta p {
    opacity: 0.9;
    margin-bottom: 25px;
}
.faq-cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.faq-cta .btn-primary {
    background: var(--white);
    color: var(--primary);
}
.faq-cta .btn-primary:hover {
    background: var(--secondary-light);
}
.faq-cta-stores {
    display: flex;
    gap: 12px;
}
.faq-cta-stores img {
    height: 40px;
}

/* ==========================================================================
   LOGIN POPUP
   ========================================================================== */
.login-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.login-popup-container {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    z-index: 1;
    animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--grey);
    transition: color 0.2s;
}
.login-popup-close:hover {
    color: var(--dark);
}

.login-popup-logo {
    text-align: center;
    margin-bottom: 25px;
}
.login-popup-logo img {
    height: 40px;
}

.login-screen h3 {
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 8px;
}

.login-buttons {
    margin-top: 25px;
}

.form-group {
    margin-bottom: 16px;
}
.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}
.form-group input:focus {
    border-color: var(--primary);
}

.login-error {
    background: rgba(186, 26, 26, 0.1);
    color: var(--error);
    font-size: 13px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 16px;
}

.phone-input-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s;
}
.phone-input-group:focus-within {
    border-color: var(--primary);
}
select.phone-prefix {
    padding: 14px 12px;
    background: var(--light);
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
    border: none;
    border-right: 1px solid var(--border);
    white-space: nowrap;
    cursor: pointer;
    outline: none;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 24px;
}

.otp-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}
.otp-inputs .otp-digit {
    width: 48px;
    height: 48px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s;
    padding: 0;
}
.otp-inputs .otp-digit:focus {
    border-color: var(--primary);
}
.phone-input-group input {
    border: none !important;
    border-radius: 0 !important;
    flex: 1;
}
.phone-input-group input:focus {
    border: none !important;
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
}
.login-links a {
    font-size: 13px;
    color: var(--grey);
}

.login-bottom {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--light);
    font-size: 14px;
}
.login-bottom a {
    font-weight: 600;
}

.login-download {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light);
}
.login-download p {
    font-size: 13px;
    margin-bottom: 12px;
}
.login-download-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.login-download-badges img {
    height: 40px;
    transition: transform 0.3s;
}
.login-download-badges a:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   APP DOWNLOAD BANNER
   ========================================================================== */
.app-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 40px 8px 16px;
    position: relative;
    z-index: 1001;
    font-size: 13px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    max-height: 60px;
}

.app-banner.dismissed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

.app-banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-banner-text {
    font-weight: 500;
    white-space: nowrap;
}

.app-banner-badges {
    display: flex;
    gap: 8px;
    align-items: center;
}

.app-banner-badges a {
    display: inline-flex;
    transition: transform 0.2s;
}

.app-banner-badges a:hover {
    transform: scale(1.05);
}

.app-banner-badges img {
    height: 28px;
    width: auto;
}

.app-banner-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s;
}

.app-banner-close:hover {
    color: var(--white);
}

@media (max-width: 480px) {
    .app-banner {
        font-size: 12px;
        padding: 6px 36px 6px 12px;
    }
    .app-banner-content {
        gap: 10px;
    }
    .app-banner-badges img {
        height: 24px;
    }
}

/* ==========================================================================
   ENV BANNER (debug)
   ========================================================================== */
.env-banner {
    background: #ff9800;
    color: #fff;
    text-align: center;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
    .cta-image { display: none; }
    .cta-security-section { display: block; }
    .step-row, .step-row.reverse { flex-direction: column; text-align: center; }
    .step-image { flex: none; width: 60%; margin: 0 auto; }
    .cards-grid { grid-template-columns: 1fr; }
    .blog-layout { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: 1fr; }
    .footer-columns { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 768px) {
    .hero-section { background-attachment: scroll; }
    .main-nav, .header-actions { display: none; }
    .hamburger { display: block; }

    .main-nav.active {
        display: flex;
        position: fixed;
        inset: 0;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 999;
    }
    .main-nav.active .nav-menu {
        flex-direction: column;
        gap: 20px;
    }
    .main-nav.active .nav-menu li a {
        color: var(--dark);
        font-size: 20px;
    }

    .hero-title { font-size: 2.5em; }
    .hero-subtitle { font-size: 16px; }
    .section-title { font-size: 2em; }

    .step-image { width: 80%; }

    .cta-content { padding: 40px 25px; }
    .cta-content h2 { font-size: 2em; }

    .login-popup-container { margin: 20px; padding: 30px 20px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2em; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-badges { flex-direction: column; align-items: center; gap: 10px; }
    .download-badges { flex-direction: column; align-items: center; }
}
