/* Abone Full Design System */
:root {
    --background: #ffffff;
    --foreground: #1a1a1a;
    --card: #ffffff;
    --card-foreground: #1a1a1a;
    --border: rgba(0, 0, 0, 0.08);
    --primary: #5B67F5;
    --primary-foreground: #ffffff;
    --muted: #f4f4f7;
    --muted-foreground: #717182;
    --destructive: #fa5252;
    --green: #40c057;
    --orange: #fd7e14;
    --purple: #be4bdb;
    --pink: #f06595;
    --blue: #339af0;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --gradient-primary: linear-gradient(135deg, #5B67F5, #7c4dff);
}

/* Home Profile Card */
.home-profile-card {
    background: var(--card);
    border-radius: 28px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.home-profile-card:active {
    transform: scale(0.97);
}

.home-profile-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.home-profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--background);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.home-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-profile-details h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 2px;
    color: var(--foreground);
    letter-spacing: -0.3px;
}

.home-profile-details p {
    font-size: 13px;
    color: var(--muted-foreground);
    font-weight: 600;
}

.home-profile-qr-btn {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.home-profile-card:hover .home-profile-qr-btn {
    background: var(--primary);
    color: white;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    touch-action: manipulation;
}

/* Modern Scrollbar Styles */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(91, 103, 245, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(91, 103, 245, 0.4);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(91, 103, 245, 0.2) transparent;
}

.leaflet-control-attribution,
.leaflet-attribution-flag {
    display: none !important;
}

#app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background: var(--background);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

@media (display-mode: standalone) {
    #app-container {
        min-height: 100dvh;
    }
}

/* Pull to Refresh Indicator */
.pull-to-refresh {
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    z-index: 999;
}

.ptr-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(91, 103, 245, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: ptr-spin 0.8s linear infinite;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s;
}

.pull-to-refresh.active .ptr-spinner {
    opacity: 1;
    transform: scale(1);
}

@keyframes ptr-spin {
    to {
        transform: rotate(360deg);
    }
}

.icon {
    width: 20px;
    height: 20px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: calc(20px + env(safe-area-inset-top, 0px));
    right: 20px;
    left: 20px;
    z-index: 30000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

@media (min-width: 480px) {
    .toast-container {
        left: auto;
        width: 380px;
    }
}

.toast {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 16px 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border);
    animation: toast-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    transition: all 0.3s ease;
}

.toast.toast-error {
    background: rgba(250, 82, 82, 0.95);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(250, 82, 82, 0.3);
}

.toast.toast-success {
    background: rgba(64, 192, 87, 0.95);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(64, 192, 87, 0.3);
}

.toast-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-icon svg {
    width: 24px;
    height: 24px;
}

.toast-message {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* For removing toast */
.toast-out {
    opacity: 0;
    transform: translateX(100px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 480px;
    z-index: 10000;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sidebar Drawer Menu */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 20000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.sidebar-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: #fff;
    z-index: 20001;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.1);
}

.sidebar-overlay.active .sidebar-drawer {
    transform: translateX(0);
}

.sidebar-header {
    background: linear-gradient(135deg, #5B67F5, #7c4dff);
    padding: calc(24px + env(safe-area-inset-top, 0px)) 24px 24px;
    color: white;
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-avatar {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.sidebar-user-name {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 2px;
}

.sidebar-badge {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.15);
}

.sidebar-menu {
    flex: 1;
    padding: 24px 16px;
    overflow-y: auto;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 10px;
    border-radius: 14px;
    color: var(--foreground);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    margin-bottom: 4px;
    border: none;
    background: transparent;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.sidebar-menu-item:active {
    background: var(--muted);
    transform: scale(0.98);
}

.sidebar-menu-item svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.2;
    color: var(--muted-foreground);
}

.sidebar-menu-item.danger {
    color: var(--destructive);
    margin-top: 10px;
}

.sidebar-menu-item.danger svg {
    color: var(--destructive);
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.sidebar-section-title {
    font-size: 9px;
    font-weight: 800;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 16px 16px 8px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}

.header-logo-text {
    font-size: 19px;
    font-weight: 850;
    letter-spacing: -0.5px;
    line-height: 1.1;
    text-transform: uppercase;
}

.header-icons-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-icon-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.header-icon-btn:active {
    transform: scale(0.9);
}

.header-icon-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.2;
}

.notification-badge-red {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 10px;
    height: 10px;
    background: var(--destructive);
    border-radius: 50%;
    border: 2px solid var(--background);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}

/* Page Content */
.page-content {
    flex: 1;
    padding-top: calc(78px + env(safe-area-inset-top, 0px));
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 125px;
    width: 100%;
    position: relative;
    z-index: 1;
    background: var(--background);
    display: flex;
    flex-direction: column;
}



/* Global Search Overlay */
.search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
    z-index: -1;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-overlay.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    z-index: 101;
}

.search-overlay-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.global-search-results {
    background: white;
    max-height: 70vh;
    overflow-y: auto;
    display: none;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

.global-search-results.active {
    display: block;
}

.search-result-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-result-row:hover {
    background: var(--muted);
}

.result-img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--muted);
    flex-shrink: 0;
}

.result-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--muted-foreground);
}

.result-info {
    flex: 1;
}

.result-name {
    font-size: 14px;
    font-weight: 600;
}

.result-meta {
    font-size: 11px;
    color: var(--muted-foreground);
}

.result-city {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted-foreground);
    background: var(--muted);
    padding: 4px 10px;
    border-radius: 10px;
    white-space: nowrap;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--muted-foreground);
    font-size: 14px;
}

.close-search-btn {
    background: var(--muted);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted-foreground);
}

/* Search */
.search-wrapper {
    margin-top: 16px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--muted);
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}

.search-input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(91, 103, 245, 0.1);
}

.input-group {
    margin-bottom: 16px;
}

.input-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--foreground);
    opacity: 0.8;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--muted);
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
    color: var(--foreground);
}

.form-input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(91, 103, 245, 0.1);
}


/* Sections */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.section-title {
    font-size: 17px;
    font-weight: 700;
}

.link-btn {
    background: var(--muted);
    border: none;
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 99px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 4px;
}

.link-btn:hover {
    background: rgba(91, 103, 245, 0.1);
}

.link-btn:active {
    transform: scale(0.95);
}

/* Categories */
/* Stories Bar */
.stories-container {
    padding: 0px 5px 2px 5px;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
    display: flex;
    gap: 10px;
    padding-right: 16px;
}

.stories-container::-webkit-scrollbar {
    display: none;
}

.story-item {
    flex-shrink: 0;
    width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    cursor: pointer;
    transition: transform 0.2s;
}

.story-item:active {
    transform: scale(0.92);
}

.story-ring {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 3px;
    background: var(--gradient-primary);
}

.story-ring.seen {
    background: var(--border);
}

.story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--background);
    border: 3px solid var(--background);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--foreground);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Stories Viewer */
.stories-viewer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 50000;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    touch-action: none;
}

.stories-viewer.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.stories-viewer-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 480px;
    background: #000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (min-width: 480px) {
    .stories-viewer-container {
        width: 420px;
        height: min(90vh, 746px);
        border-radius: 24px;
        box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    }
}

.stories-header {
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    padding: 0 16px;
    padding-top: env(safe-area-inset-top, 0px);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stories-progress-bars {
    display: flex;
    gap: 4px;
    height: 2px;
}

.progress-bar-bg {
    flex: 1;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: white;
    width: 0%;
    transition: width linear;
}

.story-top-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.story-top-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    overflow: hidden;
}

.story-top-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-top-name {
    font-weight: 700;
    font-size: 15px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 99px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.story-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    cursor: pointer;
}

.story-image {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.story-footer {
    position: absolute;
    bottom: 24px;
    left: 16px;
    right: 16px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    z-index: 2;
}

.story-caption {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.story-close {
    position: absolute;
    top: 33px;
    right: 16px;
    margin-top: env(safe-area-inset-top, 0px);
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.story-close:active {
    background: rgba(0, 0, 0, 0.6);
}

.story-close svg {
    width: 20px;
    height: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.category-chip {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 600;
    color: var(--muted-foreground);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.category-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(91, 103, 245, 0.3);
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.category-icon svg {
    width: 24px;
    height: 24px;
}

/* Cards */
.place-card.large {
    background: #fff;
    border-radius: 28px;
    border: 1px solid rgba(91, 103, 245, 0.1);
    overflow: hidden;
    margin-bottom: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.06),
        0 8px 24px rgba(91, 103, 245, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.place-card.large:hover {
    transform: translateY(-3px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 16px 36px rgba(91, 103, 245, 0.16),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.place-image-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.place-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.place-card.large:active {
    transform: scale(0.98);
}

.place-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.discount-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--destructive);
    color: white;
    padding: 4px 8px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 800;
    z-index: 11;
    box-shadow: 0 4px 12px rgba(250, 82, 82, 0.3);
}

.discount-badge.hot {
    background: linear-gradient(135deg, #ff4500 0%, #ff8c00 100%);
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
    animation: hot-pulse 2s infinite;
}

@keyframes hot-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.marker-discount-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--destructive);
    color: white;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: 2px solid white;
}

.marker-discount-badge.hot {
    background: linear-gradient(135deg, #ff4500 0%, #ff8c00 100%);
}

.visited-discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--destructive);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.visited-discount-badge.hot {
    background: linear-gradient(135deg, #ff4500 0%, #ff8c00 100%);
}

.like-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.like-btn.active {
    color: #ff4757;
    background: rgba(255, 255, 255, 0.9);
}

.place-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    color: white;
}

.place-info-overlay h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.place-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    opacity: 0.9;
}

.rating-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 8px;
}

.place-footer {
    padding: 12px 16px;
}

/* Small Cards */
.place-card.small {
    display: flex;
    align-items: center;
    padding: 12px;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    margin-bottom: 12px;
}

.place-card.small img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
}

.place-card.small .details {
    flex: 1;
}

.place-card.small h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.place-card.small .category {
    font-size: 13px;
    color: var(--muted-foreground);
}

.sm-discount {
    background: rgba(250, 82, 82, 0.1);
    color: var(--destructive);
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

/* Buttons */
.btn-primary {
    padding: 16px;
    border: none;
    border-radius: 18px;
    background: var(--primary);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0px 6px 8px 0px rgba(91, 103, 245, 0.3);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary {
    border: 1.5px solid var(--primary);
    border-radius: 18px;
    background: transparent;
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

/* Compact action button used in icon+text pairs */
.action-btn {
    flex: 1;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    width: auto;
    padding: 0 12px;
}

/* User Card */
.user-card {
    background: linear-gradient(135deg, #5B67F5, #7c4dff);
    padding: 15px;
    border-radius: 28px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 20px 40px rgba(91, 103, 245, 0.3);
}

.user-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.user-avatar-big {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-name {
    font-size: 22px;
    font-weight: 800;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
}

.user-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 10px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 16px;
}


.user-stat-label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 4px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-stat-value {
    font-size: 18px;
    font-weight: 800;
}

.progress-container {
    margin-top: 10px;
}

.user-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    opacity: 0.9;
}

.progress-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.user-progress-fill {
    height: 100%;
    background: #fff;
    border-radius: 10px;
    width: var(--progress, 0%);
    transition: width 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Map Page */
.map-container-full {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 100dvh;
    z-index: 9998;
    background: var(--background);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    pointer-events: auto !important;
}

/* Optimize performance on map page by simplifying header */
.active-map .header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

@media (min-width: 481px) {
    .map-container-full {
        position: relative;
        height: 100vh;
        margin-top: 0;
        transform: none;
        left: 0;
    }
}

.map-filters-overlay {
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 16px;
}

.location-btn-map,
.filter-btn-map {
    position: absolute;
    z-index: 1000;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50%;
    padding: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    line-height: 0;
    right: 20px;
}

.location-btn-map {
    bottom: 120px;
}

.filter-btn-map {
    bottom: 180px;
}

/* Custom Map Markers */
.custom-map-marker {
    position: relative;
    width: 48px;
    height: 48px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), z-index 0s;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    z-index: 10;
    background: transparent;
    border: none;
    pointer-events: auto !important;
}

.custom-map-marker:hover {
    transform: scale(1.15) translateY(-4px);
    z-index: 99999 !important;
}

.marker-inner {
    width: 44px;
    height: 44px;
    background: #fff;
    border: 3.5px solid var(--primary);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease-out;
}

.marker-inner.loaded {
    opacity: 1;
}

.marker-pin {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-60%) rotate(-45deg);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 14px solid var(--primary);
    z-index: 1;
}

.marker-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.marker-fallback {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    text-transform: uppercase;
}

/* Marker Cluster Custom Design */
.marker-cluster-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    position: relative;
}

.marker-cluster-inner {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(91, 103, 245, 0.3);
    border: 3px solid white;
    box-sizing: border-box;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background: var(--gradient-primary) !important;
}

/* Bottom Sheet */
.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 100%);
    width: 100%;
    max-width: 480px;
    background: white;
    border-radius: 32px 32px 0 0;
    z-index: 15000;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s, visibility 0.3s;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.bottom-sheet.active {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sheet-handle {
    width: 40px;
    height: 5px;
    background: var(--muted);
    border-radius: 3px;
    margin: 8px auto;
}

.sheet-content {
    padding: 0 20px 32px;
}

/* QR Section */
.qr-container {
    background: #fff;
    padding: 24px;
    border-radius: 32px;
    text-align: center;
    border: 1px solid var(--border);
}

.qr-box {
    width: 220px;
    height: 220px;
    margin: 0 auto 16px;
    padding: 12px;
    background: #000;
    border-radius: 20px;
}

/* Bottom Nav */
.nav-slider {
    position: absolute;
    border-radius: 50px;
    background: linear-gradient(135deg, #5B67F5 0%, #7e89ff 100%);
    box-shadow: 0 4px 16px rgba(91, 103, 245, 0.38);
    z-index: 0;
    opacity: 0;
    pointer-events: none;
}

.bottom-nav {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 440px;
    height: 64px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    display: flex;
    align-items: stretch;
    padding: 3px 4px 4px 4px;
    gap: 3px;
    z-index: 10000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(91,103,245,0.07), inset 0 1px 0 rgba(255,255,255,0.95);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-sizing: border-box;
    overflow: hidden;
}

.nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    color: #a0a0b8;
    text-decoration: none;
    transition: color 0.22s, transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: transparent;
    position: relative;
    min-width: 0;
    z-index: 1;
}

.nav-item:active {
    transform: scale(0.93);
}

.nav-item.active {
    color: #ffffff;
    background: transparent;
}

.nav-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    z-index: 1;
}

.nav-item .icon {
    width: 22px;
    height: 22px;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item.active .icon {
    transform: scale(1.1);
    stroke-width: 2.5;
}

.nav-item:active .icon {
    transform: scale(0.9);
}

.nav-indicator { display: none; }

.nav-item span {
    max-width: 0;
    opacity: 0;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: max-width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s, margin-left 0.35s;
    margin-left: 0;
    overflow: hidden;
}

.nav-item.active span {
    max-width: 90px;
    opacity: 1;
    margin-left: 6px;
}

@media (max-width: 360px) {
    .bottom-nav {
        height: 58px;
        width: calc(100% - 20px);
        border-radius: 50px;
        padding: 5px;
    }
    .nav-item .icon {
        width: 20px;
        height: 20px;
    }
}

/* Dashboard Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.dashboard-card {
    background: #fff;
    padding: 20px;
    border-radius: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.dashboard-card .label {
    display: block;
    font-size: 13px;
    color: var(--muted-foreground);
    margin-bottom: 8px;
    font-weight: 500;
}

.dashboard-card .value {
    font-size: 24px;
    font-weight: 800;
    color: var(--foreground);
}

.list-group {
    background: #fff;
    border-radius: 28px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item:hover {
    background: var(--muted);
}

.item-info h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.item-info p {
    font-size: 13px;
    color: var(--muted-foreground);
}

.badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.badge-success {
    background: rgba(64, 192, 87, 0.1);
    color: var(--green);
}

.badge-warning {
    background: rgba(253, 126, 20, 0.1);
    color: var(--orange);
}

/* Partner Contests Styling */
.contest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 16px;
}

.contest-header .btn-primary {
    width: auto;
    padding: 10px 18px;
    font-size: 14px;
    min-height: auto;
}

.contest-header-info h2 {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 4px;
}

.contest-header-info p {
    font-size: 13px;
    color: var(--muted-foreground);
    font-weight: 500;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--muted-foreground);
    background: var(--muted);
    border: none;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    width: fit-content;
}

.back-btn:hover {
    background: var(--border);
    color: var(--foreground);
}

.hidden { display: none !important; }
.cursor-pointer { cursor: pointer !important; }
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.z-1 { z-index: 1 !important; }

.flex { display: flex !important; }
.flex-col { display: flex !important; flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.items-center { align-items: center !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.items-start { align-items: flex-start !important; }
.gap-2 { gap: 2px !important; }
.gap-4 { gap: 4px !important; }
.gap-6 { gap: 6px !important; }
.gap-8 { gap: 8px !important; }
.gap-10 { gap: 10px !important; }
.gap-12 { gap: 12px !important; }
.gap-14 { gap: 14px !important; }


.sticky { position: sticky !important; }
.z-2 { z-index: 2 !important; }
.z-100 { z-index: 100 !important; }

.top-0 { top: 0 !important; }
.top-12 { top: 12px !important; }
.top-neg-20 { top: -20px !important; }
.right-0 { right: 0 !important; }
.right-neg-20 { right: -20px !important; }
.left-0 { left: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.mt-neg-30 { margin-top: -30px !important; }
.mt-neg-4 { margin-top: -4px !important; }

.w-100 { width: 100px !important; }
.h-100 { height: 100px !important; }
.w-12 { width: 12px !important; }
.h-12 { height: 12px !important; }
.w-20 { width: 20px !important; }
.h-20 { height: 20px !important; }
.w-24 { width: 24px !important; }
.h-24 { height: 24px !important; }
.h-64 { height: 64px !important; }
.w-full { width: 100% !important; }
.h-full { height: 100% !important; }

.blur-10 { backdrop-filter: blur(10px) !important; -webkit-backdrop-filter: blur(10px) !important; }

.border-white-20 { border: 1px solid rgba(255, 255, 255, 0.2) !important; }

.bg-primary-05 { background: rgba(91, 103, 245, 0.05) !important; }
.bg-white { background: #fff !important; }
.bg-white-10 { background: rgba(255, 255, 255, 0.1) !important; }

.shadow-sm { box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important; }
.shadow { box-shadow: var(--shadow) !important; }
.shadow-primary { box-shadow: 0 4px 15px rgba(91, 103, 245, 0.15) !important; }
.shadow-code { box-shadow: 0 4px 12px rgba(91, 103, 245, 0.25) !important; }

.mt-neg-2 { margin-top: -2px !important; }

.top-1\/2 { top: 50% !important; }
.left-1\/2 { left: 50% !important; }
.-translate-x-1\/2 { transform: translateX(-50%) !important; }
.-translate-y-1\/2 { transform: translateY(-50%) !important; }
.-translate-x-1\/2.-translate-y-1\/2 { transform: translate(-50%, -50%) !important; }

.p-0 { padding: 0 !important; }
.px-4 { padding-left: 4px !important; padding-right: 4px !important; }

.m-0 { margin: 0 !important; }
.mt-24 { margin-top: 24px !important; }
.mb-2 { margin-bottom: 2px !important; }
.mb-4 { margin-bottom: 4px !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-10 { margin-bottom: 10px !important; }
.mb-12 { margin-bottom: 12px !important; }
.mb-14 { margin-bottom: 14px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-24 { margin-bottom: 24px !important; }
.my-20 { margin: 20px 0 !important; }
.mt-4 { margin-top: 4px !important; }
.mt-5 { margin-top: 5px !important; }
.mt-10 { margin-top: 10px !important; }
.mt-12 { margin-top: 12px !important; }

.mr-8 { margin-right: 8px !important; }
.ml-neg-2 { margin-left: -2px !important; }

.text-11 { font-size: 11px !important; }
.text-12 { font-size: 12px !important; }
.text-13 { font-size: 13px !important; }
.text-14 { font-size: 14px !important; }
.text-15 { font-size: 15px !important; }
.text-16 { font-size: 16px !important; }
.text-18 { font-size: 18px !important; }
.text-20 { font-size: 20px !important; }
.text-28 { font-size: 28px !important; }
.text-48 { font-size: 48px !important; }
.text-64 { font-size: 64px !important; }
.text-09e { font-size: 0.9em !important; }
.text-uppercase { text-transform: uppercase !important; }
.font-600 { font-weight: 600 !important; }
.font-700 { font-weight: 700 !important; }
.font-800 { font-weight: 800 !important; }
.tracking-05 { letter-spacing: 0.5px !important; }
.tracking-1 { letter-spacing: 1px !important; }
.tracking-5 { letter-spacing: 5px !important; }
.tracking-wide { letter-spacing: 0.03em !important; }

.opacity-50 { opacity: 0.5 !important; }
.opacity-70 { opacity: 0.7 !important; }

.max-w-150 { max-width: 150px !important; }
.truncate { white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }

.list-none { list-style: none !important; }
.no-underline { text-decoration: none !important; }
.overflow-hidden { overflow: hidden !important; }
.object-cover { object-fit: cover !important; }
.text-center { text-align: center !important; }
.inline-block { display: inline-block !important; }
.block { display: block !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.text-inherit { color: inherit !important; }
.text-destructive { color: var(--destructive) !important; }
.text-green { color: var(--green) !important; }
.text-white { color: white !important; }
.text-white-65 { color: rgba(255, 255, 255, 0.65) !important; }
.bg-white { background: #fff !important; }
.bg-white-10 { background: rgba(255, 255, 255, 0.1) !important; }
.bg-white-15 { background: rgba(255, 255, 255, 0.15) !important; }
.bg-white-20 { background: rgba(255, 255, 255, 0.2) !important; }
.bg-primary-10 { background: rgba(91, 103, 245, 0.1) !important; }
.bg-blue-05 { background: rgba(0, 136, 204, 0.05) !important; }
.bg-green-05 { background: rgba(76, 175, 80, 0.05) !important; }
.m-0-auto { margin: 0 auto !important; }

.p-4 { padding: 4px !important; }
.p-5 { padding: 5px !important; }
.p-6 { padding: 6px !important; }
.p-10 { padding: 10px !important; }
.p-12 { padding: 12px !important; }
.p-15 { padding: 15px !important; }
.p-20 { padding: 20px !important; }
.p-24 { padding: 24px !important; }
.p-40 { padding: 40px !important; }
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-10 { padding-left: 10px !important; padding-right: 10px !important; }
.px-12 { padding-left: 12px !important; padding-right: 12px !important; }
.px-14 { padding-left: 14px !important; padding-right: 14px !important; }
.px-16 { padding-left: 16px !important; padding-right: 16px !important; }
.px-20 { padding-left: 20px !important; padding-right: 20px !important; }
.px-24 { padding-left: 24px !important; padding-right: 24px !important; }
.py-10 { padding-top: 10px !important; padding-bottom: 10px !important; }
.py-12 { padding-top: 12px !important; padding-bottom: 12px !important; }
.py-40 { padding-top: 40px !important; padding-bottom: 40px !important; }
.py-60 { padding-top: 60px !important; padding-bottom: 60px !important; }
.pb-12 { padding-bottom: 12px !important; }
.rounded-4 { border-radius: 4px !important; }
.rounded-10 { border-radius: 10px !important; }
.rounded-12 { border-radius: 12px !important; }
.rounded-16 { border-radius: 16px !important; }
.rounded-20 { border-radius: 20px !important; }
.rounded-24 { border-radius: 24px !important; }
.rounded-28 { border-radius: 28px !important; }
.rounded-full { border-radius: 9999px !important; }

.translate-middle { transform: translate(-50%, -50%) !important; }
.transition-transform { transition: transform 0.3s ease !important; }

.right-74 { right: 74px !important; }

.w-16 { width: 16px !important; }
.w-18 { width: 18px !important; }
.w-32 { width: 32px !important; }
.w-44 { width: 44px !important; }
.w-48 { width: 48px !important; }
.w-80 { width: 80px !important; }
.w-auto { width: auto !important; }
.w-fit { width: fit-content !important; }
.h-16 { height: 16px !important; }
.h-18 { height: 18px !important; }
.h-32 { height: 32px !important; }
.h-44 { height: 44px !important; }
.h-48 { height: 48px !important; }
.h-80 { height: 80px !important; }
.max-w-50 { max-width: 50px !important; }
.max-w-100 { max-width: 100px !important; }
.max-w-130 { max-width: 130px !important; }

.w-3 { width: 3px !important; }
.w-36 { width: 36px !important; }
.h-3 { height: 3px !important; }
.h-36 { height: 36px !important; }

.text-48 { font-size: 48px !important; }

.opacity-30 { opacity: 0.3 !important; }
.opacity-80 { opacity: 0.8 !important; }
.opacity-60 { opacity: 0.6 !important; }



.accent-primary { accent-color: var(--primary) !important; }

.bg-muted { background: var(--muted) !important; }
.bg-none { background: none !important; }
.bg-black-05 { background: rgba(0,0,0,0.05) !important; }
.blur-2 { filter: blur(2px) !important; }
.border { border: 1px solid var(--border) !important; }
.border-2 { border: 2px solid var(--border) !important; }
.border-2-5 { border-width: 2.5px !important; }
.border-primary { border-color: var(--primary) !important; }
.border-success { border-color: var(--success) !important; }
.border-error { border-color: rgba(250,82,82,0.5) !important; }
.border-white-40 { border-color: rgba(255, 255, 255, 0.4) !important; }
.border-dashed { border-style: dashed !important; }
.border-none { border: none !important; }
.border-b { border-bottom: 1px solid var(--border) !important; }
.border-t { border-top: 1px solid var(--border) !important; }

/* Global Utility Classes */
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.bg-white-70 { background: rgba(255, 255, 255, 0.7) !important; }
.z-10000 { z-index: 10000 !important; }
.z-20000 { z-index: 20000 !important; }
.transition-300 { transition: all 0.3s ease !important; }
.transition-500 { transition: all 0.5s ease !important; }
.pointer-events-none { pointer-events: none !important; }
.touch-none { touch-action: none !important; }
.w-14 { width: 14px !important; }
.h-14 { height: 14px !important; }
.w-40 { width: 40px !important; }
.h-40 { height: 40px !important; }
.w-60 { width: 60px !important; }
.h-60 { height: 60px !important; }
.min-h-500 { min-height: 500px !important; }
.max-h-350 { max-height: 350px !important; }
.border-4 { border-width: 4px !important; }
.border-t-primary { border-top-color: var(--primary) !important; }
.text-muted { color: var(--muted-foreground) !important; }
.text-foreground { color: var(--foreground) !important; }
.tracking-tight-sm { letter-spacing: -0.2px !important; }
.grid { display: grid !important; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
.overflow-y-auto { overflow-y: auto !important; }
.cursor-pointer { cursor: pointer !important; }
.text-14-semibold { font-size: 14px !important; font-weight: 600 !important; }
.text-center { text-align: center !important; }
.rounded-14 { border-radius: 14px !important; }
.rounded-18 { border-radius: 18px !important; }
.user-dot { width: 16px !important; height: 16px !important; background: #5B67F5 !important; border: 3px solid white !important; border-radius: 50% !important; box-shadow: 0 0 12px rgba(91,103,245,0.6) !important; }
.gap-24 { gap: 24px !important; }
.pt-8 { padding-top: 8px !important; }
.pb-24 { padding-bottom: 24px !important; }
.p-8-16 { padding: 8px 16px !important; }
.h-52 { height: 52px !important; }
.h-56 { height: 56px !important; }
.w-6 { width: 6px !important; }
.h-6 { height: 6px !important; }
.tracking-wider-05 { letter-spacing: 0.05em !important; }
.bg-hot-gradient { background: linear-gradient(135deg, #ff8c00, #ff4500) !important; }
.bg-hot-light { background: rgba(255, 69, 0, 0.05) !important; }
.border-hot { border: 1px solid rgba(255, 69, 0, 0.1) !important; }
.text-hot { color: #ff4500 !important; }
.transition-200 { transition: all 0.2s ease !important; }
.max-w-400 { max-width: 400px !important; }
.m-40-auto { margin: 40px auto !important; }
.m-0-auto-20 { margin: 0 auto 20px !important; }
.text-24 { font-size: 24px !important; }
.text-32 { font-size: 32px !important; }
.my-30 { margin: 30px 0 !important; }
.mt-30 { margin-top: 30px !important; }
.mb-20 { margin-bottom: 20px !important; }
.w-50 { width: 50px !important; }
.h-50 { height: 50px !important; }
.bg-muted { background: var(--muted) !important; }
.border-transparent { border-color: transparent !important; }
.bg-primary-gradient { background: var(--gradient-primary) !important; }
.bg-green-light { background: rgba(52,199,89,0.08) !important; }
.p-18 { padding: 18px !important; }
.p-3-8 { padding: 3px 8px !important; }
.p-8-10 { padding: 8px 10px !important; }
.p-6-12 { padding: 6px 12px !important; }
.p-48-24 { padding: 48px 24px !important; }
.m-0-0-10-0 { margin: 0 0 10px 0 !important; }
.mb-1 { margin-bottom: 1px !important; }
.mb-6 { margin-bottom: 6px !important; }
.rounded-6 { border-radius: 6px !important; }
.rounded-8 { border-radius: 8px !important; }
.opacity-85 { opacity: 0.85 !important; }
.tracking-03 { letter-spacing: 0.3px !important; }
.leading-1-4 { line-height: 1.4 !important; }
.border-1-5 { border-width: 1.5px !important; }
.cursor-default { cursor: default !important; }
.justify-start { justify-content: flex-start !important; }
.resize-y { resize: vertical !important; }
.p-2-8 { padding: 2px 8px !important; }
.bg-destructive-light { background: rgba(255, 59, 48, 0.08) !important; }
.leading-1-5 { line-height: 1.5 !important; }
.outline-none { outline: none !important; }
.text-right { text-align: right !important; }
.border-1 { border-width: 1px !important; }
.w-64 { width: 64px !important; }
.p-60-20 { padding: 60px 20px !important; }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
.gap-16 { gap: 16px !important; }
.p-14 { padding: 14px !important; }
.p-10-20 { padding: 10px 20px !important; }
.p-12-16 { padding: 12px 16px !important; }
.text-10 { font-size: 10px !important; }
.min-w-80 { min-width: 80px !important; }
.min-w-120 { min-width: 120px !important; }
.flex-1 { flex: 1 !important; }
.flex-1-5 { flex: 1.5 !important; }
.bg-amber-gradient { background: linear-gradient(135deg, #f59e0b, #d97706) !important; }
.whitespace-nowrap { white-space: nowrap !important; }
.text-left { text-align: left !important; }
.mr-6 { margin-right: 6px !important; }
.font-850 { font-weight: 850 !important; }
.p-12-16-12-44 { padding: 12px 16px 12px 44px !important; }
.left-14 { left: 14px !important; }
.min-w-280 { min-width: 280px !important; }
.w-20-px { width: 20px !important; } /* to avoid conflict with w-20 (20%) or something */
.border-collapse { border-collapse: collapse !important; }
.p-16 { padding: 16px !important; }
.font-900 { font-weight: 900 !important; }
.font-mono { font-family: monospace !important; }
.grid-cols-auto-fill-minmax-280 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important; }
.max-w-250 { max-width: 250px !important; }
.mt-2 { margin-top: 2px !important; }
.p-4-10 { padding: 4px 10px !important; }
.bg-blue-01 { background: rgba(59, 130, 246, 0.1) !important; }
.text-blue { color: #3b82f6 !important; }
.bg-green-01 { background: rgba(16, 185, 129, 0.1) !important; }
.text-green { color: #10b981 !important; }
.bg-amber-01 { background: rgba(245, 158, 11, 0.1) !important; }
.text-amber { color: #f59e0b !important; }
.col-span-all { grid-column: 1 / -1 !important; }
.text-10-800-uppercase { font-size: 10px !important; font-weight: 800 !important; text-transform: uppercase !important; }
.p-40-20 { padding: 40px 20px !important; }
.m-0-auto-20 { margin: 0 auto 20px !important; }
.bg-destructive-10 { background: rgba(250, 82, 82, 0.1) !important; }
.border-destructive-20 { border-color: rgba(250, 82, 82, 0.2) !important; }
.h-250 { height: 250px !important; }
.w-30 { width: 30px !important; }
.p-4-8 { padding: 4px 8px !important; }
.mb-40 { margin-bottom: 40px !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.p-0-20-12 { padding: 0 20px 12px !important; }
.p-0-20-16 { padding: 0 20px 16px !important; }
.p-16-20 { padding: 16px 20px !important; }
.p-8-12 { padding: 8px 12px !important; }
.p-30 { padding: 30px !important; }
.p-0-24 { padding: 0 24px !important; }
.text-telegram { color: #0088cc !important; }
.text-9 { font-size: 9px !important; }
.min-h-auto { min-height: auto !important; }
.min-h-80 { min-height: 80px !important; }
.h-8 { height: 8px !important; }
.border-destructive { border-color: var(--destructive) !important; }
.bg-primary-gradient { background: var(--gradient-primary) !important; }
.text-white-70 { color: rgba(255, 255, 255, 0.7) !important; }
.border-success { border-color: var(--success) !important; }
.bg-destructive-10 { background: rgba(250, 82, 82, 0.1) !important; }
.border-destructive-20 { border-color: rgba(250, 82, 82, 0.2) !important; }
.bg-hot-5 { background: rgba(255, 107, 107, 0.05) !important; }
.border-hot-20 { border-color: rgba(255, 107, 107, 0.2) !important; }
.text-hot { color: #ff6b6b !important; }
.bg-white-20 { background: rgba(255, 255, 255, 0.2) !important; }
.p-12-16 { padding: 12px 16px !important; }
.p-10 { padding: 10px !important; }
.p-4-8 { padding: 4px 8px !important; }
.removing { opacity: 0 !important; transform: scale(0.8) !important; transition: all 0.3s ease !important; }







































/* Giveaway Enhancement */
.giveaway-hero.cursor-pointer:active { transform: scale(0.98); }

/* Giveaway Detail Styles */
.giveaway-hero.detail {
    border-radius: 0 0 32px 32px;
    margin-bottom: 0;
    overflow: hidden;
}

.giveaway-image.detail {
    height: 40vh;
    min-height: 280px;
}

.giveaway-participation .giveaway-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.mt-neg-30 { margin-top: -30px !important; }

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted-foreground);
    margin-bottom: 8px;
}

.tickets-grid.detail .ticket-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    transition: transform 0.2s;
}

.tickets-grid.detail .ticket-card:active { transform: scale(0.95); }

.lb-item:first-child .lb-rank { background: #FFD700 !important; color: #000; }
.lb-item:nth-child(2) .lb-rank { background: #C0C0C0 !important; color: #000; }
.lb-item:nth-child(3) .lb-rank { background: #CD7F32 !important; color: #000; }

.section-title-premium {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.3px;
    padding: 0 4px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-yellow { color: #fbbf24 !important; }
.text-orange { color: #ff4500 !important; }
.text-success { color: var(--success) !important; }
.text-error { color: #fa5252 !important; }
.bg-success { background: var(--success) !important; }
.bg-error-light { background: rgba(250,82,82,0.08) !important; }




/* Partner CTA Component */
.partner-cta-card {
    background: linear-gradient(135deg, var(--primary) 0%, #4052f5 100%);
    border-radius: 28px;
    padding: 15px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(91, 103, 245, 0.3);
}

.partner-cta-blob-1 {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.partner-cta-blob-2 {
    position: absolute;
    bottom: -40px;
    left: -10px;
    width: 100px;
    height: 100px;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
}

.btn-cta-white {
    background: white;
    color: var(--primary);
    border: none;
    padding: 14px 24px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s;
    width: fit-content;
}

.btn-cta-white:active { transform: scale(0.97); }

.contest-card {
    background: #fff;
    border-radius: 28px;
    border: 1px solid var(--border);
    padding: 20px;
    margin-bottom: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contest-card-content {
    display: flex;
    gap: 16px;
}

.contest-prize-image {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--muted);
}

.contest-prize-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contest-info {
    flex-grow: 1;
    min-width: 0;
}

.contest-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
    gap: 10px;
}

.contest-prize-name {
    margin: 0;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.2;
    color: var(--foreground);
}

.contest-meta {
    font-size: 12px;
    color: var(--muted-foreground);
    font-weight: 600;
    margin-bottom: 10px;
}

.contest-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.contest-stat-item {
    font-size: 12px;
    font-weight: 750;
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    gap: 4px;
}

.contest-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Contest Form Styles */
.contest-form-container {
    background: #fff;
    border-radius: 32px;
    border: 1px solid var(--border);
    padding: 10px;
}

.form-image-preview {
    width: 140px;
    height: 140px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 3px solid var(--muted);
}

.form-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.form-hint {
    font-size: 11px;
    color: var(--muted-foreground);
    margin-top: 6px;
    font-weight: 500;
    line-height: 1.4;
}

.form-footer {
    margin-top: 36px;
    display: flex;
    gap: 12px;
}

.form-footer .btn-primary {
    flex: 1;
}

/* Status Badges Enhancement */
.status-badge.info-solid {
    background: var(--primary);
    color: white;
}

.status-badge.muted-solid {
    background: var(--muted);
    color: var(--muted-foreground);
}

.type-fields {
    display: none;
}

.type-fields.active {
    display: block;
}

.btn-danger-text {
    color: var(--red) !important;
    width: auto;
}

/* Form Elements */
.form-group {
    margin-bottom: 10px;
}

.form-label {
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 750;
    color: var(--muted-foreground);
    letter-spacing: 0.2px;
}

.form-control, .form-select, .form-textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--muted);
    font-size: 15px;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--foreground);
    line-height: inherit;
}

.form-control::placeholder, .form-textarea::placeholder {
    color: rgba(113, 113, 130, 0.4);
}

.form-control:focus, .form-select:focus, .form-textarea:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(91, 103, 245, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23717182' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding: 8px;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 4px;
}

@media (max-width: 400px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    animation-delay: var(--delay, 0s);
}

.custom-marker {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

/* Modal Window Styles */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 20000 !important;
    padding: 20px !important;
}

.modal-content {
    background: #ffffff !important;
    border-radius: 32px !important;
    padding: 24px !important;
    width: 100% !important;
    max-width: 440px !important;
    position: relative !important;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    color: #1a1a1a !important;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    color: #717182 !important;
    background: #f4f4f7 !important;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #e9ecef !important;
    color: #1a1a1a !important;
}

.modal-body {
    margin-bottom: 0px;
}

.modal-body p,
.modal-body .text-slate-300 {
    color: #717182 !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
}

.modal-footer {
    display: flex;
    gap: 12px;
}

.modal-btn {
    flex: 1;
    padding: 16px;
    border-radius: 18px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Utility classes for modal colors and variants */
.modal-overlay.fixed {
    position: fixed;
}

.modal-overlay.inset-0 {
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.modal-overlay.flex {
    display: flex;
}

.modal-overlay.items-center {
    align-items: center;
}

.modal-overlay.justify-center {
    justify-content: center;
}

.modal-overlay.z-50 {
    z-index: 20000;
}

.modal-overlay.p-4 {
    padding: 1rem;
}

.modal-content.glass-card {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(20px) !important;
}

.modal-overlay.bg-black\/70 {
    background: rgba(0, 0, 0, 0.7);
}

.modal-overlay.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

/* Fix for modal.js Tailwind classes in light theme */
.modal-content h3.text-white {
    color: #1a1a1a !important;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 14px;
    border-radius: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: rgba(91, 103, 245, 0.05);
}

/* Animations */
.animate-modal-in {
    animation: modal-in 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-modal-out {
    animation: modal-out 0.2s ease-in;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modal-out {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    to {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
}

/* Image Preview & Lightbox */
.preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.preview-item {
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: var(--muted);
    border: 2px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.preview-item:hover {
    transform: scale(1.02);
}

.preview-item.is-primary {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(91, 103, 245, 0.1);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-actions {
    position: absolute;
    top: 4px;
    right: 4px;
    left: 4px;
    display: flex;
    justify-content: space-between;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.preview-item:hover .preview-actions {
    opacity: 1;
}

.action-btn {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.2s;
}

.preview-primary-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--muted-foreground);
}

.preview-primary-btn.active {
    background: var(--primary);
    color: white;
    opacity: 1 !important;
}

.preview-delete-btn {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

.primary-badge {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
}

.img-delete-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    background: rgba(255, 59, 48, 0.95);
    color: white;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.img-delete-btn:hover {
    background: #FF3B30;
    transform: scale(1.1);
}

.img-delete-btn svg {
    width: 14px;
    height: 14px;
}

.preview-item .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(250, 82, 82, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    z-index: 2;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin-small 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin-small {
    to {
        transform: rotate(360deg);
    }
}

/* Utilities */
.show-on-desktop {
    display: none !important;
}

@media (min-width: 768px) {
    .hide-on-desktop {
        display: none !important;
    }

    .show-on-desktop.flex {
        display: flex !important;
    }

    .show-on-desktop {
        display: block !important;
    }
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    margin-top: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}

.search-results-dropdown.active {
    display: block;
}

.search-result-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--muted);
}


/* Slider Controls */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.2s;
}

@media (min-width: 1024px) {
    .slider-nav {
        display: flex;
    }
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.slider-nav.prev {
    left: 15px;
}

.slider-nav.next {
    right: 15px;
}

.slider-nav svg {
    width: 20px;
    height: 20px;
}

/* Consolidated from header.ejs & modal.js */

/* Pull to Refresh */
#pull-to-refresh {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-80px);
    z-index: 999999;
    width: 44px;
    height: 44px;
    background: var(--card, #fff);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
    opacity: 0;
    pointer-events: none;
}

#pull-to-refresh.visible {
    opacity: 1;
}

#pull-to-refresh.released {
    transform: translateX(-50%) translateY(64px);
}

#pull-to-refresh svg {
    width: 22px;
    height: 22px;
    color: var(--primary, #5b67f5);
    transition: transform 0.2s ease;
}

#pull-to-refresh.spinning svg {
    animation: ptr-spin 0.8s linear infinite;
}



/* PWA Splash Screen */
#pwa-splash {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 1000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

#pwa-splash.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-logo {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: splash-pulse 2s infinite ease-in-out;
}

.splash-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes splash-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}




.w-16 {
    width: 16px !important;
}

.h-16 {
    height: 16px !important;
}

.w-18 {
    width: 18px !important;
}

.h-18 {
    height: 18px !important;
}

.w-20 {
    width: 20px !important;
}

.h-20 {
    height: 20px !important;
}

.w-24 {
    width: 24px !important;
}

.h-24 {
    height: 24px !important;
}

.w-32 {
    width: 32px !important;
}

.h-32 {
    height: 32px !important;
}

.w-44 {
    width: 44px !important;
}

.h-44 {
    height: 44px !important;
}

.w-52 {
    width: 52px !important;
}

.h-52 {
    height: 52px !important;
}

.w-56 {
    width: 56px !important;
}

.h-56 {
    height: 56px !important;
}

.w-80 {
    width: 80px !important;
}

.h-80 {
    height: 80px !important;
}

.w-100 {
    width: 100px !important;
}

.h-100 {
    height: 100px !important;
}

.fs-11 {
    font-size: 11px !important;
}

.fs-12 {
    font-size: 12px !important;
}

.fs-13 {
    font-size: 13px !important;
}

.fs-14 {
    font-size: 14px !important;
}

.fs-15 {
    font-size: 15px !important;
}

.fs-16 {
    font-size: 16px !important;
}

.fs-18 {
    font-size: 18px !important;
}

.fs-19 {
    font-size: 19px !important;
}

.fs-20 {
    font-size: 20px !important;
}

.fs-22 {
    font-size: 22px !important;
}

.fs-24 {
    font-size: 24px !important;
}

.fs-32 {
    font-size: 32px !important;
}

.fs-36 {
    font-size: 36px !important;
}

.fs-42 {
    font-size: 42px !important;
}

.fs-48 {
    font-size: 48px !important;
}

.fs-64 {
    font-size: 64px !important;
}

.fw-600 {
    font-weight: 600 !important;
}

.fw-700 {
    font-weight: 700 !important;
}

.fw-800 {
    font-weight: 800 !important;
}

.fw-900 {
    font-weight: 900 !important;
}

.m-0 {
    margin: 0 !important;
}

.mb-2 {
    margin-bottom: 2px !important;
}

.mb-4 {
    margin-bottom: 4px !important;
}

.mb-6 {
    margin-bottom: 6px !important;
}

.mb-8 {
    margin-bottom: 8px !important;
}

.mb-10 {
    margin-bottom: 10px !important;
}

.mb-12 {
    margin-bottom: 12px !important;
}

.mb-16 {
    margin-bottom: 16px !important;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.mb-24 {
    margin-bottom: 24px !important;
}

.mb-32 {
    margin-bottom: 32px !important;
}

.mb-40 {
    margin-bottom: 40px !important;
}

.mt-4 {
    margin-top: 4px !important;
}

.mt-8 {
    margin-top: 8px !important;
}
.mt-16 {margin-top: 16px !important;}
.mt-20 {margin-top: 20px !important;}
.mt-40 {margin-top: 40px !important;}
.mt-n2 {margin-top: -2px !important;}
.my-4 {margin-top: 4px !important;margin-bottom: 4px !important;}
.my-12 {margin-top: 12px !important;margin-bottom: 12px !important;}
.mx-auto {margin-left: auto !important;margin-right: auto !important;}
.py-8 {padding-top: 8px !important;padding-bottom: 8px !important;}
.overflow-y-auto { overflow-y: auto !important; }
.max-h-400 { max-height: 400px !important; }
.max-h-350 { max-height: 350px !important; }
.pr-4 { padding-right: 4px !important; }



.text-primary {
    color: var(--primary) !important;
}

.text-muted {
    color: var(--muted-foreground) !important;
}

.text-foreground {
    color: var(--foreground) !important;
}

.text-success {
    color: var(--green) !important;
}

.text-destructive {
    color: var(--destructive) !important;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

.text-tg {
    color: #0088cc !important;
}

.bg-white {
    background: #ffffff !important;
}

.bg-muted {
    background: var(--muted) !important;
}

.bg-primary {
    background: var(--primary) !important;
}

.bg-success {
    background: var(--green) !important;
}

.bg-destructive {
    background: var(--destructive) !important;
}

.bg-transparent {
    background: transparent !important;
}

.bg-white-70 {
    background: rgba(255, 255, 255, 0.7) !important;
}

.bg-white-20 {
    background: rgba(255, 255, 255, 0.2) !important;
}

.bg-white-10 {
    background: rgba(255, 255, 255, 0.1) !important;
}

.bg-primary-soft {
    background: rgba(91, 103, 245, 0.05) !important;
}

.bg-tg {
    background: #0088cc !important;
}

.bg-tg-soft {
    background: rgba(0, 136, 204, 0.05) !important;
}

.bg-blur-10 {
    backdrop-filter: blur(10px) !important;
}

.border-1 {
    border: 1px solid var(--border) !important;
}

.border-2 {
    border: 2px solid var(--border) !important;
}

.border-none {
    border: none !important;
}

.border-dashed {
    border-style: dashed !important;
}

.border-t-dashed {
    border-top: 1px dashed var(--border) !important;
}

.opacity-30 {
    opacity: 0.3 !important;
}

.opacity-50 {
    opacity: 0.5 !important;
}

.opacity-05 {
    opacity: 0.5 !important;
}

.opacity-06 {
    opacity: 0.6 !important;
}

.opacity-07 {
    opacity: 0.7 !important;
}

.opacity-09 {
    opacity: 0.9 !important;
}

.grayscale-1 {
    filter: grayscale(1) !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

.object-cover {
    object-fit: cover !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

.select-none {
    user-select: none !important;
}

.shrink-0 {
    flex-shrink: 0 !important;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.w-fit {
    width: fit-content !important;
}

.max-w-50 {
    max-width: 50px !important;
}

.max-w-130 {
    max-width: 130px !important;
}

.max-w-220 {
    max-width: 220px !important;
}

.list-none {
    list-style: none !important;
}

.block {
    display: block !important;
}

.no-underline {
    text-decoration: none !important;
}

.white-space-nowrap {
    white-space: nowrap !important;
}

.ls-6 {
    letter-spacing: 6px !important;
}

.ls-tight-n02 {
    letter-spacing: -0.2px !important;
}

.lh-1 {
    line-height: 1 !important;
}

.lh-1-5 {
    line-height: 1.5 !important;
}

.transition-opacity {
    transition: opacity 0.3s !important;
}

.transition-transform {
    transition: transform 0.3s !important;
}

.shadow-md {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

.shadow-lg {
    box-shadow: var(--shadow) !important;
}

.shadow-primary {
    box-shadow: 0 4px 15px rgba(91, 103, 245, 0.15) !important;
}

.shadow-primary-lg {
    box-shadow: 0 10px 20px rgba(91, 103, 245, 0.2) !important;
}

.btn-outline-primary {
    background: #fff !important;
    color: var(--primary) !important;
    border: 2.5px solid var(--primary) !important;
}

/* Map Components */
.map-filter-select {
    width: 100%;
    height: 52px;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--foreground);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23717182' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    outline: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-filter-select:focus {
    border-color: var(--primary);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(91, 103, 245, 0.1);
}

.empty-map-plate {
    display: none;
    position: absolute;
    top: calc(85px + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    z-index: 10001;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 10px 8px 12px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    min-width: 340px;
    pointer-events: none;
}

.empty-map-plate.visible {
    display: flex;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.empty-map-plate.compact {
    min-width: 220px;
}

.empty-plate-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 4px 12px rgba(91, 103, 245, 0.2);
}

.empty-plate-reset {
    background: var(--muted);
    color: var(--foreground);
    border: none;
    padding: 8px 16px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.empty-plate-reset:active {
    transform: scale(0.95);
    background: var(--border);
}



/* Establishment Components */
.establishment-hero {
    margin: -20px -20px 10px;
}

.hero-slider-container {
    position: relative;
    height: 380px;
    overflow: hidden;
}

.hero-slider {
    display: flex;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scroll-behavior: smooth;
}

.hero-slider::-webkit-scrollbar {
    display: none;
}

.slider-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: center;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 100%);
    pointer-events: none;
}

.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    gap: 8px;
    z-index: 50;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background: white;
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.establishment-hero {
    position: relative;
}

.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 30;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    pointer-events: auto;
}

.like-btn-big,
.share-btn-big {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 30;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.like-btn-big.active {
    color: #ff4757;
    background: rgba(255, 255, 255, 0.9);
}

.like-btn-big svg,
.share-btn-big svg {
    width: 22px;
    height: 22px;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 24px;
    color: white;
    pointer-events: none;
    z-index: 25;
}

.hero-content>* {
    pointer-events: auto;
}

.category-tag {
    display: inline-block;
    background: var(--primary);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.2;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 15px;
    opacity: 0.9;
}

.rating-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.rating-pill svg {
    width: 16px;
    height: 16px;
    color: #FFD700;
}

.discount-info-card {
    background: var(--gradient-primary);
    border-radius: 28px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
    margin-bottom: 12px;
    box-shadow: 0 12px 24px rgba(91, 103, 245, 0.2);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.discount-info-card:active {
    transform: scale(0.97);
}

.discount-info-card.hot {
    background: linear-gradient(135deg, #ff8c00, #ff4500, #e63946);
    box-shadow: 0 12px 24px rgba(230, 57, 70, 0.3);
}

.discount-info-card.hot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.card-icon {
    position: relative;
    background: white;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 6px;
}

#mini-qrcode {
    width: 44px;
    height: 44px;
}

.qr-label {
    position: absolute;
    bottom: -4px;
    background: var(--primary);
    color: white;
    font-size: 8px;
    font-weight: 850;
    padding: 2px 6px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.discount-info-card.hot .qr-label {
    background: #ff4500;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.discount-header {
    margin-bottom: 2px;
}

.discount-badge-new {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
}

.hot-badge-new {
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
}

.pulse-fire {
    animation: pulse-fire 1s infinite alternate;
}

@keyframes pulse-fire {
    from { transform: scale(1); filter: drop-shadow(0 0 2px rgba(255,255,255,0.5)); }
    to { transform: scale(1.3); filter: drop-shadow(0 0 5px rgba(255,255,255,0.8)); }
}

.discount-percent-large {
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    margin: 4px 0;
    letter-spacing: -1px;
}

.discount-desc-new {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
}

.details-section {
    margin-bottom: 10px;
}

.description {
    color: var(--muted-foreground);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    gap: 16px;
    align-items: center;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: var(--muted);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.info-icon svg {
    width: 20px;
    height: 20px;
}

.info-text .label {
    display: block;
    font-size: 13px;
    color: var(--muted-foreground);
    margin-bottom: 2px;
}

.info-text .value {
    font-size: 16px;
    font-weight: 600;
    color: var(--foreground);
    text-decoration: none;
}

.action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 20px 32px;
    border-top: 1px solid var(--border);
    z-index: 1001;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.action-bar .btn-primary {
    display: block;
    width: 100%;
    margin: 0 auto;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
    color: var(--muted-foreground);
}

.schedule-row.is-today {
    font-weight: 800;
    color: var(--primary);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Visited History */
.visited-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.visited-card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.visited-card-image {
    position: relative;
    height: 140px;
}

.visited-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visited-discount-badge {
    position: absolute;
    top: 12px;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(91, 103, 245, 0.3);
}

.visited-card-body {
    padding: 16px;
}

.visited-name {
    font-size: 17px;
    font-weight: 800;
    margin: 0;
    color: var(--foreground);
}

.visited-status {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    text-transform: uppercase;
}

.visited-status.active {
    background: rgba(64, 192, 87, 0.1);
    color: var(--green);
}

.visited-status.inactive {
    background: var(--muted);
    color: var(--muted-foreground);
}

.visited-category {
    font-size: 13px;
    color: var(--muted-foreground);
    margin: 0 0 16px 0;
}

.visited-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}



/* Subscribe */
.plan-card.selected {
    border-color: var(--primary);
    background: rgba(91, 103, 245, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

#pay-btn.consent-error {
    background: rgba(250, 82, 82, 0.9) !important;
    animation: shake-glow 0.5s ease;
}

#pay-btn.inactive {
    filter: grayscale(1);
    opacity: 0.5;
    cursor: not-allowed;
}

/* Rate Staff */
.rating-star-btn.active {
    background: var(--primary) !important;
    border-color: var(--primary);
    transform: scale(1.1);
}

.rating-star-btn.active .star-icon {
    color: white;
}

.rating-star-btn:hover {
    transform: translateY(-2px);
    background: var(--muted-foreground);
}

/* Index Banner Slider */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: #111;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.slider-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: grab;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

.slide {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    aspect-ratio: 3/1;
    position: relative;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-pagination {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}


/* Profile tabs & list items */
.mini-tab-btn {
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted-foreground);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mini-tab-btn.active {
    background: white;
    color: var(--foreground);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.visited-tab-content {
    display: none;
}

.visited-tab-content.active {
    display: block;
}

.status-active {
    color: var(--green);
}

.status-inactive {
    color: var(--muted-foreground);
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.list-item.clickable:active {
    transform: scale(0.98);
    background: var(--muted);
}

/* ── Profile page tabs ───────────────────────────────── */
.profile-tab-btn {
    flex: 1;
    padding: 8px 4px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--muted-foreground);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.profile-tab-btn.active {
    background: white;
    color: var(--foreground);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.profile-tab-content {
    display: none;
}

.profile-tab-content.active {
    display: block;
    animation: fadeInTab 0.2s ease;
}

/* Yandex Maps v3 Overrides */
.ymaps3x0--map-copyrights {
    margin: 0 !important;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hot Discount Badge Styles */
.visited-discount-badge.hot {
    background: linear-gradient(135deg, #ff8c00 0%, #ff4500 100%);
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
    animation: hot-pulse 1.5s infinite ease-in-out;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

@keyframes hot-pulse {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4); }
    50% { transform: scale(1.08); box-shadow: 0 4px 25px rgba(255, 69, 0, 0.6); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4); }
}

.hot-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ff8c00, #ff4500);
    color: white;
    border-radius: 6px;
    margin-right: 6px;
    font-size: 12px;
}

.discount-value.hot {
    color: #ff4500;
    font-weight: 900;
}

.result-meta.hot {
    color: #ff4500 !important;
    font-weight: 700;
}

.place-image-wrap.hot-border {
    position: relative;
}

.place-image-wrap.hot-border::after {
    content: '';
    position: absolute;
    inset: -1px;
    border: 4px solid #ff4500;
    border-radius: 28px;
    pointer-events: none;
    z-index: 5;
    animation: hot-border-pulse 1.5s infinite ease-in-out;
    box-shadow: 0 0 0 0.5px #ff4500;
}



@keyframes hot-border-pulse {
    0% { border-color: rgba(255, 69, 0, 0.8); box-shadow: inset 0 0 10px rgba(255, 69, 0, 0.4); }
    50% { border-color: rgba(255, 140, 0, 1); box-shadow: inset 0 0 20px rgba(255, 140, 0, 0.6); }
    100% { border-color: rgba(255, 69, 0, 0.8); box-shadow: inset 0 0 10px rgba(255, 69, 0, 0.4); }
}


    .ymap-custom-marker {
        width: 40px;
        height: 40px;
        position: relative;
        cursor: pointer;
        filter: drop-shadow(0 6px 12px rgba(0,0,0,0.2));
        will-change: transform;
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), z-index 0s;
        z-index: 10;
    }
    .ymap-custom-marker:hover, .ymap-custom-marker.selected { 
        transform: scale(1.15) translateY(-4px); 
        z-index: 99999 !important; 
    }
    .ymap-custom-marker:active { transform: scale(0.9); }
    .ymap-marker-inner {
        width: 100%;
        height: 100%;
        background: #fff;
        border-radius: 50px;
        border: 2.5px solid #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: 800;
        color: var(--primary);
        background-size: cover;
        background-position: center;
        box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
        overflow: hidden;
        position: relative;
    }
    .marker-discount-badge {
        position: absolute;
        top: -4px;
        right: -10px;
        background: var(--destructive);
        color: white;
        font-size: 8px;
        font-weight: 800;
        padding: 1px 4px;
        border-radius: 6px;
        border: 1.5px solid white;
        box-shadow: 1px 1px 4px rgba(250, 82, 82, 0.4);
        z-index: 2;
        pointer-events: none;
    }
    .marker-pin {
        position: absolute;
        bottom: -7px;
        left: 50%;
        transform: translateX(-50%);
        width: 12px;
        height: 12px;
        background: #fff;
        clip-path: polygon(0 0, 100% 0, 50% 100%);
    }
    .marker-cluster-custom {
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 5;
        transition: transform 0.2s ease, z-index 0s;
    }
    .marker-cluster-custom:hover {
        transform: scale(1.1);
        z-index: 99999 !important;
    }
    .marker-cluster-inner {
        width: 40px;
        height: 40px;
        background: var(--primary);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        font-size: 14px;
        border: 3px solid white;
        box-shadow: 0 4px 12px rgba(91, 103, 245, 0.4);
    }
    #map-loader-mini {
        position: absolute;
        bottom: 120px;
        left: 50%;
        transform: translateX(-50%);
        background: white;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 700;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 9999;
        display: none;
        align-items: center;
        gap: 8px;
        pointer-events: none;
        backdrop-filter: blur(4px);
        border: 1px solid var(--border);
    }
    #map-loader-mini.active { display: flex; animation: fadeInUp 0.3s ease; }

    /* Yandex v3 copyright margin fix */
    .ymaps3x0--map-copyrights { margin: 0 !important; }

    .marker-discount-badge.hot {
        background: linear-gradient(135deg, #ff8c00 0%, #ff4500 100%);
        box-shadow: 0 2px 6px rgba(255, 69, 0, 0.4);
        border: 1px solid white;
        animation: hot-pulse-small 1.5s infinite ease-in-out;
    }
    @keyframes hot-pulse-small {
        0% { transform: scale(1); }
        50% { transform: scale(1.1); }
        100% { transform: scale(1); }
    }
    .sheet-discount-value.hot {
        color: #ff4500;
        font-weight: 900;
    }

/* --- Migrated from <style> tags --- */


/* SPA Loader (footer.ejs) */
#spa-loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
#spa-loader.active {
    opacity: 1;
    pointer-events: all;
}
.loader-card {
    background: #fff;
    padding: 32px;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
#spa-loader.active .loader-card {
    transform: scale(1);
}
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--muted);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.loader-text {
    font-size: 15px;
    font-weight: 800;
    color: var(--foreground);
    letter-spacing: -0.2px;
}

/* Auth Screens - login, register, forgot-password */
.login-screen, .reg-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: calc(100dvh - 56px);
    min-height: 500px;
    padding: 16px;
    box-sizing: border-box;
    background: linear-gradient(160deg, #eef0ff 0%, #f5f5ff 50%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.login-screen::before, .reg-screen::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(91,103,245,0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBlob 8s ease-in-out infinite;
}

.login-screen::after, .reg-screen::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(124,77,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBlob 10s ease-in-out infinite reverse;
}

@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.08); }
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border: 1px solid rgba(91, 103, 245, 0.12);
    border-radius: 32px;
    padding: 20px 22px 18px;
    box-shadow: 0 16px 48px rgba(91, 103, 245, 0.12), 0 4px 16px rgba(0,0,0,0.05);
    animation: cardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(28px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo, .reg-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 12px;
    gap: 4px;
}
.login-logo img, .reg-logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(91,103,245,0.5));
    border-radius: 14px;
}
.login-logo-name, .reg-logo-title {
    font-size: 22px;
    font-weight: 900;
    color: #1a1a2e;
    letter-spacing: -0.5px;
}
.login-logo-sub, .reg-logo-sub {
    font-size: 13px;
    color: #717182;
    font-weight: 500;
    margin-top: -2px;
}

.login-input-group, .a-group { margin-bottom: 8px; }
.login-label, .a-label {
    display: block; font-size: 11px; font-weight: 700; color: #717182;
    text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px;
}
.login-input, .a-input {
    width: 100%; height: 46px; background: #f4f4f7;
    border: 1.5px solid transparent; border-radius: 16px;
    padding: 0 16px; font-size: 16px; color: #1a1a2e; font-weight: 500;
    outline: none; transition: border 0.2s, background 0.2s, box-shadow 0.2s;
    box-sizing: border-box; -webkit-appearance: none; appearance: none;
}
.login-input:focus, .a-input:focus {
    border-color: #5B67F5; background: #fff; box-shadow: 0 0 0 4px rgba(91,103,245,0.1);
}

.login-btn, .a-btn {
    width: 100%; height: 48px;
    background: linear-gradient(135deg, #5B67F5, #7c4dff);
    border: none; border-radius: 18px; color: #fff;
    font-size: 16px; font-weight: 800; cursor: pointer;
    margin-top: 10px; transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 8px 24px rgba(91,103,245,0.45);
}

/* Registration Steps Viewport */
.reg-steps-viewport {
    position: relative; z-index: 1;
    width: 100%; max-width: 400px;
    overflow: hidden;
}
.reg-step {
    width: 100%; background: #ffffff;
    border: 1px solid rgba(91,103,245,0.12);
    border-radius: 32px; padding: 24px 22px 20px;
    position: absolute; top: 0; left: 0;
    opacity: 0; pointer-events: none;
    transform: translateX(60px);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
.reg-step.active {
    position: relative; opacity: 1; pointer-events: auto; transform: translateX(0);
}
.reg-step.exit-left { transform: translateX(-60px); opacity: 0; pointer-events: none; }
.reg-step.enter-right { transform: translateX(60px); opacity: 0; pointer-events: none; }

/* Offline Page */
.offline-container {
    min-height: calc(100svh - 100px);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 40px 24px 120px; background: var(--background);
    text-align: center; box-sizing: border-box;
}
.offline-illustration {
    width: 120px; height: 120px;
    background: rgba(91, 103, 245, 0.08); border-radius: 40px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); margin-bottom: 32px;
    box-shadow: 0 20px 40px rgba(91, 103, 245, 0.1);
}
.offline-illustration svg { width: 60px; height: 60px; }


/* Additional Auth Styles */
.login-error, .a-error {
    display: none; background: rgba(250, 82, 82, 0.15); border: 1px solid rgba(250, 82, 82, 0.3);
    border-radius: 14px; padding: 8px 12px; margin-bottom: 10px; color: #ff8787;
    font-size: 13px; font-weight: 600; align-items: center; gap: 8px;
}
.login-error.active, .a-error.active { display: flex; }
.login-forgot, .a-link-btn { font-size: 12px; font-weight: 700; color: #5B67F5; text-decoration: none; transition: all 0.2s; opacity: 0.85; }
.login-forgot:hover, .a-link-btn:hover { opacity: 1; text-decoration: underline; }
.login-footer, .a-footer { text-align: center; margin-top: 10px; font-size: 13px; color: #717182; }
.login-footer a, .a-footer a { color: #5B67F5; font-weight: 700; text-decoration: none; }

.login-divider { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: rgba(0,0,0,0.08); }
.login-divider span { font-size: 12px; color: #b0b0c0; font-weight: 600; }

.code-input {
    width: 100%; height: 64px; background: #f4f4f7; border: 1.5px solid transparent; border-radius: 20px;
    padding: 0 16px; font-size: 28px; font-weight: 900; color: #1a1a2e; text-align: center; letter-spacing: 12px;
    outline: none; transition: all 0.2s; box-sizing: border-box; margin-bottom: 12px;
}
.code-input:focus { border-color: #5B67F5; background: #fff; box-shadow: 0 0 0 4px rgba(91,103,245,0.1); }

.reg-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(91,103,245,0.2); transition: all 0.3s; }
.reg-dot.active { width: 24px; border-radius: 4px; background: #5B67F5; }
.reg-dot.done { background: #5B67F5; }

/* Offline and 404 Pages */
.offline-content, .error-404-content { max-width: 400px; width: 100%; display: flex; flex-direction: column; align-items: center; }
.offline-content h1, .error-404-content h1 { font-size: 24px; font-weight: 800; color: var(--foreground); margin-bottom: 12px; }
.offline-content p, .error-404-content p { font-size: 15px; color: var(--muted-foreground); line-height: 1.6; margin-bottom: 32px; }


/* Support Chat Interface Full */
.chat-page { display: flex; flex-direction: column; margin-top: 60px; padding-bottom: 95px; height: calc(100vh - var(--bottom-nav-height, 68px)); height: calc(100dvh - var(--bottom-nav-height, 68px)); background: var(--background); overflow: hidden; }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--border); flex-shrink: 0; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.chat-back-btn { width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--muted); color: var(--foreground); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: background 0.2s; }
.chat-back-btn svg { width: 20px; height: 20px; }
.chat-back-btn:active { background: var(--border); }
.chat-header-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.chat-header-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--primary) 0%, #4052f5 100%); display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0; box-shadow: 0 4px 12px rgba(91, 103, 245, 0.3); }
.chat-header-avatar svg { width: 20px; height: 20px; }
.chat-header-name { font-size: 15px; font-weight: 800; color: var(--foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-header-status { font-size: 12px; color: var(--muted-foreground); display: flex; align-items: center; gap: 5px; margin-top: 1px; }
.chat-status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.chat-status-dot.open { background: #3b82f6; box-shadow: 0 0 6px #3b82f6; }
.chat-status-dot.answered { background: #10b981; box-shadow: 0 0 6px #10b981; }
.chat-status-dot.closed { background: var(--muted-foreground); }
.chat-close-ticket-btn { width: 38px; height: 38px; border-radius: 50%; border: none; background: rgba(239, 68, 68, 0.1); color: #ef4444; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: background 0.2s; }
.chat-close-ticket-btn svg { width: 20px; height: 20px; }
.chat-subject-banner { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: linear-gradient(135deg, rgba(91, 103, 245, 0.07) 0%, rgba(64, 82, 245, 0.03) 100%); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.chat-subject-icon { width: 34px; height: 34px; border-radius: 10px; background: rgba(91, 103, 245, 0.12); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.chat-subject-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--primary); margin-bottom: 1px; }
.chat-subject-title { font-size: 13px; font-weight: 700; color: var(--foreground); line-height: 1.3; }
.chat-messages-wrap { flex: 1; overflow-y: auto; padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 3px; -webkit-overflow-scrolling: touch; }
.chat-date-divider { display: flex; align-items: center; justify-content: center; margin: 10px 0 6px; }
.chat-date-divider span { font-size: 11px; font-weight: 700; color: var(--muted-foreground); background: var(--muted); padding: 3px 12px; border-radius: 20px; }
.chat-message-row { display: flex; align-items: flex-end; gap: 7px; margin-bottom: 4px; }
.chat-message-row.own { flex-direction: row-reverse; }
.chat-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--muted); color: var(--foreground); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; border: 2px solid var(--border); }
.chat-avatar.admin { background: linear-gradient(135deg, var(--primary), #4052f5); color: white; border-color: transparent; box-shadow: 0 2px 8px rgba(91, 103, 245, 0.35); }
.chat-bubble-wrap { display: flex; flex-direction: column; max-width: 80%; gap: 2px; }
.chat-message-row.own .chat-bubble-wrap { align-items: flex-end; }
.chat-sender-name { font-size: 11px; font-weight: 700; color: var(--muted-foreground); padding: 0 5px; }
.chat-bubble { padding: 9px 13px 7px; border-radius: 18px; }
.chat-bubble.own { background: linear-gradient(135deg, var(--primary) 0%, #4052f5 100%); color: white; border-bottom-right-radius: 5px; box-shadow: 0 3px 10px rgba(91, 103, 245, 0.22); }
.chat-bubble.other { background: var(--card); color: var(--foreground); border-bottom-left-radius: 5px; border: 1px solid var(--border); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04); }
.chat-bubble-text { font-size: 14px; line-height: 1.5; white-space: pre-line; word-break: break-word; }
.chat-bubble-time { font-size: 10px; margin-top: 4px; opacity: 0.6; text-align: right; }
.chat-closed-banner { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 16px; background: var(--muted); border-top: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--muted-foreground); flex-shrink: 0; }
.chat-input-area { background: var(--card); border-top: 1px solid var(--border); padding: 8px 12px 10px; flex-shrink: 0; }
.chat-input-wrap { display: flex; align-items: center; gap: 10px; background: var(--muted); border-radius: 24px; padding: 7px 7px 7px 16px; transition: box-shadow 0.2s; }
.chat-input-wrap:focus-within { box-shadow: 0 0 0 2px var(--primary); }
.chat-textarea { flex: 1; border: none; background: transparent; color: var(--foreground); font-size: 14px; line-height: 1.5; resize: none; outline: none; max-height: 110px; overflow-y: auto; padding: 4px 0; font-family: inherit; }
.chat-textarea::placeholder { color: var(--muted-foreground); }
.chat-send-btn { width: 38px; height: 38px; border-radius: 50%; border: none; background: linear-gradient(135deg, var(--primary) 0%, #4052f5 100%); color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s; box-shadow: 0 4px 12px rgba(91, 103, 245, 0.35); }
.chat-send-btn svg { width: 17px; height: 17px; }
.chat-send-btn:active { transform: scale(0.92); box-shadow: none; }
.chat-send-btn.sending { opacity: 0.6; pointer-events: none; }
.chat-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; text-align: center; flex: 1; color: var(--muted-foreground); }
.chat-empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }

/* Auth & Reg Specifics */
.reg-progress { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.reg-back { display: flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; color: #717182; font-size: 13px; font-weight: 600; padding: 0; margin-bottom: 16px; transition: color 0.2s; }
.reg-back:hover { color: #5B67F5; }
.reg-back svg { width: 16px; height: 16px; }

.a-btn.link-btn, .a-link-btn {
    background: none; box-shadow: none; color: #5B67F5; font-size: 13px;
    height: auto; margin-top: 0; font-weight: 700; width: auto;
    padding: 0; display: inline; border: none; cursor: pointer;
}
.a-timer { font-size: 13px; font-weight: 700; color: #5B67F5; }
.a-resend-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }

/* Method Selector (Auth) */
.method-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.method-btn {
    height: 40px; border: 1.5px solid transparent; border-radius: 12px;
    background: #f4f4f7; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    transition: all 0.2s; font-size: 13px; font-weight: 700; color: #717182;
}
.method-btn.selected {
    background: #eef0ff; border-color: #5B67F5; color: #5B67F5;
    box-shadow: 0 0 0 3px rgba(91,103,245,0.1);
}


/* Auth/Reg Component Additions */
.a-btn-secondary {
    width: 100%; height: 44px; background: #f4f4f7; border: none;
    border-radius: 14px; color: #5B67F5; font-size: 14px; font-weight: 700;
    cursor: pointer; margin-top: 8px; transition: background 0.2s;
}
.a-btn-secondary:hover { background: #eef0ff; }

.consent-box {
    display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
    padding: 10px 12px; background: rgba(91,103,245,0.05);
    border: 1px solid rgba(91,103,245,0.12); border-radius: 14px;
    margin-bottom: 10px; user-select: none; transition: border-color 0.2s, background 0.2s;
}
.consent-box input[type="checkbox"] { width: 17px; height: 17px; margin-top: 2px; accent-color: #5B67F5; cursor: pointer; flex-shrink: 0; }
.consent-box span { font-size: 12px; color: #717182; line-height: 1.5; }
.consent-box a { color: #5B67F5; font-weight: 600; text-decoration: none; }

.login-suggestion { margin-top: 10px; }
.login-suggestion.hidden { display: none; }

.pw-wrap { position: relative; }
.pw-eye {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; padding: 4px; color: #b0b0c0;
    display: flex; align-items: center; transition: color 0.2s;
}
.pw-eye:hover { color: #5B67F5; }

/* Admin Panel Styles */
.admin-dropdown-menu {
    position: absolute; top: 54px; right: 0;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border); min-width: 200px;
    display: none; flex-direction: column; padding: 8px; z-index: 99999;
    animation: fadeInScale 0.2s ease-out;
}
.admin-dropdown-menu.active { display: flex; }
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.admin-menu-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    border: none; background: transparent; color: var(--foreground);
    font-weight: 700; font-size: 14px; border-radius: 14px;
    cursor: pointer; text-align: left; transition: background 0.2s; width: 100%;
}
.admin-menu-item span { font-size: 18px; width: 24px; display: flex; justify-content: center; }
.admin-menu-item:hover { background: var(--muted); }
.admin-menu-item.active { background: var(--primary); color: white; }

/* Statistics & Lists */
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeInUp 0.4s ease-out; }
.rank-badge {
    width: 32px; height: 32px; background: var(--muted); color: var(--foreground);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px; flex-shrink: 0; transition: all 0.2s;
}
.rank-badge.top { background: var(--primary); color: white; box-shadow: 0 4px 10px rgba(91, 103, 245, 0.3); }
.pag-btn {
    width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--border);
    background: white; color: var(--foreground); font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.pag-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.pag-btn:active { transform: scale(0.95); }

/* User Badges */
.user-role-badge.role-admin { color: var(--destructive); font-weight: 800; }
.user-role-badge.role-partner { color: var(--primary); font-weight: 800; }
.user-sub-status { font-size: 10px; padding: 2px 8px; border-radius: 6px; font-weight: 800; }
.user-sub-status.status-active { background: var(--green-bg); color: var(--green); }
.user-sub-status.status-inactive { background: var(--muted); color: var(--muted-foreground); }
.user-tg-tag {
    font-size: 10px; padding: 2px 8px; border-radius: 6px;
    background: rgba(0, 136, 204, 0.1); color: #0088cc; font-weight: 800;
}


/* Giveaways Status Indicators */
.status-indicator { padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.status-indicator.active { background: rgba(64, 192, 87, 0.1); color: #40c057; }
.status-indicator.done { background: var(--muted); color: var(--muted-foreground); }
.stat-card { display: flex; flex-direction: column; padding: 16px; }
.giveaway-stat-label { font-size: 11px; font-weight: 700; color: var(--muted-foreground); text-transform: uppercase; margin-bottom: 4px; }
.giveaway-stat-value { font-size: 20px; font-weight: 800; }

/* Admin Support / Custom Select */
.custom-select { position: relative; display: flex; flex-direction: column; user-select: none; }
.custom-select-trigger { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; height: 48px; font-size: 14px; color: var(--foreground); background: var(--muted); border-radius: 14px; cursor: pointer; transition: all 0.3s; }
.custom-select-trigger strong { color: var(--primary); }
.custom-select-trigger svg { width: 18px; height: 18px; transition: transform 0.3s; }
.custom-select.open .custom-select-trigger { background: var(--card); box-shadow: 0 0 0 2px var(--primary); }
.custom-select.open .custom-select-trigger svg { transform: rotate(180deg); }
.custom-select-options { position: absolute; display: block; top: calc(100% + 8px); left: 0; right: 0; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); z-index: 1000; visibility: hidden; opacity: 0; transform: translateY(-10px); transition: all 0.3s; }
.custom-select.open .custom-select-options { visibility: visible; opacity: 1; transform: translateY(0); }
.custom-select-options .option { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 14px; font-weight: 700; color: var(--muted-foreground); cursor: pointer; border-radius: 10px; transition: all 0.2s; }
.custom-select-options .option:hover { background: var(--muted); color: var(--primary); }
.custom-select-options .option.selected { background: rgba(91, 103, 245, 0.1); color: var(--primary); }

/* Stories & Utilities */
.stories-admin-grid .card { border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform 0.2s; }
.stories-admin-grid .card:hover { transform: translateY(-4px); }
.destructive-bg { background: rgba(255, 59, 48, 0.1); }

/* Generic Inputs */
.admin-input-label {
    display: block; font-size: 13px; font-weight: 700; color: var(--muted-foreground);
    margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px;
}
.input-field {
    width: 100%; background: var(--muted); border: 1px solid var(--border);
    border-radius: 12px; padding: 12px 16px; font-size: 15px; color: var(--foreground);
    outline: none; transition: border-color 0.2s;
}
.input-field:focus { border-color: var(--primary); }

/* Admin Tables */
.admin-table th { position: sticky; top: 0; background: var(--muted); z-index: 10; }
.participant-row:hover { background: rgba(91, 103, 245, 0.02); }

/* Global Admin Layout */
.admin-header { margin-bottom: 24px; position: relative; z-index: 1000; }
.admin-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; width: 100%; }
.admin-title { font-size: 24px; font-weight: 850; margin: 0; letter-spacing: -0.5px; color: var(--foreground); }
.admin-subtitle { font-size: 14px; color: var(--muted-foreground); margin-top: 4px; font-weight: 500; line-height: 1.4; }
.admin-menu-container { position: relative; z-index: 99991; }


/* Partner Dashboard Styles */
.header-actions {
    position: relative;
}

.more-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: white;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--foreground);
}

.more-btn:active {
    transform: scale(0.9);
    background: var(--muted);
}

.actions-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
    transform-origin: top right;
    animation: dropdownIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.actions-dropdown.active {
    display: flex;
}

.dropdown-item {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--foreground);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    background: transparent;
    border-left: none;
    border-right: none;
    border-top: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--muted);
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    color: var(--muted-foreground);
    stroke-width: 2.2;
}

@keyframes dropdownIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Scanner Styles */
#qr-shaded-region {
    display: none !important;
    border-width: 0 !important;
}

#reader div[style*="background"] {
    display: none !important;
}

#reader>div:last-child:not(#reader) {
    display: none !important;
}

.scan-line {
    width: 100%;
    height: 2px;
    background: var(--primary);
    position: absolute;
    top: 0;
    animation: scan 2s linear infinite;
    box-shadow: 0 0 4px var(--primary);
}

@keyframes scan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Stories Grid */
.stories-grid .card {
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

/* Support Context & Main Page */
.support-header { margin-bottom: 24px; display: flex; justify-content: space-between; align-items: center; }
.support-title { margin: 0; }
.support-subtitle { color: var(--muted-foreground); font-size: 14px; margin-top: 4px; }
.support-create-btn { padding: 10px 20px; border-radius: 14px; font-size: 14px; }
.support-ticket-card { margin-bottom: 12px; padding: 16px; cursor: pointer; }
.support-ticket-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.support-ticket-subject { margin: 0; font-size: 16px; font-weight: 700; }
.support-status-badge { padding: 4px 10px; border-radius: 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.support-status-badge.open { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.support-status-badge.answered { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.support-status-badge.closed { background: var(--muted); color: var(--muted-foreground); }
.support-status-badge.pending { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.support-ticket-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted-foreground); }
.support-empty-state { text-align: center; padding: 48px; background: var(--muted); border-radius: 20px; }
.support-empty-icon { font-size: 48px; margin-bottom: 16px; }
.support-empty-title { margin: 0 0 8px; }
.support-empty-text { color: var(--muted-foreground); margin-bottom: 24px; }

/* Create Ticket Specifics */
.support-back-btn { background: none; border: none; font-size: 14px; font-weight: 700; color: var(--primary); padding: 0; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.support-back-icon { width: 18px; height: 18px; }
.support-create-card { padding: 24px; }
.support-form-message { height: 150px; padding: 12px; resize: none; }
.support-submit-btn { width: 100%; height: 54px; border-radius: 16px; font-size: 16px; font-weight: 800; }

/* Chat Banner Icons & Misc */
.chat-banner-icon { width: 18px; height: 18px; }
.chat-avatar-icon { width: 16px; height: 16px; }

/* Staff Cabinet */
.staff-rank-info { font-size: 14px; color: var(--muted-foreground); }
.staff-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.staff-stat-card { background: var(--muted); padding: 20px; border-radius: 20px; }
.staff-stat-card.full-width { grid-column: span 2; }
.staff-stat-label { font-size: 12px; color: var(--muted-foreground); margin-bottom: 4px; }
.staff-stat-value { font-size: 24px; font-weight: 800; }
.staff-stat-value.primary { color: var(--primary); }
.staff-stat-stars { font-size: 18px; color: #fbbf24; }
.staff-stat-rating { font-size: 20px; font-weight: 700; }

.staff-trans-item { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: var(--muted); border-radius: 18px; margin-bottom: 10px; }
.staff-trans-name { font-weight: 700; font-size: 15px; }
.staff-trans-date { font-size: 12px; color: var(--muted-foreground); margin-top: 2px; }
.staff-trans-amount { font-weight: 800; color: var(--primary); }
.staff-trans-rating { font-size: 12px; color: #fbbf24; font-weight: 700; }
.staff-empty-text { padding: 40px; text-align: center; color: var(--muted-foreground); }
.transactions-list { display: flex; flex-direction: column; margin-top: 8px; }

.staff-action-footer { margin-top: 30px; display: flex; flex-direction: column; gap: 10px; }
.staff-scanner-btn { height: 56px; border-radius: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.staff-btn-icon { margin-right: 8px; }

/* Admin Dashboard */
.admin-icon-btn { background: var(--muted); border-radius: 12px; width: 44px; height: 44px; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.admin-icon-btn:hover { background: var(--border); }
.admin-icon-btn svg { width: 20px; height: 20px; color: var(--foreground); }

.admin-card-primary { background: var(--gradient-primary); border: none; color: white !important; }
.admin-card-label-transparent { color: rgba(255,255,255,0.7) !important; }
.admin-card-value-large { font-size: 24px; font-weight: 800; }

.admin-action-btn-row { display: flex; gap: 8px; }
.admin-mini-btn { padding: 6px 12px; font-size: 13px; border-radius: 12px; min-height: auto; width: auto; display: flex; align-items: center; justify-content: center; gap: 4px; }
.admin-mini-btn svg { width: 16px; height: 16px; }

.admin-btn-approve { background: var(--green); color: white; border: none; }
.admin-btn-reject { border-color: var(--destructive); color: var(--destructive); }
.admin-btn-edit { color: var(--primary); border-color: var(--primary); }

.admin-empty-state { padding: 40px; text-align: center; }
.admin-empty-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.3; }

.admin-search-box { padding: 0 20px 16px; }
.admin-pagination-row { display: flex; justify-content: center; gap: 8px; margin-top: 20px; padding-bottom: 20px; }

.admin-mailing-card { padding: 24px; background: var(--gradient-primary); border: none; color: white !important; }
.admin-mailing-input { background: rgba(255,255,255,0.1) !important; border-color: rgba(255,255,255,0.2) !important; color: white !important; }
.admin-mailing-input::placeholder { color: rgba(255,255,255,0.5); }

.admin-progress-box { margin-top: 20px; padding: 16px; background: rgba(255,255,255,0.1); border-radius: 16px; }
.admin-progress-header { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; font-weight: 700; }
.admin-progress-bar-bg { width: 100%; height: 8px; background: rgba(255,255,255,0.2); border-radius: 4px; overflow: hidden; }
.admin-progress-bar-fill { height: 100%; background: white; transition: width 0.3s ease; }

/* Establishment Page Styles */
.establishment-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.establishment-action-btn {
    flex: 1;
    height: 40px; /* Slightly larger than standard 48px */
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 800;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.establishment-action-btn:active {
    transform: scale(0.96);
}

.establishment-action-btn.primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 16px rgba(91, 103, 245, 0.25);
}

.establishment-action-btn.secondary {
    background: var(--muted);
    color: var(--foreground);
    border: 1px solid var(--border);
}

.establishment-action-btn svg {
    width: 15px;
    height: 15px;
}

/* Establishment Tabs */
.establishment-tabs-sticky {
    position: sticky;
    top: -1px;
    z-index: 100;
    background: var(--background);
    margin: 0 -20px 12px;
    padding: 0 20px;
}

.establishment-tabs {
    display: flex;
    background: var(--muted);
    padding: 4px;
    border-radius: 18px;
    gap: 4px;
}

.establishment-tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: var(--muted-foreground);
}

.establishment-tab-btn.active {
    background: var(--card);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Map Bottom Sheet Styles */
.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.sheet-header-main {
    display: flex;
    gap: 16px;
}

.sheet-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--muted);
}

.sheet-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.sheet-subtitle {
    font-size: 14px;
    color: var(--muted-foreground);
}

#sheet-discount, .sheet-badge {
    background: var(--destructive);
    color: white;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(250, 82, 82, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: fit-content;
}

.sheet-stats-row {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.sheet-stat-item {
    flex: 1;
    background: var(--muted);
    padding: 12px;
    border-radius: 16px;
    text-align: center;
}

.sheet-stat-label {
    display: block;
    font-size: 12px;
    color: var(--muted-foreground);
    margin-bottom: 4px;
}

.sheet-stat-value {
    font-weight: 700;
    font-size: 16px;
}

/* =====================================================
   GIVEAWAY / CONTESTS
   ===================================================== */

/* Hero */
.giveaway-hero {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--card);
    box-shadow: var(--shadow);
}
.giveaway-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.giveaway-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.55));
}
.prize-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}
.giveaway-info {
    padding: 16px;
}
.prize-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 10px;
}
.draw-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    opacity: 0.7;
}
.prize-desc {
    font-size: 13px;
    opacity: 0.7;
    line-height: 1.6;
    margin: 0;
}

/* Participation card */
.giveaway-participation-card, .giveaway-card {
    padding: 20px;
    border: 1px solid var(--border);
}
.giveaway-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.giveaway-card-header h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}
.giveaway-spent-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
}

/* Progress */
.giveaway-progress { margin-bottom: 16px; }
.giveaway-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 8px;
}
.giveaway-progress-label { opacity: 0.6; }
.giveaway-progress-value { font-weight: 700; }
.giveaway-progress-track {
    height: 7px;
    background: var(--muted);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}
.giveaway-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    width: 0;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.giveaway-progress-footer {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    opacity: 0.55;
}

/* Ticket summary box */
.tickets-summary-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--muted);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
.ticket-status-icon { font-size: 24px; }
.ticket-status-info { flex: 1; }
.ticket-status-label { font-size: 11px; opacity: 0.55; }
.ticket-status-count { font-size: 18px; font-weight: 800; }
.activation-hint {
    font-size: 10px;
    font-weight: 800;
    color: var(--primary);
    background: rgba(91, 103, 245, 0.12);
    padding: 4px 8px;
    border-radius: 8px;
    letter-spacing: 0.3px;
}

/* Footer actions */
.participation-footer { margin-top: 4px; }
.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}
.status-badge.success-solid {
    background: rgba(64, 192, 87, 0.12);
    color: var(--green);
}
.status-badge.info {
    background: var(--muted);
    color: var(--muted-foreground);
}

/* Tickets grid */
.tickets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.ticket-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(91,103,245,0.06);
}
.ticket-stub {
    width: 8px;
    background: var(--gradient-primary);
    flex-shrink: 0;
}
.ticket-content {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ticket-num-label {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
}

/* Past results */
.results-list { display: flex; flex-direction: column; gap: 10px; }
.contest-result-item {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
}
.result-images {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}
.prize-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--muted);
}
.prize-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.winner-avatar {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 28px;
    height: 28px;
    background: var(--card);
    border: 2px solid var(--card);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    padding: 5px;
}
.winner-avatar svg {
    width: 100%;
    height: 100%;
}
.contest-result-info { flex: 1; }

.contest-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.winner-name { font-weight: 700; font-size: 14px; }
.contest-result-date { font-size: 11px; opacity: 0.5; }
.winner-prize { font-size: 13px; margin: 0 0 4px; }
.winner-ticket { font-size: 12px; opacity: 0.5; }

/* Empty state */
.empty-giveaway {
    text-align: center;
    padding: 48px 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
}
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-giveaway h3 { font-size: 18px; font-weight: 800; margin: 0 0 8px; }
.empty-giveaway p { font-size: 13px; opacity: 0.6; margin: 0; }

/* Admin — contest type picker */
.contest-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 10px;
    border: 2px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    text-align: center;
}
.contest-type-card input[type="radio"] { display: none; }
.contest-type-card:hover { border-color: var(--primary); background: rgba(91,103,245,0.04); }
.contest-type-card.selected { border-color: var(--primary); background: rgba(91,103,245,0.08); }
.contest-type-icon { font-size: 26px; }
.contest-type-name { font-size: 13px; font-weight: 800; }
.contest-type-desc { font-size: 11px; opacity: 0.55; line-height: 1.4; }

/* Tabs for Giveaways */
.contest-tabs {
    display: flex;
    gap: 6px;
    background: var(--muted);
    padding: 4px;
    border-radius: 16px;
    margin-bottom: 20px;
    position: sticky;
    top: 12px;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.contest-tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--muted-foreground);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.contest-tab-btn.active {
    background: var(--card);
    color: var(--foreground);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.contest-tab-content {
    display: none;
}
.contest-tab-content.active {
    display: block;
}

/* Leaderboard */
.contest-leaderboard-list {
    padding: 0;
    overflow: hidden;
}
.contest-leaderboard-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}
.contest-leaderboard-item:last-child {
    border-bottom: none;
}
.contest-leaderboard-rank {
    font-size: 18px;
    font-weight: 900;
    min-width: 28px;
    opacity: 0.6;
}
.contest-leaderboard-item:nth-child(-n+3) .contest-leaderboard-rank {
    opacity: 1;
}
.contest-leaderboard-info {
    flex: 1;
}
.contest-leaderboard-name {
    font-weight: 700;
    font-size: 14px;
}
.contest-leaderboard-stats {
    font-size: 12px;
    opacity: 0.5;
}



/* Banners */
.cookie-banner {
    position: fixed !important;
    bottom: 110px !important;
    left: 16px !important;
    right: 16px !important;
    max-width: 440px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid var(--border) !important;
    border-radius: 20px !important;
    padding: 16px !important;
    margin: 0 auto !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    z-index: 20000 !important;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease !important;
}

.pwa-banner {
    position: fixed !important;
    top: 16px !important;
    left: 16px !important;
    right: 16px !important;
    max-width: 440px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid var(--border) !important;
    border-radius: 24px !important;
    padding: 18px !important;
    margin: 0 auto !important;
    box-shadow: 0 15px 40px rgba(91, 103, 245, 0.15) !important;
    z-index: 20001 !important;
    display: none;
    opacity: 0;
    transform: translateY(-20px) !important;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.banner-icon-box {
    width: 40px;
    height: 40px;
    background: rgba(91, 103, 245, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.banner-icon-box.large {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, #7e89ff 100%);
    border-radius: 14px;
    color: white;
    box-shadow: 0 4px 12px rgba(91, 103, 245, 0.3);
}

.banner-close-btn {
    background: var(--muted) !important;
    border: none !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    color: var(--muted-foreground) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

.banner-btn {
    width: 100%;
    height: 44px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s;
}

.banner-btn:active {
    transform: scale(0.97);
}

.banner-btn.large {
    height: 48px;
    border-radius: 16px;
}

.ios-instruction {
    display: none;
    margin: 0 !important;
    font-size: 11px !important;
    text-align: center !important;
    color: var(--muted-foreground) !important;
    background: rgba(0,0,0,0.03) !important;
    padding: 8px !important;
    border-radius: 10px !important;
}

.hidden { display: none !important; }
.rotate-180 { transform: rotate(180deg) !important; }

/* Form hint text */
.form-hint {
    font-size: 11px;
    color: var(--muted-foreground);
    margin-top: 4px;
}

/* Green action button (e.g. draw winner) */
.btn-green {
    background: var(--green) !important;
    border-color: var(--green) !important;
}

/* Empty state block for contests list */
.empty-state-contests {
    padding: 48px;
    text-align: center;
}
.empty-state-contests .empty-state-emoji {
    font-size: 56px;
    margin-bottom: 20px;
}
.empty-state-contests h3 {
    font-size: 18px;
    font-weight: 850;
    margin-bottom: 12px;
}
.empty-state-contests p {
    color: var(--muted-foreground);
    margin-bottom: 32px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* City selection modal */
.city-btn {
    height: 70px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--foreground);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px;
    transition: background 0.15s, transform 0.1s;
}
.city-btn:active { transform: scale(0.97); }
.city-btn-region {
    font-size: 9px;
    opacity: 0.5;
    font-weight: 500;
}
.city-btn-count {
    font-size: 10px;
    color: var(--primary);
    font-weight: 600;
}

/* Notification rating action */
.notif-rating {
    margin-top: 8px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
}

/* Admin table (participants, etc.) */
.admin-table { width: 100%; border-collapse: collapse; text-align: left; }
.admin-table th { padding: 12px 20px; font-size: 11px; font-weight: 700; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 12px 20px; border-bottom: 1px solid var(--border); font-size: 14px; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table-card { padding: 0; overflow: hidden; }

/* Leaderboard row */
.leaderboard-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.leaderboard-row-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.leaderboard-rank {
    font-weight: 800;
    color: var(--primary);
    width: 24px;
    text-align: center;
}
.leaderboard-name { font-weight: 600; font-size: 14px; }
.leaderboard-right { text-align: right; }
.leaderboard-count { font-weight: 800; font-size: 15px; }
.leaderboard-tickets { font-size: 11px; opacity: 0.6; }

/* Card title in leaderboard */
.card-title-section {
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section label above table */
.section-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted-foreground);
    text-transform: uppercase;
    margin: 24px 0 12px 4px;
}

/* Participant cell */
.participant-cell { display: flex; align-items: center; gap: 10px; }
.participant-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--muted);
    overflow: hidden;
    flex-shrink: 0;
}
.participant-avatar img { width: 100%; height: 100%; object-fit: cover; }
.participant-name { font-weight: 700; font-size: 13px; }
.participant-phone { font-size: 11px; opacity: 0.6; }

/* Ticket code cell */
.ticket-code { font-size: 13px; color: var(--primary); font-weight: 800; }
.ticket-number { font-size: 10px; opacity: 0.5; }

/* Date cell in table */
.table-date { font-size: 12px; color: var(--muted-foreground); }

/* Empty state (no tickets) */
.empty-state-tickets { text-align: center; padding: 40px; }
.empty-state-tickets .empty-state-emoji { font-size: 40px; margin-bottom: 12px; }
.empty-state-tickets p { color: var(--muted-foreground); }

/* ── Partner Dashboard ─────────────────────── */

/* Establishment selector in subtitle */
.estab-select {
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    outline: none;
    padding: 0;
    cursor: pointer;
}

/* Single establishment name row */
.estab-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

/* Dropdown item primary link */
.dropdown-item-primary { color: var(--primary); }

/* Date filter bar */
.filter-bar {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.filter-btn {
    background: var(--muted);
    color: var(--foreground);
    border: none;
    border-radius: 10px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
}
.filter-btn-icon {
    margin-left: auto;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--muted);
    color: var(--foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter-btn-icon.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Date range popup */
.date-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.18);
    width: 288px;
}
.date-popup-title {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted-foreground);
}
.date-popup-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.date-popup-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted-foreground);
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.date-popup-input {
    width: 100%;
    height: 40px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 600;
    background: var(--muted);
    color: var(--foreground);
    box-sizing: border-box;
}
.date-popup-apply {
    width: 100%;
    height: 42px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 2px;
}

/* Stats card - revenue (gradient) */
.stat-card-revenue { background: var(--gradient-primary); border: none; color: white; }
.stat-card-revenue .label { color: rgba(255,255,255,0.7); }
.stat-revenue-value { font-size: 22px; font-weight: 800; }
.stat-revenue-change { font-size: 11px; margin-top: 4px; opacity: 0.8; }
.stat-visits-count { font-size: 11px; margin-top: 4px; color: var(--green); font-weight: 700; }

/* Scan QR button */
.scan-btn {
    width: 100%;
    height: 180px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}
.scan-btn-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(91,103,245,0.05) 0%, transparent 70%);
}
.scan-btn-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: rgba(91,103,245,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    position: relative;
    z-index: 1;
}
.scan-btn-label {
    font-size: 18px;
    font-weight: 800;
    color: var(--foreground);
    position: relative;
    z-index: 1;
}
.scan-btn-blob {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--primary);
    opacity: 0.03;
    border-radius: 50%;
}

/* No establishment card */
.no-estab-card {
    background: var(--muted);
    padding: 32px;
    border-radius: 24px;
    text-align: center;
}
.no-estab-icon {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
}
.no-estab-title { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.no-estab-desc { color: var(--muted-foreground); font-size: 14px; margin-bottom: 20px; }

/* Activity log header */
.activity-log-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.activity-log-header .section-title { margin: 0; }

/* Empty visits */
.no-visits {
    text-align: center;
    padding: 30px;
    color: var(--muted-foreground);
    font-size: 14px;
}

/* Visit row */
.visit-row { display: flex; gap: 12px; align-items: center; }
.visit-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(91,103,245,0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}
.visit-amount-col { text-align: right; }
.visit-total { font-weight: 800; font-size: 15px; color: var(--foreground); }
.visit-saved { color: var(--green); font-size: 12px; font-weight: 700; }

/* ── Partner Scanner ──────────────────────── */
.scanner-header-group { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin-bottom: 8px; }
.back-btn-round { background: var(--muted); border: none; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--foreground); flex-shrink: 0; }
.scanner-title-text { font-size: 20px; font-weight: 800; }
.scanner-viewport { position: relative; border-radius: 24px; overflow: hidden; margin-bottom: 24px; background: #000; aspect-ratio: 1; box-shadow: var(--shadow); }
.scanner-viewport #reader { width: 100%; height: 100%; }
.scanner-permission-overlay { position: absolute; inset: 0; background: #111; display: none; flex-direction: column; align-items: center; justify-content: center; z-index: 10; transition: all 0.3s ease; }
.scanner-permission-overlay.active { display: flex; }
.scanner-loader-spinner { margin: 0 auto 16px; width: 32px; height: 32px; border: 3px solid rgba(255,255,255,0.1); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
.scanner-loading-hint { color: rgba(255,255,255,0.7); font-size: 14px; }
.scanner-error-panel { display: none; text-align: center; padding: 20px; }
.scanner-error-panel.active { display: block; }
.scanner-error-title { color: white; margin-bottom: 16px; font-weight: 500; }
.scanner-error-subtext { color: rgba(255,255,255,0.5); font-size: 12px; margin-top: 12px; }
.scanner-scan-frame-wrapper { position: absolute; inset: 0; pointer-events: none; border: 2px solid rgba(255,255,255,0.1); display: none; flex-direction: column; align-items: center; justify-content: center; }
.scanner-scan-frame-wrapper.active { display: flex; }
.scanner-scan-frame { width: 250px; height: 250px; border: 2px solid var(--primary); border-radius: 24px; box-shadow: 0 0 0 1000px rgba(0,0,0,0.6); position: relative; }
.scanner-scan-hint-text { margin-top: 20px; color: white; font-weight: 600; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.scanner-manual-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 20px; padding: 16px; font-weight: 700; }

/* Scanner Modals */
.scanner-modal-client-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.scanner-modal-client-icon { width: 48px; height: 48px; background: rgba(64, 192, 87, 0.1); color: var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.scanner-modal-client-details h3 { font-size: 16px; font-weight: 700; color: var(--foreground); }
.scanner-modal-client-details p { font-size: 14px; color: var(--muted-foreground); }
.scanner-modal-amount-field { margin-bottom: 20px; }
.scanner-modal-field-label { display: block; font-size: 13px; font-weight: 700; color: var(--muted-foreground); margin-bottom: 8px; }
.scanner-modal-amount-input { padding: 14px; font-size: 18px; width: 100%; border: 1px solid var(--border); border-radius: 12px; box-sizing: border-box; }
.scanner-modal-manual-code-input { letter-spacing: 2px; font-weight: 700; text-align: center; width: 100%; border: 1px solid var(--border); border-radius: 12px; box-sizing: border-box; }
.scanner-full-button { width: 100%; }


/* ── Partner Staff Management ──────────────── */
.staff-header-group { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin-bottom: 8px; }
.staff-title-text { font-size: 20px; font-weight: 800; }
.staff-add-section { margin-bottom: 12px; }
.staff-add-title { font-size: 16px; font-weight: 800; margin-bottom: 8px; color: var(--foreground); }
.staff-form-group { display: flex; gap: 12px; flex-direction: column; }
.staff-input-large { height: 52px; font-size: 16px; width: 100%; box-sizing: border-box; }
.staff-btn-large { height: 52px; border-radius: 16px; width: 100%; font-weight: 700; }
.staff-hint-text { font-size: 12px; color: var(--muted-foreground); margin-top: 16px; line-height: 1.4; }
.staff-list-title { font-size: 18px; font-weight: 800; margin-bottom: 20px; margin-top: 24px; }
.empty-state-staff { text-align: center; padding: 40px; background: var(--muted); border-radius: 24px; color: var(--muted-foreground); }
.staff-grid { display: flex; flex-direction: column; gap: 12px; }
.staff-card-modern { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 16px; display: flex; justify-content: space-between; align-items: center; transition: transform 0.2s; }
.staff-card-modern:active { transform: scale(0.98); }
.staff-card-left { display: flex; align-items: center; gap: 16px; }
.staff-avatar-circle { width: 44px; height: 44px; background: var(--gradient-primary); color: white; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; flex-shrink: 0; box-shadow: 0 4px 10px rgba(91, 103, 245, 0.2); }
.staff-details h4 { font-weight: 700; font-size: 15px; color: var(--foreground); margin: 0; }
.staff-phone-mono { font-size: 13px; color: var(--muted-foreground); font-family: var(--font-mono); font-weight: 600; margin-top: 2px; }
.staff-remove-btn-red { background: rgba(239, 68, 68, 0.1); border: none; color: #ef4444; width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
.staff-remove-btn-red:hover { background: rgba(239, 68, 68, 0.2); transform: rotate(8deg); }
.staff-remove-btn-red svg { width: 18px; height: 18px; }

/* ── Partner Stories Management ───────────── */
.stories-header-group { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin-bottom: 8px; }
.stories-title-text { font-size: 20px; font-weight: 800; }
.stories-upload-preview-box { width: 120px; height: 213px; background: var(--muted); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; border: 2px dashed var(--border); cursor: pointer; overflow: hidden; position: relative; }
.stories-upload-icon-plus { font-size: 32px; opacity: 0.5; color: var(--primary); font-weight: 800; }
.stories-img-cover { width: 100%; height: 100%; object-fit: cover; }
.stories-grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.story-card-modern { padding: 4px; position: relative; overflow: hidden; border-radius: 18px; }
.story-card-thumb-wrap { aspect-ratio: 9/16; border-radius: 14px; overflow: hidden; background: var(--muted); }
.story-delete-round-btn { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,0.5); border: none; color: white; display: flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(4px); transition: all 0.2s ease; z-index: 5; }
.story-delete-round-btn:hover { background: var(--destructive); transform: scale(1.1); }
.story-expiry-hint { padding: 8px 4px; font-size: 11px; font-weight: 700; color: var(--muted-foreground); text-align: center; }
.stories-empty-state { grid-column: span 3; text-align: center; padding: 40px; opacity: 0.5; font-weight: 600; color: var(--muted-foreground); }


/* ── Partner Transactions Management ──────── */
.tx-header-group { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin-bottom: 8px; }
.tx-title-text { font-size: 20px; font-weight: 800; }
.tx-list-container { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.tx-empty-state { text-align: center; padding: 40px; color: var(--muted-foreground); font-weight: 600; opacity: 0.7; }
.tx-card { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; transition: transform 0.2s; }
.tx-card:active { transform: scale(0.98); }
.tx-user-info { display: flex; gap: 12px; align-items: center; }
.tx-avatar-sq { width: 44px; height: 44px; border-radius: 14px; background: rgba(91, 103, 245, 0.1); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.tx-details h4 { font-size: 15px; font-weight: 700; color: var(--foreground); margin: 0; }
.tx-details p { font-size: 12px; color: var(--muted-foreground); margin-top: 2px; }
.tx-amount-col { text-align: right; }
.tx-amount-main { font-weight: 800; font-size: 16px; color: var(--foreground); }
.tx-amount-discount { color: var(--green); font-size: 12px; font-weight: 700; margin-top: 1px; }

.pagination-container { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; padding-bottom: 30px; }
.pag-btn { min-width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--border); color: var(--foreground); font-weight: 700; transition: all 0.2s ease; cursor: pointer; }
.pag-btn.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3); }
.pag-dots { color: var(--muted-foreground); font-weight: 800; padding: 0 4px; }

/* ── Notifications Modal ─────────────────── */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 4px; /* Space for scrollbar */
}

.notification-item {
    padding: 12px;
    border-radius: 16px;
    background: var(--muted);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.notification-item.unread {
    background: white;
    box-shadow: 0 4px 12px rgba(91, 103, 245, 0.08);
    border-color: rgba(91, 103, 245, 0.15);
}

.notification-item:active {
    transform: scale(0.98);
    background: rgba(91, 103, 245, 0.05);
}

.notif-rating {
    margin-top: 8px;
    padding: 8px;
    background: rgba(255, 193, 7, 0.1);
    color: #f59e0b;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.unread-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 12px;
    right: 12px;
    box-shadow: 0 0 0 3px white;
}


/* ── Contest Premium Cards ───────────────── */
.contests-grid { display: flex; flex-direction: column; }

.contest-card-premium {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    user-select: none;
    display: flex;
    gap: 14px;
    padding: 12px;
    align-items: center;
}

.contest-card-premium:active { transform: scale(0.98); }

.contest-card-image { 
    position: relative; 
    width: 64px; 
    height: 64px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--muted);
}
.contest-card-image img { 
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease; 
}
.contest-card-premium:hover .contest-card-image img { transform: scale(1.08); }

.card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    pointer-events: none;
}

.badge-glass {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.type-badge {
    margin-left: 13px;
}

.establishment-badge-overlay {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contest-card-image .badge-hot {
    position: absolute;
    top: 4px;
    left: 4px;
    padding: 3px 6px;
    font-size: 8px;
    border-radius: 6px;
}

.badge-hot {
    background: linear-gradient(135deg, #ff930f 0%, #ff2957 100%);
    box-shadow: 0 4px 12px rgba(255, 41, 87, 0.3);
}

.user-tickets-badge {
    background: var(--primary);
    box-shadow: 0 8px 20px rgba(91, 103, 245, 0.4);
    border: 1px solid rgba(255,255,255,0.2);
}

.contest-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--foreground);
    margin: 0;
    line-height: 1.2;
}

.progress-bar-container {
    background: rgba(0,0,0,0.04);
}

.progress-bar-fill {
    box-shadow: 0 0 10px rgba(91, 103, 245, 0.3);
}

.activation-alert {
    background: rgba(255, 241, 241, 1);
    border: 1px solid rgba(255, 200, 200, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 6px 8px;
    border-radius: 10px;
}

.contest-card-body {
    flex: 1;
    padding: 0 !important;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.contest-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

@keyframes pulse-subtle {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(250, 82, 82, 0.2); }
    50% { transform: scale(1.01); box-shadow: 0 0 0 6px rgba(250, 82, 82, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(250, 82, 82, 0); }
}

.animate-pulse-subtle {
    animation: pulse-subtle 2s infinite ease-in-out;
}

.btn-arrow {
    background: rgba(91, 103, 245, 0.08);
    transition: all 0.3s ease;
}

.contest-card-premium:hover .btn-arrow {
    background: var(--primary);
    color: #fff;
    transform: translateX(4px);
}

/* ── Giveaway City Filter ───────────────── */
.city-filter-container {
    padding: 0 4px;
}

#giveaway-city-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235B67F5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding: 6px 32px 6px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background-color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    color: var(--primary);
    outline: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

#giveaway-city-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91,103,245,0.1);
}
