/* ===================================
   GLOBAL STYLES & RESET
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0E1B4D;
    --secondary-color: #FFB100;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --border-color: #e0e0e0;
    --text-color: #1a1a1a; /* alias for text-dark */
    --background-light: #F5F5F5; /* alias for light-gray */
    --text-muted: #666666; /* alias for text-gray */
    --success-color: #28a745;
    
    --font-primary: 'EB Garamond', serif;
    --font-secondary: 'Questrial', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(14, 27, 77, 0.08);
    --shadow-md: 0 4px 16px rgba(14, 27, 77, 0.12);
    --shadow-lg: 0 8px 32px rgba(14, 27, 77, 0.16);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

body.page-apoio {
    background: var(--white);
}

/* Container styling (Barba.js removed) */
.site-wrapper {
    position: relative;
}

.site-container {
    position: relative;
    margin-top: 80px;
}

/* Page transition container */
main {
    position: relative;
    will-change: transform, opacity;
    margin-top: 120px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container-small {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

/* ===================================
   GSAP ANIMATION INITIAL STATES
   =================================== */

/* Hide hero elements initially only when NOT managed by AOS - GSAP will animate them otherwise */
.hero-content:not([data-aos]) .hero-title,
.hero-content:not([data-aos]) .hero-subtitle,
.hero-content:not([data-aos]) .btn {
    opacity: 0;
    transform: translateY(30px);
}

/* Keep hero elements visible after GSAP animation completes */
.hero-content.gsap-animated .hero-title,
.hero-content.gsap-animated .hero-subtitle,
.hero-content.gsap-animated .btn {
    opacity: 1;
    transform: none;
}

/* Hide sections initially - ScrollTrigger will animate them in */
.section {
    padding: 80px 0;
    opacity: 0;
    transform: translateY(50px);
}

/* Sections that have been animated by GSAP */
.section.gsap-animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
    transform: translateY(0);
    will-change: transform;
    padding: 0;
}

.navbar {
    display: grid;
    grid-template-columns: 1fr auto 1.2fr;
    align-items: center;
    padding: 18px 0; /* Slimmer default header */
    position: relative;
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 250px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* Responsive header sizing */
@media (min-width: 1200px) {
    .navbar {
        padding: 28px 0; /* slightly larger on wide screens */
    }
    .logo-img { height: 56px; }
    .logo-text { font-size: 2rem; }
}

@media (max-width: 1024px) {
    .navbar { padding: 16px 0; }
    .logo-img { height: 48px; }
}

@media (max-width: 768px) {
    .navbar { padding: 12px 0; grid-template-columns: 1fr auto 1fr; }
    .logo-img { height: 40px; }
    .logo-text { font-size: 1.4rem; }
    .nav-actions { gap: 10px; }
}

@media (max-width: 375px) {
    .navbar { padding: 8px 0; }
    .logo-img { height: 36px; }
    .logo-text { font-size: 1.2rem; }
    .hamburger { height: 20px; }
}

.nav-menu {
    display: flex;
    gap: 40px;
    justify-self: center;
}

.nav-link {
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    color: var(--text-dark);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    position: relative;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.icon-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    border-color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary-color);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    cursor: pointer;
    padding: 8px;
    margin: 0;
    z-index: 1001;
    background: none;
    border: none;
    position: relative;
    visibility: visible;
    opacity: 1;
    overflow: visible;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger animation when active */
.hamburger {
    /* ensure a predictable height so absolute centering works */
    height: 24px;
    align-items: center;
    justify-content: center;
}

.hamburger span {
    transform-origin: center;
}

/* When active: position the first and third bars absolutely and center them vertically */
.hamburger.active {
    gap: 0;
}

.hamburger.active span:nth-child(1),
.hamburger.active span:nth-child(3) {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    top: 50%;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(-50%) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-50%) rotate(-45deg);
}

/* Force hamburger to show on mobile */
@media (max-width: 768px) {
    .nav-actions {
        display: flex !important;
    }
    
    .hamburger {
        display: flex !important;
        width: 24px;
        gap: 6px;
        padding: 4px;
    }
    
    .hamburger span {
        height: 4px;
    }
    
    .icon-btn {
        display: flex;
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .nav-actions {
        display: flex !important;
    }
    
    .hamburger {
        display: flex !important;
        width: 20px;
        gap: 4px;
        padding: 4px;
    }
    
    .hamburger span {
        height: 3px;
    }
    
    .icon-btn {
        display: flex;
        width: 24px;
        height: 24px;
    }
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    margin-top: 80px;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2d6b 100%);
    position: relative;
    overflow: hidden;
}

.hero-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #e5a000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: #1a2d6b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* ===================================
   SECTION HEADERS
   =================================== */

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* ===================================
   BOOK CARDS
   =================================== */

.book-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    /* Prevent layout shifts */
    contain: layout style;
}

/* Grid view needs relative positioning for absolute image/info */
.books-grid:not(.list-view) .book-card {
    position: relative;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.book-image {
    /* Always vertical rectangular book proportion */
    aspect-ratio: 1 / 2;
    max-height: 420px;
    background: var(--white);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    transition: transform 240ms var(--easing), box-shadow 240ms var(--easing);
    z-index: 1;
}

/* Grid view: image covers full card, info slides up on hover */
.books-grid:not(.list-view) .book-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.book-image img {
    /* Show complete book image without cropping and centered */
    max-width: 88%;
    max-height: 88%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 300ms ease, filter 300ms ease;
    z-index: 1;
    box-shadow: 0 6px 18px rgba(11,23,55,0.08);
    border-radius: 4px;
}

.books-grid:not(.list-view) .book-card:hover .book-info {
    transform: translateY(0);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

.book-image::after {
    /* remove vignette so book image remains clean */
    content: '';
    display: none;
}

/* Force book images to full opacity to override inline/animated opacity values that cause glitches */
.book-image img,
.book-image img.gsap-animated {
    opacity: 1 !important;
    transition: none !important;
}

.book-image i {
    font-size: 4rem;
    color: var(--border-color);
}

.book-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 2;
    font-weight: 600;}

.book-info {
    padding: 12px;
}

/* Grid view: info slides up from bottom on hover */
.books-grid:not(.list-view) .book-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(.2,.9,.3,1);
    border-radius: 0 0 12px 12px;
    z-index: 2;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
}

.book-category {
    color: var(--text-gray);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.book-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.book-author {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.book-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.book-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.book-price-old {
    font-size: 1rem;
    color: var(--text-gray);
    text-decoration: line-through;
    margin-left: 8px;
}

.add-to-cart,
.add-to-cart-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart:hover,
.add-to-cart-btn:hover {
    background: #e5a000;
    transform: scale(1.1);
}

/* Book card clickable area */
.book-card[data-href] {
    cursor: pointer;
}

/* ===================================
   SWIPER CUSTOMIZATION
   =================================== */

.featured-swiper,
.related-swiper {
    padding: 20px 0 60px;
    overflow: hidden;
}

.featured-swiper .swiper-wrapper,
.related-swiper .swiper-wrapper {
    align-items: stretch;
}

.featured-swiper .swiper-slide,
.related-swiper .swiper-slide {
    height: auto;
    display: flex;
}

/* Reserve vertical space for related books to avoid CLS when slides are injected */
.related-swiper {
    min-height: 360px; /* adjusts to expected slide height */
}
.related-swiper .swiper-wrapper {
    align-items: stretch;
    min-height: 320px;
}
.related-swiper .swiper-slide {
    min-height: 320px;
}

/* Skeleton slide for related books while loading */
.related-skeleton {
    background: linear-gradient(90deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.02) 50%, rgba(0,0,0,0.04) 100%);
    border-radius: 12px;
    height: 320px;
    margin: 0 10px;
    box-shadow: var(--shadow-sm);
}
.related-swiper.skeleton .related-skeleton {
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s linear infinite;
}

.swiper-pagination {
    bottom: 10px !important;
    text-align: center;
}

.swiper-pagination-bullet {
    background: var(--primary-color);
    opacity: 0.3;
    width: 12px;
    height: 12px;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--secondary-color);
    transform: scale(1.2);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.featured-swiper:hover .swiper-button-next,
.featured-swiper:hover .swiper-button-prev,
.related-swiper:hover .swiper-button-next,
.related-swiper:hover .swiper-button-prev {
    opacity: 1;
    visibility: visible;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-button-disabled {
    opacity: 0.3 !important;
    cursor: not-allowed;
}

/* Mobile: Always show navigation buttons */
@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        opacity: 1;
        visibility: visible;
        width: 40px;
        height: 40px;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 16px;
    }
}

/* Ensure proper swiper container sizing */
.featured-swiper .swiper-container,
.related-swiper .swiper-container {
    width: 100%;
    margin: 0 auto;
}

/* Enhanced swiper slide styling */
.featured-swiper .swiper-slide .book-card,
.related-swiper .swiper-slide .book-card {
    width: 100%;
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Loading state for swiper */
.swiper-loading {
    position: relative;
}

.swiper-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===================================
   SWIPER CUSTOMIZATION
   =================================== */

.featured-swiper,
.related-swiper {
    padding: 20px 0 60px;
    overflow: hidden;
}

.featured-swiper .swiper-wrapper,
.related-swiper .swiper-wrapper {
    align-items: stretch;
}

.featured-swiper .swiper-slide,
.related-swiper .swiper-slide {
    height: auto;
    display: flex;
}

/* Reserve larger vertical space for related books to avoid CLS when slides are injected */
.related-swiper {
    min-height: 480px; /* larger reserved height to match final content and reduce CLS */
}
.related-swiper .swiper-wrapper {
    align-items: stretch;
    min-height: 440px;
}
.related-swiper .swiper-slide {
    min-height: 440px;
}
/* Skeleton slide for related books while loading */
.related-skeleton {
    background: linear-gradient(90deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.02) 50%, rgba(0,0,0,0.04) 100%);
    border-radius: 12px;
    height: 420px; /* match updated slide size */
    margin: 0 10px;
    box-shadow: var(--shadow-sm);
}
.related-swiper.skeleton .related-skeleton {
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s linear infinite;
}
/* ===================================
   BENEFITS SECTION
   =================================== */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--secondary-color), #ffc942);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.06);
}

.benefit-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.benefit-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.benefit-card p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.85;
}

/* ===================================
   BLOG CARDS
   =================================== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    width: 100%;
    height: 250px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-image i {
    font-size: 3rem;
    color: var(--border-color);
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.blog-excerpt {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    gap: 10px;
}

/* ===================================
   NEWSLETTER SECTION
   =================================== */

.newsletter-section {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="10" cy="50" r="0.5" fill="rgba(255,255,255,0.02)"/><circle cx="90" cy="30" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.newsletter-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.newsletter-text h3 {
    font-family: var(--font-primary);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.newsletter-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-input-wrapper input {
    flex: 1;
    border: none;
    padding: 16px 20px;
    font-size: 1rem;
    color: var(--text-dark);
    background: transparent;
    outline: none;
    font-family: var(--font-secondary);
}

.newsletter-input-wrapper input::placeholder {
    color: var(--text-gray);
    opacity: 0.8;
}

.newsletter-input-wrapper input:focus {
    box-shadow: 0 0 0 2px var(--secondary-color);
    border-radius: 8px;
}

.btn-newsletter {
    width: 100%;
    padding: 16px 32px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 177, 0, 0.3);
}

.btn-newsletter:hover {
    background: #e6a000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 177, 0, 0.4);
}

.btn-newsletter:active {
    transform: translateY(0);
}

.btn-newsletter i {
    font-size: 0.9rem;
}

/* Newsletter Responsive */
@media (max-width: 768px) {
    .newsletter-section {
        padding: 60px 0;
    }

    .newsletter-text h3 {
        font-size: 2.2rem;
    }

    .newsletter-text p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .newsletter-input-wrapper {
        padding: 25px;
        gap: 12px;
    }

    .newsletter-input-wrapper input {
        padding: 14px 18px;
    }

    .btn-newsletter {
        padding: 16px 24px;
    }
}

@media (max-width: 480px) {
    .newsletter-text h3 {
        font-size: 1.8rem;
    }

    .newsletter-text p {
        font-size: 1rem;
    }

    .newsletter-section {
        padding: 40px 0;
    }

    .newsletter-input-wrapper {
        padding: 20px;
    }
}

/* ===================================
   NEWSLETTER SECTION
   =================================== */

.newsletter-section {
    background: var(--secondary-color);
    padding: 4rem 0;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.newsletter-text {
    flex: 1;
}

.newsletter-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: var(--heading-font);
}

.newsletter-text p {
    color: var(--primary-color);
    opacity: 0.85;
    font-size: 1rem;
    line-height: 1.5;
}

.newsletter-form {
    flex: 1;
    max-width: 500px;
}

.newsletter-input-wrapper {
    display: flex;
    gap: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.newsletter-input-wrapper input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

.newsletter-input-wrapper input::placeholder {
    color: #999;
}

.btn-newsletter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-newsletter:hover {
    background: #1a2d6d;
}

.btn-newsletter i {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        width: 100%;
        max-width: 100%;
    }
    
    .newsletter-input-wrapper {
        flex-direction: column;
    }
    
    .newsletter-input-wrapper input {
        text-align: center;
    }
    
    .btn-newsletter {
        justify-content: center;
        width: 100%;
    }
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
    /* Prevent CLS */
    contain: layout style;
    /* Reserve space to prevent layout shifts */
    min-height: 400px;
}

/* Hide footer while loading */
body.loading .footer {
    display: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-section a {
    opacity: 0.8;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}

.contact-info i {
    color: var(--secondary-color);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* ===================================
   SEARCH OVERLAY
   =================================== */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    /* Remove CSS transition - GSAP controls animation */
}

.search-overlay.active {
    display: flex;
}

.search-container {
    width: 90%;
    max-width: 700px;
    position: relative;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow-x: hidden;
}

.close-search {
    /* Position fixed to ensure visibility and consistent placement */
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 2101;
    color: var(--white);
    font-size: 1.6rem;
    background: rgba(0,0,0,0.18);
    border: none;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 8px;
    transition: var(--transition);
}

.close-search:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-input {
    width: 100%;
    padding: 20px;
    font-size: 1.5rem;
    background: var(--white);
    border: none;
    border-radius: 10px;
    font-family: var(--font-secondary);
}

.search-results {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.search-result-image {
    width: 60px;
    height: 80px;
    background: var(--light-gray);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-image i {
    font-size: 24px;
    color: var(--primary-color);
}

.search-result-content {
    flex: 1;
}

.search-result-content h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.search-result-content p {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: var(--text-gray);
}

.search-result-type {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.no-results {
    text-align: center;
    color: var(--text-gray);
    font-style: italic;
    padding: 20px;
}

/* ===================================
   CART SIDEBAR
   =================================== */

/* Reserve space for cart sidebar to prevent CLS */
.cart-sidebar,
.user-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100vw;
    height: 100%;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow-x: hidden;
    /* Prevent CLS */
    contain: layout style;
    will-change: transform;
}

.cart-sidebar.active,
.user-sidebar.active {
    right: 0;
}

.cart-header,
.user-header {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h3,
.user-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.close-cart,
.close-user {
    font-size: 1.5rem;
    color: var(--text-gray);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 8px;
    margin-bottom: 15px;
}

.cart-item-image {
    width: 60px;
    height: 80px;
    background: var(--white);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.cart-item-author {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.cart-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary-color);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.remove-item {
    color: var(--text-gray);
    font-size: 1.2rem;
}

.remove-item:hover {
    color: #e74c3c;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.btn-checkout {
    width: 100%;
    justify-content: center;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-gray);
}

.empty-cart i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* ===================================
   USER SIDEBAR
   =================================== */

.user-content {
    padding: 25px;
}

.auth-form {
    margin-bottom: 20px;
}

.auth-form h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    /* Prevent CLS */
    contain: layout style;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.auth-form .btn {
    width: 100%;
    justify-content: center;
}

.auth-toggle {
    text-align: center;
    margin-top: 20px;
    color: var(--text-gray);
}

.auth-toggle a {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-gray);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    padding: 0 15px;
    font-size: 0.85rem;
    text-transform: lowercase;
}

/* Google Sign In Button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.btn-google:hover {
    background: var(--light-gray);
    border-color: #4285f4;
}

.btn-google:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-google i {
    font-size: 1.1rem;
    color: #4285f4;
}

.user-profile {
    text-align: center;
}

.profile-info {
    margin-bottom: 30px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--light-gray);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2rem;
}

.profile-info h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.profile-info p {
    color: var(--text-gray);
}

.user-profile .btn {
    width: 100%;
    justify-content: center;
}

/* ===================================
   OVERLAY
   =================================== */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ===================================
   PAGE HEADER
   =================================== */

.page-header {
    margin-top: 80px;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2d6b 100%);
    text-align: center;
    color: var(--white);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.page-header-full {
    margin-top: 80px;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2d6b 100%);
    text-align: center;
    color: var(--white);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.page-title {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ===================================
   BOOKS CATALOG
   =================================== */

.catalog-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    background: var(--white);
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.view-toggle {
    display: flex;
    gap: 10px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
}

.view-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    /* Let content define height (removed large forced min-height) */
    min-height: 0;
    /* Prevent layout shifts */
    contain: layout style;
}

/* Constrain book card width inside responsive grid while allowing list-view to span full width */
.books-grid .book-card {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

/* Ensure grid cards keep an intrinsic height when children are absolutely positioned */
.books-grid:not(.list-view) .book-card {
    aspect-ratio: 1 / 1.6; /* width : height (tweak if you want taller/slimmer) */
    max-width: 260px;
    margin: 0 auto;
    display: block;
}

.books-grid.list-view .book-card {
    max-width: none;
    width: 100%;
    margin: 0;
}

.books-grid.list-view {
    grid-template-columns: 1fr;
}

.books-grid.list-view .book-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
    border-radius: 10px;
}

/* Mobile: always show info overlay (no hover) and keep image visible */
@media (max-width: 800px) {
    .books-grid:not(.list-view) .book-info {
        transform: translateY(0);
        position: relative;
        background: rgba(255,255,255,0.98);
        backdrop-filter: none;
        box-shadow: none;
        border-radius: 0;
    }

    .books-grid:not(.list-view) .book-image {
        position: relative;
        height: auto;
        padding: 8px;
    }
}

.books-grid.list-view .book-image {
    width: 140px;
    /* In list view keep image compact and let the img scale */
    aspect-ratio: auto;
    max-height: 180px;
    padding: 8px;
    flex: 0 0 140px;
}

.books-grid.list-view .book-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Responsive tweaks: keep book-card proportional on small screens */
@media (max-width: 600px) {
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 18px;
    }

    .books-grid .book-card {
        max-width: 220px;
        margin: 0 auto;
    }

    .book-image {
        max-height: 340px;
    }

    .book-info {
        padding: 8px;
    }

    .book-title { font-size: 0.95rem; }
    .book-author { font-size: 0.8rem; }
}

@media (max-width: 360px) {
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .books-grid .book-card {
        max-width: 180px;
    }

    .book-image {
        max-height: 260px;
    }

    .book-info { padding: 6px; }
    .book-title { font-size: 0.9rem; }
    .book-author { font-size: 0.75rem; }
}

.books-grid.list-view .book-info {
    flex: 1;
}

/* ===================================
   SKELETON LOADERS
   =================================== */

.skeleton-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.skeleton-img {
    width: 100%;
    height: 350px;
    background: linear-gradient(90deg, var(--light-gray) 25%, #e0e0e0 50%, var(--light-gray) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-text {
    height: 20px;
    margin: 15px 20px;
    background: linear-gradient(90deg, var(--light-gray) 25%, #e0e0e0 50%, var(--light-gray) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-text.short {
    width: 60%;
}

/* Book card skeleton */
.book-card.skeleton {
    pointer-events: none;
}

.book-card.skeleton .book-image,
.skeleton-image {
    background: linear-gradient(90deg, var(--light-gray) 25%, #e0e0e0 50%, var(--light-gray) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.book-card.skeleton .skeleton-text {
    margin: 8px 0;
    background: linear-gradient(90deg, var(--light-gray) 25%, #e0e0e0 50%, var(--light-gray) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===================================
   BOOK DETAIL PAGE
   =================================== */

.book-detail-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.book-detail-image {
    position: sticky;
    top: 100px;
}

.book-detail-image-wrapper {
    width: 100%;
    aspect-ratio: 2/3;
    background: var(--light-gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.book-detail-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-detail-image-wrapper img.book-detail-main-image {
    /* Use contain for main image to avoid cropping and preserve aspect while reserving space */
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.book-detail-image-wrapper i {
    font-size: 5rem;
    color: var(--border-color);
}

.book-detail-info h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.book-detail-author {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.book-detail-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.meta-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.book-detail-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.book-detail-description {
    margin-bottom: 30px;
}

.book-detail-description h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.book-detail-description p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 15px;
}

.book-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 40px 0;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.action-buttons .btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.action-buttons .btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #e5a000 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(229, 160, 0, 0.3);
    color: var(--white) !important;
}

.action-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 160, 0, 0.4);
    background: linear-gradient(135deg, #e5a000 0%, var(--secondary-color) 100%);
    color: var(--white) !important;
}

.action-buttons .btn-secondary {
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.action-buttons .btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
}

.quantity-selector button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-selector span {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.book-detail-features {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 12px;
}

.book-detail-features h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
}

.feature-item i {
    color: var(--secondary-color);
    width: 20px;
}

/* ===================================
   ABOUT PAGE
   =================================== */

.about-mission {
    background: var(--white);
}

.mission-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.mission-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.mission-text p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.mission-image {
    width: 100%;
    aspect-ratio: 1;
    background: var(--light-gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: 12px;
}

.image-placeholder i {
    font-size: 5rem;
    color: var(--border-color);
}

/* Ensure images inside .mission-image keep aspect ratio and never stretch */
.mission-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}
.values-section {
    background: var(--light-gray);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2d6b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.value-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.value-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.author-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.author-image {
    width: 100%;
    height: 300px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-image i {
    font-size: 5rem;
    color: var(--border-color);
}

/* Author images: preserve aspect ratio, avoid stretching, and add full border */
.author-image img,
.author-image .image-placeholder img,
.authors-section img.gsap-animated {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    border-radius: 12px;
    box-sizing: border-box;
    display: block;
}

.author-info {
    padding: 30px;
}

.author-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.author-role {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.author-bio {
    color: var(--text-gray);
    line-height: 1.7;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--secondary-color);
    border-radius: 2px;
}

.timeline::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -25px;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--secondary-color);
    border: 4px solid var(--white);
    box-shadow: 0 0 0 2px var(--secondary-color);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--secondary-color);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 2px var(--secondary-color);
}

.timeline-content {
    width: calc(50% - 50px);
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin: 0 20px;
}

.timeline-content h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===================================
   BLOG PAGE
   =================================== */

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* ===================================
   ARTICLE PAGE
   =================================== */

.article-section {
    /* add extra top padding so fixed header doesn't overlap the title */
    padding: 120px 0 60px;
}

.article-header {
    margin-bottom: 40px;
}

.article-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

/* ensure in-page anchors/scrolls position the title below the fixed header */
.article-title {
    scroll-margin-top: 120px;
}

.article-meta {
    display: flex;
    gap: 30px;
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-featured-image {
    width: 100%;
    height: 400px;
    background: var(--light-gray);
    border-radius: 12px;
    margin-bottom: 40px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
}

.article-body h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 40px 0 20px;
}

.article-body h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 30px 0 15px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 25px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-gray);
}

.article-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* ===================================
   FLOATING CART BUTTON
   =================================== */

.floating-cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #e5a000 100%);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 176, 0, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 176, 0, 0.6);
}

.floating-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

/* Fixed header buttons - appear when header is hidden */
.fixed-header-buttons {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    display: none;
    gap: 10px;
}

.fixed-header-buttons.show {
    display: flex;
}

.fixed-cart-btn,
.fixed-user-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fixed-cart-btn:hover,
.fixed-user-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    border-color: var(--primary-color);
}

.fixed-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    border: 2px solid var(--white);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .book-detail-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .book-detail-image {
        position: static;
    }
    
    .mission-content {
        grid-template-columns: 1fr;
    }
    
    .authors-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 30px;
        width: 4px;
        background: var(--secondary-color);
        border-radius: 2px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 80px;
        margin-bottom: 40px;
    }
    
    .timeline-marker {
        left: 30px;
        width: 20px;
        height: 20px;
        border: 3px solid var(--white);
        box-shadow: 0 0 0 2px var(--secondary-color);
    }
    
    .timeline::after {
        left: 15px;
        transform: none;
    }
    
    .timeline-content {
        width: 100%;
        margin: 0;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 20px 0;
    }
    
    main {
        margin-top: 85px;
    }
    
    .navbar {
        display: flex;
    }
    
    .logo {
        flex-shrink: 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        box-shadow: var(--shadow-md);
        gap: 20px;
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 998;
    }
    
    .nav-actions {
        flex-shrink: 0;
        gap: 10px;
        margin-left: auto;
    }
    
    .search-container {
        width: 95%;
        padding: 20px;
    }
    
    html, body {
        overflow-x: hidden;
    }

    .container {
        padding: 0 20px;
    }
    
    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .icon-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
        top: -6px;
        right: -6px;
    }
    
    .hero {
        padding: 60px 0;
        margin-top: 70px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }

    .btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .promo-decoration {
        position: static;
        transform: none;
        margin-top: 20px;
    }
    
    .promo-decoration i {
        font-size: 5rem;
    }
    
    .blog-grid,
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .cart-sidebar,
    .user-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .catalog-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .floating-cart-btn {
        width: 55px;
        height: 55px;
        right: 20px;
        bottom: 20px;
        font-size: 1.3rem;
    }
    
    .floating-cart-count {
        width: 20px;
        height: 20px;
        font-size: 0.8rem;
        top: -6px;
        right: -6px;
    }
    
    .fixed-header-buttons {
        top: 15px;
        right: 15px;
    }
    
    .fixed-cart-btn,
    .fixed-user-btn {
        width: 42px;
        height: 42px;
    }
    
    .fixed-cart-count {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
        top: -4px;
        right: -4px;
    }
}

@media (max-width: 375px) {
    html, body {
        overflow-x: hidden;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .book-detail-info h1 {
        font-size: 1.8rem;
    }
    
    .book-detail-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .book-detail-actions {
        flex-direction: column;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-cart-btn {
        width: 50px;
        height: 50px;
        right: 15px;
        bottom: 15px;
        font-size: 1.2rem;
    }
    
    .floating-cart-count {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
        top: -5px;
        right: -5px;
    }
    
    .fixed-header-buttons {
        top: 10px;
        right: 10px;
    }
    
    .fixed-cart-btn,
    .fixed-user-btn {
        width: 40px;
        height: 40px;
    }
    
    .fixed-cart-count {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
        top: -3px;
        right: -3px;
    }
    
    /* Fixes for iPhone SE touch targets and overlays */
    button {
        min-height: 44px;
        min-width: 44px;
    }
    
    .hamburger {
        padding: 12px;
    }
    
    /* Search overlay adjustments for very small screens (iPhone SE) */
    .search-overlay {
        align-items: flex-start;
        padding-top: 56px;
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .search-container {
        width: calc(100% - 32px);
        max-width: 680px;
        margin: 0 auto;
        padding: 12px 14px;
        border-radius: 12px;
        max-height: calc(100vh - 96px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: var(--shadow-lg);
        background: var(--white);
    }

    .close-search {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 2101;
        color: var(--text-dark);
        background: transparent;
        padding: 10px 12px;
        font-size: 1.2rem;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

/* Fade transition for main content */
.transition-fade {
    opacity: 1;
    transition: opacity 0.4s ease;
}

/* Animated forms for search */
.search-overlay form,
.search-input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   SUPPORT PAGE STYLES
   =================================== */

.support-nav {
    margin-bottom: 40px;
}

.support-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.support-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--white);
    border: 2px solid transparent;
    border-radius: 50px;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.support-tab:hover {
    border-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.support-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.support-tab i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.support-tab:hover i {
    transform: scale(1.1);
}

.support-content {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

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

.support-content.active {
    display: block;
}

.support-header {
    text-align: center;
    margin-bottom: 50px;
}

.support-header .section-title {
    margin-bottom: 15px;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.support-header .section-subtitle {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* FAQ Styles */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.faq-item.active {
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.faq-question {
    padding: 25px 30px;
    background: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-question h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
}

.faq-question i {
    color: var(--primary-color);
    transition: all 0.3s ease;
    font-size: 16px;
    margin-left: 15px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--secondary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--white);
    border-top: 1px solid var(--border-color);
}

.faq-item.active .faq-answer {
    max-height: 600px;
}

.faq-answer p {
    margin: 0;
    padding: 0 30px 30px;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 16px;
}

/* Shipping Styles */
.shipping-content,
.terms-content,
.privacy-content {
    max-width: 1000px;
    margin: 0 auto;
}

.shipping-section,
.terms-section,
.privacy-section {
    margin-bottom: 50px;
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.shipping-section h3,
.terms-section h3,
.privacy-section h3 {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    font-weight: 700;
}

.shipping-section h3 i,
.terms-section h3 i,
.privacy-section h3 i {
    font-size: 28px;
    color: var(--primary-color);
}

.shipping-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.info-item {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}

.info-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px) scale(1.02);
}

.info-item h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.info-item p {
    margin: 8px 0;
    color: var(--text-muted);
    font-size: 16px;
}

.info-item .price {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 18px;
    margin-top: 10px;
}

.returns-info p {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 16px;
    line-height: 1.7;
}

.returns-info p strong {
    color: var(--primary-color);
    font-weight: 600;
    min-width: 100px;
    flex-shrink: 0;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

.info-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--success-color);
    font-weight: bold;
    font-size: 18px;
}

/* Terms and Privacy Styles */
.terms-section p,
.privacy-section p {
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 16px;
    text-align: justify;
}

/* Contact Support Styles */
.contact-support {
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 20px;
    padding: 20px 15px;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.contact-support .support-header {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.contact-support .section-title {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.contact-support .section-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.contact-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 20px 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-item:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.contact-item i {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--white);
    transition: transform 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.2) rotate(5deg);
}

.contact-item h4 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.contact-item p {
    margin: 4px 0;
    opacity: 0.95;
    font-size: 14px;
    line-height: 1.5;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .support-tabs {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 15px;
    }

    .support-tab {
        justify-content: center;
        padding: 18px 25px;
        font-size: 16px;
        border-radius: 40px;
    }

    .support-header .section-title {
        font-size: 2rem;
    }

    .support-header .section-subtitle {
        font-size: 16px;
    }

    .faq-question {
        padding: 20px 25px;
    }

    .faq-question h3 {
        font-size: 16px;
    }

    .faq-answer p {
        padding: 0 25px 25px;
        font-size: 15px;
    }

    .shipping-section,
    .terms-section,
    .privacy-section {
        padding: 25px 20px;
    }

    .shipping-section h3,
    .terms-section h3,
    .privacy-section h3 {
        font-size: 20px;
        gap: 10px;
    }

    .shipping-section h3 i,
    .terms-section h3 i,
    .privacy-section h3 i {
        font-size: 24px;
    }

    .shipping-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-item {
        padding: 25px 20px;
    }

    .contact-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-support {
        padding: 50px 25px;
        margin-top: 60px;
    }

    .contact-item {
        padding: 30px 20px;
    }
}

/* ===================================
   BOOK REVIEWS SECTION
   =================================== */

.book-reviews {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    padding: 80px 0;
}

.reviews-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    /* Reserve vertical space to avoid layout shifts while ratings and form load */
    min-height: 320px;
}

.rating-overview {
    text-align: center;
    padding: 40px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.overall-rating .rating-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.overall-rating .rating-stars {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.overall-rating .rating-stars i {
    margin: 0 2px;
}

.overall-rating .rating-count {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.rating-breakdown {
    margin-top: 30px;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.rating-label {
    width: 80px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.rating-progress {
    flex: 1;
    height: 8px;
    background: var(--light-gray);
    border-radius: 4px;
    margin: 0 15px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.rating-percent {
    width: 40px;
    text-align: right;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.review-form {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.review-form h3 {
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.review-form .form-group {
    margin-bottom: 20px;
}

.review-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.star-rating-input {
    display: flex;
    justify-content: flex-start;
    gap: 5px;
}

.star-rating-input input[type="radio"] {
    display: none;
}

.star-rating-input label {
    color: var(--light-gray);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.star-rating-input input[type="radio"]:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: #ffd700;
}

.star-rating-input input[type="radio"]:checked ~ label {
    color: #ffd700;
}

.review-form input[type="text"],
.review-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.review-form input[type="text"]:focus,
.review-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.review-form textarea {
    resize: vertical;
    min-height: 100px;
}

.reviews-list {
    margin-bottom: 40px;
    /* Reserve space for comments to reduce CLS while they load */
    min-height: 600px; /* reserves space for multiple review items to prevent shifts */
}

/* Skeleton styles for comments loading state */
.review-skeleton {
    background: linear-gradient(90deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.02) 50%, rgba(0,0,0,0.04) 100%);
    border-radius: 12px;
    height: 180px; /* increased to match typical rendered review height */
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.reviews-list.skeleton .review-skeleton {
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s linear infinite;
}
@keyframes skeletonShimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

.review-item {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.review-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.reviewer-info {
    display: flex;
    align-items: center;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.reviewer-details h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.reviewer-details .review-rating {
    color: #ffd700;
    font-size: 0.9rem;
}

.reviewer-details .review-rating i {
    margin-right: 2px;
}

.review-date {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.review-content h5 {
    margin: 0 0 10px 0;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
}

.review-content p {
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

.review-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.helpful-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 6px;
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

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

.helpful-btn i {
    margin-right: 5px;
}

.load-more-reviews {
    text-align: center;
}

/* ===================================
   BOOK REVIEWS RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .rating-overview,
    .review-form {
        padding: 30px 20px;
    }

    .overall-rating .rating-number {
        font-size: 2.5rem;
    }

    .rating-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .rating-label,
    .rating-percent {
        width: auto;
    }

    .rating-progress {
        width: 100%;
        margin: 0;
    }

    .review-item {
        padding: 20px;
    }

    .review-header {
        flex-direction: column;
        gap: 15px;
    }

    .reviewer-info {
        justify-content: center;
    }

    .review-date {
        text-align: center;
    }

    .review-content h5 {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .book-reviews {
        padding: 60px 0;
    }

    .rating-overview,
    .review-form {
        padding: 20px;
    }

    .overall-rating .rating-number {
        font-size: 2rem;
    }

    .review-item {
        padding: 15px;
    }

    .reviewer-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .star-rating-input {
        justify-content: center;
    }

    .star-rating-input label {
        font-size: 1.3rem;
    }
}

/* ===================================
   NOTIFICATIONS
   =================================== */

.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    background: var(--white);
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification.success .notification-content {
    border-left-color: #28a745;
}

.notification.error .notification-content {
    border-left-color: #dc3545;
}

.notification.warning .notification-content {
    border-left-color: #ffc107;
}

.notification.info .notification-content {
    border-left-color: var(--primary-color);
}

.notification-content i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification.success i {
    color: #28a745;
}

.notification.error i {
    color: #dc3545;
}

.notification.warning i {
    color: #ffc107;
}

.notification.info i {
    color: var(--primary-color);
}

.notification-content span {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* ===================================
   RESPONSIVE NOTIFICATIONS
   =================================== */

@media (max-width: 480px) {
    .notification {
        left: 20px;
        right: 20px;
        max-width: none;
        top: 80px;
    }
}

/* ===================================
   BOOK PREVIEW MODAL STYLES
   =================================== */

.book-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.book-preview-modal.active {
    opacity: 1;
    visibility: visible;
}

.book-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.book-preview-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.book-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
}

.book-preview-info h3 {
    margin: 0 0 5px 0;
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 600;
}

.book-preview-info p {
    margin: 0;
    color: var(--text-gray);
    font-size: 1rem;
}

.book-preview-close {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.book-preview-close:hover {
    background: var(--border-color);
    color: var(--text-dark);
}

.book-preview-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-height: calc(90vh - 120px);
    overflow-y: auto;          
    overflow-x: hidden;
}

.book-pages-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 20px;
}

.page-nav {
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.4rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-nav:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-nav:disabled {
    background: var(--bg-light);
    color: var(--text-gray);
    border-color: var(--border-color);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.book-page-viewer {
    flex: 1;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.book-page-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.page-indicator {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

.book-preview-footer {
    padding: 30px;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--bg-light) 0%, #f8f9fa 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.book-preview-footer .btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #e5a000 100%);
    border: none;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(229, 160, 0, 0.3);
    transition: all 0.3s ease;
    color: var(--white) !important;
}

.book-preview-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 160, 0, 0.4);
    background: linear-gradient(135deg, #e5a000 0%, var(--secondary-color) 100%);
    color: var(--white) !important;
}

.preview-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    font-size: 0.9rem;
    flex: 1;
}

.preview-notice i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Action Buttons Styling */
.action-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-preview {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--white) !important;
}

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

.btn-preview i {
    margin-right: 8px;
}

/* ===================================
   RESPONSIVE BOOK PREVIEW MODAL
   =================================== */

@media (max-width: 768px) {
    .book-preview-content {
        width: 95%;
        max-height: 95vh;
    }

    .book-preview-header {
        padding: 20px;
    }

    .book-pages-container {
        padding: 15px;
        gap: 10px;
        flex: 1;                          
        min-height: 0;  
    }

    .book-preview-body {
        max-height: calc(95vh - 100px);  
        overflow-y: auto;                 
        overflow-x: hidden;            
    }

    .page-nav {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }

    .book-page-image {
        max-width: 100%;
        max-height: 60vh;
    }

    .book-preview-footer {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .book-preview-footer .btn-primary {
        width: 100%;
        padding: 16px 24px;
    }

    .book-detail-actions {
        padding: 20px;
        margin: 20px 0;
    }

    .action-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .action-buttons .btn {
        width: 100%;
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .book-preview-info h3 {
        font-size: 1.3rem;
    }

    .book-page-image {
        max-width: 100%;
        max-height: 50vh;
    }

    .book-preview-text p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* ===================================
   ACCOUNT PAGE STYLES
   =================================== */

/* Account Navigation */
.account-nav {
    margin-bottom: 40px;
}

.account-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.account-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.account-tab:hover,
.account-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.account-tab i {
    font-size: 1rem;
}

/* Account Content */
.account-content {
    display: none;
}

.account-content.active {
    display: block;
}

.account-header {
    text-align: center;
    margin-bottom: 40px;
}

.account-header .section-title {
    margin-bottom: 8px;
}

.account-header .section-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Profile Card */
.profile-card {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    flex-shrink: 0;
}

.profile-details h3 {
    margin: 0 0 8px 0;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.profile-details p {
    margin: 0;
    color: var(--text-gray);
    font-size: 1.1rem;
}

.member-since {
    color: var(--primary-color) !important;
    font-weight: 500;
}

/* Verification Alerts */
.verification-alert {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    animation: slideIn 0.3s ease-out;
}

.verification-alert.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
}

.verification-alert.success i {
    color: #28a745;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.verification-alert.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f5c6cb;
}

.verification-alert.error i {
    color: #dc3545;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.verification-alert .alert-content h4 {
    margin: 0 0 8px 0;
    color: #155724;
    font-size: 1.2rem;
    font-weight: 600;
}

.verification-alert.error .alert-content h4 {
    color: #721c24;
}

.verification-alert .alert-content p {
    margin: 0;
    color: #155724;
    font-size: 1rem;
    line-height: 1.4;
}

.verification-alert.error .alert-content p {
    color: #721c24;
}

.verification-alert .alert-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #155724;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
}

.verification-alert.error .alert-close {
    color: #721c24;
}

.verification-alert .alert-close:hover {
    opacity: 0.7;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Form */
.profile-form {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Orders List */
.orders-list {
    min-height: 300px;
}

.no-orders {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.no-orders i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.no-orders h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.no-orders p {
    color: var(--text-gray);
    margin-bottom: 30px;
}

/* Order Cards */
.order-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
}

.order-info h4 {
    margin: 0 0 4px 0;
    color: var(--text-dark);
}

.order-date {
    margin: 0;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-pending {
    background: #fef3c7;
    color: #d97706;
}

.status-processing {
    background: #dbeafe;
    color: #2563eb;
}

.status-shipped {
    background: #fef3c7;
    color: #d97706;
}

.status-delivered {
    background: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background: #fee2e2;
    color: #dc2626;
}

.order-items {
    padding: 20px 30px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-image {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.order-item-details h5 {
    margin: 0 0 8px 0;
    color: var(--text-dark);
}

.order-item-details p {
    margin: 0;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.order-total {
    padding: 20px 30px;
    background: var(--bg-light);
    text-align: right;
    border-top: 1px solid var(--border-color);
}

/* Settings Section */
.settings-section {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.settings-section h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-section h3 i {
    color: var(--primary-color);
}

.settings-section p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

/* Notification Settings */
.notification-settings {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 24px;
    cursor: pointer;
    font-weight: normal;
    position: relative;
}

/* Utility class for screen-reader-only labels */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    width: 50px;
    height: 50px;
    padding: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    padding: 2px;
    top: 5px;
    border-radius: 8px;
    position: relative;
    transition: var(--transition);
    background: var(--white);
    flex-shrink: 0;
    display: inline-block;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
}

.checkbox-content {

/* Error state for checkbox */
.checkbox-label.error .checkmark {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220,53,69,0.06);
}
.checkbox-label.error span {
    color: #dc3545;
}

    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkbox-content strong {
    color: var(--text-dark);
    font-size: 1rem;
}

.checkbox-content span {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.settings-description {
    color: var(--text-gray);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.form-hint {
    display: block;
    margin-top: 6px;
    color: var(--text-gray);
    font-size: 0.85rem;
}

.privacy-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.btn-outline i {
    font-size: 1rem;
}

/* Danger Zone */
.danger-zone {
    border: 2px solid #fee2e2;
    background: #fef2f2;
}

.danger-zone h3 {
    color: #dc2626;
}

.danger-zone h3 i {
    color: #dc2626;
}

.danger-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn-outline-danger {
    background: transparent;
    border: 2px solid #dc2626;
    color: #dc2626;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-danger:hover {
    background: #dc2626;
    color: var(--white);
}

.danger-zone .btn-danger {
    background: #dc2626;
    border-color: #dc2626;
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.danger-zone .btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

.danger-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dc2626;
    font-size: 0.9rem;
    padding: 12px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 8px;
}

.danger-warning i {
    flex-shrink: 0;
}


    .footer a {
    color: var(--white) !important;
}

.footer h3 {
    color: var(--white) !important;
}

/* ===================================
   RESPONSIVE - MOBILE SMALL
   =================================== */

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .navbar {
        padding: 12px 0;
    }
    
    .navbar {
        display: flex;
    }
    
    .logo {
        flex-shrink: 0;
    }

    .logo-text {
        font-size: 1rem;
    }

    .footer h3 {
    color: var(--white) !important;
}
    
    .logo-img {
        height: 30px;
    }
    
    .logo-text {
        font-size: 1rem;
    }

    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
        padding: 20px 15px;
        z-index: 998;
    }

    .nav-actions {
        gap: 8px;
        flex-shrink: 0;
    }

    .icon-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .hamburger {
        width: 26px;
        gap: 4px;
    }

    .hamburger span {
        height: 2px;
    }

    .hero {
        padding: 40px 0;
        margin-top: -5%;
    }

    .page-header,
    .page-header-full {
        margin-top: 60px;
        padding: 40px 0;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .book-card {
        padding: 15px;
    }

    .book-title {
        font-size: 1rem;
    }

    .book-author {
        font-size: 0.85rem;
    }

    .book-price {
        font-size: 1.1rem;
    }

    .cart-sidebar,
    .user-sidebar {
        width: 100%;
        right: -100%;
    }

    .cart-sidebar.active,
    .user-sidebar.active {
        right: 0;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer a {
    color: var(--white) !important;
}

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .notification {
        width: calc(100% - 30px);
        left: 15px;
        right: 15px;
        transform: translateX(0);
    }
}

/* ===================================
   PAGE SPECIFIC FIXES
   =================================== */

/* Force correct header position on livros.html from initial load */
.page-livros .header {
    transform: translateY(0) !important;
    will-change: auto;
}

/* ===================================
   LANDSCAPE MOBILE
   =================================== */

@media (max-width: 768px) and (orientation: landscape) {
    .nav-menu {
        height: calc(100vh - 60px);
        padding: 15px 20px;
    }

    .hero {
        padding: 30px 0;
    }

    .section {
        padding: 30px 0;
    }
}
/* Profile Actions */
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-actions .btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    text-align: center;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

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

/* ===================================
   RESPONSIVE ACCOUNT PAGE
   =================================== */

@media (max-width: 768px) {
    .account-tabs {
        flex-direction: column;
        align-items: center;
    }

    .account-tab {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .profile-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .order-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .order-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .settings-section {
        padding: 20px;
    }

    .profile-actions {
        gap: 8px;
    }
}

/* ===================================
   PAYMENT PAGE STYLES
   =================================== */

.page-pagamento .page-header {
    text-align: center;
    margin-bottom: 3rem;
    width: 100vw;
}

.checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--light-gray);
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    transition: var(--transition);
    border: 3px solid transparent;
}

.progress-step.active .step-number {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.progress-step.completed .step-number {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.progress-step.completed .step-number::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.step-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

.progress-step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.progress-line {
    width: 100px;
    height: 3px;
    background-color: var(--border-color);
    margin: 0 1rem;
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    margin-bottom: 3rem;
}

.checkout-form {
    background-color: var(--white);
}

.checkout-step {
    display: none;
}

.checkout-step.active {
    display: block;
}

.checkout-step h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.shipping-review {
    max-width: 600px;
    margin: 0 auto;
}

.shipping-address-card {
    background-color: var(--light-gray);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 2px solid var(--border-color);
}

.address-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.address-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.address-header h3 {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 0;
}

.address-details p {
    margin: 0.5rem 0;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.5;
}

.shipping-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.shipping-actions .btn {
    flex: 1;
    max-width: 200px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 27, 77, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-gray);
    font-size: 0.85rem;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-method {
    position: relative;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.payment-method:hover {
    border-color: var(--primary-color);
    background-color: rgba(14, 27, 77, 0.02);
}

.payment-method.active {
    border-color: var(--primary-color);
    background-color: rgba(14, 27, 77, 0.05);
}

.payment-method input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.payment-method label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin: 0;
}

.payment-method label i {
    font-size: 2rem;
    color: var(--primary-color);
}

.payment-method label span {
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

.payment-form {
    display: none;
}

.payment-form.active {
    display: block;
}

.card-icons {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 0.5rem;
}

.card-icons i {
    font-size: 1.5rem;
    color: var(--text-gray);
}

.form-group {
    position: relative;
}

.transfer-info {
    background-color: var(--light-gray);
    border-radius: 12px;
    padding: 2rem;
}

.bank-details {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.bank-details p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.bank-details p:last-child {
    margin-bottom: 0;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.alert-info {
    background-color: rgba(14, 27, 77, 0.1);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

.alert i {
    font-size: 1.2rem;
}

.confirmation-message {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    font-size: 5rem;
    color: #10b981;
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.confirmation-message h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.confirmation-message > p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.order-details {
    background-color: var(--light-gray);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.order-number {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.order-number span {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.order-email {
    color: var(--text-gray);
}

.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.order-summary {
    background-color: var(--light-gray);
    border-radius: 12px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.order-summary h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.summary-items {
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.summary-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 60px;
    height: 80px;
    background-color: var(--white);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-image i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.item-details {
    flex: 1;
}

.item-details h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
    font-weight: 600;
}

.item-details p {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.item-price {
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.summary-totals {
    border-top: 2px solid var(--border-color);
    padding-top: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.summary-row span:last-child {
    font-weight: 600;
}

.summary-total {
    font-size: 1.2rem;
    color: var(--primary-color);
    padding-top: 0.75rem;
    border-top: 2px solid var(--border-color);
    margin-top: 0.75rem;
}

.summary-total span {
    font-weight: 700;
}

.secure-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-gray);
    font-size: 0.9rem;
}

.secure-checkout i {
    color: #10b981;
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: var(--text-gray);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .checkout-progress {
        padding: 1rem 0;
    }
    
    .progress-line {
        width: 50px;
        margin: 0 0.5rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .checkout-step h2 {
        font-size: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .confirmation-message {
        padding: 2rem 1rem;
    }
    
    .confirmation-message h2 {
        font-size: 2rem;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
    
    .confirmation-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .checkout-progress {
        margin-bottom: 2rem;
    }
    
    .progress-line {
        width: 30px;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .order-summary {
        padding: 1.5rem;
    }
    
    .success-icon {
        font-size: 4rem;
    }
}

/* ===================================
   SERVICES PAGE STYLES
   =================================== */

/* Create Book Section */
.create-book-section {
    background: var(--white);
    color: var(--primary-color);
    padding: 5rem 0;
    position: relative;
    overflow: visible;
}

.create-book-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(14,27,77,0.06);
    border: 1px solid rgba(14,27,77,0.06);
}

.create-book-icon {
    font-size: 2.6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(14,27,77,0.06), rgba(14,27,77,0.02));
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

.create-book-title {
    font-size: 2.4rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
    line-height: 1.08;
}

.create-book-subtitle {
    font-size: 1.15rem;
    margin-bottom: 1.75rem;
    color: var(--text-gray);
    line-height: 1.6;
    font-weight: 400;
}

.create-book-section .btn-primary {
    background: linear-gradient(90deg,var(--primary-color),#18306a);
    color: var(--white);
    padding: 0.95rem 1.6rem;
    border-radius: 8px;
    font-weight: 700;
}

/* How We Create Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.process-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.process-step h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Plans Section */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.plan-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.plan-card.featured {
    border: 3px solid var(--secondary-color);
}

.plan-badge {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    font-weight: 600;
    text-align: center;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.plan-header {
    padding: 2rem;
    text-align: center;
    background: var(--light-gray);
}

.plan-header h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.period {
    font-size: 1rem;
    color: var(--text-gray);
}

.plan-features {
    padding: 2rem;
    list-style: none;
}

.plan-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-features i {
    color: var(--secondary-color);
}

.plan-card button {
    width: 100%;
    padding: 1rem;
    border-radius: 0;
}

/* Organized Process Section */
.process-timeline {
    margin-top: 3rem;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--secondary-color);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
}

.timeline-marker {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 1;
    position: relative;
}

.timeline-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin: 0 2rem;
    flex: 1;
}

.timeline-content h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-gray);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.author-info h4 {
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Service Contact Section */
.service-contact {
    background: var(--light-gray);
    padding: 5rem 0;
    text-align: center;
}

.service-contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.service-contact h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 2.2rem;
}

.service-contact p {
    margin-bottom: 2.5rem;
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.6;
}

.service-contact-form {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: var(--font-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 27, 77, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.service-contact .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.contact-privacy {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .create-book-title {
        font-size: 2.2rem;
    }
    
    .service-contact h2 {
        font-size: 1.8rem;
    }
}

/* ===================================
   ENHANCED SERVICES PAGE STYLES
   =================================== */

/* Page Header Enhancement */
.page-servicos .page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a237e 100%);
    color: var(--white);
    padding: 6rem 0;
    margin-top: 80px;
}

.page-servicos .page-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.page-servicos .page-subtitle {
    font-size: 1.4rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Process Grid Enhancement */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.process-step {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(14, 27, 77, 0.15);
}

.process-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--secondary-color), #ff8a00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 1.8rem;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.process-step h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
}

.process-step p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Plans Enhancement */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.plan-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(14, 27, 77, 0.15);
}

.plan-card.featured {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.plan-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.plan-badge {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    font-weight: 700;
    text-align: center;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    border-radius: 0 0 8px 8px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.plan-header {
    padding: 3rem 2rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
}

.plan-header h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.period {
    font-size: 1.2rem;
    color: var(--text-gray);
    font-weight: 500;
}

.plan-features {
    padding: 2.5rem;
    list-style: none;
    background: var(--white);
}

.plan-features li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.5rem 0;
}

.plan-features i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.plan-card button {
    width: 100%;
    padding: 1.5rem;
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
}

.plan-card button:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Timeline Enhancement */
.process-timeline {
    margin-top: 4rem;
    position: relative;
    padding: 2rem 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--secondary-color), rgba(255, 176, 0, 0.3));
    border-radius: 2px;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
}

.timeline-marker {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color), #ff8a00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.4rem;
    z-index: 2;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
}

.timeline-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin: 0 3rem;
    flex: 1;
    border: 1px solid #f0f0f0;
}

.timeline-content h4 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Testimonials Enhancement */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.testimonial-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    font-size: 4rem;
    color: rgba(255, 176, 0, 0.2);
    font-family: 'Georgia', serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(14, 27, 77, 0.15);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 1.05rem;
    padding-left: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), #ff8a00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
}

.author-info h4 {
    margin-bottom: 0.3rem;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.author-info span {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-style: italic;
}

/* Mobile Responsiveness for Services Page */
@media (max-width: 768px) {
    .page-servicos .page-title {
        font-size: 2.5rem;
    }
    
    .page-servicos .page-subtitle {
        font-size: 1.2rem;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 3rem;
    }
    
    .process-step {
        padding: 2rem 1.5rem;
    }
    
    .process-icon {
        width: 70px;
        height: 70px;
        font-size: 1.4rem;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .plan-card.featured {
        transform: none;
    }
    
    .plan-card.featured:hover {
        transform: translateY(-5px);
    }
    
    .plan-header h3 {
        font-size: 1.5rem;
    }
    
    .price {
        font-size: 2.5rem;
    }
    
    .process-timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        margin-bottom: 3rem;
    }
    
    .timeline-item .timeline-content {
        text-align: left !important;
        margin: 2rem 0 0 0 !important;
        padding: 2rem;
    }
    
    .timeline-marker {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
        align-self: flex-start;
        margin-left: 0;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .testimonial-card::before {
        font-size: 3rem;
        left: 1.5rem;
    }
    
    .testimonial-content p {
        padding-left: 0.5rem;
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .process-timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
    
    .timeline-item .timeline-content {
        text-align: left !important;
        margin-left: 2rem;
        margin-right: 0;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .create-book-title {
        font-size: 2rem;
    }
}

/* ===================================
   KDP INFO SECTION
   =================================== */

.kdp-info-section {
    background: var(--light-gray);
}

.kdp-info-card {
    display: flex;
    gap: 3rem;
    align-items: center;
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #f0f0f0;
}

.kdp-logo {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #FF9900, #ffb84d);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.kdp-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.kdp-content p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.kdp-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    list-style: none;
}

.kdp-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
    font-weight: 500;
}

.kdp-benefits i {
    color: #FF9900;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .kdp-info-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .kdp-logo {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .kdp-benefits {
        grid-template-columns: 1fr;
        text-align: left;
    }
}

/* ===================================
   PLAN DETAILS ENHANCED
   =================================== */

.plans-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.plan-detail {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: var(--transition);
}

.plan-detail:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.plan-detail.featured {
    border-color: var(--secondary-color);
    background: linear-gradient(to bottom, rgba(255, 177, 0, 0.05), var(--white));
}

.plan-detail-header {
    margin-bottom: 1.5rem;
}

.plan-detail-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.plan-detail-badge.essencial {
    background: #e8f5e9;
    color: #2e7d32;
}

.plan-detail-badge.profissional {
    background: #fff3e0;
    color: #e65100;
}

.plan-detail-badge.premium {
    background: #e3f2fd;
    color: #1565c0;
}

.plan-detail-header h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 0;
}

.plan-detail > p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.plan-detail ul {
    list-style: none;
}

.plan-detail ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.plan-detail ul li i {
    color: var(--secondary-color);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.plan-detail ul li strong {
    color: var(--primary-color);
}

@media (max-width: 992px) {
    .plans-details {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   FAQ ENHANCED
   =================================== */

.faq-list {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f0f0;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-item h4 {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.faq-item h4::before {
    content: "?";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.faq-item p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===================================
   SERVICE CTA SECTION
   =================================== */

.service-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2d6b 100%);
    padding: 5rem 0;
    text-align: center;
}

.service-cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(255, 177, 0, 0.4);
}

.service-cta h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.service-cta .btn-outline {
    color: var(--white);
    border-color: var(--white);
}

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

.cta-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .service-cta h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ===================================
   FORMULARIO PAGE STYLES
   =================================== */

.page-formulario .page-header,
.formulario-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a237e 100%);
    color: var(--white);
    padding: 6rem 0 4rem;
    margin-top: 80px;
}

.formulario-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.formulario-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Form Progress */
.form-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 3rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #e0e0e0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-gray);
    transition: var(--transition);
}

.progress-step.active .step-number {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 177, 0, 0.4);
}

.progress-step.completed .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.step-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: var(--primary-color);
}

.progress-line {
    width: 80px;
    height: 3px;
    background: #e0e0e0;
    margin: 0 1rem;
    margin-bottom: 1.5rem;
    border-radius: 2px;
    transition: var(--transition);
}

.progress-line.completed {
    background: var(--primary-color);
}

/* Form Steps */
.form-step {
    display: none;
    padding: 3rem;
}

.form-step.active {
    display: block;
}

.step-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    text-align: center;
}

.step-description {
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

/* Plan Selection */
.plan-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.plan-option {
    position: relative;
    cursor: pointer;
}

.plan-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.plan-option-content {
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition);
    height: 100%;
}

.plan-option:hover .plan-option-content {
    border-color: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.plan-option input:checked + .plan-option-content,
.plan-option.selected .plan-option-content {
    border-color: var(--primary-color);
    background: rgba(14, 27, 77, 0.05);
    box-shadow: 0 4px 20px rgba(14, 27, 77, 0.15);
    position: relative;
}

.plan-option input:checked + .plan-option-content::after,
.plan-option.selected .plan-option-content::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.plan-option.featured .plan-option-content {
    box-shadow: 0 2px 15px rgba(255, 177, 0, 0.15);
}

/* Ensure selected state overrides featured styling */
.plan-option.featured input:checked + .plan-option-content,
.plan-option.featured.selected .plan-option-content {
    border-color: var(--primary-color);
    background: rgba(14, 27, 77, 0.05);
    box-shadow: 0 4px 20px rgba(14, 27, 77, 0.15);
}

.plan-option.error .plan-option-content {
    border-color: #e74c3c;
}

.plan-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 1;
}

.plan-option-header {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 1rem;
}

.plan-option-header h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.plan-option-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.plan-option ul {
    list-style: none;
}

.plan-option ul li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.plan-option ul li i {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* Book Type Selection */
.book-type-selection {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.book-type-option {
    flex: 1;
    position: relative;
}

.book-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.book-type-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    background: var(--white);
    transition: all 0.3s ease;
    text-align: center;
}

.book-type-content i {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.book-type-content span {
    font-weight: 500;
    color: var(--text-color);
}

.book-type-option input:checked + .book-type-content,
.book-type-option:hover .book-type-content {
    border-color: var(--primary-color);
    background: var(--light-bg);
}

.book-type-option input:checked + .book-type-content i,
.book-type-option:hover .book-type-content i {
    color: var(--primary-color);
}

.book-type-option.error .book-type-content {
    border-color: #e74c3c;
}

/* Error Message */
.error-message {
    display: block;
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Email Notice */
.email-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 0.9rem;
    margin: 0;
}

.email-notice i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-grid .form-group.full-width {
    grid-column: 1 / -1;
}

.publication-form .form-group {
    margin-bottom: 0;
}

.publication-form .form-group label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.publication-form .form-group input,
.publication-form .form-group select,
.publication-form .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-secondary);
    transition: var(--transition);
    background: var(--white);
}

.publication-form .form-group input:focus,
.publication-form .form-group select:focus,
.publication-form .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 177, 0, 0.1);
}

.publication-form .form-group input.error,
.publication-form .form-group select.error,
.publication-form .form-group textarea.error {
    border-color: #e74c3c;
}

.publication-form .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.publication-form .form-group select {
    cursor: pointer;
    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='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--secondary-color);
}

.checkbox-label a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #f0f0f0;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 3rem;
}

.success-icon {
    font-size: 5rem;
    color: #27ae60;
    margin-bottom: 2rem;
}

.success-message h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.success-message > p {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.success-summary {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: inline-block;
    text-align: left;
}

.summary-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-label {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 60px;
}

.summary-value {
    color: var(--text-gray);
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .form-progress {
        padding: 1.5rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .progress-line {
        width: 40px;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .form-step {
        padding: 2rem 1.5rem;
    }
    
    .step-title {
        font-size: 1.5rem;
    }
    
    .plan-selection {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-navigation .btn {
        width: 100%;
    }
    
    .success-actions {
        flex-direction: column;
    }

    .success-actions .btn {
        width: 100%;
    }
}

/* ===============================================
   SERVIÇOS PAGE - ENHANCED STYLES
   =============================================== */

/* Horizontal Process Steps */
.process-steps-horizontal {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 3rem 0;
}

.process-step-h {
    flex: 0 1 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.process-step-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.process-step-icon i {
    font-size: 1.5rem;
    color: white;
}

.process-step-h:hover .process-step-icon {
    transform: translateY(-3px);
    background: var(--secondary-color);
}

.process-step-h h3 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    font-family: var(--heading-font);
    font-weight: 600;
}

.process-step-h p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
    max-width: 150px;
    margin: 0 auto;
}

.process-step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.5rem;
    padding-top: 2rem;
}

/* Horizontal Timeline */
.horizontal-timeline {
    position: relative;
    padding: 3rem 0;
}

.timeline-track {
    position: absolute;
    top: 25px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.timeline-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.h-timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.h-timeline-marker {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.h-timeline-marker span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--heading-font);
}

.h-timeline-step:hover .h-timeline-marker {
    background: var(--primary-color);
    transform: scale(1.1);
}

.h-timeline-step:hover .h-timeline-marker span {
    color: white;
}

.h-timeline-content {
    text-align: center;
    padding: 0 0.5rem;
}

.h-timeline-content h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: var(--heading-font);
}

.h-timeline-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
    max-width: 150px;
    margin: 0 auto;
}

/* New Testimonials Section */
.testimonials-section-new {
    background: #f8f9fa;
}

.testimonials-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card-new {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card-new:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.testimonial-quote {
    margin-bottom: 1rem;
}

.testimonial-quote i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    opacity: 0.5;
}

.testimonial-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author-new {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.author-avatar-new {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.author-details h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.author-details span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.author-rating {
    margin-top: 0.3rem;
}

.author-rating i {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* FAQ Accordion */
.faq-section-new {
    background: white;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item-new {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.faq-item-new:hover {
    border-color: var(--secondary-color);
}

.faq-item-new.active {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(14, 27, 77, 0.03);
}

.faq-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-align: center;
}

.faq-icon i {
    color: white;
    font-size: 1rem;
    margin: 0;
    padding: 0;
    line-height: 1;
    display: block;
}

.faq-question span {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.faq-arrow {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.faq-item-new.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item-new.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 4.5rem;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* New Plans Section */
.plans-section-final {
    background: var(--primary-color);
    padding: 5rem 0;
}

.plans-section-final .section-title,
.plans-section-final .section-subtitle {
    color: white;
}

.plans-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.plan-card-new {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.plan-card-new.featured {
    transform: scale(1.03);
    border: 2px solid var(--secondary-color);
}

.plan-card-new:hover {
    transform: translateY(-5px);
}

.plan-card-new.featured:hover {
    transform: scale(1.03) translateY(-5px);
}

.plan-badge-new {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background: var(--secondary-color);
    color: white;
    padding: 0.4rem 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 20px;
    letter-spacing: 0.5px;
    z-index: 1000;
}

.plan-header-new {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    padding-top: 5%;
}

.plan-header-new h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: var(--heading-font);
}

.plan-price-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

.price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.price-old .currency {
    font-size: 1rem;
}

.price-old .amount {
    font-size: 1.2rem;
}

.price-new {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.price-new .currency {
    font-size: 1.5rem;
}

.price-new .amount {
    font-size: 2rem;
}

.promotion-description {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promotion-container {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 7px;
}

.discount-badge {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-features-new {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
}

.plan-features-new li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.5rem 0;
    color: var(--text-color);
    font-size: 0.9rem;
}

.plan-features-new li i {
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.plan-features-new li i.fa-check-circle {
    color: #28a745;
}

.plan-features-new li i.fa-times-circle {
    color: #dc3545;
}

.plan-features-new li.not-included {
    color: var(--text-light);
    opacity: 0.7;
}

.plan-footer {
    margin-top: auto;
}

.btn-plan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-plan:hover {
    background: #1a2d6d;
    color: white;
}

.btn-plan i {
    transition: transform 0.3s ease;
}

.btn-plan:hover i {
    transform: translateX(3px);
}

.btn-plan-featured {
    background: var(--secondary-color);
}

.btn-plan-featured:hover {
    background: #e6a000;
}

/* Book Comparison CTA Button */
.comparison-cta {
    text-align: center;
    margin-bottom: 2.5rem;
}

.btn-comparison {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--white);
    border: 2px solid var(--white);
    color: var(--primary-color);
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-comparison:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-comparison i {
    font-size: 1.1rem;
}

/* Book Comparison Modal */
.book-comparison-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 27, 77, 0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 0;
}

.book-comparison-modal.active {
    display: flex;
}

.book-comparison-modal-content {
    background: var(--white);
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(14, 27, 77, 0.25);
    transform: translateY(30px) scale(0.95);
    opacity: 0;
}

.book-comparison-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    color: var(--text-gray);
}

.book-comparison-close:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.book-comparison-header {
    text-align: center;
    padding: 2.5rem 2rem 1.5rem;
}

.book-comparison-header h2 {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.book-comparison-header h2 i {
    color: var(--secondary-color);
}

.book-comparison-header p {
    color: var(--text-gray);
    font-size: 1rem;
}

/* Plan Calculator */
.plan-calculator {
    padding: 2rem;
}

.calculator-step {
    margin-bottom: 1.75rem;
}

.calculator-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.calculator-label i {
    color: var(--secondary-color);
    width: 20px;
}

.calculator-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.calc-option {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calc-option:hover {
    border-color: var(--primary-color);
    background: var(--light-gray);
}

.calc-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

.calc-option.selected i {
    color: var(--secondary-color);
}

.pages-options .calc-option {
    min-width: 60px;
    justify-content: center;
}

.cover-options .calc-option,
.print-options .calc-option {
    flex: 1;
    min-width: 140px;
    justify-content: center;
}

/* Quantity Input */
.quantity-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 200px;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--primary-color);
}

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

.quantity-input {
    width: 80px;
    height: 44px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: var(--font-secondary);
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Calculate Button */
.btn-calculate {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: var(--white);
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition);
    margin-top: 1rem;
}

.btn-calculate:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* Calculator Error */
.calculator-error {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    margin-top: 1rem;
    color: #c53030;
}

.calculator-error i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.calculator-error span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Error state for steps */
.calculator-step.has-error .calculator-options {
    animation: shake 0.4s ease;
}

.calculator-step.has-error .calc-option {
    border-color: #fed7d7;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* Calculator Result */
.calculator-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border-color);
}

.result-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.result-icon i {
    font-size: 1.75rem;
    color: var(--secondary-color);
}

.result-icon.warning {
    background: var(--secondary-color);
}

.result-icon.warning i {
    color: var(--primary-color);
}

.calculator-result h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.calculator-result p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.result-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.result-detail-item {
    text-align: center;
}

.result-detail-item .label {
    font-size: 0.8rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-detail-item .value {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Calculator Result Comparison */
.calculator-result {
    margin-top: 2rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.result-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.result-header h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.result-header p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 1rem;
    align-items: stretch;
}

.comparison-card {
    background: var(--white);
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 12px rgba(14, 27, 77, 0.06);
}

.comparison-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(14, 27, 77, 0.12);
}

.comparison-card.recommended {
    border-color: var(--secondary-color);
    box-shadow: 0 8px 32px rgba(255, 177, 0, 0.2);
    transform: scale(1.03);
    z-index: 2;
}

.comparison-card.recommended:hover {
    transform: scale(1.03) translateY(-4px);
}

/* Premium plan special styling */
.comparison-card.premium-card {
    border: 2px solid var(--primary-color);
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    box-shadow: 
        0 4px 12px rgba(14, 27, 77, 0.08),
        0 0 20px rgba(255, 177, 0, 0.12),
        0 0 40px rgba(14, 27, 77, 0.04);
    border-radius: 14px;
}

.comparison-card.premium-card:not(.recommended) {
    border-color: var(--secondary-color);
}

.comparison-card.premium-card:hover {
    box-shadow: 
        0 8px 24px rgba(14, 27, 77, 0.12),
        0 0 30px rgba(255, 177, 0, 0.18),
        0 0 50px rgba(14, 27, 77, 0.06);
}

.recommended-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ffc107 100%);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 177, 0, 0.3);
    white-space: nowrap;
}

.premium-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comp-plan-name {
    font-family: var(--font-primary);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    text-align: center;
}

.comp-plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 0.25rem;
    line-height: 1.1;
}

.comp-plan-price-per {
    font-size: 0.85rem;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 1rem;
}

.comp-plan-books {
    background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.comp-plan-books i {
    color: var(--secondary-color);
}

/* Valor Adicional Section */
.comp-value-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.comp-value-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #166534;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comp-value-header i {
    font-size: 0.9rem;
}

.comp-value-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comp-value-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #15803d;
}

.comp-value-item .value-name {
    font-weight: 500;
}

.comp-value-item .value-amount {
    font-weight: 700;
    color: #166534;
}

.comp-value-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px dashed #86efac;
    font-weight: 700;
    color: #166534;
}

.comp-value-total .total-label {
    font-size: 0.85rem;
}

.comp-value-total .total-amount {
    font-size: 1.1rem;
}

.comp-features {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.comp-features li {
    margin-bottom: 0.6rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.25rem 0;
}

.comp-features li i {
    margin-top: 2px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.comp-features li.gain {
    color: #166534;
    font-weight: 600;
}

.comp-features li.gain i {
    color: #22c55e;
}

.comp-features li.loss {
    color: #94a3b8;
    text-decoration: line-through;
    opacity: 0.8;
}

.comp-features li.loss i {
    color: #cbd5e1;
}

.btn-choose-plan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: auto;
    cursor: pointer;
}

.btn-choose-plan:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 177, 0, 0.3);
}

.btn-choose-plan.btn-recommended {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ffc107 100%);
    border-color: var(--secondary-color);
    color: var(--primary-color);
    font-size: 1rem;
    padding: 1.1rem 1.5rem;
    box-shadow: 0 4px 16px rgba(255, 177, 0, 0.3);
}

.btn-choose-plan.btn-recommended:hover {
    background: linear-gradient(135deg, #ffc107 0%, var(--secondary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 177, 0, 0.4);
}

.btn-choose-plan.btn-upgrade {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-choose-plan.btn-upgrade:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-upgrade-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary-color);
    background: rgba(255, 177, 0, 0.15);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.25rem;
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .comparison-card.recommended {
        transform: none;
        order: -1;
    }
    
    .comparison-card.recommended:hover {
        transform: translateY(-4px);
    }
    
    .calculator-result {
        padding: 1.5rem;
    }
    
    .comp-plan-price {
        font-size: 1.75rem;
    }
}

/* Calculator Responsive */
@media (max-width: 768px) {
    .book-comparison-modal-content {
        width: 95%;
        max-width: none;
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .book-comparison-header {
        padding: 1.5rem 1rem 1rem;
        border-radius: 12px 12px 0 0;
    }
    
    .book-comparison-header h2 {
        font-size: 1.4rem;
    }
    
    .plan-calculator {
        padding: 1.5rem;
    }
    
    .calculator-label {
        font-size: 0.95rem;
    }
    
    .calc-option {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .pages-options .calc-option {
        min-width: 50px;
        padding: 0.6rem 0.75rem;
    }
    
    .cover-options .calc-option,
    .print-options .calc-option {
        min-width: 120px;
    }
    
    .result-details {
        gap: 1.5rem;
    }
    
    .calculator-result h3 {
        font-size: 1.3rem;
    }
    
    .comp-value-section {
        padding: 0.85rem;
    }
    
    .comp-value-header {
        font-size: 0.75rem;
    }
    
    .comp-value-item {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .book-comparison-modal {
        padding: 0.5rem;
    }
    
    .book-comparison-modal-content {
        width: 95%;
    }
    
    .plan-calculator {
        padding: 1rem;
    }
    
    .pages-options .calc-option {
        flex: 1;
        min-width: calc(25% - 0.5rem);
    }
    
    .cover-options .calc-option,
    .print-options .calc-option {
        flex: 1;
        min-width: calc(50% - 0.5rem);
    }
    
    .quantity-input-wrapper {
        max-width: 100%;
        justify-content: center;
    }
    
    .btn-calculate {
        font-size: 1rem;
    }
    
    .comp-plan-name {
        font-size: 1.2rem;
    }
    
    .comp-plan-price {
        font-size: 1.6rem;
    }
}

/* Responsive Styles for New Services Elements */
@media (max-width: 992px) {
    .process-steps-horizontal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .process-step-h {
        flex: 0 0 calc(50% - 1rem);
        margin-bottom: 1.5rem;
    }
    
    .process-step-arrow {
        display: none;
    }
    
    .timeline-track {
        display: none;
    }
    
    .timeline-steps {
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .h-timeline-step {
        flex: 0 0 calc(50% - 1rem);
    }
    
    .testimonials-carousel {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .plans-grid-new {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .plan-card-new.featured {
        transform: scale(1);
        order: -1;
    }
}

@media (max-width: 768px) {
    .process-step-h {
        flex: 0 0 100%;
    }
    
    .process-step-icon {
        width: 50px;
        height: 50px;
    }
    
    .process-step-icon i {
        font-size: 1.2rem;
    }
    
    .h-timeline-step {
        flex: 0 0 100%;
    }
    
    .h-timeline-marker {
        width: 50px;
        height: 50px;
    }
    
    .h-timeline-marker span {
        font-size: 1.2rem;
    }
    
    .testimonials-carousel {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card-new {
        padding: 1.5rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question span {
        font-size: 0.9rem;
    }
    
    .faq-icon {
        width: 40px;
        height: 40px;
    }
    
    .faq-answer p {
        padding: 0 1rem 1rem 1rem;
    }
    
    .plan-price-new .amount {
        font-size: 3rem;
    }
    
    .price-new .amount {
        font-size: 3rem;
    }
    
    .price-old .amount {
        font-size: 1rem;
    }
    
    .discount-badge {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .promotion-description {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* ===== THEMES ===== */

/* ===== Theme: Christmas ===== */
.theme-christmas .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.04), transparent 30%);
    pointer-events: none;
    z-index: 1;
}

/* ensure hero content sits above snow canvas */
.theme-christmas .hero-content {
    z-index: 3;
    position: relative;
}

/* optional ornament at top-left (decorative only) */
.theme-christmas .hero-decoration {
    background-image: url("data:image/svg+xml,%3Csvg width='140' height='140' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='70' cy='70' r='70' fill='%23ffebeb' fill-opacity='0.06'/%3E%3C/svg%3E");
    opacity: 0.18;
}

/* Snow canvas styles (canvas is inserted by JS with id #snowCanvas) */
#snowCanvas {
    mix-blend-mode: screen;
    pointer-events: none;
}

/* ===== Theme: New Year (fogos de artifício, sem alterar cores) ===== */
.theme-newyear .hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2d6b 100%) !important;
    color: inherit !important;
}

/* garantir que a camada decorativa não cubra o fundo */
.theme-newyear .hero::after {
    mix-blend-mode: normal;
    pointer-events: none;
}

/* manter conteúdo acima dos efeitos */
.theme-newyear .hero-content { z-index: 3; position: relative; }

/* fireworks canvas style (inserted by JS as #fireworksCanvas) */
#fireworksCanvas {
    pointer-events: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 12;
    mix-blend-mode: screen;
}

/* ===================================
   ORDERS AND MODAL STYLES
   =================================== */

.orders-table-wrap{overflow:auto;background:transparent;border-radius:8px}
.orders-table{width:100%;border-collapse:collapse;background:#fff;box-shadow:0 4px 12px rgba(14,27,77,0.04)}
.orders-table thead th{background:#fafafa;padding:12px 14px;text-align:left;font-weight:600;color:#0E1B4D;border-bottom:1px solid #eee}
.orders-table tbody td{padding:12px 14px;border-bottom:1px solid #f3f3f3;vertical-align:middle;color:#333}
.orders-table tbody tr:hover{background:rgba(14,27,77,0.02)}
.orders-table img{width:48px;height:64px;object-fit:cover;border-radius:4px}
.btn-sm{padding:6px 10px;border-radius:6px;border:1px solid #e2e8f0;background:#fff;font-size:13px;cursor:pointer}
.order-status{padding:6px 10px;border-radius:6px;display:inline-block;font-weight:600;font-size:13px}
.order-status.status-pending{background:#fff4e6;color:#b45309}
.order-status.status-paid{background:#ecfdf5;color:#065f46}
.order-status.status-processing{background:#eef2ff;color:#1e40af}
.order-status.status-shipped{background:#f0f9ff;color:#065f46}
.order-status.status-delivered{background:#eef2ff;color:#0b8457}
.order-status.status-cancelled{background:#fff5f5;color:#9b2c2c}
@media (max-width:800px){.orders-table thead th:nth-child(4),.orders-table tbody td:nth-child(4){display:none}}

/* Per-order progress styles */
.order-progress-wrap{padding:14px 8px;position:relative;display:flex;flex-direction:column;gap:8px;overflow:visible}
.order-progress-wrap .progress-line{height:12px;background:#e6e6e6;border-radius:8px;overflow:hidden;position:relative;width:100%}
.order-progress-wrap .progress-fill{height:100%;background:#0E1B4D;transition:width,600ms ease}
.order-progress-wrap .progress-labels{display:flex;justify-content:space-between;gap:8px;margin-top:8px;padding:0 4px;font-size:13px;color:#444}
.order-progress-wrap{position:relative}
.order-progress-wrap .progress-labels div{flex:1;text-align:center}
.order-progress-truck{position:absolute;left:50%;top:0;transform:translate(-50%,-140%);font-size:18px;color:#0E1B4D;z-index:20}
.order-progress-row td{background:#fff;padding-top:6px;padding-bottom:12px}

/* Modal: larger progress variant used inside modal */
.modal-progress{position:relative;padding-top:20px}
.modal-progress .progress-line{height:18px;border-radius:12px;background:#eee;overflow:hidden}
.modal-progress .progress-fill{background:#0E1B4D;height:100%;border-radius:12px}
.modal-progress .progress-labels{font-size:14px;margin-top:12px;display:flex;gap:6px}
.modal-progress .order-progress-truck{position:absolute;top:6px;transform:translate(-50%,-50%);font-size:22px;color:#0E1B4D}

/* Modal details improvements */
.order-modal-items{flex:1;overflow:auto;max-height:calc(70vh - 240px);padding-right:8px}
.order-shipping{min-width:300px;padding:12px;border-left:1px solid #f3f3f3;align-self:flex-start}
.order-modal-main{align-items:flex-start}

/* Small button (invoice) */
.btn-sm{display:inline-block;background:#0E1B4D;color:#fff;padding:6px 10px;border-radius:6px;text-decoration:none;font-size:13px}
.order-modal-header{display:flex;gap:12px;align-items:center}
.order-modal-header .btn-sm{margin-left:auto}

/* Invoice button specifics */
.btn-invoice{display:inline-flex;align-items:center;gap:8px}
.btn-invoice.disabled{opacity:0.5;pointer-events:none}
.btn-invoice i{font-size:14px}

/* Mobile responsive adjustments */
@media (max-width:700px) {
    .order-modal-content{width:95vw;height:auto;max-height:90vh;left:50%;top:5vh;transform:translate(-50%,0);padding:12px}
    .order-modal-body{gap:8px}
    .order-modal-main{flex-direction:column}
    .order-shipping{min-width:unset;border-left:none;border-top:1px solid #f3f3f3;padding-top:12px}
    .modal-progress .order-progress-truck{font-size:20px;top:4px}
    .order-modal-items{max-height:calc(50vh);}
    .progress-labels{font-size:12px}
    .order-modal-header h3{font-size:16px}
    .order-modal-close{right:8px;top:6px}
    .order-modal-item img{width:58px;height:74px}
}

/* Modal styles */
.order-modal.hidden{display:none}
.order-modal{position:fixed;inset:0;z-index:9999}
.order-modal-overlay{position:absolute;inset:0;background:rgba(0,0,0,0.45)}
/* Centered modal, responsive width and max height */
.order-modal-content{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:80%;max-width:900px;height:auto;max-height:80vh;padding:20px;background:#fff;border-radius:10px;z-index:2;box-shadow:0 10px 40px rgba(0,0,0,0.2);overflow:auto}
.order-modal-close{position:absolute;right:12px;top:8px;background:none;border:0;font-size:22px;cursor:pointer}
/* layout: progress at top, then main content in a horizontal row */
.order-modal-body{display:flex;flex-direction:column;gap:12px;align-items:stretch}
.order-modal-main{display:flex;gap:16px;align-items:flex-start}
.order-modal-items{flex:1}
.order-modal-item{display:flex;gap:12px;padding:10px 0;border-bottom:1px solid #f3f3f3}
.order-modal-item img{width:72px;height:92px;object-fit:cover;border-radius:6px}
.order-shipping{min-width:260px;padding:8px;border-left:1px solid #f3f3f3}

/* ===================================
   PHONE INPUT COMPONENT
   =================================== */

.phone-input-container {
    display: flex;
    align-items: stretch;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: visible; /* Changed from hidden to visible to allow dropdown */
    background: var(--white);
    transition: var(--transition);
    position: relative; /* Ensure proper positioning context for dropdown */
    /* Prevent CLS */
    min-height: 44px;
    box-sizing: border-box;
}

.phone-input-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.country-selector {
    position: relative;
    flex-shrink: 0;
    z-index: 1; /* Ensure proper stacking context */
}

.country-btn {
    display: flex;
    align-items: center;
    gap: 6px; /* Reduced gap */
    padding: 12px 16px;
    background: var(--white);
    border: none;
    border-right: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    min-width: 120px; /* Adjusted for fixed layout */
    width: 120px; /* Fixed width */
    border-radius: 0;
    font-family: var(--font-secondary);
    /* Prevent layout shift */
    box-sizing: border-box;
    /* Ensure consistent height */
    min-height: 44px;
    justify-content: flex-start; /* Ensure proper alignment */
}

.country-btn > * {
    flex-shrink: 0;
}

.country-btn .country-flag {
    width: 20px;
    height: 15px;
    margin-right: 8px;
}

.country-btn .country-code {
    width: 60px; /* Fixed width for code */
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: visible;
    display: inline-block;
    margin-right: 8px;
}

.country-btn i {
    width: 12px;
    text-align: center;
    font-size: 12px;
}

.country-btn:hover {
    background: var(--light-gray);
}

.country-btn:focus {
    outline: none;
    border-color: var(--primary-color);
}

.country-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.country-btn.active .country-code {
    color: var(--white);
}

.country-btn.active i {
    transform: rotate(180deg);
    color: var(--white);
}

.country-fixed {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--white);
    border: none;
    border-right: 2px solid var(--border-color);
    min-width: 120px;
    width: 120px;
    border-radius: 0;
    font-family: var(--font-secondary);
    box-sizing: border-box;
    min-height: 44px;
    justify-content: flex-start;
}

.country-fixed > * {
    flex-shrink: 0;
}

.country-fixed .country-flag {
    width: 20px;
    height: 15px;
    margin-right: 8px;
}

.country-fixed .country-code {
    width: 60px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: visible;
    display: inline-block;
    margin-right: 8px;
}

.country-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    /* Prevent CLS by ensuring consistent dimensions */
    aspect-ratio: 20 / 15;
}

.country-code {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
    /* Prevent text reflow */
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.country-btn i {
    font-size: 12px;
    color: var(--text-gray);
    transition: transform 0.2s ease;
}

.country-dropdown {
    position: absolute;
    top: 100%;
    left: -2px;
    right: -2px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 10000; /* Increased z-index to ensure it appears above other elements */
    max-height: 280px;
    overflow: hidden;
    display: none;
    margin-top: 4px;
    /* Prevent CLS */
    will-change: transform;
    transform: translateZ(0);
    /* Ensure consistent positioning */
    box-sizing: border-box;
}

.country-dropdown.show {
    display: block;
    /* Smooth animation without causing layout shift */
    animation: dropdownFadeIn 0.15s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.country-list {
    max-height: 240px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #dee2e6 transparent;
    /* Optimize scrolling performance */
    will-change: scroll-position;
    transform: translateZ(0);
    /* CSS containment for better performance */
    contain: layout style paint;
}

.country-list::-webkit-scrollbar {
    width: 6px;
}

.country-list::-webkit-scrollbar-track {
    background: transparent;
}

.country-list::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 3px;
}

.country-list::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}

.country-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
    /* Optimize rendering performance */
    contain: layout style paint;
    will-change: background-color;
    /* Prevent CLS with consistent height */
    min-height: 48px;
    box-sizing: border-box;
}

.country-option:last-child {
    border-bottom: none;
}

.country-option:hover {
    background: var(--light-gray);
}

.country-option:focus {
    outline: none;
    background: var(--light-gray);
}

.country-option.selected {
    background: rgba(255, 177, 0, 0.08);
    border-left: 3px solid var(--primary-color);
    padding-left: 13px;
}

.country-option-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    /* Optimize image loading */
    image-rendering: -webkit-optimize-contrast;
    /* Prevent CLS */
    aspect-ratio: 20 / 15;
}

.country-option-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-secondary);
    /* Optimize text rendering */
    text-rendering: optimizeLegibility;
}

.country-option-code {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 600;
    font-family: var(--font-secondary);
    /* Optimize text rendering */
    text-rendering: optimizeLegibility;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 3px;
    min-width: 45px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.country-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    color: var(--text-gray);
}

.country-loading i {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.country-loading span {
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-secondary);
}

.phone-input-container input[type="tel"] {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: var(--font-secondary);
    background: transparent;
}

.phone-input-container input[type="tel"]:focus {
    outline: none;
}

.phone-input-container input[type="tel"]::placeholder {
    color: var(--text-gray);
    opacity: 0.7;
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    .phone-input-container {
        flex-direction: column;
        border-radius: 8px;
    }

    .country-btn {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        padding: 16px 18px;
        background: var(--white);
        border: 2px solid var(--border-color);
        border-radius: 8px;
        cursor: pointer;
        transition: var(--transition);
        font-family: var(--font-secondary);
        font-size: 16px;
        width: 100%;
        margin-bottom: 8px;
        min-height: 56px; /* Ensure consistent height to prevent CLS */
        box-sizing: border-box;
        /* Ensure code is always visible */
        min-width: 200px;
    }

    .country-btn .country-flag {
        flex-shrink: 0;
        width: 24px;
        height: 18px;
    }

    .country-btn .country-code {
        flex: 1;
        font-size: 16px;
        font-weight: 700;
        min-width: 60px; /* Ensure code has enough space */
        white-space: nowrap;
        text-align: left;
    }

    .country-btn i {
        flex-shrink: 0;
        margin-left: auto;
        font-size: 16px;
    }

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

    .country-btn.active {
        border-color: var(--primary-color);
        background: rgba(74, 144, 226, 0.05);
    }

    .country-btn i {
        transition: transform 0.2s ease;
        color: var(--text-gray);
    }

    .country-btn.active i {
        transform: rotate(180deg);
        color: var(--primary-color);
    }

    /* Ensure .country-fixed behaves like .country-btn on small screens */
    .country-fixed {
        width: 100%;
        min-width: 0; /* allow shrinking inside flex-column */
        padding: 16px 18px;
        background: var(--white);
        border: 2px solid var(--border-color);
        border-radius: 8px;
        display: flex;
        align-items: center;
        gap: 10px;
        box-sizing: border-box;
        margin-bottom: 8px;
        min-height: 56px;
        justify-content: flex-start;
    }

    .country-fixed .country-flag {
        width: 24px;
        height: 18px;
        flex-shrink: 0;
    }

    .country-fixed .country-code {
        font-size: 16px;
        font-weight: 700;
        white-space: nowrap;
    }

    .country-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        margin-top: 4px;
        border-radius: 8px;
        max-height: 250px;
        z-index: 10000;
    }

    .country-list {
        max-height: 200px;
    }

    .country-option {
        padding: 16px 18px;
        gap: 14px;
        border-bottom: 1px solid var(--border-color);
    }

    .country-option-flag {
        width: 28px;
        height: 20px;
        /* Prevent CLS */
        aspect-ratio: 28 / 20;
    }

    .country-option-name {
        font-size: 16px;
        flex: 1;
    }

    .country-option-code {
        font-size: 15px;
        font-weight: 700;
        color: var(--primary-color);
        background: rgba(255, 177, 0, 0.1);
        padding: 4px 8px;
        border-radius: 4px;
        min-width: 50px;
        text-align: center;
        border: 1px solid rgba(255, 177, 0, 0.2);
    }

    #phone {
        width: 100%;
        padding: 16px 18px;
        border: 2px solid var(--border-color);
        border-radius: 8px;
        font-size: 16px; /* Prevent zoom on iOS */
        background: var(--white);
        transition: var(--transition);
        /* Prevent CLS */
        min-height: 56px;
        box-sizing: border-box;
    }

    #phone:focus {
        border-color: var(--primary-color);
        outline: none;
        box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    }
}

@media (max-width: 480px) {
    .phone-input-container {
        border-radius: 6px;
    }

    .country-btn {
        padding: 14px 16px;
        min-width: 100px;
    }

    .country-dropdown {
        border-radius: 6px;
        max-height: 220px;
    }

    .country-list {
        max-height: 180px;
    }

    .country-option {
        padding: 14px 16px;
        gap: 12px;
    }

    .country-option-flag {
        width: 26px;
        height: 18px;
    }

    .country-option-name {
        font-size: 15px;
    }

    .country-option-code {
        font-size: 14px;
        padding: 3px 6px;
        min-width: 45px;
    }

    #phone {
        padding: 14px 16px;
        font-size: 16px;
    }
/* DEBUG OVERRIDES (DISABLED): previously forced visibility on mobile for troubleshooting.
   These rules caused persistent !important styles (e.g. .cart-sidebar) and broke mobile interactions.
   Kept here disabled — enable only by adding the class `debug-animate` to `<html>` during debugging.
*/

/* To enable debugging: add `debug-animate` class to <html> and uncomment the block below.
@media (max-width: 480px) {
    .debug-animate .hero-title,
    .debug-animate .hero-subtitle,
    .debug-animate .hero-content .btn,
    .debug-animate .section,
    .debug-animate .transition-fade,
    .debug-animate .page-header,
    .debug-animate .page-header .section-title,
    .debug-animate .page-header .section-subtitle,
    .debug-animate .search-overlay,
    .debug-animate .search-overlay form,
    .debug-animate .search-input,
    .debug-animate .book-card,
    .debug-animate .book-card *,
    .debug-animate .featured-swiper,
    .debug-animate .swiper-slide,
    .debug-animate .newsletter-section,
    .debug-animate .footer,
    .debug-animate .overlay,
    .debug-animate .cart-sidebar,
    .debug-animate .user-sidebar {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    html.debug-animate.is-changing .search-overlay,
    html.debug-animate.is-changing .search-input,
    html.debug-animate.is-changing .transition-fade,
    html.debug-animate.is-changing .hero-content {
        opacity: 1 !important;
        transform: none !important;
    }
}
*/

/* Page transition overlay used by transitions.js to avoid flashes */
.page-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--white);
    will-change: transform;
    pointer-events: none;
    transform: translateX(-100%);
}

/* Prevent visual glitches during page transitions */
.page-transitioning {
    overflow: hidden !important;
    height: 100vh !important;
    position: fixed !important;
    width: 100% !important;
}

.page-transitioning * {
    will-change: auto !important;
}

/* Ensure overlay covers everything during transitions */
.page-transitioning .page-overlay {
    z-index: 10001 !important;
}

/* DISABLE PAGE TRANSITIONS - developer requested: remove transition overlays */
/* This override prevents a full-screen overlay and ensures elements remain visible */
.page-overlay {
    display: none !important;
    background: transparent !important;
    pointer-events: none !important;
    transform: none !important;
}
.page-transitioning {
    position: static !important;
    overflow: visible !important;
    height: auto !important;
}
.page-transitioning * {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
}
html.is-changing .search-overlay,
html.is-changing .search-input,
html.is-changing .transition-fade,
html.is-changing .hero-content {
    visibility: visible !important;
    opacity: 1 !important;
}

@media (max-width: 768px) {
  .header,
  .header.hidden,
  .header.up,
  .header.hide,
  .header--hidden,
  header {
    transform: translateY(0) !important;
    top: 0 !important;
    transition: var(--transition);
    will-change: auto;
  }

  /* impedir botões fixos que aparecem quando o header é escondido */
  .fixed-header-buttons {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* Responsive tweaks for small mobile (min 375x667 target) */
@media (max-width: 375px), (max-height: 667px) {
    /* Header adjustments */
    .header {
        padding: 8px 12px !important;
        height: auto !important;
    }
    .nav-actions {
        gap: 8px !important;
    }
    .nav-actions .icon-btn,
    .fixed-header-buttons .fixed-cart-btn,
    .fixed-header-buttons .fixed-user-btn {
        width: 36px !important;
        height: 36px !important;
    }
    .hamburger {
        width: 28px !important;
        gap: 6px !important;
    }
    .header .logo {
        max-width: 140px !important;
    }
    /* Ensure overlays don't block interactions */
    .overlay, .page-overlay { display: none !important; }
    /* Make search overlay full-screen and accessible */
    #searchOverlay { position: fixed; inset: 0; z-index: 2000; display: none; }
    #searchOverlay.active { display: block; }
    /* Ensure cart/user sidebars are hidden by default on small screens; show via .active */
    .cart-sidebar, .user-sidebar {
        position: fixed !important;
        right: -100% !important;
        top: 0;
        height: 100%;
        width: 100%;
        max-width: 100vw;
        background: var(--white);
        z-index: 2000;
        transition: right 0.28s ease !important;
        overflow-y: auto;
        pointer-events: none;
    }
    .cart-sidebar.active, .user-sidebar.active {
        right: 0 !important;
        pointer-events: auto !important;
    }
}

/* Prevent font loading layout shifts */
* {
    font-display: swap;
}

/* Parallax effects */
[data-parallax] {
    will-change: transform;
}

/* Animation enhancements */
.book-card, .btn, .service-card, .benefit-card {
    transition: transform 0.3s ease;
    will-change: transform;
}

.book-card:hover, .service-card:hover, .benefit-card:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Smooth animations for better UX */
* {
    scroll-behavior: smooth;
}

/* Custom animation classes */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 123, 255, 0.4);
    }
}

    .animate-pulse-glow {
        animation: pulse-glow 2s ease-in-out infinite;
    }

/* ===================================
   SERVICE PRICING STYLES
   =================================== */

.promotion-container {
    margin-bottom: 15px;
    position: relative;
}

.discount-badge {
    /* Use a solid site color (no gradient) and keep contrast consistent */
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 14px 24px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 12px;
    box-shadow: 0 3px 10px rgba(14,27,77,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    position: relative;
    overflow: hidden;
}

/* Remove shimmer/gradient pseudo-element */
.discount-badge::before { display: none !important; }
.discount-badge:hover::before { left: auto !important; }

.promotion-description {
    /* No gradient — use a subtle solid tint so mobile/desktop match */
    background: rgba(255,177,0,0.06);
    color: var(--primary-color);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9em;
    border-left: 4px solid var(--secondary-color);
    margin-bottom: 12px;
    line-height: 1.5;
    box-shadow: none;
    position: relative;
    max-width: 280px;
    display: inline-block;
    vertical-align: top;
    margin-left: 15px;
}

/* Remove emoji/pseudo icon */
.promotion-description::before { content: none; }

.plan-price-new {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 8px 0;
}

.price-old {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.85em;
    font-weight: 500;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 2px;
}

.price-new {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 2px;
    text-shadow: 0 1px 2px rgba(14, 27, 77, 0.1);
}

.price-old .currency,
.price-new .currency {
    font-weight: normal;
    font-size: 0.9em;
}

.price-old .amount,
.price-new .amount {
    font-weight: bold;
}

/* Enhanced old price styling */
.old-price {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.85em;
    font-weight: 500;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .discount-badge {
        font-size: 0.85em;
        padding: 8px 14px;
        margin-bottom: 10px;
        /* ensure mobile shows the same solid background */
        background: var(--secondary-color) !important;
        color: var(--primary-color) !important;
        box-shadow: 0 3px 8px rgba(14,27,77,0.05);
    }

    .promotion-description {
        font-size: 0.85em;
        padding: 10px 14px;
        margin-bottom: 10px;
        max-width: 100%;
        margin-left: 0;
        display: block;
    }

    .plan-price-new {
        gap: 8px;
        margin: 6px 0;
        align-items: center; /* center current price */
    }

    .price-new {
        font-size: 1.2em;
    }

    .price-old {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .discount-badge {
        font-size: 0.8em;
        padding: 6px 12px;
    }

    .promotion-description {
        font-size: 0.8em;
        padding: 8px 12px;
    }

    .plan-price-new {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .price-new {
        font-size: 1.1em;
    }
}

/* ===================================
   ADMIN UI STYLES
   =================================== */

.info-message {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9em;
    margin-bottom: 15px;
    border-left: 3px solid var(--primary-color);
}

#services .card {
    max-width: none;
}

#services table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#services th, #services td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

#services th {
    background: var(--light-gray);
    font-weight: 600;
    color: var(--primary-color);
}

#services tr:hover {
    background: rgba(59, 130, 246, 0.02);
}

#services .actions {
    white-space: nowrap;
}

#services .btn {
    padding: 6px 12px;
    font-size: 0.85em;
}

/* ===================================
   KLARO COOKIE CONSENT STYLING
   =================================== */

.klaro {
    font-family: var(--font-secondary) !important;
    font-size: 14px !important;
}

.cm-modal {
    background: var(--white) !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow-lg) !important;
    border: none !important;
}

.cm-modal .cm-header {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    padding: 20px !important;
    border-radius: 12px 12px 0 0 !important;
}

.cm-modal .cm-title {
    font-family: var(--font-primary) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.cm-modal .cm-body {
    padding: 20px !important;
}

.cm-modal .cm-description {
    color: var(--text-dark) !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
}

.cm-modal .cm-app-list {
    margin: 20px 0 !important;
}

.cm-modal .cm-app {
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin-bottom: 10px !important;
    background: var(--light-gray) !important;
}

.cm-modal .cm-app-title {
    font-weight: 600 !important;
    color: var(--primary-color) !important;
    margin-bottom: 5px !important;
}

.cm-modal .cm-app-description {
    color: var(--text-gray) !important;
    font-size: 0.9rem !important;
}

.cm-modal {
    background: var(--white) !important;
    color: var(--primary-color) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(14,27,77,0.15) !important;
    max-width: 600px !important;
    margin: 20px auto !important;
}

.cm-modal .cm-header {
    background: var(--white) !important;
    color: var(--primary-color) !important;
    border-bottom: 1px solid rgba(14,27,77,0.1) !important;
    padding: 20px !important;
}

.cm-modal .cm-header h1.title {
    color: var(--primary-color) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
}

.cm-modal .cm-header p {
    color: var(--primary-color) !important;
    margin-top: 10px !important;
}

.cm-modal .cm-body {
    background: var(--white) !important;
    color: var(--primary-color) !important;
    padding: 20px !important;
}

.cm-modal .cm-footer {
    background: var(--white) !important;
    border-top: 1px solid rgba(14,27,77,0.1) !important;
    padding: 20px !important;
}

.cm-modal .cm-btn {
    background: var(--secondary-color) !important; /* yellow */
    color: var(--primary-color) !important; /* blue text */
    border: 2px solid var(--secondary-color) !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    margin: 5px !important;
}

.cm-modal .cm-btn:hover {
    background: var(--primary-color) !important; /* blue bg on hover */
    color: var(--secondary-color) !important; /* yellow text */
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-md) !important;
}

.cm-modal .cm-btn.cm-btn-success {
    background: var(--secondary-color) !important; /* yellow */
    color: var(--primary-color) !important;
    border-color: var(--secondary-color) !important;
}

.cm-modal .cm-btn.cm-btn-success:hover {
    background: var(--primary-color) !important;
    color: var(--secondary-color) !important;
}

.cm-modal .cm-btn.cm-btn-decline {
    background: var(--white) !important;
    color: var(--primary-color) !important;
    border-color: rgba(14,27,77,0.2) !important;
}

.cm-modal .cm-btn.cm-btn-decline:hover {
    background: rgba(14,27,77,0.05) !important;
}

.cm-modal .cm-link {
    color: var(--primary-color) !important;
    text-decoration: underline !important;
}

.cm-modal .cm-link:hover {
    color: var(--secondary-color) !important;
}

.cm-modal .cm-list-title,
.cm-modal .cm-list-description,
.cm-modal .purposes {
    color: var(--primary-color) !important;
}

.cm-modal .cm-btn {
    background: var(--secondary-color) !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--secondary-color) !important;
    border-radius: 6px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    margin: 5px !important;
}

.cm-modal .cm-btn:hover {
    background: var(--primary-color) !important;
    color: var(--secondary-color) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-md) !important;
}

.cm-modal .cm-btn.cm-btn-success {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border-color: var(--primary-color) !important;
}

.cm-modal .cm-btn.cm-btn-success:hover {
    background: var(--secondary-color) !important;
    color: var(--primary-color) !important;
}

.cm-modal .cm-btn.cm-btn-decline {
    background: var(--white) !important;
    color: var(--text-dark) !important;
    border-color: var(--border-color) !important;
}

.cm-modal .cm-btn.cm-btn-decline:hover {
    background: var(--light-gray) !important;
}

.cm-notice {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    padding: 15px 20px !important;
    border-radius: 8px !important;
    box-shadow: var(--shadow-md) !important;
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    max-width: 400px !important;
    z-index: 10000 !important;
}

.cm-notice .cm-description {
    margin-bottom: 15px !important;
    color: var(--white) !important;
}
.cm-notice p {
    color: var(--primary-color) !important;
}

.cm-notice .cm-btn {
    background: var(--secondary-color) !important;
    color: var(--primary-color) !important;
    border: none !important;
    margin-right: 10px !important;
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
}

.cm-notice .cm-btn:hover {
    background: var(--white) !important;
    color: var(--primary-color) !important;
}

.cm-notice .cm-link {
    color: var(--secondary-color) !important;
    text-decoration: underline !important;
}

.cm-notice .cm-link:hover {
    color: var(--white) !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .cm-modal {
        margin: 10px !important;
        max-width: none !important;
        width: calc(100vw - 20px) !important;
    }

    .cm-notice {
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        max-width: none !important;
    }

    .cm-modal .cm-btn {
        width: 100% !important;
        margin: 5px 0 !important;
    }
}

/* Position Klaro notice bottom left */
.cm-notice {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    right: auto !important;
    top: auto !important;
    z-index: 10000 !important;
}
}

/* Fallback cookie banner (markup: cookie-notice / cn-*) */
.cookie-notice, #cookie-fallback {
    background: var(--white) !important; /* white card */
    color: var(--primary-color) !important; /* blue text */
    padding: 20px 20px !important; /* slightly bigger */
    border-radius: 12px !important;
    /* stronger but soft bluish shadow for better separation */
    box-shadow: 0 25px 100px rgba(14,27,77,0.25) !important;
    border: 1px solid rgba(14,27,77,0.06) !important;
    max-width: 520px !important;
    font-family: var(--font-secondary) !important;
    animation: slideInFromBottom 420ms cubic-bezier(.2,.9,.3,1) both !important;
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    right: auto !important;
    z-index: 10000 !important;
}
.cookie-notice .cn-body, #cookie-fallback .cn-body {
    font-size: 1rem !important;
    line-height: 1.45 !important;
}
.cookie-notice .cn-ok, #cookie-fallback .cn-ok {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
}
.cookie-notice .cn-buttons, #cookie-fallback .cn-buttons {
    display: flex !important;
    gap: 10px !important;
}
.cookie-notice .cn-decline, #cookie-fallback .cn-decline {
    background: transparent !important;
    color: var(--primary-color) !important;
    border: 1px solid rgba(14,27,77,0.08) !important;
    padding: 9px 14px !important;
    border-radius: 22px !important;
    transform: translateX(8px) !important;
    animation: slideInFromRight 420ms cubic-bezier(.2,.9,.3,1) both 120ms !important;
}
.cookie-notice .cn-decline:hover, #cookie-fallback .cn-decline:hover {
    background: rgba(14,27,77,0.02) !important;
}
.cookie-notice .cn-accept, #cookie-fallback .cn-accept, .cookie-notice .cm-btn-success {
    background: var(--secondary-color) !important; /* solid yellow */
    color: var(--primary-color) !important;
    padding: 9px 16px !important;
    border-radius: 22px !important;
    border: none !important;
    font-weight: 700 !important;
    transform: translateX(8px) !important;
    animation: slideInFromRight 420ms cubic-bezier(.2,.9,.3,1) both 240ms !important;
}
.cookie-notice .cn-accept:hover, #cookie-fallback .cn-accept:hover {
    transform: translateY(-1px) !important;
}
.cookie-notice .cm-link, #cookie-fallback .cm-link {
    color: var(--primary-color) !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

/* Ensure title stands out and body text is blue */
.cookie-notice .cn-title, #cookie-fallback .cn-title {
    color: var(--primary-color) !important;
    font-weight: 900 !important;
    font-size: 1.2rem !important;
    margin-bottom: 10px !important;
    display: block !important;
}
.cookie-notice .cn-body, #cookie-fallback .cn-body {
    color: var(--primary-color) !important;
}
.cookie-notice .cn-body p, .cookie-notice .cn-body span,
#cookie-fallback .cn-body p, #cookie-fallback .cn-body span {
    color: var(--primary-color) !important;
}

/* Apoio (Saiba mais) page styling */
body.page-apoio {
    background: #f2f8ff; /* very light blue */
    color: var(--primary-color);
}
body.page-apoio h1, body.page-apoio h2, body.page-apoio h3 {
    color: var(--primary-color);
}
body.page-apoio .page-title {
    color: var(--white);
}
body.page-apoio a {
    color: var(--primary-color);
}
body.page-apoio .btn, body.page-apoio .btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 8px;
    padding: 10px 16px;
}

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

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

