/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1e1e2f;
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
    position: absolute;
    top: -9999px;
    left: -9999px;
    background: #4361ee;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    z-index: 10000;
    /* No transition – we don't need animation for this */
}

.skip-link:focus {
    top: 6px;
    left: 6px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 120px 0;
    position: relative;
}

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

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.12;
    background: linear-gradient(135deg, #1e1e2f 0%, #4361ee 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #1e1e2f; /* fallback */
}

.section-header p {
    font-size: 1.25rem;
    color: #5a5a6e;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.accent {
    color: #4361ee;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 60px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: left 0.4s;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn-primary {
    background: #4361ee;
    background: linear-gradient(145deg, #4361ee, #3049c2);
    color: white;
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(67, 97, 238, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #4361ee;
    border: 2px solid #4361ee;
    box-shadow: none;
}

.btn-secondary:hover {
    background: #4361ee;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.2);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* ===== NAVBAR ===== */
/* ===== ENHANCED HEADER STYLES ===== */
.navbar {
    --header-height: 100px;
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(67, 97, 238, 0.08);
    box-shadow: none !important;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: var(--header-height);
    padding: 10px 24px;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(67, 97, 238, 0.12);
}

.navbar .nav-container {
    display: flex;
    /* justify-content: space-between; */
    justify-content: flex-start;
    align-items: center;
    min-height: calc(var(--header-height) - 20px);
    height: calc(var(--header-height) - 20px);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    flex-wrap: nowrap;
    /* gap: 50px; */
    gap: 1.5rem;
}

/* Desktop layout orders */
.logo {
    order: 1;
}

.nav-list {
    order: 2;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-actions {
    order: 3;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Desktop-only elements (auth buttons, user greeting) */
.nav-desktop-only {
    display: inline-flex;
    align-items: center;
}

/* Mobile-only elements (auth links inside slide menu) */
.nav-mobile-only {
    display: none;
}

/* Divider line inside mobile slide-out menu */
.nav-mobile-divider {
    display: none;
    height: 1px;
    background: rgba(67, 97, 238, 0.12);
    margin: 8px 0;
    list-style: none;
}

/* Desktop CTA button: "Get a Quote" */
.btn-nav-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 18px;
    background: linear-gradient(135deg, #4361ee, #4895ef);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(67, 97, 238, 0.30);
    margin-left: 4px;
}

.btn-nav-primary:hover,
.btn-nav-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.40);
    background: linear-gradient(135deg, #3451d4, #4361ee);
    color: #ffffff !important;
}

.btn-nav-primary:focus {
    outline: 2px solid #4361ee;
    outline-offset: 2px;
}

/* Ghost / outline login button */
.btn-nav-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px;
    border: 1.5px solid rgba(67, 97, 238, 0.35);
    color: #4361ee;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    margin-left: 2px;
}

.btn-nav-ghost:hover,
.btn-nav-ghost:focus {
    background: rgba(67, 97, 238, 0.07);
    border-color: #4361ee;
    transform: translateY(-1px);
    color: #4361ee;
}

.btn-nav-ghost.active {
    background: rgba(67, 97, 238, 0.10);
    border-color: #4361ee;
}

.btn-nav-ghost:focus {
    outline: 2px solid #4361ee;
    outline-offset: 2px;
}

/* Logged-in greeting: "Hi, Name" */
.nav-user-greeting {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e1e2f;
    white-space: nowrap;
    padding: 0 6px;
}

.nav-user-greeting i {
    color: #4361ee;
    font-size: 1.1rem;
}

/* Hide hamburger on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border: none;
    transform: translateZ(0);
}

.hamburger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(72, 149, 239, 0.1) 100%);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.hamburger:hover::before,
.hamburger:focus::before,
.hamburger.active::before {
    opacity: 1;
}

.hamburger:hover,
.hamburger:focus {
    transform: scale(1.05);
}

.hamburger:focus {
    outline: 2px solid #4361ee;
    outline-offset: 2px;
}

.bar {
    width: 26px;
    height: 3px;
    background: #1e1e2f;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Search toggle and cart icon inside mobile-actions */
/* Search toggle and cart icon inside nav-actions */
.search-toggle {
    color: #1e1e2f;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 11px;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(0);
}

.search-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(72, 149, 239, 0.1) 100%);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.search-toggle:hover,
.search-toggle:focus {
    color: #4361ee;
    transform: translateY(-2px) scale(1.05);
}

.search-toggle:hover::before,
.search-toggle:focus::before {
    opacity: 1;
}

.search-toggle:focus {
    outline: 2px solid #4361ee;
    outline-offset: 2px;
}

.cart-icon {
    color: #1e1e2f;
    font-size: 1.4rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    transform: translateZ(0);
}

.cart-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(72, 149, 239, 0.1) 100%);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.cart-icon:hover,
.cart-icon:focus {
    color: #4361ee;
    transform: translateY(-2px) scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(67, 97, 238, 0.2));
}

.cart-icon:hover::before,
.cart-icon:focus::before {
    opacity: 1;
}

.cart-icon:focus {
    outline: 2px solid #4361ee;
    outline-offset: 2px;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #4361ee, #4895ef);
    color: white;
    border-radius: 50%;
    padding: 3px 7px;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: cartPulse 2s infinite;
}

@keyframes cartPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 8px rgba(67, 97, 238, 0.2);
    }
}

/* Search container (dropdown) */
.search-container {
    order: 6;
    position: absolute;
    top: 100%;
    right: 24px;
    width: 300px;
    max-width: calc(100vw - 48px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(67, 97, 238, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow: hidden;
}

.search-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.search-form {
    display: flex;
    align-items: center;
    padding: 4px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #1e1e2f;
    outline: none;
    border-radius: 8px;
}

.search-input::placeholder {
    color: #999;
    font-style: italic;
}

.search-submit {
    padding: 12px 16px;
    background: linear-gradient(135deg, #4361ee, #4895ef);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit:hover,
.search-submit:focus {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.search-submit:focus {
    outline: 2px solid #4361ee;
    outline-offset: 2px;
}

.logo a {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e1e2f 0%, #4361ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #1e1e2f;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    transform: translateZ(0);
}

.logo a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(30, 30, 47, 0.05) 100%);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none !important;
    z-index: -1;
}

.logo a:hover {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, #4361ee 0%, #1e1e2f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 8px rgba(67, 97, 238, 0.2));
}

.logo a:hover::before {
    opacity: 1;
}

.logo a:focus {
    outline: 2px solid #4361ee;
    outline-offset: 2px;
    border-radius: 8px;
}

.logo span {
    font-weight: 300;
    color: #4361ee;
    background: none;
    -webkit-text-fill-color: #4361ee;
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 11px 14px;
    color: #1e1e2f;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    letter-spacing: 0.01em;
    border-radius: 6px;
    display: inline-block;
    line-height: 1.2;
    transform: translateZ(0);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.08) 0%, rgba(72, 149, 239, 0.08) 100%);
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #4361ee, #4895ef);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

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

.nav-link:hover,
.nav-link:focus {
    color: #4361ee;
    transform: translateY(-2px);
    font-weight: 600;
}

.nav-link:hover::before,
.nav-link:focus::before {
    opacity: 1;
}

.nav-link:focus {
    outline: 2px solid #4361ee;
    outline-offset: 2px;
}

.nav-link.active {
    color: #4361ee;
    font-weight: 600;
    background: rgba(67, 97, 238, 0.05);
}

/* ===== HERO SECTION ===== */
.hero {
    background: #f8faff;
    background: radial-gradient(circle at 80% 30%, rgba(67, 97, 238, 0.08) 0%, transparent 30%),
                linear-gradient(145deg, #ffffff 0%, #f8faff 100%);
    padding-top: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(67,97,238,0.03) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.25rem;
    color: #5a5a6e;
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    font-size: 9rem;
    color: #4361ee;
    opacity: 0.9;
    filter: drop-shadow(0 20px 25px rgba(67,97,238,0.15));
}

.hero-image i {
    animation: float 4s ease-in-out infinite;
    transition: transform 0.3s;
}

.hero-image i:hover {
    transform: scale(1.1) rotate(5deg);
}

.hero-image i:nth-child(2) { animation-delay: 0.6s; color: #4895ef; }
.hero-image i:nth-child(3) { animation-delay: 1.2s; color: #4cc9f0; }

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(3deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* ===== PORTFOLIO ===== */
.portfolio {
    background: #ffffff;
    position: relative;
}

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

.portfolio-item {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 35px -8px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 45px -10px rgba(67, 97, 238, 0.25);
}

.portfolio-img {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 25px;
    transition: transform 0.6s;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-img .overlay {
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
    color: white;
    width: 100%;
    padding: 25px 20px;
    border-radius: 20px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
    border: 1px solid rgba(255,255,255,0.1);
}

.portfolio-item:hover .overlay {
    transform: translateY(0);
    opacity: 1;
}

.overlay h3 {
    font-size: 1.6rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.overlay p {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
}

/* ===== PRICING ===== */
.pricing {
    background: linear-gradient(145deg, #f8faff 0%, #ffffff 100%);
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: stretch;
}

.pricing-card {
    background: white;
    border-radius: 40px;
    padding: 50px 30px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.05);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    border: 1px solid rgba(255,255,255,0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 40px 60px -10px rgba(67,97,238,0.25);
    border-color: #4361ee20;
}

.pricing-card.popular {
    border: 2px solid #4361ee;
    background: linear-gradient(145deg, #ffffff, #f5f7ff);
}

.pricing-card.popular:hover {
    transform: translateY(-20px) scale(1.03);
}

.badge {
    position: absolute;
    top: 20px;
    right: 30px;
    background: linear-gradient(145deg, #4361ee, #3049c2);
    color: white;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(67,97,238,0.3);
}

.card-header {
    text-align: center;
    margin-bottom: 35px;
}

.card-header h3 {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #1e1e2f;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.price {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(145deg, #4361ee, #3049c2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #4361ee; /* fallback */
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.price .frequency {
    font-size: 0.42em;
    font-weight: 500;
    margin-left: 4px;
    color: #5a5a6e;
    -webkit-text-fill-color: #5a5a6e;
}

.features {
    margin-bottom: 45px;
    flex-grow: 1;
}

.features li {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #2b2b3a;
    font-size: 1.05rem;
}

.features i {
    color: #4361ee;
    width: 22px;
    font-size: 1.2rem;
}

.features .na i {
    color: #aaa;
}

.features .na {
    color: #aaa;
}

/* ===== CONTACT ===== */
.contact {
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(67,97,238,0.02) 0%, transparent 70%);
    bottom: -300px;
    left: -300px;
    border-radius: 50%;
    z-index: 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    background: linear-gradient(145deg, #1e1e2f, #4361ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #1e1e2f; /* fallback */
}

.contact-info p {
    margin-bottom: 35px;
    color: #5a5a6e;
    font-size: 1.1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 25px;
    font-size: 1.15rem;
    transition: transform 0.3s;
}

.info-item:hover {
    transform: translateX(8px);
}

.info-item i {
    font-size: 1.8rem;
    color: #4361ee;
    width: 40px;
}

.contact-form {
    background: rgba(248, 250, 255, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 50px;
    box-shadow: 0 25px 45px -15px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 24px;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 60px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.form-group textarea {
    border-radius: 30px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 10px 25px rgba(67,97,238,0.1);
    transform: scale(1.02);
}

.alert {
    padding: 16px 24px;
    border-radius: 60px;
    margin-bottom: 35px;
    font-weight: 500;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0,0,0,0.05);
}

.alert.success {
    background: rgba(212, 237, 218, 0.9);
    color: #155724;
}

.alert.error {
    background: rgba(248, 215, 218, 0.9);
    color: #721c24;
}

/* ===== DASHBOARD STYLES ===== */
.dashboard {
    padding: 200px 0 60px;
    background: #f8faff;
    min-height: 100vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(145deg, #1e1e2f, #4361ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #1e1e2f; /* fallback */
}

.subscription-card {
    background: white;
    border-radius: 30px;
    padding: 30px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.subscription-card .plan-name {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(145deg, #4361ee, #3049c2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #4361ee; /* fallback */
    margin-left: 10px;
}

.subscription-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: #1e1e2f;
}

.badge-active {
    background: #d4edda;
    color: #155724;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    background: white;
    border-radius: 30px;
    padding: 25px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 40px rgba(67,97,238,0.1);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-card .status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.status.in-progress {
    background: #fff3cd;
    color: #856404;
}

.status.completed {
    background: #d4edda;
    color: #155724;
}

.progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    margin: 15px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4361ee, #4895ef);
    border-radius: 10px;
}

/* ===== BLOG STYLES ===== */
.blog-page {
    padding: 0 0 60px;
    background: #ffffff;
}

.blog-title {
    margin-top: 120px;
    margin-bottom: 40px;
    font-size: 3rem;
    background: linear-gradient(145deg, #1e1e2f, #4361ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #1e1e2f; /* fallback */
}

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

.blog-card {
    background: #f8faff;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 40px rgba(67,97,238,0.1);
}

.blog-post-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.blog-post-title a {
    color: #1e1e2f;
    transition: color 0.3s;
}

.blog-post-title a:hover {
    color: #4361ee;
}

.blog-post-date {
    color: #5a5a6e;
    margin-bottom: 15px;
}

.blog-post-excerpt {
    margin-bottom: 25px;
    color: #2b2b3a;
    line-height: 1.6;
}

.single-post {
    padding: 0 0 60px;
}

.single-post article {
    max-width: 800px;
    margin: 0 auto;
}

.single-post h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

/* ===== FOOTER ===== */
.footer {
    background: #1e1e2f;
    color: white;
    padding: 80px 0 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4361ee, transparent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(145deg, #ffffff, #a0b5ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ffffff; /* fallback */
}

.footer-brand span {
    font-weight: 300;
    color: #4361ee;
    background: none;
    -webkit-text-fill-color: #4361ee;
}

.footer-brand p {
    color: #aaa;
    margin-top: 8px;
}

.footer-social {
    display: flex;
    gap: 18px;
}

.footer-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    transition: all 0.4s;
    font-size: 1.3rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.footer-social a:hover {
    background: #4361ee;
    transform: translateY(-8px) scale(1.1);
    border-color: transparent;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #aaa;
    font-size: 0.95rem;
}

.footer-bottom a {
    color: #aaa;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #4361ee;
}

/* ===== COOKIE CONSENT ===== */
.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 1200;
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner-content {
    background: #ffffff;
    border: 1px solid rgba(67, 97, 238, 0.15);
    border-radius: 18px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.14);
    padding: 22px;
    max-width: 900px;
    margin: 0 auto;
}

.cookie-banner-content h3 {
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.cookie-banner-content p {
    color: #5a5a6e;
    margin-bottom: 16px;
}

.cookie-preference-list {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: #2b2b3a;
}

.cookie-option input {
    margin-top: 2px;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-btn {
    border: 1px solid #d6d9e6;
    background: #ffffff;
    color: #1e1e2f;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
}

.cookie-btn:hover {
    border-color: #4361ee;
    color: #4361ee;
}

.cookie-btn-primary {
    background: #4361ee;
    border-color: #4361ee;
    color: #ffffff;
}

.cookie-btn-primary:hover {
    background: #3049c2;
    border-color: #3049c2;
    color: #ffffff;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== GLOBAL TOP PADDING FOR FIXED HEADER ===== */
body:not(.index) .container:first-of-type {
    padding-top: 50px;
}

body.login .container:first-of-type,
body.register .container:first-of-type,
body.blog .container:first-of-type,
body.dashboard .container:first-of-type,
body.post .container:first-of-type,
body.forgot-password .container:first-of-type,
body.reset-password .container:first-of-type,
body.new-project .container:first-of-type {
    padding-top: 50px;
}

/* ===== DISCOUNT & PRICE STYLES (GLOBAL) ===== */
.old-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.pricing-card .badge.discount {
    background: #e63946;
    color: white;
    font-weight: 700;
    left: 20px;
    right: auto;
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.pricing-card .badge:not(.discount) {
    right: 30px;
    left: auto;
}

.price {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(145deg, #4361ee, #3049c2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #4361ee;
    margin-top: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-image {
        font-size: 7rem;
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
    .section-header h2 {
        font-size: 2.4rem;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        --header-height: 92px;
        padding: 14px 18px !important;
    }

    .navbar .nav-container {
        min-height: calc(var(--header-height) - 28px) !important;
        height: calc(var(--header-height) - 28px) !important;
        gap: 12px;
        justify-content: space-between;
    }

    .logo {
        order: 1;
        flex-shrink: 0;
    }

    .logo a {
        font-size: 1.5rem;
        white-space: nowrap;
    }

    /* Show full logo on mobile */
    .logo span {
        display: inline;
    }

    /* Hide desktop nav menu on mobile */
    .nav-list {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        padding: 28px 20px 32px;
        gap: 12px;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        transition: left 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        border-radius: 0 0 24px 24px;
        z-index: 999;
        border-top: 1px solid rgba(67, 97, 238, 0.08);
    }

    .nav-list.active {
        left: 0;
    }

    .nav-list .nav-link {
        display: block;
        padding: 14px 18px;
        font-size: 1rem;
        font-weight: 500;
        color: #1e1e2f;
        text-decoration: none;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        margin: 2px 0;
    }

    .nav-list .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, rgba(67, 97, 238, 0.1) 0%, rgba(72, 149, 239, 0.1) 100%);
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: -1;
        border-radius: 12px;
    }

    .nav-list .nav-link:hover::before,
    .nav-list .nav-link:focus::before,
    .nav-list .nav-link.active::before {
        left: 0;
    }

    .nav-list .nav-link:hover,
    .nav-list .nav-link:focus,
    .nav-list .nav-link.active {
        color: #4361ee;
        transform: translateX(4px);
        font-weight: 600;
    }

    /* Mobile actions group */
    .nav-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        order: 2;
        margin-left: auto;
    }

    /* Hide desktop-only items on mobile */
    .nav-desktop-only {
        display: none !important;
    }

    /* Show mobile-only items in slide-out menu */
    .nav-mobile-only {
        display: block;
    }

    .nav-mobile-divider {
        display: block;
    }

    /* Style the Get a Quote link inside mobile menu */
    .nav-link-cta {
        background: linear-gradient(135deg, rgba(67, 97, 238, 0.12), rgba(72, 149, 239, 0.12)) !important;
        color: #4361ee !important;
        font-weight: 700 !important;
        border-radius: 12px !important;
    }

    .search-toggle {
        order: 1;
        font-size: 1.1rem;
        padding: 9px;
        margin-left: 0;
    }

    .cart-icon {
        order: 2;
        font-size: 1.3rem;
        padding: 9px;
        margin-right: 0;
        margin-left: 0;
    }

    .hamburger {
        order: 3;
        display: flex;
        padding: 9px;
        margin-right: 0;
        margin-left: 0;
        flex-shrink: 0;
    }

    .bar {
        width: 24px;
        height: 2.5px;
        background: #1e1e2f;
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .section {
        padding: 90px 0;
    }

    .section-header {
        margin-bottom: 44px;
    }

    .hero {
        padding-top: 150px;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .pricing-grid {
        gap: 30px;
    }

    body:not(.index) .container:first-of-type {
        padding-top: 120px;
    }

    .search-container {
        right: 20px;
        width: calc(100vw - 40px);
        top: calc(100% + 10px);
        max-width: 320px;
    }

    .search-input {
        font-size: 0.9rem;
        padding: 12px 14px;
    }

    .search-submit {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .navbar {
        --header-height: 84px;
        padding: 12px 12px !important;
    }

    .navbar .nav-container {
        min-height: calc(var(--header-height) - 24px) !important;
        height: calc(var(--header-height) - 24px) !important;
    }

    .nav-list {
        top: var(--header-height);
        padding: 24px 14px 28px;
    }

    .logo a {
        font-size: 1.55rem;
    }

    .bar {
        width: 26px;
        height: 3px;
    }

    .cart-icon {
        font-size: 1.2rem;
        margin-right: 0;
        margin-left: 0;
    }

    .hero-content h1 {
        font-size: 2.3rem;
    }
    .hero-image {
        font-size: 5rem;
    }
    .btn {
        padding: 12px 30px;
    }
    .footer-content {
        -webkit-flex-direction: column;
        -moz-flex-direction: column;
        flex-direction: column;
        text-align: center;
    }
    .contact-form {
        padding: 30px 20px;
    }

    .dashboard-header h1 {
        font-size: 2rem;
    }

    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .cookie-banner-content {
        padding: 16px;
    }

    .cookie-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }

    /* ===== SEARCH RESULTS PAGE ===== */
    .search-query {
        margin-bottom: 30px;
        font-size: 1.2rem;
        color: #5a5a6e;
    }

    .search-result-item {
        position: relative;
        padding: 30px;
        background: #f8faff;
        border-radius: 30px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.05);
        transition: transform 0.3s, box-shadow 0.3s;
    }

    .search-result-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 25px 40px rgba(67,97,238,0.1);
    }

    .result-type {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 0.8rem;
        padding: 4px 12px;
        border-radius: 50px;
        color: white;
    }

    .result-date {
        color: #5a5a6e;
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .result-excerpt {
        color: #2b2b3a;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    .project-status {
        display: inline-block;
        padding: 4px 12px;
        border-radius: 50px;
        font-size: 0.8rem;
        font-weight: 600;
    }

    /* Pagination */
    .pagination .btn {
        margin: 0 3px;
    }

    .vat-note {
        display: block;
        font-size: 0.8rem;
        color: #5a5a6e;
        margin-top: 5px;
    }

    /* Single post title – same top margin as blog listing */
    .post-title {
        margin-top: 50px;
        font-size: 2.8rem;
        margin-bottom: 20px;
    }

    .single-post {
        padding-top: 50px;
    }
    /* Account Settings */
    .account-settings-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }

@media (max-width: 768px) {
    .account-settings-grid {
        grid-template-columns: 1fr;
    }
}

    .account-settings-grid .pricing-card {
        height: fit-content;
    }

    .account-settings-grid .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: 500;
        color: #1e1e2f;
    }
    /* ===== ADMIN PANEL STYLES ===== */
/* These styles apply to pages inside the /admin folder */

/* Admin dashboard cards – reuse your existing .pricing-card but enhance */
.admin-dashboard {
    padding: 120px 0 60px;
}

.admin-dashboard h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #1e1e2f 0%, #4361ee 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #1e1e2f;
}

.admin-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Use your existing .pricing-card for cards, but ensure it works with admin */
.admin-card-grid .pricing-card {
    margin: 0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.admin-card-grid .pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 40px rgba(67,97,238,0.1);
}

.admin-card-grid .pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1e1e2f;
}

.admin-card-grid .pricing-card p {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4361ee;
    margin-bottom: 20px;
}

/* Admin tables (for projects, contacts, etc.) */
.admin-table-container {
    background: white;
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    margin-top: 30px;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.admin-table th {
    text-align: left;
    padding: 15px 10px;
    background: #f8faff;
    color: #1e1e2f;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
}

.admin-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.admin-table tr:hover td {
    background-color: #f9f9ff;
}

.admin-table .badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

/* Status badges */
.badge-review {
    background: #f39c12;
}
.badge-reviewed {
    background: #2ecc71;
}
.badge-in-progress {
    background: #3498db;
}
.badge-completed {
    background: #2ecc71;
}

/* Action buttons in tables */
.admin-table .btn-small {
    padding: 5px 12px;
    font-size: 0.8rem;
    margin: 2px;
}

/* Admin forms (for editing posts, etc.) */
.admin-form {
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 30px auto;
}

.admin-form .form-group {
    margin-bottom: 25px;
}

.admin-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e1e2f;
}

.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form input[type="url"],
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67,97,238,0.1);
}

.admin-form .btn {
    margin-right: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .admin-dashboard {
        padding: 100px 0 40px;
    }
    .admin-dashboard h1 {
        font-size: 2rem;
    }
    .admin-table td,
    .admin-table th {
        padding: 10px 5px;
        font-size: 0.85rem;
    }
}
/* Add top padding to the Manage Products page container */
body.admin .admin-dashboard {
    padding-top: 120px;  /* adjust as needed */
}

/* If the product management pages use a different wrapper, add this too */
body.admin .admin-table-container {
    margin-top: 20px;    /* extra space between header and table */
}
body.admin .products-page .admin-dashboard {
    padding-top: 120px;
}
/* ===== ONGOING COSTS BOX ===== */
.ongoing-costs-box {
    background: #f0f4ff;
    border-radius: 30px;
    padding: 40px 30px;
    margin-top: 50px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.ongoing-costs-box h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
    color: #1e1e2f;
}

.ongoing-costs-box .intro {
    color: #5a5a6e;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.ongoing-costs-box .cost-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
}

.ongoing-costs-box .cost-item {
    min-width: 160px;
}

.ongoing-costs-box .cost-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4361ee;
    display: block;
    line-height: 1.2;
}

.ongoing-costs-box .cost-item p {
    margin-top: 8px;
    font-weight: 600;
    color: #1e1e2f;
}

.ongoing-costs-box .cost-item small {
    color: #5a5a6e;
    font-size: 0.85rem;
    font-weight: normal;
}

.ongoing-costs-box .footer-note {
    color: #5a5a6e;
    margin-top: 20px;
    font-size: 0.95rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ongoing-costs-box {
        padding: 30px 20px;
    }
    .ongoing-costs-box .cost-grid {
        gap: 25px;
    }
    .ongoing-costs-box .cost-number {
        font-size: 2rem;
    }
}
.ongoing-costs-box .frequency {
    font-size: 0.8rem;
    font-weight: normal;
    color: #5a5a6e;
    margin-left: 3px;
}
.category-heading {
    font-size: 2rem;
    font-weight: 700;      /* bold */
    margin: 40px 0 20px;
    color: #1e1e2f;
    text-align: center;    /* center */
}

.category-heading:first-of-type {
    margin-top: 0;
}

@media screen and (min-width: 993px) {
    .pricing .category-heading {
        margin-bottom: 28px;
    }

    .pricing .pricing-grid + .category-heading,
    .pricing .pricing-card + .category-heading {
        margin-top: 72px;
    }
}

/* ===== LOTTO ANALYSIS ===== */
.lotto-page {
    background: linear-gradient(145deg, #f8faff 0%, #ffffff 100%);
}

.lotto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.lotto-meta {
    color: #5a5a6e;
    margin-bottom: 14px;
}

.lotto-top-note {
    color: #7a7f91;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.lotto-top-card {
    display: block;        /* override pricing-card's flex-direction:column */
    margin-bottom: 28px;
    padding: 36px 30px 32px;
}

.lotto-top-card:hover {
    transform: none;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
}

.lotto-top-numbers {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 10px;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    margin-top: 10px;
}

.lotto-number-chip {
    width: 76px;
    height: 96px;
    border-radius: 14px;
    text-align: center;
    padding: 10px 6px;
    background: linear-gradient(160deg, #d90429 0%, #ef233c 100%);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(217, 4, 41, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    cursor: default;
}

.lotto-number-chip:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 28px rgba(217, 4, 41, 0.32);
}

.lotto-chip-rank {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    opacity: 0.82;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.lotto-number-chip .number {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.lotto-number-chip small {
    display: block;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.68rem;
    margin-top: 5px;
    font-weight: 500;
}

.lotto-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.lotto-controls select {
    border: 1px solid #d5daeb;
    border-radius: 10px;
    padding: 7px 10px;
}

.lotto-combos-output {
    background: #f8faff;
    border: 1px solid rgba(67, 97, 238, 0.12);
    border-radius: 14px;
    padding: 12px 14px;
    min-height: 120px;
}

.lotto-combos-output li {
    margin-bottom: 8px;
    color: #1e1e2f;
    font-weight: 600;
}

.lotto-disclaimer {
    color: #5a5a6e;
    margin-top: 10px;
    font-size: 0.9rem;
}

.lotto-table-wrap {
    overflow-x: auto;
}

.lotto-table {
    width: 100%;
    border-collapse: collapse;
}

.lotto-table th,
.lotto-table td {
    text-align: left;
    border-bottom: 1px solid #eef1f9;
    padding: 10px 8px;
}

.lotto-table th {
    color: #1e1e2f;
}

.lotto-balls-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.lotto-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #d90429;
    color: #d90429;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(217, 4, 41, 0.15);
    transition: transform 0.15s ease;
}

.lotto-ball:hover {
    transform: scale(1.12);
}

.lotto-ball--bonus {
    background: #fff7e0;
    border-color: #f5a623;
    color: #b8710a;
    box-shadow: 0 2px 6px rgba(245, 166, 35, 0.25);
}

@media (max-width: 900px) {
    .lotto-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== LEGAL PAGES (Privacy Policy, Terms, Cookie Policy) ===== */
.legal-prose {
    color: var(--text-secondary, #3a3a4e);
    line-height: 1.8;
}

.legal-prose h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 40px 0 12px;
    color: var(--text-primary, #1a1a2e);
    border-bottom: 2px solid var(--primary, #6c63ff);
    padding-bottom: 6px;
}

.legal-prose h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 28px 0 10px;
    color: var(--text-primary, #1a1a2e);
}

.legal-prose p,
.legal-prose ul,
.legal-prose ol {
    margin-bottom: 14px;
}

.legal-prose ul,
.legal-prose ol {
    padding-left: 22px;
}

.legal-prose li {
    margin-bottom: 8px;
}

.legal-prose address {
    font-style: normal;
    background: #f7f7fb;
    border-radius: 8px;
    padding: 18px 22px;
    line-height: 2;
    margin-top: 8px;
}

.legal-prose a {
    color: var(--primary, #6c63ff);
    text-decoration: underline;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
    text-align: left;
    padding: 10px 14px;
    border: 1px solid #e0e0ee;
}

.legal-table th {
    background: #f0f0fa;
    font-weight: 600;
    color: var(--text-primary, #1a1a2e);
}

.legal-table tr:nth-child(even) td {
    background: #fafaff;
}
