/* ===== CSS VARIABLES (Light + Dark) ===== */
:root {
    /* Light theme (default) */
    --bg-body: #f5f5f5;
    --bg-app: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #f3f4f6;
    --bg-cat: #f3f4f6;
    --bg-banner: #1a1a1a;
    --bg-nav: rgba(255, 255, 255, 0.92);
    --bg-featured: #ffffff;
    --bg-img-placeholder: #f0f2f5;
    --bg-sidebar: #ffffff;

    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #888;
    --text-muted2: #8e8e93;
    --text-white: #ffffff;
    --text-nav: #8e8e93;
    --text-nav-active: #1a1a1a;

    --border-color: #f0f0f0;
    --border-card: #f0f0f0;

    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.07);
    --shadow-nav: 0 -4px 20px rgba(0, 0, 0, 0.04);

    --green: #0d8a3e;
    --green-bg: #eaf9ef;
    --red: #e74c3c;
    --star: #f5b342;

    --radius-card: 18px;
    --radius-btn: 30px;

    --transition: 0.3s ease;

    --orange: #f39c12;
    --blue: #63e078cb;
}

/* ===== DARK THEME ===== */
.dark-mode {
    --bg-body: #0b0b0b;
    --bg-app: #121212;
    --bg-card: #1e1e1e;
    --bg-input: #2a2a2a;
    --bg-cat: #2a2a2a;
    --bg-banner: #1a1a1a;
    --bg-nav: rgba(18, 18, 18, 0.92);
    --bg-featured: #1e1e1e;
    --bg-img-placeholder: #2a2a2a;
    --bg-sidebar: #1e1e1e;

    --text-primary: #f0f0f0;
    --text-secondary: #c0c0c0;
    --text-muted: #999;
    --text-muted2: #a0a0a0;
    --text-white: #f0f0f0;
    --text-nav: #999;
    --text-nav-active: #f0f0f0;

    --border-color: #2a2a2a;
    --border-card: #2a2a2a;

    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-nav: 0 -4px 20px rgba(0, 0, 0, 0.5);

    --green: #2ecc71;
    --green-bg: #1a3a2a;
    --star: #f1c40f;

    --orange: #e67e22;
    --blue: #61bb55c7;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    padding: 0 0 80px 0;
    transition: background var(--transition), color var(--transition);
    overflow-x: hidden;
}

.app-container {
    max-width: 1280px;
    margin: 0 auto;
    background: var(--bg-app);
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.04);
    transition: background var(--transition), box-shadow var(--transition);
    position: relative;
}

/* ===== HEADER ===== */
.app-header {
    padding: 8px 20px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-app);
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition), border-color var(--transition);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.app-header .logo {
    display: flex;
    align-items: center;
    gap: 8px;
}
.app-header .logo i {
    font-size: 24px;
    color: var(--green);
    background: var(--green-bg);
    padding: 6px;
    border-radius: 12px;
    transition: background var(--transition), color var(--transition);
}
.app-header .logo span {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    transition: color var(--transition);
}
.app-header .logo span small {
    font-weight: 400;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0;
    margin-left: 2px;
    transition: color var(--transition);
}
.header-actions {
    display: flex;
    gap: 14px;
    align-items: center;
}
.header-actions i {
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition), transform 0.2s;
}
.header-actions i:hover {
    color: var(--green);
}
.badge-dot {
    position: relative;
}
.badge-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    border: 2px solid var(--bg-app);
    transition: border-color var(--transition);
}

/* Theme toggle button */
.theme-toggle {
    background: var(--bg-input);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-secondary);
    transition: background var(--transition), color var(--transition), transform 0.2s;
    padding: 0;
}
.theme-toggle:hover {
    transform: scale(1.05);
    color: var(--green);
}
.theme-toggle i {
    font-size: 18px;
    color: inherit;
    pointer-events: none;
}
.theme-toggle .fa-sun {
    display: inline;
}
.theme-toggle .fa-moon {
    display: none;
}
.dark-mode .theme-toggle .fa-sun {
    display: none;
}
.dark-mode .theme-toggle .fa-moon {
    display: inline;
}

/* ===== LOCATION BAR ===== */
.location-bar {
    padding: 10px 20px 14px;
    background: var(--bg-app);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    transition: background var(--transition), border-color var(--transition);
}
.location-bar i {
    color: var(--green);
    font-size: 14px;
    transition: color var(--transition);
}
.location-bar .loc-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
    min-width: 150px;
    transition: color var(--transition);
}
.location-bar .loc-text span {
    font-weight: 400;
    color: var(--text-muted);
    transition: color var(--transition);
}
.location-bar .change-btn {
    font-size: 12px;
    font-weight: 600;
    color: var(--green);
    background: var(--green-bg);
    padding: 4px 12px;
    border-radius: 20px;
    cursor: default;
    transition: background var(--transition), color var(--transition);
}

/* ===== SEARCH BAR ===== */
.search-bar {
    padding: 0 20px 16px;
    background: var(--bg-app);
    transition: background var(--transition);
}
.search-bar .search-wrap {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border-radius: 28px;
    padding: 8px 18px;
    gap: 10px;
    border: 1px solid transparent;
    transition: all var(--transition);
}
.search-bar .search-wrap:focus-within {
    border-color: var(--green);
    background: var(--bg-app);
    box-shadow: 0 0 0 3px rgba(13, 138, 62, 0.08);
}
.search-bar .search-wrap i {
    color: var(--text-muted2);
    transition: color var(--transition);
}
.search-bar .search-wrap input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-primary);
    padding: 4px 0;
    width: 100%;
    transition: color var(--transition);
}
.search-bar .search-wrap input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
    transition: color var(--transition);
}
.search-bar .search-wrap .search-shortcut {
    font-size: 11px;
    color: var(--text-muted2);
    background: var(--border-color);
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 500;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition);
}
.search-bar .search-wrap .filter-toggle {
    font-size: 16px;
    color: var(--text-muted2);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 20px;
    transition: background var(--transition), color var(--transition);
}
.search-bar .search-wrap .filter-toggle:hover {
    background: var(--border-color);
    color: var(--green);
}

/* ===== CATEGORIES ===== */
.categories {
    padding: 4px 0 16px;
    background: var(--bg-app);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    transition: background var(--transition), border-color var(--transition);
}
.categories::-webkit-scrollbar {
    display: none;
}
.categories .cat-scroll {
    display: flex;
    gap: 6px;
    padding: 0 20px;
}
.categories .cat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-cat);
    transition: all var(--transition);
    cursor: default;
    flex-shrink: 0;
}
.categories .cat-item i {
    font-size: 14px;
    transition: color var(--transition);
}
.categories .cat-item.active {
    background: var(--green);
    color: #ffffff;
}
.categories .cat-item.active i {
    color: #ffffff;
}
.categories .cat-item:hover {
    transform: scale(0.96);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 16px 20px 80px;
    background: var(--bg-body);
    transition: background var(--transition);
}

/* ===== BANNER CAROUSEL ===== */
.banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-card);
    margin-bottom: 24px;
    height: 140px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
}
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}
.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 24px;
    color: #fff;
}
.carousel-slide .slide-content h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}
.carousel-slide .slide-content p {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 4px;
}
.carousel-slide .slide-cta {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: default;
    transition: background 0.2s;
}
.carousel-slide .slide-cta:hover {
    background: rgba(255, 255, 255, 0.3);
}
.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}
.carousel-dots .dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

/* ===== SECTION HEADER ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
}
.section-header h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    transition: color var(--transition);
}
.section-header .see-all {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted2);
    cursor: default;
    white-space: nowrap;
    transition: color var(--transition);
}
.section-header .see-all:hover {
    color: var(--green);
}

/* ===== PRODUCT CARDS (Grid) ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
    cursor: default;
    border: 1px solid var(--border-card);
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

.product-card .img-wrap {
    position: relative;
    background: var(--bg-img-placeholder);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--text-muted2);
    transition: background var(--transition), color var(--transition);
}
.product-card .img-wrap .tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.product-card .img-wrap .tag.hot {
    background: var(--red);
}
.product-card .img-wrap .tag.free {
    background: var(--green);
}

.product-card .img-wrap .wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #555;
    transition: all 0.2s;
    cursor: default;
}
.dark-mode .product-card .img-wrap .wishlist-btn {
    background: rgba(30, 30, 30, 0.85);
    color: #aaa;
}
.product-card .img-wrap .wishlist-btn:hover {
    background: #fff;
    color: var(--red);
    transform: scale(1.1);
}
.dark-mode .product-card .img-wrap .wishlist-btn:hover {
    background: #2a2a2a;
    color: var(--red);
}

.product-card .info {
    padding: 10px 12px 12px;
}
.product-card .info .name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--transition);
}
.product-card .info .price {
    font-size: 16px;
    font-weight: 700;
    color: var(--green);
    letter-spacing: -0.3px;
    transition: color var(--transition);
}
.product-card .info .price small {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 6px;
    transition: color var(--transition);
}
.product-card .info .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-muted);
    transition: color var(--transition);
}
.product-card .info .meta .location {
    display: flex;
    align-items: center;
    gap: 4px;
}
.product-card .info .meta .location i {
    font-size: 10px;
}
.product-card .info .meta .rating {
    display: flex;
    align-items: center;
    gap: 3px;
}
.product-card .info .meta .rating i {
    color: var(--star);
    font-size: 11px;
    transition: color var(--transition);
}

/* ===== FEATURED / HORIZONTAL LIST ===== */
.featured-wrapper {
    margin-bottom: 28px;
}
.featured-list {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.featured-list::-webkit-scrollbar {
    display: none;
}

.featured-item {
    min-width: 200px;
    background: var(--bg-featured);
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--border-card);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 10px 10px;
    flex-shrink: 0;
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
    cursor: default;
}
.featured-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}
.featured-item .f-img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--bg-img-placeholder);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-muted2);
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition);
}
.featured-item .f-info {
    flex: 1;
}
.featured-item .f-info .f-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color var(--transition);
}
.featured-item .f-info .f-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--green);
    transition: color var(--transition);
}
.featured-item .f-info .f-meta {
    font-size: 11px;
    color: var(--text-muted);
    transition: color var(--transition);
}

/* ===== MINI BANNER ===== */
.mini-banner {
    background: var(--bg-banner);
    border-radius: var(--radius-card);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    cursor: default;
    transition: all var(--transition);
    border: 1px solid var(--border-color);
}
.mini-banner:hover {
    transform: scale(0.99);
}
.mini-banner .banner-text h3 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #fff;
}
.mini-banner .banner-text p {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 2px;
    color: #fff;
}
.mini-banner .banner-cta {
    background: var(--green);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    transition: background var(--transition);
}
.dark-mode .mini-banner {
    background: #1a2a1a;
    border-color: #2a3a2a;
}
.dark-mode .mini-banner .banner-text h3 {
    color: #f0f0f0;
}
.dark-mode .mini-banner .banner-text p {
    color: #c0c0c0;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-nav);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0 12px;
    backdrop-filter: blur(12px);
    z-index: 1000;
    max-width: 1280px;
    margin: 0 auto;
    box-shadow: var(--shadow-nav);
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-nav);
    cursor: default;
    transition: color var(--transition);
    padding: 2px 12px;
    position: relative;
}
.bottom-nav .nav-item i {
    font-size: 20px;
    transition: transform 0.2s, color var(--transition);
    color: var(--text-nav);
}
.bottom-nav .nav-item.active {
    color: var(--text-nav-active);
}
.bottom-nav .nav-item.active i {
    color: var(--text-nav-active);
    transform: scale(1.05);
}
.bottom-nav .nav-item .nav-badge {
    position: absolute;
    top: -2px;
    right: 4px;
    background: var(--red);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bottom-nav .nav-item.sell-btn {
    background: var(--green);
    color: #ffffff;
    padding: 6px 20px;
    border-radius: 30px;
    flex-direction: row;
    gap: 6px;
    font-weight: 600;
    font-size: 12px;
    margin-top: -18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.bottom-nav .nav-item.sell-btn i {
    font-size: 16px;
    color: #ffffff;
}
.bottom-nav .nav-item.sell-btn:hover {
    transform: scale(0.96);
}

/* ===== FILTER SIDEBAR ===== */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.filter-overlay.active {
    display: block;
    opacity: 1;
}

.filter-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85%;
    height: 100%;
    background: var(--bg-sidebar);
    z-index: 2000;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
}
.filter-sidebar.active {
    transform: translateX(0);
}

.filter-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.filter-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}
.filter-header i {
    font-size: 20px;
    color: var(--text-muted2);
    cursor: pointer;
    transition: color 0.2s;
}
.filter-header i:hover {
    color: var(--red);
}

.filter-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}
.filter-group {
    margin-bottom: 24px;
}
.filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.filter-group .price-range,
.filter-group .date-range {
    display: flex;
    align-items: center;
    gap: 10px;
}
.filter-group .price-range input,
.filter-group .date-range input,
.filter-group select {
    flex: 1;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}
.filter-group .price-range input:focus,
.filter-group .date-range input:focus,
.filter-group select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(13, 138, 62, 0.1);
}
.filter-group .price-range span,
.filter-group .date-range span {
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
}
.filter-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: default;
}

.filter-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}
.filter-footer button {
    flex: 1;
    padding: 12px 0;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-footer .btn-reset {
    background: var(--bg-input);
    color: var(--text-secondary);
}
.filter-footer .btn-reset:hover {
    background: var(--border-color);
}
.filter-footer .btn-apply {
    background: var(--green);
    color: #ffffff;
}
.filter-footer .btn-apply:hover {
    opacity: 0.9;
    transform: scale(0.98);
}

/* ===== ANIMATION ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.product-card,
.featured-item,
.mini-banner {
    animation: fadeUp 0.5s ease forwards;
}
.product-card:nth-child(2) {
    animation-delay: 0.05s;
}
.product-card:nth-child(3) {
    animation-delay: 0.1s;
}
.product-card:nth-child(4) {
    animation-delay: 0.15s;
}

/* ===== UTILITIES ===== */
.text-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== SCROLLBAR HIDE ===== */
::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Small phones */
@media (max-width: 480px) {
    .app-header .logo span {
        font-size: 17px;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    .product-card .img-wrap {
        height: 100px;
    }
    .product-card .info .name {
        font-size: 12px;
    }
    .product-card .info .price {
        font-size: 14px;
    }
    .featured-item {
        min-width: 170px;
    }
    .bottom-nav .nav-item {
        font-size: 9px;
        padding: 2px 6px;
    }
    .bottom-nav .nav-item i {
        font-size: 18px;
    }
    .bottom-nav .nav-item.sell-btn {
        padding: 4px 14px;
        font-size: 11px;
    }
    .theme-toggle {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }
    .theme-toggle i {
        font-size: 15px;
    }
    .filter-sidebar {
        width: 100%;
        max-width: 100%;
    }
    .banner-carousel {
        height: 120px;
    }
    .carousel-slide .slide-content h2 {
        font-size: 16px;
    }
}

/* Tablets & small laptops */
@media (min-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 18px;
    }
    .featured-item {
        min-width: 240px;
    }
    .main-content {
        padding: 20px 30px 100px;
    }
    .app-header {
        padding: 12px 30px;
    }
    .location-bar {
        padding: 12px 30px;
    }
    .search-bar {
        padding: 0 30px 20px;
    }
    .categories .cat-scroll {
        padding: 0 30px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .app-container {
        border-radius: 0;
        box-shadow: none;
        background: var(--bg-body);
    }
    .main-content {
        padding: 24px 40px 100px;
    }
    .app-header {
        padding: 16px 40px;
    }
    .location-bar {
        padding: 14px 40px;
    }
    .search-bar {
        padding: 0 40px 24px;
    }
    .categories .cat-scroll {
        padding: 0 40px;
        justify-content: center;
    }
    .categories .cat-item {
        padding: 10px 24px;
        font-size: 14px;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 24px;
    }
    .product-card .img-wrap {
        height: 160px;
        font-size: 48px;
    }
    .product-card .info .name {
        font-size: 15px;
    }
    .product-card .info .price {
        font-size: 18px;
    }
    .featured-list {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
    .featured-item {
        min-width: 280px;
        flex: 0 1 auto;
    }
    .mini-banner {
        padding: 24px 32px;
        border-radius: 24px;
    }
    .mini-banner .banner-text h3 {
        font-size: 20px;
    }
    .mini-banner .banner-text p {
        font-size: 14px;
    }
    .bottom-nav {
        max-width: 1280px;
        padding: 8px 0 16px;
        border-radius: 20px 20px 0 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
    }
    .bottom-nav .nav-item {
        font-size: 12px;
    }
    .bottom-nav .nav-item i {
        font-size: 22px;
    }
    .banner-carousel {
        height: 180px;
    }
    .carousel-slide .slide-content h2 {
        font-size: 24px;
    }
    .carousel-slide .slide-content p {
        font-size: 15px;
    }
}

.bottom-nav .nav-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.bottom-nav .nav-item:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    color: var(--green)
}

.bottom-nav .sell-btn:hover {
    transform: scale(1.05);
}

.bottom-nav .nav-item.active {
    color: var(--green)
}
.bottom-nav .nav-item.active:hover {
    background: transparent;
}


/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--green, #0d8a3e);
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.scroll-top-btn:active {
    transform: scale(0.95);
}

/* Dark mode adjustments – handled automatically via CSS variables */
.dark-mode .scroll-top-btn {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.dark-mode .scroll-top-btn:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}

/* Responsive: smaller button on mobile */
@media (max-width: 480px) {
    .scroll-top-btn {
        width: 42px;
        height: 42px;
        font-size: 17px;
        bottom: 80px;
        right: 16px;
    }
}

/* Adjust for bottom nav on larger screens */
@media (min-width: 1024px) {
    .scroll-top-btn {
        bottom: 100px;
        right: 32px;
    }
}


/* ===== DESKTOP OVERLAY NOTICE ===== */
.desktop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.desktop-overlay .overlay-card {
    background: var(--bg-card, #ffffff);
    border-radius: var(--radius-card, 24px);
    max-width: 480px;
    width: 100%;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    border: 1px solid var(--border-card, #f0f0f0);
    position: relative;
}

.desktop-overlay .overlay-card .icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.desktop-overlay .overlay-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.desktop-overlay .overlay-card p {
    font-size: 15px;
    color: var(--text-secondary, #4a4a4a);
    line-height: 1.6;
    margin-bottom: 20px;
}

.desktop-overlay .overlay-card .badge-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.desktop-overlay .overlay-card .badge-group span {
    background: var(--green-bg, #eaf9ef);
    color: var(--green, #0d8a3e);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
}

.desktop-overlay .overlay-card .dismiss-btn {
    margin-top: 28px;
    padding: 12px 32px;
    border: none;
    border-radius: 30px;
    background: var(--green, #0d8a3e);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.desktop-overlay .overlay-card .dismiss-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.desktop-overlay .overlay-card .close-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted2, #8e8e93);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}

.desktop-overlay .overlay-card .close-icon:hover {
    background: var(--bg-input, #f3f4f6);
    color: var(--red, #e74c3c);
}

/* Dark mode overrides (automatically via CSS variables) */
.dark-mode .desktop-overlay {
    background: rgba(0, 0, 0, 0.85);
}

.dark-mode .desktop-overlay .overlay-card {
    background: var(--bg-card, #1e1e1e);
    border-color: var(--border-card, #2a2a2a);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.dark-mode .desktop-overlay .overlay-card h2 {
    color: var(--text-primary, #f0f0f0);
}

.dark-mode .desktop-overlay .overlay-card p {
    color: var(--text-secondary, #c0c0c0);
}

.dark-mode .desktop-overlay .overlay-card .badge-group span {
    background: var(--green-bg, #1a3a2a);
    color: var(--green, #2ecc71);
}

/* Responsive: smaller padding on small screens (but overlay only shows on >=1024px) */
@media (max-width: 480px) {
    .desktop-overlay .overlay-card {
        padding: 32px 20px;
    }
    .desktop-overlay .overlay-card h2 {
        font-size: 20px;
    }
}

/* ===== LOGO SHAKE ANIMATION ===== */
@keyframes shakeLogo {
    0% { transform: translateX(0); }
    10% { transform: translateX(-10px) rotate(-2deg); }
    20% { transform: translateX(10px) rotate(2deg); }
    30% { transform: translateX(-10px) rotate(-2deg); }
    40% { transform: translateX(10px) rotate(2deg); }
    50% { transform: translateX(-5px) rotate(-1deg); }
    60% { transform: translateX(5px) rotate(1deg); }
    70% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
    90% { transform: translateX(-1px); }
    100% { transform: translateX(0); }
}

.shake-logo {
    animation: shakeLogo 0.6s ease-in-out;
    display: inline-block;
}

/* ===== GLOBAL SPINNER OVERLAY ===== */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    transition: background 0.3s ease;
}

.spinner-overlay.active {
    display: flex;
}

.spinner-overlay .spinner-box {
    background: var(--bg-card, #ffffff);
    padding: 32px 40px;
    border-radius: var(--radius-card, 20px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border-color, #f0f0f0);
}

.spinner-overlay .spinner-icon {
    font-size: 36px;
    color: var(--green, #0d8a3e);
    animation: spin 1s linear infinite;
}

.spinner-overlay .spinner-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary, #4a4a4a);
    letter-spacing: 0.3px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dark-mode .spinner-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.dark-mode .spinner-overlay .spinner-box {
    background: var(--bg-card, #1e1e1e);
    border-color: var(--border-color, #2a2a2a);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.dark-mode .spinner-overlay .spinner-text {
    color: var(--text-secondary, #c0c0c0);
}

/* ============================================================
   CAMPUSHUB CUSTOM FORM COMPONENTS
   Light + Dark mode compatible – uses CSS variables
   ============================================================ */

/* ─── Form Group ─── */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
    margin-bottom: 6px;
    transition: color var(--transition);
}

.form-group label .required-star {
    color: var(--red, #e74c3c);
    margin-left: 2px;
}

.form-group .help-text {
    font-size: 12px;
    color: var(--text-muted, #888);
    margin-top: 4px;
    transition: color var(--transition);
}

.form-group .help-text.error {
    color: var(--red, #e74c3c);
}

.form-group .help-text.success {
    color: var(--green, #0d8a3e);
}

/* ─── Input Base ─── */
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid var(--border-color, #f0f0f0);
    background: var(--bg-input, #f3f4f6);
    color: var(--text-primary, #1a1a1a);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.25s ease;
    outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--green, #0d8a3e);
    box-shadow: 0 0 0 4px rgba(13, 138, 62, 0.12);
    background: var(--bg-card, #ffffff);
}

.form-input.error,
.form-textarea.error,
.form-select.error {
    border-color: var(--red, #e74c3c);
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.12);
}

.form-input.success,
.form-textarea.success,
.form-select.success {
    border-color: var(--green, #0d8a3e);
    box-shadow: 0 0 0 4px rgba(13, 138, 62, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted, #888);
}

.form-input:disabled,
.form-textarea:disabled,
.form-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ─── Textarea ─── */
.form-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

/* ─── Select ─── */
.form-select-wrap {
    position: relative;
}

.form-select-wrap::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted, #888);
    font-size: 12px;
    pointer-events: none;
    transition: color var(--transition);
}

.form-select-wrap:focus-within::after {
    color: var(--green, #0d8a3e);
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    cursor: pointer;
}

.form-select option {
    background: var(--bg-card, #ffffff);
    color: var(--text-primary, #1a1a1a);
}

.dark-mode .form-select option {
    background: var(--bg-card, #1e1e1e);
}

/* ─── Checkbox ─── */
.form-check {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-secondary, #4a4a4a);
    transition: color var(--transition);
}

.form-check:hover {
    color: var(--text-primary, #1a1a1a);
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.form-check .checkmark {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid var(--border-color, #d0d0d0);
    background: var(--bg-input, #f3f4f6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
    position: relative;
}

.form-check .checkmark i {
    font-size: 12px;
    color: #ffffff;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.25s ease;
}

.form-check input[type="checkbox"]:checked + .checkmark {
    background: var(--green, #0d8a3e);
    border-color: var(--green, #0d8a3e);
}

.form-check input[type="checkbox"]:checked + .checkmark i {
    opacity: 1;
    transform: scale(1);
}

.form-check input[type="checkbox"]:focus + .checkmark {
    box-shadow: 0 0 0 4px rgba(13, 138, 62, 0.15);
}

.form-check input[type="checkbox"]:disabled + .checkmark {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ─── Radio ─── */
.form-check .checkmark-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border-color, #d0d0d0);
    background: var(--bg-input, #f3f4f6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
    position: relative;
}

.form-check .checkmark-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green, #0d8a3e);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.25s ease;
}

.form-check input[type="radio"]:checked + .checkmark-radio {
    border-color: var(--green, #0d8a3e);
    background: var(--bg-card, #ffffff);
}

.form-check input[type="radio"]:checked + .checkmark-radio::after {
    opacity: 1;
    transform: scale(1);
}

.form-check input[type="radio"]:focus + .checkmark-radio {
    box-shadow: 0 0 0 4px rgba(13, 138, 62, 0.15);
}

.form-check input[type="radio"]:disabled + .checkmark-radio {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ─── Form Group Row (for inline radios/checkboxes) ─── */
.form-check-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 4px 0;
}

.form-check-group .form-check {
    padding: 4px 0;
}

/* ─── File / Image Upload (Drag & Drop) ─── */
.file-drop-zone {
    border: 2px dashed var(--border-color, #d0d0d0);
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-input, #f3f4f6);
    position: relative;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.file-drop-zone:hover {
    border-color: var(--green, #0d8a3e);
    background: var(--bg-card, #ffffff);
}

.file-drop-zone.dragover {
    border-color: var(--green, #0d8a3e);
    background: var(--green-bg, #eaf9ef);
    transform: scale(1.01);
    box-shadow: 0 0 0 4px rgba(13, 138, 62, 0.08);
}

.file-drop-zone.has-file {
    border-color: var(--green, #0d8a3e);
    background: var(--green-bg, #eaf9ef);
    border-style: solid;
}

.file-drop-zone .drop-icon {
    font-size: 40px;
    color: var(--text-muted, #888);
    transition: color var(--transition);
}

.file-drop-zone:hover .drop-icon {
    color: var(--green, #0d8a3e);
}

.file-drop-zone .drop-text {
    font-size: 14px;
    color: var(--text-secondary, #4a4a4a);
    transition: color var(--transition);
}

.file-drop-zone .drop-text strong {
    color: var(--green, #0d8a3e);
    cursor: pointer;
}

.file-drop-zone .drop-hint {
    font-size: 12px;
    color: var(--text-muted, #888);
}

.file-drop-zone .file-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    background: var(--bg-card, #ffffff);
    border-radius: 12px;
    border: 1px solid var(--border-color, #f0f0f0);
    width: 100%;
    max-width: 320px;
    margin-top: 4px;
}

.file-drop-zone .file-preview .file-icon {
    font-size: 28px;
    color: var(--green, #0d8a3e);
}

.file-drop-zone .file-preview .file-info {
    flex: 1;
    text-align: left;
}

.file-drop-zone .file-preview .file-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
    word-break: break-all;
}

.file-drop-zone .file-preview .file-size {
    font-size: 11px;
    color: var(--text-muted, #888);
}

.file-drop-zone .file-preview .file-remove {
    background: none;
    border: none;
    color: var(--red, #e74c3c);
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.file-drop-zone .file-preview .file-remove:hover {
    background: rgba(231, 76, 60, 0.10);
}

.file-drop-zone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-drop-zone .drop-error {
    color: var(--red, #e74c3c);
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
}

/* ─── Dark mode overrides (auto via CSS variables) ─── */
.dark-mode .file-drop-zone {
    background: var(--bg-input, #2a2a2a);
    border-color: var(--border-color, #3a3a3a);
}

.dark-mode .file-drop-zone:hover {
    background: var(--bg-card, #1e1e1e);
}

.dark-mode .file-drop-zone.dragover {
    background: var(--green-bg, #1a3a2a);
}

.dark-mode .file-drop-zone.has-file {
    background: var(--green-bg, #1a3a2a);
}

.dark-mode .file-drop-zone .file-preview {
    background: var(--bg-card, #1e1e1e);
    border-color: var(--border-color, #2a2a2a);
}

/* ─── Form Row (grid) ─── */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ─── Validation state ─── */
.form-input.error,
.form-textarea.error,
.form-select.error {
    border-color: var(--red, #e74c3c);
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.10);
}

.form-input.success,
.form-textarea.success,
.form-select.success {
    border-color: var(--green, #0d8a3e);
    box-shadow: 0 0 0 4px rgba(13, 138, 62, 0.10);
}

/* ─── Required asterisk in dark mode ─── */
.dark-mode .form-group label .required-star {
    color: #ff6b6b;
}


/* ===== MODAL BUTTONS ===== */
.modal-confirm-btn {
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.modal-confirm-btn:hover {
    opacity: 0.9;
    transform: scale(0.97);
}
.modal-btn-primary {
    background: var(--green);
}
.modal-btn-success {
    background: var(--green);
}
.modal-btn-danger {
    background: var(--red);
}
.modal-btn-warning {
    background: var(--orange);
}
.modal-btn-info {
    background: var(--blue);
}


/* ─── Toast ─── */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}
.toast.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.toast .toast-icon {
    font-size: 20px;
}
.toast .toast-icon.success {
    color: var(--green);
}
.toast .toast-icon.warning {
    color: #e67e22;
}
.toast .toast-icon.danger {
    color: var(--red);
}
.dark-mode .toast {
    background: var(--bg-card);
    border-color: var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
@media (max-width: 480px) {
    .toast {
        font-size: 13px;
        padding: 10px 18px;
        white-space: normal;
        max-width: 90%;
        bottom: 90px;
    }
}

/* ─── Demo note ─── */
.demo-note {
    text-align: center;
    font-size: 10px;
    color: var(--text-muted);
    padding: 8px 0 4px;
    letter-spacing: 0.3px;
    background: var(--bg-app);
    border-top: 1px solid var(--border-color);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.demo-note span {
    font-weight: 600;
    color: var(--green);
    transition: color var(--transition);
}


@media (max-width: 768px) {

    .app-container {
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
    }

    .main-content {
        flex: 1;
    }

    .demo-note {
        flex-shrink: 0;
        margin: 0;
        padding: 8px 0 5px;
    }

}