/* domain_2019-V2 — Abrisham Cloud visual refresh (RTL).
   Loaded after domains.css / pricing.css; override + additive only. */

:root {
    --v2-navy: #0f2544;
    --v2-navy-2: #1b3f74;
    --v2-gold: #c9a227;
    --v2-ink: #14213d;
    --v2-muted: #5f6b80;
    --v2-line: #e6e9f0;
    --v2-surface: #ffffff;
    --v2-soft: #f6f8fb;
}

/* ============ Hero / search band ============ */
#domains > .card.bg-gradient-primary,
#domains > .card {
    background: linear-gradient(120deg, #0b1c36 0%, #16386b 50%, #1f5a8f 100%) !important;
    border-radius: 20px !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 22px 50px rgba(11, 28, 54, .30) !important;
}
#domains > .card::before {
    content: "";
    position: absolute;
    right: -120px;
    top: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle at 60% 60%, rgba(201, 162, 39, .34), transparent 70%);
    pointer-events: none;
}
#domains > .card::after {
    content: "";
    position: absolute;
    left: -130px;
    bottom: -170px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, .26), transparent 70%);
    pointer-events: none;
}
#domains > .card > * { position: relative; z-index: 1; }

#domains .domain-search h1 {
    font-weight: 700;
    letter-spacing: -.3px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}
#domains .domain-input > section {
    border-radius: 14px !important;
    box-shadow: 0 18px 40px rgba(6, 18, 38, .32) !important;
    transition: box-shadow .25s ease, transform .25s ease;
}
#domains .domain-input > section:focus-within {
    box-shadow: 0 22px 48px rgba(201, 162, 39, .34) !important;
    transform: translateY(-2px);
}
#domains .domain-search-btn {
    background: linear-gradient(105deg, #c9a227, #e6c14d) !important;
    background-size: 160% 100% !important;
    border: 0 !important;
    color: #14213d !important;
    font-weight: 700;
    border-radius: 10px !important;
    transition: background-position .35s ease, transform .18s ease, box-shadow .18s ease;
}
#domains .domain-search-btn:hover {
    background-position: 100% 0 !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(201, 162, 39, .45);
}
/* The base theme slides a full-width bar with translateX percentages that were
   written for a LTR layout, so on this RTL page the underline lands under the wrong
   tab. Replace it with an exact per-tab track: the slider becomes one tab wide
   and is offset from the right edge, which is correct in RTL and can never
   drift out of the card. */
#domains .domain-modes .slider {
    transform: none !important;
    -webkit-transform: none !important;
    display: block;
    margin-top: 6px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transition: margin-right .33s cubic-bezier(.38, .8, .32, 1.07);
}
#domains .domain-modes.domain-modes-3 .slider { width: 33.3333% !important; }
#domains .domain-modes.domain-modes-2 .slider { width: 50% !important; }
#domains .domain-modes.domain-modes-1 .slider { width: 100% !important; }

#domains .domain-modes.domain-modes-3 input[name="tab-control"]:nth-of-type(1):checked ~ .slider { margin-right: 0 !important; }
#domains .domain-modes.domain-modes-3 input[name="tab-control"]:nth-of-type(2):checked ~ .slider { margin-right: 33.3333% !important; }
#domains .domain-modes.domain-modes-3 input[name="tab-control"]:nth-of-type(3):checked ~ .slider { margin-right: 66.6666% !important; }
#domains .domain-modes.domain-modes-2 input[name="tab-control"]:nth-of-type(1):checked ~ .slider { margin-right: 0 !important; }
#domains .domain-modes.domain-modes-2 input[name="tab-control"]:nth-of-type(2):checked ~ .slider { margin-right: 50% !important; }
#domains .domain-modes .slider .indicator {
    width: 60px;
    height: 3px;
    border-radius: 999px;
    background: #e6c14d;
}

#domains .domain-modes-controls label span {
    color: rgba(255, 255, 255, .88);
    transition: color .2s ease;
}
#domains .domain-modes-controls label:hover span { color: #f3d27a; }

/* ============ Feature cards ============ */
.v2-features { margin: 52px 0 44px; }
.v2-features-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 32px;
}
.v2-features-head h2 {
    font-size: 27px;
    font-weight: 700;
    color: var(--v2-ink);
    margin: 0 0 10px;
}
.v2-features-head p {
    color: var(--v2-muted);
    font-size: 15px;
    line-height: 1.9;
    margin: 0;
}
.v2-features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/* per-card colour theme */
.v2-c1 { --c: #1b3f74; --c2: #2f6db3; }   /* navy    */
.v2-c2 { --c: #0ea5e9; --c2: #38bdf8; }   /* sky     */
.v2-c3 { --c: #10b981; --c2: #34d399; }   /* emerald */
.v2-c4 { --c: #c9a227; --c2: #e6c14d; }   /* gold    */
.v2-c5 { --c: #8b5cf6; --c2: #a78bfa; }   /* violet  */
.v2-c6 { --c: #ef4444; --c2: #f87171; }   /* red     */

.v2-feature {
    position: relative;
    background: var(--v2-surface);
    border: 1px solid var(--v2-line);
    border-radius: 16px;
    padding: 28px 24px 26px;
    overflow: hidden;
    isolation: isolate;
    text-align: right;
    transition: transform .28s cubic-bezier(.2, .7, .3, 1), box-shadow .28s ease, border-color .28s ease;
}
.v2-feature::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, var(--c) 0%, var(--c2) 100%);
    opacity: .07;
    transition: opacity .28s ease;
}
/* accent bar grows from the right edge (RTL) */
.v2-feature::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    height: 4px;
    width: 34%;
    background: linear-gradient(270deg, var(--c), var(--c2));
    transition: width .35s cubic-bezier(.2, .7, .3, 1);
}
.v2-feature:hover {
    transform: translateY(-6px);
    border-color: var(--c);
    box-shadow: 0 18px 38px rgba(20, 33, 61, .16);
    box-shadow: 0 18px 38px color-mix(in srgb, var(--c) 28%, transparent);
}
.v2-feature:hover::before { opacity: .13; }
.v2-feature:hover::after { width: 100%; }

.v2-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--c), var(--c2));
    color: #fff;
    box-shadow: 0 8px 18px rgba(20, 33, 61, .16);
    transition: transform .45s cubic-bezier(.2, .7, .3, 1), box-shadow .3s ease;
}
.v2-feature-icon .material-icons { font-size: 24px; }
.v2-feature:hover .v2-feature-icon {
    transform: translateY(-2px) rotate(6deg) scale(1.08);
    box-shadow: 0 12px 24px rgba(20, 33, 61, .24);
}
.v2-feature h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--v2-ink);
    margin: 0 0 8px;
    transition: color .25s ease;
}
.v2-feature:hover h3 { color: var(--c); }
.v2-feature p {
    font-size: 14px;
    line-height: 1.95;
    color: var(--v2-muted);
    margin: 0;
}
.v2-feature:focus-within {
    transform: translateY(-6px);
    border-color: var(--c);
    box-shadow: 0 18px 38px rgba(20, 33, 61, .16);
    outline: none;
}
.v2-feature:focus-within::after { width: 100%; }

@media (prefers-reduced-motion: reduce) {
    .v2-feature, .v2-feature-icon, .v2-feature::after,
    #domains .domain-input > section, #domains .domain-search-btn { transition: none; }
    .v2-feature:hover { transform: none; }
    .v2-feature:hover .v2-feature-icon { transform: none; }
}

/* ============ Pricing table polish ============ */
.domain-price .hb-pricing-header h2 {
    font-weight: 700;
    color: var(--v2-ink);
}
.domain-price table {
    border-radius: 14px;
    overflow: hidden;
}
.domain-price thead th {
    background: var(--v2-navy-2) !important;
    color: #fff !important;
    font-weight: 600;
    white-space: nowrap;
}
.domain-price tbody tr { transition: background .16s ease; }
.domain-price tbody tr:nth-child(even) { background: #fbfcfe; }
.domain-price tbody tr:hover { background: rgba(27, 63, 116, .06); }
.domain-price .hb-tld-name {
    font-weight: 700;
    color: var(--v2-navy-2);
    font-size: 16px;
}
.domain-price .price-amount { font-variant-numeric: tabular-nums; }
.domain-price .price-amount.free {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, .12);
    color: #047857;
    font-weight: 700;
}
.domain-price .hb-pricing-na { color: #b9bfcc; }
.domain-price .hb-sf-input:focus {
    border-color: rgba(27, 63, 116, .5);
    box-shadow: 0 0 0 4px rgba(27, 63, 116, .10);
}

/* ============ Spotlight & result rows ============ */
.spotlight-product {
    border-radius: 16px;
    transition: transform .25s ease, box-shadow .25s ease;
}
.spotlight-product:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(20, 33, 61, .14);
}
.result-row {
    border-radius: 14px;
    transition: box-shadow .2s ease, transform .2s ease;
}
.result-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(20, 33, 61, .12);
}

/* ============ Responsive ============ */
@media (max-width: 991px) {
    .v2-features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .v2-features-grid { grid-template-columns: 1fr; }
    .v2-features-head h2 { font-size: 21px; }
}
