/* ══════════════════════════════════════════════════════════════
   DERRE GESTPHYTO — Portail Client MATEC Style
   Mobile-First · PWA · Dark Green Theme
   Winprogramme Derre © 2024
   ══════════════════════════════════════════════════════════════ */

/* ── Google Font Import ──────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Variables ───────────────────────────────────────────────── */
:root {
    --m-green:        #0d5c2e;
    --m-green2:       #10703a;
    --m-green3:       #1a8a49;
    --m-green-light:  #10b981;
    --m-green-bright: #34d399;
    --m-gold:         #f59e0b;
    --m-gold2:        #fbbf24;
    --m-red:          #ef4444;
    --m-red2:         #f87171;
    --m-dark:         #0a0f1e;
    --m-card:         rgba(255,255,255,0.06);
    --m-card-border:  rgba(255,255,255,0.10);
    --m-text:         #ffffff;
    --m-text2:        rgba(255,255,255,0.75);
    --m-text3:        rgba(255,255,255,0.5);
    --m-bg:           #0d5c2e;
    --m-bg2:          #0a4a24;
    --m-radius:       16px;
    --m-radius-sm:    10px;
    --m-radius-xs:    6px;
    --m-shadow:       0 4px 20px rgba(0,0,0,0.3);
    --m-shadow-lg:    0 10px 40px rgba(0,0,0,0.4);
    --m-font:         'Inter', -apple-system, sans-serif;
    --m-transition:   all 0.25s cubic-bezier(0.4,0,0.2,1);
    --m-max-w:        430px; /* largeur max mobile */
}

/* ── Reset ───────────────────────────────────────────────────── */
.matec-app *, .matec-app *::before, .matec-app *::after {
    box-sizing: border-box; margin: 0; padding: 0;
}
.matec-app {
    font-family: var(--m-font);
    background: var(--m-bg);
    color: var(--m-text);
    min-height: 100vh;
    max-width: var(--m-max-w);
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
.matec-app a { text-decoration: none; color: inherit; }
.matec-app button { cursor: pointer; border: none; background: none; font-family: var(--m-font); }
.matec-app img { max-width: 100%; }

/* ══════════════════════════════════════════════════════════════
   PAGE CONNEXION MATEC
   ══════════════════════════════════════════════════════════════ */
.matec-login-bg {
    min-height: 100vh;
    background: linear-gradient(170deg, var(--m-green) 0%, var(--m-bg2) 60%, #060f0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    position: relative;
    overflow: hidden;
}
.matec-login-bg::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.matec-login-bg::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.matec-login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    padding: 40px 32px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    animation: matecFadeUp 0.6s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes matecFadeUp {
    from { opacity:0; transform:translateY(30px) scale(0.97); }
    to   { opacity:1; transform:translateY(0) scale(1); }
}

.matec-login-logo {
    text-align: center;
    margin-bottom: 32px;
}
.matec-login-logo .logo-circle {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--m-green-light), var(--m-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 12px;
    box-shadow: 0 8px 24px rgba(16,185,129,0.3);
}
.matec-login-logo h1 {
    font-size: 22px;
    font-weight: 800;
    color: white;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.matec-login-logo p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.matec-form-group {
    margin-bottom: 16px;
}
.matec-form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.matec-form-label i { color: var(--m-green-bright); font-size: 13px; }
.matec-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--m-radius-sm);
    color: white;
    font-size: 15px;
    font-family: var(--m-font);
    outline: none;
    transition: var(--m-transition);
}
.matec-input:focus {
    border-color: var(--m-green-light);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}
.matec-input::placeholder { color: rgba(255,255,255,0.35); }

.matec-btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--m-green-light) 0%, var(--m-green3) 100%);
    color: white;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--m-radius-sm);
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--m-transition);
    letter-spacing: 0.3px;
}
.matec-btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(16,185,129,0.4);
}
.matec-btn-login i { font-size: 18px; }

.matec-error {
    padding: 12px 14px;
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: var(--m-radius-xs);
    color: #fca5a5;
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.matec-login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
}
.matec-login-footer strong { color: var(--m-green-bright); }

/* ══════════════════════════════════════════════════════════════
   APP LAYOUT (MATEC LIKE)
   ══════════════════════════════════════════════════════════════ */

/* ── Status Bar (simulated) ─────────────────────────────────── */
.matec-status-bar {
    background: var(--m-green);
    padding: 8px 20px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    position: sticky;
    top: 0;
    z-index: 100;
}
.matec-status-bar .status-time { font-weight: 700; }
.matec-status-icons { display: flex; gap: 6px; align-items: center; }

/* ── Top Header ─────────────────────────────────────────────── */
.matec-header {
    background: linear-gradient(180deg, var(--m-green) 0%, var(--m-green2) 100%);
    padding: 12px 20px 24px;
    position: relative;
}
.matec-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.matec-header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}
.matec-logo-circle {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 1.5px solid rgba(255,255,255,0.3);
}
.matec-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.matec-logo-text .lname { font-size: 14px; font-weight: 800; color: white; letter-spacing: 0.5px; }
.matec-logo-text .lsub  { font-size: 9px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; }

.matec-header-actions { display: flex; gap: 8px; }
.matec-icon-btn {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--m-transition);
}
.matec-icon-btn:hover { background: rgba(255,255,255,0.25); }

/* Compte info */
.matec-account-info { margin-bottom: 8px; }
.matec-account-label {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}
.matec-account-number {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}

/* Solde principal */
.matec-balance-section {
    text-align: center;
    padding: 10px 0 6px;
}
.matec-balance-label {
    font-size: 11px;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.matec-balance-amount {
    font-size: 36px;
    font-weight: 900;
    color: white;
    letter-spacing: -1px;
    line-height: 1;
}
.matec-balance-amount .bal-currency {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    margin-left: 4px;
}
.matec-balance-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    margin-top: 4px;
}

/* ── Quick Actions Bar ──────────────────────────────────────── */
.matec-quick-actions {
    background: var(--m-green2);
    padding: 16px 12px 12px;
    display: flex;
    justify-content: space-around;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}
.matec-quick-actions::-webkit-scrollbar { display: none; }
.matec-qa-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 62px;
    cursor: pointer;
    transition: var(--m-transition);
}
.matec-qa-item:hover { transform: translateY(-2px); }
.matec-qa-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--m-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
    transition: var(--m-transition);
    position: relative;
}
.matec-qa-item.active .matec-qa-icon,
.matec-qa-item:hover .matec-qa-icon {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}
.matec-qa-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--m-red);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 50px;
    min-width: 16px;
    text-align: center;
}
.matec-qa-label {
    font-size: 10px;
    color: rgba(255,255,255,0.7);
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
}

/* ── Info Banner ────────────────────────────────────────────── */
.matec-info-banner {
    margin: 12px 16px;
    padding: 10px 14px;
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.25);
    border-radius: var(--m-radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--m-gold2);
}
.matec-info-banner i { font-size: 16px; flex-shrink: 0; }
.matec-info-banner a { color: var(--m-green-bright); font-weight: 600; text-decoration: underline; }

/* ── DigitMM Section ────────────────────────────────────────── */
.matec-section-card {
    margin: 12px 16px;
    background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(16,112,58,0.2));
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: var(--m-radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--m-transition);
}
.matec-section-card:hover { background: rgba(16,185,129,0.2); }
.matec-section-card-left { flex: 1; }
.matec-section-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--m-green-bright);
    margin-bottom: 3px;
}
.matec-section-card-sub { font-size: 11px; color: var(--m-text3); }
.matec-section-card-sub span { color: var(--m-green-bright); font-weight: 600; }
.matec-section-card-arrow {
    width: 32px;
    height: 32px;
    background: var(--m-green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

/* ── Services Grid ──────────────────────────────────────────── */
.matec-section-title {
    padding: 16px 16px 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--m-text2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.matec-services-grid {
    padding: 0 12px 4px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.matec-service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--m-radius-sm);
    cursor: pointer;
    transition: var(--m-transition);
    text-align: center;
}
.matec-service-item:hover, .matec-service-item.active {
    background: rgba(16,185,129,0.15);
    border-color: rgba(16,185,129,0.3);
    transform: translateY(-2px);
}
.matec-service-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.si-green  { background: rgba(16,185,129,0.2); color: var(--m-green-bright); }
.si-gold   { background: rgba(245,158,11,0.2); color: var(--m-gold2); }
.si-blue   { background: rgba(59,130,246,0.2); color: #60a5fa; }
.si-purple { background: rgba(139,92,246,0.2); color: #a78bfa; }
.si-red    { background: rgba(239,68,68,0.2);  color: var(--m-red2); }
.si-teal   { background: rgba(20,184,166,0.2); color: #2dd4bf; }

.matec-service-label {
    font-size: 11px;
    color: var(--m-text2);
    font-weight: 500;
    line-height: 1.2;
}

/* ── KPI Stats ──────────────────────────────────────────────── */
.matec-kpi-row {
    margin: 12px 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.matec-kpi-item {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--m-radius-sm);
    padding: 12px 8px;
    text-align: center;
    transition: var(--m-transition);
}
.matec-kpi-item:hover { background: rgba(255,255,255,0.1); }
.matec-kpi-value {
    font-size: 18px;
    font-weight: 900;
    color: white;
    margin-bottom: 3px;
    line-height: 1;
}
.matec-kpi-value.kpi-green  { color: var(--m-green-bright); }
.matec-kpi-value.kpi-gold   { color: var(--m-gold2); }
.matec-kpi-value.kpi-red    { color: var(--m-red2); }
.matec-kpi-value.kpi-blue   { color: #60a5fa; }
.matec-kpi-label {
    font-size: 9px;
    color: var(--m-text3);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

/* ── Transactions ───────────────────────────────────────────── */
.matec-transactions {
    margin: 8px 0;
}
.matec-tx-header {
    padding: 10px 16px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.matec-tx-header-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--m-text2);
    display: flex;
    align-items: center;
    gap: 6px;
}
.matec-tx-header-title i { color: var(--m-green-bright); }
.matec-tx-more {
    font-size: 11px;
    color: var(--m-green-bright);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.matec-tx-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: var(--m-transition);
}
.matec-tx-item:hover { background: rgba(255,255,255,0.04); }
.matec-tx-item:last-child { border-bottom: none; }

.matec-tx-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.tx-paid     { background: rgba(16,185,129,0.2); color: var(--m-green-bright); }
.tx-pending  { background: rgba(245,158,11,0.2); color: var(--m-gold2); }
.tx-draft    { background: rgba(107,114,128,0.2); color: #9ca3af; }
.tx-cancel   { background: rgba(239,68,68,0.2);  color: var(--m-red2); }

.matec-tx-info { flex: 1; min-width: 0; }
.matec-tx-name {
    font-size: 13px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.matec-tx-sub {
    font-size: 11px;
    color: var(--m-text3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.matec-tx-amount {
    text-align: right;
    flex-shrink: 0;
}
.matec-tx-amount .amt {
    font-size: 14px;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}
.amt-paid   { color: var(--m-green-bright); }
.amt-due    { color: var(--m-red2); }
.amt-draft  { color: #9ca3af; }
.matec-tx-amount .dt {
    font-size: 10px;
    color: var(--m-text3);
}

/* ── QR Code section ────────────────────────────────────────── */
.matec-qr-section {
    margin: 12px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--m-radius);
    padding: 20px;
    text-align: center;
}
.matec-qr-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--m-text2);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.matec-qr-box {
    display: inline-block;
    background: white;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}
.matec-qr-box img { display: block; }
.matec-qr-code-text {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    letter-spacing: 1px;
}

/* ── Bottom Navigation ──────────────────────────────────────── */
.matec-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--m-max-w);
    background: var(--m-bg2);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    z-index: 200;
    backdrop-filter: blur(20px);
}
.matec-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 4px;
    cursor: pointer;
    transition: var(--m-transition);
    text-decoration: none;
    position: relative;
}
.matec-nav-item.active .matec-nav-icon { color: var(--m-green-bright); }
.matec-nav-item.active .matec-nav-label { color: var(--m-green-bright); }
.matec-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--m-green-bright);
    border-radius: 0 0 2px 2px;
}
.matec-nav-icon {
    font-size: 20px;
    color: rgba(255,255,255,0.4);
    transition: var(--m-transition);
}
.matec-nav-label {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Main content padding bottom for nav */
.matec-content {
    padding-bottom: 80px;
}

/* ── Page Header inside app ─────────────────────────────────── */
.matec-page-header {
    background: var(--m-green);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.matec-page-back {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    cursor: pointer;
}
.matec-page-header h2 {
    font-size: 17px;
    font-weight: 700;
    color: white;
    flex: 1;
}

/* ── List Items ─────────────────────────────────────────────── */
.matec-list-section { padding: 0 0 8px; }
.matec-list-item {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: var(--m-transition);
    text-decoration: none;
}
.matec-list-item:hover { background: rgba(255,255,255,0.04); }
.matec-list-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.matec-list-info { flex: 1; min-width: 0; }
.matec-list-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.matec-list-sub {
    font-size: 12px;
    color: var(--m-text3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.matec-list-right { text-align: right; flex-shrink: 0; }
.matec-list-amount {
    font-size: 14px;
    font-weight: 700;
    color: var(--m-green-bright);
    display: block;
    margin-bottom: 2px;
}
.matec-list-amount.due   { color: var(--m-red2); }
.matec-list-amount.draft { color: #9ca3af; }
.matec-list-date {
    font-size: 10px;
    color: var(--m-text3);
    display: block;
}

/* Badge statut mini */
.matec-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
}
.ms-paid    { background: rgba(16,185,129,0.2); color: var(--m-green-bright); }
.ms-conf    { background: rgba(59,130,246,0.2);  color: #60a5fa; }
.ms-draft   { background: rgba(107,114,128,0.2); color: #9ca3af; }
.ms-partial { background: rgba(245,158,11,0.2);  color: var(--m-gold2); }
.ms-cancel  { background: rgba(239,68,68,0.2);   color: var(--m-red2); }

/* ── Detail Page ────────────────────────────────────────────── */
.matec-detail-header {
    background: linear-gradient(180deg, var(--m-green) 0%, var(--m-green2) 100%);
    padding: 20px 20px 28px;
    text-align: center;
}
.matec-detail-amount {
    font-size: 40px;
    font-weight: 900;
    color: white;
    letter-spacing: -1.5px;
    margin-bottom: 4px;
}
.matec-detail-ref {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

.matec-detail-body {
    background: var(--m-bg2);
    border-radius: 20px 20px 0 0;
    margin-top: -12px;
    padding: 20px 16px 80px;
}

.matec-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 13px;
}
.matec-info-row:last-child { border-bottom: none; }
.matec-info-row .ir-label { color: var(--m-text3); }
.matec-info-row .ir-value { color: white; font-weight: 600; text-align: right; max-width: 60%; }

.matec-product-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--m-radius-sm);
    padding: 12px 14px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.matec-product-name { font-size: 13px; font-weight: 600; color: white; margin-bottom: 3px; }
.matec-product-qty  { font-size: 12px; color: var(--m-text3); }
.matec-product-price { font-size: 14px; font-weight: 700; color: var(--m-green-bright); }

.matec-total-bar {
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: var(--m-radius-sm);
    padding: 14px 16px;
    margin-top: 12px;
}
.matec-total-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
    color: var(--m-text3);
}
.matec-total-row.final {
    font-size: 16px;
    font-weight: 800;
    color: white;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.matec-total-row.final .tv { color: var(--m-green-bright); }

/* ── Empty state ────────────────────────────────────────────── */
.matec-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--m-text3);
}
.matec-empty i { font-size: 48px; margin-bottom: 16px; display: block; opacity: 0.3; }
.matec-empty h3 { font-size: 16px; font-weight: 600; color: var(--m-text2); margin-bottom: 6px; }
.matec-empty p  { font-size: 13px; line-height: 1.5; }

/* ── Offline page ───────────────────────────────────────────── */
.matec-offline-page {
    min-height: 100vh;
    background: var(--m-bg2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px;
}
.matec-offline-page .offline-icon { font-size: 64px; margin-bottom: 20px; }
.matec-offline-page h1 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.matec-offline-page p  { font-size: 14px; color: var(--m-text3); margin-bottom: 24px; }

/* ── Winprogramme Footer Badge ──────────────────────────────── */
.matec-wp-badge {
    text-align: center;
    padding: 12px 16px 0;
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.5px;
}
.matec-wp-badge strong { color: var(--m-green-bright); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (min-width: 431px) {
    .matec-app {
        border-left: 1px solid rgba(255,255,255,0.1);
        border-right: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 0 60px rgba(0,0,0,0.5);
    }
    .matec-bottom-nav {
        max-width: var(--m-max-w);
    }
}
@media (max-width: 360px) {
    .matec-services-grid { grid-template-columns: repeat(3, 1fr); }
    .matec-kpi-row { grid-template-columns: repeat(2, 1fr); }
}
