/* ============================================================
   GoldPilot — Main Stylesheet
   Theme: Red #C40000 / White / Gold accent #E8B84B
   ============================================================ */

:root {
    /* ── Theme seed (3 variables, overridden per-theme) ── */
    --h:  0;      /* hue  0–360 */
    --s:  80%;    /* saturation */
    --l:  44%;    /* main lightness (brighter = more modern) */

    /* ── Derived palette — auto-computed from seed ── */
    --red:             hsl(var(--h), var(--s), var(--l));
    --red-dark:        hsl(var(--h), var(--s), calc(var(--l) - 13%));
    --red-light:       hsl(var(--h), var(--s), calc(var(--l) + 14%));
    --primary-tint:    hsl(var(--h), 70%,  96%);   /* near-white tinted bg */
    --primary-darkest: hsl(var(--h), 90%,  4%);
    --primary-darker:  hsl(var(--h), 90%,  11%);
    --primary-dark2:   hsl(var(--h), 90%,  7%);
    --primary-dark3:   hsl(var(--h), 85%,  20%);

    /* shorthand for hsla() shadows: hsla(var(--clr), alpha) */
    --clr: var(--h), var(--s), var(--l);

    /* ── Static design tokens ── */
    --gold:      #E8B84B;
    --gold-light:#f5d882;
    --dark:      #1a1a1a;
    --gray:      #6c757d;
    --light-bg:  #fafafa;
    --border:    #e8e8e8;
}

/* ── Base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Prompt', 'Noto Sans Thai', sans-serif;
    color: var(--dark);
    background: #fff;
    overflow-x: hidden;
}

a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-dark); }

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.fade-in-up { animation: fadeInUp .7s ease forwards; opacity: 0; }
.fade-in    { animation: fadeIn .6s ease forwards; opacity: 0; }
.delay-1  { animation-delay: .15s; }
.delay-2  { animation-delay: .3s;  }
.delay-3  { animation-delay: .45s; }
.delay-4  { animation-delay: .6s;  }
.delay-5  { animation-delay: .75s; }
.delay-6  { animation-delay: .9s;  }

/* ── Navbar ──────────────────────────────────────────────── */
.navbar-brand img { height: 38px; }
.navbar {
    background: #fff !important;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    padding: .75rem 0;
}
.navbar-nav .nav-link {
    color: var(--dark) !important;
    font-weight: 500;
    padding: .5rem 1rem !important;
    border-radius: 6px;
    transition: background .2s, color .2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: var(--primary-tint);
    color: var(--red) !important;
}
.btn-nav-cta {
    background: var(--red);
    color: #fff !important;
    border-radius: 30px !important;
    padding: .45rem 1.4rem !important;
    font-weight: 600;
}
.btn-nav-cta:hover {
    background: var(--red-dark) !important;
    color: #fff !important;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-red {
    background: var(--red);
    color: #fff;
    border: 2px solid var(--red);
    border-radius: 30px;
    padding: .65rem 2rem;
    font-weight: 600;
    transition: all .25s;
}
.btn-red:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px hsla(var(--clr),.35);
}
.btn-outline-red {
    background: transparent;
    color: var(--red);
    border: 2px solid var(--red);
    border-radius: 30px;
    padding: .65rem 2rem;
    font-weight: 600;
    transition: all .25s;
}
.btn-outline-red:hover {
    background: var(--red);
    color: #fff;
    transform: translateY(-2px);
}
.btn-gold {
    background: var(--gold);
    color: #1a1a1a;
    border: 2px solid var(--gold);
    border-radius: 30px;
    padding: .65rem 2rem;
    font-weight: 700;
    transition: all .25s;
}
.btn-gold:hover {
    background: #d4a430;
    border-color: #d4a430;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232,184,75,.4);
}

/* ── Section Titles ──────────────────────────────────────── */
.section-badge {
    display: inline-block;
    background: #fff0f0;
    color: var(--red);
    border-radius: 30px;
    padding: .3rem 1rem;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .03em;
    margin-bottom: .75rem;
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.3;
}
.section-title .accent { color: var(--red); }
.section-subtitle {
    color: var(--gray);
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto;
}
.divider-red {
    width: 60px; height: 4px;
    background: var(--red);
    border-radius: 4px;
    margin: .8rem auto 1.5rem;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, var(--primary-darkest) 0%, var(--primary-darker) 50%, var(--primary-dark3) 100%);
    min-height: 92vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 5rem 0 4rem;
}
.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    background: 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='0.03'%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-section::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 80px;
    background: #fff;
    clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-kicker {
    color: #ffffff;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: .5rem;
}
.hero-title {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 1rem;
}
.hero-title .highlight {
    color: var(--gold);
    position: relative;
    display: inline-block;
}
.hero-desc {
    color: rgba(255,255,255,.82);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}
.hero-badges .badge {
    background: rgba(255,255,255,.12);
    color: #fff;
    font-weight: 500;
    font-size: .82rem;
    padding: .4rem .9rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.2);
    margin: .25rem .2rem;
    display: inline-block;
}
.hero-image-wrap {
    position: relative;
    text-align: center;
}

/* -- Hero Visual (orbit layout) ------------------------------ */
@keyframes heroPulse {
    0%,100% { box-shadow: 0 20px 50px rgba(0,0,0,.35), 0 0 0 10px rgba(255,255,255,.07); }
    50%     { box-shadow: 0 28px 60px rgba(0,0,0,.4),  0 0 0 18px rgba(255,255,255,.04); }
}

/* Per-card orbit-float: centred via translate(-50%,-50%) + Y float in keyframe */
@keyframes hfc-float {
    0%,100% { transform: translate(-50%, -50%); }
    50%     { transform: translate(-50%, calc(-50% - 9px)); }
}
@keyframes hvc-float {
    0%,100% { transform: translate(-50%, -50%) scale(1);    }
    50%     { transform: translate(-50%, calc(-50% - 8px)) scale(1.03); }
}

.hero-visual {
    position: relative;
    width: 440px;
    height: 440px;
    margin: 1.5rem auto 0;
}

/* subtle orbit ring */
.hero-visual::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 310px; height: 310px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,.15);
    pointer-events: none;
}

.hero-visual-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 110px; height: 110px;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    border-radius: 30px;
    display: flex; align-items: center; justify-content: center;
    font-size: 3.2rem;
    color: #fff;
    animation: hvc-float 3.2s ease-in-out infinite, heroPulse 3.2s ease-in-out infinite;
    z-index: 2;
}

.hero-float-card {
    position: absolute;
    background: rgba(255,255,255,.11);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 14px;
    padding: .55rem .9rem;
    display: flex; flex-direction: column; align-items: center; gap: .12rem;
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    z-index: 3;
    transform: translate(-50%, -50%);  /* match keyframe 0% � no snap on load */
    animation: hfc-float 3.2s ease-in-out infinite;
}
.hero-float-card i   { font-size: 1.2rem; color: var(--gold); margin-bottom: .04rem; }
.hfc-val             { font-size: 1.1rem; font-weight: 800; color: var(--gold); line-height: 1.2; }
.hfc-sub             { font-size: .67rem; opacity: .75; }

/*
  Orbit: container 440�440, center (220,220), radius 155px
  6 chips at 60� steps, starting from top (270� = -90�):
    hfc-1  270� ? (220, 65)   = 50.0%, 14.8%
    hfc-2  330� ? (354, 142)  = 80.5%, 32.3%
    hfc-3   30� ? (354, 298)  = 80.5%, 67.7%
    hfc-4   90� ? (220, 375)  = 50.0%, 85.2%
    hfc-5  150� ? ( 86, 298)  = 19.5%, 67.7%
    hfc-6  210� ? ( 86, 142)  = 19.5%, 32.3%
*/
.hfc-1 { top: 14.8%; left: 50.0%; animation-delay: 0.0s; }
.hfc-2 { top: 32.3%; left: 80.5%; animation-delay: 0.5s; }
.hfc-3 { top: 67.7%; left: 80.5%; animation-delay: 1.0s; }
.hfc-4 { top: 85.2%; left: 50.0%; animation-delay: 1.5s; }
.hfc-5 { top: 67.7%; left: 19.5%; animation-delay: 2.0s; }
.hfc-6 { top: 32.3%; left: 19.5%; animation-delay: 2.5s; }

@media (max-width: 1199.98px) {
    .hero-visual { width: 360px; height: 360px; }
    .hero-visual::before { width: 250px; height: 250px; }
}
@media (max-width: 991.98px) {
    .hero-visual { width: 320px; height: 320px; margin-top: 3rem; }
    .hero-visual::before { width: 220px; height: 220px; }
    .hero-visual-center { width: 88px; height: 88px; font-size: 2.5rem; }
}
@media (max-width: 575.98px) {
    .hero-visual { display: none; }
}

/* ── Feature Cards ───────────────────────────────────────── */
.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    height: 100%;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px hsla(var(--clr),.12);
    border-color: hsla(var(--clr),.2);
}
.feature-icon {
    width: 60px; height: 60px;
    background: var(--primary-tint);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 1.1rem;
    transition: background .25s, transform .25s;
    color: var(--red);
}
.feature-card:hover .feature-icon {
    background: var(--red);
    color: #fff;
    transform: scale(1.08);
}
.feature-card h5 { font-weight: 700; font-size: 1rem; margin-bottom: .5rem; }
.feature-card p  { color: var(--gray); font-size: .9rem; margin: 0; }
.fi { font-style: normal; font-size: 1.5rem; }

/* ── Security Section ────────────────────────────────────── */
.security-section {
    background: linear-gradient(135deg, var(--primary-darkest) 0%, var(--primary-dark2) 100%);
    color: #fff;
    padding: 5rem 0;
}
.security-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255,255,255,.07);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.1);
    transition: background .25s;
    height: 100%;
}
.security-item:hover { background: rgba(255,255,255,.12); }
.security-icon {
    width: 48px; height: 48px; min-width: 48px;
    background: rgba(232,184,75,.2);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    color: var(--gold);
}
.security-item h6 { font-weight: 700; margin-bottom: .25rem; color: #fff; }
.security-item p  { color: rgba(255,255,255,.7); font-size: .88rem; margin: 0; }

/* ── Who Section ─────────────────────────────────────────── */
.who-card {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: all .25s;
}
.who-card:hover {
    border-color: var(--red);
    box-shadow: 0 12px 35px hsla(var(--clr),.1);
    transform: translateY(-4px);
}
.who-icon {
    width: 64px; height: 64px;
    background: var(--primary-tint);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    color: var(--red);
    margin: 0 auto 1.1rem;
    transition: background .25s, color .25s, transform .25s;
}
.who-card:hover .who-icon {
    background: var(--red);
    color: #fff;
    transform: scale(1.08);
}
.who-card h5 { font-weight: 700; color: var(--dark); margin-bottom: .5rem; }
.who-card p  { color: var(--gray); font-size: .9rem; margin: 0; }

/* ── Reviews ─────────────────────────────────────────────── */
.review-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
    position: relative;
}
.review-card::before {
    content: '"';
    position: absolute;
    top: 1rem; left: 1.5rem;
    font-size: 4rem;
    color: var(--red);
    opacity: .15;
    font-family: 'Prompt', sans-serif;
    line-height: 1;
}
.review-stars { color: var(--gold); font-size: 1rem; margin-bottom: .75rem; }
.review-text  { color: #444; font-size: .95rem; line-height: 1.7; margin-bottom: 1.25rem; }
.review-author { display: flex; align-items: center; gap: .75rem; }
.review-avatar {
    width: 46px; height: 46px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 1.1rem;
}
.review-name { font-weight: 700; font-size: .95rem; }
.review-shop { color: var(--gray); font-size: .82rem; }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-section { background: var(--light-bg); padding: 5rem 0; }
.pricing-card {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all .25s;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.pricing-card.popular {
    border-color: var(--red);
    box-shadow: 0 20px 50px hsla(var(--clr),.15);
    transform: scale(1.03);
}
.pricing-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,.1); }
.pricing-card.popular:hover { transform: scale(1.03) translateY(-8px); }
.popular-badge {
    position: absolute; top: 0; right: 0;
    background: var(--red);
    color: #fff;
    font-size: .75rem; font-weight: 700;
    padding: .4rem 1.2rem;
    border-bottom-left-radius: 12px;
}
.pricing-icon {
    width: 68px; height: 68px;
    background: var(--primary-tint);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    color: var(--red);
    margin: 0 auto 1.1rem;
    transition: background .25s, color .25s;
}
.pricing-card.popular .pricing-icon {
    background: var(--red);
    color: #fff;
}
.pricing-name {
    font-size: 1.4rem; font-weight: 800;
    color: var(--dark);
    margin-bottom: .3rem;
}
.pricing-tagline { color: var(--gray); font-size: .9rem; margin-bottom: 1.5rem; }
.pricing-divider { border-color: var(--border); margin: 1.5rem 0; }
.pricing-feature {
    display: flex; align-items: flex-start; gap: .6rem;
    font-size: .92rem; color: #444;
    padding: .35rem 0;
    text-align: left;
}
.pricing-feature .check { color: var(--red); font-weight: 700; margin-top: .05rem; }

/* ── About ───────────────────────────────────────────────── */
.about-hero {
    background: linear-gradient(135deg, var(--primary-darkest) 0%, var(--primary-darker) 100%);
    color: #fff;
    padding: 5rem 0 4rem;
}
.value-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--border);
    height: 100%;
    transition: all .25s;
}
.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px hsla(var(--clr),.1);
    border-color: hsla(var(--clr),.2);
}
.value-icon {
    width: 60px; height: 60px;
    background: var(--primary-tint);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: var(--red);
    margin: 0 auto 1rem;
    transition: background .25s, color .25s;
}
.value-card:hover .value-icon {
    background: var(--red);
    color: #fff;
}
.value-card h5 { font-weight: 700; margin-bottom: .5rem; }
.value-card p  { color: var(--gray); font-size: .9rem; }
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before {
    content: '';
    position: absolute; left: 8px; top: 0; bottom: 0;
    width: 2px; background: var(--red); opacity: .2;
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-dot {
    position: absolute; left: -1.5rem; top: .3rem;
    width: 16px; height: 16px;
    background: var(--red); border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--red);
}
.timeline-year { color: var(--red); font-weight: 700; font-size: .85rem; }
.timeline-item h6 { font-weight: 700; margin: .2rem 0 .25rem; }
.timeline-item p  { color: var(--gray); font-size: .88rem; margin: 0; }

/* ── Blog ────────────────────────────────────────────────── */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-darkest) 0%, var(--primary-darker) 100%);
    color: #fff;
    padding: 4rem 0 3rem;
}
.blog-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    transition: all .25s;
    display: flex; flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,.1);
}
.blog-card-img {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--red) 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem;
    overflow: hidden;
}
.blog-card-img img {
    width: 100%; height: 100%; object-fit: cover;
}
.blog-card-body {
    padding: 1.5rem;
    flex: 1; display: flex; flex-direction: column;
}
.blog-date { color: var(--gray); font-size: .82rem; margin-bottom: .5rem; }
.blog-card-body h5 {
    font-weight: 700; margin-bottom: .75rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-excerpt {
    color: var(--gray);
    font-size: .9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}
.blog-read-more { color: var(--red); font-weight: 600; font-size: .9rem; }

/* Blog Article */
.article-hero {
    background: linear-gradient(135deg, var(--primary-darkest) 0%, var(--primary-darker) 100%);
    color: #fff;
    padding: 4rem 0 3rem;
}
.article-content h2 { font-size: 1.35rem; font-weight: 700; color: var(--dark); margin: 2rem 0 .75rem; }
.article-content p  { color: #444; line-height: 1.8; margin-bottom: 1rem; }
.article-content ul,
.article-content ol { color: #444; line-height: 1.8; padding-left: 1.5rem; }
.article-content li { margin-bottom: .4rem; }
.article-content strong { color: var(--dark); }

/* ── Contact ─────────────────────────────────────────────── */
.contact-hero {
    background: linear-gradient(135deg, var(--primary-darkest) 0%, var(--primary-darker) 100%);
    color: #fff;
    padding: 4rem 0 3rem;
}
.contact-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 25px rgba(0,0,0,.07);
    border: 1px solid var(--border);
    height: 100%;
}
.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: .65rem 1rem;
    font-size: .95rem;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px hsla(var(--clr),.1);
    outline: none;
}
.contact-info-item {
    display: flex; align-items: flex-start; gap: 1rem;
    margin-bottom: 1.5rem;
}
.contact-info-icon {
    width: 44px; height: 44px; min-width: 44px;
    background: var(--primary-tint);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: var(--red);
}
.contact-info-item h6 { font-weight: 700; margin-bottom: .2rem; font-size: .9rem; }
.contact-info-item p  { color: var(--gray); font-size: .9rem; margin: 0; }
.map-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

/* ── CTA Banner ──────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background: 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='0.05'%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");
}
.cta-section h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
.cta-section p  { color: rgba(255,255,255,.85); font-size: 1.05rem; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
    background: #111;
    color: rgba(255,255,255,.7);
    padding: 3.5rem 0 1.5rem;
}
footer h5 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
footer a  { color: rgba(255,255,255,.65); font-size: .9rem; }
footer a:hover { color: var(--gold); }
.footer-brand { color: #fff; font-size: 1.4rem; font-weight: 800; display:flex; align-items:center; }
.footer-brand span { color: var(--gold); }
.footer-desc { color: rgba(255,255,255,.55); font-size: .88rem; line-height: 1.7; margin-top: .5rem; }

/* -- Cookie Consent Banner ----------------------------------------- */
#cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 10000;
    padding: 1rem 1rem 1.2rem;
    transform: translateY(110%);
    transition: transform .45s cubic-bezier(.16,1,.3,1);
    pointer-events: none;
}
#cookie-banner.show {
    transform: translateY(0);
    pointer-events: all;
}
#cookie-banner-inner {
    max-width: 940px;
    margin: 0 auto;
    background: rgba(14,0,0,.93);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 18px;
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    box-shadow: 0 -8px 40px rgba(0,0,0,.3), 0 0 0 1px rgba(196,0,0,.15);
}
.cookie-text {
    display: flex; align-items: flex-start; gap: .85rem;
    flex: 1; min-width: 0;
}
.cookie-icon { font-size: 1.55rem; color: var(--gold); margin-top: .1rem; flex-shrink: 0; }
.cookie-text strong { color: #fff; font-size: .95rem; display: block; margin-bottom: .15rem; }
.cookie-text p  { margin: 0; color: rgba(255,255,255,.6); font-size: .82rem; line-height: 1.55; }
.cookie-text a  { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.cookie-text a:hover { color: #fff; }
.cookie-actions { display: flex; gap: .6rem; align-items: center; flex-shrink: 0; }
.btn-cookie-reject {
    padding: .48rem 1.05rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.22);
    background: transparent;
    color: rgba(255,255,255,.65);
    font-size: .83rem; font-weight: 600;
    cursor: pointer; transition: all .2s;
    font-family: inherit;
}
.btn-cookie-reject:hover { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-cookie-accept {
    padding: .48rem 1.2rem;
    border-radius: 8px;
    border: none;
    background: var(--red);
    color: #fff;
    font-size: .83rem; font-weight: 700;
    cursor: pointer; transition: background .2s, transform .15s;
    font-family: inherit;
}
.btn-cookie-accept:hover { background: var(--red-dark); transform: scale(1.04); }
@media (max-width: 575px) {
    #cookie-banner-inner { flex-direction: column; align-items: stretch; }
    .cookie-actions { justify-content: flex-end; }
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 1.25rem;
    margin-top: 2rem;
    font-size: .83rem;
    color: rgba(255,255,255,.4);
}
.social-btn {
    width: 36px; height: 36px;
    background: rgba(255,255,255,.08);
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.7) !important;
    font-size: 1rem;
    margin-right: .4rem;
    transition: background .2s, color .2s;
}
.social-btn:hover {
    background: var(--red);
    color: #fff !important;
}

/* ── Admin ───────────────────────────────────────────────── */
.admin-sidebar {
    background: #1a0000;
    min-height: 100vh;
    padding: 0;
}
.admin-sidebar .sidebar-brand {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}
.admin-sidebar .sidebar-brand span { color: var(--gold); }
.sidebar-nav { padding: .75rem 0; }
.sidebar-nav a {
    display: flex; align-items: center; gap: .75rem;
    padding: .7rem 1.25rem;
    color: rgba(255,255,255,.7);
    font-size: .92rem;
    font-weight: 500;
    transition: background .2s, color .2s;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(196,0,0,.4);
    color: #fff;
}
.admin-topbar {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    padding: .85rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
}
.admin-content { padding: 1.75rem; background: #f5f5f5; min-height: calc(100vh - 60px); }
.stats-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    display: flex; align-items: center; gap: 1rem;
}
.stats-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}
.stats-icon.red { background: #fff0f0; }
.stats-icon.green { background: #f0fff0; }
.stats-icon.yellow { background: #fffbf0; }
.stats-value { font-size: 1.8rem; font-weight: 800; color: var(--dark); line-height: 1; }
.stats-label { color: var(--gray); font-size: .85rem; margin-top: .2rem; }

/* ── Utilities ───────────────────────────────────────────── */
.text-red   { color: var(--red) !important; }
.text-gold  { color: var(--gold) !important; }
.bg-red     { background: var(--red) !important; }
.border-red { border-color: var(--red) !important; }
.rounded-xl { border-radius: 16px !important; }
.shadow-sm-custom { box-shadow: 0 2px 12px rgba(0,0,0,.06) !important; }

/* -- Cookie Policy Page ----------------------------------------------- */
.cookie-section-title {
    font-size: 1.25rem; font-weight: 800;
    color: var(--dark);
    display: flex; align-items: center; gap: .75rem;
    margin-bottom: 1rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--border);
}
.cookie-num {
    width: 32px; height: 32px; flex-shrink: 0;
    background: var(--red);
    color: #fff;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .85rem; font-weight: 900;
}
.cookie-list { list-style: none; padding: 0; margin: .5rem 0; }
.cookie-list li { display: flex; align-items: flex-start; gap: .65rem; padding: .4rem 0; font-size: .93rem; }
.cookie-list li i { font-size: 1rem; color: var(--red); margin-top: .15rem; flex-shrink: 0; }
.cookie-note {
    display: flex; align-items: flex-start; gap: .65rem;
    background: var(--primary-tint);
    border: 1px solid hsla(var(--clr),.12);
    border-radius: 10px;
    padding: .75rem 1rem;
    font-size: .85rem; color: var(--dark);
}
.cookie-note i { font-size: 1rem; color: var(--red); margin-top: .1rem; flex-shrink: 0; }
.cookie-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }
.cookie-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.cookie-table th {
    background: var(--primary-tint);
    color: var(--dark); font-weight: 700;
    padding: .65rem .9rem; text-align: left;
    border-bottom: 2px solid hsla(var(--clr),.15);
    white-space: nowrap;
}
.cookie-table td { padding: .6rem .9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cookie-table tr:last-child td { border-bottom: none; }
.cookie-table code { background: var(--primary-tint); padding: .15rem .45rem; border-radius: 4px; font-size: .82rem; color: var(--red); }
.cookie-tag {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 20px;
    font-size: .75rem; font-weight: 700;
}
.cookie-tag.essential { background: #e8f5e9; color: #2e7d32; }
.cookie-tag.session   { background: #e3f2fd; color: #1565c0; }
.cookie-tag.analytics { background: #fff3e0; color: #e65100; }
.cookie-third-card {
    display: flex; align-items: flex-start; gap: .85rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    height: 100%;
    transition: border-color .2s, box-shadow .2s;
}
.cookie-third-card:hover { border-color: var(--red); box-shadow: 0 4px 16px hsla(var(--clr),.1); }
.cookie-third-icon {
    width: 42px; height: 42px; flex-shrink: 0;
    background: var(--primary-tint);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--red);
}
.cookie-third-card strong { display: block; margin-bottom: .3rem; font-size: .92rem; }
.cookie-third-card p { font-size: .83rem; color: var(--gray); margin: 0 0 .35rem; }
.cookie-third-card a { font-size: .8rem; color: var(--red); }
.cookie-browser-link {
    display: flex; align-items: center; gap: .5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .55rem .9rem;
    font-size: .85rem; font-weight: 600; color: var(--dark);
    text-decoration: none;
    transition: border-color .2s, color .2s;
}
.cookie-browser-link i { font-size: 1.1rem; color: var(--red); }
.cookie-browser-link:hover { border-color: var(--red); color: var(--red); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .hero-section { min-height: auto; padding: 5rem 0 6rem; }
    .hero-image-wrap { margin-top: 3rem; }
    .pricing-card.popular { transform: none; }
    .pricing-card.popular:hover { transform: translateY(-8px); }
}
@media (max-width: 767.98px) {
    .section-title { font-size: 1.5rem; }
}

/* ══════════════════════════════════════════════════════════════
   THEME SWITCHER WIDGET
══════════════════════════════════════════════════════════════ */
#theme-switcher-wrap {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .5rem;
}
#theme-toggle {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    box-shadow: 0 4px 16px hsla(var(--clr),.45);
    transition: transform .2s, background .2s, box-shadow .2s;
    display: flex; align-items: center; justify-content: center;
}
#theme-toggle:hover {
    transform: scale(1.1);
    background: var(--red-dark);
}
#theme-panel {
    background: #fff;
    border-radius: 14px;
    padding: .9rem 1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
    border: 1px solid var(--border);
    display: none;
    min-width: 190px;
}
#theme-panel.open {
    display: block;
    animation: fadeInUp .18s ease;
}
.theme-panel-label {
    font-size: .72rem;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0 0 .65rem;
}
.theme-options {
    display: flex;
    gap: .55rem;
    flex-wrap: wrap;
}
.theme-dot {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: transform .2s, border-color .2s;
    position: relative;
    outline: none;
}
.theme-dot:hover { transform: scale(1.18); }
.theme-dot.active {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 2px #fff inset;
}
.theme-dot::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    font-size: .71rem;
    white-space: nowrap;
    padding: .2rem .5rem;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
}
.theme-dot:hover::after { opacity: 1; }
.theme-group-label {
    font-size: .68rem;
    font-weight: 700;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin: .55rem 0 .35rem;
    display: block;
}

/* ============================================================
   THEME BLOCKS
   Each theme only needs: --h (hue), --s (saturation), --l (lightness).
   All other tonal values are auto-derived in :root via hsl().

   Quick reference:
     --h  : 0-360 hue degrees
     --s  : saturation %
     --l  : main accent lightness (38-55% = modern / bright)
   ============================================================ */

/* -- "??????" row ------------------------------------------- */

[data-theme="ruby"]      { --h: 0;   --s: 78%; --l: 44%; }   /* ??????????   */
[data-theme="gold"]      { --h: 43;  --s: 87%; --l: 40%; }   /* ??????????   */
[data-theme="navy"]      { --h: 220; --s: 62%; --l: 28%; }   /* ???????????  */
[data-theme="emerald"]   { --h: 153; --s: 78%; --l: 26%; }   /* ?????????    */
[data-theme="amethyst"]  { --h: 263; --s: 75%; --l: 52%; }   /* ??????????? */

/* -- "???????????" row --------------------------------------- */

[data-theme="rose"]      { --h: 349; --s: 68%; --l: 52%; }   /* ?????????   */
[data-theme="crimson"]   { --h: 0;   --s: 100%;--l: 27%; }   /* ??????????   */
[data-theme="coral"]     { --h: 12;  --s: 78%; --l: 52%; }   /* ??????        */
[data-theme="slate"]     { --h: 215; --s: 24%; --l: 34%; }   /* ??????????   */
[data-theme="rosegold"]  { --h: 348; --s: 40%; --l: 58%; }   /* ??????       */

/* -- "????????" row ------------------------------------------- */

[data-theme="scarlet"]   { --h: 5;   --s: 92%; --l: 46%; }   /* ?????         */
[data-theme="cherry"]    { --h: 338; --s: 88%; --l: 30%; }   /* ???????       */
[data-theme="vermillion"]{ --h: 11;  --s: 80%; --l: 44%; }   /* ??????????    */
[data-theme="maroon"]    { --h: 0;   --s: 100%;--l: 18%; }   /* ??????????   */

/* -- Dark Red � ????? (dark background + bright accent red) -- */

[data-theme="darkred"] {
    --h:  0;
    --s:  100%;
    --l:  55%;                           /* bright red accent */
    --primary-tint:    hsl(0, 90%, 8%);  /* override: dark surface tint */
    --light-bg:        #160000;
    --border:          #3a1010;
    --dark:            #f5e8e8;
}

/* dark-mode overrides for darkred */
[data-theme="darkred"] body         { background: #0d0000; color: #f0e0e0; }
[data-theme="darkred"] .navbar      { background: #070000 !important; }
[data-theme="darkred"] .feature-card,
[data-theme="darkred"] .pricing-card,
[data-theme="darkred"] .who-card,
[data-theme="darkred"] .value-card,
[data-theme="darkred"] .timeline-item,
[data-theme="darkred"] .faq-item     { background: #1c0000 !important; border-color: #3a0000 !important; }
[data-theme="darkred"] .pricing-card.popular { border-color: var(--red) !important; }
[data-theme="darkred"] .features-section,
[data-theme="darkred"] .pricing-section,
[data-theme="darkred"] .who-section,
[data-theme="darkred"] .timeline-section,
[data-theme="darkred"] .values-section  { background: #160000 !important; }
[data-theme="darkred"] .section-title,
[data-theme="darkred"] .pricing-name,
[data-theme="darkred"] h1, [data-theme="darkred"] h2,
[data-theme="darkred"] h3, [data-theme="darkred"] h4 { color: #f5e8e8; }
[data-theme="darkred"] p, [data-theme="darkred"] .pricing-tagline,
[data-theme="darkred"] .pricing-feature                { color: #c9a0a0 !important; }
[data-theme="darkred"] footer        { background: #050000 !important; }
[data-theme="darkred"] .navbar-nav .nav-link           { color: rgba(245,232,232,.85) !important; }
[data-theme="darkred"] .blog-card    { background: #1c0000 !important; border-color: #3a0000 !important; }
[data-theme="darkred"] .form-control { background: #1c0000; border-color: #3a0000; color: #f0e0e0; }
[data-theme="darkred"] .form-control::placeholder      { color: #8a5050; }

/* ============================================================
   TONE SYSTEM  (data-tone on <html>, works with any data-theme)
   tone="light"  � ????????  : white bg, colored accent (default)
   tone="tinted" � ???????????????? : warm-tinted surfaces
   tone="dark"   � ???????   : dark bg, bright accent
   ============================================================ */

/* -- tone: tinted ------------------------------------------ */
[data-tone="tinted"] {
    --light-bg: hsl(var(--h), 35%, 93%);
    --border:   hsl(var(--h), 28%, 80%);
}
[data-tone="tinted"] body {
    background: hsl(var(--h), 25%, 97%);
}
[data-tone="tinted"] .features-section,
[data-tone="tinted"] .who-section,
[data-tone="tinted"] .pricing-section,
[data-tone="tinted"] .values-section,
[data-tone="tinted"] .timeline-section { background: hsl(var(--h), 35%, 92%) !important; }
[data-tone="tinted"] .feature-card,
[data-tone="tinted"] .pricing-card,
[data-tone="tinted"] .who-card,
[data-tone="tinted"] .value-card,
[data-tone="tinted"] .faq-item { background: #fff; }

/* -- tone: dark -------------------------------------------- */
[data-tone="dark"] {
    --l:            58%;
    --primary-tint: hsl(var(--h), 80%, 8%);
    --light-bg:     hsl(var(--h), 85%, 5%);
    --border:       hsl(var(--h), 55%, 16%);
    --dark:         #f2eaea;
}
[data-tone="dark"] body { background: hsl(var(--h), 88%, 3%); color: #f0e8e8; }
[data-tone="dark"] .navbar { background: hsl(var(--h), 90%, 2%) !important; }
[data-tone="dark"] .navbar-nav .nav-link { color: rgba(240,232,232,.85) !important; }
[data-tone="dark"] .feature-card,
[data-tone="dark"] .pricing-card,
[data-tone="dark"] .who-card,
[data-tone="dark"] .value-card,
[data-tone="dark"] .timeline-item,
[data-tone="dark"] .blog-card,
[data-tone="dark"] .faq-item {
    background: hsl(var(--h), 80%, 7%) !important;
    border-color: hsl(var(--h), 60%, 14%) !important;
}
[data-tone="dark"] .pricing-card.popular { border-color: var(--red) !important; }
[data-tone="dark"] .features-section,
[data-tone="dark"] .pricing-section,
[data-tone="dark"] .who-section,
[data-tone="dark"] .timeline-section,
[data-tone="dark"] .values-section { background: hsl(var(--h), 85%, 5%) !important; }
[data-tone="dark"] .section-title,
[data-tone="dark"] .pricing-name,
[data-tone="dark"] h1, [data-tone="dark"] h2,
[data-tone="dark"] h3, [data-tone="dark"] h4 { color: #f2eaea; }
[data-tone="dark"] p,
[data-tone="dark"] .pricing-tagline,
[data-tone="dark"] .pricing-feature { color: hsl(var(--h), 20%, 70%) !important; }
[data-tone="dark"] footer { background: hsl(var(--h), 90%, 2%) !important; }
[data-tone="dark"] .form-control {
    background: hsl(var(--h), 80%, 7%);
    border-color: hsl(var(--h), 60%, 16%);
    color: #f0e8e8;
}
[data-tone="dark"] .form-control::placeholder { color: hsl(var(--h), 20%, 55%); }
[data-tone="dark"] #theme-panel {
    background: hsl(var(--h), 80%, 8%);
    border-color: hsl(var(--h), 60%, 16%);
    color: #f2eaea;
}
[data-tone="dark"] .theme-group-label { color: hsl(var(--h), 20%, 50%); }
[data-tone="dark"] .tone-btn { border-color: hsl(var(--h), 55%, 20%); }
[data-tone="dark"] .tone-label { color: hsl(var(--h), 20%, 60%); }
[data-tone="dark"] .theme-divider { border-color: hsl(var(--h), 55%, 20%); }

/* -- Tone selector UI -------------------------------------- */
.theme-divider { border: none; border-top: 1px solid var(--border); margin: .65rem 0 .45rem; }
.tone-options {
    display: flex;
    gap: .45rem;
    margin-top: .25rem;
}
.tone-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .28rem;
    background: none;
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: .4rem .2rem .3rem;
    cursor: pointer;
    transition: border-color .2s, transform .15s, background .2s;
    outline: none;
}
.tone-btn:hover { transform: translateY(-2px); border-color: var(--red); }
.tone-btn.active { border-color: var(--red); background: var(--primary-tint); }
.tone-preview {
    width: 100%;
    height: 16px;
    border-radius: 4px;
    display: block;
    pointer-events: none;
}
.tone-label {
    font-size: .63rem;
    font-weight: 700;
    color: var(--gray);
    white-space: nowrap;
    pointer-events: none;
}
.tone-btn.active .tone-label { color: var(--red); }
