/*!
Theme Name: orpixelSaaS 2.3.3 (Gold Edition)
Theme URI: http://orpixel.app/
Description: Refonte UX/UI Mobile First - Style Apple Consumer
Version: 2.3.3
*/

/* =================================================================
   1. VARIABLES & RESET (APPLE SYSTEM)
   ================================================================= */
:root {
    /* Palette Apple Consumer */
    --bg-body: #F5F5F7;
    --bg-card: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.85);

    /* Typographie */
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --text-muted: #A1A1A6;

    /* Branding Orpixel (Gold Focus) */
    --brand-gold: #C5A005;
    /* Or foncé pour lisibilité texte/icônes */
    --brand-gold-bg: #FFF5D1;
    /* Fond pastel pour les badges/boutons */
    --brand-accent: #0071E3;
    /* Bleu Apple standard (liens classiques) */
    --brand-black: #000000;
    --brand-success: #34C759;
    /* Vert Apple */
    --brand-danger: #FF3B30;
    /* Rouge Apple */

    /* UI Dimensions */
    --radius-l: 24px;
    --radius-m: 16px;
    --radius-s: 12px;
    --nav-height: 60px;
    --bottom-nav-height: 80px;
    /* Hauteur barre mobile */

    /* Ombres (Douces et diffuses) */
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);

    /* Font */
    --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Correction Barre Admin WP */
body.admin-bar .site-header {
    top: 32px;
}

body.admin-bar .tool-header-mobile {
    top: 92px;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-stack);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    padding-bottom: var(--bottom-nav-height);
    /* Espace pour la nav mobile */
}

/* Liens & Listes */
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =================================================================
   2. TYPOGRAPHIE
   ================================================================= */
h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.08;
    font-weight: 700;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

.text-center {
    text-align: center;
}

.section-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-gold);
    margin-bottom: 1rem;
    display: block;
}

/* =================================================================
   3. COMPONENTS UI (Cartes & Boutons)
   ================================================================= */
.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Bento Grid System */
.bento-grid,
.landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-l);
    padding: 32px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.card:hover {
    transform: translateY(-4px) scale(1.005);
    box-shadow: var(--shadow-hover);
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 980px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    gap: 8px;
}

.btn-primary {
    background: var(--brand-black);
    color: white;
}

.btn-primary:hover {
    background: #333;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background: transparent;
    color: var(--brand-black);
    border: 1px solid #D2D2D7;
}

.btn-outline:hover {
    border-color: var(--brand-black);
    background: rgba(0, 0, 0, 0.03);
}

.btn-gold {
    background: var(--brand-gold-bg);
    color: #8E6F00;
}

.btn-gold:hover {
    background: #FFE69C;
}

/* =================================================================
   4. NAVIGATION (HEADER & BOTTOM BAR)
   ================================================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.nav-desktop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links-desktop {
    display: flex;
    gap: 32px;
}

.nav-links-desktop a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-links-desktop a:hover {
    color: var(--text-primary);
}

/* Unified Bottom Navigation (Mobile Only) */
.mobile-bottom-nav {
    display: none;
    /* Active via Media Query en bas */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 2000;
    padding-bottom: env(safe-area-inset-bottom);
    justify-content: space-around;
    align-items: center;
}

.nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    gap: 6px;
    color: #999999;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-tab svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.nav-tab span {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* État Actif : Or */
.nav-tab.active {
    color: var(--brand-gold);
}

.nav-tab.active svg {
    stroke: var(--brand-gold);
    fill: rgba(197, 160, 5, 0.1);
}

/* Bouton Central (FAB) */
.nav-tab-main {
    position: relative;
    top: -15px;
}

.nav-tab-main .circle {
    width: 56px;
    height: 56px;
    background: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s;
    z-index: 9999;
}

.nav-tab-main:active .circle {
    transform: scale(0.95);
}

/* =================================================================
   5. STYLES SPÉCIFIQUES APP (ZONE 2) - DASHBOARD & TOOLS
   ================================================================= */

/* Reset App Body spécifique */
body.app-mode {
    background-color: var(--bg-body);
}

/* Container Dashboard */
.app-page-container {
    padding: 20px 20px 40px;
    max-width: 800px;
    margin: 0 auto;
}

/* Header Utilisateur (Dashboard) */
.app-user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    margin-top: 10px;
}

.app-welcome h1 {
    font-size: 1.8rem;
    margin: 0;
}

.app-welcome p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Widget Crédits (Pixel Pill) */
.wallet-mini-card {
    background: var(--bg-card);
    border-radius: 50px;
    padding: 6px 6px 6px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.wallet-balance {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wallet-balance svg {
    width: 16px;
    height: 16px;
    color: var(--brand-gold);
}

.btn-add-credits {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--text-primary);
    color: var(--brand-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    transition: transform 0.2s;
}

.btn-add-credits:active {
    transform: scale(0.9);
}

/* Smart adjustment for long numbers on mobile */
/* Smart adjustment for long numbers on mobile */
@media (max-width: 480px) {
    .wallet-mini-card.wallet-long-number {
        /* More space for digits */
        padding-left: 18px;
        padding-right: 8px;
        /* Prevent shrinking when title is long */
        flex-shrink: 0;
    }

    /* Reset font size to normal */
    .wallet-mini-card.wallet-long-number .wallet-balance {
        font-size: 0.95rem;
    }

    .wallet-mini-card.wallet-long-number .wallet-balance svg {
        width: 16px;
        height: 16px;
    }
}

/* Statistiques (Bubbles) */
.app-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.stat-bubble {
    background: var(--bg-card);
    border-radius: var(--radius-m);
    padding: 16px 10px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.02);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-val {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Grid des Outils (Look App Icon) */
.app-section-title {
    margin: 30px 0 16px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.app-tool-card {
    background: var(--bg-card);
    border-radius: var(--radius-l);
    padding: 20px;
    text-decoration: none;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.02);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-tool-card:active {
    transform: scale(0.97);
}

.at-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.at-content h4 {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-primary);
}

.at-cost {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: #F2F2F7;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 4px;
}

/* Listes (Projets & History) */
.app-list-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-list-item {
    background: var(--bg-card);
    border-radius: var(--radius-m);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.ali-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #F2F2F7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.ali-content {
    flex: 1;
}

.ali-content h4 {
    font-size: 0.95rem;
    margin: 0;
    font-weight: 600;
}

.ali-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 2px 0 0;
}

.ali-action {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Badge Nouveau */
.at-badge.new {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--brand-success);
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

/* =================================================================
   6. RESPONSIVE UTILITIES
   ================================================================= */
@media (max-width: 768px) {

    .nav-links-desktop,
    .header-cta {
        display: none;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    .site-header {
        height: 50px;
        justify-content: center;
    }

    .site-header .brand-logo {
        font-size: 1.1rem;
    }

    /* Layout Mobile */
    .app-grid-2-col {
        gap: 12px;
    }

    .card {
        padding: 24px;
    }

    h1 {
        font-size: 2.2rem;
    }

    /* On force 1 colonne sur les petites grilles Landing */
    .landing-grid {
        grid-template-columns: 1fr;
    }

    .grid-span-2 {
        grid-column: span 1;
    }
}



/* =================================================================
   7. NOUVEAU: PARCOURS GUIDÉS (WORKFLOWS)
   ================================================================= */

/* Container de défilement pour les parcours */
/* Note: On réutilise horizontal-scroll-container, mais on assure l'alignement */
.horizontal-scroll-container {
    padding-bottom: 20px;
    /* Espace pour l'ombre */
}

.workflow-card {
    min-width: 280px;
    /* Largeur confortable sur mobile */
    padding: 20px;
    border-radius: 22px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    height: 150px;
    /* Hauteur fixe pour uniformité */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.workflow-card:active {
    transform: scale(0.96);
}

/* Icône décorative en arrière plan */
.wf-bg-icon {
    position: absolute;
    right: -15px;
    bottom: -15px;
    opacity: 0.15;
    transform: rotate(-10deg);
    width: 90px;
    height: 90px;
    pointer-events: none;
}

/* Zone des étapes (en bas de carte) */
.wf-steps {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

/* La pilule pour chaque étape */
.wf-step-pill {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* La petite flèche entre les étapes */
.wf-arrow {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    flex-shrink: 0;
}




/* =================================================================
   8. CREATION HUB (OVERLAY STYLE)
   ================================================================= */

.creation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 5000;
    /* Au-dessus de tout */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.creation-overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay-content {
    width: 100%;
    height: 90%;
    /* Prend presque tout l'écran */
    background: white;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    padding: 30px 24px;
    overflow-y: auto;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.creation-overlay.active .overlay-content {
    transform: translateY(0);
}

/* Bouton Fermer */
.btn-close-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #F2F2F7;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
}

.overlay-section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 600;
}

/* A. Grille Outils Rapides */
.quick-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.qt-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
}

.qt-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.2s;
}

.qt-item:active .qt-icon {
    transform: scale(0.9);
}

.qt-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* B. Liste Parcours Guidés (Row Style) */
.workflows-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wf-row-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 20px;
    background: #F9FAFB;
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-decoration: none;
    transition: background 0.2s;
}

.wf-row-item:active {
    background: #F2F2F7;
}

.wf-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    flex-shrink: 0;
}

.wf-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wf-info strong {
    font-size: 1rem;
    color: var(--text-primary);
}

.wf-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}




/* =================================================================
   9. WORKFLOW LIVE WIDGET (DRAGGABLE & SMART DOCKING)
   ================================================================= */

.workflow-widget {
    position: fixed;
    z-index: 4000;
    /* Position par défaut (centré bas) */
    left: 50%;
    bottom: 100px;
    transform: translateX(-50%);

    width: 90%;
    max-width: 450px;
    background: #1D1D1F;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: white;
    overflow: hidden;

    /* Transitions fluides pour le "Snap" */
    transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
        height 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
        border-radius 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        /* Effet rebond */
        top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    touch-action: none;
    /* Indispensable pour le drag sur mobile */
}

/* État : En cours de déplacement (On retire les transitions pour la réactivité immédiate) */
.workflow-widget.is-dragging {
    transition: none;
    opacity: 0.9;
    transform: translateX(-50%) scale(1.02);
    /* Petit effet de "lift" */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* État : MINIMISÉ (CERCLE) */
.workflow-widget.minimized {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    /* Cercle parfait */

    /* En mode cercle, on n'est plus centré, on suit la position X/Y */
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenu Interne */
.ww-progress-bar {
    height: 4px;
    background: var(--brand-success);
    transition: width 0.3s ease;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.ww-content {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    transition: opacity 0.2s;
}

/* Masquer le contenu normal quand minimisé */
.workflow-widget.minimized .ww-content,
.workflow-widget.minimized .ww-progress-bar {
    display: none;
}

/* Vue Cercle (Visible uniquement si minimisé) */
.ww-collapsed-view {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    background: #1D1D1F;
    border-radius: 50%;
    border: 2px solid var(--brand-success);
    /* Anneau de progression visuel */
    cursor: pointer;
}

.workflow-widget.minimized .ww-collapsed-view {
    display: flex;
}

/* Typo & Boutons */
.ww-info {
    display: flex;
    flex-direction: column;
    pointer-events: none;
    /* Le clic traverse pour le drag */
}

.ww-title {
    font-size: 0.65rem;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.ww-step {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin-top: 2px;
}

.ww-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ww-btn-next {
    background: white;
    color: black;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.ww-btn-icon {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =================================================================
   8. HERO SECTION (FROM FRONT-PAGE)
   ================================================================= */
:root {
    --gold-gradient: linear-gradient(135deg, #F3D686 0%, #BF953F 100%);
}

.hero-section {
    padding: 120px 0 60px;
    text-align: center;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.5;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

/* Bento Grid */
.landing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 24px;
    margin-bottom: 80px;
}

.span-1 {
    grid-column: span 1;
}

.span-2 {
    grid-column: span 2;
}

.span-3 {
    grid-column: span 3;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card h3 {
    font-size: 1.3rem;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.card p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Avatars Stack */
.avatars-stack {
    display: flex;
    margin-bottom: 20px;
}

.avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    margin-left: -12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.avatar-circle:first-child {
    margin-left: 0;
}

/* Agency Card Dark */
.card.agency-dark {
    background: #111;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card.agency-dark h3 {
    color: white;
}

.card.agency-dark p {
    color: #A1A1A6;
}

.agency-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    display: block;
}

/* Hero Visual */
.hero-visual-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.hero-visual-inner {
    background: #FAFAFA;
    border-radius: 16px;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hv-mockup {
    position: absolute;
    width: 60%;
    height: 50%;
    background: white;
    border-radius: 12px;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    padding: 2.5%;
}

.hv-el-1 {
    width: 40%;
    height: 8%;
    background: #E5E5E5;
    border-radius: 4px;
    margin-bottom: 4%;
}

.hv-el-2 {
    width: 80%;
    height: 6%;
    background: #F5F5F7;
    border-radius: 4px;
    margin-bottom: 3%;
}

.hv-el-3 {
    width: 70%;
    height: 6%;
    background: #F5F5F7;
    border-radius: 4px;
}

.hv-badge-gold {
    position: absolute;
    bottom: 15%;
    left: 10%;
    padding: 10px 20px;
    background: #FFF5D1;
    border-radius: 99px;
    color: #8E6F00;
    font-weight: 700;
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    box-shadow: 0 10px 20px rgba(245, 197, 24, 0.15);
}

.hv-badge-blue {
    position: absolute;
    bottom: 65%;
    right: 9%;
    padding: 10px 20px;
    background: #E1F0FF;
    border-radius: 99px;
    color: #0071E3;
    font-weight: 700;
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    box-shadow: 0 10px 20px rgba(0, 113, 227, 0.15);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .hero-section {
        padding: 100px 0 40px;
    }

    .hero-title {
        font-size: 2.5rem;
        padding: 0 10px;
    }

    .hero-actions {
        flex-direction: column;
        padding: 0 30px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .landing-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .span-1,
    .span-2,
    .span-3 {
        width: 100%;
        grid-column: auto;
    }

    .card {
        min-height: auto;
        padding: 24px;
    }
}

/* =================================================================
   9. APP DASHBOARD STYLES (FROM PAGE-APP)
   ================================================================= */
.app-page-container {
    padding-top: 100px !important;
    padding-bottom: 40px;
}

.ios-alert {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
}

/* Horizontal Scroll */
.horizontal-scroll-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 4px 20px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.horizontal-scroll-container::-webkit-scrollbar {
    display: none;
}

/* Coaches */
.coach-avatar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 70px;
    cursor: pointer;
    text-decoration: none;
}

.coach-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid white;
    transition: transform 0.2s;
}

.coach-avatar-item:active .coach-circle {
    transform: scale(0.95);
}

.coach-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Workflow Cards (Small) */
.workflow-card {
    min-width: 280px;
    padding: 20px;
    border-radius: 22px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
    height: 140px;
    border: none;
    text-align: left;
}

.workflow-card:active {
    transform: scale(0.97);
}

.wf-bg-icon {
    position: absolute;
    right: -10px;
    bottom: -10px;
    opacity: 0.2;
    transform: rotate(-15deg);
}

.wf-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.wf-step-pill {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wf-arrow {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

/* Premium Card */
.app-premium-card {
    background: linear-gradient(135deg, #1D1D1F 0%, #434344 100%);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    color: white;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.apc-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.btn-block-gold {
    display: block;
    width: 100%;
    background: var(--brand-gold);
    color: white;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
}

.stat-bubble-history {
    text-decoration: none !important;
    background: #F9FAFB !important;
}

/* =================================================================
   10. FOOTER UTILITIES (FROM FOOTER.PHP)
   ================================================================= */
@media (min-width: 769px) {
    .site-footer {
        display: block !important;
    }
}

/* Creation Overlay */
.creation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.creation-overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay-content {
    width: 100%;
    height: 90%;
    background: white;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    padding: 30px 24px;
    overflow-y: auto;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.creation-overlay.active .overlay-content {
    transform: translateY(0);
}

.btn-close-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #F2F2F7;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
}

.overlay-section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 600;
}

/* Quick Tools Grid */
.quick-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.qt-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
}

.qt-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.2s;
}

.qt-item:active .qt-icon {
    transform: scale(0.9);
}

.qt-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Workflow List (Overlay) */
.workflows-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wf-row-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 20px;
    background: #F9FAFB;
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-decoration: none;
    transition: background 0.2s;
}

.wf-row-item:active {
    background: #F2F2F7;
}

.wf-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    flex-shrink: 0;
}

.wf-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wf-info strong {
    font-size: 1rem;
    color: var(--text-primary);
}

.wf-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Workflow Widget (Draggable) */
.workflow-widget {
    position: fixed;
    z-index: 4000;
    left: 50%;
    bottom: 100px;
    transform: translateX(-50%);
    width: 90%;
    max-width: 450px;
    background: #1D1D1F;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: white;
    overflow: hidden;
    transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
        height 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
        border-radius 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        left 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    touch-action: none;
}

.workflow-widget.is-dragging {
    transition: none;
    opacity: 0.9;
    transform: translateX(-50%) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.workflow-widget.minimized {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ww-progress-bar {
    height: 4px;
    background: var(--brand-success);
    transition: width 0.3s ease;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.ww-content {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    transition: opacity 0.2s;
}

.workflow-widget.minimized .ww-content,
.workflow-widget.minimized .ww-progress-bar {
    display: none;
}

.ww-collapsed-view {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    background: #1D1D1F;
    border-radius: 50%;
    border: 2px solid var(--brand-success);
    cursor: pointer;
}

.workflow-widget.minimized .ww-collapsed-view {
    display: flex;
}

.ww-info {
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.ww-title {
    font-size: 0.65rem;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.ww-step {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin-top: 2px;
}

.ww-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ww-btn-next {
    background: white;
    color: black;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.ww-btn-icon {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ww-btn-icon:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* =================================================================
   11. FUNCTIONAL STYLES (FROM FUNCTIONS.PHP)
   ================================================================= */

/* Login Logo */
#login h1 a,
.login h1 a {
    height: 120px !important;
    width: 120px !important;
    background-size: 120px 120px !important;
    background-repeat: no-repeat;
    padding-bottom: 0px;
    border-radius: 100px;
}

/* Mobile Product Cart Block */
.mobile-cart-block {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    padding: 15px;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 1px solid #eee;
}

.mobile-cart-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-price-container {
    flex: 1;
}

.product-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--text-primary);
    text-align: center;
}

.product-price .amount {
    color: var(--text-primary);
}

.btn-add-to-cart {
    flex: 1;
    max-width: 200px;
    padding: 12px 15px;
    background: var(--brand-black);
    color: var(--brand-gold);
    box-shadow: 0 5px 15px rgba(250, 215, 0, 0.5);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-to-cart:hover:not(:disabled) {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-add-to-cart:disabled {
    background: var(--text-secondary);
    color: white;
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}