/* Bangabhumi Last Digits Mobile UI Styles */

.bb-app-container {
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #383838;
    color: #ffffff;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    overflow: hidden;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Background Abstract Fluid Blobs */
.bb-app-container::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -80px;
    width: 240px;
    height: 240px;
    background: #e6005c;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.bb-app-container::after {
    content: "";
    position: absolute;
    bottom: -50px;
    left: -70px;
    width: 220px;
    height: 220px;
    background: #00a877;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Header bar */
.bb-header {
    background: transparent;
    color: #ffffff;
    padding: 16px 18px 8px;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    position: relative;
    z-index: 10;
}

.bb-back-btn {
    background: #1e1e1e;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    cursor: pointer;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background 0.2s;
}

.bb-back-btn:hover {
    background: #2a2a2a;
}

.bb-header-title {
    flex-grow: 1;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Screen wrapper */
.bb-screen {
    padding: 16px 20px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.bb-screen-hidden {
    display: none !important;
}

/* Home Grid Menu (2 columns, deep black-gray rounded cards) */
.bb-home-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 16px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 24px;
}

.bb-grid-item {
    background-color: #1a1a1a;
    border-radius: 28px;
    padding: 22px 10px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.18s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    border: none;
    min-height: 145px;
    box-sizing: border-box;
    user-select: none;
}

.bb-grid-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.bb-grid-item:active {
    transform: scale(0.98);
}

/* Circle Icon Badges */
.bb-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #ffffff;
    flex-shrink: 0;
}

.bb-icon-circle svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Specific Badge Background Colors exactly matching screenshot */
.bg-icon-singapore {
    background-color: #0288d1; /* Crisp Ocean Blue */
}

.bg-icon-dear {
    background-color: #009688; /* Teal Cyan */
}

.bg-icon-combination {
    background-color: #1e88e5; /* Electric Blue */
}

.bg-icon-fax {
    background-color: #d81b60; /* Crimson Pink */
}

.bg-icon-lucky {
    background-color: #7b1fa2; /* Deep Purple / Violet */
}

.bg-icon-share {
    background-color: #ff9800; /* Warm Amber Orange */
}

.bg-icon-privacy {
    background-color: #c2185b; /* Magenta / Berry Rose */
}

.bg-icon-rate {
    background-color: #00897b; /* Dark Sea Teal */
}

/* Card Typography */
.bb-grid-label {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.25;
    color: #f1f5f9;
    letter-spacing: -0.01em;
    padding: 0 4px;
}

/* Disclaimer Box matching screenshot bottom card */
.bb-home-disclaimer {
    background-color: #151515;
    border-radius: 26px 26px 0 0;
    padding: 22px 20px 26px;
    margin: auto -20px -24px -20px;
    text-align: center;
    color: #d1d5db;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.4);
    position: relative;
    z-index: 5;
}

.bb-home-disclaimer-title {
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.bb-home-disclaimer-text {
    font-size: 0.78rem;
    line-height: 1.45;
    color: #9ca3af;
    margin: 0;
    font-weight: 400;
}

/* Submenu Screen List */
.bb-list-menu {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.bb-list-item {
    background-color: #1a1a1a;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    border: 1px solid #333;
}

.bb-list-item:hover {
    transform: translateY(-2px);
    background-color: #222222;
}

.bb-list-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #d63384;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-right: 16px;
}

.bb-list-label {
    font-size: 1.05rem;
    font-weight: 700;
}

/* Results Screen Elements */
.bb-search-bar {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    background-color: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #3b82f6;
    padding: 6px 12px;
}

.bb-search-label {
    font-weight: 700;
    color: #ffffff;
    margin-right: 10px;
    font-size: 1rem;
}

.bb-search-input {
    background: transparent;
    border: none;
    color: #ffffff;
    flex-grow: 1;
    font-size: 1rem;
    outline: none;
}

/* Results Table */
.bb-table-wrapper {
    background-color: #111111;
    border-radius: 8px;
    overflow-x: auto;
}

.bb-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.95rem;
}

.bb-table th {
    background-color: #2e7d32;
    color: #ffffff;
    font-weight: 700;
    padding: 10px 6px;
    border: 1px solid #333;
}

.bb-table td {
    padding: 10px 6px;
    border: 1px solid #333;
    font-weight: 700;
}

.bb-table tr:nth-child(even) {
    background-color: #1a1a1a;
}

.bb-table tr td:first-child {
    background-color: #0f172a;
    color: #38bdf8;
}

/* Form Styles */
.bb-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bb-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bb-form-group label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.bb-form-control {
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    color: #ffffff;
    padding: 10px 14px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.bb-form-control:focus {
    border-color: #d63384;
}

.bb-input-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    padding: 12px;
    border-radius: 12px;
}

.bb-input-grid-20 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    padding: 12px;
    border-radius: 12px;
}

.bb-grid-field {
    width: 100%;
    background-color: #2b2b2b;
    border: 1px solid #444;
    border-radius: 6px;
    color: #ffffff;
    padding: 6px;
    text-align: center;
    font-size: 0.9rem;
    outline: none;
    box-sizing: border-box;
}

.bb-grid-field:focus {
    border-color: #d63384;
}

.bb-btn {
    background-color: #d63384;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.bb-btn:hover {
    background-color: #c2185b;
}

/* Disclaimer / footer */
.bb-footer {
    background-color: #111111;
    padding: 12px;
    text-align: center;
    font-size: 0.75rem;
    color: #888888;
    border-top: 1px solid #222;
    margin-top: auto;
}

.bb-footer strong {
    color: #cccccc;
}

.bb-message {
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
    display: none;
}

.bb-message.success {
    display: block;
    background-color: #1b5e20;
    color: #e8f5e9;
}

.bb-message.error {
    display: block;
    background-color: #b71c1c;
    color: #ffebee;
}

/* Spinner */
.bb-spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: bb-spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes bb-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


