/* ================================================================
   Hostmargin Homepage — New Sections
   Covers: WHOIS+IP strip · Pricing Plans · Free Tools grid
   ================================================================ */

/* ── Awards & Recognition ────────────────────────────────────── */
.hm-awards {
    background: #fffbeb;
    border-top: 1px solid #fde68a;
    border-bottom: 1px solid #fde68a;
    padding: 16px 0;
}

.hm-awards__head {
    display: none;
}

.hm-awards__single {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.hm-award-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    background: rgba(245,158,11,0.15);
    color: #d97706;
}

.hm-award-card__body {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hm-award-card__year {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #d97706;
    background: rgba(245,158,11,0.15);
    padding: 3px 10px;
    border-radius: 20px;
}

.hm-award-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #92400e;
    margin: 0;
}

.hm-award-card__org {
    font-size: 13px;
    color: #b45309;
    margin: 0;
}

.hm-award-card__org::before {
    content: '·';
    margin-right: 8px;
    color: #d97706;
}

/* ── WHOIS + IP Lookup Strip ─────────────────────────────────── */
.hm-tools-strip { background: #f4f7fb; }

.hm-tool-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px;
    height: 100%;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hm-tool-card--dark {
    background: #001233;
    color: #fff;
}

.hm-tool-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hm-tool-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(7, 116, 255, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #0774FF;
    flex-shrink: 0;
}

.hm-tool-card--dark .hm-tool-card__icon {
    background: rgba(200, 255, 146, 0.12);
    color: #C8FF92;
}

.hm-tool-card__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #001233;
}

.hm-tool-card--dark .hm-tool-card__title { color: #fff; }

.hm-tool-card__sub {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.hm-tool-card--dark .hm-tool-card__sub { color: rgba(255,255,255,0.50); }

/* WHOIS input */
.hm-tool-input-row {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    background: #f4f7fb;
    border-radius: 10px;
    padding: 6px 6px 6px 18px;
    gap: 12px;
    border: 2px solid transparent;
    transition: border-color 0.2s, background 0.2s;
}

.hm-tool-input-row:focus-within {
    border-color: #0774FF;
    background: #fff;
}

.hm-tool-input-icon { color: #bbb; font-size: 15px; }

.hm-tool-input-row input {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 10px 0 !important;
    font-size: 15px !important;
    color: #001233;
    box-shadow: none !important;
    width: 100% !important;
    font-family: inherit;
}

.hm-tool-input-row input::placeholder { color: #bbb; }

.hm-tool-input-row button {
    width: auto !important;
    background: #0774FF !important;
    color: #fff !important;
    border: none !important;
    border-radius: 7px;
    padding: 10px 22px !important;
    font-size: 14px !important;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    line-height: 1.4;
    font-family: inherit;
}

.hm-tool-input-row button:hover { background: #055ac5 !important; }

/* Feature chips */
.hm-tool-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hm-tool-card__chips span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(7, 116, 255, 0.07);
    color: #0774FF;
    border-radius: 100px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
}

.hm-tool-card__chips span i { font-size: 10px; }

/* IP display */
.hm-ip-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(200, 255, 146, 0.08);
    border: 1px solid rgba(200, 255, 146, 0.20);
    border-radius: 12px;
    padding: 18px 20px;
}

.hm-ip-box__addr {
    font-size: 22px;
    font-weight: 700;
    color: #C8FF92;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Courier New', monospace;
    min-width: 0;
    flex: 1;
}

.hm-ip-box__addr span#hm-ip-val {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* Smaller font when IPv6 is detected */
.hm-ip-box--v6 .hm-ip-box__addr {
    font-size: 13px;
    letter-spacing: 0;
}

.hm-ip-box__dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #C8FF92;
    flex-shrink: 0;
    animation: hm-ip-pulse 2s ease-in-out infinite;
}

@keyframes hm-ip-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(200,255,146,0.50); }
    50%       { box-shadow: 0 0 0 8px rgba(200,255,146,0); }
}

.hm-ip-box__version {
    font-size: 12px;
    font-weight: 600;
    background: rgba(200, 255, 146, 0.15);
    color: #C8FF92;
    border-radius: 100px;
    padding: 4px 12px;
    border: 1px solid rgba(200, 255, 146, 0.25);
    white-space: nowrap;
}

/* IP meta table */
.hm-ip-meta { display: flex; flex-direction: column; gap: 0; }

.hm-ip-meta__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-size: 14px;
    gap: 12px;
}

.hm-ip-meta__row:last-child { border-bottom: none; }

.hm-ip-meta__row span:first-child { color: rgba(255,255,255,0.45); white-space: nowrap; }

.hm-ip-meta__row span:last-child {
    color: rgba(255,255,255,0.88);
    font-weight: 500;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 65%;
}

.hm-tool-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #C8FF92;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s;
    margin-top: auto;
}

.hm-tool-card__more:hover { color: #C8FF92; gap: 10px; text-decoration: none; }

/* ── Wide IP card (full-row layout) ─────────────────────────── */
.hm-ip-wide {
    flex-direction: row !important;
    gap: 48px;
    align-items: center;
    padding: 40px 48px;
}

.hm-ip-wide__left {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hm-ip-wide__right {
    flex: 1;
}

/* 2×2 grid for meta cells */
.hm-ip-meta--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.hm-ip-meta__cell {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.hm-ip-meta__cell:nth-child(odd) {
    border-right: none;
}

.hm-ip-meta__cell:nth-child(1),
.hm-ip-meta__cell:nth-child(2) {
    border-bottom: none;
}

.hm-ip-meta__label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.40);
}

.hm-ip-meta__val {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.90);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 991px) {
    .hm-ip-wide {
        flex-direction: column !important;
        gap: 28px;
        padding: 28px;
    }
    .hm-ip-wide__left {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 575px) {
    .hm-ip-meta--grid {
        grid-template-columns: 1fr;
    }
    .hm-ip-meta__cell:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.07);
    }
    .hm-ip-meta__cell:nth-child(1),
    .hm-ip-meta__cell:nth-child(2) {
        border-bottom: none;
    }
    .hm-ip-meta__cell:last-child {
        border-bottom: none;
    }
}

/* ── Hosting Pricing Plans ────────────────────────────────────── */
.hm-pricing { background: #f4f7fb; }

.hm-plan {
    background: #fff;
    border-radius: 16px;
    padding: 36px 30px;
    height: 100%;
    border: 2px solid transparent;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: box-shadow 0.25s, transform 0.25s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.hm-plan:hover {
    box-shadow: 0 12px 40px rgba(7,116,255,0.12);
    transform: translateY(-4px);
}

.hm-plan--popular {
    border-color: #0774FF;
    box-shadow: 0 8px 40px rgba(7,116,255,0.18);
}

.hm-plan--popular:hover {
    box-shadow: 0 16px 52px rgba(7,116,255,0.25);
    transform: translateY(-6px);
}

.hm-plan__badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #0774FF;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 20px;
    border-radius: 100px;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.hm-plan__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 18px;
}

.hm-plan__icon--starter  { background: rgba(7,116,255,0.08);  color: #0774FF; }
.hm-plan__icon--pro      { background: #0774FF;               color: #fff; }
.hm-plan__icon--business { background: rgba(0,18,51,0.08);    color: #001233; }

.hm-plan__name {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #0774FF;
    margin-bottom: 6px;
}

.hm-plan__tagline {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

.hm-plan__price { margin-bottom: 20px; }

.hm-plan__currency {
    font-size: 22px;
    font-weight: 700;
    color: #001233;
    vertical-align: top;
    margin-top: 8px;
    display: inline-block;
    line-height: 1;
}

.hm-plan__amount {
    font-size: 46px;
    font-weight: 800;
    color: #001233;
    line-height: 1;
}

.hm-plan__cycle {
    font-size: 14px;
    color: #9ca3af;
    margin-left: 2px;
}

.hm-plan__divider {
    height: 1px;
    background: #f0f0f0;
    margin-bottom: 20px;
}

.hm-plan__features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    flex: 1;
}

.hm-plan__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #374151;
}

.hm-plan__features li i {
    color: #0774FF;
    font-size: 12px;
    margin-top: 3px;
    flex-shrink: 0;
}

.hm-plan__cta {
    display: block;
    text-align: center;
    padding: 13px 24px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.hm-plan__cta--outline {
    background: transparent;
    border: 2px solid #0774FF;
    color: #0774FF;
}

.hm-plan__cta--outline:hover {
    background: #0774FF;
    color: #fff;
    text-decoration: none;
}

.hm-plan__cta--filled {
    background: #0774FF;
    border: 2px solid #0774FF;
    color: #fff;
}

.hm-plan__cta--filled:hover {
    background: #055ac5;
    border-color: #055ac5;
    color: #fff;
    text-decoration: none;
}

.hm-plan__cta--dark {
    background: #001233;
    border: 2px solid #001233;
    color: #fff;
}

.hm-plan__cta--dark:hover {
    background: #002060;
    border-color: #002060;
    color: #fff;
    text-decoration: none;
}

.hm-pricing__footnote {
    text-align: center;
    margin-top: 28px;
    font-size: 13px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hm-pricing__footnote span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.hm-pricing__footnote i { color: #0774FF; }

/* ── Free Tools Grid ─────────────────────────────────────────── */
.hm-freetools { background: #fff; }

.hm-tool-tile {
    background: #f8f9fb;
    border-radius: 14px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    border: 1.5px solid #f0f0f0;
    transition: all 0.22s;
    height: 100%;
}

.hm-tool-tile:hover {
    background: #fff;
    border-color: #0774FF;
    box-shadow: 0 8px 28px rgba(7,116,255,0.10);
    transform: translateY(-3px);
    color: inherit;
    text-decoration: none;
}

.hm-tool-tile__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 4px;
}

.hm-tool-tile__name {
    font-size: 16px;
    font-weight: 700;
    color: #001233;
    margin: 0;
}

.hm-tool-tile__desc {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.55;
    flex: 1;
}

.hm-tool-tile__link {
    font-size: 13px;
    font-weight: 600;
    color: #0774FF;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    transition: gap 0.2s;
}

.hm-tool-tile:hover .hm-tool-tile__link { gap: 8px; }

/* Tool icon colour variants */
.hm-tool-tile--1 .hm-tool-tile__icon { background: rgba(7,116,255,0.09);   color: #0774FF; }
.hm-tool-tile--2 .hm-tool-tile__icon { background: rgba(16,185,129,0.10);  color: #059669; }
.hm-tool-tile--3 .hm-tool-tile__icon { background: rgba(245,158,11,0.10);  color: #d97706; }
.hm-tool-tile--4 .hm-tool-tile__icon { background: rgba(239,68,68,0.09);   color: #dc2626; }
.hm-tool-tile--5 .hm-tool-tile__icon { background: rgba(139,92,246,0.09);  color: #7c3aed; }
.hm-tool-tile--6 .hm-tool-tile__icon { background: rgba(20,184,166,0.09);  color: #0d9488; }

/* ── Trending column (right of IP card) ─────────────────────── */
.hm-trending-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hm-trending-col__title {
    font-size: 22px;
    font-weight: 800;
    color: #001233;
    margin: 0 0 8px;
}

.hm-trending-col__sub {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* 2×2 grid that fills the remaining column height */
.hm-trending-col__grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
}

/* Trending mini-cards — vertical layout fills cell height */
.hm-trend-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    border: 1.5px solid #f0f0f0;
    border-radius: 12px;
    padding: 22px 20px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.hm-trend-card:hover {
    border-color: #0774FF;
    box-shadow: 0 6px 20px rgba(7,116,255,0.10);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

.hm-trend-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.hm-trend-card__icon--1 { background: rgba(7,116,255,0.09);   color: #0774FF; }
.hm-trend-card__icon--2 { background: rgba(16,185,129,0.10);  color: #059669; }
.hm-trend-card__icon--3 { background: rgba(139,92,246,0.09);  color: #7c3aed; }
.hm-trend-card__icon--4 { background: rgba(245,158,11,0.10);  color: #d97706; }

.hm-trend-card__body {
    flex: 1;
}

.hm-trend-card__name {
    font-size: 15px;
    font-weight: 700;
    color: #001233;
    margin: 0 0 5px;
}

.hm-trend-card__desc {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    line-height: 1.55;
}

.hm-trend-card__arrow {
    font-size: 12px;
    font-weight: 600;
    color: #0774FF;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s;
    margin-top: auto;
}

.hm-trend-card__arrow::before {
    content: 'Explore';
    font-size: 12px;
}

.hm-trend-card:hover .hm-trend-card__arrow { gap: 8px; }

/* ── Blog / Insights equal-height cards ─────────────────────── */
.rts-blog .row { align-items: stretch; }

.rts-blog__single {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.rts-blog__single--meta {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rts-blog__single--meta .title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    flex: 1;
}

.rts-blog__single--author { margin-top: auto; }

/* ── Expose127 Developer CTA ─────────────────────────────────── */
.hm-expose {
    background: #0a0e1a;
    padding: 72px 0;
}

.hm-expose__card {
    display: flex;
    align-items: center;
    gap: 64px;
}

.hm-expose__left {
    flex: 1;
    min-width: 0;
}

.hm-expose__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.25);
    color: #22c55e;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 100px;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.hm-expose__title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 16px;
}

.hm-expose__desc {
    font-size: 15px;
    color: rgba(255,255,255,0.60);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

.hm-expose__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hm-expose__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.hm-expose__btn--primary {
    background: #22c55e;
    color: #0a0e1a;
}

.hm-expose__btn--primary:hover {
    background: #16a34a;
    color: #0a0e1a;
    transform: translateY(-2px);
    text-decoration: none;
}

.hm-expose__btn--ghost {
    border: 1.5px solid rgba(255,255,255,0.20);
    color: rgba(255,255,255,0.75);
}

.hm-expose__btn--ghost:hover {
    border-color: rgba(255,255,255,0.55);
    color: #fff;
    text-decoration: none;
}

/* Terminal widget */
.hm-expose__right { flex: 0 0 460px; }

.hm-expose__terminal {
    background: #111827;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 64px rgba(0,0,0,0.50);
}

.hm-expose__terminal-bar {
    background: #1f2937;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hm-expose__terminal-bar span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #374151;
}

.hm-expose__terminal-bar span:nth-child(1) { background: #ef4444; }
.hm-expose__terminal-bar span:nth-child(2) { background: #f59e0b; }
.hm-expose__terminal-bar span:nth-child(3) { background: #22c55e; }

.hm-expose__terminal-title {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    font-family: 'Courier New', monospace;
    width: auto;
    background: none;
    border-radius: 0;
}

.hm-expose__terminal-body {
    padding: 24px 28px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 2;
}

.hm-expose__prompt {
    color: #22c55e;
    margin-right: 10px;
    font-weight: 700;
}

.hm-expose__terminal-body > p {
    margin: 0;
    color: #e2e8f0;
}

.hm-expose__output { color: rgba(255,255,255,0.45) !important; }

.hm-expose__output--success {
    color: #22c55e !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hm-expose__output--success span {
    color: #6ee7b7;
    font-weight: 600;
}

.hm-expose__url {
    color: #6ee7b7;
    font-weight: 600;
}

.hm-expose__cursor {
    color: #22c55e !important;
    animation: hm-blink 1s step-end infinite;
}

@keyframes hm-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

@media (max-width: 991px) {
    .hm-expose__card  { flex-direction: column; gap: 40px; }
    .hm-expose__right { flex: none; width: 100%; }
}

@media (max-width: 575px) {
    .hm-expose { padding: 48px 0; }
    .hm-expose__terminal-body { padding: 18px 20px; font-size: 12px; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991px) {
    .hm-tool-card  { padding: 28px; }
    .hm-plan       { padding: 28px 22px; }
    .hm-plan__amount { font-size: 38px; }
}

@media (max-width: 767px) {
    .hm-tool-card  { padding: 24px; }
    .hm-ip-box__addr { font-size: 18px; }
    .hm-plan__amount { font-size: 34px; }
    .hm-pricing__footnote { gap: 12px; }
    .hm-trending-col__grid { grid-template-columns: 1fr; grid-template-rows: auto; }
}
