/* =========================================================
   VIOLET MODERN — Home Page (matches reference design)
   Loads only on the home page. Requires violet-modern-tokens.css
   and violet-modern-front.css loaded first.
   ========================================================= */

/* ---------- Top utility bar / navbar auth buttons ---------- */
.vm-nav-auth{ display: flex; align-items: center; gap: 10px; margin-left: 16px; }
.vm-nav-auth .btn{ padding: 8px 20px !important; font-size: 14px !important; }
.vm-nav-auth .btn-outline-violet{
    background: var(--vm-surface) !important;
    border: 1.5px solid var(--vm-border) !important;
    color: var(--vm-primary-text) !important;
}
.vm-nav-auth .btn-outline-violet:hover{ border-color: var(--vm-primary) !important; }
.vm-nav-auth .btn-fill-violet{
    background: var(--vm-primary) !important;
    color: var(--vm-on-primary) !important;
    box-shadow: 0 8px 18px -8px var(--vm-primary-glow);
}
.vm-nav-auth .btn-fill-violet:hover{ background: var(--vm-primary-hover) !important; }

/* ---------- Hero ---------- */
.vm-hero{
    background: var(--vm-grad-hero);
    padding: 150px 0 90px;
    position: relative;
    overflow: hidden;
}
.vm-hero .container{ position: relative; z-index: 2; }
.vm-hero-badge{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.14);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 7px 16px;
    border-radius: var(--vm-radius-pill);
    margin-bottom: 22px;
}
.vm-hero h1{
    color: #fff !important;
    font-size: 44px;
    line-height: 1.15;
    font-weight: 800 !important;
    margin-bottom: 18px;
}
.vm-hero h1 .vm-accent{ color: var(--vm-hero-accent); }
.vm-hero-sub{
    color: rgba(255,255,255,0.85) !important;
    font-size: 16px;
    max-width: 480px;
    margin-bottom: 28px;
}
.vm-hero-sub b{ color: #fff; }

.vm-hero-form-wrap{
    max-width: 560px;
}
.vm-hero-form-wrap form,
.vm-hero-form-wrap form.form-inline{
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    background: var(--vm-surface);
    border-radius: var(--vm-radius-pill);
    box-shadow: var(--vm-shadow-lg);
    padding: 6px;
}
.vm-hero-form-wrap .form-group{
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    margin: 0 !important;
    width: 100%;
    position: static !important;
}
.vm-hero-form-wrap input.form-control{
    border: none !important;
    box-shadow: none !important;
    height: 46px !important;
    border-radius: 0 !important;
    padding: 0 0 0 16px !important;
    background: transparent !important;
    color: var(--vm-text) !important;
    flex: 1;
}
.vm-hero-form-wrap input.form-control:focus{ box-shadow: none !important; }
.vm-hero-form-wrap .input-group{
    display: flex !important;
    align-items: center !important;
    width: 100%;
}
.vm-hero-form-wrap .input-group-addon{
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    position: static !important;
}
.vm-hero-form-wrap button{
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    background: var(--vm-primary) !important;
    background-image: none !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50% !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 16px !important;
    flex: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    box-shadow: none !important;
}
.vm-hero-form-wrap button:hover,
.vm-hero-form-wrap button:focus,
.vm-hero-form-wrap button:active{
    position: static !important;
    outline: none !important;
    box-shadow: none !important;
    background-image: none !important;
    background: var(--vm-primary-hover) !important;
}
.vm-hero-form-wrap button:hover{ background: var(--vm-primary-hover) !important; }
/* .shorten-btn now lives directly on the #invisibleCaptchaShort <button>
   (see plugins/VioletFlyTheme/src/Template/Element/shorten.ctp). The base
   theme's legacy `.shorten-btn` rule (webroot/build/css/styles.min.css)
   adds padding, negative margins, a white background and a one-sided
   border-radius meant for a rectangular/pill split button — that is what
   produces the white horizontal strip around the circular hero button.
   Neutralize every one of those legacy properties here, scoped to the
   hero form only, so the button stays a clean 46x46 circle. This selector
   (.vm-hero-form-wrap .shorten-btn) is more specific than the legacy
   `.shorten-btn` rule, so it wins even though both use !important. */
.vm-hero-form-wrap .shorten-btn{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: var(--vm-primary) !important;
    background-image: none !important;
    box-shadow: none !important;
    overflow: hidden !important;
}
.vm-hero-form-wrap .shorten-btn.form-group{
    margin: 0 !important;
    padding: 0 !important;
    width: 46px !important;
    height: 46px !important;
}
.vm-hero-form-wrap .shorten-btn i{
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* The result box is injected + revealed by JS only after a link is
   shortened. Keep it hidden and OUTSIDE the pill container by default,
   otherwise its empty margin/height distorts the pill's border-radius. */
.vm-hero-form-wrap .add-link-result{
    display: none;
    margin-top: 12px;
}
.vm-hero-form-wrap .add-link-result .form-control{
    background: rgba(255,255,255,0.95) !important;
    color: var(--vm-text) !important;
    height: 46px;
}
.vm-hero-form-wrap .add-link-result .input-group-addon{
    background: var(--vm-surface);
    border: none;
    border-radius: 0 var(--vm-radius-pill) var(--vm-radius-pill) 0;
    cursor: pointer;
}

.vm-hero-terms{ color: rgba(255,255,255,0.65); font-size: 12px; margin: 12px 0 22px; }
.vm-hero-terms a{ color: rgba(255,255,255,0.9); text-decoration: underline; }

.vm-hero-ctas{ display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.vm-hero-ctas .btn-white{
    background: #fff !important;
    color: var(--vm-violet-700) !important;
    border-radius: var(--vm-radius-pill) !important;
    font-weight: 700 !important;
    padding: 12px 26px !important;
}
.vm-hero-ctas .btn-ghost{
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border: 1.5px solid rgba(255,255,255,0.35) !important;
    border-radius: var(--vm-radius-pill) !important;
    font-weight: 700 !important;
    padding: 12px 26px !important;
}

.vm-hero-checks{ display: flex; flex-wrap: wrap; gap: 22px; color: rgba(255,255,255,0.9); font-size: 13px; font-weight: 600; }
.vm-hero-checks span{ display: inline-flex; align-items: center; gap: 6px; }
.vm-hero-checks i{ color: var(--vm-hero-accent); }

/* Hero right side illustration + floating mock card */
.vm-hero-art{
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 30px;
}
.vm-hero-art .home-png{
    position: relative;
    z-index: 1;
    max-width: 260px;
}
.vm-mock-card{
    position: relative;
    background: var(--vm-surface);
    border-radius: var(--vm-radius-lg);
    box-shadow: var(--vm-shadow-lg);
    padding: 18px 22px;
    width: 210px;
    z-index: 3;
    margin-right: 10px;
    flex: none;
}
.vm-mock-card .vm-mock-url{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--vm-primary);
    font-weight: 700;
    border: 1px solid var(--vm-border-soft);
    border-radius: var(--vm-radius-pill);
    padding: 6px 10px;
    margin-bottom: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vm-mock-stat-label{ font-size: 11px; color: var(--vm-text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.vm-mock-stat-value{ font-size: 22px; font-weight: 800; color: var(--vm-text); margin: 2px 0 10px; }
.vm-mock-bars{ display: flex; align-items: flex-end; gap: 4px; height: 34px; margin-bottom: 14px; }
.vm-mock-bars span{ display: block; width: 8px; background: var(--vm-success); border-radius: 3px; opacity: .85; }
.vm-mock-earn{ display: flex; align-items: center; gap: 6px; color: var(--vm-success); font-weight: 800; font-size: 18px; }

.vm-mock-bubble{
    background: var(--vm-surface);
    border-radius: var(--vm-radius-pill);
    box-shadow: var(--vm-shadow-md);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--vm-text);
    white-space: nowrap;
}
.vm-bubble-row{
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}
.vm-mock-bubble.vm-bubble-share{ color: var(--vm-primary); margin-top: 14px; }
.vm-mock-bubble.vm-bubble-turn{ color: #fff; background: rgba(255,255,255,0.16); backdrop-filter: blur(4px); }

/* ---------- Feature cards (4-up, overlapping hero) ---------- */
.vm-feature-strip{ margin-top: -70px; position: relative; z-index: 4; margin-bottom: 60px; }
.vm-feature-card{
    background: var(--vm-surface);
    border-radius: var(--vm-radius-lg);
    box-shadow: var(--vm-shadow-md);
    padding: 26px 22px;
    height: 100%;
    text-align: center;
}
.vm-feature-icon{
    width: 54px; height: 54px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin: 0 auto 16px;
}
.vm-feature-icon.vm-icon-violet{ background: var(--vm-violet-100); color: var(--vm-primary); }
.vm-feature-icon.vm-icon-green{ background: color-mix(in srgb, var(--vm-success) 16%, transparent); color: var(--vm-success); }
.vm-feature-icon.vm-icon-blue{ background: color-mix(in srgb, var(--vm-info) 16%, transparent); color: var(--vm-info); }
.vm-feature-icon.vm-icon-orange{ background: color-mix(in srgb, var(--vm-warning) 18%, transparent); color: var(--vm-warning); }
.vm-feature-card h4{ font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.vm-feature-card p{ font-size: 13.5px; color: var(--vm-text-muted); margin: 0; }

/* ---------- Section headings shared ---------- */
.vm-eyebrow{
    display: inline-block;
    background: var(--vm-violet-50);
    color: var(--vm-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--vm-radius-pill);
    margin-bottom: 14px;
}
.vm-section-title{ font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.vm-section-sub{ color: var(--vm-text-muted); font-size: 15px; max-width: 560px; margin: 0 auto 40px; }

/* ---------- How it works ---------- */
.vm-steps{ list-style: none; padding: 0; margin: 0; }
.vm-steps li{ display: flex; gap: 18px; margin-bottom: 26px; }
.vm-step-num{
    flex: none;
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 15px;
}
.vm-step-num.vm-step-1{ background: var(--vm-primary); }
.vm-step-num.vm-step-2{ background: var(--vm-info); }
.vm-step-num.vm-step-3{ background: var(--vm-success); }
.vm-steps h4{ font-size: 16px; font-weight: 700; margin: 4px 0 4px; }
.vm-steps p{ color: var(--vm-text-muted); font-size: 14px; margin: 0; }

/* ---------- Publisher rates ---------- */
.vm-rates-section{ background: var(--vm-violet-50); padding: 70px 0; text-align: center; }
.vm-rates-card{
    background: var(--vm-surface);
    border-radius: var(--vm-radius-lg);
    box-shadow: var(--vm-shadow-md);
    overflow: hidden;
    max-width: 920px;
    margin: 0 auto;
    text-align: left;
}
.vm-rates-card .nav-tabs{
    padding: 16px 20px 0;
    border-bottom: 1px solid var(--vm-border-soft) !important;
    display: flex;
    gap: 6px;
}
.vm-rates-card .nav-tabs > li{ float: none; }
.vm-rates-card .nav-tabs > li > a{
    border: none !important;
    border-radius: var(--vm-radius-pill) !important;
    background: transparent !important;
    color: var(--vm-text-muted) !important;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 18px;
    margin: 0 0 10px;
}
.vm-rates-card .nav-tabs > li.active > a,
.vm-rates-card .nav-tabs > li.active > a:hover,
.vm-rates-card .nav-tabs > li.active > a:focus{
    background: var(--vm-violet-50) !important;
    color: var(--vm-primary) !important;
    border: none !important;
}
.vm-rates-card table{ margin-bottom: 0; }
.vm-rates-more{ margin-top: 20px; }
.vm-rates-more a{ font-weight: 700; }

/* ---------- Our Stats section ---------- */
.stats{ padding: 60px 0; text-align: center; }
.stats .how-you-start-title h4{ font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.stats .how-you-start-text{ color: var(--vm-text-muted); font-size: 14px; max-width: 520px; margin: 0 auto 30px; }
.stats .row{ margin-top: 10px; }
.stats-box{
    background: var(--vm-surface);
    border: 1px solid var(--vm-border-soft);
    border-radius: var(--vm-radius-lg);
    box-shadow: var(--vm-shadow-sm);
    padding: 28px 20px;
    margin: 10px;
}
.stats-box-number h4{ font-size: 32px; font-weight: 800; color: var(--vm-primary); margin: 0 0 6px; }
.stats-box-text{ color: var(--vm-text-muted); font-size: 14px; font-weight: 600; }

/* ---------- Why choose (8-feature grid) ---------- */
.vm-why-section{ padding: 70px 0; text-align: center; }
.vm-why-grid{ display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-top: 10px; }
.vm-why-card{
    background: var(--vm-surface);
    border: 1px solid var(--vm-border-soft);
    border-radius: var(--vm-radius-lg);
    box-shadow: var(--vm-shadow-sm);
    padding: 22px;
    width: calc(25% - 20px);
    min-width: 220px;
    text-align: left;
}
.vm-why-card .vm-feature-icon{ margin: 0 0 14px; width: 44px; height: 44px; border-radius: 12px; font-size: 18px; }
.vm-why-card h4{ font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.vm-why-card p{ font-size: 13px; color: var(--vm-text-muted); margin: 0; }

/* ---------- Payment methods ---------- */
.vm-payment-section{ padding: 60px 0 70px; text-align: center; }
.vm-payment-row{ display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 20px; }
.vm-payment-pill{
    background: var(--vm-surface);
    border: 1px solid var(--vm-border-soft);
    border-radius: var(--vm-radius-pill);
    box-shadow: var(--vm-shadow-sm);
    padding: 14px 26px;
    display: flex;
    align-items: center;
    min-width: 130px;
    justify-content: center;
}
.vm-payment-pill img{ max-height: 26px; width: auto; }

/* ---------- CTA banner ---------- */
.vm-cta{
    background: var(--vm-grad-brand);   /* same gradient as the dashboard wallet card */
    border-radius: var(--vm-radius-lg);
    margin: 0 auto 70px;
    max-width: 1140px;
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: var(--vm-shadow-lg);
}
.vm-cta-left{ display: flex; align-items: center; gap: 18px; }
.vm-cta-icon{
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.18);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px; flex: none;
}
.vm-cta-eyebrow{ color: rgba(255,255,255,0.75); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.vm-cta h3{ color: #fff !important; font-size: 20px; font-weight: 800; margin: 2px 0 2px; }
.vm-cta p{ color: rgba(255,255,255,0.85); font-size: 13.5px; margin: 0; }
.vm-cta .btn-white{
    background: #fff !important;
    color: var(--vm-violet-700) !important;
    border-radius: var(--vm-radius-pill) !important;
    font-weight: 700 !important;
    padding: 12px 26px !important;
    white-space: nowrap;
}

/* ---------- Footer ---------- */
.vm-footer{ background: var(--vm-ink); padding: 56px 0 0; }
.vm-footer .container{ padding-bottom: 30px; }
.vm-footer-brand{ color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.vm-footer-desc{ color: var(--vm-ink-muted); font-size: 13.5px; max-width: 280px; margin-bottom: 18px; }
.vm-footer h5{ color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.vm-footer ul{ list-style: none; padding: 0; margin: 0; }
.vm-footer ul li{ margin-bottom: 10px; }
.vm-footer ul li a{ color: var(--vm-ink-text); font-size: 13.5px; }
.vm-footer ul li a:hover{ color: #fff; }
.vm-footer-social{ display: flex; gap: 10px; margin-top: 6px; }
.vm-footer-social a{
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center;
    color: #fff !important;
}
.vm-footer-social a:hover{ background: var(--vm-primary) !important; }
.vm-footer-bottom{
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    color: #6E6980;
    font-size: 12.5px;
}
.vm-footer-bottom .container{ display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-bottom: 0; }

@media (max-width: 767px){
    .vm-hero{ padding: 130px 0 60px; text-align: center; }
    .vm-hero h1{ font-size: 30px; }
    .vm-hero-sub{ margin-left: auto; margin-right: auto; }
    .vm-hero-form-wrap{ margin: 0 auto 14px; }
    .vm-hero-ctas, .vm-hero-checks{ justify-content: center; }
    .vm-hero-art{ display: none; }
    .vm-feature-strip{ margin-top: 30px; }
    .vm-why-card{ width: 100%; }
    .vm-cta{ flex-direction: column; text-align: center; }
    .vm-cta-left{ flex-direction: column; }
}
