/* Aiqbee Hive — Premium Theme
   Brand primary: #FF6B3D (orange from logo)
   Complementary palette: warm ambers, slate grays, teal accents
*/

:root {
    /* Brand orange */
    --aiq-primary: #FF6B3D;
    --aiq-primary-dark: #E05A2B;
    --aiq-primary-light: #FF8F6B;
    --aiq-primary-subtle: #FFF0EB;
    --aiq-primary-glow: rgba(255, 107, 61, 0.12);
    /* Text sitting on --aiq-primary-subtle. --aiq-primary-dark only reaches
       3.3:1 there, which fails WCAG AA for body-size text; this is 5.8:1. */
    --aiq-primary-deep: #A63C16;

    /* Complementary teal (cool accent — split-complementary of orange) */
    --aiq-teal: #0D9488;
    --aiq-teal-dark: #0A7A70;
    --aiq-teal-subtle: #E6F7F5;

    /* Warm amber (analogous accent) */
    --aiq-amber: #D97706;
    --aiq-amber-subtle: #FEF3C7;

    /* Neutral slate (warm gray base) */
    --aiq-dark: #1A1D23;
    --aiq-darker: #0E1015;
    --aiq-slate-900: #1E293B;
    --aiq-slate-700: #334155;
    --aiq-slate-600: #475569;
    --aiq-slate-500: #64748B;
    --aiq-slate-400: #94A3B8;
    --aiq-slate-300: #CBD5E1;
    --aiq-slate-200: #E2E8F0;
    --aiq-slate-100: #F1F5F9;
    --aiq-slate-50: #F8FAFC;

    /* Semantic */
    --aiq-text: #1E293B;
    --aiq-text-secondary: #475569;
    --aiq-text-muted: #64748B;
    --aiq-border: #E2E8F0;
    --aiq-border-strong: #CBD5E1;
    --aiq-bg: #F8FAFC;
    --aiq-white: #FFFFFF;

    /* Status */
    --aiq-success: #059669;
    --aiq-success-subtle: #D1FAE5;
    --aiq-danger: #DC2626;
    --aiq-danger-subtle: #FEE2E2;
    --aiq-warning: #D97706;
    --aiq-warning-subtle: #FEF3C7;
    --aiq-info: #0284C7;
    --aiq-info-subtle: #E0F2FE;

    /* Elevation shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
    --shadow-orange: 0 4px 14px rgba(255, 107, 61, 0.2);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================================
   BASE
   ================================================================ */

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
    background: var(--aiq-bg);
    color: var(--aiq-text);
    padding-top: 64px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--aiq-slate-900);
    font-weight: 700;
    letter-spacing: -0.01em;
}

h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }

p { line-height: 1.6; }

/* ================================================================
   NAVBAR
   ================================================================ */

.navbar-aiqbee {
    background: linear-gradient(180deg, var(--aiq-darker) 0%, var(--aiq-dark) 100%) !important;
    border-bottom: 2px solid var(--aiq-primary);
    padding: 0.5rem 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.navbar-aiqbee .navbar-brand {
    padding: 0;
    display: flex;
    align-items: center;
}

.navbar-aiqbee .navbar-brand img {
    height: 32px;
}

/* Brand "Hive" wordmark — shared base */
.brand-hive,
.brand-hive-hero,
.brand-hive-light {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--aiq-primary);
    text-transform: uppercase;
    line-height: 1;
}

.brand-hive {
    font-size: 28px;
    margin-left: 8px;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.brand-hive-hero {
    font-size: 48px;
    letter-spacing: 0.12em;
}

.brand-hive-light {
    font-size: 35px;
    letter-spacing: 0.11em;
}

.navbar-aiqbee .nav-link {
    color: var(--aiq-slate-400) !important;
    font-size: 13.5px;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.navbar-aiqbee .nav-link:hover {
    color: #F1F5F9 !important;
    background: rgba(255, 107, 61, 0.12);
}

.navbar-aiqbee .nav-link.active {
    color: var(--aiq-white) !important;
    background: var(--aiq-primary);
    font-weight: 600;
}

/* User name in navbar */
.navbar-aiqbee .text-light {
    color: var(--aiq-slate-300) !important;
    font-size: 13.5px;
}

/* ================================================================
   BUTTONS
   ================================================================ */

.btn {
    font-weight: 600;
    border-radius: 6px;
    font-size: 13.5px;
    transition: all var(--transition-fast);
    letter-spacing: 0.01em;
}

.btn-primary,
.btn-aiqbee {
    background: var(--aiq-primary) !important;
    border-color: var(--aiq-primary) !important;
    color: #fff !important;
    box-shadow: var(--shadow-xs);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-aiqbee:hover,
.btn-aiqbee:focus {
    background: var(--aiq-primary-dark) !important;
    border-color: var(--aiq-primary-dark) !important;
    box-shadow: var(--shadow-orange);
    transform: translateY(-1px);
}

.btn-primary:active,
.btn-aiqbee:active {
    background: #C74E23 !important;
    border-color: #C74E23 !important;
    transform: none;
    box-shadow: none;
}

.btn-outline-primary {
    color: var(--aiq-primary) !important;
    border-color: var(--aiq-primary) !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: var(--aiq-primary) !important;
    color: #fff !important;
    box-shadow: var(--shadow-orange);
    transform: translateY(-1px);
}

.btn-outline-secondary {
    color: var(--aiq-slate-600);
    border-color: var(--aiq-border-strong);
    background: var(--aiq-white);
}

.btn-outline-secondary:hover {
    background: var(--aiq-slate-100);
    color: var(--aiq-slate-700);
    border-color: var(--aiq-slate-400);
}

.btn-outline-danger {
    color: var(--aiq-danger);
    border-color: var(--aiq-danger);
}

.btn-outline-danger:hover {
    background: var(--aiq-danger);
    color: #fff;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.2);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--aiq-success) !important;
    border-color: var(--aiq-success) !important;
}

.btn-success:hover {
    background: var(--aiq-teal-dark) !important;
    border-color: var(--aiq-teal-dark) !important;
}

.btn-warning {
    background: var(--aiq-amber) !important;
    border-color: var(--aiq-amber) !important;
    color: #fff !important;
}

/* Small buttons — tighter for table rows */
.btn-sm {
    padding: 0.25rem 0.625rem;
    font-size: 12.5px;
}

/* ================================================================
   CARDS
   ================================================================ */

.card {
    border: 1px solid var(--aiq-border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    background: var(--aiq-white);
    transition: box-shadow var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    font-weight: 600;
    font-size: 14px;
    color: var(--aiq-slate-700);
    background: var(--aiq-slate-50);
    border-bottom: 1px solid var(--aiq-border);
    padding: 0.75rem 1.25rem;
}

.card-header.bg-primary,
.card-header-aiqbee {
    background: linear-gradient(135deg, var(--aiq-primary) 0%, var(--aiq-primary-dark) 100%) !important;
    border-color: var(--aiq-primary-dark) !important;
    color: #fff;
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-weight: 600;
    color: var(--aiq-slate-900);
}

.card-text.text-muted {
    color: var(--aiq-text-secondary) !important;
    font-size: 13.5px;
}

/* Brain cards on user dashboard */
.row > .col-md-4 > .card {
    border-left: 3px solid var(--aiq-primary);
}

.row > .col-md-4 > .card .card-title {
    font-size: 1.1rem;
}

/* ================================================================
   STAT CARDS (Admin Dashboard)
   ================================================================ */

.stat-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.stat-card .card-body {
    padding: 1.25rem 1.5rem;
    position: relative;
    z-index: 1;
}

.stat-card .card-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.stat-card .display-6 {
    font-weight: 800;
    font-size: 2.25rem;
    letter-spacing: -0.02em;
}

/* Individual stat card colors with gradients */
.stat-card-users {
    background: linear-gradient(135deg, #FF6B3D 0%, #E05A2B 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 107, 61, 0.3);
}

.stat-card-brains {
    background: linear-gradient(135deg, #E05A2B 0%, #C74E23 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(224, 90, 43, 0.3);
}

.stat-card-neurons {
    background: linear-gradient(135deg, #0D9488 0%, #0A7A70 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.stat-card-templates {
    background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

/* Decorative circle on stat cards */
.stat-card::after {
    content: "";
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

/* Brain detail stat row */
.card .card-body.text-center {
    font-size: 14px;
    color: var(--aiq-text-secondary);
}

.card .card-body.text-center strong {
    color: var(--aiq-primary);
    font-size: 1.5rem;
    display: block;
    margin-bottom: 2px;
}

/* ================================================================
   ALERTS
   ================================================================ */

.alert {
    border-radius: 8px;
    border-width: 1px;
    font-size: 14px;
}

.alert-success {
    background: var(--aiq-success-subtle);
    border-color: #A7F3D0;
    color: #065F46;
}

.alert-danger {
    background: var(--aiq-danger-subtle);
    border-color: #FECACA;
    color: #991B1B;
}

.alert-warning {
    background: var(--aiq-warning-subtle);
    border-color: #FDE68A;
    color: #92400E;
}

.alert-info {
    background: var(--aiq-info-subtle);
    border-color: #BAE6FD;
    color: #0C4A6E;
}

/* ================================================================
   BADGES
   ================================================================ */

.badge {
    font-weight: 600;
    font-size: 11.5px;
    padding: 0.35em 0.65em;
    border-radius: 5px;
    letter-spacing: 0.02em;
}

.badge.bg-primary {
    background: var(--aiq-primary) !important;
}

.badge.bg-success {
    background: var(--aiq-success) !important;
}

.badge.bg-danger {
    background: var(--aiq-danger) !important;
}

.badge.bg-info {
    background: var(--aiq-info) !important;
    color: #fff !important;
}

.badge.bg-secondary {
    background: var(--aiq-slate-500) !important;
}

.badge.bg-warning {
    background: var(--aiq-amber) !important;
    color: #fff !important;
}

/* ================================================================
   TABLES
   ================================================================ */

.table {
    font-size: 13.5px;
    color: var(--aiq-text);
}

.table > :not(caption) > * > * {
    padding: 0.75rem 1rem;
}

.table th {
    font-weight: 700;
    color: var(--aiq-slate-600);
    text-transform: uppercase;
    font-size: 11.5px;
    letter-spacing: 0.06em;
    border-bottom-width: 2px;
    border-bottom-color: var(--aiq-border-strong);
    background: var(--aiq-slate-50);
}

.table td {
    border-color: var(--aiq-border);
    vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: var(--aiq-slate-50);
}

.table > tbody > tr:hover > * {
    background-color: var(--aiq-primary-subtle) !important;
}

/* ================================================================
   FORMS
   ================================================================ */

.form-control,
.form-select {
    border-radius: 6px;
    border-color: var(--aiq-border-strong);
    font-size: 14px;
    padding: 0.5rem 0.75rem;
    color: var(--aiq-text);
    background: var(--aiq-white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--aiq-primary);
    box-shadow: 0 0 0 3px var(--aiq-primary-glow);
}

.form-control::placeholder {
    color: var(--aiq-slate-400);
}

.form-label {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--aiq-slate-700);
    margin-bottom: 0.375rem;
}

.form-text {
    font-size: 12px;
    color: var(--aiq-text-muted);
}

.form-check-input:checked {
    background-color: var(--aiq-primary);
    border-color: var(--aiq-primary);
}

.form-check-label {
    font-size: 14px;
    color: var(--aiq-text-secondary);
}

/* ================================================================
   LINKS
   ================================================================ */

a {
    color: var(--aiq-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--aiq-primary-dark);
    text-decoration: underline;
}

/* ================================================================
   NAV TABS (Brain Detail)
   ================================================================ */

.nav-tabs {
    border-bottom: 2px solid var(--aiq-border);
}

.nav-tabs .nav-link {
    color: var(--aiq-text-muted);
    font-weight: 600;
    font-size: 14px;
    padding: 0.625rem 1.25rem;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    border-radius: 0;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.nav-tabs .nav-link:hover {
    color: var(--aiq-primary);
    border-bottom-color: var(--aiq-primary-light);
    background: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--aiq-primary) !important;
    border-bottom-color: var(--aiq-primary) !important;
    background: transparent;
    font-weight: 700;
}

/* ================================================================
   BREADCRUMBS
   ================================================================ */

.breadcrumb {
    font-size: 13.5px;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: var(--aiq-primary);
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--aiq-text-secondary);
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--aiq-slate-400);
}

/* ================================================================
   MODALS
   ================================================================ */

.modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    background: var(--aiq-slate-50);
    border-bottom: 1px solid var(--aiq-border);
    padding: 1rem 1.5rem;
}

.modal-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--aiq-slate-900);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--aiq-border);
    padding: 0.75rem 1.5rem;
    background: var(--aiq-slate-50);
}

/* ================================================================
   MCP CONNECTION CARD
   ================================================================ */

#mcpUrl {
    font-size: 13px;
    background: var(--aiq-slate-900);
    color: #10B981;
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
    display: inline-block;
    font-family: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', Consolas, monospace;
    letter-spacing: 0.01em;
}

/* ================================================================
   SETUP / LOGIN PAGES
   ================================================================ */

.setup-card {
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.setup-card .card-header {
    background: linear-gradient(135deg, var(--aiq-primary) 0%, var(--aiq-primary-dark) 100%) !important;
    padding: 1.25rem 1.5rem;
    border: none;
}

.setup-card .card-header h4 {
    font-size: 20px;
    font-weight: 700;
}

.setup-card .card-body {
    padding: 1.5rem;
}

.setup-section-title {
    color: var(--aiq-slate-700);
    font-size: 16px;
    font-weight: 700;
    border-bottom: 2px solid var(--aiq-primary-subtle);
    padding-bottom: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* Honeycomb background — CSS-only hexagonal pattern for Hive branding */
.honeycomb-bg {
    background: linear-gradient(160deg, #F8FAFC 0%, #F1F0EE 40%, #F5F0EB 100%);
    position: relative;
}

.honeycomb-bg::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.12;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66Z' fill='none' stroke='%23C4A882' stroke-width='1'/%3E%3Cpath d='M28 100L0 84L0 50L28 34L56 50L56 84L28 100Z' fill='none' stroke='%23C4A882' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 56px 84px;
    pointer-events: none;
}

.honeycomb-bg > * {
    position: relative;
    z-index: 1;
}

/* Login card — premium centered card with top accent */
.login-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    border-top: 3px solid var(--aiq-primary);
}

.login-card .card-body {
    padding: 2.5rem 2.5rem 2rem;
}

.login-card h5 {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.login-card .btn {
    padding: 0.6rem 1rem;
    font-size: 14px;
}

.login-card hr {
    border-color: var(--aiq-border);
    margin: 1.25rem 0;
}

/* ================================================================
   CONTENT AREA
   ================================================================ */

.content {
    padding: 28px 0;
}

/* Page title row */
.d-flex.justify-content-between.align-items-center h1 {
    margin-bottom: 0;
}

/* ================================================================
   SCROLLBAR
   ================================================================ */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--aiq-slate-300);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--aiq-slate-400);
}

/* ================================================================
   ENTRA INSTRUCTIONS
   ================================================================ */

.entra-instructions {
    background: var(--aiq-primary-subtle);
    border: 1px solid #FFD6C7;
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.entra-instructions ol {
    padding-left: 1.25rem;
}

.entra-instructions li {
    margin-bottom: 0.35rem;
    font-size: 13px;
    color: var(--aiq-text-secondary);
}

.entra-sub-steps {
    list-style: disc;
    padding-left: 1rem;
}

/* ================================================================
   CODE
   ================================================================ */

/* Inline code renders as a tinted chip. */
code {
    color: var(--aiq-primary-deep);
    background: var(--aiq-primary-subtle);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', Consolas, monospace;
}

/* Neutral code-block surface. Templates that want a different one override the
   background (admin pages use .bg-light, the help pages use a dark block); this
   keeps a bare <pre> reading as code rather than as stray monospace text. */
pre {
    background: var(--aiq-slate-50);
    color: var(--aiq-text);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    overflow-x: auto;
}

/* <code> inside a <pre> is a block of code, not an inline token. Without this
   reset the chip styling above paints a cream box behind every wrapped line
   fragment and forces the chip's colour to fight whatever palette the block
   sets — on the dark help-page code blocks that left light grey text on cream,
   effectively unreadable. Only the monospace family should carry over. */
pre code {
    color: inherit;
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

/* ================================================================
   BOOTSTRAP "PRIMARY" — REMAP TO THE BRAND
   ================================================================ */

/* Bootstrap's --bs-primary is its own blue, which reads as a foreign brand on
   an orange site. Informational callouts take the palette's teal accent rather
   than the brand orange, so a recommendation is not mistaken for a warning;
   the pairing below is 4.7:1, above the AA floor for body text. */
.alert-primary {
    --bs-alert-color: var(--aiq-teal-dark);
    --bs-alert-bg: var(--aiq-teal-subtle);
    --bs-alert-border-color: #B8E6E1;
    --bs-alert-link-color: var(--aiq-teal-dark);
}

/* Bootstrap's colour utilities carry !important, so the override must too.
   This is a general-purpose utility, so it takes the AA-safe tone rather than
   --aiq-primary-dark: the latter is only 3.7:1 on white, which is fine for the
   large card icons that use it today but would fail the moment someone applies
   the utility to body text. */
.text-primary {
    color: var(--aiq-primary-deep) !important;
}

/* ================================================================
   UTILITY OVERRIDES
   ================================================================ */

.text-muted {
    color: var(--aiq-text-muted) !important;
}

.border {
    border-color: var(--aiq-border) !important;
}

/* Ensure small text is readable */
small, .small {
    color: var(--aiq-text-secondary);
}

/* Toggle button for MCP editing on admin brains page */
.btn-success.btn-sm,
.btn-outline-secondary.btn-sm {
    min-width: 72px;
}

/* ================================================================
   BRAIN CARDS — PREMIUM HOVER
   ================================================================ */

.row > .col-md-4 > .card {
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.row > .col-md-4 > .card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* ================================================================
   EMPTY STATES
   ================================================================ */

.text-muted.text-center {
    padding: 2rem 1rem;
}

/* ================================================================
   LANDING PAGE — hero tagline
   ================================================================ */

.honeycomb-bg p.text-muted {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.01em;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.honeycomb-bg .btn-lg {
    padding: 0.65rem 1.75rem;
    font-size: 15px;
    border-radius: 8px;
}

/* ================================================================
   SELECTION / FOCUS RING
   ================================================================ */

::selection {
    background: rgba(255, 107, 61, 0.2);
    color: var(--aiq-slate-900);
}

/* ================================================================
   PRINT STYLES
   ================================================================ */

@media print {
    .navbar-aiqbee,
    .btn,
    .modal { display: none !important; }

    body { padding-top: 0; background: #fff; }
}

/* ================================================================
   PRICING PAGE
   ================================================================ */

.pricing-hero {
    padding: 2rem 0 1rem;
}

.pricing-hero-title {
    /* Solid fallback colour for browsers that don't fully support
       background-clip: text — otherwise color:transparent below would
       make the title disappear entirely. The @supports block re-applies
       transparent clipping where it actually works. */
    color: var(--aiq-primary);
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--aiq-primary) 0%, var(--aiq-amber) 100%);
    background-clip: text;
    max-width: 820px;
    margin: 0 auto 1rem;
    line-height: 1.2;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .pricing-hero-title {
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }
}

.pricing-hero-sub {
    font-size: 17px;
    color: var(--aiq-text-secondary);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}

.pricing-tiers {
    margin-bottom: 3rem;
}

.pricing-card {
    position: relative;
    border: 1px solid var(--aiq-border);
    border-radius: 12px;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.pricing-card-popular {
    border-color: var(--aiq-primary);
    border-width: 2px;
    box-shadow: var(--shadow-orange);
}

.pricing-card-popular:hover {
    box-shadow: 0 12px 32px rgba(255, 107, 61, 0.3);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--aiq-primary) 0%, var(--aiq-primary-dark) 100%);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    box-shadow: var(--shadow-orange);
    white-space: nowrap;
}

.pricing-tier-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.pricing-prices {
    border-top: 1px solid var(--aiq-border);
    border-bottom: 1px solid var(--aiq-border);
    padding: 0.75rem 0;
}

.pricing-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--aiq-slate-900);
    letter-spacing: -0.02em;
}

.pricing-cadence {
    font-size: 14px;
    color: var(--aiq-text-secondary);
    margin-left: 0.25rem;
}

.pricing-includes {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.pricing-includes li {
    padding: 0.35rem 0;
    color: var(--aiq-text-secondary);
    font-size: 14px;
    border-bottom: 1px dashed var(--aiq-border);
}

.pricing-includes li:last-child {
    border-bottom: none;
}

.pricing-includes li strong {
    color: var(--aiq-slate-900);
    margin-right: 0.25rem;
}

.pricing-section {
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.pricing-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--aiq-slate-900);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--aiq-primary-subtle);
}

.pricing-matrix th:first-child,
.pricing-matrix td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--aiq-text-secondary);
}

.pricing-matrix th:not(:first-child) {
    color: var(--aiq-slate-900);
    font-weight: 700;
}

.pricing-check {
    display: inline-block;
    color: var(--aiq-success);
    font-size: 1.1rem;
    font-weight: 700;
}

.pricing-dash {
    color: var(--aiq-slate-400);
    font-weight: 700;
}

.pricing-support-card {
    border-left: 3px solid var(--aiq-primary);
}

.pricing-support-card .card-title {
    color: var(--aiq-primary-dark);
    margin-bottom: 0.75rem;
}

.pricing-support-card ul {
    padding-left: 1.1rem;
    color: var(--aiq-text-secondary);
}

.pricing-support-card ul li {
    margin-bottom: 0.35rem;
}

.pricing-addons th,
.pricing-addons td {
    vertical-align: middle;
}

.pricing-base-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.5rem 1.5rem;
}

.pricing-base-features li {
    color: var(--aiq-text-secondary);
    padding: 0.4rem 0 0.4rem 1.6rem;
    position: relative;
}

.pricing-base-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.4rem;
    color: var(--aiq-primary);
    font-weight: 700;
}

.pricing-callout {
    background: linear-gradient(135deg, var(--aiq-primary-subtle) 0%, var(--aiq-amber-subtle) 100%);
    border: 1px solid var(--aiq-primary-light);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
}

.pricing-callout .pricing-section-title {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0.75rem;
}

.pricing-callout p {
    color: var(--aiq-slate-700);
    margin-bottom: 0.75rem;
}

.pricing-callout p:last-child {
    margin-bottom: 0;
}

.pricing-faq .accordion-item {
    border: 1px solid var(--aiq-border);
    border-radius: 8px !important;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.pricing-faq .accordion-button {
    font-weight: 600;
    color: var(--aiq-slate-900);
    background: var(--aiq-white);
}

.pricing-faq .accordion-button:not(.collapsed) {
    color: var(--aiq-primary-dark);
    background: var(--aiq-primary-subtle);
    box-shadow: none;
}

.pricing-faq .accordion-button:focus {
    box-shadow: 0 0 0 3px var(--aiq-primary-glow);
    border-color: transparent;
}

.pricing-faq .accordion-body {
    color: var(--aiq-text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .pricing-hero-title {
        font-size: 1.75rem;
    }

    .pricing-amount {
        font-size: 1.75rem;
    }

    .pricing-card-popular {
        margin-top: 1rem; /* room for the badge above */
    }
}
