/**
 * Stockfirmati Wallet - Custom CSS
 * Following stockfirmati.com/dropshipping color scheme
 */

/* CSS Variables */
:root {
    --primary-color: #E74C3C;
    --primary-hover: #C0392B;
    --primary-light: #FADBD8;
    --secondary-color: #2C3E50;
    --text-dark: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --success-color: #27AE60;
    --warning-color: #F39C12;
    --danger-color: #E74C3C;
    --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Links */
a {
    color: var(--primary-color);
    transition: var(--transition);
}

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

/* Buttons */
.btn {
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 4px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.btn-primary,
.btn-cta {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-white);
    border-radius: 50px;
}

.btn-primary:hover,
.btn-cta:hover,
.btn-primary:focus,
.btn-cta:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--bg-white);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.35);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-dark);
    border-radius: 50px;
}

.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--bg-white);
}

/* Header */
.header-main {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-white);
}

.top-bar {
    font-size: 12px;
}

.navbar-brand img {
    max-height: 40px;
}

/* Search Bar */
.search-bar .form-control {
    border-radius: 4px 0 0 4px;
    border-color: var(--border-color);
    padding: 12px 16px;
}

.search-bar .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.search-bar .btn {
    border-radius: 0 4px 4px 0;
    padding: 12px 20px;
}

/* Cart Icon */
.cart-icon {
    font-size: 1.25rem;
    position: relative;
    display: inline-block;
}

.cart-icon .badge,
.cart-icon .cart-count {
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    padding: 0;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    position: absolute;
    top: 0px;
    right: 0px;
}

/* Packages Section */
.packages-section {
    background: var(--bg-light);
    min-height: 70vh;
}

/* Package Card */
.package-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-white);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.package-card:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-5px);
}

.package-card.featured {
    border-color: var(--primary-color);
    border-width: 2px;
}

.package-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--secondary-color);
    color: var(--bg-white);
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 0 6px 0 8px;
}

.package-card.featured .package-badge {
    background: var(--primary-color);
}

/* Package Price */
.package-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
}

.package-price .price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.package-price .price-vat {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Package Duration */
.package-duration {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

/* Package Features */
.package-features li {
    font-size: 14px;
    color: var(--text-light);
}

/* Cart Section */
.cart-section {
    min-height: 60vh;
}

/* Highlight class - red accent color like OLD project */
.highlight {
    color: #eb3e32;
    font-weight: 600;
}

.highlight-dark {
    color: #000;
    font-weight: 600;
}

/* Primary color for links */
.primary-color {
    color: var(--primary-color);
}

.primary-color:hover {
    color: var(--primary-hover);
}

/* Cursor pointer */
.cursor-pointer {
    cursor: pointer;
}

/* Cart Header */
.h3-cart {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0;
}

.btn-action-cart a {
    color: var(--text-dark);
    text-decoration: none;
}

.btn-action-cart a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Cart V1 Style - matching OLD project */
.cart-v1 {
    border: 1px solid var(--border-color);
    border-radius: 0;
}

.cart-v1 .cart-header {
    background-color: #000 !important;
    color: #fff !important;
    border-radius: 0;
}

.cart-v1 .cart-header .row-title {
    color: #fff !important;
    font-weight: 500;
    font-size: 14px;
}

.cart-item {
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item:hover {
    background-color: var(--bg-light);
}

/* Cart Product Image */
.cart-product-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.cart-product-image-placeholder {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

/* Product Info */
.product-info .product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 4px;
}

.product-info .product-code {
    font-size: 12px;
    color: var(--text-muted);
}

/* Utility class for text truncation */
.min-width-0 {
    min-width: 0;
}

/* Quantity Controls */
.quantity-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.quantity-control .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 16px;
    line-height: 30px;
    border-radius: 0;
    border-color: var(--border-color);
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-control .btn:hover:not(:disabled) {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.quantity-control .btn:disabled,
.quantity-control .btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: var(--bg-light);
    border-color: var(--border-color);
    pointer-events: none;
}

.quantity-control .form-control.quantity-number {
    width: 50px;
    height: 32px;
    text-align: center;
    padding: 0;
    border-radius: 0;
    border-color: var(--border-color);
    border-left: none;
    border-right: none;
    font-size: 14px;
    font-weight: 500;
    -moz-appearance: textfield;
}

.quantity-control .form-control.quantity-number:focus {
    box-shadow: none;
    border-color: var(--border-color);
}

.quantity-control .form-control.quantity-number::-webkit-outer-spin-button,
.quantity-control .form-control.quantity-number::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Unit Price */
.unit-price {
    font-size: 14px;
    color: var(--text-dark);
}

/* Item Total */
.item-total {
    font-size: 16px;
}

/* Summary Card */
.summary-card {
    border-radius: 0;
}

.summary-card .card-header {
    font-weight: 600;
    background-color: #000 !important;
    color: #fff !important;
    border-radius: 0;
}

.summary-card .card-body {
    font-size: 14px;
}

.summary-card .card-footer {
    background-color: #fff;
    border-top: 1px solid var(--border-color);
}

/* Override blue text to red (primary) */
.text-primary {
    color: var(--primary-color) !important;
}

/* Login Section */
.login-section {
    min-height: 70vh;
    background: var(--bg-light);
    display: flex;
    align-items: center;
}

.login-section .card {
    border: none;
    border-radius: 8px;
}

/* Form Styles */
.form-control {
    border-color: var(--border-color);
    padding: 12px 16px;
    border-radius: 4px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.input-group-text {
    background-color: var(--bg-light);
    border-color: var(--border-color);
}

/* Form Check */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
}

.footer h5 {
    color: var(--bg-white);
    font-size: 14px;
    letter-spacing: 1px;
}

.footer a:hover {
    color: var(--primary-color) !important;
}

.footer .text-primary {
    color: var(--primary-color) !important;
}

.payment-icons img {
    filter: grayscale(0);
    transition: var(--transition);
}

.payment-icons img:hover {
    transform: scale(1.1);
}

/* Toast */
.toast {
    border-radius: 8px;
}

.toast.bg-success {
    background-color: var(--success-color) !important;
}

.toast.bg-danger {
    background-color: var(--danger-color) !important;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

.alert-warning {
    background-color: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
}

/* Success Page */
.success-section {
    min-height: 70vh;
    background: var(--bg-light);
    display: flex;
    align-items: center;
}

.success-icon {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Checkout */
.checkout-section .card {
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.checkout-section .card-header {
    border-radius: 8px 8px 0 0;
}

/* Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Badge */
.badge.bg-danger {
    background-color: var(--primary-color) !important;
}

/* SweetAlert2 Toast customization */
.swal2-popup.swal2-toast {
    padding: 0.5rem 1rem;
    align-items: center;
    grid-template-rows: 1fr;
}

.swal2-popup.swal2-toast .swal2-title {
    margin: 0 0.5rem;
    font-size: 14px;
    padding: 0;
}

.swal2-popup.swal2-toast .swal2-html-container {
    margin: 0;
    padding: 0;
}

.swal2-popup.swal2-toast .swal2-timer-progress-bar-container {
    margin-top: 0;
}

/* Sticky Footer Layout */
html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.main-content {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 991.98px) {
    .package-price .price-amount {
        font-size: 2rem;
    }

    .navbar-collapse {
        background: var(--bg-white);
        padding: 20px;
        margin-top: 15px;
        border-radius: 8px;
        box-shadow: var(--box-shadow);
    }
}

@media (max-width: 767.98px) {
    .packages-section {
        padding: 30px 0;
    }

    .package-card {
        margin-bottom: 20px;
    }

    /* Cart mobile layout */
    .h3-cart {
        font-size: 1.2rem;
    }

    .btn-action-cart {
        margin-top: 10px;
    }

    .btn-action-cart a {
        display: block;
        margin-bottom: 5px;
    }

    .cart-v1 .cart-header {
        display: none;
    }

    .cart-item {
        padding: 15px !important;
    }

    .cart-item .row {
        flex-direction: column;
    }

    .cart-item .col-md-5 {
        width: 100%;
        margin-bottom: 15px;
    }

    .cart-item .col-md-3,
    .cart-item .col-md-2 {
        width: auto;
        text-align: left !important;
    }

    .cart-item .product-info-row {
        display: flex;
        flex-direction: column;
    }

    .cart-product-image,
    .cart-product-image-placeholder {
        width: 60px;
        height: 60px;
    }

    .quantity-control {
        margin: 10px 0;
    }

    /* Mobile cart row layout */
    .cart-item-mobile-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-top: 1px dashed var(--border-color);
        margin-top: 8px;
    }

    .cart-item-mobile-row:first-of-type {
        border-top: none;
        margin-top: 0;
    }

    .cart-item-mobile-row .label {
        font-size: 12px;
        color: var(--text-muted);
    }

    .cart-item-mobile-row .value {
        font-weight: 600;
    }

    /* Summary card mobile */
    .summary-card {
        margin-top: 0;
    }

    .summary-card .card-body {
        padding: 15px;
    }
}

/* Print Styles */
@media print {
    .header-main,
    .footer,
    .btn,
    .toast-container {
        display: none !important;
    }
}

/* =============================================
   Credits/Packages Section Styles
   ============================================= */

/* Section Title */
.section-title {
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 15px;
}

.title-underline {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

.section-description {
    font-size: 16px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Credit Card */
.credit-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.credit-card.clickable-card {
    cursor: pointer;
}

.credit-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.credit-card.clickable-card:active {
    transform: translateY(-2px);
}

/* Product Image */
.credit-card-image {
    width: 100%;
    height: 150px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.credit-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.credit-card-image .no-image {
    width: 100px;
    height: 100px;
    background: #f0f0f0;
    border-radius: 8px;
}

/* Product Name */
.credit-card-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
    min-height: 34px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price */
.credit-card-price {
    margin-bottom: 15px;
}

.credits-section .price-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.credits-section .price-vat {
    font-size: 11px;
    color: #999;
    margin-left: 3px;
}

/* Size Selection */
.product-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 15px;
    width: 100%;
}

.size-btn {
    min-width: 36px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.size-btn.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.size-btn.out-of-stock {
    opacity: 0.4;
    text-decoration: line-through;
    cursor: not-allowed;
}

/* Add to Cart Button - Pill Style */
.btn-add-cart {
    width: 100%;
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-add-cart:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
}

.btn-add-cart:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

a.btn-add-cart,
a.btn-add-cart:hover,
a.btn-add-cart:focus,
a.btn-add-cart:active {
    display: block;
    text-decoration: none;
    text-align: center;
    color: white;
    background: var(--primary-color);
    transform: none;
}

/* Buy Now Button - Same style as Add to Cart */
.btn-buy-now {
    width: 100%;
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-buy-now:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
}

.btn-buy-now:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Direct Purchase Card */
.direct-purchase-card {
    cursor: pointer;
}

/* Pagination */
.credits-section .pagination {
    gap: 5px;
}

.credits-section .pagination .page-link {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #333;
    padding: 8px 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.credits-section .pagination .page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.credits-section .pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.credits-section .pagination .page-item.disabled .page-link {
    background: #f5f5f5;
    border-color: #e0e0e0;
    color: #ccc;
    cursor: not-allowed;
}

.credits-section .pagination .page-link i {
    font-size: 12px;
}

/* Dropdown Active State - Theme Color Override */
.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--primary-color);
    color: #fff;
}

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

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

/* SweetAlert2 Theme Color Overrides */
.swal2-confirm.swal2-styled:hover,
.swal2-confirm.swal2-styled:focus {
    background-color: var(--primary-hover) !important;
}

.swal2-confirm.swal2-styled:active {
    background-color: var(--primary-hover) !important;
}

/* SweetAlert2 question icon - theme color */
.swal2-icon.swal2-question {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* =============================================
   Gift Card Style Package Selection
   ============================================= */

/* Gift Card Preview Container */
.giftcard-preview {
    padding: 20px;
}

/* Gift Card Visual */
.giftcard-container {
    perspective: 1000px;
}

.giftcard-visual {
    background: linear-gradient(135deg, var(--primary-color) 0%, #c0392b 50%, #922b21 100%);
    border-radius: 20px;
    padding: 30px;
    color: #fff;
    box-shadow: 0 20px 60px rgba(231, 76, 60, 0.4);
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.giftcard-visual:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(231, 76, 60, 0.5);
}

.giftcard-visual.selected {
    transform: scale(1.02);
}

.giftcard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.giftcard-brand {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.giftcard-type {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    opacity: 0.8;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
}

.giftcard-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.giftcard-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.giftcard-value {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.giftcard-select-text {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.8;
}

.giftcard-price {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.giftcard-name {
    font-size: 16px;
    font-weight: 500;
    margin-top: 10px;
    min-height: 24px;
    opacity: 0.9;
}

.giftcard-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 20px;
}

.giftcard-chip {
    width: 50px;
    height: 35px;
    background: linear-gradient(135deg, #f0c14b 0%, #d4a437 100%);
    border-radius: 6px;
    position: relative;
}

.giftcard-chip::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 20px;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 3px;
}

.giftcard-pattern {
    width: 80px;
    height: 30px;
    background: repeating-linear-gradient(
        90deg,
        rgba(255,255,255,0.1) 0px,
        rgba(255,255,255,0.1) 3px,
        transparent 3px,
        transparent 6px
    );
    border-radius: 4px;
}

/* Gift Card Summary */
.giftcard-summary {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-size: 14px;
    color: #666;
}

.summary-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.summary-total .summary-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.summary-total .summary-value {
    font-size: 20px;
    color: var(--primary-color);
}

/* Packages List */
.packages-list {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.packages-list-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Package Option Row */
.package-option {
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.package-option:last-of-type {
    margin-bottom: 0;
}

.package-option-label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.package-option-label:hover {
    background: #fff;
    border-color: #e0e0e0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.package-option.selected .package-option-label {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.15);
}

/* Custom Radio Button */
.package-option-radio {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.package-option-radio input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}

.radio-custom {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background: #fff;
    transition: all 0.2s ease;
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.package-option-radio input:checked + .radio-custom {
    border-color: var(--primary-color);
}

.package-option-radio input:checked + .radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Package Image */
.package-option-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.package-option-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.package-option-image .no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 24px;
}

/* Package Info */
.package-option-info {
    flex: 1;
    min-width: 0;
}

.package-option-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Package Price */
.package-option-price {
    flex-shrink: 0;
    text-align: right;
}

.package-option-price .price-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

/* Buy Button */
.package-buy-action {
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.btn-buy-giftcard {
    display: block;
    width: 100%;
    padding: 16px 30px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn-buy-giftcard:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.35);
}

.btn-buy-giftcard:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

a.btn-buy-giftcard {
    color: #fff;
}

a.btn-buy-giftcard:hover {
    color: #fff;
}

/* Gift Card Mobile Responsive */
@media (max-width: 991px) {
    .giftcard-preview {
        padding: 10px;
        position: static !important;
    }

    .giftcard-visual {
        min-height: 220px;
        padding: 20px;
    }

    .giftcard-price {
        font-size: 36px;
    }

    .giftcard-icon {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    /* Hide gift card preview on mobile - using sticky bar instead */
    .giftcard-preview {
        display: none;
    }

    /* Hide desktop buy button on mobile */
    .package-buy-action {
        display: none;
    }


    .credits-section .section-title {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .packages-list {
        padding: 12px;
        margin-top: 0;
        box-shadow: none;
        border-radius: 12px;
    }

    .packages-list-title {
        font-size: 15px;
        margin-bottom: 12px !important;
    }

    .package-option-label {
        padding: 12px 15px;
        gap: 12px;
    }

    .package-option-image {
        width: 45px;
        height: 45px;
    }

    .package-option-name {
        font-size: 13px;
    }

    .package-option-price .price-value {
        font-size: 15px;
    }

    .package-option-radio {
        width: 20px;
        height: 20px;
    }

    .radio-custom {
        width: 20px;
        height: 20px;
    }

    .radio-custom::after {
        width: 10px;
        height: 10px;
    }
}

/* =============================================
   Mobile Sticky Purchase Bar
   ============================================= */

.mobile-purchase-bar {
    display: none;
}

@media (max-width: 767px) {
    .mobile-purchase-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
        z-index: 9999;
        padding: 12px 15px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    /* Footer margin when mobile sticky bar exists - footer stays above the bar */
    body:has(.mobile-purchase-bar) .footer {
        margin-bottom: 70px !important;
    }

    .footer .footer-simple-content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px !important;
        line-height: 1.3;
        min-height: auto;
    }

    .footer .footer-simple-content span,
    .footer .footer-simple-content strong {
        font-size: 12px;
    }

    .footer .footer-simple-content strong {
        font-size: 14px;
        margin-bottom: 5px;
    }

    /* Hide separators on mobile */
    .footer .footer-separator {
        display: none !important;
    }

    /* Ensure bar stays above all floating elements */
    #crisp-chatbox,
    .chat-widget,
    [class*="chat"],
    [class*="hotjar"],
    [id*="hotjar"],
    .grecaptcha-badge {
        bottom: 80px !important;
    }

    .mobile-bar-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        max-width: 100%;
    }

    .mobile-bar-info {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .mobile-bar-placeholder {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #999;
        font-size: 14px;
    }

    .mobile-bar-placeholder i {
        font-size: 18px;
    }

    .mobile-bar-selected {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .mobile-bar-name {
        font-size: 13px;
        font-weight: 600;
        color: #333;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-bar-price {
        font-size: 18px;
        font-weight: 700;
        color: var(--primary-color);
    }

    .mobile-bar-btn {
        flex-shrink: 0;
        padding: 14px 28px;
        background: var(--primary-color);
        color: #fff;
        border: none;
        border-radius: 50px;
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        cursor: pointer;
        transition: all 0.2s ease;
        text-decoration: none;
        text-align: center;
        white-space: nowrap;
    }

    .mobile-bar-btn:hover:not(:disabled) {
        background: var(--primary-hover);
    }

    .mobile-bar-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .mobile-bar-btn-login {
        background: var(--secondary-color);
    }

    .mobile-bar-btn-login:hover {
        background: #1a252f;
        color: #fff;
    }
}

/* Credits Section Responsive */
@media (max-width: 767px) {
    .credit-card {
        padding: 15px 12px;
    }

    .credit-card-image {
        height: 120px;
    }

    .credit-card-name {
        font-size: 12px;
        min-height: 32px;
    }

    .credits-section .price-amount {
        font-size: 20px;
    }

    .btn-add-cart {
        padding: 10px 15px;
        font-size: 12px;
    }

    .credits-section .pagination .page-link {
        padding: 6px 10px;
        min-width: 35px;
        font-size: 13px;
    }

    /* Add margin bottom to credits section for footer spacing */
    .credits-section {
        padding-bottom: 40px !important;
    }

    /* Mobile Footer - compact with centered text */
    .footer {
        padding: 15px 0 !important;
    }

    .footer.py-3 {
        padding: 15px 0 !important;
    }

    .footer > .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}

/* ===========================================
   Payment Method Selection Dialog
   =========================================== */
.payment-method-popup {
    border-radius: 12px;
    max-width: 500px !important;
    width: 95% !important;
}

.payment-dialog-container {
    text-align: center;
    overflow: visible !important;
}

.payment-dialog-content {
    padding: 0;
}

.payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 5px;
}

/* Override Bootstrap form-check styles */
.payment-method-option.form-check {
    display: flex;
    align-items: center;
    padding: 12px 15px !important;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    margin: 0 !important;
    background: var(--bg-white);
}

.payment-method-option.form-check:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.payment-method-option.form-check.selected {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.payment-method-option.form-check .form-check-input {
    position: relative !important;
    margin: 0 !important;
    margin-right: 12px !important;
    flex-shrink: 0;
    float: none !important;
}

.payment-method-option.form-check .form-check-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    cursor: pointer;
    margin: 0;
    flex: 1;
    font-size: 14px;
}

.payment-method-name {
    font-weight: 600;
    color: var(--text-dark);
}

.payment-method-option.form-check .form-check-label small {
    font-size: 12px;
}

/* ===========================================
   SweetAlert Buttons - Rounded Style
   =========================================== */
.swal2-styled.swal2-confirm,
.swal2-styled.swal2-cancel {
    border-radius: 50px !important;
    padding: 10px 25px !important;
    font-weight: 600 !important;
    text-transform: none !important;
}

.swal2-styled.swal2-confirm {
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3) !important;
}

.swal2-styled.swal2-confirm:hover {
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4) !important;
}

.swal2-styled.swal2-cancel {
    border: 1px solid #dee2e6 !important;
}

/* ===========================================
   Bank Transfer Thank You Page
   =========================================== */
.bank-transfer-popup {
    border-radius: 12px;
}

.bank-transfer-details {
    padding: 10px 0;
}

.bank-info-table {
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
}

.bank-info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
}

.bank-info-row:last-child {
    border-bottom: none;
}

.bank-info-label {
    color: var(--text-light);
    font-weight: 500;
}

.bank-info-value {
    text-align: right;
    color: var(--text-dark);
    word-break: break-all;
}

.bank-info-row.total-row {
    background: var(--primary-light);
}

.bank-info-row.total-row .bank-info-label,
.bank-info-row.total-row .bank-info-value {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1em;
}

/* ===========================================
   Payment Methods Bar
   =========================================== */
.payment-methods-bar {
    background: var(--bg-light, #f8f9fa);
    border-top: 1px solid var(--border-color, #e9ecef);
}

.payment-methods-title {
    font-size: 0.8rem;
    color: var(--text-light, #6c757d);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.payment-icons-bar {
    gap: 0.5rem;
}

.payment-icon-card {
    width: 50px;
    height: 32px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.payment-icon-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.payment-icon-card i {
    font-size: 1.25rem;
    display: block;
}

/* Brand colors for payment icons */
.payment-icon-card .fa-cc-visa {
    color: #1a1f71;
}

.payment-icon-card .fa-cc-mastercard {
    color: #eb001b;
}

.payment-icon-card .fa-cc-amex {
    color: #006fcf;
}

.payment-icon-card .fa-cc-paypal {
    color: #003087;
}

.payment-icon-card .fa-building-columns {
    color: var(--secondary-color, #2C3E50);
}

@media (max-width: 767px) {
    .payment-icons-bar {
        gap: 0.4rem;
    }

    .payment-icon-card {
        width: 42px;
        height: 28px;
    }

    .payment-icon-card i {
        font-size: 1rem;
    }

    .payment-methods-title {
        font-size: 0.7rem;
    }
}
