﻿/* ============================================================
   SETTINGS & PREFERENCES - AWARD-WORTHY DESIGN
   Modern, sleek, with glassmorphism and micro-interactions
   ============================================================ */

/* Floating Elements */
.floating-engagement {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.85);
    padding: 8px;
    border-radius: 60px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08), 0 0 0 1px rgba(255,255,255,0.5);
}

.btn-floating {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    color: #1A1D20;
}

    .btn-floating:hover {
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 12px 28px rgba(0,0,0,0.15);
        color: #F58220;
    }

.engagement-btn i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.engagement-btn.loc-btn:hover i {
    color: #22c55e;
    transform: scale(1.1);
}

.engagement-btn.phone-btn:hover i {
    color: #56C4F8;
    transform: scale(1.1);
}

.engagement-btn.email-btn:hover i {
    color: #F58220;
    transform: scale(1.1);
}

.engagement-btn.yt-btn:hover i {
    color: #dc3545;
    transform: scale(1.1);
}

.a11y-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #1A1D20, #2d3139);
    z-index: 50;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

    .a11y-btn:hover {
        background: linear-gradient(135deg, #F58220, #ff9f4d);
        transform: scale(1.05);
    }

.floating-settings-wrapper {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
}

.settings-btn {
    background: #FFFFFF;
    color: #1A1D20;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

    .settings-btn:hover {
        color: #F58220;
        transform: rotate(45deg);
    }

.chat-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #F58220, #ff6b6b);
    border: none;
    z-index: 50;
    box-shadow: 0 8px 25px rgba(245,130,32,0.4);
    transition: all 0.3s ease;
}

    .chat-btn:hover {
        transform: scale(1.08) translateY(-3px);
        box-shadow: 0 12px 35px rgba(245,130,32,0.5);
    }

/* ============================================================
   AWARD-WORTHY AI FEATURES PANEL WITH TOGGLE BUTTON
   ============================================================ */

/* Right Panel Container */
.features-section {
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.95) 100%);
    border-left: none !important;
    position: relative;
    overflow: hidden;
}

    /* Animated gradient border on left side */
    .features-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, #F58220, #56C4F8, #F58220);
        background-size: 100% 200%;
        animation: gradient-flow 3s ease-in-out infinite;
        z-index: 2;
    }

@keyframes gradient-flow {
    0%, 100% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 0% 100%;
    }
}

/* TOGGLE BUTTON - Fixed with proper positioning and visibility */
.btn-collapse {
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid rgba(245,130,32,0.4);
    color: #F58220;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    font-size: 1.2rem;
    text-decoration: none;
}

    .btn-collapse:hover {
        background: #F58220;
        color: white;
        border-color: #F58220;
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 6px 18px rgba(245,130,32,0.35);
    }

    .btn-collapse:active {
        transform: translateY(-50%) scale(0.95);
    }

/* When collapsed, the button should point to the right (to open) */
#splitWrapper.panel-collapsed .btn-collapse i {
    transform: rotate(180deg);
}

#splitWrapper.panel-collapsed .btn-collapse {
    left: -20px;
    background: #FFFFFF;
    color: #F58220;
    border-color: rgba(245,130,32,0.5);
}

    #splitWrapper.panel-collapsed .btn-collapse:hover {
        background: #F58220;
        color: white;
    }

/* Ensure the button is always visible */
#splitWrapper {
    position: relative;
}

#rightPanel {
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Panel Header */
#rightPanelContent {
    transition: opacity 0.3s ease, visibility 0.3s ease;
    width: 100%;
    min-width: 300px;
}

#splitWrapper.panel-collapsed #rightPanelContent {
    opacity: 0;
    visibility: hidden;
}

#rightPanelContent .d-flex.justify-content-between.align-items-end {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(245,130,32,0.15);
}

#rightPanelContent h5 {
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1A1D20 0%, #F58220 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

    #rightPanelContent h5::after {
        content: '';
        position: absolute;
        bottom: -12px;
        left: 0;
        width: 50px;
        height: 3px;
        background: linear-gradient(90deg, #F58220, #56C4F8);
        border-radius: 3px;
    }

.badge.bg-primary-blue {
    background: linear-gradient(135deg, rgba(245,130,32,0.15) 0%, rgba(86,196,248,0.15) 100%) !important;
    color: #F58220 !important;
    padding: 8px 16px !important;
    border-radius: 40px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.03em;
    border: 1px solid rgba(245,130,32,0.3);
    backdrop-filter: blur(4px);
}

/* Features Stack */
.features-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: #F58220 rgba(245,130,32,0.2);
    max-height: calc(100vh - 180px);
}

    .features-stack::-webkit-scrollbar {
        width: 5px;
    }

    .features-stack::-webkit-scrollbar-track {
        background: rgba(245,130,32,0.1);
        border-radius: 10px;
    }

    .features-stack::-webkit-scrollbar-thumb {
        background: #F58220;
        border-radius: 10px;
    }

/* Feature Card - Premium Design */
.feature-card {
    display: flex;
    gap: 18px;
    align-items: center;
  /*  padding: 18px 20px;*/
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(245,130,32,0.12);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

    .feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(245,130,32,0.1), transparent);
        transition: left 0.6s ease;
        pointer-events: none;
    }

    .feature-card:hover::before {
        left: 100%;
    }

    .feature-card:hover {
        transform: translateY(-6px) scale(1.02);
        border-color: rgba(245,130,32,0.4);
        box-shadow: 0 20px 35px -12px rgba(245,130,32,0.25);
        background: #ffffff;
    }

/* Icon Box - Large and Visible */
.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

    .icon-box i {
        font-size: 2rem;
        transition: transform 0.3s ease;
    }

.feature-card:hover .icon-box i {
    transform: scale(1.15);
}

/* Gradient backgrounds */
.bg-orange-gradient {
    background: linear-gradient(135deg, #F58220, #ff9f4d);
    position: relative;
    overflow: hidden;
}

    .bg-orange-gradient::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
        opacity: 0;
        transition: opacity 0.4s ease;
    }

.feature-card:hover .bg-orange-gradient::after {
    opacity: 1;
}

.bg-blue-gradient {
    background: linear-gradient(135deg, #56C4F8, #2A85FF);
    position: relative;
    overflow: hidden;
}

    .bg-blue-gradient::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
        opacity: 0;
        transition: opacity 0.4s ease;
    }

.feature-card:hover .bg-blue-gradient::after {
    opacity: 1;
}

.bg-pink-gradient {
    background: linear-gradient(135deg, #e056fd, #686de0);
    position: relative;
    overflow: hidden;
}

    .bg-pink-gradient::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
        opacity: 0;
        transition: opacity 0.4s ease;
    }

.feature-card:hover .bg-pink-gradient::after {
    opacity: 1;
}

/* Feature Text */
.feature-text {
    flex: 1;
    min-width: 0;
}

    .feature-text h6 {
        font-size: 0.8rem;
        font-weight: 800;
        margin: 3px 0px;
        color: #1A1D20;
        letter-spacing: -0.01em;
        transition: color 0.2s ease;
    }

.feature-card:hover .feature-text h6 {
    color: #F58220;
}

.feature-text p {
    font-size: 0.7rem;
    color: #6C757D;
    line-height: 1.5;
    margin: 0;
}

/* Animation */
@keyframes featureSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: featureSlideUp 0.5s ease forwards;
    animation-delay: calc(var(--index, 0) * 0.08s);
}

    .feature-card:nth-child(1) {
        --index: 1;
    }

    .feature-card:nth-child(2) {
        --index: 2;
    }

    .feature-card:nth-child(3) {
        --index: 3;
    }

    .feature-card:nth-child(4) {
        --index: 4;
    }

    .feature-card:nth-child(5) {
        --index: 5;
    }

    .feature-card:nth-child(6) {
        --index: 6;
    }

/* Responsive */
@media (max-width: 991px) {
    .floating-engagement {
        top: auto;
        bottom: 90px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row !important;
        background: rgba(255,255,255,0.95);
        padding: 8px 20px;
        border-radius: 60px;
    }

    .btn-collapse {
        display: none !important;
    }

    .features-section::before {
        display: none;
    }

    .feature-card {
        padding: 16px;
    }

    .icon-box {
        width: 50px;
        height: 50px;
    }

        .icon-box i {
            font-size: 1.6rem;
        }

    .feature-text h6 {
        font-size: 0.95rem;
    }

    .feature-text p {
        font-size: 0.75rem;
    }
}

/* ============================================================
   SETTINGS PANEL — Premium Legal Resources Section (NEW)
   Replaces old settings-legal-link with premium card design
   ============================================================ */

/* Header row */
.settings-legal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(245,130,32,0.12);
}

.settings-legal-header-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.settings-legal-header h6 {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1A1D20;
}

/* Card stack */
.settings-legal-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

/* Individual card */
.settings-legal-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.9);
    border: 1.5px solid rgba(0,0,0,0.07);
    border-radius: 18px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

    .settings-legal-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 3px;
        border-radius: 3px 0 0 3px;
        background: linear-gradient(180deg, #F58220, #56C4F8);
        transform: scaleY(0);
        transition: transform 0.3s ease;
    }

    .settings-legal-card:hover::before {
        transform: scaleY(1);
    }

    .settings-legal-card:hover {
        transform: translateY(-2px) translateX(2px);
        border-color: rgba(245,130,32,0.3);
        box-shadow: 0 8px 20px rgba(0,0,0,0.07);
        background: #ffffff;
    }

/* Icon bubble */
.settings-legal-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.settings-legal-card:hover .settings-legal-card-icon {
    transform: scale(1.08);
}

.settings-legal-card-icon--green {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.settings-legal-card-icon--blue {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* Card body text */
.settings-legal-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .settings-legal-card-body strong {
        font-size: 0.82rem;
        font-weight: 800;
        color: #1A1D20;
        letter-spacing: -0.01em;
        line-height: 1.3;
        display: block;
        transition: color 0.2s;
    }

.settings-legal-card:hover .settings-legal-card-body strong {
    color: #F58220;
}

.settings-legal-card-body span {
    font-size: 0.68rem;
    color: #9CA3AF;
    line-height: 1.4;
    display: block;
}

/* Chevron arrow */
.settings-legal-card-arrow {
    font-size: 0.75rem;
    color: #D1D5DB;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.settings-legal-card:hover .settings-legal-card-arrow {
    color: #F58220;
    transform: translateX(3px);
}

/* Footer note */
.settings-legal-footer {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 0.62rem;
    color: #9CA3AF;
    line-height: 1.5;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

    .settings-legal-footer i {
        font-size: 0.7rem;
        margin-top: 1px;
        flex-shrink: 0;
        color: #F58220;
    }

/* ============================================================
   SETTINGS PANEL — Premium offcanvas enhancements
   ============================================================ */

/* Premium section headers within the settings panel */
.offcanvas-body h6.fw-bold {
    font-size: 0.78rem;
    letter-spacing: 0.03em;
}

/* Cookie tier items — slight polish */
.cookie-tier-items .d-flex {
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.15s;
}

    .cookie-tier-items .d-flex:hover {
        background: rgba(0,0,0,0.03);
    }

/* Storage report styling */
.storage-report {
    font-size: 0.7rem;
}

.sr-group {
    margin-bottom: 12px;
}

.sr-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9CA3AF;
    display: block;
    margin-bottom: 6px;
}

.sr-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sr-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    background: rgba(0,0,0,0.025);
    border-radius: 8px;
    gap: 8px;
}

    .sr-item code {
        font-size: 0.65rem;
        color: #374151;
        background: none;
        padding: 0;
        word-break: break-all;
    }

.sr-size {
    font-size: 0.6rem;
    color: #9CA3AF;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .settings-legal-card {
        padding: 12px 14px;
    }

    .settings-legal-card-icon {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
        border-radius: 11px;
    }

    .settings-legal-card-body strong {
        font-size: 0.78rem;
    }

    .settings-legal-card-body span {
        font-size: 0.65rem;
    }
}
/* ============================================================
   SETTINGS SVG PRECISION ALIGNMENT
   ============================================================ */
.btn-floating,
.floating-settings-wrapper .btn,
.floating-engagement .btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important; /* Prevents internal padding from shifting the icon */
    line-height: 0 !important; /* Kills the invisible 'text' descent line */
    overflow: hidden !important;
}

    .btn-floating svg,
    .floating-settings-wrapper .btn svg,
    .floating-engagement .btn svg {
        margin: 0 !important; /* Overrides any 'svg { margin-right: 8px }' leak */
        display: block !important;
        flex-shrink: 0 !important;
        transform: translateZ(0); /* Hardware acceleration for a sharper look */
    }

/* ============================================================
   PREMIUM SETTINGS PANEL — v2 (SaaS Trust-Centre Redesign)
   ============================================================
   Adds the new sticky action-bar, premium header, section labels,
   refund-card icon variant, domain badge, and mobile-native polish.
   These extend the v1 .settings-legal-* styles above. Both work
   together — v2 is purely additive.
   ============================================================ */

/* ── Outer panel container ── */
.ikh-settings-panel {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

/* ── Premium sticky header ── */
.ikh-settings-header {
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    padding: 18px 24px 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ikh-settings-header-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.ikh-settings-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(245,130,32,0.12), rgba(86,196,248,0.12));
    border: 1px solid rgba(245,130,32,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F58220;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(245,130,32,0.08);
}

.ikh-settings-header-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

    .ikh-settings-header-text h5 {
        font-size: 1.05rem;
        line-height: 1.2;
        color: #1A1D20;
        letter-spacing: -0.015em;
    }

.ikh-settings-header-sub {
    font-size: 0.7rem;
    color: #6B7280;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-top: 2px;
}

.ikh-settings-close {
    flex-shrink: 0;
    margin-left: auto;
}

/* ── Sticky action-bar (language + POPIA pill) ── */
.ikh-settings-actionbar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 24px;
    background: linear-gradient(180deg, #fafbfc 0%, rgba(250,251,252,0.95) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    flex-wrap: wrap;
}

.ikh-settings-actionbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

/* Trust-line replaces the old language pills (language now lives in main nav) */
.ikh-settings-trust-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    color: #4B5563;
    font-weight: 500;
    line-height: 1.3;
}

    .ikh-settings-trust-line i {
        color: #16a34a;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

.ikh-settings-actionbar-right {
    flex-shrink: 0;
}

.ikh-settings-popia-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    background: rgba(22,163,74,0.08);
    border: 1px solid rgba(22,163,74,0.22);
    border-radius: 999px;
    color: #16a34a;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

    .ikh-settings-popia-pill i {
        font-size: 0.78rem;
    }

/* ── Body container ── */
.ikh-settings-body {
    padding-top: 24px !important;
}

/* ── Section labels (column headers) ── */
.ikh-settings-section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9CA3AF;
    margin-bottom: 14px;
    padding: 4px 10px;
    background: rgba(245,130,32,0.05);
    border: 1px solid rgba(245,130,32,0.12);
    border-radius: 999px;
    width: fit-content;
}

    .ikh-settings-section-label i {
        font-size: 0.75rem;
        color: #F58220;
    }

/* ── Header text refinement (works with v1 .settings-legal-header) ── */
.settings-legal-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.settings-legal-header-sub {
    font-size: 0.62rem;
    color: #9CA3AF;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* ── New icon variants for legal cards ── */
.settings-legal-card-icon--orange {
    background: linear-gradient(135deg, rgba(245,130,32,0.12), rgba(255,159,74,0.08));
    color: #F58220;
    border: 1px solid rgba(245,130,32,0.22);
}

.settings-legal-card-icon--teal {
    background: rgba(8,145,178,0.10);
    color: #0891b2;
    border: 1px solid rgba(8,145,178,0.20);
}

/* Refund card subtle accent (orange variant glow on hover) */
.settings-legal-card:has(.settings-legal-card-icon--orange):hover {
    border-color: rgba(245,130,32,0.4);
    box-shadow: 0 8px 22px rgba(245,130,32,0.10);
}

/* ── Domain badge at the bottom of legal column ── */
.settings-legal-domain {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 14px;
    margin-top: 10px;
    background: linear-gradient(135deg, #1A1D20, #2a2d31);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .settings-legal-domain:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.14);
    }

    .settings-legal-domain i {
        color: #F58220;
        font-size: 0.78rem;
    }

/* ============================================================
   MOBILE POLISH — Native-app feel below 768px
   ============================================================ */
@media (max-width: 768px) {
    .ikh-settings-panel {
        max-height: 95vh !important;
        border-top-left-radius: 22px !important;
        border-top-right-radius: 22px !important;
    }

    .ikh-settings-header {
        padding: 14px 16px 12px;
    }

    .ikh-settings-header-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 1rem;
    }

    .ikh-settings-header-text h5 {
        font-size: 0.95rem;
    }

    .ikh-settings-header-sub {
        font-size: 0.65rem;
    }

    .ikh-settings-actionbar {
        padding: 10px 16px;
        gap: 10px;
    }

    .ikh-settings-trust-line {
        font-size: 0.66rem;
    }

    .ikh-settings-popia-pill {
        font-size: 0.58rem;
        padding: 4px 9px;
    }

    .ikh-settings-actionbar-right {
        flex-shrink: 0;
    }

    .ikh-settings-body {
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-top: 18px !important;
    }

    .ikh-settings-section-label {
        margin-bottom: 10px;
        padding: 3px 9px;
        font-size: 0.55rem;
    }

    /* Cards spacing tighter on mobile */
    .settings-legal-card {
        padding: 12px 14px;
        border-radius: 16px;
        gap: 12px;
    }

    .settings-legal-card-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 1rem;
    }

    .settings-legal-card-body strong {
        font-size: 0.78rem;
    }

    .settings-legal-card-body span {
        font-size: 0.65rem;
    }

    .settings-legal-domain {
        font-size: 0.65rem;
        padding: 8px 12px;
    }

    /* Stack columns with proper rhythm */
    .ikh-settings-body .row > [class*="col-"] {
        margin-bottom: 18px;
    }

        /* Native-app section breaks */
        .ikh-settings-body .row > [class*="col-"]:not(:last-child) {
            padding-bottom: 18px;
            border-bottom: 1px solid rgba(0,0,0,0.06);
        }
}

@media (max-width: 480px) {
    .ikh-settings-actionbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .ikh-settings-actionbar-left {
        width: 100%;
    }

    .ikh-settings-actionbar-right {
        align-self: flex-end;
    }
}
