/* File: public/css/dashboard.css */

.dashboard-wrap {
    width: 100%;
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 100%;
}

/* 1. Hero Welcome Section */
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #146c43 100%);
    padding: 20px 25px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.3);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.welcome-text h1 {
    font-size: 1.6rem;
    margin-bottom: 6px;
    color: white;
}

.welcome-text p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.hero-stats {
    display: flex;
    gap: 20px;
}

.hero-stats .stat-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
}



.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color-dark);
    line-height: 1.2;
}

.card-title .material-symbols-outlined {
    color: var(--primary-color);
    font-size: 20px;
    /* Removed background and padding to keep it clean and minimal */
}


.ai-power-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ai-power-desc {
    font-size: 0.9rem;
    color: var(--text-color-light);
    line-height: 1.4;
}

.ai-input-wrapper {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-color-input);
    box-shadow: none;
    border-radius: var(--card-radius);
    padding: 6px 6px 6px 15px;
    align-items: center;
    transition: all 0.3s ease;
    width: 100%;
    min-width: 0;
    height: var(--input-height);
}

.ai-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.15);
}

html.dark-mode .ai-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(117, 183, 152, 0.25);
}

.ai-input-wrapper input {
    background: none;
    border: none;
    color: var(--text-color-dark);
    font-size: 0.95rem;
    width: 100%;
    min-width: 0;
    outline: none;
    flex: 1;
}

.ai-send-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--btn-radius) !important;
    width: var(--btn-height);
    height: var(--btn-height);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Generic Icon Action Button */
.db-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.db-icon-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--btn-radius) !important;
    width: var(--btn-height);
    height: var(--btn-height);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    box-shadow: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
}

.db-icon-btn:hover {
    transform: scale(1.1);
    box-shadow: none !important;
    color: white;
}

.ai-send-btn:hover {
    transform: scale(1.05);
    box-shadow: none !important;
}

.ai-quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.ai-tag {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color-light) !important;
    color: var(--text-color-normal) !important;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: none !important;
    transition: all 0.2s;
}

html.dark-mode .ai-tag {
    box-shadow: none !important;
    background: var(--bg-card) !important;
    border-color: var(--border-color-light) !important;
}

.ai-tag:hover {
    box-shadow: none !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

/* 5. Chart Card */
.chart-card {
    height: 400px;
    padding: 0;
    overflow: hidden;
    position: relative;
}

/* 6. List Widgets (Experts, Announcements, etc) */
.db-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.db-list {
    display: flex;
    flex-direction: column;
    gap: 0 !important;
}

.db-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 5px !important;
    border-radius: 0 !important;
    background: transparent !important;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text-color-normal);
    border: none !important;
    border-bottom: 1px solid var(--border-color-light) !important;
}

.db-list-item:last-child {
    border-bottom: none !important;
}

.db-list-item:hover {
    background: var(--bg-hover) !important;
}

.db-list-item:hover .item-title {
    color: var(--primary-color) !important;
}

.item-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--border-color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.item-content {
    flex-grow: 1;
}

.item-title {
    display: block;
    font-weight: normal;
    font-size: 0.95rem;
    color: var(--text-color-dark);
    margin-bottom: 2px;
}

.item-meta {
    font-size: 0.8rem;
    color: var(--text-color-light);
}

/* 7. Winrate Leaderboard */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leader-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(25, 135, 84, 0.05);
}

.leader-rank {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 12px;
}

.leader-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
}

.leader-val {
    font-weight: 700;
    color: var(--primary-color);
}

/* ======================================================= */
/* 8. MINI HEATMAP WITH PRICE RANGE DYNAMIC LINE             */
/* ======================================================= */
.mini-heatmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 12px;
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.heatmap-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 15px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-align: center;
    position: relative;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color-light) !important;
    border-radius: var(--card-radius);
    box-shadow: none;
}

.heatmap-cell:hover {
    transform: translateY(-3px);
    z-index: 2;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05) !important;
    border-color: var(--border-color-input) !important;
}

html.dark-mode .heatmap-cell:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3) !important;
}

.heatmap-cell .cell-symbol {
    font-weight: 600;
    font-size: 1.35rem;
    color: var(--text-color-dark) !important;
    line-height: 1;
}

.heatmap-cell .cell-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
    margin-bottom: 4px;
    width: 100%;
}

.heatmap-cell .cell-value {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-color-normal) !important;
}

/* Badge trạng thái MUA */
.heatmap-cell.heat-success-high .cell-badge,
.heatmap-cell.heat-success-mid .cell-badge,
.heatmap-cell.heat-success-low .cell-badge {
    background: rgba(25, 135, 84, 0.1) !important;
    color: var(--color-success) !important;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Badge trạng thái CHỜ MUA */
.heatmap-cell.heat-warning .cell-badge {
    background: rgba(245, 158, 11, 0.1) !important;
    color: var(--color-warning) !important;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
}

/* --- PRICE RANGE DYNAMIC BAR --- */
.price-range-line-wrapper {
    width: 100%;
    margin-top: 6px;
    padding-top: 2px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Nhãn giá hiện tại ở phía trên đường kẻ */
.price-label-current-wrapper {
    position: relative;
    height: 12px;
    width: 100%;
    margin-bottom: 3px;
}

.price-label-current-wrapper .cur-label {
    position: absolute;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    color: var(--text-color-dark) !important;
}

/* Chấm hiện tại ngoài dải */
.price-label-current-wrapper .cur-label.dot-red {
    color: var(--color-danger) !important;
}

.price-label-current-wrapper .cur-label.dot-blue {
    color: var(--color-info) !important;
}

/* Đường kẻ dải giá */
.price-range-line {
    height: 4px;
    background: var(--border-color-light) !important;
    border-radius: 2px;
    position: relative;
    width: 100%;
}

/* Hai chấm giới hạn */
.dot-limit {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-color-light) !important;
    opacity: 0.5;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.dot-min {
    left: 0;
}

.dot-max {
    right: 0;
}

/* Chấm giá hiện tại */
.dot-current {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dot-highlight {
    background: var(--color-success) !important;
}

html.dark-mode .dot-highlight {
    background: var(--primary-color) !important;
}

.dot-red {
    background: var(--color-danger) !important;
}

.dot-blue {
    background: var(--color-info) !important;
}

/* Nhãn giá trị min/max nằm dưới đường kẻ */
.price-labels-limits {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    font-weight: 700;
    color: var(--text-color-light) !important;
    opacity: 0.7;
    margin-top: 3px;
    height: 10px;
    line-height: 1;
}


/* Responsive */
@media (max-width: 576px) {
    .mini-heatmap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pill-row-1,
.pill-row-2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stock-symbol {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.stock-status {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.status-buy {
    background: rgba(var(--success-rgb), 0.15);
    color: var(--color-success);
}

.status-near {
    background: rgba(var(--warning-rgb), 0.15);
    color: var(--color-warning);
}

.stock-target {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color-dark);
}

.stock-upside {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-success);
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.db-card,
.db-section-container,
.db-section-grid {
    animation: fadeInUp 0.4s ease-out backwards;
}

/* 9. Mini Table for Bot Transactions */
.db-table-responsive {
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    margin-top: 15px;
    background: var(--bg-card) !important;
    border-radius: var(--card-radius);
    padding: 10px 15px;
    box-shadow: none !important;
    border: 1px solid var(--border-color-light) !important;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 480px) {
    .db-table-responsive {
        padding: 8px 5px !important;
    }

    .db-mini-table th,
    .db-mini-table td {
        padding: 10px 4px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
        /* Chống xuống dòng mặc định */
    }

    /* Cột Thời gian có thể cho phép xuống dòng nếu quá chật */
    .db-mini-table td:nth-child(1),
    .db-mini-table th:nth-child(1) {
        white-space: normal !important;
        min-width: 60px;
        line-height: 1.2;
    }

    /* Đảm bảo cột Mã và Giá luôn đủ chỗ */
    .db-mini-table td:nth-child(2) {
        font-weight: 800;
        min-width: 50px;
    }
}



.db-mini-table th {
    background-color: var(--bg-header) !important;
    color: var(--text-color-dark);
}

html.dark-mode .db-mini-table th {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

.db-mini-table td {
    border-bottom: 1px solid var(--border-color-divider);
}

.badge-status {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-status.open {
    background: rgba(var(--success-rgb), 0.15);
    color: var(--color-success);
}

.badge-status.closed {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
}

    font-weight: 500;
    opacity: 0.8;
}

.text-success {
    color: var(--color-success) !important;
}

/* 9. Social Newsfeed Grid */
.db-section-grid {
    margin-top: 10px;
}

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

.social-item {
    background: var(--bg-card) !important;
    border-radius: var(--card-radius);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: var(--text-color-dark);
    box-shadow: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--border-color-light) !important;
}

html.dark-mode .social-item {
    border: 1px solid var(--border-color-light) !important;
}

.social-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

html.dark-mode .social-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3) !important;
    border-color: var(--primary-color) !important;
}

.social-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 6px;
}

.social-user {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 5px;
}

.social-stats {
    display: flex;
    gap: 8px;
    color: var(--text-color-light);
    font-size: 0.65rem;
    opacity: 0.8;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 2px;
}

.stat-item .material-symbols-outlined {
    font-size: 12px;
    line-height: 1;
}

.social-time {
    font-size: 0.65rem;
    color: var(--text-color-light);
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 600px) and (min-width: 481px) {
    .social-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

@media (max-width: 480px) {
    .social-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .social-item {
        padding: 8px !important;
        aspect-ratio: 1 / 1.1 !important;
        min-height: auto;
    }

    .social-text {
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        font-size: 0.75rem !important;
    }

    .social-user {
        font-size: 0.7rem !important;
    }
}

.social-item-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
    flex: 1;
}

.social-trade-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.social-badge {
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 2px;
    color: white;
    text-transform: uppercase;
}

.social-badge.open {
    background: rgba(var(--success-rgb), 0.15);
    color: var(--color-success);
}

.social-badge.closed {
    background: rgba(var(--danger-rgb), 0.15);
    color: var(--color-danger);
}

.social-stock {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-color-dark);
}

.social-text {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-color-dark);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.85;
}

/* 10. Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.tool-item {
    background: var(--bg-card) !important;
    border-radius: var(--card-radius);
    padding: 22px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-color-dark);
    box-shadow: none !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--border-color-light) !important;
    text-align: center;
}

html.dark-mode .tool-item {
    border: 1px solid var(--border-color-light) !important;
}

.tool-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

.tool-item:active {
    transform: translateY(-1px);
    box-shadow: none !important;
}

.tool-item .material-symbols-outlined {
    font-size: 32px;
    color: var(--primary-color);
}

.tool-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-color-dark);
}

@media (max-width: 600px) and (min-width: 481px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .tool-item {
        padding: 15px 8px !important;
        gap: 8px !important;
    }

    .tool-item .material-symbols-outlined {
        font-size: 28px !important;
    }

    .tool-label {
        font-size: 0.75rem !important;
    }
}

/* 11. GUEST MODE & HERO STYLES */
.db-hero-guest {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0.05) 100%);
    padding: 30px;
    border-radius: var(--card-radius);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    text-align: left;
    position: relative;
    overflow: hidden;
    box-shadow: none !important;
}

.hero-guest-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-guest-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-color-dark);
}

.hero-guest-desc {
    font-size: 1rem;
    color: var(--text-color-light);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-hero-register {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-hero-register:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
    color: white;
}

/* Blur Mechanism */
.guest-locked {
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.guest-locked>div:not(.lock-overlay) {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
    opacity: 0.6;
}

.lock-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(2px);
    text-align: center;
    padding: 20px;
    border-radius: var(--card-radius);
}

html.dark-mode .lock-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.lock-overlay .material-symbols-outlined {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
    opacity: 0.8;
}

.lock-overlay p {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color-dark);
    margin-bottom: 20px;
}

.btn-lock-login {
    background: var(--primary-color);
    color: white;
    padding: 10px 25px;
    border-radius: var(--btn-radius) !important;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-lock-login:hover {
    transform: translateY(-2px);
    box-shadow: none !important;
    color: white;
}

@media (max-width: 768px) {
    .hero-guest-title {
        font-size: 1.5rem;
    }

    .db-hero-guest {
        padding: 20px;
    }
}

html.dark-mode .ai-power-widget {
    border: 1px solid rgba(255, 184, 95, 0.15) !important;
}

html.dark-mode .ai-power-widget .ai-input-wrapper {
    border: 1px solid rgba(255, 184, 95, 0.2) !important;
}

/* 13. Announcement Card (M3 Filled Card using Primary Container) */
.announcement-card {
    background: var(--md-sys-color-primary-container) !important;
    border: 1px solid rgba(var(--primary-rgb), 0.15) !important;
    color: var(--md-sys-color-on-primary-container) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.announcement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

.announcement-card .card-title {
    color: var(--md-sys-color-on-primary-container) !important;
}

.announcement-card .card-title .material-symbols-outlined {
    color: var(--md-sys-color-on-primary-container) !important;
}



.announcement-card .item-title {
    color: var(--text-color-dark) !important;
    font-weight: 600;
}

.announcement-card .item-meta {
    color: var(--text-color-light) !important;
}

html.dark-mode .announcement-card {
    border: 1px solid rgba(25, 135, 84, 0.25) !important;
}

/* 14. Right Widget Cards (M3 Filled Cards using Surface Container High) */
.right-widget-card {
    background: var(--md-sys-color-surface-container-high) !important;
    border: 1px solid var(--border-color-light) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.right-widget-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

/* Các item bên trong right widget cards */
.right-widget-card .widget-user-item {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color-light) !important;
}

.right-widget-card .widget-user-item:hover,
.right-widget-card .db-list-item:hover {
    background: var(--bg-content-hover) !important;
}

/* Ở chế độ Dark mode, tăng độ sáng viền nhẹ cho Filled Card để hài hòa */
html.dark-mode .right-widget-card {
    border: 1px solid var(--md-sys-color-outline-variant) !important;
}

/* ======================================================= */
/* 15. ACCENT HERO CARD FOR AI INVESTMENT ASSISTANT         */
/* ======================================================= */
.db-card.ai-power-widget {
    background: linear-gradient(135deg, #093a22 0%, #115234 100%) !important;
    border: 1px solid rgba(25, 135, 84, 0.2) !important;
    box-shadow: none !important;
    padding: 25px !important;
}

/* CHẾ ĐỘ TỐI: NỀN VÀNG RỰC RỠ CHỮ ĐEN */
html.dark-mode .db-card.ai-power-widget {
    background: linear-gradient(135deg, #cca300 0%, #e6b800 100%) !important;
    border: 1px solid rgba(230, 184, 0, 0.3) !important;
    box-shadow: none !important;
}

/* Tiêu đề câu hỏi thật to */
.ai-power-prompt {
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 15px 0 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em;
}

html.dark-mode .ai-power-widget .ai-power-prompt {
    color: #121212 !important;
}

/* Đảm bảo ô nhập liệu nổi bật trên nền xanh/vàng */
.db-card.ai-power-widget .ai-input-wrapper {
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: none !important;
    height: 44px !important;
    padding: 0 4px 0 15px !important;
    border-radius: var(--card-radius) !important;
}

html.dark-mode .db-card.ai-power-widget .ai-input-wrapper {
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

.db-card.ai-power-widget .ai-input-wrapper input {
    color: #121212 !important;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
}

.db-card.ai-power-widget .ai-input-wrapper input::placeholder {
    color: #888888 !important;
}

/* Nút gửi */
.db-card.ai-power-widget .ai-send-btn {
    background: #115234 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.db-card.ai-power-widget .ai-send-btn:hover {
    background: #198754 !important;
}

/* Nút gửi ở chế độ tối */
html.dark-mode .db-card.ai-power-widget .ai-send-btn {
    background: #121212 !important;
    color: #ffffff !important;
}

html.dark-mode .db-card.ai-power-widget .ai-send-btn:hover {
    background: #333333 !important;
}

/* Các tag gợi ý kính mờ (Frosted glass) */
.db-card.ai-power-widget .ai-tag {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.db-card.ai-power-widget .ai-tag:hover {
    background: #ffffff !important;
    color: #0f5132 !important;
    border-color: #ffffff !important;
}

/* Các tag gợi ý kính mờ ở chế độ tối (frosted dark) */
html.dark-mode .db-card.ai-power-widget .ai-tag {
    background: rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    color: #121212 !important;
}

html.dark-mode .db-card.ai-power-widget .ai-tag:hover {
    background: #121212 !important;
    color: #e6b800 !important;
    border-color: #121212 !important;
}