/* ============================================================================
   W Media Trading - index page styles
   Purpose: Public news listing (cards + filters + refresh + notification)
============================================================================ */

/* =======================
   Section: Global Reset
======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* =======================
   Section: Page Background
======================= */
body {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #f5f5f5;
    min-height: 100vh;
    padding-bottom: 40px;
}

/* =======================
   Section: Layout Container
======================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =======================
   Section: Donation banner
======================= */
.donation-container {
    background: linear-gradient(90deg, #ff6b6b, #ff8e53);
    padding: 12px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.donate-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #ff6b6b;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #ffffff;
}

.donate-btn:active {
    transform: translateY(0);
}

/* =======================
   Section: Header
======================= */
header {
    text-align: center;
    padding: 40px 0;
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header .container {
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.8rem;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.last-updated {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* =======================
   Section: Auth navigation (login/register/logout links)
======================= */
.auth-nav {
    position: absolute;
    top: 8px;
    right: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    align-items: center;
}

.auth-nav a, .auth-nav button {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.auth-nav a:hover, .auth-nav button:hover { color: #00c6ff; }
.auth-nav .admin-link { color: #11c18f; font-weight: 600; }

.auth-user-menu {
    position: relative;
}

.auth-user-menu__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1 !important;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 32, 0.6);
}

.auth-user-menu__toggle:hover {
    color: #00c6ff !important;
    border-color: rgba(0, 198, 255, 0.45);
}

.auth-user-menu__toggle i.fa-chevron-down {
    font-size: 0.7rem;
    opacity: 0.85;
}

.auth-user-menu__dropdown {
    right: 0;
    left: auto;
    min-width: 190px;
}

.auth-user-menu__dropdown .filter-dropdown-item {
    width: 100%;
    font-weight: 500;
}

.auth-user-menu__dropdown button.filter-dropdown-item {
    font-family: inherit;
}

.auth-login-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-user-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(0, 198, 255, 0.55);
    background: rgba(0, 198, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ccefff;
}

/* =======================
   Section: Filters (category pills)
======================= */
.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #f5f5f5;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: inherit;
    font-family: inherit;
}

a.filter-btn:hover {
    color: #f5f5f5;
}

.filter-btn:hover, .filter-btn.active {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
}

/* =======================
   Section: Dropdown filters (Crypto, Commodities)
======================= */
.filter-dropdown {
    position: relative;
}

.crypto-toggle,
.commodities-toggle,
.stocks-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 140px;
    background: rgba(15, 23, 32, 0.98);
    border: 1px solid rgba(0, 198, 255, 0.25);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    z-index: 20;
}

.filter-dropdown.open .filter-dropdown-menu {
    display: block;
}

.filter-dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: #e6eef6;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.filter-dropdown-item:hover,
.filter-dropdown-item.active {
    background: rgba(0, 198, 255, 0.15);
    color: #00c6ff;
}

/* =======================
   Section: Crypto Whales panel
======================= */
.whales-panel {
    margin-top: 10px;
}

.whales-intro {
    text-align: center;
    margin-bottom: 24px;
}

.whales-intro h2 {
    color: #00c6ff;
    margin-bottom: 8px;
}

.whales-intro p {
    color: #94a3b8;
    max-width: 760px;
    margin: 0 auto;
}

.whale-coin-section {
    background: rgba(25, 35, 45, 0.75);
    border: 1px solid rgba(0, 198, 255, 0.18);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 22px;
}

.whale-coin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.whale-coin-header h3 {
    color: #e6eef6;
    margin: 0 0 6px;
    font-size: 1.35rem;
}

.whale-source,
.whale-sync {
    color: #94a3b8;
    font-size: 0.88rem;
    margin: 2px 0;
}

.whale-source a {
    color: #00c6ff;
}

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

.whale-wallet-header {
    display: grid;
    grid-template-columns: 48px minmax(100px, 0.8fr) 72px minmax(160px, 1.3fr) minmax(110px, 0.75fr) minmax(110px, 0.75fr);
    gap: 12px;
    padding: 0 14px 4px;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.whale-wallet-row {
    display: grid;
    grid-template-columns: 48px minmax(100px, 0.8fr) 72px minmax(160px, 1.3fr) minmax(110px, 0.75fr) minmax(110px, 0.75fr);
    gap: 12px;
    align-items: center;
    background: rgba(15, 23, 32, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 12px;
    padding: 12px 14px;
}

.whale-name {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.3;
}

.whale-rank {
    color: #00c6ff;
    font-weight: 700;
}

.whale-address {
    color: #cbd5e1;
    font-size: 0.82rem;
    word-break: break-all;
}

.whale-balance {
    color: #f8fafc;
    font-weight: 600;
}

.whale-usdt {
    color: #22c55e;
    font-weight: 600;
}

.whale-more-btn {
    width: 100%;
    margin-top: 4px;
    padding: 12px 16px;
    border: 1px dashed rgba(0, 198, 255, 0.35);
    border-radius: 12px;
    background: rgba(0, 198, 255, 0.08);
    color: #00c6ff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.whale-more-btn:hover {
    background: rgba(0, 198, 255, 0.15);
    border-color: rgba(0, 198, 255, 0.55);
}

.whale-less-btn {
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(148, 163, 184, 0.08);
}

.whale-less-btn:hover {
    background: rgba(148, 163, 184, 0.15);
    border-color: rgba(148, 163, 184, 0.5);
}

.whale-empty,
.whale-loading,
.whale-error {
    text-align: center;
    color: #94a3b8;
    padding: 18px 0;
}

.whale-error {
    color: #ff8e8e;
}

.whale-details-btn {
    padding: 6px 10px;
    border: 1px solid rgba(0, 198, 255, 0.45);
    border-radius: 8px;
    background: rgba(0, 198, 255, 0.12);
    color: #00c6ff;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.whale-details-btn:hover {
    background: rgba(0, 198, 255, 0.22);
    border-color: rgba(0, 198, 255, 0.7);
}

body.whale-modal-open {
    overflow: hidden;
}

.whale-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(2, 6, 12, 0.78);
    backdrop-filter: blur(4px);
}

.whale-modal-overlay[hidden] {
    display: none;
}

.whale-modal {
    width: min(920px, 100%);
    max-height: min(88vh, 900px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, #0f1720 0%, #111827 100%);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.whale-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.whale-modal-header h3 {
    margin: 0;
    color: #f8fafc;
    font-size: 1.15rem;
}

.bp-modal-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
}

.bp-modal-header h3 {
    text-align: center;
}

.bp-modal-back {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.1);
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 10px;
    cursor: pointer;
    white-space: nowrap;
}

.bp-modal-back:hover {
    background: rgba(148, 163, 184, 0.2);
    color: #f8fafc;
}

.bp-modal-back[hidden] {
    display: none;
}

.whale-modal-close {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.whale-modal-close:hover {
    color: #f8fafc;
}

.whale-modal-body {
    padding: 18px 20px 20px;
    overflow-y: auto;
}

.whale-modal-loading,
.whale-modal-empty,
.whale-modal-error {
    text-align: center;
    color: #94a3b8;
    padding: 24px 0;
}

.whale-modal-error {
    color: #ff8e8e;
}

.whale-modal-summary {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
}

.whale-modal-label {
    display: block;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.whale-modal-address {
    display: block;
    color: #cbd5e1;
    font-size: 0.82rem;
    word-break: break-all;
}

.whale-modal-balances {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.whale-modal-balances strong {
    color: #f8fafc;
    font-size: 1.05rem;
}

.whale-modal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.whale-stat-card {
    background: rgba(15, 23, 32, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 10px;
    padding: 10px 12px;
}

.whale-stat-label {
    display: block;
    color: #64748b;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.whale-stat-value {
    color: #e2e8f0;
    font-weight: 700;
    font-size: 0.95rem;
}

.whale-modal-section-title {
    margin: 0 0 10px;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.whale-tx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.whale-tx-table th,
.whale-tx-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.whale-tx-table th {
    color: #64748b;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.whale-tx-table td {
    color: #cbd5e1;
}

.whale-tx-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.whale-tx-badge.tx-in {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.whale-tx-badge.tx-out {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
}

.whale-tx-badge.tx-failed {
    background: rgba(248, 113, 113, 0.2);
    color: #fca5a5;
}

.whale-tx-badge.tx-activity {
    background: rgba(0, 198, 255, 0.15);
    color: #00c6ff;
}

.whale-tx-hash {
    color: #94a3b8;
    font-size: 0.78rem;
}

.whale-modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.whale-modal-fetched {
    color: #64748b;
    font-size: 0.78rem;
}

.whale-explorer-link {
    color: #00c6ff;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
}

.whale-explorer-link:hover {
    text-decoration: underline;
}

@media (max-width: 860px) {
    .whale-wallet-header,
    .whale-wallet-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .whale-wallet-header {
        display: none;
    }

    .whale-details-cell {
        margin-bottom: 4px;
    }

    .whale-tx-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* =======================
   Section: Stocks panel (embedded on homepage)
======================= */
.stocks-panel {
    margin-top: 10px;
}

.stocks-intro {
    text-align: center;
    margin-bottom: 24px;
}

.stocks-intro h2 {
    color: #22c55e;
    margin-bottom: 8px;
}

.stocks-intro p {
    color: #94a3b8;
    max-width: 760px;
    margin: 0 auto;
}

/* =======================
   Section: Big Players panel
======================= */
.big-players-panel {
    margin-top: 10px;
}

.big-players-intro {
    text-align: center;
    margin-bottom: 24px;
}

.big-players-intro h2 {
    color: #f97316;
    margin-bottom: 8px;
}

.big-players-intro p {
    color: #94a3b8;
    max-width: 760px;
    margin: 0 auto;
}

.bp-region-section {
    background: rgba(25, 35, 45, 0.75);
    border: 1px solid rgba(249, 115, 22, 0.22);
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 24px;
}

.bp-region-header h3 {
    color: #f8fafc;
    margin: 0 0 18px;
    font-size: 1.45rem;
}

.bp-region-header h3 i {
    color: #f97316;
    margin-right: 8px;
}

.bp-subsection {
    margin-bottom: 22px;
}

.bp-subsection:last-child {
    margin-bottom: 0;
}

.bp-subsection-title {
    color: #00c6ff;
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bp-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.bp-card {
    background: rgba(15, 23, 32, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.bp-card:hover {
    border-color: rgba(249, 115, 22, 0.45);
    transform: translateY(-2px);
}

.bp-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.bp-rank {
    color: #f97316;
    font-weight: 800;
    font-size: 0.9rem;
}

.bp-type-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.12);
    padding: 3px 8px;
    border-radius: 999px;
}

.bp-name-title {
    margin: 0;
    color: #f8fafc;
    font-size: 1.05rem;
    line-height: 1.3;
}

.bp-assets {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bp-assets-value {
    color: #22c55e;
    font-size: 1.35rem;
    font-weight: 800;
}

.bp-assets-metric {
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bp-hq {
    margin: 0;
    color: #94a3b8;
    font-size: 0.82rem;
}

.bp-hq i {
    color: #f97316;
    margin-right: 4px;
}

.bp-people {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.bp-people-title {
    display: block;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.bp-person {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 6px;
}

.bp-person:last-child {
    margin-bottom: 0;
}

.bp-role {
    color: #00c6ff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.bp-name {
    color: #e2e8f0;
    font-size: 0.88rem;
    font-weight: 600;
}

.bp-notes {
    margin: 0;
    color: #94a3b8;
    font-size: 0.78rem;
    font-style: italic;
}

.bp-details-btn {
    margin-top: auto;
    padding: 8px 12px;
    border: 1px solid rgba(249, 115, 22, 0.45);
    border-radius: 8px;
    background: rgba(249, 115, 22, 0.12);
    color: #f97316;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}

.bp-details-btn:hover {
    background: rgba(249, 115, 22, 0.22);
}

.bp-person-link {
    border: none;
    background: none;
    padding: 0;
    color: #00c6ff;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bp-person-link:hover {
    color: #7dd3fc;
}

.bp-modal .bp-modal-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.bp-modal-stat span {
    display: block;
    color: #64748b;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.bp-modal-stat strong {
    color: #f8fafc;
    font-size: 0.95rem;
}

.bp-modal-overview {
    color: #cbd5e1;
    line-height: 1.55;
    margin: 0 0 12px;
}

.bp-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.bp-modal-meta a {
    color: #00c6ff;
}

.bp-modal-section {
    margin: 14px 0 8px;
    color: #e2e8f0;
    font-size: 0.92rem;
}

.bp-modal-list,
.bp-modal-people {
    margin: 0 0 10px;
    padding-left: 18px;
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.5;
}

.bp-modal-people {
    list-style: none;
    padding-left: 0;
}

.bp-modal-people li {
    margin-bottom: 8px;
    padding: 8px 10px;
    background: rgba(15, 23, 32, 0.7);
    border-radius: 8px;
}

.bp-person-header {
    margin-bottom: 10px;
}

.bp-person-role {
    display: block;
    color: #f97316;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bp-person-company {
    color: #94a3b8;
    font-size: 0.85rem;
}

.bp-modal-source {
    margin-top: 12px;
    color: #64748b;
    font-size: 0.78rem;
}

.bp-holdings-meta {
    color: #94a3b8;
    font-size: 0.82rem;
    margin: 0 0 10px;
}

.bp-holdings-note {
    color: #94a3b8;
    font-size: 0.82rem;
    margin: 0 0 8px;
}

.bp-holdings-error {
    color: #fca5a5;
}

.bp-holdings-table-wrap {
    overflow-x: auto;
    margin: 8px 0 4px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.bp-holdings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.bp-holdings-table th,
.bp-holdings-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.bp-holdings-table th {
    color: #94a3b8;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(15, 23, 42, 0.35);
}

.bp-holdings-table td code {
    color: #7dd3fc;
    font-size: 0.78rem;
}

.bp-holding-class {
    display: block;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: normal;
    margin-top: 2px;
}

.bp-holding-num {
    white-space: nowrap;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.bp-holdings-table th:last-child,
.bp-holdings-table th:nth-child(n+4),
.bp-holdings-table td:nth-child(n+4) {
    text-align: right;
}

.bp-loading,
.bp-error,
.bp-group-empty {
    text-align: center;
    color: #94a3b8;
    padding: 16px 0;
}

.bp-error {
    color: #ff8e8e;
}

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

/* =======================
   Section: News grid & cards
======================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 25px;
    margin-top: 30px;
}

.news-card {
    background: rgba(25, 35, 45, 0.6);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* =======================
   Section: Card Image area
======================= */
.news-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #0b1220;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* We use contain to fit entire uploaded image */
.news-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* =======================
   Section: AI tag badge
======================= */
.ai-generated-tag {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #00c6ff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* =======================
   Section: Card content
======================= */
.news-content {
    padding: 20px;
}

.news-source {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #00c6ff;
}

.news-date {
    color: #8899a6;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #ffffff;
}

/* =======================
   Section: Text preview (clamp to first 10 lines)
======================= */
.news-description {
    color: #ccd0d3;
    line-height: 1.55;
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 10;
    overflow: hidden;
    white-space: pre-wrap;
    word-break: break-word;
}

/* =======================
   Section: Links
======================= */
.news-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #00c6ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* =======================
   Section: Category pill (shows category in card header)
======================= */
.category-pill {
    display: inline-block;
    text-transform: capitalize;
    background: rgba(0, 198, 255, 0.15);
    color: #00c6ff;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

/* =======================
   Section: Refresh button
======================= */
.refresh-container {
    text-align: center;
    margin: 40px 0;
}

.refresh-btn {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 114, 255, 0.4);
}

/* =======================
   Section: Footer
======================= */
footer {
    text-align: center;
    margin-top: 60px;
    color: #8899a6;
    font-size: 0.9rem;
}

/* =======================
   Section: Toast notification
======================= */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #00c6ff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* =======================
   Section: Responsive adjustments (see also styles/mobile.css)
======================= */
@media (max-width: 768px) {
    .auth-nav {
        position: static;
        justify-content: center;
        margin-bottom: 14px;
    }

    h1 {
        font-size: 2.2rem;
    }
}

