/* ================================
   GLOBAL RESET & BASE STYLES
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    color: #333;
}

/* ================================
   NAVIGATION BAR
================================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2e7d32;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    margin-left: 30px;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #2e7d32;
}
.nav-link.active {
  font-weight: 600;
  border-bottom: 2px solid #4caf50; /* use your accent colour if different */
}
.btn-nav {
    background-color: #2e7d32;
    color: #ffffff !important;
    padding: 8px 20px;
    border-radius: 25px;
    transition: background-color 0.3s !important;
}

.btn-nav:hover {
    background-color: #1b5e20 !important;
}

/* ================================
   HERO SECTION
================================ */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 60px;
    background: linear-gradient(135deg, #e8f5e9, #f4f7f6);
}

.hero-content {
    max-width: 700px;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 20px;
}

.highlight {
    color: #2e7d32;
}

.hero-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary {
    background-color: #2e7d32;
    color: #ffffff;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #1b5e20;
}

.btn-secondary {
    background-color: transparent;
    color: #2e7d32;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid #2e7d32;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: #2e7d32;
    color: #ffffff;
}

/* ================================
   FEATURES SECTION
================================ */
.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 80px 60px;
    background-color: #ffffff;
    flex-wrap: wrap;
}

.feature-card {
    background-color: #f4f7f6;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    max-width: 280px;
    flex: 1;
    min-width: 220px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
}

/* ================================
   FOOTER
================================ */
.footer {
    text-align: center;
    padding: 30px;
    background-color: #1b5e20;
    color: #a5d6a7;
    font-size: 0.85rem;
}
/* ================================
   AUTH PAGES (REGISTER & LOGIN)
================================ */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 140px);
    padding: 60px 20px;
    background: linear-gradient(135deg, #e8f5e9, #f4f7f6);
}

.auth-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 50px 45px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-header h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 0.95rem;
    color: #777;
}

/* ================================
   FORM ELEMENTS
================================ */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 7px;
}

.form-group input {
    padding: 12px 16px;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #333;
    background-color: #fafafa;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.form-group input:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
    background-color: #ffffff;
}

.btn-form {
    width: 100%;
    padding: 14px;
    background-color: #2e7d32;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.btn-form:hover {
    background-color: #1b5e20;
}

/* ================================
   ERROR MESSAGE
================================ */
.error-msg {
    color: #c62828;
    font-size: 0.88rem;
    text-align: center;
    margin-bottom: 10px;
    min-height: 20px;
    font-weight: 500;
}

/* ================================
   AUTH PAGE SWITCH LINK
================================ */
.auth-switch {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: #777;
}

.auth-switch a {
    color: #2e7d32;
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}
/* ================================
   PORTFOLIO PAGE
================================ */
.portfolio-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 40px;
}

.portfolio-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.portfolio-header p {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* ================================
   PORTFOLIO CARDS
================================ */
.portfolio-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

.portfolio-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 25px;
}

/* ================================
   HOLDING FORM ROW
================================ */
.holding-form {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.holding-form .form-group {
    flex: 1;
    min-width: 180px;
    margin-bottom: 0;
}

.holding-form .btn-primary {
    padding: 12px 28px;
    white-space: nowrap;
    height: fit-content;
}

/* ================================
   HOLDINGS TABLE
================================ */
.holdings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.holdings-table thead {
    background-color: #e8f5e9;
}

.holdings-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
    color: #2e7d32;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.holdings-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}

.holdings-table tbody tr:hover {
    background-color: #f9fdf9;
}

.holdings-table tbody tr:last-child td {
    border-bottom: none;
}

/* ================================
   ESG SCORE BADGE IN TABLE
================================ */
.score-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
}

.score-high {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.score-medium {
    background-color: #fff8e1;
    color: #f57f17;
}

.score-low {
    background-color: #ffebee;
    color: #c62828;
}

/* ================================
   REMOVE BUTTON IN TABLE
================================ */
.btn-remove {
    background: none;
    border: none;
    color: #c62828;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.btn-remove:hover {
    background-color: #ffebee;
}

/* ================================
   PORTFOLIO ACTIONS
================================ */
.portfolio-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
}

/* ================================
   NAV USERNAME
================================ */
.nav-username {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  opacity: 0.9;
}
/* ================================
   RESULTS PAGE
================================ */
.results-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
}

.results-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.results-header p {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
}

/* ================================
   RESULTS CARDS
================================ */
.results-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

.results-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 8px;
}

.card-subtitle {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 30px;
}

/* ================================
   OVERALL SCORE CARD
================================ */
.overall-score-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.overall-score-left {
    flex: 1;
    min-width: 200px;
}

.overall-score-left h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.score-label {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.score-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    max-width: 420px;
}

.overall-score-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    background-color: #2e7d32;
    box-shadow: 0 8px 24px rgba(46, 125, 50, 0.3);
    transition: background-color 0.5s;
}

.score-circle small {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.85;
}

/* Score circle colour variants */
.score-circle.high {
    background-color: #2e7d32;
    box-shadow: 0 8px 24px rgba(46, 125, 50, 0.3);
}

.score-circle.medium {
    background-color: #f57f17;
    box-shadow: 0 8px 24px rgba(245, 127, 23, 0.3);
}

.score-circle.low {
    background-color: #c62828;
    box-shadow: 0 8px 24px rgba(198, 40, 40, 0.3);
}

/* ================================
   E, S, G BREAKDOWN GRID
================================ */
.breakdown-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.breakdown-item {
    flex: 1;
    min-width: 180px;
    text-align: center;
}

.breakdown-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.breakdown-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 14px;
}

.progress-bar-container {
    background-color: #e0e0e0;
    border-radius: 10px;
    height: 10px;
    width: 100%;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 10px;
    background-color: #2e7d32;
    width: 0%;
    transition: width 1s ease-in-out;
}

.breakdown-score {
    font-size: 1.2rem;
    font-weight: 800;
    color: #2e7d32;
}

/* ================================
   RESULTS ACTION BUTTONS
================================ */
.results-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}
/* ================================
   RECOMMENDATIONS PAGE
================================ */
.recommendations-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.recommendations-header {
    text-align: center;
    margin-bottom: 40px;
}

.recommendations-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.recommendations-header p {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* ================================
   RECOMMENDATION CARDS
================================ */
.rec-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

.rec-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 8px;
}

/* ================================
   CURRENT SCORE SUMMARY CARD
================================ */
.score-summary-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.score-summary-left {
    flex: 1;
    min-width: 200px;
}

.score-summary-left h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

/* ================================
   WEAKEST HOLDINGS LIST
================================ */
.weakest-holding-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: #fff8f8;
    border-left: 4px solid #c62828;
    border-radius: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.weakest-holding-item:last-child {
    margin-bottom: 0;
}

.weakest-holding-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.weakest-holding-info p {
    font-size: 0.85rem;
    color: #888;
}

.weakest-holding-score {
    text-align: right;
}

.weakest-holding-score span {
    font-size: 1.4rem;
    font-weight: 800;
    color: #c62828;
}

.weakest-holding-score p {
    font-size: 0.8rem;
    color: #aaa;
}

/* ================================
   ALTERNATIVES LIST
================================ */
.alternative-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: #f9fdf9;
    border-left: 4px solid #2e7d32;
    border-radius: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.alternative-item:last-child {
    margin-bottom: 0;
}

.alternative-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.alternative-info p {
    font-size: 0.85rem;
    color: #888;
}

.alternative-score {
    text-align: right;
}

.alternative-score span {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2e7d32;
}

.alternative-score p {
    font-size: 0.8rem;
    color: #aaa;
}

/* ================================
   GENERAL TIPS GRID
================================ */
.tips-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background-color: #f4f7f6;
    border-radius: 12px;
    transition: transform 0.2s;
}

.tip-item:hover {
    transform: translateX(4px);
}

.tip-icon {
    font-size: 1.8rem;
    min-width: 40px;
    text-align: center;
}

.tip-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.tip-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}
/* ================================
   AUTOCOMPLETE
================================ */
.autocomplete-wrapper {
    position: relative;
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1.5px solid #ddd;
    border-top: none;
    border-radius: 0 0 10px 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 999;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.autocomplete-list li {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s;
}

.autocomplete-list li:last-child {
    border-bottom: none;
}

.autocomplete-list li:hover,
.autocomplete-list li.active {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.autocomplete-list li span.match {
    font-weight: 700;
    color: #2e7d32;
}
/* ================================
   SECTOR BREAKDOWN
================================ */
.sector-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.sector-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sector-icon {
    font-size: 1.6rem;
    min-width: 36px;
    text-align: center;
}

.sector-info {
    flex: 1;
    min-width: 140px;
}

.sector-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.sector-info p {
    font-size: 0.82rem;
    color: #999;
}

.sector-bar-container {
    flex: 2;
    min-width: 160px;
}

.sector-progress-container {
    background-color: #e0e0e0;
    border-radius: 10px;
    height: 8px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 5px;
}

.sector-progress-bar {
    height: 100%;
    border-radius: 10px;
    width: 0%;
    transition: width 1s ease-in-out;
}

.sector-score-label {
    font-size: 0.82rem;
    color: #888;
}

.sector-score-value {
    min-width: 80px;
    text-align: right;
    font-size: 1.1rem;
    font-weight: 800;
}
/* ================================
   MOBILE RESPONSIVENESS
   Breakpoints:
   - Tablet: max-width 768px
   - Mobile: max-width 480px
================================ */

/* ================================
   TABLET (768px and below)
================================ */
@media (max-width: 768px) {

    /* NAVBAR */
    .navbar {
        padding: 16px 24px;
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-links a {
        margin-left: 16px;
        font-size: 0.85rem;
    }

    /* HERO */
    .hero {
        padding: 70px 30px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* FEATURES */
    .features {
        padding: 50px 30px;
        gap: 20px;
    }

    /* AUTH CARD */
    .auth-card {
        padding: 36px 30px;
    }

    /* PORTFOLIO */
    .portfolio-section {
        padding: 40px 16px;
    }

    .portfolio-card {
        padding: 28px 20px;
    }

    .holding-form {
        flex-direction: column;
        gap: 0;
    }

    .holding-form .btn-primary {
        width: 100%;
        margin-top: 10px;
    }

    /* RESULTS */
    .results-section {
        padding: 40px 16px;
    }

    .results-card {
        padding: 28px 20px;
    }

    .overall-score-card {
        flex-direction: column;
        text-align: center;
    }

    .overall-score-left {
        order: 2;
    }

    .overall-score-right {
        order: 1;
    }

    .score-description {
        max-width: 100%;
    }

    .breakdown-grid {
        gap: 20px;
    }

    /* RESULTS ACTIONS */
    .results-actions {
        flex-direction: column;
    }

    .results-actions a {
        width: 100%;
        text-align: center;
    }

    /* RECOMMENDATIONS */
    .recommendations-section {
        padding: 40px 16px;
    }

    .rec-card {
        padding: 28px 20px;
    }

    .score-summary-card {
        flex-direction: column;
        text-align: center;
    }

    .score-summary-left {
        order: 2;
    }

    /* SECTOR BREAKDOWN */
    .sector-item {
        gap: 12px;
    }

    .sector-bar-container {
        min-width: 120px;
    }

    /* WEAKEST & ALTERNATIVES */
    .weakest-holding-item,
    .alternative-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .weakest-holding-score,
    .alternative-score {
        text-align: left;
    }

    /* TIPS */
    .tip-item {
        gap: 14px;
    }
}

/* ================================
   MOBILE (480px and below)
================================ */
@media (max-width: 480px) {

    /* NAVBAR */
    .navbar {
        padding: 14px 16px;
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .nav-links a {
        margin-left: 10px;
        font-size: 0.8rem;
    }

    .btn-nav {
        padding: 6px 14px;
    }

    /* HERO */
    .hero {
        padding: 50px 16px;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    /* FEATURES */
    .features {
        padding: 40px 16px;
    }

    .feature-card {
        padding: 28px 20px;
    }

    /* AUTH */
    .auth-card {
        padding: 28px 20px;
    }

    .auth-header h2 {
        font-size: 1.5rem;
    }

    /* SCORE CIRCLE */
    .score-circle {
        width: 120px;
        height: 120px;
        font-size: 2.2rem;
    }

    /* TABLES — make them scroll horizontally on small screens */
    .holdings-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* BREAKDOWN GRID — stack vertically */
    .breakdown-grid {
        flex-direction: column;
    }

    .breakdown-item {
        min-width: 100%;
    }

    /* SECTOR ITEM */
    .sector-item {
        flex-wrap: wrap;
    }

    .sector-score-value {
        width: 100%;
        text-align: left;
        font-size: 1rem;
    }

    /* PORTFOLIO HEADER */
    .portfolio-header h2,
    .results-header h2,
    .recommendations-header h2 {
        font-size: 1.5rem;
    }

    /* FOOTER */
    .footer {
        padding: 20px 16px;
        font-size: 0.8rem;
    }
}

/* ================================
   DARK MODE TOGGLE BUTTON
================================ */
.dark-mode-btn {
    background: none;
    border: 1.5px solid #ddd;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
    transition: background-color 0.3s, border-color 0.3s;
    flex-shrink: 0;
}

.dark-mode-btn:hover {
    background-color: #f0f0f0;
    border-color: #bbb;
}

/* ================================
   DARK MODE — BASE
================================ */
body.dark {
    background-color: #121212;
    color: #e0e0e0;
}

/* NAVBAR */
body.dark .navbar {
    background-color: #1e1e1e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

body.dark .nav-logo {
    color: #81c784;
}

body.dark .nav-links a {
    color: #ccc;
}

body.dark .nav-links a:hover {
    color: #81c784;
}

body.dark .btn-nav {
    background-color: #2e7d32;
    color: #ffffff !important;
}

body.dark .dark-mode-btn {
    border-color: #444;
    color: #e0e0e0;
}

body.dark .dark-mode-btn:hover {
    background-color: #2a2a2a;
}

/* HERO */
body.dark .hero {
    background: linear-gradient(135deg, #1a2e1a, #121212);
}

body.dark .hero-content h1 {
    color: #f0f0f0;
}

body.dark .hero-content p {
    color: #aaa;
}

body.dark .btn-secondary {
    color: #81c784;
    border-color: #81c784;
}

body.dark .btn-secondary:hover {
    background-color: #2e7d32;
    color: #fff;
}

/* FEATURES */
body.dark .features {
    background-color: #1e1e1e;
}

body.dark .feature-card {
    background-color: #2a2a2a;
}

body.dark .feature-card h3 {
    color: #81c784;
}

body.dark .feature-card p {
    color: #aaa;
}

/* AUTH PAGES */
body.dark .auth-section {
    background: linear-gradient(135deg, #1a2e1a, #121212);
}

body.dark .auth-card {
    background-color: #1e1e1e;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

body.dark .auth-header h2 {
    color: #f0f0f0;
}

body.dark .auth-header p {
    color: #aaa;
}

body.dark .form-group label {
    color: #ccc;
}

body.dark .form-group input {
    background-color: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

body.dark .form-group input:focus {
    border-color: #81c784;
    box-shadow: 0 0 0 3px rgba(129,199,132,0.15);
    background-color: #333;
}

body.dark .auth-switch {
    color: #aaa;
}

body.dark .auth-switch a {
    color: #81c784;
}

/* PORTFOLIO PAGE */
body.dark .portfolio-card {
    background-color: #1e1e1e;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

body.dark .portfolio-card h3 {
    color: #81c784;
}

body.dark .portfolio-header h2,
body.dark .results-header h2,
body.dark .recommendations-header h2 {
    color: #f0f0f0;
}

body.dark .portfolio-header p,
body.dark .results-header p,
body.dark .recommendations-header p {
    color: #aaa;
}

/* TABLES */
body.dark .holdings-table thead {
    background-color: #1a2e1a;
}

body.dark .holdings-table th {
    color: #81c784;
}

body.dark .holdings-table td {
    color: #ccc;
    border-bottom-color: #2a2a2a;
}

body.dark .holdings-table tbody tr:hover {
    background-color: #1a2a1a;
}

/* RESULTS PAGE */
body.dark .results-card {
    background-color: #1e1e1e;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

body.dark .results-card h3 {
    color: #81c784;
}

body.dark .card-subtitle {
    color: #888;
}

body.dark .progress-bar-container {
    background-color: #333;
}

body.dark .breakdown-item h4 {
    color: #e0e0e0;
}

/* SECTOR BREAKDOWN */
body.dark .sector-item {
    border-bottom-color: #2a2a2a;
}

body.dark .sector-info h4 {
    color: #e0e0e0;
}

body.dark .sector-info p {
    color: #777;
}

body.dark .sector-progress-container {
    background-color: #333;
}

body.dark .sector-score-label {
    color: #777;
}

/* RECOMMENDATIONS PAGE */
body.dark .rec-card {
    background-color: #1e1e1e;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

body.dark .rec-card h3 {
    color: #81c784;
}

body.dark .weakest-holding-item {
    background-color: #2a1a1a;
    border-left-color: #c62828;
}

body.dark .weakest-holding-info h4 {
    color: #f0f0f0;
}

body.dark .weakest-holding-info p {
    color: #888;
}

body.dark .weakest-holding-score p {
    color: #777;
}

body.dark .alternative-item {
    background-color: #1a2a1a;
    border-left-color: #2e7d32;
}

body.dark .alternative-info h4 {
    color: #f0f0f0;
}

body.dark .alternative-info p {
    color: #888;
}

body.dark .alternative-score p {
    color: #777;
}

body.dark .tip-item {
    background-color: #2a2a2a;
}

body.dark .tip-content h4 {
    color: #e0e0e0;
}

body.dark .tip-content p {
    color: #aaa;
}

/* AUTOCOMPLETE */
body.dark .autocomplete-list {
    background-color: #1e1e1e;
    border-color: #444;
}

body.dark .autocomplete-list li {
    color: #ccc;
    border-bottom-color: #2a2a2a;
}

body.dark .autocomplete-list li:hover,
body.dark .autocomplete-list li.active {
    background-color: #1a2e1a;
    color: #81c784;
}

/* FOOTER */
body.dark .footer {
    background-color: #0a0a0a;
    color: #666;
}

/* NAV USERNAME */
body.dark .nav-username {
    color: #aaa;
}
/* ================================
   FORGOT PASSWORD
================================ */
.success-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

/* Steps transition */
#step-1, #step-2, #step-3, #step-4 {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* ================================
   ONBOARDING TOUR
================================ */
.tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    pointer-events: none;
}

.tour-tooltip {
    position: fixed;
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 30px;
    max-width: 340px;
    width: 90%;
    box-shadow: 0 16px 48px rgba(0,0,0,0.25);
    z-index: 9999;
    pointer-events: all;
    animation: tourFadeIn 0.3s ease;
}

@keyframes tourFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tour-step-indicator {
    font-size: 0.78rem;
    color: #2e7d32;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.tour-tooltip h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.tour-tooltip p {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
}

.tour-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tour-btn-skip {
    background: none;
    border: none;
    color: #aaa;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.tour-btn-skip:hover {
    color: #666;
}

.tour-btn-next {
    background-color: #2e7d32;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.tour-btn-next:hover {
    background-color: #1b5e20;
}

/* Highlight effect on tour target elements */
.tour-highlight {
    position: relative;
    z-index: 9999;
    box-shadow: 0 0 0 4px #2e7d32, 0 0 0 8px rgba(46,125,50,0.3) !important;
    border-radius: 12px;
}

/* Dark mode tour */
body.dark .tour-tooltip {
    background-color: #1e1e1e;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

body.dark .tour-tooltip h4 {
    color: #f0f0f0;
}

body.dark .tour-tooltip p {
    color: #aaa;
}

body.dark .tour-btn-skip {
    color: #666;
}
/* ================================
   EMPTY STATE MESSAGING
================================ */
.empty-state-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
    margin-bottom: 30px;
}

.empty-state-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.empty-state-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.empty-state-card p {
    font-size: 0.95rem;
    color: #777;
    line-height: 1.7;
    max-width: 400px;
    margin: 0 auto 8px;
}

.empty-state-hint {
    margin-top: 16px !important;
    background-color: #f4f7f6;
    border-radius: 10px;
    padding: 12px 20px !important;
    display: inline-block;
    font-size: 0.88rem !important;
    color: #555 !important;
}

/* Dark mode */
body.dark .empty-state-card {
    background-color: #1e1e1e;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

body.dark .empty-state-card h3 {
    color: #f0f0f0;
}

body.dark .empty-state-card p {
    color: #888;
}

body.dark .empty-state-hint {
    background-color: #2a2a2a;
    color: #aaa !important;
}
/* ================================
   LOADING ANIMATIONS
================================ */

/* Skeleton shimmer effect */
@keyframes shimmer {
    0%   { background-position: -800px 0; }
    100% { background-position:  800px 0; }
}

.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 8px;
    display: block;
}

/* Dark mode skeleton */
body.dark .skeleton {
    background: linear-gradient(
        90deg,
        #2a2a2a 25%,
        #333 50%,
        #2a2a2a 75%
    );
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite linear;
}

/* Skeleton shapes */
.skeleton-title {
    height: 28px;
    width: 60%;
    margin-bottom: 16px;
}

.skeleton-text {
    height: 16px;
    width: 100%;
    margin-bottom: 10px;
}

.skeleton-text.short {
    width: 70%;
}

.skeleton-text.xshort {
    width: 40%;
}

.skeleton-circle {
    width: 150px;
    height: 150px;
    border-radius: 50% !important;
    flex-shrink: 0;
}

.skeleton-bar {
    height: 10px;
    width: 100%;
    border-radius: 10px;
    margin-bottom: 8px;
}

.skeleton-row {
    height: 48px;
    width: 100%;
    margin-bottom: 8px;
    border-radius: 8px;
}

/* Skeleton card wrapper */
.skeleton-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
}

body.dark .skeleton-card {
    background-color: #1e1e1e;
}

/* Page fade in when content loads */
.page-content {
    animation: pageFadeIn 0.4s ease;
}

@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* ================================
   SCORE TREND INDICATOR
================================ */
.trend-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.trend-up {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.trend-down {
    background-color: #ffebee;
    color: #c62828;
}

.trend-stable {
    background-color: #fff8e1;
    color: #f57f17;
}

body.dark .trend-up {
    background-color: #1a2e1a;
    color: #81c784;
}

body.dark .trend-down {
    background-color: #2a1a1a;
    color: #ef9a9a;
}

body.dark .trend-stable {
    background-color: #2a2500;
    color: #ffd54f;
}
/* ================================
   PORTFOLIO COMPARISON
================================ */
.compare-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

.compare-header {
    text-align: center;
    margin-bottom: 40px;
}

.compare-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.compare-header p {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
}

/* Compare grid */
.compare-grid {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.compare-column {
    flex: 1;
    min-width: 280px;
}

/* Column headers */
.compare-column-header {
    border-radius: 16px 16px 0 0;
    padding: 20px 24px;
    text-align: center;
}

.compare-column-header.current {
    background-color: #e8f5e9;
}

.compare-column-header.alternative {
    background-color: #e3f2fd;
}

.compare-column-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.compare-column-header p {
    font-size: 0.85rem;
    color: #777;
}

/* Compare card */
.compare-card {
    background-color: #ffffff;
    border-radius: 0 0 16px 16px;
    padding: 30px 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
}

/* Score circle */
.compare-score-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    background-color: #ccc;
    margin: 0 auto 24px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: background-color 0.5s;
}

.compare-score-circle small {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.85;
}

.compare-score-circle.high {
    background-color: #2e7d32;
    box-shadow: 0 6px 20px rgba(46,125,50,0.3);
}

.compare-score-circle.medium {
    background-color: #f57f17;
    box-shadow: 0 6px 20px rgba(245,127,23,0.3);
}

.compare-score-circle.low {
    background-color: #c62828;
    box-shadow: 0 6px 20px rgba(198,40,40,0.3);
}

/* E S G breakdown */
.compare-breakdown {
    margin-bottom: 20px;
}

.compare-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    color: #555;
}

.compare-breakdown-item:last-child {
    border-bottom: none;
}

.compare-breakdown-item strong {
    font-size: 1rem;
    color: #1a1a1a;
}

/* Holdings list */
.compare-holdings-list {
    margin-bottom: 20px;
}

.compare-holding-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 0.88rem;
}

.compare-holding-row button {
    background: none;
    border: none;
    color: #c62828;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.compare-holding-row button:hover {
    background-color: #ffebee;
}

/* VS divider */
.compare-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
    min-width: 60px;
}

.vs-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f4f7f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 16px;
    border: 2px solid #ddd;
}

.compare-verdict {
    text-align: center;
    font-size: 0.82rem;
    color: #888;
    max-width: 80px;
    line-height: 1.5;
}

/* Add form */
.compare-add-form {
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
    margin-top: 10px;
}

.compare-add-form h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 14px;
}

/* Compare button */
.btn-compare {
    background-color: #1565c0;
    color: #ffffff;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-compare:hover {
    background-color: #0d47a1;
}

/* Dark mode */
body.dark .compare-header h2 {
    color: #f0f0f0;
}

body.dark .compare-header p {
    color: #aaa;
}

body.dark .compare-column-header.current {
    background-color: #1a2e1a;
}

body.dark .compare-column-header.alternative {
    background-color: #0d2137;
}

body.dark .compare-column-header h3 {
    color: #f0f0f0;
}

body.dark .compare-card {
    background-color: #1e1e1e;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

body.dark .compare-breakdown-item {
    border-bottom-color: #2a2a2a;
    color: #aaa;
}

body.dark .compare-breakdown-item strong {
    color: #f0f0f0;
}

body.dark .compare-holding-row {
    background-color: #2a2a2a;
    color: #ccc;
}

body.dark .vs-circle {
    background-color: #2a2a2a;
    border-color: #444;
    color: #aaa;
}

body.dark .compare-add-form {
    border-top-color: #2a2a2a;
}
/* ================================
   DASHBOARD
================================ */
.dashboard-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 20px;
}

/* Welcome banner */
.dashboard-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 16px;
}

.dashboard-welcome-text h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.dashboard-welcome-text p {
    font-size: 0.95rem;
    color: #777;
}

.btn-retake-tour {
    background-color: #f4f7f6;
    border: 1.5px solid #ddd;
    border-radius: 25px;
    padding: 10px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-retake-tour:hover {
    background-color: #e8f5e9;
    border-color: #2e7d32;
    color: #2e7d32;
}

/* Stats row */
.dashboard-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 140px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-icon {
    font-size: 1.8rem;
}

.stat-info h4 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #2e7d32;
    margin-bottom: 2px;
}

.stat-info p {
    font-size: 0.78rem;
    color: #999;
    line-height: 1.3;
}

/* Quick links */
.dashboard-quick-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.quick-link-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 24px 20px;
    flex: 1;
    min-width: 160px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.quick-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: #2e7d32;
}

.quick-link-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.quick-link-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.quick-link-card p {
    font-size: 0.8rem;
    color: #999;
}

/* Dashboard cards */
.dashboard-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2e7d32;
}

.dashboard-card-link {
    font-size: 0.85rem;
    color: #2e7d32;
    text-decoration: none;
    font-weight: 600;
}

.dashboard-card-link:hover {
    text-decoration: underline;
}

/* Holdings snapshot */
.dashboard-holding-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background-color: #f9fdf9;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #444;
}

.dashboard-holding-row:last-child {
    margin-bottom: 0;
}

/* Rating summary */
.dashboard-rating-summary {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.dashboard-rating-item {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 20px;
    background-color: #f4f7f6;
    border-radius: 14px;
}

.dashboard-rating-item h4 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2e7d32;
    margin-bottom: 4px;
}

.dashboard-rating-item p {
    font-size: 0.82rem;
    color: #888;
}

/* Nav link */
.nav-link {
    text-decoration: none;
    color: #333;
    margin-left: 20px;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #2e7d32;
}

body.dark .nav-link {
    color: #ccc;
}

body.dark .nav-link:hover {
    color: #81c784;
}

/* Dark mode */
body.dark .dashboard-welcome-text h2 {
    color: #f0f0f0;
}

body.dark .dashboard-welcome-text p {
    color: #aaa;
}

body.dark .btn-retake-tour {
    background-color: #2a2a2a;
    border-color: #444;
    color: #ccc;
}

body.dark .btn-retake-tour:hover {
    background-color: #1a2e1a;
    border-color: #2e7d32;
    color: #81c784;
}

body.dark .stat-card {
    background-color: #1e1e1e;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

body.dark .stat-info p {
    color: #777;
}

body.dark .quick-link-card {
    background-color: #1e1e1e;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

body.dark .quick-link-card h4 {
    color: #f0f0f0;
}

body.dark .quick-link-card p {
    color: #777;
}

body.dark .dashboard-card {
    background-color: #1e1e1e;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

body.dark .dashboard-holding-row {
    background-color: #2a2a2a;
    color: #ccc;
}

body.dark .dashboard-rating-item {background-color: #2a2a2a;
}

body.dark .dashboard-rating-item h4 {
    color: #81c784;
}

body.dark .dashboard-rating-item p {
    color: #777;
}
/* 
   ESG NEWS CARD
*/
.esg-news-card {
    margin-top: 25px;
}

.esg-news-list {
    list-style: none;
    margin: 20px 0 10px;
    padding: 0;
}

.esg-news-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.esg-news-item:last-child {
    border-bottom: none;
}

.esg-news-headline {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.esg-news-meta {
    font-size: 0.85rem;
    color: #777;
}

.esg-news-note {
    font-size: 0.8rem;
    color: #999;
    margin-top: 10px;
}

/* Dark mode */
body.dark .esg-news-card {
    background-color: #1e1e1e;
}

body.dark .esg-news-item {
    border-bottom-color: #2a2a2a;
}

body.dark .esg-news-headline {
    color: #f0f0f0;
}

body.dark .esg-news-meta,
body.dark .esg-news-note {
    color: #888;
}
/* PRO PILL */
.pro-pill {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 999px;
    background-color: #ff9800;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Dark mode */
body.dark .pro-pill {
    background-color: #ffb74d;
}