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

body {
    font-family: 'Manrope', sans-serif;
    background-color: #000;
    color: #fff;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* ======================
   NOISE OVERLAY (Shared)
   ====================== */
body.with-noise::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.18;
    background-image: url('data:image/svg+xml;utf8,<svg width="100%25" height="100%25" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23noiseFilter)"/></svg>');
}

/* ======================
   LANDING PAGE STYLES
   ====================== */
.landing-container {
    display: flex;
    height: 100vh;
}

.container {
    display: flex;
    height: 100vh;
}

.left-section {
    flex: 0.35;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-bottom: 2rem;
    cursor: pointer;
    position: relative;
}

.online-counter {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: #000000;
    color: #ffffff;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 14px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 20;
    animation: fade-in 0.3s ease-in-out;
}

.online-counter .counter-text {
    font-family: 'Manrope', sans-serif;
    letter-spacing: 0.3px;
}

.pulsating-circle {
    width: 30px;
    height: 30px;
    background: #ffffff;
    border-radius: 50%;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.pulsating-circle:hover {
    animation: pulse-fast 0.5s ease-in-out infinite;
    transform: scale(1.1);
}

.pulsating-circle::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse-ring 2s ease-in-out infinite;
}

.pulsating-circle:hover::before {
    animation: pulse-ring-fast 0.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse-fast {
    0% {
        opacity: 1;
        transform: scale(1.1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes pulse-ring {
    0% {
        opacity: 0.6;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.1);
    }
    100% {
        opacity: 0.6;
        transform: scale(0.8);
    }
}

@keyframes pulse-ring-fast {
    0% {
        opacity: 0.8;
        transform: scale(0.9);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.2);
    }
    100% {
        opacity: 0.8;
        transform: scale(0.9);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.content-container {
    margin-top: auto;
}

.title {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.8rem;
    letter-spacing: -3.28%;
    text-transform: lowercase;
}

.subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
    font-weight: 500;
    line-height: 1.125em;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 200px;
    text-align: center;
}

.primary-button {
    background-color: #fff;
    color: #000;
    border: none;
    line-height: 1em;
}

.primary-button:hover {
    background-color: #e6e6e6;
}

.secondary-button {
    background-color: transparent;
    color: #fff;
    border: 1.5px solid #404040;
    font-size: 1.1rem;
    line-height: 0.83em;
}

.secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.right-section {
    flex: 0.65;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Question picker style */
.instructions-section {
    position: relative;
    width: 80%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.instructions-wrapper {
    position: relative;
    width: 100%;
}

/* Instructions Title */
.instructions-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 2rem;
    text-transform: lowercase;
}

/* Instructions List */
.instructions-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
}

.instruction-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.instruction-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.instruction-number {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    min-width: 20px;
    margin-top: 0.1rem;
}

.instruction-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
    text-transform: lowercase;
    flex: 1;
}

/* Letter Container Styles */
.letter-container {
    max-width: 540px;
    margin: 2rem auto;
    padding: 2.2rem 2.5rem 2.5rem 2.5rem;
    background-color: rgba(255, 255, 255, 0.98);
    color: #222;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.letter-content {
    font-family: 'Manrope', sans-serif;
}

.letter-content p {
    font-size: 1.08rem;
    line-height: 1.85;
    margin-bottom: 1.2rem;
    text-transform: lowercase;
    color: #222;
}

.letter-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 2.5rem 0 1.5rem 0;
    text-transform: lowercase;
    color: #222;
}

.letter-content a {
    color: #0066cc;
    text-decoration: none;
}

.letter-content a:hover {
    text-decoration: underline;
}

.letter-content strong {
    font-weight: 600;
}

.letter-cta {
    margin-top: 3rem;
    text-align: center;
}

.letter-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    text-transform: lowercase;
    transition: all 0.3s ease;
}

.letter-button:hover {
    background-color: #333;
    color: #fff;
}

/* Responsive adjustments for letter */
@media (max-width: 800px) {
    .letter-container {
        margin: 1rem auto;
        padding: 1.5rem;
        box-shadow: none;
    }

    .letter-content p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .letter-content h2 {
        font-size: 1.3rem;
        margin: 2rem 0 1rem 0;
    }
}

/* Background mask for the scrolling effect */
.background-mask-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.8) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
    z-index: 2;
}

.background-mask-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.8) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
    z-index: 2;
}

/* Search box styled like the reference selection box */
.selection-box-container {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
}

.selection-box {
    width: 100%;
    max-width: 90%;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.selection-box:hover {
    background-color: rgba(30, 30, 30, 0.95);
}

.selection-box .arrow {
    margin-left: 1rem;
    font-weight: 500;
    font-size: 17px;
}

.text-container {
    width: 100%;
    text-align: left;
    padding-left: 0;
}

/* Question slider */
.question-slider {
    position: absolute;
    width: 100%;
    transition: transform 0.5s ease;
    z-index: 1;
}

.question-item {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: left;
    font-weight: 500;
    font-size: 17px;
    line-height: 1.4em;
    text-transform: lowercase;
    position: relative;
}

.question-item:hover {
    color: rgba(255, 255, 255, 0.8);
}

.question-item.active {
    opacity: 0;
    pointer-events: none;
}

.question-item.near-active {
    opacity: 0.3;
}

.question-item span {
    pointer-events: none;
}

/* Popup styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.popup-overlay.active {
    display: flex;
}

.popup-container {
    background-color: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.popup-header {
    margin-bottom: 2rem;
    position: relative;
}

.popup-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.popup-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

.broker-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.broker-button {
    padding: 0.8rem 1.5rem;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.broker-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.broker-button.see-more {
    grid-column: span 2;
    background-color: rgba(255, 255, 255, 0.05);
}

.divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 1.5rem 0;
}

.no-broker-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.no-broker-text a {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.no-broker-text a:hover {
    opacity: 0.8;
}

/* Broker comparison popup styles */
.broker-info {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.broker-info:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.broker-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.broker-details {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.choose-broker-btn {
    padding: 0.6rem 1.5rem;
    background-color: #fff;
    color: #000;
    border: none;
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.choose-broker-btn:hover {
    background-color: #e6e6e6;
}

.back-button {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: opacity 0.3s ease;
}

.back-button:hover {
    opacity: 0.7;
}

.back-button::before {
    content: '←';
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    font-weight: 300;
}

/* Scrollbar styling - only show during active scrolling */
.popup-container {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.popup-container::-webkit-scrollbar {
    width: 6px;
    display: none;
}

.popup-container.scrolling {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

.popup-container.scrolling::-webkit-scrollbar {
    display: block;
}

.popup-container.scrolling::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.popup-container.scrolling::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.popup-container.scrolling::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ======================
   LOGIN PAGE STYLES
   ====================== */

/* Disabled broker buttons */
.broker-button.broker-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.15);
}

.broker-button.broker-disabled:hover {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.15);
}

/* Active broker button (Zerodha) */
.broker-button.broker-active {
    border-color: rgba(255, 255, 255, 0.5);
    position: relative;
}

.broker-button.broker-active::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 8px;
    font-size: 10px;
    color: #00ff88;
}

.broker-button.broker-active:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.7);
}

/* Login loading state */
.login-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}

.login-loading-state .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #fff;
    border-radius: 50%;
    animation: login-spinner 1s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes login-spinner {
    to {
        transform: rotate(360deg);
    }
}

.login-loading-state .loading-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* Login error state */
.login-error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.login-error-state .error-text {
    color: #ff4444;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.login-error-state .retry-button {
    padding: 0.7rem 1.5rem;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-error-state .retry-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Coming soon note */
.coming-soon-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.coming-soon-note .note-icon {
    font-size: 1rem;
}

/* Toast notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: #fff;
    color: #000;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Disabled broker info in comparison popup */
.broker-info.broker-info-disabled {
    opacity: 0.5;
}

.broker-info.broker-info-disabled .broker-name::after {
    content: ' (coming soon)';
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
}

/* Disabled choose broker button */
.choose-broker-btn.btn-disabled {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

.choose-broker-btn.btn-disabled:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-explore-button {
    display: none;
}

/* ======================
   DISCOVER PAGE STYLES
   ====================== */
.discover-container {
    display: flex;
    height: 100vh;
}

/* Sidebar Styles */
.sidebar-container {
    width: 280px;
    min-width: 280px;
    background-color: #000;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    height: 100vh;
    overflow-y: auto;
    position: sticky;
    top: 0;
}

.sidebar {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar .logo-container {
    width: auto;
    height: auto;
    margin-bottom: 0;
}

/* Sidebar logo - smaller pulsating circle */
.sidebar .pulsating-circle.sidebar-pulsating-circle {
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sidebar .pulsating-circle.sidebar-pulsating-circle:hover {
    animation: pulse-fast 0.5s ease-in-out infinite;
    transform: scale(1.1);
}

.sidebar .pulsating-circle.sidebar-pulsating-circle::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse-ring 2s ease-in-out infinite;
}

.sidebar .pulsating-circle.sidebar-pulsating-circle:hover::before {
    animation: pulse-ring-fast 0.5s ease-in-out infinite;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.nav-section {
    margin-bottom: 0;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-section:last-child {
    border-bottom: none;
}

.nav-item {
    display: block;
    padding: 0.5rem 2rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.nav-item:hover {
    color: rgba(255, 255, 255, 0.9);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: #fff;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    padding: 1.5rem 1.5rem 1.5rem 0; /* Remove left padding */
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
    position: relative;
}

/* Ticker Styles */
.ticker-container {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
    z-index: 10;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.ticker-item.updated {
    transform: scale(1.02);
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.ticker-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.ticker-value {
    color: #fff;
    font-weight: 600;
}

.ticker-change {
    font-weight: 500;
    font-size: 0.8rem;
}

.ticker-change.positive {
    color: #00ff88;
}

.ticker-change.negative {
    color: #ff4444;
}

/* LiveTicker Dropdown Styles */
.live-ticker-wrapper {
    position: relative;
}

.ticker-item.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    border: 1px solid transparent;
}

.ticker-item.clickable:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.ticker-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 400px;
    max-height: 500px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    z-index: 1000;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.ticker-dropdown.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.dropdown-content {
    max-height: 480px;
    overflow-y: auto;
    padding: 1rem;
}

.dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.dropdown-category {
    margin-bottom: 1.5rem;
}

.dropdown-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-items {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(2px);
}

.item-name {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    flex: 1;
    margin-right: 1rem;
}

.item-price {
    font-size: 0.85rem;
    color: #fff;
    font-weight: 600;
    margin-right: 0.8rem;
}

.item-change {
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 60px;
    text-align: right;
}

.item-change.positive {
    color: #00ff88;
}

.item-change.negative {
    color: #ff4444;
}

/* Responsive adjustments for LiveTicker dropdown */
@media (max-width: 768px) {
    .ticker-dropdown {
        width: 320px;
        right: -50px;
    }

    .item-name {
        font-size: 0.8rem;
    }

    .item-price {
        font-size: 0.8rem;
    }

    .item-change {
        font-size: 0.75rem;
        min-width: 55px;
    }
}

@media (max-width: 480px) {
    .ticker-dropdown {
        width: 280px;
        right: -80px;
    }

    .dropdown-content {
        padding: 0.8rem;
    }

    .category-title {
        font-size: 0.85rem;
    }

    .dropdown-item {
        padding: 0.5rem 0.6rem;
    }

    .item-name {
        font-size: 0.75rem;
        margin-right: 0.8rem;
    }

    .item-price {
        font-size: 0.75rem;
        margin-right: 0.6rem;
    }

    .item-change {
        font-size: 0.7rem;
        min-width: 50px;
    }
}

/* Header Styles */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    margin-top: 5rem;
    text-align: center;
    width: 100%;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    text-transform: lowercase;
}

.main-layout {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 3rem;
}

/* Bonds Container */
.bonds-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Main bond categories */
.main-bonds {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0 10%;
    flex-wrap: wrap;
}

.main-bond-card {
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 22%;
    min-width: 150px;
    box-sizing: border-box;
}

.main-bond-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.main-bond-card h3 {
    margin-bottom: 0.3rem;
    font-size: 1rem;
    text-transform: lowercase;
}

.main-bond-card p {
    color: #999;
    font-size: 0.8rem;
}

/* Company bonds marquee section */
.company-bonds-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.company-bonds-marquee {
    display: flex;
    animation: scrollLeft 30s linear infinite;
}

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

.company-bonds-marquee:hover {
    animation-play-state: paused;
}

.company-bond-card {
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.7rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 280px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.company-bond-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.company-indicator {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.company-info {
    flex: 1;
}

.company-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    text-transform: lowercase;
}

.company-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
}

.bond-count {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    font-weight: 500;
}

/* Question cards marquee section */
.question-bonds-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.question-bonds-marquee {
    display: flex;
    animation: scrollRight 40s linear infinite;
}

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

.question-bonds-marquee:hover {
    animation-play-state: paused;
}

.question-bond-card {
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.7rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
    text-transform: lowercase;
    min-width: 250px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.question-bond-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* ======================
   CATEGORY PAGE STYLES (SGB, Government, Corporate, Tax-free)
   ====================== */
.category-container {
    display: flex;
    height: 100vh;
    overflow: hidden; /* Prevent page scrolling */
    position: relative;
}

/* Filter Panel Styles */
.filter-panel {
    position: absolute;
    top: 0;
    left: 70px; /* Position after collapsed sidebar */
    width: 260px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    border-right: none; /* Remove gap */
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center vertically */
    gap: 2rem; /* Increase gap between search and rating sections */
    z-index: 500; /* Below sidebar but above main content */
    overflow-y: auto;
    transition: all 0.3s ease;
}

/* Search Container */
.search-container {
    margin-bottom: 0;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem; /* Remove left padding for icon */
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    outline: none;
    transition: all 0.2s ease;
}

.search-box input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* Search icon removed */

.clear-icon {
    position: absolute;
    right: 0.75rem;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.clear-icon:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Rating Filter */
.rating-filter {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: lowercase; /* Changed to lowercase */
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.rating-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rating-chip {
    padding: 0.4rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-transform: uppercase; /* Make rating chips uppercase */
}

.rating-chip:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
}

.rating-chip.selected {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.clear-all {
    align-self: flex-start;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.25rem 0;
    text-transform: lowercase;
}

.clear-all:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Frequency Filter Styles */
.frequency-filter {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.frequency-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.frequency-chip {
    padding: 0.4rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-transform: lowercase;
}

.frequency-chip:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
}

.frequency-chip.selected {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

/* Hide filter panel when sidebar is expanded to prevent overlap */
.sidebar.expanded ~ .category-container .filter-panel {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

/* Show filter panel when sidebar is collapsed */
.sidebar.collapsed ~ .category-container .filter-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    transition: all 0.3s ease;
}

/* Adjust main content when sidebar is collapsed (filter panel visible) */
.sidebar.collapsed ~ .category-container .main-content {
    margin-left: 330px !important; /* Collapsed sidebar (70px) + filter panel (260px) */
    width: calc(100% - 330px) !important;
}

/* Adjust main content when sidebar is expanded (filter panel hidden) */
.sidebar.expanded ~ .category-container .main-content {
    margin-left: 280px !important; /* Only expanded sidebar */
    width: calc(100% - 280px) !important;
}

/* Responsive - Hide filter panel on mobile */
@media (max-width: 768px) {
    .filter-panel {
        display: none;
    }

    /* Reset main content positioning on mobile */
    .category-container .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

.category-layout {
    display: flex;
    gap: 2rem;
    width: 100%;
    padding: 0 2rem 1rem 0; /* Remove left padding */
    height: auto;
    align-items: flex-start;
}

/* Main Content Override for Category Pages */
.category-container .main-content {
    overflow-y: auto; /* Allow scrolling to see sort controls */
}

/* Bonds Table Container */
.bonds-table-container {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.bonds-table {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Bonds Header */
.bonds-header {
    display: grid;
    grid-template-columns: 2fr 1rem 1fr 1rem 1fr 80px;
    padding: 0.8rem 1.5rem; /* Restore left padding */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    align-items: center;
}

.bonds-header .header-col-1 { grid-column: 1; }
.bonds-header .header-col-2 { grid-column: 3; }
.bonds-header .header-col-3 { grid-column: 5; }
.bonds-header .header-col-4 { grid-column: 6; }

.header-col-1, .header-col-2, .header-col-3, .header-col-4 {
    display: flex;
    align-items: center;
}

.header-col-2, .header-col-3, .header-col-4 {
    justify-content: flex-end;
}

/* Sort Dropdown */
.sort-dropdown {
    position: relative;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.sort-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.sort-dropdown-arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid rgba(255, 255, 255, 0.6);
    margin-left: 0.3rem;
}

.sort-dropdown:hover .sort-dropdown-arrow {
    border-top-color: rgba(255, 255, 255, 0.9);
}






/* Yield Toggle - Dropdown Style */
.yield-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    position: relative;
    padding: 0.2rem 0;
}

.toggle-label {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
    cursor: pointer;
    font-size: 0.85rem;
}

.toggle-label.active {
    color: rgba(255, 255, 255, 1);
}

.toggle-label:not(.active) {
    display: none;
}

.toggle-dropdown-arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid rgba(255, 255, 255, 0.6);
    margin-left: 0.3rem;
}

.yield-toggle:hover .toggle-dropdown-arrow {
    border-top-color: rgba(255, 255, 255, 0.9);
}


/* Dropdown Menu */
.toggle-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-top: 0.5rem;
    min-width: 120px;
    z-index: 100;
}

.toggle-dropdown.show {
    display: block;
}

.toggle-dropdown .toggle-option {
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-dropdown .toggle-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.toggle-dropdown .toggle-option.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}
.toggle-dropdown .toggle-option.disabled {
    color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.02);
    cursor: not-allowed;
    opacity: 0.5;
}
.toggle-dropdown .toggle-option.disabled:hover {
    background-color: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.3);
}

.option-arrow {
    width: 0;
    height: 0;
    border-left: 4.5px solid transparent;
    border-right: 4.5px solid transparent;
}

.arrow-down {
    border-top: 4.5px solid rgba(255, 255, 255, 0.6);
}

.arrow-up {
    border-bottom: 4.5px solid rgba(255, 255, 255, 0.6);
}

/* Loading Animation */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: 200px;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Bonds List */
.bonds-list {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 420px; /* Height to show approximately 7 bonds */
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none; /* For IE and Edge */
    position: relative;
    padding-bottom: 10px; /* Add padding to prevent content touching the gradient */
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* Hide scrollbar for Chrome, Safari and Opera */
.bonds-list::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Bonds Footnote */
.bonds-footnote {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: right;
    padding: 0.5rem 1.5rem 0.8rem 1.5rem;
    font-weight: 400;
}

/* Custom scrollbar indicator - using mask-image instead of ::after element */

/* Company rating badge */
.company-rating {
    font-size: 0.85rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    display: inline-block;
    margin-left: 1rem;
    margin-top: 0.5rem;
    vertical-align: middle;
}

/* Company info section */
.company-description {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.company-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}


.notes-content::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

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

.stat-value {
    font-size: 1rem;
    opacity: 0.9;
}

.mt-20 {
    margin-top: 20px;
}

/* Bottom spacer for consistent spacing */
.bottom-spacer {
    height: 30px; /* Approximately 1-2 cm space at bottom */
    width: 100%;
}

/* Featured Companies Section */
.featured-companies-section {
    margin-top: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.company-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.company-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.company-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.company-detail {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    opacity: 0.7;
}

.company-rating {
    font-weight: 500;
}

/* Bond Row */
/* Bond Rows */
.bond-row {
    display: grid;
    grid-template-columns: 2fr 1rem 1fr 1rem 1fr 80px;
    padding: 0.6rem 1.5rem; /* Restore left padding */
    border-bottom: 1px solid rgba(255, 255, 255, 0.025);
    transition: background-color 0.2s ease;
    cursor: pointer;
    align-items: center;
}

.bond-row .bond-col-1 { grid-column: 1; }
.bond-row .bond-col-2 { grid-column: 3; }
.bond-row .bond-col-3 { grid-column: 5; }
.bond-row .bond-col-4 { grid-column: 6; }

.bond-row:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

/* Industry-standard grey highlighting for amount changes */
.bond-amount-highlight {
    position: relative;
    overflow: hidden;
}

.bond-amount-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    opacity: 0;
    animation: amountHighlight 800ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
    will-change: opacity;
    pointer-events: none;
}

@keyframes amountHighlight {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    20% {
        opacity: 0.8;
        transform: scale(1.01);
    }
    60% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}


.bond-col-1, .bond-col-2, .bond-col-3, .bond-col-4 {
    display: flex;
    align-items: center;
}

.bond-col-2, .bond-col-3, .bond-col-4 {
    justify-content: flex-end;
}

/* Bond Column Content Styling */
.bond-col-1 {
    gap: 1rem;
}

.bond-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 183, 77, 0.1);
    border: 1px solid rgba(255, 183, 77, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #FFB74D;
    font-weight: 600;
    flex-shrink: 0;
}

.bond-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.bond-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.bond-tenure {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.bond-col-2 {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.bond-amount {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.bond-traded-info {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.bond-col-3 {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.yield-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4FC3F7;
}

.yield-availability {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.bond-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.bond-row:hover .bond-arrow {
    transform: translateX(3px);
    color: rgba(255, 255, 255, 0.6);
}

/* Bond Info Column */
.bond-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bond-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 183, 77, 0.1);
    border: 1px solid rgba(255, 183, 77, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #FFB74D;
    font-weight: 600;
}

.bond-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.bond-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.bond-tenure {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Amount Column */
.bond-amount-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    justify-content: center;
}

.bond-amount {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.bond-traded-info {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Yield Column */
.bond-yield-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    align-items: flex-start;
}

.yield-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.yield-availability {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Arrow Column */
.bond-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.yield-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.bond-row:hover .yield-arrow {
    transform: translateX(3px);
}


/* Notes Container */
.notes-container {
    flex-basis: 30%;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-left: 1.5rem;
    margin-bottom: 20px; /* Some space between container and bottom spacer */
}

.notes-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.notes-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.notes-content p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    padding-left: 1rem;
    position: relative;
}

.notes-content p::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.4);
}

/* Note Tags */
.notes-content .note-tag {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 500;
    padding: 0.1rem 0.6rem;
    border-radius: 12px;
    margin-left: 0.5rem;
    text-transform: none;
    letter-spacing: 0.3px;
    vertical-align: middle;
}

.notes-content .tag-important,
.notes-content .tag-imp {
    background-color: rgba(147, 51, 234, 0.2) !important;
    color: #9333ea !important;
    border: 1px solid rgba(147, 51, 234, 0.3) !important;
}

.notes-content .tag-new {
    background-color: rgba(251, 146, 60, 0.2) !important;
    color: #fb923c !important;
    border: 1px solid rgba(251, 146, 60, 0.3) !important;
}

.notes-content .tag-info {
    background-color: rgba(77, 150, 255, 0.2) !important;
    color: #4d96ff !important;
    border: 1px solid rgba(77, 150, 255, 0.3) !important;
}

.notes-content .note-item {
    display: block;
    margin-bottom: 0;
}