/* ============================================================
   AnimeStream Custom Styles
   - Header Style 3 (Clean Modern — referensi vibenime.com)
   - Home Style 10 (Modern Card Layout)
   - TMDB Features
   - Watchlist Panel
   - Advanced Search Enhancements
   ============================================================ */

/* ============================================================
   HEADER STYLE 3 - Clean Modern
   Top bar biru tipis → Logo + Search → Nav bar
   ============================================================ */

#header-style-3 {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* ---- Top Bar (biru tipis) ---- */
.h3-topbar {
    background: #0c70de;
    padding: 0;
    height: 32px;
    display: flex;
    align-items: center;
}

.h3-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 32px;
}

.h3-topbar-left ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0;
}

.h3-topbar-left ul li a {
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    padding: 0 12px;
    line-height: 32px;
    display: block;
    text-decoration: none;
    transition: background 0.2s;
}

.h3-topbar-left ul li a:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.h3-topbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.h3-surprise {
    color: rgba(255,255,255,0.92);
    font-size: 12px;
    font-weight: 500;
    padding: 0 12px;
    line-height: 32px;
    display: block;
    text-decoration: none;
    transition: background 0.2s;
}

.h3-surprise:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* Dark mode toggle di top bar */
.h3-darkmode-wrap {
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.h3-dm-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
    cursor: pointer;
}

.h3-dm-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.h3-dm-slider {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 22px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.h3-dm-slider i {
    font-size: 10px;
    color: rgba(255,255,255,0.8);
    transition: all 0.3s;
}

.h3-dm-slider::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.h3-dm-switch input:checked + .h3-dm-slider::before {
    transform: translateX(22px);
}

/* ---- Main Header (putih/abu gelap di darkmode) ---- */
.h3-main {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: 10px 0;
}

.darkmode .h3-main {
    background: #1a1a2e;
    border-bottom-color: rgba(255,255,255,0.08);
}

.h3-main-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Logo */
.h3-logo {
    flex-shrink: 0;
    min-width: 140px;
}

.h3-logo .logos {
    margin: 0;
    padding: 0;
}

.h3-logo .logos a {
    display: block;
}

.h3-logo .logos img {
    max-height: 42px;
    width: auto;
}

.h3-site-name {
    font-size: 20px;
    font-weight: 700;
    color: #0c70de;
    text-decoration: none;
    letter-spacing: -0.3px;
}

/* Search */
.h3-search {
    flex: 1;
    max-width: 520px;
    position: relative;
}

.h3-search-wrap {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.25s;
}

.darkmode .h3-search-wrap {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.12);
}

.h3-search-wrap:focus-within {
    border-color: #0c70de;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(12, 112, 222, 0.12);
}

.darkmode .h3-search-wrap:focus-within {
    background: rgba(255,255,255,0.1);
}

.h3-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #333;
    font-size: 14px;
    padding: 9px 14px;
    font-family: inherit;
}

.darkmode .h3-search-input {
    color: #eee;
}

.h3-search-input::placeholder {
    color: #aaa;
}

.darkmode .h3-search-input::placeholder {
    color: rgba(255,255,255,0.35);
}

.h3-search-btn {
    background: #0c70de;
    border: none;
    color: #fff;
    padding: 9px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.h3-search-btn:hover {
    background: #0a5fc0;
}

/* Live search dropdown */
.header3-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    z-index: 9999;
    display: none;
    overflow: hidden;
    max-height: 380px;
    overflow-y: auto;
}

.darkmode .header3-search-results {
    background: #1a1a2e;
    border-color: rgba(12, 112, 222, 0.25);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.header3-search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
    transition: background 0.15s;
}

.darkmode .search-result-item {
    border-bottom-color: rgba(255,255,255,0.05);
    color: #eee;
}

.search-result-item:hover {
    background: #f5f9ff;
}

.darkmode .search-result-item:hover {
    background: rgba(12, 112, 222, 0.12);
}

.search-result-item img {
    width: 38px;
    height: 54px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

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

.search-result-title {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #222;
}

.darkmode .search-result-title { color: #fff; }

.search-result-meta {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.search-result-score {
    font-size: 11px;
    color: #f59e0b;
    font-weight: 600;
    flex-shrink: 0;
}

/* Actions (watchlist + mobile toggle) */
.h3-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.h3-watchlist-btn {
    position: relative;
    color: #555;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.2s;
    padding: 5px;
}

.darkmode .h3-watchlist-btn { color: rgba(255,255,255,0.7); }

.h3-watchlist-btn:hover { color: #0c70de; }

.watchlist-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.watchlist-count:empty,
.watchlist-count[data-count="0"] { display: none; }

/* Mobile toggle */
.h3-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.h3-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #444;
    border-radius: 2px;
    transition: all 0.3s;
}

.darkmode .h3-mobile-toggle span { background: rgba(255,255,255,0.8); }

.h3-mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.h3-mobile-toggle.active span:nth-child(2) { opacity: 0; }
.h3-mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Navigation Bar ---- */
.h3-nav {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
}

.darkmode .h3-nav {
    background: #12122a;
    border-bottom-color: rgba(255,255,255,0.07);
}

.h3-nav-inner {
    display: flex;
    align-items: center;
}

.h3-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.h3-nav ul li { position: relative; }

.h3-nav ul li a {
    display: block;
    color: #444;
    font-size: 13px;
    font-weight: 500;
    padding: 11px 14px;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}

.darkmode .h3-nav ul li a { color: rgba(255,255,255,0.75); }

.h3-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 2px;
    background: #0c70de;
    transition: all 0.25s;
    border-radius: 2px 2px 0 0;
}

.h3-nav ul li a:hover,
.h3-nav ul li.current-menu-item > a { color: #0c70de; }

.darkmode .h3-nav ul li a:hover,
.darkmode .h3-nav ul li.current-menu-item > a { color: #fff; }

.h3-nav ul li a:hover::after,
.h3-nav ul li.current-menu-item > a::after { left: 10px; right: 10px; }

/* Dropdown */
.h3-nav ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    display: none;
    z-index: 9999;
    flex-direction: column;
}

.darkmode .h3-nav ul li ul {
    background: #1a1a2e;
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.h3-nav ul li:hover > ul { display: flex; }

.h3-nav ul li ul li a {
    padding: 9px 16px;
    font-size: 13px;
    border-bottom: 1px solid #f5f5f5;
    color: #444;
}

.darkmode .h3-nav ul li ul li a {
    border-bottom-color: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.75);
}

.h3-nav ul li ul li a::after { display: none; }

.h3-nav ul li ul li a:hover {
    background: #f0f7ff;
    color: #0c70de;
    padding-left: 22px;
}

.darkmode .h3-nav ul li ul li a:hover {
    background: rgba(12, 112, 222, 0.12);
    color: #fff;
}

/* ---- Watchlist Panel ---- */
.header3-watchlist-panel {
    position: fixed;
    top: 0;
    right: -380px;
    width: 360px;
    height: 100vh;
    background: #fff;
    z-index: 99999;
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.darkmode .header3-watchlist-panel {
    background: #1a1a2e;
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
}

.header3-watchlist-panel.open { right: 0; }

.watchlist-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    background: #0c70de;
    color: #fff;
}

.watchlist-panel-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.watchlist-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.watchlist-close:hover { background: rgba(255,255,255,0.35); }

.watchlist-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.watchlist-empty {
    text-align: center;
    padding: 40px 20px;
    color: #aaa;
}

.watchlist-empty i { font-size: 36px; margin-bottom: 12px; display: block; }
.watchlist-empty p { font-size: 14px; margin: 0 0 6px; }
.watchlist-empty small { font-size: 12px; }

.watchlist-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #f9f9f9;
    transition: background 0.2s;
}

.darkmode .watchlist-item { background: rgba(255,255,255,0.05); }
.watchlist-item:hover { background: #f0f7ff; }
.darkmode .watchlist-item:hover { background: rgba(12, 112, 222, 0.1); }

.watchlist-item img {
    width: 45px;
    height: 64px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

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

.watchlist-item-title {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    text-decoration: none;
}

.darkmode .watchlist-item-title { color: #eee; }
.watchlist-item-title:hover { color: #0c70de; }

.watchlist-item-remove {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 12px;
    padding: 2px;
    transition: color 0.2s;
    flex-shrink: 0;
    align-self: flex-start;
}

.watchlist-item-remove:hover { color: #ef4444; }

.watchlist-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
    display: none;
}

.watchlist-overlay.open { display: block; }

/* ============================================================
   HOME STYLE 10 - Modern Card Layout
   ============================================================ */

.style-ten { position: relative; }

.style-ten .bsx { position: relative; }

.style10-limit {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #eee;
}

.style10-limit img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.style-ten:hover .style10-limit img { transform: scale(1.05); }

/* TMDB Backdrop Overlay */
.style10-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    filter: blur(2px);
}

.style-ten:hover .style10-backdrop { opacity: 0.3; }

/* Score Badge */
.style10-score {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.7);
    color: #f59e0b;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 3px;
    backdrop-filter: blur(4px);
}

/* Hover Info Overlay */
.style10-hover-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, transparent 100%);
    padding: 20px 10px 10px;
    z-index: 7;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.style-ten:hover .style10-hover-info { transform: translateY(0); }

.style10-genres {
    font-size: 10px;
    color: rgba(255,255,255,0.65);
    text-align: center;
}

/* Title Area — nama anime tidak tenggelam */
.style10-tt {
    padding: 7px 5px 5px;
    position: relative;
    min-height: 40px;
}

/* Nama series utama — max 2 baris */
.style10-series-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    word-break: break-word;
    max-height: 2.8em;
}

.darkmode .style10-series-title { color: #e0e0e0; }

/* Judul episode (opsional) */
.style10-tt h2 {
    font-size: 10px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 3px 0 0;
    font-weight: 400;
    line-height: 1.3;
}

/* Fallback .tt dari tema asli */
.style10-tt .tt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    word-break: break-word;
    white-space: normal;
}

.darkmode .style10-tt .tt { color: #e0e0e0; }

.style10-status-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

.style10-status-tag.ongoing  { background: rgba(16,185,129,0.12); color: #10b981; }
.style10-status-tag.completed { background: rgba(12,112,222,0.12); color: #0c70de; }
.style10-status-tag.upcoming  { background: rgba(245,158,11,0.12); color: #f59e0b; }

/* Watchlist Quick Add Button */
.style10-watchlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    color: rgba(255,255,255,0.7);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    z-index: 10;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    opacity: 0;
}

.style-ten:hover .style10-watchlist-btn { opacity: 1; }

.style10-watchlist-btn:hover,
.style10-watchlist-btn.active {
    background: #0c70de;
    color: #fff;
    transform: scale(1.1);
}

.style10-watchlist-btn.active {
    background: #0c70de;
    color: #fff;
    opacity: 1;
}

/* ============================================================
   TMDB FEATURES
   ============================================================ */

.tmdb-info-box {
    background: linear-gradient(135deg, #0d1b3e, #1a1a2e);
    border: 1px solid rgba(12, 112, 222, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
}

.tmdb-info-box .tmdb-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.tmdb-logo {
    background: #01b4e4;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.tmdb-info-box .tmdb-title { color: rgba(255,255,255,0.6); font-size: 12px; }

.tmdb-cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.tmdb-cast-item { text-align: center; }

.tmdb-cast-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(12, 112, 222, 0.3);
    margin-bottom: 5px;
}

.tmdb-cast-item .cast-name { font-size: 10px; color: rgba(255,255,255,0.7); line-height: 1.3; }

.tmdb-recommendations { margin-top: 20px; }
.tmdb-recommendations .releases { margin-bottom: 15px; }

.tmdb-rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.tmdb-rec-item {
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a2e;
    transition: transform 0.2s;
}

.tmdb-rec-item:hover { transform: translateY(-3px); }
.tmdb-rec-item img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }

.tmdb-rec-item .rec-title {
    padding: 6px 8px;
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tmdb-trailer-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    margin: 8px 0;
    box-shadow: 0 4px 15px rgba(239,68,68,0.3);
}

.tmdb-trailer-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(239,68,68,0.4); color: #fff; }
.tmdb-trailer-btn i { font-size: 16px; }

.tmdb-fetch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0c70de, #7c3aed);
    color: #fff;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.tmdb-fetch-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(12,112,222,0.4); color: #fff; }
.tmdb-fetch-btn.loading { opacity: 0.7; cursor: not-allowed; }

.tmdb-fetch-status {
    margin-top: 8px;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    display: none;
}

.tmdb-fetch-status.success { background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.3); display: block; }
.tmdb-fetch-status.error   { background: rgba(239,68,68,0.15);  color: #ef4444;  border: 1px solid rgba(239,68,68,0.3);  display: block; }

/* ============================================================
   ADVANCED SEARCH ENHANCEMENTS
   ============================================================ */

.advancedsearch-enhanced {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.darkmode .advancedsearch-enhanced { background: #1a1a2e; box-shadow: 0 2px 15px rgba(0,0,0,0.3); }

.search-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding-bottom: 12px;
}

.darkmode .search-filter-tabs { border-bottom-color: rgba(255,255,255,0.08); }

.filter-tab {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.1);
    background: none;
    color: #666;
    transition: all 0.2s;
}

.darkmode .filter-tab { border-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); }
.filter-tab.active, .filter-tab:hover { background: #0c70de; color: #fff; border-color: #0c70de; }

.quick-genre-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }

.genre-filter-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    background: rgba(12,112,222,0.08);
    color: #0c70de;
    border: 1px solid rgba(12,112,222,0.2);
    text-decoration: none;
    transition: all 0.2s;
}

.genre-filter-tag:hover, .genre-filter-tag.active { background: #0c70de; color: #fff; border-color: #0c70de; }

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

@media (max-width: 768px) {
    .h3-mobile-toggle { display: flex; }

    .h3-search { max-width: none; order: 3; width: 100%; }
    .h3-main-inner { flex-wrap: wrap; }
    .h3-logo { flex: 1; }
    .h3-actions { order: 2; }

    .h3-nav { display: none; }
    .h3-nav.open { display: block; }
    .h3-nav ul { flex-direction: column; }

    .h3-nav ul li ul {
        position: static;
        box-shadow: none;
        border: none;
        background: #f5f5f5;
        border-radius: 0;
    }

    .darkmode .h3-nav ul li ul { background: rgba(255,255,255,0.04); }

    .h3-nav ul li:hover > ul { display: none; }
    .h3-nav ul li.open > ul { display: flex; }

    .header3-watchlist-panel { width: 100%; right: -100%; }
    .style10-watchlist-btn { opacity: 1; }
}

@media (max-width: 480px) {
    .h3-topbar { display: none; }
}

/* ============================================================
   NOTIFICATION TOAST
   ============================================================ */

.as-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1a1a2e;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    z-index: 999999;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    border-left: 3px solid #0c70de;
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 320px;
}

.as-toast.show { transform: translateY(0); opacity: 1; }
.as-toast.success { border-left-color: #10b981; }
.as-toast.error   { border-left-color: #ef4444; }
.as-toast i { font-size: 16px; flex-shrink: 0; }
.as-toast.success i { color: #10b981; }
.as-toast.error   i { color: #ef4444; }
