/* Modern Fonts Loading Locally */
@font-face {
    font-family: 'Noto Sans Bengali';
    src: url('../fonts/NotoSansBengali-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Root variables blending robust colors and structural elegance */
:root {
    --primary-bg: #f8fafc;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-border: rgba(255, 255, 255, 0.6);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    
    --brand-bkash: #e2136e;
    --brand-nagad: #ec2028;
    --brand-rocket: #8c1515;
    
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    /* Gradient Header Colors */
    --header-grad-1: #FF416C;
    --header-grad-2: #FF4B2B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans Bengali', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--primary-bg);
    /* Soft, dynamic radial background for that premium feel */
    background-image: 
        radial-gradient(at 0% 0%, hsla(343,99%,61%,0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(24,100%,60%,0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(280,80%,60%,0.15) 0px, transparent 50%),
        radial-gradient(at 0% 100%, hsla(190,100%,50%,0.15) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    line-height: 1.6;
}

/* Glassmorphic Minimal Container */
.container-box {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-width: 520px;
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--surface-border);
    overflow: hidden;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Vibrant Header Area */
.header {
    background: linear-gradient(135deg, var(--header-grad-1), var(--header-grad-2));
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    color: white;
    position: relative;
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.icon-wrapper svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: white;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header p {
    font-size: 1.05rem;
    opacity: 0.95;
    font-weight: 500;
}

/* Main Content Padded Area */
.content {
    padding: 2rem 2rem 1rem;
}

.message {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.highlight {
    color: var(--danger);
    font-weight: 700;
}

/* Client Info Search System */
.search-card {
    background: rgba(248, 250, 252, 0.8);
    border: 1px dashed var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.search-card:focus-within {
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

.search-title {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 0.8rem;
    display: block;
}

.search-input-group {
    display: flex;
    gap: 10px;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}

.search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.search-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover { background: #2563eb; }

/* Search Results (injected via pure JS) */
#resultContainer {
    margin-top: 1rem;
    text-align: left;
    display: none;
}

.result-item {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--success);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.result-item .client-code {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-bkash);
    margin-top: 5px;
    letter-spacing: 1px;
}

/* SVG Section Titles */
.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--brand-bkash);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Payment Methods Grid */
.payment-methods {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.method-card {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: white;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.method-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-bkash);
    box-shadow: 0 8px 20px rgba(226, 19, 110, 0.15);
}

.method-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--brand-bkash);
    border-radius: 4px 0 0 4px;
}

.method-card.nagad::before { background: var(--brand-nagad); }
.method-card.nagad:hover { border-color: var(--brand-nagad); box-shadow: 0 8px 20px rgba(236, 32, 40, 0.15); }

.method-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    margin-right: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background: white; /* Neutral background in case PNG is transparent but meant for white */
    border: 1px solid var(--border);
}

.method-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.method-icon.nagad { background: linear-gradient(135deg, var(--brand-nagad), #c4181f); font-size: 20px; font-family: sans-serif;}

.method-details {
    flex: 1;
}

.method-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.method-details p {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 1px;
    margin: 0;
}

.method-details span.type {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: normal;
}

.method-qr {
    margin-left: 1rem;
    padding-left: 1rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    border-left: 2px solid var(--border);
}

/* Minimal Video Container */
.video-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    position: relative;
    padding-top: 56.25%;
    background: #000;
    border: 1px solid var(--border);
}

.video-wrapper video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
}

/* Support Area */
.support {
    background: linear-gradient(to right, #f0fdf4, #e0f2fe);
    border: 1px solid #bae6fd;
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
}

.support p {
    color: #0369a1;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.btn-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--success);
    color: white !important;
    text-decoration: none;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    width: 100%;
}

.btn-call:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    text-decoration: none;
}

.btn-call svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Clean Footer */
.footer {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    background: rgba(248, 250, 252, 0.5);
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer a img {
    height: 35px;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
    filter: grayscale(100%);
}

.footer a:hover img {
    opacity: 1;
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* Spinner */
.loader {
    display: none;
    width: 20px; height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
    .container-box { border-radius: 0; min-height: 100vh; border: none; }
    body { padding: 0; display: block; }
    .content { padding: 1.5rem; }
    .header { border-radius: 0; }
}
