/* Dashboard Demo Styles */
.dashboard-demo {
    background-color: var(--bg-color);
    padding: 80px 0;
    transition: background-color 0.5s ease;
}

.dashboard-container {
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

.dashboard-header {
    padding: 20px 30px;
    background: var(--gradient);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.dashboard-tabs {
    display: flex;
    background-color: var(--bg-alt-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: background-color 0.5s ease;
}

.dashboard-tab {
    padding: 15px 25px;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-color);
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 3px solid transparent;
}

.dashboard-tab.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.dashboard-content {
    padding: 30px;
}

.dashboard-panel {
    display: none;
}

.dashboard-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.5s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.card-title {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin: 0;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.card-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}

.card-change {
    font-size: 0.9rem;
    margin-top: 5px;
}

.card-change.positive {
    color: var(--success-color);
}

.card-change.negative {
    color: var(--danger-color);
}

.chart-container {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background-color 0.5s ease;
    position: relative;
    min-height: 350px; /* Minimum height for chart containers */
    height: auto;
    overflow: visible;
}

.chart-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.chart-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.chart-legend {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}

.chart-canvas {
    width: 100% !important;
    height: 300px !important;
    max-height: 300px !important;
}

/* Fix for performance chart stretching issue */
#performance-chart {
    height: 300px !important;
    max-height: 300px !important;
    min-height: 0 !important;
}

/* Fix for all chart canvases */
canvas.chart-canvas {
    height: 300px !important;
    max-height: 300px !important;
    min-height: 0 !important;
}

/* Portfolio Distribution */
.portfolio-chart-container {
    height: auto;
    min-height: 300px;
    margin-bottom: 30px;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

#portfolio-chart {
    max-height: 350px;
    height: 100% !important;
    width: 100% !important;
    margin-bottom: 20px;
}

.portfolio-assets {
    margin-top: 20px;
}

.portfolio-asset {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.portfolio-asset:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .portfolio-asset:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.asset-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    align-items: center;
}

.asset-name {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

.asset-percentage {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.asset-value {
    font-size: 0.8rem;
    color: var(--gray-color);
    margin-left: 5px;
    font-weight: normal;
}

.asset-bar {
    height: 8px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .asset-bar {
    background-color: rgba(255, 255, 255, 0.1);
}

.asset-progress {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.portfolio-total {
    margin-top: 30px;
    padding: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

[data-theme="dark"] .portfolio-total {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.total-label {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.total-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Transactions Table */
.chart-container:has(#recent-transactions) {
    height: auto !important;
    max-height: none !important;
    overflow: visible;
}

#recent-transactions {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: thin; /* Firefox */
}

/* Custom scrollbar for Webkit browsers */
#recent-transactions::-webkit-scrollbar {
    height: 6px;
}

#recent-transactions::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

#recent-transactions::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

[data-theme="dark"] #recent-transactions::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.transactions-table {
    width: 100%;
    min-width: 800px; /* Ensure table doesn't get too compressed */
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .transactions-table {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.transactions-table th,
.transactions-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .transactions-table th,
[data-theme="dark"] .transactions-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.transactions-table th {
    font-weight: 600;
    color: var(--gray-color);
    font-size: 0.9rem;
    background-color: var(--bg-alt-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.transactions-table td {
    color: var(--text-color);
    font-size: 0.9rem;
}

.tx-row {
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.tx-row:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .tx-row:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.tx-row.active {
    background-color: rgba(108, 99, 255, 0.05);
}

[data-theme="dark"] .tx-row.active {
    background-color: rgba(108, 99, 255, 0.1);
}

.tx-details-row {
    display: none;
    background-color: var(--bg-alt-color);
}

.tx-details-row.active {
    display: table-row;
}

.tx-details {
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.tx-detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--gray-color);
    margin-bottom: 5px;
}

.detail-value {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

.tx-type {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    width: fit-content;
}

.tx-type i {
    font-size: 0.9rem;
}

.tx-type.stake {
    background-color: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
}

.tx-type.trade {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.tx-type.unstake {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.tx-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tx-status.completed {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.tx-status.pending {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.tx-status.failed {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.tx-amount {
    font-weight: 500;
}

.tx-value {
    color: var(--primary-color);
    font-weight: 500;
}

.tx-details-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-color);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tx-details-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

[data-theme="dark"] .tx-details-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Trading Bot Visualization */
.trading-bot-section {
    padding: 100px 0;
    background-color: var(--bg-alt-color);
    transition: background-color 0.5s ease;
}

.trading-bot-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trading-bot-header {
    text-align: center;
    margin-bottom: 50px;
}

.trading-bot-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.trading-bot-header p {
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

.trading-bot-visualization-container {
    width: 100%;
    max-width: 800px;
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: background-color 0.5s ease;
}

.trading-bot-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.trading-bot-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

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

.bot-stat {
    display: flex;
    align-items: center;
}

.bot-stat-label {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-right: 5px;
}

.bot-stat-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

.bot-stat-value.positive {
    color: var(--success-color);
}

.trading-bot-canvas-container {
    position: relative;
    width: 100%;
    height: 300px;
}

canvas#trading-bot-visualization {
    width: 100%;
    height: 100%;
}

.trading-bot-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.bot-legend-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.bot-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}

/* Staking Calculator */
.staking-calculator-section {
    padding: 100px 0;
    background-color: var(--bg-color);
    transition: background-color 0.5s ease;
}

.calculator-container {
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: background-color 0.5s ease;
}

.calculator-header {
    padding: 20px 30px;
    background: var(--gradient);
    color: white;
}

.calculator-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.calculator-content {
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: border-color 0.3s ease, background-color 0.5s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.apy-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.apy-label {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.apy-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.calculate-btn {
    padding: 12px 20px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 10px;
}

.calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.calculator-result {
    transition: opacity 0.5s ease;
}

.result-card {
    background-color: var(--bg-alt-color);
    border-radius: 10px;
    overflow: hidden;
    transition: background-color 0.5s ease;
}

.result-header {
    padding: 15px 20px;
    background: var(--gradient);
    color: white;
    font-weight: 600;
}

.result-body {
    padding: 20px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.result-row:last-child {
    border-bottom: none;
}

.result-row.highlight {
    color: var(--primary-color);
    font-weight: 500;
}

.result-row.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-top: 10px;
}

.result-row.total small {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-left: 5px;
    font-weight: normal;
}

.result-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

[data-theme="dark"] .result-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stake-now-btn {
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stake-now-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.error {
    color: var(--danger-color);
    font-size: 0.9rem;
    text-align: center;
    padding: 15px;
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 5px;
    margin: 10px 0;
}

/* Button loader */
.btn-loader {
    margin-left: 8px;
}

/* Shake animation for error */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--bg-alt-color);
    transition: background-color 0.5s ease;
}

.testimonials-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-item {
    min-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.testimonial-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    position: relative;
    transition: background-color 0.5s ease;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: serif;
    line-height: 1;
}

.testimonial-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin: 0 0 5px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.author-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.testimonial-dot.active {
    background-color: var(--primary-color);
}

.testimonial-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

.testimonial-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.testimonial-arrow:hover {
    transform: scale(1.1);
}

.testimonial-arrow i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background-color: var(--bg-color);
    transition: background-color 0.5s ease;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: background-color 0.5s ease;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.faq-toggle i {
    color: var(--gray-color);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.faq-answer-content {
    padding: 0 20px 20px;
    color: var(--gray-color);
    line-height: 1.6;
}

.faq-item.active .faq-question {
    background-color: rgba(0, 0, 0, 0.02);
}

.faq-item.active .faq-question h4 {
    color: var(--primary-color);
}

.faq-item.active .faq-toggle {
    background-color: var(--primary-color);
    transform: rotate(180deg);
}

.faq-item.active .faq-toggle i {
    color: white;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Partners Section */
.partners-section {
    padding: 80px 0;
    background-color: var(--bg-alt-color);
    transition: background-color 0.5s ease;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    align-items: center;
    justify-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    width: 100px;
    background-color: var(--card-bg);
    border-radius: 50%; /* Make it circular */
    padding: 15px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.5s ease;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.partner-logo {
    max-width: 70%;
    max-height: 70%;
    width: auto;
    height: auto;
    transition: transform 0.3s ease;
    filter: none;
    opacity: 1;
}

/* Specific adjustments for dark theme */
[data-theme="dark"] .partner-item {
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Add subtle glow effect on hover */
.partner-item:hover {
    box-shadow: 0 8px 25px rgba(var(--primary-color-rgb, 108, 99, 255), 0.3);
}

.partner-item:hover .partner-logo {
    transform: scale(1.1);
}

/* Comparison Table */
.comparison-section {
    padding: 100px 0;
    background-color: var(--bg-color);
    transition: background-color 0.5s ease;
}

.comparison-table-container {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.comparison-table th,
.comparison-table td {
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.comparison-table th:first-child {
    text-align: left;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-color);
}

.comparison-table tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-check {
    color: var(--success-color);
    font-size: 1.2rem;
}

.comparison-x {
    color: var(--danger-color);
    font-size: 1.2rem;
}

.comparison-highlight {
    background-color: rgba(108, 99, 255, 0.05);
}

.comparison-highlight td:first-child {
    position: relative;
}

.comparison-highlight td:first-child::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: var(--primary-color);
}

/* Price Ticker */
.price-ticker {
    background-color: var(--dark-color);
    color: white;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
}

.ticker-container {
    display: flex;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: flex;
    align-items: center;
    margin-right: 40px;
    white-space: nowrap;
}

.ticker-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticker-icon img {
    width: 18px;
    height: 18px;
}

.ticker-price {
    font-weight: 500;
    margin-right: 8px;
}

.ticker-change {
    font-size: 0.9rem;
}

.ticker-change.positive {
    color: var(--success-color);
}

.ticker-change.negative {
    color: var(--danger-color);
}

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

/* Security Features */
.security-section {
    padding: 100px 0;
    background-color: var(--bg-alt-color);
    transition: background-color 0.5s ease;
}

.security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.security-feature {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.5s ease;
    position: relative;
    overflow: hidden;
}

.security-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.security-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.security-icon i {
    font-size: 24px;
    color: white;
}

.security-feature h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.security-feature p {
    color: var(--gray-color);
    margin-bottom: 20px;
}

.security-feature ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.security-feature ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    color: var(--text-color);
}

.security-feature ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.security-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Chart Responsive Styles */
@media (max-width: 768px) {
    .chart-container {
        padding: 15px;
        min-height: 300px;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .chart-title {
        margin-bottom: 10px;
    }
    
    .chart-legend {
        justify-content: flex-start;
        margin-bottom: 10px;
    }
    
    .chart-canvas {
        height: 250px !important;
        max-height: 250px !important;
    }
}

@media (max-width: 576px) {
    .chart-container {
        padding: 10px;
        min-height: 250px;
    }
    
    .chart-canvas {
        height: 200px !important;
        max-height: 200px !important;
    }
}

/* Responsive Styles */
@media (max-width: 991px) {
    .calculator-content {
        grid-template-columns: 1fr;
    }
    
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .testimonial-arrows {
        display: none;
    }
    
    .security-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .dashboard-tab {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .chart-canvas {
        height: 200px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
}
