/* Custom CSS untuk DaidaiDeals - HotUKDeals Style */

:root {
    --primary-color: #FDC90B;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #ffffff;
    --dark-color: #1a1a1a;
    --darker-bg: #0d0d0d;
    --card-bg: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    --border-color: #404040;
    --hover-bg: #3a3a3a;
    --input-bg: #1a1a1a;
}

/* Light theme variables */
[data-theme="light"] {
    --darker-bg: #f5f6f8;
    /* Slightly more contrast, but still very light and clean */
    --card-bg: #ffffff;
    --text-primary: #000000;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --hover-bg: #f8f9fa;
    --input-bg: #ffffff;
    --dark-color: #ffffff;
}

/* Dark theme variables */
[data-theme="dark"] {
    --darker-bg: #0d0d0d;
    --card-bg: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    --border-color: #404040;
    --hover-bg: #3a3a3a;
    --input-bg: #1a1a1a;
    --dark-color: #1a1a1a;
}



/* Global Styles */
.card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.form-control,
.form-select {
    background-color: var(--input-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.text-primary {
    color: var(--text-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--input-bg);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(253, 201, 11, 0.25);
}

.form-control::placeholder {
    color: var(--text-muted);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--darker-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Special background for deals page - abu-abu gelap background */
body.deals-page {
    background-color: var(--darker-bg) !important;
}

/* Special background for home page - abu-abu gelap background */
body.home-page {
    background-color: var(--darker-bg) !important;
}

/* Special background for freebies page - abu-abu gelap background */
body.freebies-page {
    background-color: var(--darker-bg) !important;
}

main {
    flex: 1 0 auto;
    width: 100%;
}

html {
    overflow-x: hidden;
}

/* Smooth transition for theme switching */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Rounded corners for modern look */
.rounded-4 {
    border-radius: 1rem !important;
}

.rounded-top-4 {
    border-top-left-radius: 1rem !important;
    border-top-right-radius: 1rem !important;
}

.rounded-bottom-4 {
    border-bottom-left-radius: 1rem !important;
    border-bottom-right-radius: 1rem !important;
}


/* Vote buttons - HotUKDeals style */
.vote-btn {
    transition: all 0.2s ease-in-out;
    border-width: 2px;
    border-radius: 8px;
    font-weight: 600;
    padding: 8px 16px;
}

.vote-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.vote-btn.active {
    transform: scale(1.1);
}

.vote-btn[data-vote-type="hot"] {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.vote-btn[data-vote-type="hot"]:hover {
    background-color: var(--primary-color);
    color: white;
}

.vote-btn[data-vote-type="hot"].active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.vote-btn[data-vote-type="cold"] {
    background-color: transparent;
    border-color: var(--text-muted);
    color: var(--text-muted);
}

.vote-btn[data-vote-type="cold"]:hover {
    background-color: var(--text-muted);
    color: white;
}

.vote-btn[data-vote-type="cold"].active {
    background-color: var(--text-muted);
    border-color: var(--text-muted);
    color: white;
}

/* HotUKDeals Style Vote Box - New Implementation */
.bRad--a {
    border-radius: 50px !important;
    /* Fully rounded */
}

.space--h-1 {
    margin-left: 0.25rem !important;
    margin-right: 0.25rem !important;
}

.bRad--circle {
    border-radius: 50% !important;
    /* Perfect circle */
}

.vote-box--change {
    transition: all 0.3s ease;
    cursor: pointer;
}

.vote-box--change:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.fadeOuterEdge--r {
    position: relative;
    overflow: hidden;
}

.fadeOuterEdge--r::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: inherit;
    pointer-events: none;
}

.vote-box--toW3-onGrey {
    background-color: #ffffff;
    border: none;
    color: #495057;
}

.vote-box--toW3-onGrey:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.vote-box--toW3-onGrey.active {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.threadListCard-header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Search Bar */
.search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 2rem;
}

.search-form {
    width: 100%;
}

.search-input-group {
    position: relative;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1rem;
    z-index: 2;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 8px 12px 8px 40px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    background-color: var(--card-bg);
    color: var(--text-primary);
    font-size: 16px;
    /* Prevents auto-zoom on iOS/Safari mobile */
    transition: all 0.3s ease;
    /* Prevent iOS zoom on focus */
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
}

.search-input:focus {
    outline: none;
    border-color: var(--border-color);
    box-shadow: none;
    background-color: var(--card-bg);
    font-size: 16px;
}

.search-input::placeholder {
    color: #888;
    font-size: 16px;
}

/* ============================================
   MOBILE SEARCH FULLSCREEN OVERLAY
   ============================================ */
@media (max-width: 767.98px) {

    /* When search is active - fullscreen overlay */
    .search-container-wrapper.search-active {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        /* Dynamic viewport height for mobile */
        z-index: 9999 !important;
        background-color: var(--darker-bg, #fff);
        padding: 12px;
        padding-top: calc(env(safe-area-inset-top, 0px) + 16px);
        margin: 0 !important;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .search-container-wrapper.search-active .search-form {
        width: 100%;
        flex-shrink: 0;
    }

    .search-container-wrapper.search-active .search-input-group {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .search-container-wrapper.search-active .search-input-wrapper {
        flex: 1;
    }

    /* Show back button when active */
    .mobile-search-back-btn {
        display: none;
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 1.5rem;
        padding: 8px;
        cursor: pointer;
        flex-shrink: 0;
    }

    .search-container-wrapper.search-active .mobile-search-back-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Search dropdown in fullscreen mode - FIX HEIGHT */
    .search-container-wrapper.search-active .search-dropdown {
        position: relative !important;
        top: auto !important;
        margin-top: 12px;
        flex: 1 1 auto;
        min-height: 200px;
        max-height: calc(100vh - 80px) !important;
        max-height: calc(100dvh - 80px) !important;
        height: auto !important;
        overflow-y: auto;
        border-radius: 12px;
        background-color: var(--card-bg, #fff) !important;
    }

    .search-container-wrapper.search-active .search-dropdown.show {
        display: block !important;
    }

    /* Fix search dropdown content visibility */
    .search-container-wrapper.search-active .search-dropdown-content {
        padding: 16px;
        min-height: 100px;
    }

    /* Fix text color contrast in search results */
    .search-container-wrapper.search-active .search-section-title {
        color: var(--text-primary, #333) !important;
    }

    .search-container-wrapper.search-active .search-no-results {
        color: var(--text-secondary, #666) !important;
        padding: 40px 20px;
        text-align: center;
    }

    .search-container-wrapper.search-active .search-result-title,
    .search-container-wrapper.search-active .search-category-name {
        color: var(--text-primary, #333) !important;
    }

    .search-container-wrapper.search-active .search-result-meta,
    .search-container-wrapper.search-active .search-category-count {
        color: var(--text-secondary, #666) !important;
    }

    /* Loading indicator styling */
    .search-container-wrapper.search-active .search-loading {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
        color: var(--text-secondary, #666);
    }
}



/* Post Button */
.post-button {
    background: #FDC90B;
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #FDC90B;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}



/* Dropdown Menus */
.dropdown-menu {
    background-color: var(--dark-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    padding: 8px 0;
    margin-top: 4px;
    min-width: 200px;
}

.dropdown-item {
    color: var(--text-primary);
    padding: 10px 20px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    text-decoration: none;
}

.dropdown-item i {
    margin-right: 8px;
    font-size: 0.9rem;
}

.dropdown-divider {
    border-color: #444;
    margin: 8px 0;
}

/* Notification Badge */
.badge {
    font-size: 0.6rem;
    padding: 2px 5px;
}

/* Login Modal - Theme-aware styling */
.login-modal {
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    max-width: 400px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

/* Signup Modal - Inherits from login-modal but with specific adjustments */
#signupModal .login-modal .btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #ff8c42);
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 999px;
    /* Pill shape */
    transition: all 0.3s ease;
    color: white;
}

#signupModal .login-modal .btn-primary:hover {
    background: linear-gradient(45deg, #e55a2b, var(--primary-color));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Light theme */
[data-theme="light"] .login-modal {
    background-color: #fff;
    color: #111;
}

[data-theme="light"] .login-modal .modal-title {
    color: #111;
}

[data-theme="light"] .login-modal .modal-subtitle {
    color: #666;
}

[data-theme="light"] .login-modal .form-label {
    color: #111;
}

[data-theme="light"] .login-modal .form-control {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #111;
}

[data-theme="light"] .login-modal .form-control::placeholder {
    color: #999;
}

[data-theme="light"] .login-modal .input-group-text {
    background-color: #ffffff;
    border: 1px solid #ddd;
    color: #666;
    border-right: none;
}

[data-theme="light"] .login-modal .btn-close {
    background: none;
    border: none;
    color: #111;
    font-size: 1.5rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

[data-theme="light"] .login-modal .btn-close:hover {
    opacity: 1;
}

[data-theme="light"] .login-modal .modal-header {
    border-bottom: 1px solid #ddd;
    background: #fff;
    border-radius: 12px 12px 0 0;
}

[data-theme="light"] .login-modal .btn-primary {
    background: #ff6600;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 999px;
    /* Pill shape */
    transition: all 0.3s ease;
    color: white;
}

[data-theme="light"] .login-modal .btn-primary:hover {
    background: #e85b00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

[data-theme="light"] .login-modal .divider-text {
    color: #666;
}

[data-theme="light"] .login-modal .divider-text::before,
[data-theme="light"] .login-modal .divider-text::after {
    background-color: #ddd;
}

[data-theme="light"] .btn-social {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #111;
    padding: 12px 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

[data-theme="light"] .btn-social:hover {
    background-color: #ffffff;
    border-color: #ccc;
    color: #111;
    transform: translateY(-1px);
}

[data-theme="light"] .modal-footer-text {
    color: #666;
}

[data-theme="light"] .modal-footer-text a {
    color: black;
    font-weight: 500;
}

[data-theme="light"] .modal-footer-text a:hover {
    color: #e85b00;
}

/* Dark theme */
[data-theme="dark"] .login-modal {
    background-color: #1a1a1a;
    color: #fff;
}

[data-theme="dark"] .login-modal .modal-title {
    color: #fff;
}

[data-theme="dark"] .login-modal .modal-subtitle {
    color: #aaa;
}

[data-theme="dark"] .login-modal .form-label {
    color: #fff;
}

[data-theme="dark"] .login-modal .form-control {
    background-color: #2d2d2d;
    border: 1px solid #444;
    color: #fff;
}

[data-theme="dark"] .login-modal .form-control::placeholder {
    color: #888;
}

[data-theme="dark"] .login-modal .input-group-text {
    background-color: #2d2d2d;
    border: 1px solid #555;
    color: #ccc;
    border-right: none;
}

[data-theme="dark"] .login-modal .btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

[data-theme="dark"] .login-modal .btn-close:hover {
    opacity: 1;
}

[data-theme="dark"] .login-modal .modal-header {
    border-bottom: 1px solid #444;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 12px 12px 0 0;
}

[data-theme="dark"] .login-modal .btn-primary {
    background: linear-gradient(45deg, #ff6600, #ff8c42);
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 999px;
    /* Pill shape */
    transition: all 0.3s ease;
    color: white;
}

[data-theme="dark"] .login-modal .btn-primary:hover {
    background: linear-gradient(45deg, #e55a00, #e57326);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

[data-theme="dark"] .login-modal .divider-text {
    color: #666;
}

[data-theme="dark"] .login-modal .divider-text::before,
[data-theme="dark"] .login-modal .divider-text::after {
    background-color: #444;
}

[data-theme="dark"] .btn-social {
    background-color: #2d2d2d;
    border: 1px solid #555;
    color: white;
    padding: 12px 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

[data-theme="dark"] .btn-social:hover {
    background-color: #333;
    border-color: #666;
    color: white;
    transform: translateY(-1px);
}

[data-theme="dark"] .modal-footer-text {
    color: #ccc;
}

[data-theme="dark"] .modal-footer-text a {
    color: black;
    font-weight: 500;
}

[data-theme="dark"] .modal-footer-text a:hover {
    color: #ff8c42;
}

/* Auto theme - follows system preference */
@media (prefers-color-scheme: light) {
    [data-theme="auto"] .login-modal {
        background-color: #fff;
        color: #111;
    }

    [data-theme="auto"] .login-modal .modal-title {
        color: #111;
    }

    [data-theme="auto"] .login-modal .modal-subtitle {
        color: #666;
    }

    [data-theme="auto"] .login-modal .form-label {
        color: #111;
    }

    [data-theme="auto"] .login-modal .form-control {
        background-color: #fff;
        border: 1px solid #ddd;
        color: #111;
    }

    [data-theme="auto"] .login-modal .form-control::placeholder {
        color: #999;
    }

    [data-theme="auto"] .login-modal .input-group-text {
        background-color: #ffffff;
        border: 1px solid #ddd;
        color: #666;
        border-right: none;
    }

    [data-theme="auto"] .login-modal .btn-close {
        color: #111;
    }

    [data-theme="auto"] .login-modal .modal-header {
        border-bottom: 1px solid #ddd;
        background: #fff;
    }

    [data-theme="auto"] .login-modal .btn-primary {
        background: #ff6600;
        color: white;
    }

    [data-theme="auto"] .login-modal .btn-primary:hover {
        background: #e85b00;
    }

    [data-theme="auto"] .login-modal .divider-text {
        color: #666;
    }

    [data-theme="auto"] .login-modal .divider-text::before,
    [data-theme="auto"] .login-modal .divider-text::after {
        background-color: #ddd;
    }

    [data-theme="auto"] .btn-social {
        background-color: #fff;
        border: 1px solid #ddd;
        color: #111;
    }

    [data-theme="auto"] .btn-social:hover {
        background-color: #ffffff;
        border-color: #ccc;
    }

    [data-theme="auto"] .modal-footer-text {
        color: #666;
    }

    [data-theme="auto"] .modal-footer-text a {
        color: black;
    }

    [data-theme="auto"] .modal-footer-text a:hover {
        color: #e85b00;
    }
}

@media (prefers-color-scheme: dark) {
    [data-theme="auto"] .login-modal {
        background-color: #1a1a1a;
        color: #fff;
    }

    [data-theme="auto"] .login-modal .modal-title {
        color: #fff;
    }

    [data-theme="auto"] .login-modal .modal-subtitle {
        color: #aaa;
    }

    [data-theme="auto"] .login-modal .form-label {
        color: #fff;
    }

    [data-theme="auto"] .login-modal .form-control {
        background-color: #2d2d2d;
        border: 1px solid #444;
        color: #fff;
    }

    [data-theme="auto"] .login-modal .form-control::placeholder {
        color: #888;
    }

    [data-theme="auto"] .login-modal .input-group-text {
        background-color: #2d2d2d;
        border: 1px solid #555;
        color: #ccc;
        border-right: none;
    }

    [data-theme="auto"] .login-modal .btn-close {
        color: white;
    }

    [data-theme="auto"] .login-modal .modal-header {
        border-bottom: 1px solid #444;
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }

    [data-theme="auto"] .login-modal .btn-primary {
        background: linear-gradient(45deg, #ff6600, #ff8c42);
        color: white;
    }

    [data-theme="auto"] .login-modal .btn-primary:hover {
        background: linear-gradient(45deg, #e55a00, #e57326);
    }

    [data-theme="auto"] .login-modal .divider-text {
        color: #666;
    }

    [data-theme="auto"] .login-modal .divider-text::before,
    [data-theme="auto"] .login-modal .divider-text::after {
        background-color: #444;
    }

    [data-theme="auto"] .btn-social {
        background-color: #2d2d2d;
        border: 1px solid #555;
        color: white;
    }

    [data-theme="auto"] .btn-social:hover {
        background-color: #333;
        border-color: #666;
    }

    [data-theme="auto"] .modal-footer-text {
        color: #ccc;
    }

    [data-theme="auto"] .modal-footer-text a {
        color: black;
    }

    [data-theme="auto"] .modal-footer-text a:hover {
        color: #ff8c42;
    }
}

/* Social button icons */
.btn-social i {
    font-size: 1.2rem;
}

.btn-social:nth-child(1) i {
    color: #4285f4;
    /* Google Blue */
}

.btn-social:nth-child(2) i {
    color: #000;
    /* Apple Black */
}

.btn-social:nth-child(3) i {
    color: #1877f2;
    /* Facebook Blue */
}

/* Mobile: sembunyikan teks, hanya tampil ikon sejajar */
@media (max-width: 767.98px) {
    .social-login {
        display: flex;
        justify-content: center;
        gap: 10px;
        /* jarak antar tombol */
        flex-wrap: nowrap;
        /* jangan turun ke bawah */
    }

    .social-login .btn {
        width: 50px;
        /* ubah tombol jadi kotak */
        height: 50px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
    }

    .social-login .social-text {
        display: none;
        /* sembunyikan teks */
    }

    .social-login i {
        font-size: 1.5rem;
        /* perbesar ikon */
    }
}

/* Modal Responsive */
@media (max-width: 576px) {
    .login-modal {
        margin: 1rem;
        max-width: none;
    }

    .login-modal .modal-header,
    .login-modal .modal-body {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .divider-text::before,
    .divider-text::after {
        width: 50px;
    }

    .divider-text::before {
        left: -60px;
    }

    .divider-text::after {
        right: -60px;
    }
}

/* Modal Animation - Smooth from Top */
.modal.fade .modal-dialog {
    transform: translateY(-50px);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: translateY(0);
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(2px);
}

/* Password Field Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }

    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 100px;
    }
}

#passwordField {
    overflow: hidden;
    transition: all 0.3s ease-out;
}

/* Modal Responsive */
@media (max-width: 576px) {
    .login-modal {
        margin: 1rem;
        max-width: none;
    }

    .login-modal .modal-header,
    .login-modal .modal-body {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .divider-text::before,
    .divider-text::after {
        width: 50px;
    }

    .divider-text::before {
        left: -60px;
    }

    .divider-text::after {
        right: -60px;
    }


}

/* Tombol Hamburger Menu */
.hamburger-menu {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: 18px;
    color: var(--text-primary);
    font-family: Arial, sans-serif;
    font-size: 11px;
    height: 32px;
    /* cocokkan dengan tinggi search bar */
    cursor: pointer;
    margin-left: -50px;
    vertical-align: middle;
}

/* Ikon Hamburger */
.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 10px;
    width: 14px;
}

.hamburger-icon span {
    display: block;
    height: 1.2px;
    background-color: var(--text-primary);
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Teks "Menu" */
.menu-text {
    font-size: 11px;
    white-space: nowrap;
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* Ensure proper alignment of icon and text */
.hamburger-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Hover effect */
.hamburger-menu:hover .hamburger-icon span {
    background-color: var(--primary-color);
}

/* Active state */
.hamburger-menu.active .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

.hamburger-menu.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Ensure hamburger menu is hidden on mobile layouts */
@media (max-width: 767.98px) {
    .hamburger-menu {
        display: none !important;
    }
}



/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    /* slide penuh dari kiri */
    width: 320px;
    height: 100vh;
    background: var(--card-bg);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    /* Above mobile bottom nav (1070) */
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
    border-radius: 0 20px 20px 0;
    /* Curved corners on right side */
}

/* aktif */
.sidebar.show {
    left: 0;
}

/* Sidebar Overlay - Moved to consolidated section */

/* Header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--dark-color);
    border-radius: 0 20px 0 0;
    /* Curved top-right corner */
}

.sidebar-content {
    padding: 20px;
}

.sidebar-section {
    margin-bottom: 1rem;
    /* Add consistent spacing between sections */
}

.sidebar-title {
    margin: 0;
    font-size: 16px;
    /* sama categories-title */
    font-weight: 600;
    color: var(--text-primary);
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sidebar-close:hover {
    background-color: rgba(0, 0, 0, 0.02);
    color: var(--text-primary);
}

/* Menu */
.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item {
    margin: 0;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 10px 0;
    /* Match category-item padding */
    text-decoration: none;
    color: var(--text-primary);
    font-size: 15px;
    /* Match category item font size */
    font-weight: 500;
    transition: background-color 0.2s;
}

/* Add spacing between icon and text in menu links */
.menu-link i {
    margin-right: 10px;
    /* Same spacing as category items */
}

.menu-link:hover {
    background-color: var(--hover-bg);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 10px;
    /* Maintain curved corners on hover */
}

/* Position chevron-right icons to the right */
.menu-link .bi-chevron-right {
    margin-left: auto;
    color: #adb5bd;
    font-size: 14px;
}

/* Divider & Section Title */
.sidebar-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 1rem 0;
}

.sidebar-section-title {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.5rem 20px;
    padding-top: 0.5rem;
}

/* Label "Appearance" */
.appearance-toggle span {
    flex: 1;
}

/* Controls */
.appearance-controls {
    display: inline-flex;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    /* curved kanan kiri */
    overflow: hidden;
    /* rapat */
    margin-left: auto;
    /* Align to the right like category arrows */
}

/* Buttons */
.appearance-btn {
    background: #fff;
    border: none;
    /* hilangkan border antar tombol */
    color: #6c757d;
    min-width: 40px;
    /* cukup untuk teks Auto */
    height: 30px;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sun and Moon icon styling for the original buttons */
.appearance-btn[data-theme="light"] i.bi-sun {

    font-size: 1rem;
    position: relative;
    left: 5px;
    /* Adjust this value to move left (-) or right (+) */
}

.appearance-btn[data-theme="dark"] i.bi-moon {

    font-size: 1rem;
    position: relative;
    left: 5px;
    /* Adjust this value to move left (-) or right (+) */
}

/* Active */
.appearance-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* Ensure appearance section stays white in all themes */
[data-theme="dark"] .appearance-toggle,
[data-theme="light"] .appearance-toggle,
[data-theme="auto"] .appearance-toggle {
    background-color: var(--card-bg) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

/* Sidebar Dropdown */
.sidebar-dropdown {
    position: static;
    background-color: var(--card-bg);
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sidebar-dropdown.show {
    max-height: 500px;
}

.sidebar-dropdown .dropdown-item {
    padding: 8px 1.5rem 8px 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}

.sidebar-dropdown .dropdown-item:hover {
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-dropdown .dropdown-divider {
    margin: 0.5rem 0;
    background-color: var(--border-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .search-container {
        display: none;
    }

    .header-link span {
        display: none;
    }

    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-list .nav-link {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 767.98px) {
    .sidebar {
        width: 280px;
        left: -280px;
    }

    .hamburger-menu {
        margin-right: 8px;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .top-header .container {
        padding: 0 1rem;
    }

    .top-header .d-flex {
        gap: 1rem;
        align-items: center;
    }

    .header-link {
        padding: 6px 8px;
    }

    .post-button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .nav-list {
        overflow-x: auto;
        white-space: nowrap;
        padding: 8px 0;
        gap: 0 !important;
    }

    .nav-list .nav-item {
        flex-shrink: 0;
        margin: 0 !important;
    }

    .nav-list .nav-link {
        padding: 6px 7px !important;
    }

    /* First item alignment */
    /* First item alignment - container has px-0 now so we add padding back to match content */
    .nav-list .nav-item:first-child .nav-link {
        padding-left: 4px !important;
    }
}

/* Buttons */
.btn {
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #e55a2b;
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

/* Forms - HotUKDeals style */
.form-control,
.form-select {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-primary);
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--border-color);
    box-shadow: none;
    background-color: var(--card-bg);
    color: var(--text-primary);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.input-group-text {
    border-radius: 8px 0 0 8px;
    border: 2px solid var(--border-color);
    border-right: none;
    background-color: var(--hover-bg);
    color: var(--text-primary);
}

.input-group-text:hover,
.input-group-text:focus {
    border-color: var(--border-color);
    background-color: var(--hover-bg);
    outline: none;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.input-group .form-control:hover,
.input-group .form-control:focus {
    border-color: var(--border-color);
    box-shadow: none;
    outline: none;
}

/* Alerts - HotUKDeals style */
.alert {
    border: none;
    border-radius: 8px;
    font-weight: 500;
    border-left: 4px solid;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-left-color: var(--success-color);
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-left-color: var(--danger-color);
    color: var(--danger-color);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left-color: var(--warning-color);
    color: var(--warning-color);
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    border-left-color: var(--info-color);
    color: var(--info-color);
}


/* Badges - HotUKDeals style */
.badge {
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    padding: 6px 12px;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Hero Section - HotUKDeals style */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8c42 100%);
    color: white;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-radius: 0 0 24px 24px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}


/* Promotional Banner */
.promotional-banner {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffcc02 100%);
    padding: 20px 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.promotional-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,20 Q50,5 80,20 Q95,50 80,80 Q50,95 20,80 Q5,50 20,20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>') repeat;
    opacity: 0.3;
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.banner-text {
    flex: 1;
}

.banner-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.banner-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
}

.banner-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 12px 20px;
    text-align: center;
    min-width: 140px;
}

.badge-text {
    display: block;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.badge-subtitle {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 400;
}

/* Responsive adjustments for HotUKDeals layout */
@media (max-width: 992px) {
    .hottest-deals-sidebar {
        position: static;
        margin-top: 2rem;
    }

    .deal-card-horizontal .row {
        flex-direction: column;
    }

    .deal-card-horizontal .col-md-3 {
        width: 100%;
        max-width: 100%;
    }

    .deal-card-horizontal .col-md-9 {
        width: 100%;
        max-width: 100%;
    }

    .deal-card-horizontal img {
        height: 200px !important;
        border-radius: 8px 8px 0 0 !important;
    }


    /* Banner responsive */
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .banner-title {
        font-size: 1.25rem;
    }

    .banner-subtitle {
        font-size: 0.9rem;
    }
}


/* Categories Slide Panel */
.categories-panel {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100vh;
    background: var(--card-bg);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    transition: left 0.10s ease-in-out;
    overflow-y: auto;
    border-radius: 0 20px 20px 0;
    /* Curved top-left corner */
}

.categories-panel.show {
    left: 0;
}

/* Merchants Slide Panel (Discount Codes) */
.merchants-panel {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100vh;
    background: var(--card-bg);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    transition: left 0.10s ease-in-out;
    overflow-y: auto;
    border-radius: 0 20px 20px 0;
}

.merchants-panel.show {
    left: 0;
}

/* Merchants Overlay - Moved to consolidated section */

/* Merchant Item Styling */
.merchant-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.2s ease;
    margin-bottom: 4px;
    background: var(--bg-secondary);
}

.merchant-item:hover {
    background: var(--primary-color);
    color: #000;
}

.merchant-item:hover .merchant-voucher-count {
    background: rgba(0, 0, 0, 0.2);
    color: #000;
}

.merchant-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
    background: #fff;
    padding: 3px;
    margin-right: 10px;
}

.merchant-logo-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
    color: #000;
    font-size: 14px;
}

.merchant-info {
    flex: 1;
}

.merchant-name {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 0;
}

.merchant-voucher-count {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

.categories-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    background: var(--dark-color);
    border-radius: 0 20px 0 0;
    /* Curved top-left corner */
}

.categories-back {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 5px 0;
}

.categories-back:hover {
    color: var(--text-secondary);
}

.categories-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.categories-see-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.categories-see-all:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.categories-content {
    padding: 20px;
}

.categories-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.categories-list {
    display: none;
}

.categories-list.loaded {
    display: block;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    background: var(--bg-secondary);
    transition: background 0.2s ease;
}

.category-item:hover {
    background: var(--primary-color);
    color: #000;
    text-decoration: none;
}

.category-item:hover .category-icon i {
    color: #000;
}

.category-item:hover .category-arrow {
    color: #000;
}

.category-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Icon styling */
.category-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
    background: var(--primary-color);
    border-radius: 6px;
}

/* Icon color */
.category-icon i {
    color: #000;
    font-size: 14px;
}


.category-info {
    flex: 1;
}

.category-name {
    font-weight: 600;
    font-size: 13px;
    margin: 0;
}

.category-arrow {
    color: var(--text-muted);
    font-size: 12px;
}

/* Categories Overlay - Moved to consolidated section */

@media (max-width: 767.98px) {
    .categories-panel {
        width: 100%;
        left: -100%;
    }

    .merchants-panel {
        width: 100%;
        left: -100%;
    }
}

/* Statistics Cards */
.stat-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--hover-bg) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}

/* Comments */
.comment-item {
    transition: background-color 0.2s ease-in-out;
}

.comment-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Admin sidebar */
.list-group-item {
    border: none;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.list-group-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
    transform: translateX(5px);
}

.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Statistics cards */
.card.bg-primary,
.card.bg-success,
.card.bg-warning,
.card.bg-info {
    transition: transform 0.2s ease-in-out;
}

.card.bg-primary:hover,
.card.bg-success:hover,
.card.bg-warning:hover,
.card.bg-info:hover {
    transform: translateY(-3px);
}

/* Footer */
footer {
    margin-top: auto;
    background-color: var(--dark-color);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
}

footer h5 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

footer p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

footer a:hover {
    color: #ff8c42;
}

/* Text Colors - HotUKDeals style */
.text-primary {
    color: var(--text-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-info {
    color: var(--info-color) !important;
}

/* Background Colors */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-dark {
    background-color: var(--dark-color) !important;
}

.bg-light {
    background-color: var(--card-bg) !important;
    color: var(--text-primary) !important;
}

/* Border Colors */
.border {
    border-color: var(--border-color) !important;
}

/* List Group  */
.list-group-item {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
    transition: all 0.2s ease-in-out;
}

.list-group-item:hover {
    background-color: var(--hover-bg);
    color: var(--primary-color);
    transform: translateX(5px);
}

.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Dropdown */
.dropdown-menu {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.dropdown-item {
    color: var(--text-primary);
    transition: all 0.2s ease-in-out;
}

.dropdown-item:hover {
    background-color: var(--hover-bg);
    color: var(--primary-color);
}

/* Arrow floating */
.carousel-air-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.carousel-air-arrow--left {
    left: 5px;
}

.carousel-air-arrow--right {
    right: 0.25rem;
}

.carousel-air-arrow i {
    font-size: 0.9rem;
}

/* Show arrows only on mobile when needed */
@media (max-width: 767.98px) {
    .carousel-air-arrow {
        display: flex;
        /* Show on mobile */
    }

    .carousel-air-arrow--left {
        left: 0.25rem;
    }

    .carousel-air-arrow--right {
        right: 0.25rem;
    }
}

/* Hide arrows on desktop */
@media (min-width: 768px) {
    .carousel-air-arrow {
        display: none !important;
    }
}


/* Mobile Search Bar */
.mobile-search-bar {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    background-color: var(--dark-color);
    border-top: 1px solid var(--border-color);
    z-index: 1029;
    padding: 10px 15px;
}

.mobile-search-bar .search-input-group {
    position: relative;
    width: 100%;
}

.mobile-search-bar .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1rem;
    z-index: 2;
}

.mobile-search-bar .search-input {
    width: 100%;
    padding: 8px 12px 8px 40px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    background-color: var(--card-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.mobile-search-bar .search-input:focus {
    outline: none;
    border-color: var(--border-color);
    box-shadow: none;
    background-color: var(--card-bg);
}

.mobile-search-bar .search-input::placeholder {
    color: #888;
}



/* Mobile Search Bar in Header */
.top-header .search-container {
    flex: 1;
    max-width: 450px;
    margin: 0 1rem;
}

.top-header .search-input-group {
    position: relative;
    width: 100%;
}

.top-header .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 1rem;
    z-index: 2;
}

.top-header .search-input {
    width: 100%;
    padding: 6px 12px 6px 40px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    background-color: var(--card-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.top-header .search-input:focus {
    outline: none;
    border-color: var(--border-color);
    box-shadow: none;
    background-color: var(--card-bg);
}

.top-header .search-input::placeholder {
    color: #888;
}

/* Mobile Header Search */
.mobile-header-search {
    flex: 1;
    max-width: 200px;
}

.mobile-header-search .search-form {
    width: 100%;
}

.mobile-header-search .search-input-group {
    width: 100%;
}

.mobile-header-search .search-input {
    padding: 6px 10px 6px 35px;
    font-size: 16px;
    /* Prevent iOS zoom */
    border-radius: 20px;
}

.mobile-header-search .search-icon {
    font-size: 0.8rem;
    left: 10px;
}

/* Adjustments for mobile view */
@media (max-width: 767.98px) {
    .top-header .container {
        padding: 0 10px;
    }

    .top-header .d-flex {
        gap: 10px;
    }

    /* Hide the main search bar on mobile */
    .top-header .search-container {
        display: none;
    }

    /* Show mobile search bar in header */
    .top-header .mobile-header-search {
        display: block !important;
        max-width: 150px;
    }
}





/* ========================================
   Expired Deal Styles
   ======================================== */

/* Expired deal card styling */
.deal-card.expired {
    opacity: 1;
    /* Keep it clear in light mode */
    position: relative;
    border: 1px solid var(--border-color) !important;
}

.deal-card.expired::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.02);
    pointer-events: none;
    z-index: 1;
    border-radius: 0.5rem;
}

/* Expired badge */
.badge-expired {
    background: #6c757d !important;
    color: white;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Expired deal image grayscale */
.deal-card.expired img {
    filter: grayscale(60%);
}

/* Expired deal title */
.deal-card.expired .deal-title,
.deal-card.expired .card-title {
    color: #6c757d !important;
}

/* Expired deal price */
.deal-card.expired .deal-price,
.deal-card.expired .text-danger {
    color: #6c757d !important;
}

/* Dark mode expired deals */
[data-bs-theme="dark"] .deal-card.expired {
    border-color: #495057 !important;
}

[data-bs-theme="dark"] .deal-card.expired::before {
    background: rgba(255, 255, 255, 0.05);
}

/* Expiring soon badge (within 3 days) */
.badge-expiring-soon {
    background: #ffc107 !important;
    color: #000;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Countdown timer styling */
.countdown-timer {
    font-size: 0.85rem;
    color: #dc3545;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.countdown-timer i {
    font-size: 1rem;
}

.countdown-timer.expiring-soon {
    animation: pulse 2s infinite;
}


/* Clickable expired badge hover effect */
.mark-expired-btn {
    transition: all 0.2s ease;
}

.mark-expired-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

.mark-expired-btn:active {
    transform: scale(0.98);
}

/* Specific hover for info badge */
.badge.bg-info.mark-expired-btn:hover {
    background: #0dcaf0 !important;
}

/* Specific hover for warning badge */
.badge.bg-warning.mark-expired-btn:hover {
    background: #ffca2c !important;
}

/* Prevent zoom on mobile inputs */
@media screen and (max-width: 767.98px) {
    .search-input {
        font-size: 16px !important;
    }
}

/* Mobile Search Layout - HotUKDeals Style */

/* Search input wrapper for positioning */
.search-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 12px;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 1rem;
    z-index: 2;
    pointer-events: none;
}

.search-input-wrapper .search-input {
    width: 100%;
    padding: 6px 40px 6px 40px;
}

.search-input-wrapper .search-clear-btn {
    position: absolute;
    right: 12px;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    padding: 0;
}

/* Mobile Back Button - hidden by default */
.mobile-search-back-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border: none;
    background: transparent;
    color: #333;
    border-radius: 50%;
    cursor: pointer;
    margin-right: 8px;
    transition: background-color 0.2s;
}

.mobile-search-back-btn:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.mobile-search-back-btn i {
    font-size: 1.2rem;
}

@media (max-width: 767.98px) {

    /* Default state: search container in header flow */
    .search-container-wrapper {
        position: relative;
        flex: 1;
        margin: 0 8px !important;
        z-index: 1;
        transition: all 0.25s ease;
    }

    /* Search form fills container */
    .search-form {
        width: 100%;
    }

    .search-input-group {
        width: 100%;
        display: flex;
        align-items: center;
    }

    /* Search input wrapper */
    .search-input-wrapper {
        flex: 1;
        position: relative;
    }

    /* Default search input */
    .search-input-wrapper .search-input {
        width: 100%;
        height: 32px;
        padding: 4px 35px 4px 35px;
        border-radius: 50px;
        border: 2px solid transparent;
        background-color: var(--card-bg, #333);
        color: var(--text-primary, white);
        font-size: 16px;
        transition: all 0.25s ease;
    }

    .search-input-wrapper .search-input::placeholder {
        color: var(--text-muted, #888);
        font-size: 14px;
    }

    .search-input-wrapper .search-icon {
        left: 12px;
        color: var(--text-muted, #888);
        font-size: 0.9rem;
    }

    /* === ACTIVE STATE: When search is focused === */
    .search-container-wrapper.search-active {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        height: 100dvh;
        background-color: var(--card-bg, #fff);
        z-index: 1060;
        display: flex;
        flex-direction: column;
        padding: 12px;
        padding-top: calc(env(safe-area-inset-top, 0px) + 16px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        animation: slideInFromRight 0.25s ease forwards;
    }

    @keyframes slideInFromRight {
        from {
            opacity: 0;
            transform: translateX(30px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* Show back button when active */
    .search-container-wrapper.search-active .mobile-search-back-btn {
        display: flex;
        color: var(--text-primary, #333);
    }

    /* Focus style - orange border like HotUKDeals */
    .search-container-wrapper.search-active .search-input-wrapper .search-input {
        border-color: #FDC90B;
        background-color: var(--darker-bg, #fff);
    }

    .search-container-wrapper.search-active .search-input-wrapper .search-icon {
        color: #FDC90B;
    }

    /* Dropdown when active */
    .search-container-wrapper.search-active .search-dropdown {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - 60px);
        max-height: calc(100vh - 60px);
        border-radius: 0;
        background-color: var(--card-bg, #fff);
        overflow-y: auto;
        z-index: 1055;
    }

    /* Overlay behind search */
    .mobile-search-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1050;
    }

    .mobile-search-overlay.show {
        display: block;
    }
}

/* Desktop - ensure normal behavior */
@media (min-width: 768px) {
    .mobile-search-back-btn {
        display: none !important;
    }

    .search-container-wrapper {
        position: relative;
    }
}

/* Mobile Filter Dropdown Dark Mode */
@media (max-width: 767.98px) {
    [data-theme="dark"] #filterDropdown {
        background-color: #262626 !important;
        color: white !important;
        border-color: #444 !important;
    }

    [data-theme="dark"] .filter-dropdown-header {
        border-bottom-color: #444 !important;
        background-color: #333 !important;
        color: white !important;
    }

    [data-theme="dark"] .filter-dropdown-title {
        color: white !important;
    }

    [data-theme="dark"] .filter-dropdown-close {
        color: white !important;
        background-color: rgba(255, 255, 255, 0.1);
    }

    [data-theme="dark"] .filter-search-wrapper {
        background-color: #262626 !important;
        border-bottom-color: #444 !important;
    }

    [data-theme="dark"] .filter-search-input {
        background-color: #333 !important;
        color: white !important;
        border-color: #444 !important;
    }

    [data-theme="dark"] .filter-search-icon {
        color: #b0b0b0 !important;
    }

    [data-theme="dark"] .filter-dropdown-body {
        background-color: #262626 !important;
    }

    [data-theme="dark"] .filter-region-name {
        background-color: #333 !important;
        color: white !important;
        border-bottom-color: #444 !important;
    }

    [data-theme="dark"] .filter-region-name span {
        color: white !important;
    }

    [data-theme="dark"] .filter-location-item {
        border-bottom-color: #444 !important;
        color: white !important;
    }

    [data-theme="dark"] .filter-location-name {
        color: white !important;
    }

    [data-theme="dark"] .filter-location-checkbox:checked+.filter-checkbox-custom {
        background-color: #FDC90B !important;
        border-color: #FDC90B !important;
    }

    [data-theme="dark"] .filter-dropdown-footer {
        background-color: #262626 !important;
        border-top-color: #444 !important;
    }

    [data-theme="dark"] .filter-clear-btn {
        background-color: #333 !important;
        color: white !important;
        border-color: #555 !important;
    }
}

/* Auto Theme Mobile Filter Dropdown */
@media (prefers-color-scheme: dark) and (max-width: 767.98px) {
    [data-theme="auto"] #filterDropdown {
        background-color: #262626 !important;
        color: white !important;
        border-color: #444 !important;
    }

    [data-theme="auto"] .filter-dropdown-header {
        border-bottom-color: #444 !important;
        background-color: #333 !important;
        color: white !important;
    }

    [data-theme="auto"] .filter-dropdown-title {
        color: white !important;
    }

    [data-theme="auto"] .filter-dropdown-close {
        color: white !important;
        background-color: rgba(255, 255, 255, 0.1);
    }

    [data-theme="auto"] .filter-search-wrapper {
        background-color: #262626 !important;
        border-bottom-color: #444 !important;
    }

    [data-theme="auto"] .filter-search-input {
        background-color: #333 !important;
        color: white !important;
        border-color: #444 !important;
    }

    [data-theme="auto"] .filter-search-icon {
        color: #b0b0b0 !important;
    }

    [data-theme="auto"] .filter-dropdown-body {
        background-color: #262626 !important;
    }

    [data-theme="auto"] .filter-region-name {
        background-color: #333 !important;
        color: white !important;
        border-bottom-color: #444 !important;
    }

    [data-theme="auto"] .filter-region-name span {
        color: white !important;
    }

    [data-theme="auto"] .filter-location-item {
        border-bottom-color: #444 !important;
        color: white !important;
    }

    [data-theme="auto"] .filter-location-name {
        color: white !important;
    }

    [data-theme="auto"] .filter-location-checkbox:checked+.filter-checkbox-custom {
        background-color: #FDC90B !important;
        border-color: #FDC90B !important;
    }

    [data-theme="auto"] .filter-dropdown-footer {
        background-color: #262626 !important;
        border-top-color: #444 !important;
    }

    [data-theme="auto"] .filter-clear-btn {
        background-color: #333 !important;
        color: white !important;
        border-color: #555 !important;
    }
}

/* Store Type Button Styling */
.store-type-btn {
    border-radius: 0.5rem !important;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 2px solid #dee2e6 !important;
    color: #6c757d !important;
}

.store-type-btn:hover {
    border-color: #FDC90B !important;
    color: #FDC90B !important;
    background-color: rgba(253, 201, 11, 0.1) !important;
}

.btn-check:checked+.store-type-btn {
    background-color: #FDC90B !important;
    border-color: #FDC90B !important;
    color: #000 !important;
    box-shadow: 0 2px 6px rgba(253, 201, 11, 0.3);
}

.btn-check:focus+.store-type-btn {
    box-shadow: 0 0 0 0.25rem rgba(253, 201, 11, 0.25);
}

/* Responsive Store Type Buttons */
@media (max-width: 576px) {
    .store-type-buttons {
        flex-direction: column !important;
    }

    .store-type-buttons .store-type-btn {
        width: 100%;
        text-align: left;
        display: flex;
        align-items: center;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 767.98px) {
    .main-image-wrapper {
        height: 220px !important;
        min-height: unset !important;
    }
}

/* Mobile Compact Layout - Global */
@media (max-width: 767.98px) {

    /* Container padding - more compact */
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    /* Card spacing - more compact */
    .card {
        margin-bottom: 0.75rem !important;
    }

    .card-body {
        padding: 0.75rem !important;
    }

    /* Row spacing - more compact */
    .row.mb-3 {
        margin-bottom: 0.75rem !important;
    }

    .row.mt-3 {
        margin-top: 0.75rem !important;
    }

    /* Text sizes - smaller for mobile */
    h1 {
        font-size: 1.5rem !important;
    }

    h2 {
        font-size: 1.25rem !important;
    }

    h3 {
        font-size: 1.1rem !important;
    }

    h4 {
        font-size: 1rem !important;
    }

    h5 {
        font-size: 0.9rem !important;
    }

    /* Button sizes - more compact */
    .btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.85rem !important;
    }

    .btn-sm {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.75rem !important;
    }

    /* Form elements - more compact */
    .form-control {
        padding: 0.5rem !important;
        font-size: 0.85rem !important;
    }

    .form-select {
        padding: 0.5rem !important;
        font-size: 0.85rem !important;
    }

    /* Badge sizes - smaller */
    .badge {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.5rem !important;
    }

    /* Alert padding - more compact */
    .alert {
        padding: 0.5rem !important;
        font-size: 0.85rem !important;
    }

    /* List group items - more compact */
    .list-group-item {
        padding: 0.5rem !important;
        font-size: 0.85rem !important;
    }

    /* Modal content - more compact */
    .modal-body {
        padding: 0.75rem !important;
    }

    .modal-header {
        padding: 0.75rem !important;
    }

    .modal-footer {
        padding: 0.75rem !important;
    }

    /* Navigation - more compact */
    .navbar {
        padding: 0.5rem 0.75rem !important;
    }

    .navbar-brand {
        font-size: 1.1rem !important;
    }

    .nav-link {
        padding: 0.5rem !important;
        font-size: 0.85rem !important;
    }

    /* Dropdown menu - more compact */
    .dropdown-menu {
        font-size: 0.85rem !important;
    }

    .dropdown-item {
        padding: 0.5rem 1rem !important;
    }

    /* Table - more compact */
    .table td,
    .table th {
        padding: 0.5rem !important;
        font-size: 0.85rem !important;
    }

    /* Pagination - more compact */
    .page-link {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.85rem !important;
    }

    /* Breadcrumb - more compact */
    .breadcrumb {
        padding: 0.5rem 0 !important;
        font-size: 0.85rem !important;
    }

    /* Progress bar - smaller */
    .progress {
        height: 0.75rem !important;
    }

    /* Tooltip and popover - smaller text */
    .tooltip-inner {
        font-size: 0.75rem !important;
    }

    .popover-body {
        font-size: 0.85rem !important;
    }
}

/* Sidebar Overlay - Essential for mobile menu */
.sidebar-overlay,
.categories-overlay,
.merchants-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    /* Lower than modal backdrop (1050) and modals (1055) */
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active,
.categories-overlay.active,
.merchants-overlay.active,
.sidebar-overlay.show,
.categories-overlay.show,
.merchants-overlay.show {
    display: block;
    opacity: 1;
    visibility: visible;
}

@media screen and (max-width: 768px) {

    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="search"],
    select,
    textarea,
    .form-control,
    .form-select {
        font-size: 16px !important;
    }
}

/* ========================================
   MOBILE OVERLAY FIX - Solusi Tampilan Abu-abu
   ======================================== */

/* 1. RESET OVERLAY YANG STUCK */
@media (max-width: 767.98px) {

    /* Force remove any stuck overlays */
    .sidebar-overlay:not(.show):not(.active),
    .categories-overlay:not(.show):not(.active),
    .merchants-overlay:not(.show):not(.active),
    .mobile-search-overlay:not(.show):not(.active),
    .modal-backdrop:not(.show) {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Reset search container yang stuck */
    .search-container-wrapper:not(.search-active) {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: auto !important;
        height: auto !important;
        z-index: auto !important;
        background-color: transparent !important;
        padding: 0 !important;
        margin: 0 8px !important;
    }

    /* Force reset body overflow - emergency fix */
    body.overlay-stuck {
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    /* Ensure no fixed elements blocking screen */
    .search-container-wrapper.search-active {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        z-index: 9999 !important;
        background-color: var(--card-bg, #fff) !important;
        padding: 12px !important;
        padding-top: calc(env(safe-area-inset-top, 0px) + 16px) !important;
    }

    /* Ensure search dropdown is visible when active */
    .search-container-wrapper.search-active .search-dropdown {
        position: relative !important;
        top: auto !important;
        margin-top: 12px !important;
        flex: 1 1 auto !important;
        max-height: calc(100vh - 80px) !important;
        height: auto !important;
        overflow-y: auto !important;
        border-radius: 12px !important;
        background-color: var(--card-bg, #fff) !important;
        display: block !important;
    }
}

/* 2. CHROME MOBILE SPECIFIC FIXES */
@media (max-width: 767.98px) {

    /* Reset any backdrop filters which can cause rendering issues on some mobile browsers */
    .sidebar-overlay,
    .categories-overlay,
    .merchants-overlay {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Ensure main content is visible */
    main {
        position: relative !important;
        background-color: transparent !important;
        /* Allow body background to show */
    }

    /* Ensure header is always on top */
    .header {
        z-index: 1030 !important;
    }
}

@media (max-width: 767.98px) {

    /* Chrome mobile viewport fix */
    html {
        height: 100% !important;
        overflow-x: hidden !important;
        -webkit-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
    }

    body {
        min-height: 100% !important;
        position: relative !important;
    }

    /* Fix Chrome mobile rendering issues */
    .container,
    .container-fluid {
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
    }

    /* Ensure main content is visible */
    main {
        position: relative !important;
        background-color: transparent !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Reset header positioning */
    .header {
        position: sticky !important;
        top: 0 !important;
        z-index: 1030 !important;
    }
}

/* 3. EMERGENCY RESET BUTTON STYLES */
.emergency-reset-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(255, 0, 0, 0.1) !important;
    z-index: 99999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
}

.emergency-reset-btn {
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3) !important;
}

/* 4. FORCE VISIBILITY FOR MAIN CONTENT */
@media (max-width: 767.98px) {

    .container,
    .row,
    .col,
    [class*="col-"] {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Ensure cards are visible */
    .card,
    .deal-card,
    .freebie-card {
        opacity: 1 !important;
        visibility: visible !important;
        background-color: var(--card-bg, #fff) !important;
    }
}


/* ============================================
   Google Maps Integration Styling
   ============================================ */

/* Maps Button Styling - Force no hover/animation */
.btn-outline-success {
    border-color: #25D366 !important;
    color: #25D366 !important;
    background-color: transparent !important;
    transition: none !important;
    transform: none !important;
    text-decoration: none !important;
}

/* Force remove ALL hover effects and animations */
.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success:active,
.btn-outline-success:visited {
    background-color: transparent !important;
    border-color: #25D366 !important;
    color: #25D366 !important;
    box-shadow: none !important;
    transition: none !important;
    transform: none !important;
    text-decoration: none !important;
}

/* Disable icon animation inside Maps button */
.btn-outline-success .bi-geo-alt-fill,
.btn-outline-success i {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    color: #25D366 !important;
}

/* Disable all animations on hover for Maps button and its children */
.btn-outline-success:hover .bi-geo-alt-fill,
.btn-outline-success:hover i,
.btn-outline-success:hover * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    color: #25D366 !important;
}

/* Override any link default styles */
a.btn-outline-success,
a.btn-outline-success:link,
a.btn-outline-success:visited,
a.btn-outline-success:hover,
a.btn-outline-success:active {
    color: #25D366 !important;
    text-decoration: none !important;
}

/* Maps Badge Styling */
.badge.bg-success {
    background-color: transparent !important;
    border: none !important;
    color: inherit !important;
    transition: none !important;
    cursor: pointer !important;
    z-index: 100;
    position: relative;
    transform: none !important;
}

/* Remove ALL hover effects including zoom */
.badge.bg-success:hover,
.badge.bg-success:focus,
.badge.bg-success:active {
    background-color: transparent !important;
    border: none !important;
    color: inherit !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

/* Icon stays green */
.badge.bg-success i {
    color: #25D366 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

.badge.bg-success:hover i {
    color: #25D366 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

/* Maps Icon Animation - DISABLED for button, only for other elements */
@keyframes pulse-maps {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Remove pulse animation from all icons in Maps button */
.btn-outline-success * {
    animation: none !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .btn-outline-success {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    .badge.bg-success {
        font-size: 0.7rem;
    }
}
