
:root {
    --kivo-dark: #0f172a;
    --kivo-dark-2: #172033;
    --kivo-orange: #f97316;
    --kivo-orange-dark: #ea580c;
    --kivo-blue: #2563eb;
    --kivo-bg: #f5f7fb;
    --kivo-card: #ffffff;
    --kivo-text: #172033;
    --kivo-muted: #64748b;
    --kivo-border: #e5e7eb;
    --kivo-success: #16a34a;
    --kivo-danger: #dc2626;
    --kivo-warning: #d97706;
    --sidebar-width: 300px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: "Inter", Arial, sans-serif;
    background: var(--kivo-bg);
    color: var(--kivo-text);
    font-size: 14px;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.kivo-app {
    min-height: 100vh;
    display: flex;
}

/* SIDEBAR */

.kivo-sidebar {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    overflow-y: auto;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 2px 10px 25px;
}

.brand-mark {
    width: 43px;
    height: 43px;
    border-radius: 13px;
    background: linear-gradient(135deg, #fb923c, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(249, 115, 22, .25);
}

.brand-name {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: 1px;
}

.brand-subtitle {
    font-size: 10px;
    letter-spacing: 2.5px;
    color: #94a3b8;
    margin-top: 1px;
}

.sidebar-shop {
    display: flex;
    align-items: center;
    gap: 11px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 13px;
    padding: 12px;
    margin-bottom: 24px;
}

.shop-avatar {
    width: 39px;
    height: 39px;
    border-radius: 10px;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.shop-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.shop-info strong {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-info span {
    color: #94a3b8;
    font-size: 11px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-section-title {
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    padding: 13px 12px 7px;
}

.sidebar-link {
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-radius: 10px;
    padding: 12px 14px;
    color: #cbd5e1;
    transition: .2s ease;
    font-size: 14px;
    font-weight: 500;
}

.sidebar-link:hover {
    background: rgba(255,255,255,.07);
    color: white;
}

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(249,115,22,.95), rgba(234,88,12,.85));
    color: white;
    box-shadow: 0 7px 18px rgba(249,115,22,.18);
}

.nav-icon {
    width: 23px;
    text-align: center;
    font-size: 19px;
}

.sidebar-link small {
    margin-left: auto;
    font-size: 8px;
    color: #64748b;
    text-transform: uppercase;
}

.sidebar-disabled {
    opacity: .65;
    cursor: default;
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 20px;
}

.kivo-help-card {
    display: flex;
    gap: 9px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(37,99,235,.12);
    border: 1px solid rgba(37,99,235,.18);
    margin-bottom: 12px;
}

.help-icon {
    min-width: 29px;
    height: 29px;
    border-radius: 8px;
    background: rgba(37,99,235,.2);
    color: #93c5fd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.kivo-help-card strong,
.kivo-help-card span {
    display: block;
}

.kivo-help-card strong {
    font-size: 10px;
    color: #e2e8f0;
}

.kivo-help-card span {
    font-size: 9px;
    color: #64748b;
    margin-top: 3px;
    line-height: 1.4;
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #94a3b8;
    font-size: 12px;
    border-radius: 9px;
}

.logout-link:hover {
    background: rgba(220,38,38,.1);
    color: #fca5a5;
}

/* MAIN */

.kivo-main {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
}

.kivo-header {
    height: 86px;
    background: white;
    border-bottom: 1px solid var(--kivo-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.header-left,
.header-right,
.header-user {
    display: flex;
    align-items: center;
}

.header-left {
    gap: 14px;
}

.header-eyebrow {
    color: var(--kivo-orange);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.3px;
    margin-bottom: 3px;
}

.kivo-header h1 {
    font-size: 21px;
    margin: 0;
    font-weight: 700;
}

.header-right {
    gap: 18px;
}

.header-icon-button {
    position: relative;
    width: 38px;
    height: 38px;
    border: 1px solid var(--kivo-border);
    background: white;
    border-radius: 10px;
    color: var(--kivo-muted);
    font-size: 18px;
}

.notification-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--kivo-orange);
    top: 8px;
    right: 8px;
}

.header-user {
    gap: 9px;
}

.header-avatar {
    width: 37px;
    height: 37px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.header-user-info strong,
.header-user-info span {
    display: block;
}

.header-user-info strong {
    font-size: 11px;
}

.header-user-info span {
    font-size: 9px;
    color: var(--kivo-muted);
    margin-top: 2px;
}

.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid var(--kivo-border);
    border-radius: 10px;
    font-size: 18px;
}

.kivo-content {
    padding: 34px 38px 55px;
    max-width: 1500px;
    margin: 0 auto;
}

.sidebar-overlay {
    display: none;
}

/* COMMON */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 26px;
}

.page-header h2 {
    margin: 0;
    font-size: 29px;
    font-weight: 800;
}

.page-header p {
    margin: 8px 0 0;
    color: var(--kivo-muted);
    font-size: 14px;
}

.card {
    background: var(--kivo-card);
    border: 1px solid var(--kivo-border);
    border-radius: 15px;
    box-shadow: 0 2px 7px rgba(15,23,42,.025);
}

.card-header {
    padding: 20px 22px;
    border-bottom: 1px solid var(--kivo-border);
}

.card-header h3 {
    margin: 0;
    font-size: 17px;
}

.card-header p {
    margin: 6px 0 0;
    color: var(--kivo-muted);
    font-size: 12px;
}

.card-body {
    padding: 22px;
}

.btn {
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 17px;
    border: 0;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    transition: .2s ease;
}

.btn-primary {
    color: white;
    background: var(--kivo-orange);
    box-shadow: 0 5px 13px rgba(249,115,22,.17);
}

.btn-primary:hover {
    background: var(--kivo-orange-dark);
    transform: translateY(-1px);
}

.btn-blue {
    color: white;
    background: var(--kivo-blue);
}

.btn-blue:hover {
    background: #1d4ed8;
}

.btn-secondary {
    color: var(--kivo-text);
    background: #f1f5f9;
}

.btn-danger {
    color: #b91c1c;
    background: #fef2f2;
}

.btn-sm {
    min-height: 34px;
    padding: 0 12px;
    font-size: 10px;
}

.form-group {
    margin-bottom: 17px;
}

.form-label,
label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    min-height: 43px;
    border: 1px solid #dbe1ea;
    border-radius: 9px;
    background: #fff;
    color: var(--kivo-text);
    padding: 10px 12px;
    font-size: 13px;
    outline: none;
    transition: .2s ease;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}

.form-help {
    color: var(--kivo-muted);
    font-size: 10px;
    margin-top: 5px;
}

.form-error,
ul.form-errors {
    color: #dc2626;
    font-size: 10px;
    margin: 5px 0;
    padding-left: 15px;
}

.flash {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 600;
}

.flash-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flash-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.flash-success .flash-icon {
    background: #dcfce7;
}

.flash-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.flash-error .flash-icon {
    background: #fee2e2;
}

.flash-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

/* DASHBOARD */

.welcome-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(115deg, #0f172a, #172554);
    color: white;
    border-radius: 18px;
    padding: 28px 30px;
    margin-bottom: 22px;
}

.welcome-banner:after {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: rgba(249,115,22,.12);
    right: -70px;
    top: -90px;
}

.welcome-banner h2 {
    margin: 0;
    font-size: 28px;
    position: relative;
    z-index: 1;
}

.welcome-banner p {
    color: #cbd5e1;
    margin: 9px 0 0;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 22px;
}

.stat-card {
    background: white;
    border: 1px solid var(--kivo-border);
    border-radius: 14px;
    padding: 19px;
    display: flex;
    justify-content: space-between;
}

.stat-card .stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.stat-orange .stat-icon {
    background: #fff7ed;
    color: #ea580c;
}

.stat-blue .stat-icon {
    background: #eff6ff;
    color: #2563eb;
}

.stat-green .stat-icon {
    background: #f0fdf4;
    color: #16a34a;
}

.stat-purple .stat-icon {
    background: #faf5ff;
    color: #9333ea;
}

.stat-card small {
    display: block;
    color: var(--kivo-muted);
    font-size: 11px;
    margin-bottom: 6px;
}

.stat-card strong {
    font-size: 27px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 20px;
}

.shop-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.detail-item {
    padding: 14px;
    border: 1px solid #edf0f4;
    border-radius: 10px;
}

.detail-item span {
    display: block;
    color: var(--kivo-muted);
    font-size: 9px;
    margin-bottom: 5px;
}

.detail-item strong {
    font-size: 12px;
}

/* PRODUCT / CATEGORY */

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

.toolbar-title strong {
    display: block;
    font-size: 15px;
}

.toolbar-title span {
    color: var(--kivo-muted);
    font-size: 10px;
}

.product-layout {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 20px;
    align-items: start;
}

.product-list {
    overflow: hidden;
}

.product-table-wrap {
    overflow-x: auto;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
}

.product-table th {
    text-align: left;
    padding: 13px 17px;
    background: #f8fafc;
    color: #64748b;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.product-table td {
    padding: 15px 17px;
    border-top: 1px solid #eef1f5;
    font-size: 11px;
    vertical-align: middle;
}

.product-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-image-placeholder {
    width: 39px;
    height: 39px;
    border-radius: 9px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.product-name strong {
    display: block;
    font-size: 11px;
}

.product-name span {
    color: var(--kivo-muted);
    font-size: 9px;
}

.price {
    font-weight: 800;
    color: var(--kivo-text);
}

.stock-badge,
.active-badge,
.inactive-badge {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 700;
}

.stock-badge {
    background: #eff6ff;
    color: #1d4ed8;
}

.active-badge {
    background: #f0fdf4;
    color: #15803d;
}

.inactive-badge {
    background: #f8fafc;
    color: #64748b;
}

.actions {
    display: flex;
    gap: 7px;
}

.category-list {
    display: grid;
    gap: 9px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    border: 1px solid #edf0f4;
    border-radius: 10px;
}

.category-item-left {
    display: flex;
    align-items: center;
    gap: 11px;
}

.category-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #fff7ed;
    color: #ea580c;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* AUTH */

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    background: #f8fafc;
}

.auth-visual {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #0f172a 0%, #172554 100%);
    color: white;
    padding: 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-visual:before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 80px solid rgba(249,115,22,.08);
    right: -250px;
    top: -180px;
}

.auth-visual:after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(37,99,235,.1);
    left: -170px;
    bottom: -160px;
}

.auth-logo {
    position: absolute;
    top: 35px;
    left: 45px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-logo .brand-mark {
    width: 40px;
    height: 40px;
}

.auth-logo strong {
    font-size: 22px;
}

.auth-content {
    position: relative;
    z-index: 1;
    max-width: 570px;
}

.auth-content .eyebrow {
    color: #fb923c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.auth-content h1 {
    font-size: 42px;
    line-height: 1.12;
    margin: 0 0 16px;
}

.auth-content h1 span {
    color: #fb923c;
}

.auth-content > p {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.7;
    max-width: 480px;
}

.auth-features {
    margin-top: 35px;
    display: grid;
    gap: 13px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #e2e8f0;
    font-size: 12px;
}

.auth-feature-icon {
    width: 31px;
    height: 31px;
    border-radius: 9px;
    background: rgba(255,255,255,.08);
    color: #fb923c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form-area {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-box {
    width: 100%;
    max-width: 430px;
}

.auth-box-header {
    margin-bottom: 28px;
}

.auth-box-header h2 {
    font-size: 27px;
    margin: 0 0 7px;
}

.auth-box-header p {
    color: var(--kivo-muted);
    font-size: 12px;
    margin: 0;
}

.auth-card {
    background: white;
    border: 1px solid var(--kivo-border);
    border-radius: 17px;
    padding: 28px;
    box-shadow: 0 15px 45px rgba(15,23,42,.06);
}

.auth-card .btn {
    width: 100%;
    margin-top: 7px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--kivo-muted);
    font-size: 11px;
}

.auth-footer a {
    color: var(--kivo-blue);
    font-weight: 700;
}

/* SETUP */

.setup-page {
    min-height: 100vh;
    background: #f5f7fb;
    padding: 35px;
}

.setup-container {
    max-width: 850px;
    margin: 0 auto;
}

.setup-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.setup-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.setup-brand .brand-mark {
    width: 39px;
    height: 39px;
}

.setup-brand strong {
    font-size: 20px;
}

.setup-progress {
    color: var(--kivo-muted);
    font-size: 10px;
    font-weight: 600;
}

.setup-intro {
    margin-bottom: 22px;
}

.setup-intro h1 {
    margin: 0;
    font-size: 28px;
}

.setup-intro p {
    color: var(--kivo-muted);
    font-size: 12px;
    margin-top: 7px;
}

.setup-card {
    background: white;
    border: 1px solid var(--kivo-border);
    border-radius: 17px;
    box-shadow: 0 10px 35px rgba(15,23,42,.05);
    padding: 30px;
}

.setup-section-title {
    font-size: 14px;
    font-weight: 800;
    margin: 0 0 17px;
}

.setup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}

.setup-full {
    grid-column: 1 / -1;
}

.setup-actions {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--kivo-border);
    display: flex;
    justify-content: flex-end;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .kivo-sidebar {
        transform: translateX(-100%);
        transition: transform .25s ease;
    }

    .kivo-sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        z-index: 90;
        inset: 0;
        background: rgba(15,23,42,.45);
    }

    .sidebar-overlay.show {
        display: block;
    }

    .kivo-main {
        margin-left: 0;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .kivo-header {
        padding: 0 18px;
    }

    .kivo-content {
        padding: 22px 18px 40px;
    }
}

@media (max-width: 700px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        display: none;
    }

    .auth-form-area {
        min-height: 100vh;
        padding: 22px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .shop-details,
    .setup-grid {
        grid-template-columns: 1fr;
    }

    .setup-full {
        grid-column: auto;
    }

    .setup-page {
        padding: 20px;
    }

    .setup-card {
        padding: 20px;
    }

    .page-header {
        flex-direction: column;
    }

    .header-user-info {
        display: none;
    }

    .header-right {
        gap: 8px;
    }
}

@media (max-width: 450px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 21px;
    }

    .kivo-header h1 {
        font-size: 15px;
    }
}

/* =========================================================
   KIVO — COMMANDES
   ========================================================= */

.order-stats {
    margin-bottom: 24px;
}

.stat-orange {
    background: #fff4e8 !important;
    color: #f97316 !important;
}

.stat-blue {
    background: #eaf2ff !important;
    color: #2563eb !important;
}

.stat-green {
    background: #e9f9f0 !important;
    color: #16a34a !important;
}

.orders-card {
    overflow: hidden;
}

.orders-toolbar {
    padding: 20px 24px;
    border-bottom: 1px solid #edf0f5;
}

.orders-search {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.search-box {
    flex: 1;
    min-width: 250px;
    height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid #dfe4ec;
    border-radius: 10px;
    background: #fff;
}

.search-box span {
    font-size: 22px;
    color: #8993a4;
}

.search-box input {
    border: 0;
    outline: 0;
    width: 100%;
    height: 100%;
    font-size: 14px;
    color: #172033;
    background: transparent;
}

.status-filter {
    height: 46px;
    min-width: 170px;
    padding: 0 14px;
    border: 1px solid #dfe4ec;
    border-radius: 10px;
    background: #fff;
    color: #273247;
    font-size: 14px;
    outline: none;
}

.table-wrapper {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.orders-table th {
    background: #fafbfc;
    padding: 15px 20px;
    text-align: left;
    font-size: 11px;
    font-weight: 800;
    color: #7a8495;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-bottom: 1px solid #edf0f5;
}

.orders-table td {
    padding: 17px 20px;
    border-bottom: 1px solid #f0f2f6;
    vertical-align: middle;
}

.orders-table tbody tr {
    transition: background .15s ease;
}

.orders-table tbody tr:hover {
    background: #fafcff;
}

.order-reference {
    display: flex;
    align-items: center;
    gap: 11px;
}

.order-reference strong {
    display: block;
    font-size: 14px;
    color: #172033;
}

.order-reference small {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #8a94a5;
}

.order-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    color: #2563eb;
    font-weight: 800;
}

.customer-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.customer-cell strong {
    font-size: 14px;
    color: #273247;
}

.customer-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf0ff;
    color: #3156c9;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

.phone-number {
    color: #667085;
    font-size: 13px;
}

.order-total {
    color: #172033;
    font-size: 14px;
}

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.order-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.status-new {
    background: #fff4e8;
    color: #f97316;
}

.status-confirmed {
    background: #eaf2ff;
    color: #2563eb;
}

.status-processing {
    background: #f2edff;
    color: #7c3aed;
}

.status-shipping {
    background: #eaf8ff;
    color: #0284c7;
}

.status-delivered {
    background: #e9f9f0;
    color: #16a34a;
}

.status-cancelled {
    background: #fff0f0;
    color: #dc2626;
}

.date-cell strong {
    display: block;
    font-size: 13px;
    color: #273247;
}

.date-cell small {
    display: block;
    margin-top: 3px;
    color: #8a94a5;
    font-size: 11px;
}

.order-action {
    text-align: right;
}

.icon-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #f4f6fa;
    color: #273247;
    font-size: 18px;
    text-decoration: none;
    transition: all .2s ease;
}

.icon-btn:hover {
    background: #172033;
    color: #fff;
    transform: translateX(2px);
}

.empty-orders {
    padding: 80px 20px;
    text-align: center;
}

.empty-orders-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: #f3f6fb;
    font-size: 32px;
}

.empty-orders h2 {
    margin: 0 0 8px;
    font-size: 21px;
    color: #172033;
}

.empty-orders p {
    margin: 0 0 22px;
    color: #7a8495;
    font-size: 14px;
}

/* DETAIL COMMANDE */

.back-link {
    display: inline-block;
    margin-bottom: 14px;
    color: #667085;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.back-link:hover {
    color: #2563eb;
}

.order-title-line {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.order-title-line h1 {
    margin: 0;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, .8fr);
    gap: 24px;
}

.order-items {
    padding: 0 24px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 0;
    border-bottom: 1px solid #edf0f5;
}

.order-item:last-child {
    border-bottom: 0;
}

.order-item-image {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #f3f6fb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.order-item-info {
    flex: 1;
}

.order-item-info strong {
    display: block;
    color: #172033;
    font-size: 14px;
}

.order-item-info span {
    display: block;
    margin-top: 5px;
    color: #7a8495;
    font-size: 12px;
}

.order-item-total {
    font-size: 14px;
    color: #172033;
}

.order-summary {
    margin: 0 24px;
    padding: 20px 0;
    border-top: 1px solid #dfe4ec;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-summary span {
    color: #667085;
    font-size: 14px;
    font-weight: 700;
}

.order-summary strong {
    color: #172033;
    font-size: 20px;
}

.customer-detail-card,
.status-card {
    margin-bottom: 24px;
}

.card-heading {
    padding: 22px 24px;
    border-bottom: 1px solid #edf0f5;
}

.card-heading h2 {
    margin: 0;
    font-size: 17px;
    color: #172033;
}

.card-heading p {
    margin: 5px 0 0;
    color: #8a94a5;
    font-size: 12px;
}

.customer-profile {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 22px 24px;
}

.customer-avatar-large {
    width: 48px;
    height: 48px;
    font-size: 17px;
}

.customer-profile strong {
    display: block;
    color: #172033;
    font-size: 15px;
}

.customer-profile span {
    display: block;
    color: #7a8495;
    font-size: 12px;
    margin-top: 4px;
}

.detail-info {
    padding: 0 24px 22px;
}

.detail-info > div {
    padding: 14px 0;
    border-top: 1px solid #edf0f5;
}

.detail-info span {
    display: block;
    font-size: 11px;
    color: #8a94a5;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .05em;
    margin-bottom: 5px;
}

.detail-info strong {
    display: block;
    color: #273247;
    font-size: 13px;
    line-height: 1.5;
}

.status-card form {
    padding: 22px 24px;
}

.order-status-select {
    margin-bottom: 13px;
}

.btn-full {
    width: 100%;
}

.empty-inline {
    padding: 30px 0;
    color: #8a94a5;
    text-align: center;
}

/* MOBILE */

@media (max-width: 900px) {
    .order-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .orders-search {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box,
    .status-filter {
        width: 100%;
        min-width: 0;
    }

    .orders-search .btn {
        width: 100%;
    }

    .order-detail-grid {
        gap: 16px;
    }

    .order-items {
        padding: 0 16px;
    }

    .order-summary {
        margin: 0 16px;
    }

    .card-heading,
    .customer-profile,
    .status-card form {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* =========================================================
   KIVO — CLIENTS
   ========================================================= */

.customers-card {
    overflow: hidden;
}

.customers-toolbar {
    padding: 20px 24px;
    border-bottom: 1px solid #edf0f5;
}

.customers-search {
    display: flex;
    gap: 12px;
    align-items: center;
}

.customer-id {
    display: block;
    margin-top: 3px;
    color: #8a94a5;
    font-size: 11px;
}

.customer-order-count {
    display: inline-flex;
    min-width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f1f5fb;
    color: #273247;
    font-size: 13px;
}

.whatsapp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #e9f9f0;
    color: #16a34a;
    font-size: 11px;
    font-weight: 800;
}

.not-connected {
    color: #98a1b1;
    font-size: 12px;
}

.customer-title-line {
    display: flex;
    align-items: center;
    gap: 15px;
}

.customer-title-line h1 {
    margin: 0;
}

.customer-title-line p {
    margin: 5px 0 0;
}

.customer-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, .8fr);
    gap: 24px;
}

.customer-info-card {
    margin-bottom: 24px;
}

.customer-money-card {
    overflow: hidden;
}

.customer-money {
    padding: 26px 24px;
}

.customer-money strong {
    display: block;
    font-size: 27px;
    color: #172033;
}

.customer-money span {
    display: block;
    margin-top: 7px;
    color: #8a94a5;
    font-size: 13px;
}

@media (max-width: 900px) {
    .customer-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .customers-search {
        flex-direction: column;
        align-items: stretch;
    }

    .customers-search .btn {
        width: 100%;
    }

    .customer-title-line {
        align-items: flex-start;
    }
}

/* =========================================================
   KIVO — STATISTIQUES
   ========================================================= */

.statistics-header {
    align-items: flex-end;
}

.period-selector {
    display: flex;
    gap: 5px;
    padding: 5px;
    background: #f1f4f8;
    border-radius: 11px;
}

.period-selector a {
    padding: 9px 14px;
    border-radius: 8px;
    color: #687386;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.period-selector a:hover {
    color: #172033;
}

.period-selector a.active {
    background: #ffffff;
    color: #172033;
    box-shadow: 0 2px 8px rgba(20, 30, 50, .08);
}

.statistics-kpis {
    margin-bottom: 24px;
}

.statistics-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr);
    gap: 24px;
    margin-bottom: 24px;
}

.sales-chart-card {
    min-width: 0;
}

.statistics-card-heading {
    align-items: flex-start;
}

.average-order {
    text-align: right;
}

.average-order span {
    display: block;
    color: #8a94a5;
    font-size: 11px;
    font-weight: 700;
}

.average-order strong {
    display: block;
    margin-top: 4px;
    color: #172033;
    font-size: 18px;
}

.sales-chart {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    min-height: 290px;
    padding: 30px 24px 22px;
    overflow-x: auto;
}

.chart-column {
    flex: 1 1 0;
    min-width: 28px;
    height: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.chart-value {
    height: 24px;
    max-width: 80px;
    overflow: hidden;
    color: #8a94a5;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.chart-bar-area {
    width: 100%;
    height: 175px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.chart-bar {
    width: min(28px, 70%);
    min-height: 0;
    border-radius: 7px 7px 3px 3px;
    background: linear-gradient(180deg, #ff8a3d 0%, #ff6b1a 100%);
    transition: height .2s ease;
}

.chart-bar:hover {
    opacity: .8;
}

.chart-label {
    margin-top: 9px;
    color: #8a94a5;
    font-size: 9px;
    white-space: nowrap;
}

.chart-empty {
    width: 100%;
    min-height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    color: #8a94a5;
}

.chart-empty strong {
    color: #273247;
    font-size: 14px;
}

.chart-empty span {
    font-size: 12px;
}

.status-list {
    padding: 8px 24px 22px;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #edf0f5;
}

.status-row:last-child {
    border-bottom: 0;
}

.status-row strong {
    color: #172033;
    font-size: 14px;
}

.statistics-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr);
    gap: 24px;
}

.card-link {
    color: #ff6b1a;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}

.top-products-list {
    padding: 5px 24px 18px;
}

.top-product-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid #edf0f5;
}

.top-product-row:last-child {
    border-bottom: 0;
}

.top-product-rank {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    border-radius: 9px;
    background: #f1f4f8;
    color: #687386;
    font-size: 12px;
    font-weight: 900;
}

.top-product-info {
    min-width: 0;
    flex: 1;
}

.top-product-info strong {
    display: block;
    overflow: hidden;
    color: #273247;
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.top-product-info span {
    display: block;
    margin-top: 4px;
    color: #8a94a5;
    font-size: 11px;
}

.top-product-revenue {
    color: #172033;
    font-size: 13px;
    white-space: nowrap;
}

.summary-list {
    padding: 4px 24px 18px;
}

.summary-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #edf0f5;
}

.summary-list > div:last-child {
    border-bottom: 0;
}

.summary-list span {
    color: #687386;
    font-size: 12px;
}

.summary-list strong {
    color: #172033;
    font-size: 13px;
    white-space: nowrap;
}

@media (max-width: 950px) {
    .statistics-main-grid,
    .statistics-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .statistics-header {
        align-items: flex-start;
        gap: 18px;
    }

    .period-selector {
        width: 100%;
    }

    .period-selector a {
        flex: 1;
        text-align: center;
    }

    .sales-chart {
        padding-left: 12px;
        padding-right: 12px;
    }

    .average-order {
        display: none;
    }
}


/* =========================================================
   KIVO — CORRECTION CONTRASTE / LISIBILITÉ
   ========================================================= */

/* Fond principal clair */
body {
    background: #f5f7fb !important;
    color: #172033 !important;
}

/* Zone principale */
.main-content,
.page-content,
.content-wrapper {
    background: #f5f7fb !important;
}

/* Tous les titres principaux */
h1,
h2,
h3,
h4,
strong {
    color: #172033;
}

/* Paragraphes et textes secondaires */
p,
.card-heading p,
.page-header p {
    color: #687386;
}

/* Cartes */
.content-card,
.stat-card {
    background: #ffffff !important;
    color: #172033;
    border: 1px solid #e8ecf2;
}

/* Titres des cartes */
.content-card h2,
.content-card h3 {
    color: #172033 !important;
}

/* Texte des statistiques */
.stat-card span {
    color: #687386 !important;
}

.stat-card strong {
    color: #172033 !important;
}

/* Toolbar */
.customers-toolbar {
    background: #ffffff !important;
}

/* Tableaux */
.table-wrapper,
.orders-table,
.customers-table {
    background: #ffffff;
}

.orders-table th,
.customers-table th {
    color: #687386 !important;
    background: #fafbfc;
}

.orders-table td,
.customers-table td {
    color: #273247;
}

/* Dates */
.date-cell strong {
    color: #273247 !important;
}

.date-cell small {
    color: #8a94a5 !important;
}

/* Recherche */
.search-box {
    background: #ffffff !important;
    border: 1px solid #dfe4ec !important;
}

.search-box input {
    color: #172033 !important;
    background: #ffffff !important;
}

.search-box input::placeholder {
    color: #9aa3b2 !important;
}

/* Sélecteur de période */
.period-selector {
    background: #e9edf4 !important;
}

.period-selector a {
    color: #687386 !important;
}

.period-selector a.active {
    background: #ffffff !important;
    color: #172033 !important;
}

/* Graphique */
.sales-chart-card {
    background: #ffffff !important;
}

.chart-value,
.chart-label {
    color: #687386 !important;
}

/* Résumé statistiques */
.summary-list span {
    color: #687386 !important;
}

.summary-list strong {
    color: #172033 !important;
}

/* Produits */
.top-product-info strong {
    color: #273247 !important;
}

.top-product-info span {
    color: #8a94a5 !important;
}

.top-product-revenue {
    color: #172033 !important;
}

/* Liens */
.card-link {
    color: #ff6b1a !important;
}

/* Empty states */
.empty-inline,
.empty-orders {
    color: #687386;
}

.empty-orders h2 {
    color: #172033 !important;
}

/* Page header */
.eyebrow {
    color: #ff6b1a !important;
}

.page-header h1 {
    color: #172033 !important;
}

/* Sidebar : on conserve le bleu mais avec contraste renforcé */
.sidebar {
    color: #ffffff;
}

.sidebar-link {
    color: #dce6f5;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: #ffffff;
}


/* =========================================================
   KIVO — PAGE PAIEMENTS
   ========================================================= */

.payment-stats {
    margin-bottom: 24px;
}

.payment-stats .stat-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff1e8;
    color: #ff6b1a;
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 14px;
}

.payment-stats .stat-card strong {
    display: block;
    margin-top: 7px;
    font-size: 25px;
}

.payment-stats .stat-card small {
    display: block;
    margin-top: 7px;
    color: #8a94a5;
    font-size: 12px;
}

.payments-card {
    overflow: hidden;
}

.payments-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-bottom: 1px solid #edf0f5;
}

.payment-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 850px;
}

.payment-search .search-box {
    flex: 1;
    height: 46px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 14px;
    border-radius: 11px;
}

.payment-search .search-box span {
    color: #8a94a5;
    font-size: 20px;
}

.payment-search .search-box input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    font-size: 14px;
}

.payment-search select {
    height: 46px;
    min-width: 160px;
    padding: 0 13px;
    border: 1px solid #dfe4ec;
    border-radius: 11px;
    background: #ffffff;
    color: #273247;
    outline: none;
    font-size: 13px;
}

.payment-search .btn-primary {
    height: 46px;
    white-space: nowrap;
}

.payments-count {
    color: #8a94a5;
    font-size: 13px;
    white-space: nowrap;
}

.payments-table {
    width: 100%;
    border-collapse: collapse;
}

.payments-table th {
    padding: 15px 20px;
    background: #fafbfc;
    border-bottom: 1px solid #edf0f5;
    color: #687386;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-align: left;
}

.payments-table td {
    padding: 17px 20px;
    border-bottom: 1px solid #f0f2f6;
    color: #273247;
    font-size: 13px;
    vertical-align: middle;
}

.payments-table tbody tr {
    transition: background .15s ease;
}

.payments-table tbody tr:hover {
    background: #fafbfe;
}

.payment-reference,
.payment-customer,
.payment-date {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payment-reference strong,
.payment-customer strong,
.payment-date strong {
    color: #172033;
    font-size: 13px;
}

.payment-reference small,
.payment-customer small,
.payment-date small {
    color: #8a94a5;
    font-size: 11px;
}

.payment-amount {
    color: #172033;
    font-size: 14px;
    white-space: nowrap;
}

.payment-method {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 8px;
    background: #f1f4f8;
    color: #536075;
    font-size: 12px;
    font-weight: 600;
}

.transaction-ref {
    color: #687386;
    font-size: 12px;
    font-family: monospace;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.status-paid {
    background: #e8f8ef;
    color: #16834a;
}

.status-pending {
    background: #fff6df;
    color: #a66b00;
}

.status-failed {
    background: #ffecec;
    color: #c93434;
}

.status-refunded {
    background: #eeeafe;
    color: #6651c8;
}

.empty-payments {
    padding: 75px 25px;
    text-align: center;
}

.empty-payments-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #fff1e8;
    color: #ff6b1a;
    font-size: 28px;
    font-weight: 800;
}

.empty-payments h2 {
    margin: 0;
    color: #172033;
    font-size: 20px;
}

.empty-payments p {
    margin: 8px 0 20px;
    color: #8a94a5;
    font-size: 13px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 9px;
    border: 1px solid #dfe4ec;
    background: #ffffff;
    color: #273247;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.btn-secondary:hover {
    background: #f7f8fa;
}

@media (max-width: 1000px) {
    .payments-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .payment-search {
        width: 100%;
        max-width: none;
    }

    .payments-count {
        align-self: flex-end;
    }

    .table-wrapper {
        overflow-x: auto;
    }

    .payments-table {
        min-width: 1050px;
    }
}

@media (max-width: 650px) {
    .payment-search {
        flex-direction: column;
        align-items: stretch;
    }

    .payment-search .search-box,
    .payment-search select,
    .payment-search .btn-primary {
        width: 100%;
    }
}


/* =========================================================
   KIVO — MA BOUTIQUE
   ========================================================= */

.shop-page-header {
    margin-bottom: 24px;
}

.shop-public-link {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 13px 16px;
    border: 1px solid #e5e9f0;
    border-radius: 12px;
    background: #ffffff;
}

.shop-public-link span {
    color: #8a94a5;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .04em;
}

.shop-public-link strong {
    color: #ff6b1a;
    font-size: 13px;
}

.shop-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 24px;
    align-items: start;
}

.shop-profile-card {
    overflow: hidden;
}

.card-section-header {
    padding: 22px 24px;
    border-bottom: 1px solid #edf0f5;
}

.card-section-header h2 {
    margin: 0;
    color: #172033;
    font-size: 19px;
}

.card-section-header p {
    margin: 6px 0 0;
    color: #8a94a5;
    font-size: 13px;
}

.shop-form {
    padding: 24px;
}

.shop-logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #edf0f5;
}

.shop-logo,
.shop-preview-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff1e8;
    color: #ff6b1a;
    font-weight: 800;
}

.shop-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    font-size: 27px;
}

.shop-logo img,
.shop-preview-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-logo-area strong {
    display: block;
    color: #172033;
    font-size: 14px;
}

.shop-logo-area p {
    margin: 5px 0 0;
    color: #8a94a5;
    font-size: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label {
    color: #273247;
    font-size: 12px;
    font-weight: 700;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dfe4ec;
    border-radius: 10px;
    background: #ffffff;
    color: #172033;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.form-field input,
.form-field select {
    height: 46px;
    padding: 0 13px;
}

.form-field textarea {
    padding: 12px 13px;
    resize: vertical;
    min-height: 110px;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: #ff6b1a;
    box-shadow: 0 0 0 3px rgba(255, 107, 26, .10);
}

.shop-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #edf0f5;
}

.shop-form-footer span {
    color: #8a94a5;
    font-size: 11px;
}

.shop-form-footer .btn-primary {
    min-height: 44px;
    padding: 0 18px;
}

.shop-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shop-preview-card {
    padding: 22px;
}

.shop-preview-top {
    display: flex;
    align-items: center;
    gap: 13px;
}

.shop-preview-logo {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    font-size: 21px;
}

.shop-preview-top h3 {
    margin: 0;
    color: #172033;
    font-size: 16px;
}

.shop-preview-top span {
    display: block;
    margin-top: 4px;
    color: #8a94a5;
    font-size: 11px;
}

.shop-preview-description {
    margin: 18px 0;
    color: #687386;
    font-size: 13px;
    line-height: 1.6;
}

.shop-preview-url {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 10px;
    background: #f7f8fa;
}

.shop-preview-url span {
    color: #8a94a5;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
}

.shop-preview-url strong {
    color: #273247;
    font-size: 12px;
    word-break: break-all;
}

.shop-preview-button {
    width: 100%;
}

.shop-stats-card {
    padding: 22px;
}

.shop-stats-card h3 {
    margin: 0 0 15px;
    color: #172033;
    font-size: 16px;
}

.shop-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #edf0f5;
}

.shop-stat-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.shop-stat-row span {
    color: #687386;
    font-size: 13px;
}

.shop-stat-row strong {
    color: #172033;
    font-size: 14px;
}

@media (max-width: 1000px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 650px) {
    .shop-sidebar,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-field.full {
        grid-column: auto;
    }

    .shop-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .shop-form-footer .btn-primary {
        width: 100%;
    }

    .shop-public-link {
        display: none;
    }
}


/* =========================================================
   KIVO — UPLOAD LOGO BOUTIQUE
   ========================================================= */

.shop-logo-upload {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.shop-logo-upload strong {
    color: #172033;
    font-size: 14px;
}

.shop-logo-upload p {
    margin: 0 0 7px;
    color: #8a94a5;
    font-size: 12px;
}

.logo-upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #dfe4ec;
    border-radius: 9px;
    background: #ffffff;
    color: #273247;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: .15s ease;
}

.logo-upload-button:hover {
    border-color: #ff6b1a;
    color: #ff6b1a;
    background: #fffaf7;
}

.logo-file-input {
    display: none;
}

.shop-logo-upload small {
    color: #9aa3b2;
    font-size: 10px;
}


.required-mark {
    color: #e5484d;
    font-weight: 800;
    margin-left: 2px;
}

.phone-input {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 46px;
}

.phone-prefix {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    background: #f7f8fa;
    border: 1px solid #dfe4ec;
    border-right: 0;
    border-radius: 9px 0 0 9px;
    color: #273247;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.phone-flag {
    font-size: 21px;
    line-height: 1;
}

.phone-input input[type="tel"] {
    flex: 1;
    min-width: 0;
    border-radius: 0 9px 9px 0 !important;
}

.phone-input input[type="tel"]:disabled {
    background: #f3f4f6;
    cursor: not-allowed;
}

.field-help {
    display: block;
    margin-top: 5px;
    color: #8a94a5;
    font-size: 11px;
}

.form-field select:disabled {
    background: #f3f4f6;
    color: #9aa3b2;
    cursor: not-allowed;
}


.phone-flag {
    width: 24px;
    height: 17px;
    object-fit: cover;
    display: block;
    border-radius: 2px;
    flex-shrink: 0;
}


.country-picker {
    position: relative;
    width: 100%;
}

.country-picker-button {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 13px;
    background: #fff;
    border: 1px solid #dfe4ec;
    border-radius: 9px;
    color: #273247;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.country-picker-button:hover,
.country-picker.open .country-picker-button {
    border-color: #ff6b1a;
}

.country-selected {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.country-selected img,
.country-option img {
    width: 26px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.country-placeholder {
    color: #9aa3b2;
    font-weight: 500;
}

.country-arrow {
    font-size: 10px;
    color: #8a94a5;
    flex-shrink: 0;
    transition: transform .15s ease;
}

.country-picker.open .country-arrow {
    transform: rotate(180deg);
}

.country-dropdown {
    display: none;
    position: absolute;
    z-index: 1000;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #dfe4ec;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(23, 32, 51, .14);
    overflow: hidden;
}

.country-picker.open .country-dropdown {
    display: block;
}

.country-search {
    padding: 10px;
    border-bottom: 1px solid #edf0f4;
}

.country-search input {
    width: 100%;
    min-height: 38px;
    padding: 0 11px;
    border: 1px solid #dfe4ec;
    border-radius: 8px;
    outline: none;
    font-size: 12px;
}

.country-search input:focus {
    border-color: #ff6b1a;
}

.country-list {
    max-height: 280px;
    overflow-y: auto;
    padding: 5px;
}

.country-option {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #273247;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.country-option:hover {
    background: #fff5ef;
    color: #ff6b1a;
}

.country-option.active {
    background: #fff0e8;
    color: #ff6b1a;
}

.country-no-result {
    padding: 16px 10px;
    text-align: center;
    color: #8a94a5;
    font-size: 12px;
}

@media (max-width: 700px) {
    .country-dropdown {
        position: absolute;
    }
}


/* =========================================================
   KIVO AUTH — LISIBILITÉ ET CONTRASTE
   ========================================================= */

.kivo-auth-page .auth-visual {
    background: linear-gradient(145deg, #7c2d12 0%, #c2410c 48%, #f97316 100%);
    color: #ffffff;
}

.kivo-auth-page .auth-logo strong {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: .5px;
}

.kivo-auth-page .auth-content {
    max-width: 620px;
}

.kivo-auth-page .auth-content .eyebrow {
    color: #fed7aa;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.8px;
    margin-bottom: 18px;
}

.kivo-auth-page .auth-content h1 {
    color: #ffffff;
    font-size: clamp(42px, 4vw, 64px);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.kivo-auth-page .auth-content h1 span {
    color: #ffffff;
}

.kivo-auth-page .auth-content > p {
    color: #fff7ed;
    font-size: 16px;
    line-height: 1.75;
    max-width: 550px;
    margin-bottom: 32px;
}

.kivo-auth-page .auth-features {
    gap: 16px;
    margin-top: 28px;
}

.kivo-auth-page .auth-feature {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.kivo-auth-page .auth-feature-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.22);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
}

.kivo-auth-page .auth-form-area {
    background: #fffaf5;
}

.kivo-auth-page .auth-box-header h2 {
    color: #111827;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
}

.kivo-auth-page .auth-box-header p {
    color: #6b7280;
    font-size: 14px;
}

.kivo-auth-page .auth-box-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: #fff1e6;
    color: #ea580c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.kivo-auth-page .auth-card {
    border: 1px solid #fed7aa;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(124,45,18,.10);
}

.kivo-auth-page .auth-card label {
    color: #374151;
    font-weight: 700;
}

.kivo-auth-page .auth-card input {
    color: #111827;
    background: #ffffff;
}

.kivo-auth-page .auth-card input::placeholder {
    color: #9ca3af;
}

.kivo-auth-page .auth-footer {
    color: #6b7280;
}

.kivo-auth-page .auth-footer a {
    color: #ea580c;
}

@media (max-width: 900px) {

    .kivo-auth-page .auth-visual {
        min-height: 420px;
        padding: 100px 30px 45px;
    }

    .kivo-auth-page .auth-content h1 {
        font-size: 42px;
    }

    .kivo-auth-page .auth-content > p {
        font-size: 14px;
    }
}

@media (max-width: 600px) {

    .kivo-auth-page .auth-visual {
        padding: 95px 24px 40px;
    }

    .kivo-auth-page .auth-content h1 {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .kivo-auth-page .auth-content > p {
        font-size: 14px;
    }

    .kivo-auth-page .auth-feature {
        font-size: 13px;
    }
}


/* =========================================================
   KIVO DASHBOARD — CONTRASTE ET LISIBILITÉ
   ========================================================= */

.kivo-main {
    color: #172033;
}

.kivo-content {
    color: #172033;
}

/* Titres */
.kivo-content h1,
.kivo-content h2,
.kivo-content h3,
.kivo-content h4 {
    color: #172033;
}

/* Textes secondaires */
.kivo-content p,
.kivo-content .card-header p,
.kivo-content .card-heading p {
    color: #475569;
}

/* Cartes */
.kivo-content .card,
.kivo-content .content-card,
.kivo-content .stat-card,
.kivo-content .orders-card,
.kivo-content .payments-card,
.kivo-content .customers-card,
.kivo-content .shop-profile-card,
.kivo-content .shop-preview-card,
.kivo-content .shop-stats-card {
    color: #172033;
}

/* En-têtes des cartes */
.kivo-content .card-header h3,
.kivo-content .card-heading h2,
.kivo-content .content-card h2,
.kivo-content .content-card h3 {
    color: #172033;
    font-weight: 800;
}

.kivo-content .card-header p,
.kivo-content .card-heading p {
    color: #475569;
}

/* Statistiques */
.kivo-content .stat-card small {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.kivo-content .stat-card strong {
    color: #111827;
    font-size: 27px;
    font-weight: 800;
}

/* Informations boutique */
.kivo-content .detail-item span {
    color: #64748b;
    font-weight: 600;
}

.kivo-content .detail-item strong {
    color: #172033;
    font-weight: 800;
}

/* Texte des tableaux */
.kivo-content table {
    color: #172033;
}

.kivo-content table th {
    color: #475569;
    font-weight: 800;
}

.kivo-content table td {
    color: #172033;
}

/* Liens */
.kivo-content a:not(.btn) {
    color: #ea580c;
}

.kivo-content a:not(.btn):hover {
    color: #c2410c;
}

/* Welcome */
.kivo-content .welcome-banner h2 {
    color: #ffffff;
    font-weight: 800;
}

.kivo-content .welcome-banner p {
    color: #fff7ed;
    font-weight: 500;
}

/* Description boutique */
.kivo-content .card-body > div[style*="background:#f8fafc"] {
    color: #475569 !important;
}

/* Texte des boutons */
.kivo-content .btn {
    font-weight: 700;
}

/* Formulaires */
.kivo-content label {
    color: #334155;
    font-weight: 700;
}

.kivo-content input,
.kivo-content select,
.kivo-content textarea {
    color: #172033;
}

.kivo-content input::placeholder,
.kivo-content textarea::placeholder {
    color: #94a3b8;
}

/* Petits textes */
.kivo-content small {
    color: #475569;
}

/* Exceptions : badges colorés */
.kivo-content .stat-orange small,
.kivo-content .stat-blue small,
.kivo-content .stat-green small,
.kivo-content .stat-purple small {
    color: #475569;
}

/* Statut actif */
.kivo-content .detail-item strong[style*="16a34a"] {
    color: #15803d !important;
}

