/* MegaPay Main Stylesheet */
:root {
    --primary: #08501e;
    --primary-light: #127931;
    --primary-dark: #043112;
    --secondary: #6c757d;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f4f7fc;
    --dark: #121212;
    --white: #ffffff;
    --gray: #6c757d;
    --border-color: #e2e8f0;
    --blue: #17b111;
    --indigo: #10f223;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 12px;
    --font: "Poppins", system-ui, -apple-system, sans-serif;
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font);
}

body {
    background-color: var(--light);
    color: #334155;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

/* Utility Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Header/Navigation on Home/Auth pages */
.mega-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    padding: 1rem 2rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}

.logo-container span {
    color: var(--indigo);
}

/* Nav Menu structures */
.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    margin-left: 2.5rem;
}

.nav-links-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link-item {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-link-item:hover, .nav-link-item.active {
    color: var(--primary);
}

.nav-auth-inner {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-left: auto;
}

/* Dropdown styling */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 0;
    transition: var(--transition);
}

.nav-dropdown-toggle:hover, .nav-dropdown-toggle.active {
    color: var(--primary);
}

.nav-dropdown-toggle span {
    font-size: 18px;
    transition: transform var(--transition);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    right: auto;
    transform: translateY(10px);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    width: 320px;
    display: none;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.nav-dropdown-menu.show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-item {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
    transition: var(--transition);
}

.dropdown-item:hover, .dropdown-item.active {
    background-color: var(--light);
    color: var(--primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--primary);
    align-items: center;
    justify-content: center;
    outline: none;
}

.nav-toggle span {
    font-size: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    min-height: 44px; /* Ensure 44px height for touch targets */
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    min-height: 44px;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    box-shadow: 0 4px 14px rgba(8, 80, 30, 0.3);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    min-height: 44px;
}

.btn-secondary:hover {
    background-color: rgba(8, 80, 30, 0.05);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
    min-height: 44px;
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 1.5rem 2.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--indigo);
}

/* Feature Cards Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(8, 80, 30, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 28px;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* Auth Cards Flow (Login & Signup) */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 2rem 1rem;
    background-color: var(--light);
}

.auth-card {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: var(--radius);
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.auth-title {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.auth-title p {
    color: var(--gray);
    margin-top: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #475569;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(8, 80, 30, 0.15);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray);
}

/* Alert Notification System */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease-out;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Configuration Instruction Banner (Supabase check) */
.config-banner {
    background-color: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
}

/* Admin Dashboard CSS layout */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.admin-header-row {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-table-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    grid-column: span 12;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th, .admin-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background-color: var(--light);
    font-weight: 600;
    color: #475569;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.approved {
    background: #d1fae5;
    color: #059669;
}

.status-badge.rejected {
    background: #fee2e2;
    color: #dc2626;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
}

.action-btn {
    padding: 8px 16px;
    min-height: 44px; /* Ensure 44px height for touch targets */
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-approve {
    background-color: var(--success);
    color: var(--white);
    margin-right: 5px;
}

.action-approve:hover {
    background-color: #218838;
}

.action-reject {
    background-color: var(--danger);
    color: var(--white);
}

.action-reject:hover {
    background-color: #c82333;
}

/* CSS Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    max-width: 500px;
    width: 90%;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    position: relative;
    animation: popUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--dark);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Account styling additions */
.account-info-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.account-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.account-row span:first-child {
    font-weight: 500;
    color: var(--gray);
}

.account-row span:last-child {
    font-weight: 600;
}

/* Responsive Overrides */
.two-col-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 991px) {
    .two-col-grid, .split-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    .two-col-grid > div, .split-grid > div {
        text-align: center;
    }
    .hero .two-col-grid {
        text-align: center !important;
    }
    .hero h1, .hero p {
        text-align: center !important;
    }
    .hero .hero-btns-container {
        justify-content: center !important;
    }
}

.admin-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .admin-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mega-nav {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
    }
    
    .nav-toggle {
        display: inline-flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem 1.5rem 3rem 1.5rem; /* Enhanced padding bottom for touch accessibility and scroll padding safety */
        gap: 1.5rem;
        margin-left: 0;
        max-height: calc(100vh - 85px); /* Ensure dropdown items fit comfortaby in viewport heights */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Butter-smooth scrolling on mobile Safari and WebKit browsers */
        z-index: 1010; /* Extra high z-index to overlay nicely */
    }
    
    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    
    .nav-links-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .nav-link-item {
        padding: 0.75rem 0.5rem;
        border-bottom: 1px solid var(--light);
        width: 100%;
    }
    
    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 0.75rem 0.5rem;
        border-bottom: 1px solid var(--light);
    }

    .nav-dropdown-toggle.active span {
        transform: rotate(180deg) !important;
    }
    
    .nav-dropdown-menu {
        position: relative !important;
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        border-left: 3px solid var(--primary) !important;
        background-color: #f8fafc !important;
        border-radius: 0 8px 8px 0 !important;
        padding: 0.5rem 0.75rem !important;
        margin-top: 0.5rem !important;
        display: none;
        opacity: 1 !important;
        pointer-events: auto !important;
        flex-direction: column !important;
        gap: 6px !important;
        z-index: 1020 !important; /* Ensure high z-index inside the menu */
        overflow: hidden !important; /* Proper overflow management */
    }
    
    .nav-dropdown-menu.show {
        display: flex !important;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    .dropdown-item {
        padding: 0.75rem 1rem !important;
        border-radius: 6px !important;
        gap: 12px !important;
    }
    
    .dropdown-item:hover, .dropdown-item.active {
        background-color: rgba(8, 80, 30, 0.06) !important;
    }
    
    .nav-auth-inner {
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
        width: 100%;
        gap: 0.75rem;
        border-top: 1px solid var(--border-color);
        padding-top: 1.5rem;
    }
    
    .nav-auth-inner .btn {
        width: 100%;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Middle Tier scaling to fit buttons without overflow */
@media (min-width: 1025px) and (max-width: 1240px) {
    .mega-nav {
        padding: 1rem 1.25rem;
    }
    .logo-container {
        font-size: 1.3rem;
    }
    .nav-menu {
        margin-left: 1.5rem;
    }
    .nav-links-inner {
        gap: 1.25rem;
    }
    .nav-link-item, .nav-dropdown-toggle {
        font-size: 0.88rem;
    }
    .nav-auth-inner {
        gap: 0.8rem;
        margin-left: 1rem;
    }
    .nav-auth-inner .btn {
        padding: 0.65rem 1rem;
        font-size: 0.82rem;
        min-height: 40px;
    }
}

@media (max-width: 576px) {
    .admin-overview-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Styling for elegant Language & Currency Dropdowns */
.nav-selectors-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 1.2rem;
}

.nav-select-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: var(--light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 10px;
    transition: var(--transition);
}

.nav-select-wrapper:hover {
    border-color: var(--primary);
    background-color: var(--white);
}

.nav-select-wrapper span {
    font-size: 16px;
    color: var(--primary-dark);
    margin-right: 4px;
}

.mega-select-input {
    background: none;
    border: none;
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
    outline: none;
    padding: 2px 4px;
}

@media (max-width: 1024px) {
    .nav-selectors-container {
        margin: 0.75rem 0;
        width: 100%;
        justify-content: flex-start;
        padding: 0;
    }
    .nav-select-wrapper {
        flex: 1;
        justify-content: center;
        padding: 8px 12px;
    }
}

/* Home Page Testimonial Slideshow Styling */
.home-reviews-section {
    background-color: #f8fafc;
    padding: 5rem 0; /* Full horizontal wrap */
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

/* Infinite scrolling marquee css */
.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 1.5rem 0;
}

.marquee-track {
    display: flex;
    overflow: hidden;
    gap: 2rem;
    width: 100%;
}

.marquee-group {
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
    gap: 2rem;
    min-width: 100%;
    animation: scroll-left-marquee 35s linear infinite;
}

.marquee-wrapper:hover .marquee-group {
    animation-play-state: paused;
}

.home-testimonial-card-marquee {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 380px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.home-testimonial-footer-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 0.85rem;
    margin-top: auto; /* Push footer elements to bottom */
}

@keyframes scroll-left-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% - 2rem));
    }
}

/* Responsive adjustments for marquee */
@media (max-width: 576px) {
    .home-testimonial-card-marquee {
        width: 310px;
        padding: 1.25rem;
    }
    .home-testimonial-body {
        font-size: 0.88rem;
    }
}

.home-testimonial-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem; /* Compact & elegant padding */
    box-shadow: 0 8px 30px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    box-sizing: border-box;
}

.home-testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
}

.reviewer-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(16, 242, 35, 0.25);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.reviewer-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 2px 0;
}

.reviewer-meta {
    font-size: 0.78rem;
    color: var(--gray);
    margin: 0;
}

.home-testimonial-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--secondary);
    font-weight: 400;
    margin: 0;
}

/* Store Specific Badges and feedback */
.store-review-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.store-review-badge.google-play {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.store-review-badge.apple-store {
    background-color: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.review-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: -2px;
}

.review-date-badge {
    font-size: 0.78rem;
    color: var(--gray);
    font-weight: 500;
}

.home-testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 0.25rem;
    flex-wrap: wrap;
    gap: 8px;
}

.review-helpful-box {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--gray);
}

.helpful-count {
    font-weight: 600;
    color: var(--primary-dark);
}

.helpful-action-buttons {
    display: flex;
    gap: 6px;
}

.helpful-mini-btn {
    border: 1px solid var(--border-color);
    background-color: var(--white);
    color: var(--secondary);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.helpful-mini-btn:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.home-txn-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--primary-dark);
    background: rgba(16, 242, 35, 0.08);
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(16, 242, 35, 0.15);
}

.slideshow-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 1px solid var(--border-color);
    color: var(--primary-dark);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: var(--transition);
    z-index: 5;
}

.slideshow-nav-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 6px 16px rgba(16, 121, 49, 0.2);
}

.slideshow-nav-btn.prev {
    left: -15px;
}

.slideshow-nav-btn.next {
    right: -15px;
}

.slideshow-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
}

.slideshow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.slideshow-dot.active {
    background-color: var(--primary);
    width: 24px;
    border-radius: 5px;
}

@media (max-width: 576px) {
    .slideshow-outer {
        padding: 0;
    }
    .slideshow-nav-btn {
        display: none;
    }
    .home-testimonial-card {
        padding: 1.5rem;
    }
}

/* Real-time Withdrawal Ticker Toasts */
#withdrawal-ticker-container {
    position: fixed;
    top: 95px; /* Safely clears the header */
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 330px;
    max-width: calc(100vw - 40px);
    pointer-events: none;
}

.withdrawal-ticker-toast {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(60px) scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

.withdrawal-ticker-toast.show {
    transform: translateX(0) scale(1);
    opacity: 1;
}

.withdrawal-ticker-toast.fade-out {
    transform: translateY(-20px) scale(0.92);
    opacity: 0;
}

.ticker-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(16, 242, 35, 0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ticker-content {
    flex-grow: 1;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--secondary);
}

.ticker-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.ticker-name {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 0.88rem;
}

.ticker-country {
    font-size: 0.72rem;
    color: var(--gray);
    font-weight: 500;
}

.ticker-message {
    color: var(--secondary);
    margin: 0;
}

.ticker-badge-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.ticker-amount {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

.ticker-time {
    font-size: 0.7rem;
    color: var(--gray);
    font-family: var(--font-mono);
}

@media (max-width: 576px) {
    #withdrawal-ticker-container {
        top: auto;
        bottom: 20px;
        right: 15px;
        left: 15px;
        width: auto;
        max-width: none;
    }
    .withdrawal-ticker-toast {
        transform: translateY(40px) scale(0.95);
    }
    .withdrawal-ticker-toast.show {
        transform: translateY(0) scale(1);
    }
}
