/* =========================================================
   Meetup71 Payment Gateway — Demo (Educational Project)
   Green brand theme
   ========================================================= */

:root {
    --m71-green: #e1146d;        /* primary brand green */
    --m71-green-dark: #e1146d;   /* hover / deep green */
    --m71-green-light: #fdf1f5;  /* accent */
    --m71-pale: #eef9f1;         /* pale green tint */
    --text-dark: #333333;
    --text-muted: #64748B;
    --border-grey: #E2E8F0;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(180deg, #f2faf5 0%, #f1f5f9 100%);
    margin: 0;
    color: var(--text-dark);
}

/* ==================== PAGE TOP BAR ==================== */
.m71-topbar {
    background: linear-gradient(90deg, var(--m71-green-dark), var(--m71-green));
    color: white;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(14, 159, 79, 0.25);
    position: sticky;
    top: 0;
    z-index: 500;
}
.m71-topbar-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.m71-topbar-name { font-size: 20px; font-weight: 800; letter-spacing: 0.3px; }
.m71-demo-chip {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.45);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.6px;
}

/* ==================== PAGE LAYOUT ==================== */
.page-wrap {
    max-width: 960px;
    margin: 28px auto 60px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ==================== HERO CARD ==================== */
.m71-hero-card {
    background: white;
    border-radius: 12px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-top: 4px solid var(--m71-green);
}
.m71-hero-card h1 { margin: 0 0 10px; font-size: 26px; }
.demo-tag {
    background: var(--m71-pale);
    color: var(--m71-green-dark);
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    vertical-align: middle;
    border: 1px solid #bfe8cf;
}
.m71-hero-card p { color: var(--text-muted); max-width: 580px; margin: 0 auto 22px; line-height: 1.7; }

.m71-trigger-btn {
    background-color: var(--m71-green);
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(14, 159, 79, 0.35);
    transition: transform 0.1s ease, background 0.2s;
}
.m71-trigger-btn:hover { background-color: var(--m71-green-dark); transform: translateY(-1px); }

.m71-note {
    font-size: 12.5px;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 24px auto 0;
    max-width: 620px;
    line-height: 1.6;
}

/* ==================== REQUEST LIST ==================== */
.list-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}
.list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-grey);
    flex-wrap: wrap;
}
.list-head h2 { margin: 0; font-size: 18px; }
.count-badge {
    background: var(--m71-green);
    color: white;
    font-size: 12px;
    padding: 2px 9px;
    border-radius: 999px;
    vertical-align: middle;
}
.list-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-btn {
    background: #f7faf8;
    border: 1px solid var(--border-grey);
    color: #334155;
    padding: 7px 12px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 7px;
    cursor: pointer;
}
.mini-btn:hover { background: var(--m71-pale); }
.mini-btn.danger { color: #b91c1c; border-color: #fecaca; }
.mini-btn.danger:hover { background: #fef2f2; }

.table-wrap { overflow-x: auto; }
.req-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.req-table th {
    text-align: left;
    padding: 10px 16px;
    background: #f8faf9;
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px solid var(--border-grey);
}
.req-table td { padding: 11px 16px; border-bottom: 1px solid #f1f5f9; }
.req-table tbody tr:hover { background: #fafdfa; }
.req-table tr:last-child td { border-bottom: none; }
.empty-row td { text-align: center; color: #94a3b8; padding: 28px; }

.mono { font-family: 'Courier New', Courier, monospace; font-weight: bold; }
.pin-cell { font-family: 'Courier New', Courier, monospace; font-weight: bold; color: var(--m71-green-dark); }
.pin-cell.masked { color: #94a3b8; letter-spacing: 2px; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.badge-processing { background: #fef3c7; color: #b45309; }
.badge-confirmed { background: #dcfce7; color: #166534; }
.time-cell { color: var(--text-muted); font-size: 13px; white-space: nowrap; }

/* ==================== MODAL BASE LAYOUT ==================== */
.m71-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 9999;
}
.m71-overlay.active { opacity: 1; pointer-events: auto; }

.m71-modal-box {
    background: white;
    width: 440px;
    max-width: 94vw;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

/* Header UI Elements */
.m71-brand-header {
    background: white;
    padding: 6px 32px;
    text-align: center;
    border-bottom: 1px solid var(--border-grey);
}

/* Dynamic Multi-Step Routing Sheets */
.m71-step-screen { display: none; }
.m71-step-screen.active { display: block; }

/* Merchant Context Header Summary Banner */
.merchant-ribbon-bar {
    background: white;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.m-left { display: flex; align-items: center; gap: 12px; }
.m-avatar {
    width: 38px; height: 38px;
    background: var(--m71-green);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 11px;
}
.m-left h4 { margin: 0; font-size: 14px; color: var(--text-dark); letter-spacing: 0.5px; }
.m-left p { margin: 2px 0 0 0; font-size: 11px; color: var(--text-muted); }
.m-right { font-size: 18px; font-weight: bold; color: var(--text-dark); }

/* Main Green Functional Screen Form Area */
.green-workspace-area {
    background: var(--m71-green);
    padding: 35px 25px;
    color: white;
    text-align: center;
    min-height: 200px;
}
.input-lbl-msg { display: block; font-size: 16px; margin-bottom: 20px; font-weight: 400; line-height: 1.4; }

.input-field-container input {
    width: 100%;
    max-width: 320px;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    text-align: center;
    color: #333;
    outline: none;
}
.input-field-container input::placeholder { color: #A1A1A1; font-weight: normal; }

.terms-notif-link { font-size: 12px; margin-top: 20px; opacity: 0.9; }
.terms-notif-link a { color: white; text-decoration: underline; font-weight: 500; }

/* Processing & Status Elements */
.state-centered { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 280px; }

.loading-dots-wave span {
    display: inline-block;
    width: 14px; height: 14px;
    margin: 0 4px;
    background: white;
    border-radius: 50%;
    opacity: 0.4;
    animation: waveDots 1.2s infinite alternate;
}
.loading-dots-wave span:nth-child(2) { animation-delay: 0.4s; }
.loading-dots-wave span:nth-child(3) { animation-delay: 0.8s; }

@keyframes waveDots { to { opacity: 1; transform: translateY(-6px); } }
.processing-msg-text { margin-top: 15px; font-size: 18px; font-weight: 400; }

.hand-stop-icon { font-size: 44px; margin-bottom: 15px; }
.alert-confirm-title { font-size: 18px; font-weight: normal; max-width: 280px; line-height: 1.4; margin: 0; }

.check-circle-icon {
    width: 50px; height: 50px;
    border: 2px solid white;
    border-radius: 50%;
    font-size: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}
.success-status-headline { font-size: 20px; margin: 0 0 10px 0; font-weight: 500; }

.cross-circle-icon {
    width: 50px; height: 50px;
    border: 2px solid white;
    border-radius: 50%;
    font-size: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}
.cancelled-status-headline { font-size: 20px; margin: 0 0 10px 0; font-weight: 500; }
.redirecting-notice-msg { font-size: 13px; opacity: 0.9; margin: 0; }
.redirecting-notice-msg a { color: white; text-decoration: underline; }

/* Bottom Operational Dynamic Footer Controls Group */
.m71-sticky-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px 32px;
    border-top: 1px solid var(--border-grey);
}
.footer-action-ctrl {
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    text-align: center;
}
.btn-cancel-mode { background: #f7f7f7; border: 1px solid #dedede; color: #607D8B; }
.btn-confirm-mode { background: #dedede; color: #9CA3AF; cursor: not-allowed; }
.btn-confirm-mode.ready { background: var(--m71-green); color: white; cursor: pointer; }

.btn-dialog-yes { background: #ECEFF1; color: #333; }
.btn-dialog-no { background: var(--m71-green); color: white; }

/* Legal Corporate Bottom Component Block Layout */
.m71-legal-footer { background: white; padding: 6px 12px 12px 12px; text-align: center; }
.helpline-contact-row { font-size: 12px; color: var(--m71-green); font-weight: bold; margin-bottom: 4px; }
.copyright-legal-text { font-size: 10px; color: var(--text-muted); margin: 0; }

/* PIN input styling */
.m71-pin-field {
    width: 100%;
    max-width: 360px;
    height: 45px;
    background: #FFFFFF;
    border: none;
    border-radius: 4px;
    text-align: center;
    outline: none;
    font-weight: bold;
    color: #333333;
    font-size: 18px;
    letter-spacing: -4px;
    font-family: 'Courier New', Courier, monospace;
    padding: 0;
    line-height: 45px;
}
.green-workspace-area .input-field-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 15px;
}

/* ==================== PRICE DISPLAY (Pay 100 BDT) ==================== */
.price-display {
    font-size: 42px;
    font-weight: 800;
    color: var(--m71-green-dark);
    margin: 6px 0 0;
    line-height: 1.2;
}
.price-sub {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 2px 0 20px;
}
.admin-link-row { margin-top: 16px; }
.admin-link-row a {
    color: var(--m71-green-dark);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.admin-link-row a:hover { text-decoration: underline; }

/* ==================== ADMIN PAGE ==================== */
.admin-word {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    vertical-align: middle;
    letter-spacing: 1px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 340px;
    margin: 0 auto;
}
.login-form input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border-grey);
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    text-align: center;
    color: var(--text-dark);
    box-sizing: border-box;
}
.login-form input:focus {
    border-color: var(--m71-green);
    box-shadow: 0 0 0 3px rgba(14, 159, 79, 0.12);
}
.login-error { color: #b91c1c; font-size: 13px; min-height: 18px; margin: 4px 0 0; }

.admin-welcome-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 10px;
    padding: 12px 18px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.05);
    font-size: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
#adminPanel .list-card { margin-top: 0; }
.welcome-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ==================== STATS CARDS ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 18px 16px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--border-grey);
}
.stat-card.ok { border-left-color: #16a34a; }
.stat-card.warn { border-left-color: #f59e0b; }
.stat-card.money { border-left-color: var(--m71-green); }
.stat-num { font-size: 26px; font-weight: 800; color: var(--text-dark); line-height: 1.2; }
.stat-card.money .stat-num { color: var(--m71-green-dark); }
.stat-lbl {
    font-size: 11.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ==================== FILTERS & ROW ACTIONS ==================== */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters input, .filters select {
    padding: 8px 12px;
    border: 1px solid var(--border-grey);
    border-radius: 7px;
    font-size: 13px;
    outline: none;
    background: white;
    color: var(--text-dark);
    font-family: inherit;
}
.filters input { min-width: 210px; }
.filters input:focus, .filters select:focus { border-color: var(--m71-green); }

.row-del {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 12px;
}
.row-del:hover { background: #fee2e2; }
