/* Modern Black & White Theme - Sidebar Layout */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #f4f6f8;
    --card-bg: #ffffff;
    --card-border: #e0e0e0;
    --text-primary: #1a1a1a;
    --text-secondary: #65676b;

    /* Turkish Theme: Red & White */
    --accent: #E30A17;
    /* Turkey Red */
    --accent-dark: #b0000a;
    --accent-gradient: linear-gradient(135deg, #E30A17 0%, #C8102E 100%);
    --accent-dim: rgba(227, 10, 23, 0.08);

    --sidebar-bg: #ffffff;
    --btn-primary-bg: var(--accent-gradient);
    --btn-primary-text: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    padding: 0;
    padding-top: 80px;
    background-image: url('https://sromobile.com/assets/frontend/homev2/assets/images/job/img-hunter.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-attachment: fixed;
    background-size: 400px;
    background-blend-mode: overlay;
}

/* Add a semi-transparent overlay to ensure body background doesn't interfere too much */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(244, 246, 248, 0.85);
    /* Matches --bg-color with transparency */
    z-index: -1;
}

/* Step-by-Step UI */
.step-container {
    display: none;
    animation: slideIn 0.4s ease-out;
}

.step-container.active {
    display: block;
}

.step-header {
    display: flex;
    justify-content: space-between;
    margin: 1.5rem auto 1rem auto;
    /* Added margin top and center */
    position: relative;
    padding: 0;
    max-width: 300px;
    /* Even more compact */
    width: 100%;
}

.step-header::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    /* Aligned with circle centers */
    right: 20px;
    height: 2px;
    background: var(--card-border);
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.step-circle {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.3s;
}

.step-item.active {
    color: var(--accent);
}

.step-item.active .step-circle {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-dim);
}

.step-item.completed .step-circle {
    background: #008744;
    color: white;
    border-color: #008744;
}

/* Back Link - Minimal Circular Style */
.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #f3f4f6;
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.back-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: scale(1.1);
}

.back-link ion-icon {
    font-size: 1.2rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Main Header - Modern White */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: #ffffff;
    /* Clean white */
    border-bottom: 1px solid #e5e7eb;
    /* Subtle border */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    /* Soft shadow */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1000;
    color: #1f2937;
    /* Dark text for contrast */
}

/* Header specific text colors */
.main-header .nav-link {
    color: #6b7280;
    /* Medium gray */
}

.main-header .nav-link.active {
    color: #1f2937;
    /* Dark gray */
    font-weight: 600;
}

.main-header .icon-btn {
    color: #374151;
    /* Dark gray for icons */
}

.main-header .logo-icon {
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.main-header .search-input {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #1f2937;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo-area {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--text-primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-size: 1.2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

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

.header-search {
    flex: 0 1 400px;
    position: relative;
    display: none;
    /* Hide on small screens */
}

@media(min-width: 768px) {
    .header-search {
        display: block;
    }
}

.search-input {
    width: 100%;
    background: #151515;
    border: 1px solid var(--card-border);
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border-radius: 20px;
    color: white;
    font-family: inherit;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: 0.2s;
    display: flex;
    align-items: center;
}

.icon-btn:hover {
    opacity: 1;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--card-border);
}

.layout-container {
    max-width: 1200px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    padding: 0 1rem;
    position: relative;
}

/* Content Sections (Left) */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 1rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.section-number {
    background: var(--accent);
    color: var(--bg-color);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Form Elements */
.input-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
}

.form-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input,
.form-select {
    width: 100%;
    background: #fdfdfd;
    border: 1px solid var(--card-border);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    transition: 0.2s;
}

.form-input:focus,
.form-select:focus {
    border-color: #000;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
    /* Soft focus ring */
}

/* Tabs */
.tabs {
    display: flex;
    flex-wrap: wrap;
    /* Added to allow wrapping instead of scrolling */
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    padding-bottom: 5px;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: 0.2s;
}

.tab-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(227, 10, 23, 0.3);
}

/* Grids */
.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2rem;
    /* Increased for more breathing room */
    margin-bottom: 2rem;
    /* Space for floating qty controls */
}

.item-card {
    background: #ffffff;
    /* FORCE WHITE */
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1rem;
    cursor: default;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
    overflow: visible;
    /* Changed from hidden to show floating controls */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    /* Extra space for floating controls */
}

/* Ensure text inside card is dark since bg is white */
.item-card h4 {
    color: #333;
}

.item-card p {
    color: #666;
}

.item-card:hover {
    border-color: #2c3e50;
    /* Dark neutral instead of red */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.12);
    /* Subtle dark shadow */
}

.card-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: transparent;
    padding: 0;
    margin-top: 1rem;
    border: none;
    /* Remove position relative - not needed */
}

.price-tag {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.1rem;
    /* Larger price */
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    width: 100%;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    /* Space for absolute qty control */
}

/* Position relative to .item-card, not .card-footer */
.item-card .qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    /* Match card background */
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    position: absolute;
    bottom: -12px;
    /* Half outside the card */
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: 0.2s;
}

.qty-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.qty-input {
    width: 30px;
    height: 24px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 0.9rem;
    border-radius: 4px;
    pointer-events: none;
    /* User uses buttons */
}

.item-card.selected {
    border-color: var(--accent);
    background: var(--accent-dim);
    box-shadow: 0 0 0 1px var(--accent-dim);
}

.item-card.selected::after {
    content: '✔';
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--accent);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-img {
    width: 80px;
    height: auto;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.2));
    transition: transform 0.3s ease;
}

.item-card:hover .product-img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #3b82f6;
    /* Blue for Physical */
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 5;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.8rem;
}

.payment-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
}

.payment-card.selected {
    border-color: var(--accent);
    background: var(--accent-dim);
}

/* Sidebar (Right) - Desktop Fixed Panel Style */
@media (min-width: 1100px) {
    body {
        padding-right: 360px;
        /* Make space for fixed sidebar */
    }

    .layout-container {
        display: block;
        /* Disable grid */
        max-width: 900px;
        /* Centered content */
        margin: 2rem auto;
    }



    .sidebar {
        position: fixed;
        top: 70px;
        /* Below header */
        right: 0;
        bottom: 0;
        width: 360px;
        background: var(--sidebar-bg);
        border-left: 1px solid var(--card-border);
        border-radius: 0;
        /* Square edges for panel */
        padding: 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.03);
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        z-index: 900;
        overflow-y: auto;
        /* Scrollable if too tall */
        animation: slideInRight 0.5s ease-out;
    }
}

/* Agreement Checkbox */
.agreement-container {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 1rem;
    cursor: pointer;
    user-select: none;
}

.agreement-container input {
    margin-top: 3px;
    cursor: pointer;
    accent-color: var(--accent);
}

.agreement-text {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
}

.sidebar .pay-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

/* Sidebar Internal Styles */
.sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.summary-row span:last-child {
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
}

.total-section {
    border-top: 1px solid var(--card-border);
    padding-top: 1rem;
    margin-top: auto;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.total-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 700;
}

.pay-btn {
    width: 100%;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1);
}

.pay-btn:disabled {
    background: #333;
    color: #555;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Header Dropdowns */
.header-right {
    position: relative;
}

.dropdown-container {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 260px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    display: none;
    /* Hidden by default */
    z-index: 1001;
    margin-top: 10px;
    color: #333;
    animation: fadeIn 0.2s ease-out;
}

.dropdown-menu.active {
    display: block;
}

/* Dropdown items */
.dropdown-item {
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    transition: 0.2s;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: #f5f5f5;
    border-left-color: var(--accent);
}

.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 0.5rem 0;
}

/* User Profile specific */
.user-profile-header {
    padding: 1rem 1.2rem;
    text-align: center;
    border-bottom: 1px solid #eee;
    background: #fcfcfc;
}

.user-profile-img {
    width: 50px;
    height: 50px;
    background: #ddd;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #666;
}

.user-balance {
    color: #444;
    font-weight: 500;
    font-size: 0.9rem;
}

.top-up-btn-small {
    background: var(--accent);
    color: white;
    border: none;
    width: 100%;
    padding: 0.5rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    cursor: pointer;
    font-weight: 600;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .layout-container {
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
        padding: 0 1rem;
        /* Consistent side padding */
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
    }

    .sidebar {
        /* On mobile, sidebar goes to bottom */
        order: 2;
        position: relative;
        top: 0;
        margin-bottom: 2rem;
        z-index: 1;
    }

    .main-content {
        order: 1;
    }

    .main-header {
        padding: 0 1rem;
    }

    .header-search {
        display: none;
        /* Hide search on mobile header to save space */
    }
}

@media (max-width: 600px) {
    body {
        padding-top: 60px;
        /* Smaller header padding */
    }

    .main-header {
        height: 60px;
        padding: 0 1rem;
    }

    .header-left {
        gap: 0.5rem;
    }

    .logo-area span {
        display: none;
        /* Hide text logo on very small screens */
    }

    /* Ensure icon is visible */
    .logo-area .logo-icon {
        display: flex;
    }
}

/* Change Character Button - Global Styles */
.change-btn {
    background: #f8f9fa;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
}

.change-btn:hover {
    background: #eee;
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.change-btn::before {
    content: '✎';
    font-size: 1rem;
    opacity: 0.7;
}

/* Read Only Boxes */
.read-only-box {
    background: #f9fafb;
    /* Lighter background */
    border: 1px solid #e5e7eb;
    /* Softer border */
    border-radius: 8px;
    /* Slightly more rounded */
    padding: 0.7rem 1rem;
    flex: 1;
    font-weight: 500;
    /* Medium instead of bold */
    color: #374151;
    /* Softer dark gray */
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
}

.read-only-box:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

/* Responsive */
@media (max-width: 900px) {
    .logo-area .logo-icon {
        display: flex;
    }

    .input-row {
        flex-direction: column;
        gap: 0.8rem;
    }

    /* Better Grid for Mobile */
    .item-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        width: 100% !important;
        margin: 0 auto;
        padding: 0 !important;
        box-sizing: border-box;
    }

    .content-section {
        padding: 1.2rem;
        /* Symmetrical padding */
        width: 100%;
        box-sizing: border-box;
        border-radius: 12px;
        margin-left: 0;
        margin-right: 0;
    }

    /* Fix for cramped footer on mobile */
    .card-footer {
        flex-direction: column;
        gap: 0.5rem;
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .price-tag {
        font-size: 0.95rem;
        /* Make price slightly bigger since it has own line */
    }

    .payment-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tabs {
        padding-bottom: 10px;
        gap: 0.5rem;
    }

    .tab-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    /* Compact summary on mobile */
    /* Transform Sidebar into Bottom Sheet */
    .sidebar {
        position: fixed;
        top: auto;
        bottom: 80px;
        /* Above the bar */
        left: 0;
        right: 0;
        width: 100%;
        max-height: 70vh;
        z-index: 999;
        margin: 0;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -5px 50px rgba(0, 0, 0, 0.3);
        /* Stronger shadow */
        transform: translateY(120%);
        /* Hidden by default */
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        overflow-y: auto;
        padding: 1.5rem;
        padding-bottom: 2rem;
        background-color: #ffffff;
        border: 1px solid #eee;
    }

    /* Hide redundant sidebar pay button on mobile since we have MBB button */
    .sidebar .pay-btn {
        display: none;
    }

    .sidebar.active {
        transform: translateY(0);
        display: flex;
        flex-direction: column;
    }

    /* Mobile Bottom Bar */
    .mobile-bottom-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 80px;
        background: white;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        padding: 0 1rem;
        z-index: 1000;
        gap: 1rem;
    }

    .mbb-left {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1;
        cursor: pointer;
    }

    .mbb-icon {
        width: 48px;
        height: 48px;
        background: #f0f0f0;
        /* Or gradient border wrapper */
        border-radius: 8px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid var(--accent);
        background-clip: padding-box;
    }

    .mbb-icon img {
        width: 100%;
    }

    .mbb-info {
        display: flex;
        flex-direction: column;
    }

    .mbb-label {
        font-size: 0.8rem;
        color: var(--text-secondary);
    }

    .mbb-total {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--text-primary);
    }

    .mbb-btn {
        background: var(--accent-gradient);
        /* #f69d3c in image but we use theme */
        color: white;
        border: none;
        padding: 0.8rem 1.5rem;
        border-radius: 8px;
        font-weight: 700;
        font-size: 1rem;
        cursor: pointer;
        opacity: 0.9;
    }

    .mbb-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

    /* Hide layout padding bottom to avoid double scroll */
    body {
        padding-bottom: 100px;
    }
}

@media (min-width: 901px) {
    .mobile-bottom-bar {
        display: none;
    }
}

/* Global Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 90px;
    /* Below header */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    width: max-content;
    max-width: 90%;
}

.toast {
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(-20px);
    /* Slide from top instead of bottom */
    animation: toastInTop 0.3s forwards, toastOutTop 0.3s forwards 2.5s;
    pointer-events: auto;
}

.toast.success {
    background: #008744;
}

.toast.warning {
    background: #E30A17;
    /* Red for warning */
}

.toast ion-icon {
    font-size: 1.2rem;
}

@keyframes toastInTop {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastOutTop {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}
