/* ============================================
   BROKERGRADE — UK DESIGN SYSTEM
   Colour palette: navy authority + signal green
   Typography: clean, editorial, UK finance style
   ============================================ */

    :root {
        /* Core palette — UK finance */
        --brand-navy:        #0b2545;   /* primary dark */
        --brand-navy-soft:   #12305a;
        --brand-blue:        #1e40af;   /* accent blue */
        --brand-blue-light:  #3b6fd4;
        --brand-green:       #0f8a4a;   /* trust / "regulated" green */
        --brand-green-light: #16a34a;
        --brand-red:         #c81e1e;   /* compliance red */
        --brand-amber:       #b45309;   /* risk warning */

        /* Surfaces */
        --light-bg:      #f4f5f7;
        --card-bg:       #ffffff;
        --body-bg:       #f4f5f7;
        --input-bg:      #f7f8fa;
        --hover-bg:      #eef1f6;

        /* Text */
        --text-primary:  #0f172a;
        --text-muted:    #5b6472;
        --border-color:  #dde2e9;

        /* Accent aliases (kept for backward compatibility
        with existing templates that reference --gold) */
        --gold:          var(--brand-blue);
        --gold-light:    var(--brand-blue-light);

        --shadow-color:  rgba(15, 23, 42, 0.08);
        --bs-secondary-color: #5b6472;

        /* Font stack — UK finance feel */
        --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
        --font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
    }

body {
    background-color: var(--body-bg);
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ============================================
   NAVBAR — UK authority style
   ============================================ */
.navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--brand-navy) !important;
}

.navbar-brand img {
    filter: none;
}

.navbar .nav-link {
    color: var(--text-primary) !important;
    font-weight: 600;
    letter-spacing: 0.1px;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--brand-blue) !important;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-gold {
    background-color: var(--brand-blue);
    color: #fff;
    border: none;
    font-weight: 600;
    letter-spacing: 0.2px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-gold:hover {
    background-color: var(--brand-navy);
    color: #fff;
}

.btn-outline-gold {
    border: 1.5px solid var(--brand-blue);
    color: var(--brand-blue);
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-outline-gold:hover {
    background-color: var(--brand-blue);
    color: #fff;
}

/* New UK semantic buttons */
.btn-uk-primary {
    background: var(--brand-navy);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.7rem 1.6rem;
    border: none;
    transition: all 0.2s ease;
}

.btn-uk-primary:hover {
    background: var(--brand-navy-soft);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(11, 37, 69, 0.18);
}

.btn-uk-green {
    background: var(--brand-green);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.7rem 1.6rem;
    border: none;
    transition: all 0.2s ease;
}

.btn-uk-green:hover {
    background: var(--brand-green-light);
    color: #fff;
}

/* ============================================
   CARDS — clean editorial
   ============================================ */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 1px 2px var(--shadow-color);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
    border-color: rgba(30, 64, 175, 0.25);
}

.card-gold-border {
    border: 1px solid rgba(30, 64, 175, 0.25);
}

.card-gold-border:hover {
    border-color: var(--brand-blue);
    box-shadow: 0 12px 28px rgba(30, 64, 175, 0.14);
}

.card-featured {
    background: linear-gradient(135deg, #ffffff 0%, #f6f9ff 100%);
    border: 1px solid rgba(30, 64, 175, 0.35);
    box-shadow: 0 2px 10px rgba(30, 64, 175, 0.08);
}

.card-sponsored {
    border: 1px solid rgba(200, 30, 30, 0.35);
    box-shadow: 0 2px 10px rgba(200, 30, 30, 0.06);
}

/* Card header */
.card-header {
    background: linear-gradient(135deg, #f6f8fc 0%, #eef1f6 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.2px;
    border-radius: 12px 12px 0 0 !important;
}

.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5,
.card-header h6 {
    margin-bottom: 0;
    color: var(--text-primary);
    font-weight: 700;
}

.card-header-accent {
    border-bottom: 2px solid var(--brand-blue);
    background: linear-gradient(135deg, #f6f8fc 0%, #eef1f6 100%);
}

.card-header-icon {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-header-icon i {
    color: var(--brand-blue);
    font-size: 1.15rem;
}

.card-header-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.card-header-actions .btn {
    white-space: nowrap;
}

.card-header-transparent {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}

.card-header-gold {
    background: linear-gradient(135deg, var(--brand-navy) 0%, #071a33 100%);
    color: #fff;
    border-bottom: none;
}

.card-header-gold h1,
.card-header-gold h2,
.card-header-gold h3,
.card-header-gold h4,
.card-header-gold h5,
.card-header-gold h6 {
    color: #fff;
}

/* Card body */
.card-body {
    background-color: var(--card-bg);
    padding: 1.25rem;
    color: var(--text-primary);
}

.card-body-pattern {
    background-image:
        linear-gradient(45deg, rgba(30, 64, 175, 0.02) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(30, 64, 175, 0.02) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(30, 64, 175, 0.02) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(30, 64, 175, 0.02) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.card-body-sm { padding: 0.75rem; }
.card-body-lg { padding: 1.5rem; }
.card-body-xl { padding: 2rem; }

.card-body-flex {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-body-flex .card-text { flex-grow: 1; }

.card-body-scroll {
    max-height: 400px;
    overflow-y: auto;
}

.card-body-scroll::-webkit-scrollbar { width: 6px; }
.card-body-scroll::-webkit-scrollbar-track {
    background: var(--input-bg);
    border-radius: 3px;
}
.card-body-scroll::-webkit-scrollbar-thumb {
    background: var(--brand-blue);
    border-radius: 3px;
}
.card-body-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--brand-navy);
}

.card-body-divider > * + * {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

.card-body-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.card-body-hover {
    transition: background-color 0.25s ease;
}

.card:hover .card-body-hover {
    background-color: #f9fafc;
}

/* Card footer */
.card-footer {
    background-color: #f7f8fa;
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    color: var(--text-muted);
}

/* Card titles */
.card-title {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.1px;
    margin-bottom: 0.75rem;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.card-title:hover { color: var(--brand-blue); }

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: var(--brand-blue);
    text-decoration: none;
}

.card-title-accent {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.card-title-accent::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-blue-light));
    border-radius: 2px;
}

[dir="rtl"] .card-title-accent::after {
    left: auto;
    right: 0;
    background: linear-gradient(-90deg, var(--brand-blue), var(--brand-blue-light));
}

.card-title-sm { font-size: 1rem; font-weight: 600; }
.card-title-lg { font-size: 1.5rem; font-weight: 800; }

.card-title-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title-icon i {
    color: var(--brand-blue);
    font-size: 1.05em;
}

.card-title-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Card text */
.card-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.card-text:hover { color: #3c4655; }

.review-card .card-text {
    -webkit-line-clamp: 4;
    line-height: 1.7;
    color: #4a5462;
}

.broker-card .card-text {
    -webkit-line-clamp: 2;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.card-text.fade-bottom { position: relative; }

.card-text.fade-bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, transparent, var(--card-bg));
    pointer-events: none;
}

.card-text.expanded {
    -webkit-line-clamp: unset;
    overflow: visible;
    display: block;
}

.card-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.card-text-highlight {
    color: var(--brand-blue);
    font-weight: 600;
}

.card-text-muted {
    color: #94a3b8;
    font-size: 0.85rem;
}

@supports not (-webkit-line-clamp: 1) {
    .card-text {
        max-height: 4.5em;
        position: relative;
        overflow: hidden;
    }

    .card-text::after {
        content: '...';
        position: absolute;
        bottom: 0;
        right: 0;
        padding-left: 20px;
        background: linear-gradient(to right, transparent, var(--card-bg) 50%);
    }

    .review-card .card-text { max-height: 6em; }
    .broker-card .card-text { max-height: 3em; }
}

.card-text a {
    color: var(--brand-blue);
    text-decoration: none;
    transition: color 0.2s;
}

.card-text a:hover {
    color: var(--brand-navy);
    text-decoration: underline;
}

.card-text-with-icon {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.card-text-with-icon i {
    color: var(--brand-blue);
    margin-top: 0.2rem;
}

.card-img-top {
    border-bottom: 1px solid var(--border-color);
    max-height: 200px;
    object-fit: cover;
    background: #eef1f6;
}

.card-compact .card-header { padding: 0.75rem 1rem; }
.card-compact .card-body   { padding: 1rem; }
.card-compact .card-title  { font-size: 1.05rem; margin-bottom: 0.5rem; }

/* ============================================
   BROKER CARDS
   ============================================ */
.broker-card .broker-logo {
    margin-left: 10px;
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    padding: 4px;
    border: 1px solid var(--border-color);
}

.broker-logo-lg {
    margin-left: 15px;
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    padding: 6px;
    border: 1px solid var(--border-color);
}

.fs-3 {
    color: var(--brand-blue) !important;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    color: var(--text-primary);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--brand-blue);
    border-radius: 2px;
}

/* ============================================
   RATING INPUT
   ============================================ */
.rating-input {
    direction: rtl;
    display: inline-block;
}

.rating-input input { display: none; }

.rating-input label {
    font-size: 2rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.2s;
}

.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
    color: var(--brand-blue);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--brand-navy) !important;
    border-top: 1px solid #071a33;
    color: #cbd5e1;
}

.footer,
.footer p,
.footer span,
.footer li {
    color: #cbd5e1;
}

.footer h1,
.footer h2,
.footer h3,
.footer h4,
.footer h5,
.footer h6 {
    color: #ffffff;
}

.footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #ffffff;
}

/* ============================================
   HERO SECTION — UK editorial
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #0b2545 0%, #12305a 55%, #1e40af 100%);
    border-bottom: 1px solid #071a33;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #ffffff;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 111, 212, 0.20) 0%, transparent 55%);
    animation: heroGlow 14s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(8%, 8%) scale(1.08); }
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section .hero-title,
.hero-section h1 {
    color: #ffffff;
}

.hero-section .hero-subtitle,
.hero-section p {
    color: #cbd5e1;
}

/* Hero badge */
.hero-badge { position: relative; z-index: 2; }

.hero-badge .badge {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.20);
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}

.hero-badge .badge:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
}

.hero-title {
    position: relative;
    z-index: 2;
    color: #ffffff;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.hero-subtitle {
    position: relative;
    z-index: 2;
    color: #cbd5e1;
    font-size: 1.15rem;
    line-height: 1.75;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
}

.hero-actions {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.hero-actions .btn {
    position: relative;
    z-index: 11;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 0.75rem 2rem;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.25s ease;
}

.hero-actions .btn:active { transform: scale(0.98); }

.hero-stats {
    position: relative;
    z-index: 2;
    margin-top: 3rem;
    pointer-events: auto;
}

/* ============================================
   STATISTICS CARDS
   ============================================ */
.stat-card {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 1.5rem 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
    height: 100%;
    color: #ffffff;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.20);
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.8px;
}

.stat-label {
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Light variant (used outside hero) */
.stat-card.stat-card-light {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.stat-card.stat-card-light .stat-number { color: var(--brand-blue); }
.stat-card.stat-card-light .stat-label  { color: var(--text-muted); }

/* ============================================
   RISK BANNER — FCA style
   ============================================ */
.risk-banner {
    background: #fff8e6;
    border-bottom: 1px solid rgba(180, 83, 9, 0.25);
    border-top: 1px solid rgba(180, 83, 9, 0.25);
}

.risk-banner .alert {
    background: transparent;
    border: none;
    color: var(--brand-amber);
    border-radius: 0;
    font-size: 0.9rem;
    padding: 0.75rem 0;
    margin: 0;
    font-weight: 500;
}

.risk-banner .alert i {
    color: var(--brand-amber);
    margin-right: 0.4rem;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    position: relative;
    margin-bottom: 3rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 620px;
    margin: 1rem auto 0;
}

/* ============================================
   CATEGORY CARDS
   ============================================ */
.category-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 100%;
    box-shadow: 0 1px 2px var(--shadow-color);
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-blue);
    box-shadow: 0 15px 32px rgba(30, 64, 175, 0.12);
    background: #f8faff;
}

.category-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto;
    background: rgba(30, 64, 175, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.category-card:hover .category-icon {
    background: rgba(30, 64, 175, 0.16);
    transform: scale(1.08);
}

.category-icon i {
    font-size: 1.65rem;
    color: var(--brand-blue);
}

.category-title {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* ============================================
   REVIEW CARDS
   ============================================ */
.review-card {
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.review-card:hover {
    border-color: rgba(30, 64, 175, 0.28);
    box-shadow: 0 12px 30px var(--shadow-color);
}

.reviewer-avatar {
    margin-left: 15px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.reviewer-name {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.2;
}

.review-date {
    color: #94a3b8;
    font-size: 0.8rem;
}

.review-rating .badge {
    font-size: 0.85rem;
    padding: 0.45rem 0.75rem;
    border-radius: 50px;
    font-weight: 700;
}

.review-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: auto;
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    box-shadow: 0 1px 2px var(--shadow-color);
}

.feature-card:hover {
    border-color: var(--brand-blue);
    transform: translateY(-6px);
    box-shadow: 0 15px 32px rgba(30, 64, 175, 0.12);
    background: #f8faff;
}

.feature-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.10), rgba(30, 64, 175, 0.04));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.08);
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.18), rgba(30, 64, 175, 0.08));
}

.feature-icon i {
    font-size: 1.85rem;
    color: var(--brand-blue);
}

.feature-card h5 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 1.08rem;
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0;
    color: var(--text-muted);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--brand-navy) 0%, #12305a 100%);
    border-top: none;
    border-bottom: none;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(59, 111, 212, 0.20) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: #ffffff;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.cta-section p {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination .page-link {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
    border-radius: 8px;
    margin: 0 2px;
}

.pagination .page-link:hover {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff;
}

.pagination .active .page-link {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff;
}

/* ============================================
   BADGES
   ============================================ */
.badge.bg-danger  { background-color: var(--brand-red) !important; }
.badge.bg-info    { background-color: var(--brand-blue) !important; }
.badge.bg-success { background-color: var(--brand-green) !important; }

/* UK regulatory-style pill */
.badge-uk-regulated {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(15, 138, 74, 0.10);
    color: var(--brand-green);
    border: 1px solid rgba(15, 138, 74, 0.25);
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.badge-uk-risk {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(200, 30, 30, 0.08);
    color: var(--brand-red);
    border: 1px solid rgba(200, 30, 30, 0.22);
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* ============================================
   MISC
   ============================================ */
.bg-dark-light {
    background-color: #eef1f6;
}

.text-warning {
    color: var(--brand-blue) !important;
}

/* UK trust strip */
.uk-trust-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1rem 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.uk-trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.uk-trust-strip i {
    color: var(--brand-green);
}

/* RTL */
[dir="rtl"] .navbar-nav {
    margin-left: auto;
    margin-right: 0;
}

[dir="rtl"] .ms-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .card-text {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }

    .review-card .card-text { -webkit-line-clamp: 3; }

    .card-body   { padding: 1rem; }
    .card-header { padding: 0.75rem 1rem; }
    .card-title  { font-size: 1.05rem; }

    .card-header-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-title    { font-size: 1.9rem; }
    .hero-subtitle { font-size: 1rem; line-height: 1.6; }

    .section-title    { font-size: 1.5rem; }
    .section-subtitle { font-size: 0.95rem; }

    .stat-number { font-size: 1.5rem; }
    .stat-label  { font-size: 0.75rem; }

    .cta-section h2 { font-size: 1.65rem; }
    .cta-section p  { font-size: 1rem; }

    .hero-actions .btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.92rem;
    }

    .category-icon { width: 52px; height: 52px; }
    .category-icon i { font-size: 1.25rem; }

    .feature-icon { width: 60px; height: 60px; }
    .feature-icon i { font-size: 1.5rem; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 1.6rem; }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn { width: 100%; }

    .stat-card { padding: 1rem 0.75rem; }
    .stat-number { font-size: 1.25rem; }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
    .card {
        border: 1px solid #ccc;
        box-shadow: none;
        page-break-inside: avoid;
    }

    .card-header,
    .card-body {
        background: #fff;
        color: #000;
    }

    .hero-section,
    .cta-section {
        background: #fff !important;
        color: #000 !important;
    }

    .hero-section .hero-title,
    .cta-section h2 {
        color: #000 !important;
    }
}