/*
 * DealHub Theme - Main Stylesheet
 * Version: 2.2.0
 * Mobile-responsive with hamburger menu, drawer nav, bottom nav
 * SEO-friendly with structured data support
 */

/*--------------------------------------------------------------
# CSS Variables
--------------------------------------------------------------*/
:root {
    --color-orange: #FF6B35;
    --color-orange-dark: #E55A2A;
    --color-orange-light: #FFF3ED;
    --color-blue: #3498DB;
    --color-green: #48BB78;
    --color-red: #E53E3E;
    --color-bg: #F7FAFC;
    --color-text: #2D3748;
    --color-text-light: #718096;
    --color-border: #E2E8F0;
    --color-white: #FFFFFF;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --container-max: 1280px;
    --sidebar-width: 300px;
}

/*--------------------------------------------------------------
# Reset & Base
--------------------------------------------------------------*/
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-orange);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-orange-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/*--------------------------------------------------------------
# Container
--------------------------------------------------------------*/
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 640px) {
    .container { padding: 0 20px; }
}

/*--------------------------------------------------------------
# Screen Reader Text
--------------------------------------------------------------*/
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/*--------------------------------------------------------------
# Site Header
--------------------------------------------------------------*/
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 16px;
}

/* Top bar */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 8px 0;
    overflow: visible;
}

@media (min-width: 640px) {
    .header-top { min-height: 64px; }
}

/* Logo */
.site-branding {
    flex-shrink: 0;
    max-width: 220px;
    overflow: visible;
}

.site-branding .custom-logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

/* Custom logo image sizing */
.site-branding .custom-logo {
    max-height: 44px;
    width: auto;
}

@media (min-width: 640px) {
    .site-branding .custom-logo {
        max-height: 48px;
    }
}

.site-branding img {
    max-height: 44px;
    width: auto;
    object-fit: contain;
}

@media (min-width: 640px) {
    .site-branding img {
        max-height: 48px;
    }
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--color-orange);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon .dashicons {
    color: white;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.site-branding .site-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
}

.site-branding .site-title .highlight {
    color: var(--color-orange);
}

/* Search */
.header-search {
    display: none;
    flex: 1;
    max-width: 420px;
    margin: 0 24px;
}

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

.search-form {
    position: relative;
    width: 100%;
}

.search-form .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.search-form .search-field {
    width: 100%;
    height: 36px;
    padding: 0 16px 0 36px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg);
    font-size: 14px;
    color: var(--color-text);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.search-form .search-field:focus {
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: none;
    background: none;
    color: var(--color-text-light);
    font-size: 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}

.filter-btn:hover {
    background: var(--color-bg);
}

@media (min-width: 640px) {
    .filter-btn { display: flex; }
}

.view-toggle {
    display: none;
    align-items: center;
    background: var(--color-bg);
    border-radius: 8px;
    padding: 2px;
}

@media (min-width: 640px) {
    .view-toggle { display: flex; }
}

.view-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: var(--color-text-light);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.view-btn.active {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    color: var(--color-orange);
}

.view-btn .dashicons { font-size: 14px; width: 14px; height: 14px; }

/* Tab navigation */
.tab-nav {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: -1px;
    clear: both;
    position: relative;
    z-index: 5;
    border-top: 1px solid var(--color-border);
}

/* Hide tab-nav on mobile (use drawer instead) */
@media (max-width: 767px) {
    .tab-nav {
        display: none;
    }
}

.tab-list {
    display: flex;
    align-items: center;
    gap: 0;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-light);
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--color-text);
    border-bottom-color: var(--color-border);
}

.tab-btn.active {
    color: var(--color-orange);
    border-bottom-color: var(--color-orange);
}

.tab-btn .dashicons { font-size: 15px; width: 15px; height: 15px; }

.tab-actions { margin-left: auto; }

.today-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: none;
    background: none;
    color: var(--color-text-light);
    font-size: 12px;
    cursor: pointer;
    border-radius: 6px;
}

.today-btn:hover { background: var(--color-bg); }
.today-btn .dashicons { font-size: 12px; width: 12px; height: 12px; }

/* Nav links in tab bar */
.tab-list .menu-item {
    list-style: none;
}

.tab-list .menu-item a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-light);
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-list .menu-item a:hover {
    color: var(--color-text);
    border-bottom-color: var(--color-border);
}

.tab-list .menu-item.current-menu-item a {
    color: var(--color-orange);
    border-bottom-color: var(--color-orange);
}

/* Mobile search */
.mobile-search {
    display: block;
    padding: 0 0 12px;
}

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

.mobile-search .search-form .search-field {
    height: 36px;
}

/*--------------------------------------------------------------
# Main Content
--------------------------------------------------------------*/
.site-main {
    padding: 20px 0;
}

@media (min-width: 640px) {
    .site-main { padding: 24px 0; }
}

/*--------------------------------------------------------------
# Section Headers
--------------------------------------------------------------*/
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-icon {
    color: var(--color-orange);
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.section-icon-sm {
    color: var(--color-orange);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

@media (min-width: 640px) {
    .section-title { font-size: 22px; }
}

.section-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.today-badge {
    background: var(--color-orange);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

.deals-count {
    font-size: 14px;
    color: var(--color-text-light);
    margin-left: 4px;
}

/* Store Filter Dropdown */
.store-filter-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.store-filter-icon {
    color: var(--color-orange);
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.store-filter-select {
    height: 32px;
    padding: 0 28px 0 10px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-white);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: border-color 0.2s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23718096'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 6px;
    max-width: 200px;
}

.store-filter-select:hover {
    border-color: var(--color-orange);
}

.store-filter-select:focus {
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

@media (max-width: 639px) {
    .store-filter-wrap {
        width: 100%;
    }
    .store-filter-select {
        flex: 1;
        max-width: 100%;
    }
    .section-header {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/*--------------------------------------------------------------
# Carousel
--------------------------------------------------------------*/
.hottest-deals-section {
    margin-bottom: 24px;
}

.carousel-nav {
    display: flex;
    gap: 4px;
}

.carousel-prev,
.carousel-next {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--color-bg);
}

.carousel-prev .dashicons,
.carousel-next .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--color-text);
}

.carousel-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-card {
    min-width: 220px;
    max-width: 260px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    height: 100%;
}

.carousel-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    min-width: 220px;
    max-width: 260px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    transition: box-shadow 0.2s, transform 0.2s;
}

.carousel-card-link:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.carousel-card-link:hover .carousel-card-title {
    color: var(--color-orange);
}

/* Carousel card image section */
.carousel-card-image {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: var(--color-bg);
}

.carousel-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-img-placeholder img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.carousel-img-placeholder .thumb-initial {
    font-size: 32px;
    font-weight: 700;
}

.carousel-img-placeholder .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: var(--color-text-light);
}

/* Discount badge on carousel card — ribbon style */
.carousel-discount-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 48px;
    padding: 5px 8px 5px 10px;
    border-radius: 0 0 0 10px;
    background: linear-gradient(135deg, #FF6B35 0%, #e85d2c 100%);
    color: white;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    z-index: 2;
}

.carousel-discount-badge .discount-pct {
    font-size: 13px;
    font-weight: 900;
    line-height: 1.1;
}

.carousel-discount-badge .discount-off {
    font-size: 7px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 1px;
}

.carousel-card-body {
    padding: 12px 14px 14px;
}

.carousel-card-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.carousel-card-pricing {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

/* .discount-text is defined below with full badge styling */

.original-price-sm {
    font-size: 12px;
    color: var(--color-text-light);
    text-decoration: line-through;
}

.carousel-card-store {
    margin-top: 8px;
}

.store-name-sm {
    font-size: 10px;
    font-weight: 500;
}

/*--------------------------------------------------------------
# Categories Bar
--------------------------------------------------------------*/
.categories-section {
    margin-bottom: 24px;
}

.categories-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.categories-bar::-webkit-scrollbar { display: none; }

.category-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text-light);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.category-pill:hover {
    background: var(--color-orange-light);
    color: var(--color-orange);
    border-color: rgba(255, 107, 53, 0.3);
}

.category-pill.active {
    background: var(--color-orange);
    color: white;
    border-color: var(--color-orange);
}

.cat-icon { font-size: 14px; }

/*--------------------------------------------------------------
# Main Layout
--------------------------------------------------------------*/
.main-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 1024px) {
    .main-layout {
        flex-direction: row;
    }
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 100%;
}

@media (min-width: 1024px) {
    .sidebar {
        width: var(--sidebar-width);
        flex-shrink: 0;
    }
}

@media (min-width: 1280px) {
    .sidebar {
        width: 320px;
    }
}

/*--------------------------------------------------------------
# Deal Cards — Grid with Vertical Cards (Image Top, Content Bottom)
--------------------------------------------------------------*/
.deals-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .deals-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .deals-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .deals-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card wrapper */
.deal-card-wrap {
    border-radius: var(--radius-md);
    transition: box-shadow 0.2s, transform 0.2s;
    height: 100%;
}

.deal-card-wrap:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.deal-card-wrap:hover .deal-card-title {
    color: var(--color-orange);
}

.deal-card-wrap.expired {
    opacity: 0.6;
}

/* The card itself */
.deal-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image section */
.deal-card-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.deal-card-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--color-bg);
}

@media (min-width: 640px) {
    .deal-card-image { height: 160px; }
}

.deal-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.deal-card-wrap:hover .deal-card-image img {
    transform: scale(1.03);
}

.deal-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deal-card-img-placeholder img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.deal-card-img-placeholder .placeholder-letter {
    font-size: 42px;
    font-weight: 700;
}

.deal-card-img-placeholder .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: var(--color-text-light);
}

/* Discount badge — ribbon-style, top-right of image */
.deal-card-discount-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 54px;
    padding: 6px 10px 6px 12px;
    border-radius: 0 0 0 12px;
    background: linear-gradient(135deg, #FF6B35 0%, #e85d2c 100%);
    color: white;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.45);
    z-index: 2;
    letter-spacing: 0.3px;
}

.deal-card-discount-badge .discount-pct {
    font-size: 15px;
    font-weight: 900;
    line-height: 1.1;
}

.deal-card-discount-badge .discount-off {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 1px;
}

/* Featured badge — top-left of image */
.deal-card-featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-orange);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.4);
}

.deal-card-featured-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Card body — content below image */
.deal-card-body {
    flex: 1;
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Title link */
.deal-card-title-link {
    text-decoration: none;
    color: inherit;
}

.deal-card-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

@media (min-width: 640px) {
    .deal-card-title { font-size: 16px; }
}

/* Price */
.deal-card-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.deal-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-orange);
    line-height: 1.2;
}

.original-price {
    font-size: 13px;
    color: var(--color-text-light);
    text-decoration: line-through;
    line-height: 1.2;
}

.discount-text {
    font-size: 12px;
    font-weight: 600;
    color: #276749;
    background: #F0FFF4;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid #C6F6D5;
}

/* Store pill */
.deal-card-store {
    margin: 0;
}

.store-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.2px;
}

/* Coupon preview */
.deal-card-coupon {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--color-orange-light);
    border: 1px dashed var(--color-orange);
    border-radius: 6px;
    font-size: 12px;
    width: fit-content;
}

.deal-card-coupon .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: var(--color-orange);
}

.coupon-preview {
    font-family: monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-orange);
    background: white;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Footer row */
.deal-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--color-border);
}

.deal-card-meta-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.deal-card-author-time {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.deal-card-author {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--color-text-light);
}

.author-avatar-sm {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-avatar-sm .dashicons {
    font-size: 10px;
    width: 10px;
    height: 10px;
    color: var(--color-orange);
}

.deal-card-time {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: var(--color-text-light);
}

.deal-card-time .dashicons {
    font-size: 11px;
    width: 11px;
    height: 11px;
}

.deal-card-stats {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Upvote / Like button in deal card stats line */
.deal-card-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-white);
    color: var(--color-text-light);
    font-size: 11px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.deal-card-vote-btn:hover {
    border-color: var(--color-orange);
    color: var(--color-orange);
    background: var(--color-orange-light);
}

.deal-card-vote-btn.is-active {
    border-color: var(--color-orange);
    color: var(--color-orange);
    background: var(--color-orange-light);
}

.deal-card-vote-btn .dashicons {
    font-size: 13px;
    width: 13px;
    height: 13px;
}

.deal-card-vote-btn .vote-count {
    font-size: 11px;
    font-weight: 600;
}

/* Upvote button in single deal stats bar */
.deal-stats-bar .deal-card-vote-btn {
    padding: 0;
    border: none;
    background: none;
    border-radius: 0;
    font-size: 13px;
    gap: 4px;
}

.deal-stats-bar .deal-card-vote-btn .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
}

.deal-stats-bar .deal-card-vote-btn .vote-count {
    font-size: 13px;
}

.deal-stats-bar .deal-card-vote-btn:hover {
    background: none;
    color: var(--color-orange);
}

.deal-stats-bar .deal-card-vote-btn.is-active {
    background: none;
    color: var(--color-orange);
}

.deal-card-comment-count,
.deal-card-view-count {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    color: var(--color-text-light);
}

.deal-card-comment-count .dashicons,
.deal-card-view-count .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

/* View Deal / Buy Now button in card */
.deal-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 14px;
    background: var(--color-orange);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.deal-view-btn:hover {
    background: var(--color-orange-dark);
    color: white;
}

.deal-view-btn .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

/*--------------------------------------------------------------
# Stats Bar (single deal page)
--------------------------------------------------------------*/
.deal-stats-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--color-border);
}

.deal-stats-bar .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--color-text-light);
    cursor: default;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}

.deal-stats-bar .stat-item .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
}

.deal-stats-bar .share-trigger {
    cursor: pointer;
    transition: color 0.2s;
}

.deal-stats-bar .share-trigger:hover {
    color: var(--color-orange);
}

/*--------------------------------------------------------------
# Sidebar Widgets
--------------------------------------------------------------*/
.sidebar .widget {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
}

/* New Deals Widget */
.sidebar-deal-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.sidebar-deal-item:hover {
    background: var(--color-bg);
}

.sidebar-deal-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.sidebar-thumb-img {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-bg);
}

.sidebar-thumb-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-logo-xs {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.store-logo-xs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.store-logo-xs .store-initial { font-size: 16px; font-weight: 700; }
.store-logo-xs .dashicons { font-size: 18px; width: 18px; height: 18px; color: var(--color-text-light); }

.sidebar-deal-content {
    flex: 1;
    min-width: 0;
}

.sidebar-deal-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-deal-title a {
    color: var(--color-text);
    text-decoration: none;
}

.sidebar-deal-title a:hover { color: var(--color-orange); }

.sidebar-deal-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-deal-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-orange);
}

.sidebar-deal-discount {
    font-size: 11px;
    font-weight: 600;
    color: #276749;
}

.view-all-link {
    display: block;
    text-align: center;
    color: var(--color-orange);
    font-size: 14px;
    font-weight: 500;
    margin-top: 12px;
    text-decoration: none;
}

.view-all-link:hover { text-decoration: underline; }

/* Top Stores Widget */
.stores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.store-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background 0.2s;
}

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

.store-item .store-logo-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
}

.store-item .store-initial { font-size: 24px; }

.store-name {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-light);
    text-align: center;
    line-height: 1.3;
}

@media (min-width: 640px) {
    .store-name { font-size: 12px; }
}

.store-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 2px solid;
    overflow: hidden;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.store-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.store-initial {
    font-size: 20px;
    font-weight: 700;
}

.store-logo-wrapper .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: var(--color-text-light);
}

/*--------------------------------------------------------------
# Single Deal Page — Image Left + Details Right
--------------------------------------------------------------*/
.single-deal {
    max-width: 100%;
    margin: 0;
}

/* Expired banner */
.deal-expired-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: #FFF5F5;
    border: 1px solid #FED7D7;
    border-radius: var(--radius-sm);
    color: var(--color-red);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.deal-expired-banner .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Two-column layout (content + sidebar) */
.single-deal-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 1024px) {
    .single-deal-layout {
        flex-direction: row;
    }
}

/* Right sidebar */
.sidebar-right {
    width: 100%;
}

@media (min-width: 1024px) {
    .sidebar-right {
        width: var(--sidebar-width);
        flex-shrink: 0;
    }
}

@media (min-width: 1280px) {
    .sidebar-right {
        width: 320px;
    }
}

/* Main content area */
.single-deal-layout .deal-content-area {
    flex: 1;
    min-width: 0;
}

/* ====== TOP DEAL CARD: Image + Details ====== */
.deal-top-card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
}

@media (min-width: 640px) {
    .deal-top-card {
        flex-direction: row;
    }
}

/* Product Image — Left side */
.deal-top-image {
    width: 100%;
    flex-shrink: 0;
    background: var(--color-bg);
}

@media (min-width: 640px) {
    .deal-top-image {
        width: 300px;
        min-width: 300px;
    }
}

@media (min-width: 768px) {
    .deal-top-image {
        width: 340px;
        min-width: 340px;
    }
}

.deal-product-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--color-bg);
}

@media (min-width: 640px) {
    .deal-product-image {
        height: 100%;
        min-height: 380px;
    }
}

.deal-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-zoom-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.image-zoom-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.image-zoom-btn .dashicons { font-size: 16px; width: 16px; height: 16px; }

.deal-product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.deal-product-placeholder img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.placeholder-initial {
    font-size: 56px;
    font-weight: 700;
}

.deal-product-placeholder .dashicons {
    font-size: 56px;
    width: 56px;
    height: 56px;
    color: var(--color-text-light);
}

/* Deal Details — Right side */
.deal-top-details {
    flex: 1;
    min-width: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media (min-width: 640px) {
    .deal-top-details { padding: 24px; }
}

/* Title */
.deal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    line-height: 1.35;
}

@media (min-width: 640px) {
    .deal-title { font-size: 22px; }
}

@media (min-width: 1024px) {
    .deal-title { font-size: 24px; }
}

/* Price section */
.deal-pricing-section {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.deal-price-lg {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-orange);
    line-height: 1.1;
}

@media (min-width: 640px) {
    .deal-price-lg { font-size: 32px; }
}

.original-price-lg {
    font-size: 16px;
    color: var(--color-text-light);
    text-decoration: line-through;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .original-price-lg { font-size: 18px; }
}

.discount-badge-lg {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: #276749;
    background: #F0FFF4;
    border: 1px solid #C6F6D5;
    padding: 2px 8px;
    border-radius: 4px;
    line-height: 1.4;
}

/* Store badge on deal page */
.deal-store-info { margin: 0; }

.store-badge-lg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
}

.store-badge-lg:hover { opacity: 0.85; }

.store-badge-lg img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: contain;
}

/* Author row */
.deal-author-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-light);
}

.deal-author-row .author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 107, 53, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.deal-author-row .author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deal-author-name {
    font-weight: 500;
    color: var(--color-text);
}

.author-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 10px;
    background: var(--color-orange-light);
    color: var(--color-orange);
}

/* Coupon code box */
.coupon-code-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--color-orange-light);
    border: 2px dashed var(--color-orange);
    border-radius: var(--radius-sm);
    flex-wrap: wrap;
}

.coupon-label {
    font-size: 13px;
    color: var(--color-text-light);
    white-space: nowrap;
}

.coupon-code {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-orange);
    padding: 3px 12px;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    user-select: all;
    letter-spacing: 0.5px;
    font-family: monospace;
}

.coupon-copy-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-white);
    cursor: pointer;
    color: var(--color-text-light);
    transition: all 0.2s;
    flex-shrink: 0;
}

.coupon-copy-btn:hover {
    border-color: var(--color-orange);
    color: var(--color-orange);
}

.coupon-copy-btn .dashicons { font-size: 15px; width: 15px; height: 15px; }

/* Expiry notice */
.deal-expiry-notice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #FFFBEB;
    border: 1px solid #FEFCBF;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #975A16;
    width: fit-content;
}

.deal-expiry-notice .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.deal-expiry-notice.expired {
    background: #FFF5F5;
    border-color: #FED7D7;
    color: var(--color-red);
}

/* Stats inline (used in single deal page) */
.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--color-text-light);
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: default;
    border: none;
    background: none;
    font-family: inherit;
}

.stat-item:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

.stat-item .dashicons { font-size: 14px; width: 14px; height: 14px; }

.share-trigger:hover { color: var(--color-orange); }

/* ====== BUY NOW CTA ====== */
.deal-buy-cta {
    margin-bottom: 20px;
    text-align: center;
}

.buy-btn-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 400px;
    padding: 14px 32px;
    background: var(--color-orange);
    color: white;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
}

.buy-btn-lg:hover {
    background: var(--color-orange-dark);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.45);
}

.buy-btn-lg .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ====== MORE INFORMATION SECTION ====== */
.deal-more-info {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.more-info-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

/* Deal description */
.deal-description {
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--color-text);
    font-size: 15px;
}

.deal-description p {
    margin-bottom: 12px;
}

.deal-description p:last-child {
    margin-bottom: 0;
}

/* Deal info list */
.deal-info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.deal-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-text);
    padding: 8px 12px;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
}

.deal-info-item .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--color-orange);
    flex-shrink: 0;
}

.deal-info-item strong {
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
}

.deal-info-item a {
    color: var(--color-orange);
    text-decoration: none;
}

.deal-info-item a:hover {
    text-decoration: underline;
}

.deal-info-item code {
    font-family: monospace;
    font-size: 13px;
    background: var(--color-orange-light);
    color: var(--color-orange);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.info-cat-link {
    display: inline-block;
    padding: 2px 8px;
    background: var(--color-orange-light);
    color: var(--color-orange);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 4px;
    text-decoration: none;
}

.info-cat-link:hover {
    background: var(--color-orange);
    color: white;
}

/* ====== OFFERS SECTION ====== */
.deal-offers-section {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

.offers-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.offers-section-title .dashicons {
    color: var(--color-orange);
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.offers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.offer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s;
}

.offer-card:hover {
    border-color: var(--color-orange);
}

.offer-card-content {
    flex: 1;
    min-width: 0;
}

.offer-type-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--color-orange-light);
    color: var(--color-orange);
    margin-bottom: 6px;
}

.offer-description {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.4;
    margin: 0;
}

.offer-discount {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #276749;
    margin-top: 4px;
}

.offer-discount .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.offer-card-action {
    flex-shrink: 0;
}

.offer-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: var(--color-orange);
    color: white;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.offer-copy-btn:hover {
    background: var(--color-orange-dark);
}

.offer-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: var(--color-orange);
    color: white;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.offer-apply-btn:hover {
    background: var(--color-orange-dark);
    color: white;
}

/* ====== SHARE SECTION ====== */
.deal-share-section {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn:hover {
    border-color: transparent;
    color: white;
}

.share-whatsapp:hover { background: #25D366; }
.share-facebook:hover { background: #1877F2; }
.share-twitter:hover { background: #1DA1F2; }
.share-telegram:hover { background: #0088CC; }

/* ====== COMMENTS SECTION ====== */
.deal-comments-section {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 20px;
}

/* No Deals */
.no-deals {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text-light);
    grid-column: 1 / -1;
}

.no-deals .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--color-border);
    margin-bottom: 12px;
}

.no-deals p {
    font-size: 15px;
}

/*--------------------------------------------------------------
# Archive Header
--------------------------------------------------------------*/
.archive-header {
    margin-bottom: 24px;
}

.archive-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

@media (min-width: 640px) {
    .archive-title { font-size: 28px; }
}

.archive-title span {
    color: var(--color-orange);
}

/*--------------------------------------------------------------
# Store Page Styles
--------------------------------------------------------------*/
.store-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 24px;
    background: var(--color-white);
    border: 1px solid;
    border-radius: var(--radius-md);
    margin-bottom: 32px;
}

@media (max-width: 639px) {
    .store-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.store-logo-xl {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    border: 3px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.store-logo-xl img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.store-initial-xl {
    font-size: 36px;
    font-weight: 700;
}

.store-header-info {
    flex: 1;
    min-width: 0;
}

.store-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.store-website {
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.store-website .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.store-description {
    margin-top: 12px;
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.stores-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.store-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s;
}

.store-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.store-logo-lg {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.store-logo-lg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.store-initial-lg {
    font-size: 28px;
    font-weight: 700;
}

.store-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
}

.store-card-link {
    font-size: 12px;
    color: var(--color-orange);
    font-weight: 500;
}

/* Pagination */
.deals-pagination {
    margin-top: 20px;
    text-align: center;
}

.deals-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.deals-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.2s;
}

.deals-pagination .page-numbers:hover {
    border-color: var(--color-orange);
    color: var(--color-orange);
}

.deals-pagination .page-numbers.current {
    background: var(--color-orange);
    border-color: var(--color-orange);
    color: white;
}

.deals-pagination .page-numbers.dots {
    border: none;
    background: none;
}

/* Footer */
.site-footer {
    background: var(--color-text);
    color: rgba(255,255,255,0.7);
    padding: 48px 0 24px;
    margin-top: 40px;
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 16px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-col {
    min-width: 0;
}

.footer-brand {
    padding-right: 24px;
}

@media (min-width: 1024px) {
    .footer-brand {
        padding-right: 48px;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.footer-logo .logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.footer-logo .logo-icon .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.footer-logo .site-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.footer-logo .site-title .highlight {
    color: var(--color-orange);
}

.footer-description {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    max-width: 320px;
}

.footer-heading {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links li:last-child {
    margin-bottom: 0;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-orange);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.footer-contact li:last-child {
    margin-bottom: 0;
}

.footer-contact .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--color-orange);
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: var(--color-orange);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom .copyright {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 16px;
}

.footer-bottom-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: var(--color-orange);
}

.footer-inner a {
    color: rgba(255,255,255,0.9);
}

.footer-inner a:hover {
    color: var(--color-orange);
}

/* Comments styling */
.comment-list {
    list-style: none;
}

.comment {
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.comment-author {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
}

.comment-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text);
    margin-top: 8px;
}

#respond {
    margin-top: 20px;
}

#respond .comment-reply-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

#respond .comment-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#respond .comment-form input[type="text"],
#respond .comment-form input[type="email"],
#respond .comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-family);
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color 0.2s;
}

#respond .comment-form input:focus,
#respond .comment-form textarea:focus {
    border-color: var(--color-orange);
    outline: none;
}

#respond .comment-form .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: var(--color-orange);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    width: fit-content;
}

#respond .comment-form .submit:hover {
    background: var(--color-orange-dark);
}

/* Share buttons for dealhub helper */
.dealhub-share-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dealhub-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: white;
    transition: opacity 0.2s;
}

.dealhub-share-btn:hover {
    opacity: 0.85;
    color: white;
}

.dealhub-share-whatsapp { background: #25D366; }
.dealhub-share-facebook { background: #1877F2; }
.dealhub-share-twitter { background: #1DA1F2; }
.dealhub-share-telegram { background: #0088CC; }

/*--------------------------------------------------------------
# AJAX Loading Spinner
--------------------------------------------------------------*/
.deals-list-loading {
    text-align: center;
    padding: 30px;
}

.deals-list-loading .spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-orange);
    border-radius: 50%;
    animation: dealhub-spin 0.8s linear infinite;
}

@keyframes dealhub-spin {
    to { transform: rotate(360deg); }
}

/*--------------------------------------------------------------
# Toast Notifications
--------------------------------------------------------------*/
.dealhub-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 20px;
    background: var(--color-text);
    color: white;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dealhub-toast.toast-visible {
    opacity: 1;
    transform: translateY(0);
}

/*--------------------------------------------------------------
# DCS Plugin Integration
--------------------------------------------------------------*/
.header-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--color-orange);
    color: white;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.header-submit-btn:hover {
    background: var(--color-orange-dark);
    color: white;
    transform: translateY(-1px);
}

.header-submit-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

@media (max-width: 639px) {
    .header-submit-btn span:not(.dashicons) {
        display: none;
    }
    .header-submit-btn {
        padding: 8px;
        border-radius: 50%;
    }
}

/* DCS Share button on single deal pages */
.dcs-share-box {
    margin-top: 16px;
}

.dcs-share-box .dcs-button {
    background: var(--color-orange);
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 8px;
}

.dcs-share-box .dcs-button:hover {
    background: var(--color-orange-dark);
}

/* DCS Toast override */
.dcs-app .dcs-message {
    font-size: 13px;
}

/* No-deals centering */
.no-deals {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--color-text-light);
}

.no-deals .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.no-deals p {
    font-size: 15px;
    margin: 0;
}

/*--------------------------------------------------------------
# Mobile Hamburger Menu Toggle
--------------------------------------------------------------*/
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    gap: 5px;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-menu-toggle:hover {
    background: var(--color-bg);
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.2s;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/*--------------------------------------------------------------
# Mobile Drawer Navigation
--------------------------------------------------------------*/
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--color-white);
    z-index: 999;
    overflow-y: auto;
    overflow-x: hidden;
    transition: right 0.3s ease;
    box-shadow: var(--shadow-lg);
    -webkit-overflow-scrolling: touch;
}

.mobile-drawer.active {
    right: 0;
}

@media (min-width: 768px) {
    .mobile-drawer,
    .mobile-drawer-overlay {
        display: none !important;
    }
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
}

.mobile-drawer-branding {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.mobile-drawer-branding .site-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
}

.mobile-drawer-branding .highlight {
    color: var(--color-orange);
}

.mobile-drawer-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 8px;
    color: var(--color-text-light);
    transition: background 0.2s, color 0.2s;
}

.mobile-drawer-close:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.mobile-drawer-close .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* User info in drawer */
.mobile-drawer-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
}

.mobile-drawer-guest {
    background: var(--color-bg);
}

.mobile-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-orange);
}

.mobile-guest-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.12);
    color: var(--color-orange);
    font-size: 22px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px;
    box-sizing: content-box;
}

.mobile-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.mobile-user-coins {
    font-size: 12px;
    color: var(--color-orange);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mobile-user-coins .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.mobile-login-link,
.mobile-register-link {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.mobile-login-link {
    color: var(--color-orange);
    background: var(--color-orange-light);
    margin-right: 6px;
}

.mobile-register-link {
    color: var(--color-text-light);
    background: var(--color-white);
    border: 1px solid var(--color-border);
}

/* Drawer menu */
.mobile-drawer-menu {
    padding: 8px 0;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-list li {
    margin: 0;
}

.mobile-nav-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.mobile-nav-list li a:hover {
    background: var(--color-bg);
    color: var(--color-orange);
}

.mobile-nav-list li a .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--color-text-light);
}

.mobile-nav-list li a:hover .dashicons {
    color: var(--color-orange);
}

.mobile-nav-list li.current-menu-item > a {
    color: var(--color-orange);
    font-weight: 600;
    background: var(--color-orange-light);
}

.mobile-drawer-divider {
    height: 1px;
    background: var(--color-border);
    margin: 8px 20px;
}

.mobile-nav-secondary li a {
    color: var(--color-text-light);
    font-size: 13px;
}

.mobile-nav-secondary li a .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Sub-menu in drawer */
.mobile-nav-list .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--color-bg);
}

.mobile-nav-list .sub-menu li a {
    padding: 10px 20px 10px 48px;
    font-size: 13px;
}

/*--------------------------------------------------------------
# Mobile Bottom Navigation
--------------------------------------------------------------*/
.mobile-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    z-index: 90;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

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

.mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    height: 100%;
    text-decoration: none;
    color: var(--color-text-light);
    font-size: 10px;
    font-weight: 500;
    transition: color 0.2s;
    padding: 4px 0;
    position: relative;
}

.mob-nav-item .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    transition: color 0.2s, transform 0.2s;
}

.mob-nav-item.active {
    color: var(--color-orange);
}

.mob-nav-item.active .dashicons {
    color: var(--color-orange);
    transform: scale(1.1);
}

.mob-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--color-orange);
    border-radius: 0 0 3px 3px;
}

.mob-nav-label {
    line-height: 1.2;
}

/* Body padding for bottom nav */
@media (max-width: 767px) {
    body {
        padding-bottom: 56px;
    }
}

/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/
.breadcrumbs-wrap {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 8px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 13px;
    color: var(--color-text-light);
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 4px;
}

.breadcrumb li::after {
    content: '/';
    color: var(--color-border);
    font-size: 12px;
    margin: 0 2px;
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb li a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb li a:hover {
    color: var(--color-orange);
}

.breadcrumb li:last-child a,
.breadcrumb li:last-child span {
    color: var(--color-orange);
    font-weight: 600;
}

.breadcrumb .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/*--------------------------------------------------------------
# Touch-Friendly Mobile Improvements
--------------------------------------------------------------*/
@media (max-width: 767px) {
    /* Larger tap targets */
    .category-pill {
        padding: 8px 14px;
        font-size: 13px;
    }

    .tab-list .menu-item a {
        padding: 12px 14px;
    }

    .deal-view-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    /* Better mobile search */
    .mobile-search .search-form .search-field {
        height: 42px;
        font-size: 16px; /* Prevents iOS zoom */
    }

    /* Larger coupon code area for easy tap */
    .coupon-code-box {
        padding: 10px 14px;
    }

    .coupon-copy-btn {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Better spacing for deal info items */
    .deal-info-item {
        padding: 8px 0;
    }

    /* Share buttons larger on mobile */
    .share-btn {
        width: 44px;
        height: 44px;
    }

    /* Footer grid stacks on mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Make footer heading clickable for accordion (future enhancement) */
    .footer-heading {
        font-size: 15px;
        margin-bottom: 10px;
    }

    /* Better bottom bar spacing */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    /* Store header layout on mobile */
    .store-header {
        flex-direction: column;
        text-align: center;
    }

    /* Better comment form on mobile */
    .comment-form-author,
    .comment-form-email {
        width: 100%;
    }

    /* Make pagination bigger touch targets */
    .nav-links .page-numbers {
        min-width: 40px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Deal card image height on mobile */
    .deal-card-image {
        height: 200px;
    }

    /* Submit button icon-only on mobile */
    .header-submit-btn span:not(.dashicons) {
        display: none;
    }

    .header-submit-btn {
        padding: 8px;
        border-radius: 8px;
    }
}

/* No-deals and empty states */
.no-deals {
    text-align: center;
    padding: 48px 16px;
    color: var(--color-text-light);
}

.no-deals .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--color-border);
    margin-bottom: 12px;
}

.no-deals p {
    font-size: 15px;
    font-weight: 500;
}

/* Store header for store single page */
.store-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.store-logo-xl {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    border: 2px solid;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.store-logo-xl img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.store-initial-xl {
    font-size: 32px;
    font-weight: 700;
}

.store-header-info {
    flex: 1;
    min-width: 0;
}

.store-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 4px;
}

.store-website {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 8px;
}

.store-website .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.store-description {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.store-deals {
    margin-bottom: 24px;
}

@media (max-width: 639px) {
    .store-header {
        flex-direction: column;
        text-align: center;
    }

    .store-logo-xl {
        width: 64px;
        height: 64px;
    }
}

/* Archive header */
.archive-header {
    margin-bottom: 20px;
}

.archive-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.archive-title span {
    color: var(--color-orange);
}

@media (min-width: 640px) {
    .archive-title { font-size: 24px; }
}

/* Pagination */
.deals-pagination {
    margin-top: 24px;
}

.nav-links {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-light);
    text-decoration: none;
    transition: all 0.2s;
}

.nav-links .page-numbers:hover {
    border-color: var(--color-orange);
    color: var(--color-orange);
}

.nav-links .page-numbers.current {
    background: var(--color-orange);
    border-color: var(--color-orange);
    color: white;
}

.nav-links .page-numbers.dots {
    border: none;
    background: none;
}

/*--------------------------------------------------------------
# Referral Code Section (Single Deal Page)
--------------------------------------------------------------*/
.referral-code-section {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFF3ED 100%);
    border: 2px solid #FFD6B8;
    border-radius: var(--radius-md);
    padding: 16px;
}

.referral-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.referral-header-icon {
    color: var(--color-orange);
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.referral-header-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
}

.referral-count-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-orange);
    background: rgba(255, 107, 53, 0.12);
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: auto;
}

.referral-code-display {
    background: var(--color-white);
    border: 1px dashed var(--color-orange);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 10px;
}

.referral-code-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.referral-code {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 800;
    color: var(--color-orange);
    letter-spacing: 1.5px;
    background: var(--color-orange-light);
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.referral-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--color-orange);
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.referral-copy-btn:hover {
    background: var(--color-orange-dark);
    transform: scale(1.05);
}

.referral-copy-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Referral link row (for link-only or both mode) */
.referral-link-row {
    margin-top: 8px;
}

.referral-code-display[data-mode="link_only"] .referral-link-row {
    margin-top: 0;
}

/* Referral visit link button — prominent clickable button */
.referral-visit-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--color-orange);
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.referral-visit-link-btn:hover {
    background: var(--color-orange-dark);
    color: white;
    text-decoration: none;
}

.referral-visit-link-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Legacy small visit button (kept for backward compatibility) */
.referral-visit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text-light);
    text-decoration: none;
    transition: all 0.2s;
    flex-shrink: 0;
}

.referral-visit-btn:hover {
    border-color: var(--color-orange);
    color: var(--color-orange);
    background: var(--color-orange-light);
}

.referral-visit-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.referral-author-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
}

.referral-author-row img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.referral-author-name {
    font-size: 12px;
    color: var(--color-text-light);
    font-weight: 500;
}

.referral-shuffle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 20px;
    background: var(--color-white);
    color: var(--color-orange);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
    font-family: inherit;
}

.referral-shuffle-btn:hover {
    background: var(--color-orange-light);
    border-color: var(--color-orange);
}

.referral-shuffle-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.referral-shuffle-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.referral-empty {
    text-align: center;
    padding: 20px 16px;
    color: var(--color-text-light);
}

.referral-empty .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: var(--color-border);
    margin-bottom: 8px;
}

.referral-empty p {
    font-size: 13px;
    margin: 0;
}

/* Add referral section */
.referral-add-section {
    border-top: 1px solid rgba(255, 107, 53, 0.15);
    padding-top: 12px;
    margin-top: 4px;
}

.referral-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 16px;
    border: 2px dashed rgba(255, 107, 53, 0.4);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-orange);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.referral-add-btn:hover {
    background: rgba(255, 107, 53, 0.06);
    border-color: var(--color-orange);
}

.referral-add-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.referral-user-exists {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #F0FFF4;
    border: 1px solid #C6F6D5;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: #276749;
}

.referral-user-exists .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--color-green);
}

.referral-user-exists code {
    font-weight: 700;
    color: #276749;
    background: white;
    padding: 1px 6px;
    border-radius: 3px;
}

.referral-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #C6F6D5;
    background: white;
    color: #276749;
    cursor: pointer;
    margin-left: auto;
    transition: all 0.2s;
}

.referral-edit-btn:hover {
    background: #F0FFF4;
    border-color: var(--color-green);
}

.referral-edit-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Referral add form */
.referral-add-form {
    padding: 14px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-top: 10px;
}

.referral-form-field {
    margin-bottom: 12px;
}

.referral-form-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.referral-input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 14px;
    color: var(--color-text);
    background: var(--color-bg);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.referral-input:focus {
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.referral-form-actions {
    display: flex;
    gap: 8px;
}

.referral-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background: var(--color-orange);
    color: white;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.referral-submit-btn:hover {
    background: var(--color-orange-dark);
}

.referral-submit-btn:disabled {
    opacity: 0.6;
    pointer-events: none;
}

.referral-cancel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: none;
    color: var(--color-text-light);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.referral-cancel-btn:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

/* Referral login prompt */
.referral-login-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-top: 1px solid rgba(255, 107, 53, 0.15);
    margin-top: 8px;
    font-size: 12px;
    color: var(--color-text-light);
}

.referral-login-prompt .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: var(--color-text-light);
}

.referral-login-prompt a {
    font-weight: 600;
}

/*--------------------------------------------------------------
# Auth Pages (Login / Register)
--------------------------------------------------------------*/
.auth-page-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-md);
}

@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px;
        border-radius: var(--radius-md);
    }
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.auth-brand .custom-logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-brand .custom-logo {
    max-height: 40px;
    width: auto;
}

.auth-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--color-orange);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo-icon .dashicons {
    color: white;
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.auth-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
}

.auth-logo-text .highlight {
    color: var(--color-orange);
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin: 0 0 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--color-text-light);
    text-align: center;
    margin: 0 0 24px;
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.auth-message .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.auth-message-error {
    background: #FFF5F5;
    border: 1px solid #FED7D7;
    color: var(--color-red);
}

.auth-message-success {
    background: #F0FFF4;
    border: 1px solid #C6F6D5;
    color: #276749;
}

.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 12px;
    color: var(--color-text-light);
    font-size: 16px;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.auth-input-wrap input {
    width: 100%;
    height: 44px;
    padding: 0 40px 0 38px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    font-size: 14px;
    color: var(--color-text);
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.auth-input-wrap input:focus {
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
    background: var(--color-white);
}

.auth-input-wrap input::placeholder {
    color: #A0AEC0;
}

.auth-toggle-password {
    position: absolute;
    right: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: var(--color-text-light);
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.auth-toggle-password:hover {
    color: var(--color-orange);
    background: var(--color-orange-light);
}

.auth-toggle-password .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.auth-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text-light);
    cursor: pointer;
}

.auth-remember input[type="checkbox"] {
    accent-color: var(--color-orange);
    width: 16px;
    height: 16px;
}

.auth-forgot-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-orange);
}

.auth-forgot-link:hover {
    color: var(--color-orange-dark);
}

.auth-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    background: var(--color-orange);
    color: white;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.auth-submit-btn:hover {
    background: var(--color-orange-dark);
}

.auth-submit-btn:active {
    transform: scale(0.98);
}

.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-btn-spinner {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dealhub-spinner {
    animation: dealhub-spin 1s linear infinite;
}

@keyframes dealhub-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Password strength */
.auth-password-strength {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s, background-color 0.3s;
}

.strength-text {
    font-size: 11px;
    font-weight: 600;
    min-width: 70px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: var(--color-text-light);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.auth-alt-link {
    text-align: center;
    font-size: 14px;
    color: var(--color-text-light);
}

.auth-alt-link a {
    font-weight: 600;
    margin-left: 4px;
}

.auth-back-home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 20px;
    font-size: 13px;
    color: var(--color-text-light);
    transition: color 0.2s;
}

.auth-back-home:hover {
    color: var(--color-orange);
}

.auth-back-home .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/*--------------------------------------------------------------
# Account Page
--------------------------------------------------------------*/
.account-page-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.account-header {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
}

@media (max-width: 639px) {
    .account-header {
        flex-direction: column;
        text-align: center;
    }
}

.account-avatar-wrap {
    flex-shrink: 0;
}

.account-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid var(--color-orange);
    object-fit: cover;
}

.account-info {
    flex: 1;
    min-width: 0;
}

.account-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 4px;
}

.account-username {
    font-size: 14px;
    color: var(--color-text-light);
}

.account-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

@media (max-width: 639px) {
    .account-badges {
        justify-content: center;
    }
}

.account-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.account-badge-item .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.badge-level {
    background: #FFF8E1;
    color: #F59E0B;
}

.badge-coins {
    background: var(--color-orange-light);
    color: var(--color-orange);
}

.badge-rank {
    background: #EBF8FF;
    color: #3182CE;
}

.account-header-actions {
    flex-shrink: 0;
}

.account-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    color: var(--color-text-light);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.account-logout-btn:hover {
    border-color: var(--color-red);
    color: var(--color-red);
    background: #FFF5F5;
}

.account-logout-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Stats Grid */
.account-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (min-width: 640px) {
    .account-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.account-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 12px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-align: center;
}

.account-stat-card .stat-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: var(--color-orange);
    margin-bottom: 4px;
}

.account-stat-card .stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.2;
}

.account-stat-card .stat-label {
    font-size: 12px;
    color: var(--color-text-light);
    font-weight: 500;
}

/* Tabs */
.account-tabs {
    display: flex;
    gap: 4px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 6px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.account-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    background: none;
    color: var(--color-text-light);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    white-space: nowrap;
}

.account-tab .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.account-tab:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

.account-tab.active {
    background: var(--color-orange);
    color: white;
}

.account-tab-content {
    display: none;
}

.account-tab-content.active {
    display: block;
}

/* Account Section */
.account-section {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
}

.account-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

/* Quick Actions */
.account-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--color-orange-light);
    color: var(--color-orange);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s;
}

.quick-action-btn:hover {
    background: var(--color-orange);
    color: white;
    border-color: var(--color-orange);
}

.quick-action-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Profile Details */
.account-profile-details {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

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

.profile-label {
    font-size: 14px;
    color: var(--color-text-light);
    font-weight: 500;
}

.profile-value {
    font-size: 14px;
    color: var(--color-text);
    font-weight: 600;
}

/* Account Deals List */
.account-deals-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.account-deal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    gap: 12px;
}

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

.account-deal-item.expired {
    opacity: 0.5;
}

.account-deal-info {
    flex: 1;
    min-width: 0;
}

.account-deal-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-deal-title:hover {
    color: var(--color-orange);
}

.account-deal-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.deal-status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.status-publish {
    background: #F0FFF4;
    color: #276749;
}

.status-draft {
    background: #FFFFF0;
    color: #975A16;
}

.status-pending {
    background: #EBF8FF;
    color: #2B6CB0;
}

.account-deal-date {
    font-size: 12px;
    color: var(--color-text-light);
}

.account-deal-votes {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: var(--color-text-light);
}

.account-deal-votes .dashicons {
    font-size: 13px;
    width: 13px;
    height: 13px;
}

/* Account Referrals List */
.account-referrals-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.account-referral-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

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

.account-referral-deal {
    margin-bottom: 6px;
}

.account-referral-deal a {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.account-referral-deal a:hover {
    color: var(--color-orange);
}

.account-referral-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-ref-code,
.account-ref-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.account-ref-code .dashicons,
.account-ref-link .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: var(--color-orange);
}

.account-ref-code code {
    background: var(--color-orange-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-orange);
}

.account-ref-link a {
    font-size: 13px;
    color: var(--color-blue);
    word-break: break-all;
}

/* Empty state */
.account-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 32px 16px;
    text-align: center;
}

.account-empty .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: var(--color-text-light);
    opacity: 0.5;
}

.account-empty p {
    font-size: 14px;
    color: var(--color-text-light);
}

/*--------------------------------------------------------------
# Header Auth Buttons
--------------------------------------------------------------*/
.header-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    color: var(--color-text-light);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.header-login-btn:hover {
    border-color: var(--color-orange);
    color: var(--color-orange);
    background: var(--color-orange-light);
}

.header-login-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.header-account-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-border);
    transition: border-color 0.2s;
    text-decoration: none;
}

.header-account-btn:hover {
    border-color: var(--color-orange);
}

.header-user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.header-submit-btn {
    display: none;
}

@media (min-width: 640px) {
    .header-submit-btn {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 6px 14px;
        background: var(--color-orange);
        color: white;
        font-size: 13px;
        font-weight: 600;
        border: none;
        border-radius: var(--radius-sm);
        text-decoration: none;
        transition: background 0.2s;
    }

    .header-submit-btn:hover {
        background: var(--color-orange-dark);
        color: white;
    }

    .header-submit-btn .dashicons {
        font-size: 14px;
        width: 14px;
        height: 14px;
    }
}
