/* ============================================================================
   TECHIFY IDENTITY
   The one look shared by the pricing site, the Flutter app and the Techify
   catalog (techify-three.vercel.app): a white page, light-gray tiles, a
   frosted white header, the vivid blue hero, pill buttons and soft status
   pills. Loaded last on every page so it wins over ds.css / app.css /
   pages.css / admin.css.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
    --c-blue: #0071e3;
    --c-blue-hover: #0077ed;
    --c-blue-link: #0066cc;
    --c-blue-soft: #e8f2fd;
    --c-ink: #1d1d1f;
    --c-gray: #6e6e73;
    --c-gray-2: #86868b;
    --c-light: #f5f5f7;
    --c-light-2: #e8e8ed;
    --c-line: #d2d2d7;
    --c-white: #ffffff;
    --c-good: #248a3d;
    --c-good-soft: #e7f5ea;
    --c-warn: #c25e00;
    --c-warn-soft: #fdf0e3;
    --c-bad: #d70015;
    --c-bad-soft: #fde8ea;
    --c-purple: #7c3aed;
    --c-purple-soft: #f1eafd;

    --tp-hero-bg:
        linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.15) 45%, rgba(255, 255, 255, 0) 45.5%),
        radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 30%),
        radial-gradient(circle at 88% 110%, rgba(0, 200, 255, 0.42), rgba(0, 200, 255, 0) 55%),
        linear-gradient(120deg, #2b86ff 0%, #0055d4 50%, #003da1 100%);
    --tp-navy: linear-gradient(135deg, #1c4ca0 0%, #0d2559 100%);
    --tp-card-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
    --tp-max: 1240px;
    --tp-gutter: 24px;
    --tp-header-h: 64px;

    /* Re-point the shared design-system tokens at the Techify palette. */
    --brand-50: #e8f2fd;
    --brand-100: #d6e8fb;
    --brand-200: #b9d7f8;
    --brand-400: #2997ff;
    --brand-500: #0077ed;
    --brand-600: #0071e3;
    --brand-700: #0066cc;
    --brand-800: #0055d4;
    --brand-900: #1d1d1f;
    --accent-500: #0071e3;
    --accent-600: #0066cc;
    --success-50: #e7f5ea;
    --success-500: #248a3d;
    --success-600: #248a3d;
    --danger-50: #fde8ea;
    --danger-500: #d70015;
    --danger-600: #d70015;
    --warning-50: #fdf0e3;
    --warning-500: #c25e00;
    --warning-600: #c25e00;
    --info-50: #e8f2fd;
    --info-500: #0071e3;

    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #f5f5f7;
    --surface-3: #f5f5f7;
    --surface-inset: #f5f5f7;
    --tile: #f5f5f7;
    --text: #1d1d1f;
    --text-2: #6e6e73;
    --text-3: #86868b;
    --border: #e8e8ed;
    --border-strong: #d2d2d7;
    --ring: rgba(0, 113, 227, 0.15);

    --shadow-xs: none;
    --shadow-sm: var(--tp-card-shadow);
    --shadow-md: var(--tp-card-shadow);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);
    --shadow-brand: none;

    --grad-brand: linear-gradient(0deg, #0071e3, #0071e3);
    --grad-brand-vivid: linear-gradient(120deg, #2b86ff 0%, #0055d4 50%, #003da1 100%);
    --grad-accent: var(--grad-brand-vivid);
    --grad-ai: var(--grad-brand-vivid);
    --grad-success: linear-gradient(0deg, #248a3d, #248a3d);
    --grad-danger: linear-gradient(0deg, #d70015, #d70015);

    --r-md: 14px;
    --r-lg: 18px;
    --r-xl: 18px;
    --r-2xl: 28px;

    --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', 'Cairo', system-ui, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', 'Cairo', system-ui, sans-serif;
}

[data-theme="dark"] {
    --c-light: #1c1c1e;
    --c-light-2: #2c2c2e;
    --c-line: #3a3a3c;
    --c-blue-soft: rgba(41, 151, 255, 0.16);
    --c-good-soft: rgba(48, 209, 88, 0.16);
    --c-warn-soft: rgba(255, 159, 10, 0.16);
    --c-bad-soft: rgba(255, 69, 58, 0.16);
    --c-purple-soft: rgba(191, 90, 242, 0.16);
    --c-good: #30d158;
    --c-warn: #ff9f0a;
    --c-bad: #ff453a;
    --c-purple: #bf5af2;
    --c-blue: #2997ff;
    --c-blue-link: #2997ff;
    --bg: #000000;
    --surface: #1c1c1e;
    --surface-2: #2c2c2e;
    --surface-3: #2c2c2e;
    --surface-inset: #111113;
    --tile: #1c1c1e;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #6e6e73;
    --border: #2c2c2e;
    --border-strong: #3a3a3c;
    --tp-card-shadow: none;
}

/* ----------------------------------------------------------------------------
   2. BASE TYPE
   -------------------------------------------------------------------------- */
html,
body {
    background: var(--bg) !important;
    color: var(--text);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    background-image: none !important;
}

h1, h2, h3, h4, h5, h6,
.section-title,
.page-title {
    font-family: var(--font-display);
    font-weight: 600 !important;
    letter-spacing: -0.022em;
    color: var(--text);
}

h1 { letter-spacing: -0.03em; }

a {
    color: var(--c-blue-link);
}

b, strong {
    font-weight: 600;
}

::selection {
    background: rgba(0, 113, 227, 0.2);
}

/* Gradient-clipped titles become plain ink — Techify never paints text. */
.search-title-gradient,
.gradient-text,
.text-gradient,
.hero-ai-word {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
}

/* ----------------------------------------------------------------------------
   3. SHELL — no sidebar; a frosted top bar with the sections as links
   -------------------------------------------------------------------------- */
.app-shell,
.app-shell.nav-expanded {
    display: block;
    grid-template-columns: 1fr;
}

.app-sidebar {
    display: none !important;
}

.app-main {
    grid-column: 1;
}

.main-header,
.app-topbar,
.page-header,
.admin-header {
    position: sticky;
    top: 0;
    z-index: 800;
    min-height: var(--tp-header-h);
    padding: 0 max(var(--tp-gutter), calc((100% - var(--tp-max)) / 2));
    background: rgba(255, 255, 255, 0.82) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: none !important;
}

[data-theme="dark"] .main-header,
[data-theme="dark"] .page-header,
[data-theme="dark"] .admin-header {
    background: rgba(22, 22, 23, 0.8) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.main-header.scrolled {
    box-shadow: none !important;
}

.logo-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 10px;
    background: var(--tp-hero-bg);
    box-shadow: none;
}

.logo-icon svg {
    width: 20px;
    height: 20px;
}

.logo-title,
.topbar-title h1 {
    font-size: 19px !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em;
}

.logo-subtitle,
.topbar-title p {
    font-size: 12px;
    color: var(--text-3);
}

/* Section links in the bar */
.tp-topnav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-inline: auto;
    min-width: 0;
}

.tp-topnav .nav-item {
    width: auto;
    gap: 7px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
}

.tp-topnav .nav-item svg {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
}

.tp-topnav .nav-item span {
    opacity: 1;
}

.tp-topnav .nav-item::before {
    display: none;
}

.tp-topnav .nav-item:hover {
    color: var(--text);
    background: var(--c-light);
}

.tp-topnav .nav-item.active {
    color: var(--c-blue);
    background: var(--c-blue-soft);
    box-shadow: none;
}

.header-controls {
    margin-inline-start: 0;
}

.tp-topnav + .header-controls {
    margin-inline-start: 0;
}

@media (max-width: 1100px) {
    .tp-topnav .nav-item svg {
        display: none;
    }

    .tp-topnav .nav-item {
        padding-inline: 11px;
    }

    .logo-subtitle {
        display: none;
    }
}

@media (max-width: 900px) {
    .tp-topnav {
        display: none;
    }

    .header-controls {
        margin-inline-start: auto !important;
    }
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--text);
}

.icon-btn:hover {
    transform: none;
    background: var(--c-light);
    color: var(--text);
}

#authButton {
    width: auto;
    height: 40px;
    min-height: 40px;
    margin: 0 !important;
    padding: 0 18px !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px !important;
    background: var(--c-blue) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 15px !important;
    font-weight: 500 !important;
}

#authButton:hover {
    background: var(--c-blue-hover) !important;
    transform: none !important;
}

.profile-btn {
    border-radius: 999px;
    border: none;
    background: var(--c-light);
    box-shadow: none;
}

.profile-avatar,
.profile-dropdown-avatar {
    background: var(--tp-hero-bg) !important;
}

.profile-dropdown-menu,
.notification-dropdown {
    border-radius: 18px !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14) !important;
}

.profile-dropdown-item {
    border-radius: 10px;
    font-weight: 500;
}

.profile-dropdown-item:hover {
    background: var(--c-light);
}

/* Content column */
.main-content {
    max-width: var(--tp-max);
    padding: 0 var(--tp-gutter) 96px;
}

/* ----------------------------------------------------------------------------
   4. HERO — .tp-hero, full bleed under the bar
   -------------------------------------------------------------------------- */
.workspace-hero,
.tp-hero {
    position: relative;
    overflow: hidden;
    margin: 0 calc(50% - 50vw) 32px;
    padding: 64px max(var(--tp-gutter), calc(50vw - var(--tp-max) / 2 + var(--tp-gutter))) 64px;
    border-radius: 0;
    background: var(--tp-hero-bg);
    background-color: #0055d4;
    box-shadow: none;
    color: #fff;
    text-align: center;
}

.workspace-hero::before,
.tp-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: rgba(100, 200, 255, 0.3);
    filter: blur(100px);
    pointer-events: none;
    inset-inline-end: auto;
}

.workspace-hero::after {
    display: none;
}

.workspace-hero > *,
.tp-hero > * {
    position: relative;
    z-index: 1;
}

.hero-neural,
.hero-ai-badge {
    display: none !important;
}

.tp-eyebrow,
.workspace-hero .tp-eyebrow {
    max-width: none;
    margin: 0 0 10px;
    font-size: clamp(16px, 1.6vw, 20px);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
}

.workspace-hero h1,
.tp-hero-title {
    max-width: 18ch;
    margin: 0 auto;
    color: #fff !important;
    font-size: clamp(34px, 5.4vw, 64px);
    font-weight: 600 !important;
    line-height: 1.06;
    letter-spacing: -0.035em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.workspace-hero p,
.tp-hero-sub {
    max-width: 44ch;
    margin: 16px auto 0;
    font-size: clamp(17px, 1.8vw, 22px);
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
}

.tp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.tp-hero-figures,
.hero-pills {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    max-width: 920px;
    margin: 32px auto 0;
}

.tp-figure,
.hero-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    text-align: center;
}

.tp-figure-num {
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.tp-figure-label {
    font-size: 15px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 760px) {
    .workspace-hero,
    .tp-hero {
        padding-top: 40px;
        padding-bottom: 40px;
        margin-bottom: 20px;
    }

    .tp-hero-figures,
    .hero-pills {
        grid-template-columns: 1fr 1fr;
    }
}

/* ----------------------------------------------------------------------------
   5. BUTTONS — .tp-btn pills
   -------------------------------------------------------------------------- */
.btn,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-save,
.btn-clear,
.tp-btn {
    min-height: 44px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px !important;
    font-size: 15px;
    font-weight: 500 !important;
    letter-spacing: -0.01em;
    box-shadow: none !important;
    background-image: none !important;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.08s ease;
}

.btn::after,
.btn-primary::after {
    display: none !important;
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-success:hover,
.btn-danger:hover,
.tp-btn:hover {
    transform: none !important;
    box-shadow: none !important;
}

.btn:active:not(:disabled),
.tp-btn:active:not(:disabled) {
    transform: scale(0.97) !important;
}

.btn,
.btn-primary,
.btn-save,
.btn-ai,
.tp-btn-primary,
.premium-search-button {
    background: var(--c-blue) !important;
    color: #fff !important;
    border: 1px solid transparent !important;
}

.btn:hover,
.btn-primary:hover,
.btn-save:hover,
.btn-ai:hover,
.tp-btn-primary:hover,
.premium-search-button:hover {
    background: var(--c-blue-hover) !important;
}

.btn-secondary,
.btn-clear,
.btn-outline,
.tp-btn-secondary {
    background: transparent !important;
    color: var(--c-blue) !important;
    border: 1px solid var(--c-blue) !important;
}

.btn-secondary:hover,
.btn-clear:hover,
.btn-outline:hover,
.tp-btn-secondary:hover {
    background: var(--c-blue) !important;
    color: #fff !important;
}

.tp-btn-light {
    background: #fff !important;
    color: var(--c-blue) !important;
    border: 1px solid transparent !important;
}

.tp-btn-light:hover {
    background: rgba(255, 255, 255, 0.9) !important;
}

.tp-btn-ghost-light {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
}

.tp-btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.14) !important;
}

.btn-success,
.btn-promote {
    background: var(--c-good) !important;
    color: #fff !important;
    border: 1px solid transparent !important;
}

.btn-success:hover,
.btn-promote:hover {
    background: #1f7a35 !important;
}

.btn-danger,
.btn-delete,
.btn-delete-modern {
    background: var(--c-bad-soft) !important;
    color: var(--c-bad) !important;
    border: 1px solid transparent !important;
}

.btn-danger:hover,
.btn-delete:hover,
.btn-delete-modern:hover {
    background: var(--c-bad) !important;
    color: #fff !important;
}

.btn-small,
.btn-sm,
.btn-view-modern,
.btn-edit,
.btn-export,
.btn-suggest {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px !important;
    font-size: 13px;
    font-weight: 500 !important;
    box-shadow: none !important;
    background-image: none !important;
}

.btn-small,
.btn-view-modern,
.btn-edit,
.btn-export,
.btn-suggest {
    background: var(--c-light) !important;
    color: var(--text) !important;
    border: 1px solid transparent !important;
}

.btn-small:hover,
.btn-view-modern:hover,
.btn-edit:hover,
.btn-export:hover,
.btn-suggest:hover {
    background: var(--c-light-2) !important;
    transform: none !important;
}

.btn-lg,
.tp-btn-lg {
    min-height: 56px;
    padding: 0 30px;
    font-size: 17px;
}

.btn:disabled,
.btn-primary:disabled,
.tp-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.btn-ai .btn-ai-spark {
    fill: currentColor;
    width: 18px;
    height: 18px;
}

/* ----------------------------------------------------------------------------
   6. FORMS — .tp-input
   -------------------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="date"],
select,
textarea,
.form-control,
.form-input,
.premium-input,
.sessions-search,
.tp-input {
    border: 1px solid var(--c-line);
    border-radius: 14px;
    background-color: var(--surface);
    color: var(--text);
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus,
.form-control:focus,
.premium-input:focus,
.tp-input:focus {
    outline: none;
    border-color: var(--c-blue) !important;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15) !important;
}

/* Table cells stay compact; only their focus ring follows the identity. */
td input[type="text"],
td input[type="number"] {
    border-radius: 10px;
}

.premium-input {
    min-height: 52px;
    font-size: 17px;
    padding: 0 20px;
}

/* Toggles */
.auto-pricing-slider {
    background: var(--c-line) !important;
}

.auto-pricing-toggle input:checked + .auto-pricing-slider {
    background: #34c759 !important;
}

.pricing-mode {
    background: var(--c-light-2) !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 3px !important;
}

.pricing-mode button {
    border-radius: 999px !important;
    font-weight: 500 !important;
}

.pricing-mode button.active {
    background: var(--surface) !important;
    color: var(--text) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
}

/* ----------------------------------------------------------------------------
   7. TILES — every top-level section is a light-gray .tp-tile
   -------------------------------------------------------------------------- */
.upload-area,
.upload-actions,
.premium-search-container,
.summary,
.grand-total-summary,
.business-info-section,
.sessions-page,
.table-section,
.card,
.content-card,
.feature-card,
.service-card,
.step-card,
.info-card,
.admin-card,
.admin-section,
.tp-tile {
    background: var(--tile) !important;
    background-image: none !important;
    border: none !important;
    border-radius: 18px !important;
    box-shadow: none !important;
}

.upload-actions {
    padding: 16px 20px !important;
}

.sessions-filters {
    background: var(--surface) !important;
    border: none !important;
    border-radius: 18px !important;
    box-shadow: var(--tp-card-shadow) !important;
}

.upload-area {
    padding: 48px 24px;
    border: 2px dashed var(--c-line) !important;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.upload-area::before {
    display: none;
}

.upload-area:hover {
    transform: none;
    border-color: var(--c-blue) !important;
    box-shadow: none !important;
}

.upload-area.dragover {
    border-style: solid !important;
    border-color: var(--c-blue) !important;
    background: var(--c-blue-soft) !important;
    transform: none;
    box-shadow: none !important;
}

.upload-icon {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    color: var(--c-blue);
    background: var(--surface);
}

.upload-area:hover .upload-icon {
    transform: none;
}

.upload-text {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}

.upload-hint {
    font-size: 15px;
    color: var(--text-2);
}

.search-icon-pulse {
    background: var(--c-blue);
    border-radius: 999px;
    box-shadow: none;
}

.search-icon-pulse::after {
    display: none;
}

.search-title-gradient {
    font-size: clamp(22px, 2.6vw, 28px) !important;
    font-weight: 600 !important;
    letter-spacing: -0.025em;
}

/* Cards that sit on a tile are white */
.summary-card,
.stat-card,
.admin-stat-card,
.session-card,
.history-item,
.session-item {
    background: var(--surface) !important;
    background-image: none !important;
    border: none !important;
    border-radius: 18px !important;
    box-shadow: var(--tp-card-shadow) !important;
}

.summary-card::before,
.stat-card::before,
.admin-stat-card::before {
    display: none !important;
}

.summary-card:hover,
.stat-card:hover,
.admin-stat-card:hover {
    transform: none !important;
}

.summary-number,
.stat-number,
.stat-value {
    color: var(--c-blue) !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.summary-label,
.stat-label {
    color: var(--text-2) !important;
    font-weight: 500 !important;
}

.summary-card.highlight {
    background: var(--tp-hero-bg) !important;
    background-color: #0055d4 !important;
}

.summary-card.highlight .summary-number,
.summary-card.highlight .summary-label {
    color: #fff !important;
}

.sessions-hero {
    background: var(--tp-hero-bg) !important;
    background-color: #0055d4 !important;
    border-radius: 18px !important;
    box-shadow: none !important;
    color: #fff;
}

.sessions-hero h2,
.sessions-hero p,
.sessions-hero .session-stat b,
.sessions-hero .session-stat span {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.sessions-hero .session-stat span {
    color: rgba(255, 255, 255, 0.9) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.9) !important;
}

.session-stat {
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 18px !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* ----------------------------------------------------------------------------
   8. TABLES
   -------------------------------------------------------------------------- */
.table-container {
    background: var(--surface) !important;
    border: none !important;
    border-radius: 18px !important;
    box-shadow: var(--tp-card-shadow) !important;
}

.table-container thead th,
table thead th {
    background: var(--c-light) !important;
    background-image: none !important;
    color: var(--text-2) !important;
    font-size: 12px;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    text-transform: none;
    border-bottom: 1px solid var(--border) !important;
}

.table-container tbody td,
table tbody td {
    border-bottom: 1px solid var(--border);
}

.table-container tbody tr:hover td,
table tbody tr:hover td {
    background: rgba(0, 113, 227, 0.04);
}

/* ----------------------------------------------------------------------------
   9. STATUS — .tp-status pills
   -------------------------------------------------------------------------- */
.badge,
.status-badge,
.tp-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 999px !important;
    font-size: 12px;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: none !important;
    background-image: none !important;
    white-space: nowrap;
}

.tp-status,
.badge-info,
.badge-primary,
.status-badge.info {
    background: var(--c-blue-soft) !important;
    color: var(--c-blue) !important;
}

.badge-success,
.status-badge.success,
.status-approved,
.tp-status.is-ready {
    background: var(--c-good-soft) !important;
    color: var(--c-good) !important;
}

.badge-warning,
.status-badge.warning,
.status-pending,
.tp-status.is-progress {
    background: var(--c-warn-soft) !important;
    color: var(--c-warn) !important;
}

.badge-danger,
.badge-error,
.status-badge.danger,
.status-rejected,
.tp-status.is-cancelled {
    background: var(--c-bad-soft) !important;
    color: var(--c-bad) !important;
}

.tp-status.is-done {
    background: var(--c-purple-soft) !important;
    color: var(--c-purple) !important;
}

.alert {
    border-radius: 14px !important;
    border: none !important;
    box-shadow: none !important;
}

.alert-success {
    background: var(--c-good-soft) !important;
    color: var(--c-good) !important;
}

.alert-error,
.alert-danger {
    background: var(--c-bad-soft) !important;
    color: var(--c-bad) !important;
}

/* ----------------------------------------------------------------------------
   10. MODALS & SHEETS
   -------------------------------------------------------------------------- */
.modal-content,
.auth-modal-content,
.modal-dialog,
.modal-box {
    border-radius: 28px !important;
    border: none !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25) !important;
}

.modal,
.modal-overlay {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.modal-header {
    background: transparent !important;
    background-image: none !important;
    color: var(--text) !important;
    border-bottom: 1px solid var(--border) !important;
}

.modal-header h2,
.modal-header h3 {
    color: var(--text) !important;
}

/* ----------------------------------------------------------------------------
   11. MOBILE TAB BAR — frosted, blue when active
   -------------------------------------------------------------------------- */
.mobile-tab-bar {
    background: rgba(255, 255, 255, 0.82) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: none !important;
}

[data-theme="dark"] .mobile-tab-bar {
    background: rgba(22, 22, 23, 0.8) !important;
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

.mobile-tab-item {
    color: var(--text-3);
}

.mobile-tab-label {
    font-weight: 500;
    font-size: 11px;
}

.mobile-tab-item.active {
    color: var(--c-blue);
}

.mobile-tab-item.active .mobile-tab-icon {
    transform: none;
}

/* ----------------------------------------------------------------------------
   12. FOOTER — the light Apple footer
   -------------------------------------------------------------------------- */
.main-footer,
.page-footer,
.site-footer {
    margin-top: 64px;
    padding: 40px 0 28px;
    background: var(--c-light) !important;
    background-image: none !important;
    color: var(--text-2) !important;
    border-top: 1px solid var(--border);
    font-size: 13px;
}

.main-footer h3,
.main-footer h4,
.page-footer h3,
.page-footer h4 {
    color: var(--text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.main-footer a,
.page-footer a {
    color: var(--text-2) !important;
}

.main-footer a:hover,
.page-footer a:hover {
    color: var(--text) !important;
    text-decoration: underline;
}

.main-footer p,
.page-footer p,
.main-footer li,
.page-footer li {
    color: var(--text-2) !important;
}

/* ----------------------------------------------------------------------------
   13. CONTENT PAGES (about, services, how it works, legal, errors)
   -------------------------------------------------------------------------- */
.page-header .header-container {
    max-width: none;
    min-height: var(--tp-header-h);
    padding: 0;
}

.page-header .logo span {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    background: none;
    -webkit-text-fill-color: currentColor;
}

.page-header .logo svg {
    width: 34px;
    height: 34px;
}

.page-header nav a,
.nav-links a {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    background: transparent;
}

.page-header nav a:hover,
.nav-links a:hover {
    color: var(--text);
    background: var(--c-light);
}

.page-header nav a.active,
.nav-links a.active {
    color: var(--c-blue);
    background: var(--c-blue-soft);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 72px var(--tp-gutter) 76px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: var(--tp-hero-bg) !important;
    background-color: #0055d4 !important;
    color: #fff;
    text-align: center;
}

.hero::before {
    content: '' !important;
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: rgba(100, 200, 255, 0.3) !important;
    filter: blur(100px);
    pointer-events: none;
}

.hero::after {
    display: none !important;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-title {
    margin: 0 auto;
    max-width: 18ch;
    color: #fff !important;
    background: none !important;
    -webkit-text-fill-color: #fff !important;
    font-size: clamp(38px, 6vw, 72px) !important;
    font-weight: 600 !important;
    line-height: 1.06;
    letter-spacing: -0.035em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.hero-subtitle {
    max-width: 46ch;
    margin: 16px auto 0 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: clamp(18px, 2vw, 24px) !important;
    line-height: 1.4;
}

.section-title {
    font-size: clamp(26px, 3.2vw, 40px) !important;
    letter-spacing: -0.028em;
    line-height: 1.12;
    color: var(--text) !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
}

.section-subtitle {
    color: var(--text-2) !important;
    font-size: clamp(17px, 1.6vw, 20px);
}

.feature-card,
.service-card,
.step-card,
.info-card,
.content-card {
    padding: 28px !important;
    transition: background-color 0.3s ease;
}

.feature-card:hover,
.service-card:hover,
.step-card:hover,
.info-card:hover {
    transform: none !important;
    background: var(--c-light-2) !important;
}

.feature-icon,
.service-icon,
.step-icon,
.step-number {
    background: var(--c-blue) !important;
    background-image: none !important;
    color: #fff !important;
    border-radius: 999px !important;
    box-shadow: none !important;
}

.cta-section,
.cta {
    background: var(--tp-navy) !important;
    border-radius: 28px !important;
    color: #fff;
    box-shadow: none !important;
}

.cta-section h2,
.cta h2,
.cta-section p,
.cta p {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* ----------------------------------------------------------------------------
   14. DARK THEME tweaks
   -------------------------------------------------------------------------- */
[data-theme="dark"] .upload-icon {
    background: #2c2c2e;
}

[data-theme="dark"] .pricing-mode button.active {
    background: #3a3a3c !important;
}

/* Content after a page hero starts below it with room to breathe. */
.hero + .container,
.hero + section,
.hero + main {
    padding-top: 48px;
}

/* ----------------------------------------------------------------------------
   15. FLOATING ACTIONS — one tidy column on the right
   Bottom → top: the quick-actions button, then the AI pill above it; the
   "Total" jump sits on the same row as the quick-actions button, to its
   left. Every piece shares one right edge and one baseline, and the whole
   column lifts above the tab bar on phones. WhatsApp stays alone on the
   left.
   -------------------------------------------------------------------------- */
:root {
    --float-edge: 24px;
    --float-base: 24px;
    --float-fab: 56px;
    --float-gap: 12px;
}

@media (max-width: 900px) {
    :root {
        --float-edge: 16px;
        --float-base: calc(76px + env(safe-area-inset-bottom, 0px));
        --float-fab: 52px;
        --float-gap: 10px;
    }
}

/* Quick actions — the column is always on the right, in either direction. */
.fab-container {
    bottom: var(--float-base) !important;
    right: var(--float-edge) !important;
    left: auto !important;
    inset-inline-end: auto;
    gap: var(--float-gap);
}

.fab-main {
    width: var(--float-fab) !important;
    height: var(--float-fab) !important;
    background: var(--c-blue) !important;
    background-image: none !important;
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.32), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.fab-main:hover {
    background: var(--c-blue-hover) !important;
    transform: scale(1.05);
}

.fab-container.open .fab-main {
    transform: rotate(135deg);
    background: var(--c-ink) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
}

.fab-icon {
    width: 24px;
    height: 24px;
}

.fab-menu {
    gap: var(--float-gap);
    /* Centre each item's round button over the main button. */
    padding-inline-end: calc((var(--float-fab) - 46px) / 2);
}

.fab-item-button {
    width: 46px !important;
    height: 46px !important;
    background-image: none !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16) !important;
}

.fab-item-button:hover {
    transform: scale(1.06);
}

.fab-item-button.fab-export { background: var(--c-good) !important; }
.fab-item-button.fab-open { background: var(--c-blue) !important; }
.fab-item-button.fab-new { background: var(--c-bad) !important; }

.fab-item-icon {
    width: 20px;
    height: 20px;
}

.fab-label {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .fab-label {
    background: rgba(44, 44, 46, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
}

/* AI pill: right above the quick-actions button, same right edge. When
   there is no quick-actions button it drops to the base line. */
.ai-fab {
    right: var(--float-edge) !important;
    bottom: calc(var(--float-base) + var(--float-fab) + var(--float-gap)) !important;
    height: 44px;
    padding: 0 16px !important;
    gap: 7px;
    z-index: 1410 !important;
    font-size: 15px;
    font-weight: 500 !important;
    color: var(--c-blue) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
    transition: bottom 0.25s ease, opacity 0.2s ease, transform 0.08s ease;
}

.ai-fab:hover {
    background: #fff !important;
}

.ai-fab:active {
    transform: scale(0.97);
}

[data-theme="dark"] .ai-fab {
    color: #2997ff !important;
    background: rgba(44, 44, 46, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.ai-fab.busy {
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.18), 0 6px 20px rgba(0, 0, 0, 0.12) !important;
}

.ai-fab-count {
    background: var(--c-bad);
    font-weight: 600;
}

body:not(:has(.fab-container.visible)) .ai-fab {
    bottom: var(--float-base) !important;
}

/* The open quick-actions menu grows upward over the AI pill: step it aside. */
body:has(.fab-container.open) .ai-fab {
    opacity: 0;
    pointer-events: none;
}

/* "Total": same row as the quick-actions button, to its left. */
.jump-total-btn {
    height: 44px !important;
    bottom: calc(var(--float-base) + (var(--float-fab) - 44px) / 2) !important;
    right: calc(var(--float-edge) + var(--float-fab) + var(--float-gap)) !important;
    inset-inline-end: auto;
    padding: 0 18px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #fff !important;
    background: var(--c-ink) !important;
    background-image: none !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18) !important;
}

[data-theme="dark"] .jump-total-btn {
    color: var(--c-ink) !important;
    background: #f5f5f7 !important;
}

.jump-total-btn:hover {
    transform: none !important;
    background: #000 !important;
}

/* Without the quick-actions button, "Total" takes the corner itself. */
body:not(:has(.fab-container.visible)) .jump-total-btn {
    right: var(--float-edge) !important;
    bottom: var(--float-base) !important;
}

/* …and the AI pill then sits above "Total" instead. */
body:not(:has(.fab-container.visible)):has(.jump-total-btn.visible) .ai-fab {
    bottom: calc(var(--float-base) + 44px + var(--float-gap)) !important;
}

/* WhatsApp: alone in the left corner, level with the right column. */
.whatsapp-float {
    left: var(--float-edge) !important;
    inset-inline-start: auto !important;
    bottom: var(--float-base) !important;
    width: var(--float-fab) !important;
    height: var(--float-fab) !important;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.32) !important;
}

#saveIndicator {
    bottom: var(--float-base) !important;
}
