/* ============================================================
   home.css — Dashboard styles for home.html
   NOTE: body layout (sidebar/main split) is handled by layout-wrapper.js
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
}

/* ── Content area ─────────────────────────────────────────── */

#content-area {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* ── Hero Carousel ─────────────────────────────────────────── */

.hero-carousel {
    position: relative;
    width: calc(100% - 48px);
    height: 480px;
    overflow: hidden;
    margin: 0 24px 32px;
    border-radius: 20px;
}

.hero-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(99,179,237,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 56px;
    gap: 48px;
}

.hero-slide-left {
    flex: 1;
    max-width: 560px;
}

.hero-slide-badge {
    display: inline-block;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ff9900;
    border: 1px solid rgba(255,153,0,0.3);
    border-radius: 20px;
    background: rgba(255,153,0,0.08);
    margin-bottom: 20px;
}

.hero-slide-badge.badge-teal {
    color: #38b2ac;
    border-color: rgba(56,178,172,0.3);
    background: rgba(56,178,172,0.08);
}

.hero-slide-badge.badge-purple {
    color: #9f7aea;
    border-color: rgba(159,122,234,0.3);
    background: rgba(159,122,234,0.08);
}

.hero-slide-title {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

.hero-slide-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 480px;
}

.hero-slide-actions {
    display: flex;
    gap: 12px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.hero-btn-primary {
    background: linear-gradient(135deg, #ff9900, #e88a00);
    color: #0a0f1a;
    border: none;
    box-shadow: 0 4px 16px rgba(255,153,0,0.3);
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255,153,0,0.4);
}

.hero-btn-ghost {
    background: transparent;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-btn-ghost:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}

/* Hero slide right visuals */
.hero-slide-right {
    flex: 0 0 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.hero-stat-float {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 18px 28px;
    display: flex;
    flex-direction: column;
    animation: heroFloatIn 0.8s ease forwards;
    opacity: 0;
    transform: translateX(30px);
}

.hero-stat-float.delay-1 { animation-delay: 0.2s; margin-left: 40px; }
.hero-stat-float.delay-2 { animation-delay: 0.4s; margin-left: 20px; }

@keyframes heroFloatIn {
    to { opacity: 1; transform: translateX(0); }
}

.hsf-val {
    font-size: 28px;
    font-weight: 800;
    color: #ff9900;
    line-height: 1;
}

.hsf-label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Globe icon */
.hero-globe-icon {
    width: 240px;
    height: 240px;
    animation: heroSpin 30s linear infinite;
}

@keyframes heroSpin {
    to { transform: rotate(360deg); }
}

.hero-ping {
    animation: heroPing 2s ease-in-out infinite;
}

.hero-ping.delay-1 { animation-delay: 0.6s; }
.hero-ping.delay-2 { animation-delay: 1.2s; }

@keyframes heroPing {
    0%, 100% { opacity: 0.4; r: 3; }
    50% { opacity: 1; r: 5; }
}

/* Bar chart visual */
.hero-visual-bars {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 200px;
    padding-bottom: 20px;
}

.hero-bar {
    width: 28px;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, #9f7aea 0%, rgba(159,122,234,0.3) 100%);
    animation: heroBarGrow 1s ease forwards;
    transform-origin: bottom;
    transform: scaleY(0);
}

.hero-bar:nth-child(odd) {
    background: linear-gradient(180deg, #ff9900 0%, rgba(255,153,0,0.3) 100%);
}

@keyframes heroBarGrow {
    to { transform: scaleY(1); }
}

.hero-bar:nth-child(2) { animation-delay: 0.1s; }
.hero-bar:nth-child(3) { animation-delay: 0.2s; }
.hero-bar:nth-child(4) { animation-delay: 0.3s; }
.hero-bar:nth-child(5) { animation-delay: 0.4s; }
.hero-bar:nth-child(6) { animation-delay: 0.5s; }
.hero-bar:nth-child(7) { animation-delay: 0.6s; }

/* Carousel arrows */
.hero-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.hero-carousel-arrow:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}

.hero-arrow-left { left: 20px; }
.hero-arrow-right { right: 20px; }

/* Carousel dots */
.hero-carousel-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: #ff9900;
    box-shadow: 0 0 12px rgba(255,153,0,0.5);
    transform: scale(1.2);
}

/* Progress bar — hidden */
.hero-progress-bar {
    display: none;
}

@media (max-width: 900px) {
    .hero-carousel { height: 520px; }
    .hero-slide-content { flex-direction: column; padding: 40px 24px; gap: 24px; text-align: center; }
    .hero-slide-left { max-width: 100%; }
    .hero-slide-title { font-size: 28px; }
    .hero-slide-right { flex: 0 0 auto; }
    .hero-visual { width: 200px; height: 200px; }
    .hero-slide-actions { justify-content: center; }
    .hero-carousel-arrow { display: none; }
}

/* ── Hero section (legacy) ────────────────────────────────── */

.hero-section {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    padding: 48px 40px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.hero-left {
    display: flex;
    flex-direction: column;
}

.hero-greeting {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 4px;
    font-weight: 500;
}

.hero-name {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin: 0 0 4px;
}

.hero-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.hero-right {
    text-align: right;
}

.hero-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.hero-clock {
    font-size: 28px;
    font-weight: 700;
    color: #ff9900;
    font-family: monospace;
}

/* ── Stats grid ───────────────────────────────────────────── */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0 32px;
    margin-bottom: 32px;
}

.stat-card {
    background: linear-gradient(135deg, #0a0f1a 0%, #131a2e 60%, #0d1321 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 20px 24px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, #e8a020, #00d4d4, #9f7aea, #e8a020);
    background-size: 300% 300%;
    animation: statBorderSpin 8s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes statBorderSpin {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
    background: linear-gradient(90deg, #e8a020, #00d4d4, #9f7aea);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: statTextFlow 6s linear infinite;
}

@keyframes statTextFlow {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    text-transform: uppercase;
}

/* ── Section blocks ───────────────────────────────────────── */

.section-block {
    padding: 0 32px;
    margin-bottom: 32px;
}

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

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #0F1111;
    margin: 0;
}

/* ── News carousel ────────────────────────────────────────── */

.carousel-controls {
    display: flex;
    gap: 8px;
}

.news-carousel {
    overflow: hidden;
    border-radius: 12px;
}

.carousel-track {
    position: relative;
    min-height: 140px;
}

.carousel-card {
    display: none;
    background: white;
    border: 1px solid #d5d9d9;
    border-radius: 12px;
    padding: 24px;
    animation: fadeIn 0.3s ease;
}

.carousel-card.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.carousel-title {
    font-size: 16px;
    font-weight: 700;
    color: #0F1111;
    margin: 0 0 8px;
}

.carousel-summary {
    font-size: 13px;
    color: #565959;
    line-height: 1.5;
    margin: 0;
}

.carousel-date {
    font-size: 12px;
    color: #888c8c;
}

.carousel-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 12px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d5d9d9;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.carousel-dot.active {
    background: #ff9900;
}

/* ── News badges ──────────────────────────────────────────── */

.news-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
}

.badge-orange  { background: #FFF3CD; color: #856404; }
.badge-blue    { background: #E3F2FD; color: #1565C0; }
.badge-green   { background: #E7F4EE; color: #067D62; }
.badge-yellow  { background: #FFFDE7; color: #F57F17; }
.badge-purple  { background: #F3E5F5; color: #6A1B9A; }

/* ── Quick actions ────────────────────────────────────────── */

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    border: 1px solid #d5d9d9;
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.action-card:hover {
    border-color: #ff9900;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.action-icon {
    width: 44px;
    height: 44px;
    background: #f7f8fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #232F3E;
}

.action-body {
    flex: 1;
}

.action-title {
    font-size: 14px;
    font-weight: 700;
    color: #0F1111;
    margin-bottom: 2px;
}

.action-desc {
    font-size: 12px;
    color: #565959;
}

.action-arrow {
    color: #888c8c;
    flex-shrink: 0;
}

/* ── Activity feed ────────────────────────────────────────── */

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-empty {
    font-size: 13px;
    color: #888c8c;
    padding: 16px;
    text-align: center;
    background: #f7f8fa;
    border-radius: 8px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: white;
    border: 1px solid #ededed;
    border-radius: 8px;
    font-size: 13px;
}

.activity-badge {
    background: #232F3E;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.activity-dsn {
    font-family: monospace;
    font-size: 12px;
    color: #007185;
    font-weight: 600;
    white-space: nowrap;
}

.activity-desc {
    flex: 1;
    color: #565959;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activity-time {
    font-size: 11px;
    color: #888c8c;
    white-space: nowrap;
}

/* ── Alias panel ──────────────────────────────────────────── */

.alias-panel {
    background: white;
    border: 1px solid #d5d9d9;
    border-radius: 12px;
    overflow: hidden;
}

.alias-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
}

.alias-panel-header:hover {
    background: #f7f8fa;
}

.alias-panel-subtitle {
    font-size: 12px;
    color: #888c8c;
    margin: 2px 0 0;
}

.alias-panel-body {
    padding: 0 24px 24px;
}

.alias-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.alias-input {
    flex: 1;
    min-width: 160px;
    padding: 8px 12px;
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    font-size: 13px;
}

.alias-table-wrap {
    overflow-x: auto;
}

.alias-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.alias-table th {
    background: #f7f8fa;
    padding: 8px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #888c8c;
    text-transform: uppercase;
    border-bottom: 1px solid #d5d9d9;
}

.alias-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #ededed;
}

.alias-empty {
    font-size: 13px;
    color: #888c8c;
    padding: 16px;
    text-align: center;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Utility / shared classes (used by other pages)
   ============================================================ */

.content-card {
    background: white;
    border: 1px solid #d5d9d9;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border-left: 4px solid #48bb78;
}

.alert-error {
    background: #fed7d7;
    color: #742a2a;
    border-left: 4px solid #f56565;
}

.alert-info {
    background: #bee3f8;
    color: #2c5282;
    border-left: 4px solid #4299e1;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 20px;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.form-input,
.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-cancel {
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-weight: 600;
}

/* Action buttons */
.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    margin-right: 6px;
}

.btn-view   { background: rgba(0, 115, 187, 0.15); color: #0073bb; }
.btn-edit   { background: rgba(102, 126, 234, 0.15); color: #667eea; }
.btn-delete { background: rgba(220, 53, 69, 0.15); color: #dc3545; }

/* Status badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-registered { background: #d4edda; color: #155724; }
.status-allocated  { background: #d1ecf1; color: #0c5460; }
.status-active     { background: #d4edda; color: #155724; }

/* ── Trusted Partnership Section ─────────────────────────── */

.partnership-section {
    padding: 0;
    margin-bottom: 40px;
    background: #ffffff;
}

.partnership-header {
    text-align: left;
    margin-bottom: 24px;
    padding: 0 32px;
}

.partnership-eyebrow {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.partnership-title {
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    margin: 0;
}

.partnership-marquee-wrap {
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #0a0f1a 0%, #0e1525 30%, #131a2e 60%, #0d1321 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.partnership-marquee-wrap::before,
.partnership-marquee-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.partnership-marquee-wrap::before {
    left: 0;
    background: linear-gradient(90deg, #0a0f1a 0%, transparent 100%);
}

.partnership-marquee-wrap::after {
    right: 0;
    background: linear-gradient(-90deg, #0a0f1a 0%, transparent 100%);
}

.partnership-marquee-row {
    overflow: hidden;
    width: 100%;
}

.partnership-marquee-track {
    display: flex;
    gap: 0;
    width: max-content;
}

.marquee-row-1 {
    animation: marqueeLeft 35s linear infinite;
}

.marquee-row-2 {
    animation: marqueeRight 40s linear infinite;
}

.partnership-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marqueeLeft {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.partner-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 44px;
    min-width: 170px;
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.partner-logo-item:hover {
    opacity: 1;
}

.partner-logo-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    transition: box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.partner-logo-item:hover .partner-logo-icon {
    box-shadow: 0 0 20px rgba(255,153,0,0.1);
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
}

.brand-logo-img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    filter: brightness(1);
    transition: filter 0.3s ease;
}

.partner-logo-item:hover .brand-logo-img {
    filter: brightness(1.2);
}

.partner-logo-name {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.partner-logo-item:hover .partner-logo-name {
    color: rgba(255,255,255,0.85);
}

/* ============================================================
   Light Mode Overrides — Unified UX
   ============================================================ */

/* Stats cards — light mode */
body:not(.dark-mode) .stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

body:not(.dark-mode) .stat-card::before {
    background: linear-gradient(135deg, #ff9900, #38b2ac, #9f7aea, #ff9900);
    background-size: 300% 300%;
}

body:not(.dark-mode) .stat-value {
    background: linear-gradient(90deg, #ff9900, #38b2ac, #9f7aea);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body:not(.dark-mode) .stat-label {
    color: #64748b;
}

/* Section titles — light mode */
body:not(.dark-mode) .section-title {
    color: #1e293b;
}

/* News carousel — light mode */
body:not(.dark-mode) .carousel-card {
    background: #ffffff;
    border-color: #e2e8f0;
}

body:not(.dark-mode) .carousel-title {
    color: #1e293b;
}

body:not(.dark-mode) .carousel-summary {
    color: #64748b;
}

/* Quick actions — light mode */
body:not(.dark-mode) .action-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

body:not(.dark-mode) .action-card:hover {
    border-color: #ff9900;
    box-shadow: 0 4px 12px rgba(255,153,0,0.1);
}

body:not(.dark-mode) .action-icon {
    background: #f8fafc;
    color: #334155;
}

body:not(.dark-mode) .action-title {
    color: #1e293b;
}

body:not(.dark-mode) .action-desc {
    color: #64748b;
}

/* Partnership / Brand logos — light mode */
body:not(.dark-mode) .partnership-eyebrow {
    color: #9ca3af;
}

body:not(.dark-mode) .partnership-title {
    color: #374151;
}

body:not(.dark-mode) .partnership-marquee-wrap {
    background: #ffffff;
    border-color: transparent;
    border-radius: 0;
    padding: 32px 0;
}

body:not(.dark-mode) .partnership-marquee-wrap::before {
    background: linear-gradient(90deg, #ffffff 0%, transparent 100%);
}

body:not(.dark-mode) .partnership-marquee-wrap::after {
    background: linear-gradient(-90deg, #ffffff 0%, transparent 100%);
}

body:not(.dark-mode) .partner-logo-icon {
    background: #f9fafb;
    border-color: #f3f4f6;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* Grayscale logos — more prominent */
body:not(.dark-mode) .brand-logo-img {
    filter: grayscale(100%) brightness(0.45);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

body:not(.dark-mode) .partner-logo-item:hover .brand-logo-img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

body:not(.dark-mode) .partner-logo-item:hover .partner-logo-icon {
    background: #f3f4f6;
    border-color: rgba(0,0,0,0.15);
    box-shadow: 0 0 20px rgba(255,153,0,0.08);
}

body:not(.dark-mode) .partner-logo-name {
    color: #6b7280;
}

body:not(.dark-mode) .partner-logo-item:hover .partner-logo-name {
    color: #374151;
}

/* Activity feed — light mode */
body:not(.dark-mode) .activity-item {
    background: #ffffff;
    border-color: #e2e8f0;
}

body:not(.dark-mode) .activity-badge {
    background: #1e293b;
}

body:not(.dark-mode) .activity-dsn {
    color: #0369a1;
}

body:not(.dark-mode) .activity-desc {
    color: #64748b;
}

body:not(.dark-mode) .activity-empty {
    background: #f8fafc;
    color: #94a3b8;
}

/* Global distribution section — light mode */
body:not(.dark-mode) .global-dist-title {
    color: #1e293b;
}

body:not(.dark-mode) .global-dist-desc {
    color: #64748b;
}

body:not(.dark-mode) .region-tab {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #64748b;
}

body:not(.dark-mode) .region-tab:hover {
    border-color: #0369a1;
    color: #0369a1;
}

body:not(.dark-mode) .region-tab.active {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #ffffff;
    border-color: transparent;
}

/* Dark mode overrides for home page */
body.dark-mode .section-title {
    color: #e2e8f0;
}

body.dark-mode .carousel-card {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-mode .carousel-title {
    color: #e2e8f0;
}

body.dark-mode .carousel-summary {
    color: #a0aec0;
}

body.dark-mode .carousel-date {
    color: #718096;
}

body.dark-mode .action-card {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-mode .action-card:hover {
    border-color: #ff9900;
    box-shadow: 0 4px 12px rgba(255,153,0,0.15);
}

body.dark-mode .action-icon {
    background: rgba(255,255,255,0.06);
    color: #e2e8f0;
}

body.dark-mode .action-title {
    color: #e2e8f0;
}

body.dark-mode .action-desc {
    color: #a0aec0;
}

body.dark-mode .action-arrow {
    color: #718096;
}

body.dark-mode .activity-item {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-mode .activity-desc {
    color: #a0aec0;
}

body.dark-mode .activity-empty {
    background: #2d3748;
    color: #718096;
}

body.dark-mode .partnership-eyebrow {
    color: #fbbf24;
}

body.dark-mode .partnership-title {
    color: #e2e8f0;
}

body.dark-mode .news-badge.badge-orange { background: rgba(251,191,36,0.15); color: #fbbf24; }
body.dark-mode .news-badge.badge-blue { background: rgba(96,165,250,0.15); color: #60a5fa; }
body.dark-mode .news-badge.badge-green { background: rgba(52,211,153,0.15); color: #34d399; }
body.dark-mode .news-badge.badge-yellow { background: rgba(251,191,36,0.15); color: #fbbf24; }
body.dark-mode .news-badge.badge-purple { background: rgba(167,139,250,0.15); color: #a78bfa; }

body.dark-mode .carousel-dot {
    background: #4a5568;
}

body.dark-mode .carousel-dot.active {
    background: #ff9900;
}
