/* XTB Broker Profile Specific Styles */

/* New Header Section Styles */
.broker-header-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Integrated Ranking Styles */
.integrated-ranking {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.integrated-ranking .ranking-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.5rem;
}

.integrated-ranking .ranking-item {
    display: grid;
    grid-template-columns: 2fr 80px 1fr;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: none;
}

.integrated-ranking .ranking-item:last-child {
    border-bottom: none;
}
.broker-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.broker-header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.broker-header-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}
.broker-main-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}
.broker-header-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.rating-score-large {
    font-size: 2rem;
    font-weight: bold;
    color: #059669;
}
.rating-stars-large {
    display: flex;
    gap: 0.2rem;
}
.star-large {
    font-size: 1.5rem;
}
.broker-header-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.broker-cta-button {
    background: #2563eb;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
    display: inline-block;
}
.broker-cta-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.4);
}
.risk-notice {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    max-width: none;
    white-space: nowrap;
}

/* Ranking Section Styles */
.ranking-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.ranking-section h2 {
    font-size: 1.75rem;
    font-weight: bold;
    color: #1e293b;
    margin: 0 0 1.5rem 0;
    border-bottom: 3px solid #2563eb;
    padding-bottom: 0.5rem;
}
.ranking-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
}
.ranking-item {
    display: grid;
    grid-template-columns: 2fr 80px 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

/* Compact Ranking Layout - 2 columns with 3 items per row */
.ranking-categories-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.ranking-item-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #e5e7eb;
}

.ranking-category-compact {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.ranking-score-compact {
    font-size: 1.1rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 0.5rem;
}

.ranking-bar-compact {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.ranking-fill-compact {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}
.ranking-item:last-child {
    border-bottom: none;
}
.ranking-category {
    font-weight: 500;
    color: #374151;
}
.ranking-score {
    font-weight: bold;
    color: #059669;
    text-align: center;
}
.ranking-bar {
    background: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}
.ranking-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    transition: width 0.6s ease;
}

.signup-zone{
    display:flex;flex-wrap:wrap;gap:1rem;align-items:center;
}
.tipp_box{
    background:#eff6ff;padding:1.5rem;border-left:5px solid #2563eb;border-radius:0.5rem;margin:1.5rem 0;
}
.tipp_box .headline{
    font-size:1rem;display:block;margin-bottom:0.5rem;
}
/* Pros-Cons Grid Styles */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}
.pros-section, .cons-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
}
.pros-title {
    color: #059669;
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    border-bottom: 2px solid #10b981;
    padding-bottom: 0.5rem;
}
.cons-title {
    color: #dc2626;
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    border-bottom: 2px solid #ef4444;
    padding-bottom: 0.5rem;
}

/* Safety Features Grid */
.safety-features-grid {
    display: block;
    margin: 1.5rem 0;
}
.safety-feature-item {
    display: block;
    background: transparent;
    padding: 0;
    margin-bottom: 0.75rem;
    border-radius: 0;
    border: none;
}
.safety-icon {
    display: none;
}
.safety-content h4 {
    margin: 0.75rem 0 0.25rem 0;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Heebo', sans-serif;
    color: #111827;
    line-height: 1.3;
}
.safety-content p {
    margin: 0;
    font-size: 16px;
    font-family: "Open Sans", Arial, sans-serif;
    color: #4a4a4a;
    line-height: 1.6;
}

.advantages-wrapper{
    display:flex;flex-wrap:wrap;gap:2rem;
}
.advantages-list{
    display:flex;flex-direction:column;gap:0.5rem;
}
.advantages-list .element{
    display:flex;align-items:center;gap:0.5rem;
}
.section-card h2{
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.section-card h3{
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
.crumb-nav {
    padding: 1rem 0;
}
.entry-crumbs {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #6b7280;
}
.entry-crumb a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s;
}
.entry-crumb a:hover {
    color: #2563eb;
}
.checkmark::before {
    content: '✓';
    color: #15c283;
    font-weight: bold;
    margin-right: 0.5em;
}

.td-bread-sep {
    color: #9ca3af;
}
.broker-comparison-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}
.broker-card-top {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .broker-card-top {
        flex-direction: row;
    }
}
.broker-left {
    text-align: center;
    position: relative;
}
.broker-logo {
    max-width: 170px;
    height: auto;
    margin-bottom: 0.5rem;
}
.broker-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    white-space: nowrap;
}
.broker-rating {
    font-size: 0.95rem;
    color: #fbbf24;
    display: grid;
    align-items: center;
    gap: 5px;
}
.broker-middle {
    flex-grow: 1;
}
.broker-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem;
}
.broker-facts {
    list-style: none;
    padding: 0;
    margin: 0;
}
.broker-facts li {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
}
.broker-facts li .checkmark::before {
    content: '✓';
    color: #15c283;
    font-weight: bold;
    margin-right: 0.5rem;
}
.broker-card-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media (min-width: 768px) {
    .broker-card-bottom {
        flex-direction: row;
    }
}
.broker-bottom-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.broker-bottom-meta span:first-child {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.payment-icons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.payment-icons .box {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.3rem;
    background-color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
}
.payment-icons img {
    max-height: 25px;
    width: auto;
}
.broker-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border-left: 1px solid #e5e7eb;
    padding-left: 2rem;
}
.broker-prices {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    width: 100%;
}
.broker-prices li {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.broker-prices li strong {
    color: #1f2937;
    font-weight: 700;
    margin-left: 0.5rem;
    font-size: 1.125rem;
}
.btn-affiliate {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    margin-top:10px;
    background-color: #2563eb;
    color: #ffffff;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.btn-affiliate:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}
.broker-affiliate-note {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 0.5rem;
    text-align: center;
}

.warning-note {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 1.25rem;
    text-align: left;
}

body {
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    color: #374151;
}
main{
    font-family: "Open Sans", Arial, sans-serif;
}
.main_container {
    max-width: 1200px;
    margin: 0 auto;
}
.unified-review-container {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}
.section-card {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin-bottom: 0.75rem;
}
.paragraph-text { /* Consolidated paragraph styling */
    margin-bottom: 0.5rem;
    color: #4a4a4a;
    font-size: 16px;
    line-height: 1.6;
    font-family: "Open Sans", Arial, sans-serif;
}
.paragraph-text:last-child {
    margin-bottom: 0;
}

.pro-con-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.pro-list, .con-list {
    flex: 1;
    min-width: 240px;
}
.pro-list h3, .con-list h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}
.pro-list ul, .con-list ul {
    list-style: none;
    padding-left: 0;
}
.pro-list li::before {
    content: "✅";
    margin-right: 0.5rem;
}
.con-list li::before {
    content: "❌";
    margin-right: 0.5rem;
}
.pro-list li, .con-list li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}
.hard-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.hard-fact-item {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
}
.hard-fact-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}
.hard-fact-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}
.inline-ad {
    background-color: #eff6ff;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}
.inline-ad img {
    max-width: 140px;
    margin-bottom: 1rem;
}
.inline-ad h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
}
.inline-ad p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.btn-primary {
    background-color: #d90429;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}
.btn-primary:hover {
    background-color: #b30323;
}
.accordion-item {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.accordion-header-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    background-color: #f9fafb;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease-in-out;
}
.accordion-header-button:hover {
    background-color: #f3f4f6;
}
.accordion-header-button .icon {
    font-size: 1.25rem;
    color: #4b5563;
    transition: transform 0.3s ease-in-out;
}
.accordion-header-button[aria-expanded="true"] .icon {
    transform: rotate(180deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 1.5rem;
}
.accordion-content.active {
    max-height: 500px;
    padding: 1.5rem;
}
.accordion-body-text {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
}


/* Review specific styles */
.review-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    padding: 2rem;
    color: white;
    text-align: center;
    margin: 2rem 0;
}
.review-score h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}
.score-display {
    margin-bottom: 1rem;
}
.score-number {
    font-size: 3rem;
    font-weight: bold;
}
.score-max {
    font-size: 1.5rem;
    opacity: 0.8;
}
.review-criteria {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.criteria-item {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    margin-bottom: 0.5rem;
}
.criteria-item p {
    margin-bottom: 0;
    margin-top: 0.15rem;
}
.criteria-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.1rem;
    gap: 1rem;
}
.criteria-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1f2937;
    flex: 1;
}
.criteria-score {
    font-weight: bold;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    font-size: 0.9rem;
    padding: 0.35rem 0.75rem;
    border-radius: 1rem;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
    letter-spacing: 0.05em;
}
.criteria-bar {
    display: none;
}
.criteria-fill {
    display: none;
}
.target-groups {
    display: block;
    margin-top: 1.5rem;
}
.target-group {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    margin-bottom: 0.5rem;
}
.target-group h3 {
    margin: 0.75rem 0 0.25rem 0;
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
}
.target-group p {
    margin-bottom: 0.5rem;
}
.suitability-score {
    display: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

/* New Grid Layouts for Improved Sections - Scoped to main content only */
.review-content .trust-safety-grid,
.review-content .commission-fees-grid,
.review-content .research-education-grid,
.review-content .tradable-instruments-grid,
.review-content .trading-platforms-grid,
.review-content .customer-support-grid,
.review-content .account-types-grid,
.review-content .unique-features-grid,
.review-content .account-opening-grid {
    display: block;
    margin-top: 1.5rem;
}

.review-content .trust-safety-item,
.review-content .commission-item,
.review-content .education-item,
.review-content .instrument-item,
.review-content .platform-item,
.review-content .support-item,
.review-content .account-item,
.review-content .feature-item {
    background: transparent;
    padding: 0;
    margin-bottom: 0.75rem;
    border-radius: 0;
    border: none;
}

.review-content .trust-safety-item h3,
.review-content .commission-item h3,
.review-content .education-item h3,
.review-content .instrument-item h3,
.review-content .platform-item h3,
.review-content .support-item h3,
.review-content .account-item h3,
.review-content .feature-item h3 {
    margin: 0.75rem 0 0.25rem 0;
    color: #1f2937;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Heebo', sans-serif;
    line-height: 1.3;
}

.review-content .trust-safety-item p,
.review-content .commission-item p,
.review-content .education-item p,
.review-content .instrument-item p,
.review-content .platform-item p,
.review-content .support-item p,
.review-content .account-item p,
.review-content .feature-item p {
    margin: 0 0 0.5rem 0;
    color: #4a4a4a;
    line-height: 1.6;
    font-size: 16px;
    font-family: "Open Sans", Arial, sans-serif;
}

.review-content .trust-safety-item ul,
.review-content .commission-item ul,
.review-content .education-item ul,
.review-content .instrument-item ul,
.review-content .platform-item ul,
.review-content .support-item ul,
.review-content .account-item ul,
.review-content .feature-item ul,
.review-content .trust-safety-item ol,
.review-content .commission-item ol,
.review-content .education-item ol,
.review-content .instrument-item ol,
.review-content .platform-item ol,
.review-content .support-item ol,
.review-content .account-item ol,
.review-content .feature-item ol {
    margin: 0.5rem 0 1rem 0;
    color: #4a4a4a;
    font-size: 16px;
    font-family: "Open Sans", Arial, sans-serif;
    line-height: 1.6;
}

.review-content .trust-safety-item li,
.review-content .commission-item li,
.review-content .education-item li,
.review-content .instrument-item li,
.review-content .platform-item li,
.review-content .support-item li,
.review-content .account-item li,
.review-content .feature-item li {
    margin-bottom: 15px;
    font-size: 16px;
    font-family: "Open Sans", Arial, sans-serif;
}

/* Pros-Cons section font sizing */
#vor-nachteile ul {
    font-size: 16px !important;
    line-height: 1.6 !important;
    font-family: "Open Sans", Arial, sans-serif !important;
}
#vor-nachteile li {
    font-size: 16px !important;
    line-height: 1.6 !important;
    font-family: "Open Sans", Arial, sans-serif !important;
}

/* Global ul/li sizing for ALL lists in review container */
.unified-review-container ul {
    font-size: 16px !important;
    line-height: 1.6 !important;
    font-family: "Open Sans", Arial, sans-serif !important;
    padding-left: 40px !important;
}
.unified-review-container li {
    font-size: 16px !important;
    line-height: 1.6 !important;
    font-family: "Open Sans", Arial, sans-serif !important;
}
.unified-review-container ol {
    font-size: 16px !important;
    line-height: 1.6 !important;
    font-family: "Open Sans", Arial, sans-serif !important;
    padding-left: 40px !important;
}

/* Simple Table Styles */
.broker-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 1rem;
}
.broker-table thead {
    background: #f8fafc;
}
.broker-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 2px solid #e5e7eb;
}
.broker-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
}
.broker-table tbody tr:last-child td {
    border-bottom: none;
}
.broker-table tbody tr:hover {
    background: #f9fafb;
}

/* Table Caption Styling - SEO optimized */
.broker-table-caption {
    caption-side: top;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1f2937;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
}

/* Table wrapper for horizontal scroll on mobile */
.broker-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Ensure proper box model for mobile */
    * {
        box-sizing: border-box;
    }

    .review-criteria {
        gap: 0 !important;
    }

    .criteria-item {
        margin-bottom: 0.4rem !important;
        padding: 0 !important;
    }

    .criteria-item p {
        margin-top: 0.15rem !important;
        margin-bottom: 0 !important;
    }

    .target-groups {
        margin-top: 1rem !important;
    }

    .target-group {
        margin-bottom: 0.5rem !important;
        padding: 0 !important;
    }

    .target-group h3 {
        margin: 0.5rem 0 0.25rem 0 !important;
    }

    .target-group p {
        margin-bottom: 0.25rem !important;
    }

    .warning-note {
        margin-top: 0.6rem;
    }
    .broker-right {
        border-left: none;
        border-top: 1px solid #e5e7eb;
        padding-left: 0;
        padding-top: 0.5rem;
        margin-top: 0.5rem;
        width: 100%;
    }

    .broker-comparison-card{
        gap:0;
    }
    .section-card h2 {
        margin-top: 0;
        font-size: 1.25rem;
    }
    .advantages-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .paragraph-text {
        margin-bottom: 1rem;
        color: #374151;
        font-size: 1rem;
        line-height: 1.625;
    }
    .section-card {
        margin-bottom: 1rem;
        padding: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    #FT__header {
        margin-bottom: 0;
    }
    .broker-rating {
        justify-items: center;
    }
    .signup-zone {
        justify-content: center;
        gap:10px;
    }

    .main_container .review-layout {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .main_container .review-content {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    body.page-template-brokerprofil-xtb .main_container .crumb-nav {
        padding-left: 15px;
        padding-right: 15px;
    }
    .broker-title {
        font-size: 1.4rem;
        line-height: 1.3;
        margin: 0 0 0.75rem;
    }
    .broker-card-top {
        gap: 1rem;
    }
    .score-number {
        font-size: 2rem;
    }
    .score-max {
        font-size: 1.2rem;
    }
    .review-summary {
        padding: 1.5rem;
    }
    .criteria-item, .target-group {
        padding: 1rem;
    }
    .target-groups {
        grid-template-columns: 1fr;
    }

    /* Mobile table optimizations - SEO friendly */
    .broker-table {
        font-size: 0.9rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .broker-table-caption {
        font-size: 1rem;
        padding: 0.5rem 0;
    }

    .broker-table th,
    .broker-table td {
        padding: 0.5rem;
        white-space: normal;
        overflow-wrap: break-word;
    }

    /* Optimized table layout for mobile - NO horizontal scroll */
    @media (max-width: 480px) {
        .broker-table {
            font-size: 0.9rem;
            display: table;
            overflow-x: visible;
        }

        .broker-table thead {
            display: table-header-group;
        }

        .broker-table tbody {
            display: table-row-group;
        }

        .broker-table tr {
            display: table-row;
        }

        .broker-table th,
        .broker-table td {
            display: table-cell;
            padding: 0.4rem 0.3rem;
            white-space: normal;
            overflow-wrap: break-word;
            word-break: break-word;
            line-height: 1.4;
        }

        .broker-table th {
            font-size: 0.75rem;
        }

        /* Optimized column widths to fit without scroll */
        .broker-table th:nth-child(1),
        .broker-table td:nth-child(1) {
            width: 33%;
            word-break: break-word;
        }

        .broker-table th:nth-child(2),
        .broker-table td:nth-child(2) {
            width: 18%;
            text-align: center;
        }

        .broker-table th:nth-child(3),
        .broker-table td:nth-child(3) {
            width: 49%;
        }

        .broker-table-caption {
            font-size: 0.95rem;
            padding: 0.5rem 0.25rem;
        }

        /* Comparison table: Keep table structure, optimize widths */
        .broker-table-comparison th:first-child,
        .broker-table-comparison td:first-child {
            width: 28%;
            font-size: 0.75rem;
        }

        .broker-table-comparison th:nth-child(2),
        .broker-table-comparison td:nth-child(2),
        .broker-table-comparison th:nth-child(3),
        .broker-table-comparison td:nth-child(3) {
            width: 36%;
            text-align: center;
            font-size: 0.75rem;
        }
    }
}

/* Reset and Professional Review Layout Styles */

.main_container .review-layout {
    display: flex !important;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    align-items: flex-start;
    padding: 0 1rem;
    box-sizing: border-box;
}

.main_container .table-of-contents {
    width: 280px;
    flex-shrink: 0;
    min-height: 400px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

/* Broker Sidebar Card */
.broker-sidebar-card {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    text-align: center;
}

.broker-badge-container {
    position: relative;
    margin-bottom: 1rem;
}

.broker-logo-container {
    margin-bottom: 1rem;
}

.sidebar-logo {
    max-width: 120px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.broker-sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.sidebar-rating {
    margin-bottom: 1rem;
}

.rating-stars {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.rating-score {
    font-size: 1.1rem;
    font-weight: bold;
    color: #1f2937;
}

.sidebar-features {
    text-align: left;
    margin-bottom: 1rem;
}

.feature-item {
    font-size: 0.9rem;
    color: #059669;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.risk-warning {
    font-size: 0.7rem;
    color: #6b7280;
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Review Meta Bottom */
.review-meta-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.review-meta-bottom .review-updated {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1rem;
    font-weight: 500;
}

.review-meta-bottom .review-authors {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.review-meta-bottom .author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.review-meta-bottom .author-label {
    font-size: 0.8rem;
    color: #6b7280;
}

.review-meta-bottom .author-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
}

.main_container .toc-sticky {
    position: sticky;
    top: 1rem;
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    z-index: 10;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

/* Mobile Burger Menu */
.mobile-toc-toggle {
    display: none;
}

.mobile-toc-toggle:hover {
    background: #1d4ed8;
}

/* Remove box styling from sections - make them flow like text (Desktop only) */
@media (min-width: 769px) {
    .container.section-card {
        background: transparent !important;
        border-radius: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        margin-bottom: 1.25rem !important;
        border: none !important;
    }
}

.container.section-card h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 3px solid #2563eb;
    display: inline-block;
}

.paragraph-text {
    font-size: 1rem !important;
    line-height: 1.625 !important;
    color: #374151 !important;
    margin-bottom: 1rem !important;
}

.main_container .toc-sticky h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #1f2937;
    font-weight: 600;
}

.main_container .toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.main_container .toc-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #4b5563;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.main_container .toc-link:hover,
.main_container .toc-link.active {
    background-color: #eff6ff;
    color: #2563eb;
    border-left-color: #2563eb;
}

.main_container .review-content {
    flex: 1;
    min-width: 0;
}

/* Expert Verdict Section */
.expert-verdict {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.expert-verdict h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.verdict-box {
    display: grid;
    gap: 2rem;
}

.verdict-summary {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.verdict-score {
    text-align: center;
    min-width: 120px;
}

.score-large {
    font-size: 3.5rem;
    font-weight: bold;
    display: block;
    line-height: 1;
}

.score-details {
    margin-top: 0.5rem;
}

.score-stars {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.score-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.verdict-text {
    flex: 1;
}

.verdict-text h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: white;
}

.key-highlights {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.key-highlights h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: white;
}

.key-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.key-highlights li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Trust & Safety Section */
.trust-safety {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.trust-safety h2 {
    color: white;
}

.safety-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.safety-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.25rem;
    border-radius: 0.75rem;
}

/* Costs & Fees Section */
.costs-fees {
    background: #f8fafc;
}

.cost-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.cost-category {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.cost-category h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    color: #1f2937;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.cost-table {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

.cost-value {
    font-weight: 600;
    color: #374151;
}

.cost-value.green {
    color: #059669;
}

.cost-value.orange {
    color: #d97706;
}

/* Broker Logo Section */
.broker-logo-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
}

.xtb-logo {
    flex-shrink: 0;
}

.xtb-logo img {
    max-width: 200px;
    height: auto;
    display: block;
}

.broker-tagline {
    flex: 1;
}

.broker-tagline h2 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: #1f2937;
}

.broker-tagline p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
}

/* Mobile Menu Overlay */
.mobile-toc-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
}

.mobile-toc-overlay.active {
    display: block;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .broker-header-logo {
        height: 50px !important;
        max-width: 150px !important;
    }

    .broker-header-section {
        padding: 16px;
        background-color: #fff;
        margin: 0 8px 1rem 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        border-radius: 0;
    }

    .risk-notice {
        white-space: normal !important;
        max-width: 100% !important;
        font-size: 0.75rem !important;
    }

    .integrated-ranking .ranking-bar {
        display: none;
    }

    .integrated-ranking .ranking-categories {
        gap: 0.25rem;
    }

    .integrated-ranking .ranking-item {
        grid-template-columns: 1fr auto;
        gap: 0.75rem;
        padding: 0.35rem 0;
    }

    .integrated-ranking .ranking-score {
        text-align: right;
    }

    .main_container .review-layout {
        flex-direction: column;
        gap: 1rem;
        padding: 0;
        margin: 0;
        max-width: none;
    }

    .main_container .table-of-contents {
        width: auto;
        max-width: none;
        position: fixed;
        top: 1rem;
        left: -100%;
        height: auto;
        max-height: calc(100vh - 2rem);
        background: transparent;
        z-index: 99999;
        transition: left 0.3s ease;
        overflow-y: visible;
        padding: 0;
    }

    .main_container .table-of-contents.mobile-open {
        left: 0;
    }

    .integrated-ranking .ranking-categories {
        grid-template-columns: 1fr;
    }

    .mobile-toc-toggle {
        display: flex;
        position: fixed;
        top: 140px;
        right: 1rem;
        z-index: 100000;
        background: #2563eb;
        color: white;
        border: none;
        border-radius: 8px;
        padding: 0.75rem;
        font-weight: 600;
        cursor: pointer;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        font-size: 1.5rem;
        line-height: 1;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
    }

    .broker-header-content {
        flex-direction: column;
        text-align: center;
    }

    .broker-header-left {
        justify-content: center;
    }

    .broker-main-title {
        font-size: 2rem;
    }

    .pros-cons-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .safety-features-grid {
        grid-template-columns: 1fr;
    }

    .main_container .toc-sticky {
        position: static;
        top: auto;
        background: white;
        border-radius: 1rem;
        padding: 1.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border: 1px solid #e5e7eb;
    }

    .main_container .toc-nav {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .main_container .review-content {
        order: 1;
    }

    .verdict-summary {
        flex-direction: column;
        text-align: center;
    }

    .safety-features {
        grid-template-columns: 1fr;
    }

    .cost-breakdown {
        grid-template-columns: 1fr;
    }

    .score-large {
        font-size: 2.5rem;
    }

    .expert-verdict, .trust-safety {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
    }

    .broker-logo-section {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        margin: 1rem 0;
        padding: 1.5rem;
    }

    .xtb-logo img {
        max-width: 150px;
    }

    .broker-tagline h2 {
        font-size: 1.25rem;
    }

    .broker-sidebar-card {
        margin-bottom: 1rem;
        padding: 1rem;
    }

    .broker-sidebar-title {
        font-size: 1rem;
    }

    .sidebar-logo {
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .toc-nav {
        grid-template-columns: 1fr;
    }

    .verdict-box {
        gap: 1.5rem;
    }

    .safety-item {
        flex-direction: column;
        text-align: center;
    }

    .cost-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Screenshot Styles - SEO optimized */
.broker-screenshot {
    margin: 2rem 0;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.broker-screenshot .screenshot-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #e5e7eb;
    object-fit: contain;
    box-sizing: border-box;
}

.broker-screenshot figcaption {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    font-style: italic;
    background: #f9fafb;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    /* Mobile: Add margin to show background, balanced padding */
    .unified-review-container {
        border-radius: 0;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        margin: 0 8px 1rem 8px;
        padding: 12px 16px 12px 6px;
    }

    /* Ensure our section-card content has no extra side padding */
    .unified-review-container .section-card {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Ensure our tables fit perfectly */
    .unified-review-container .broker-table {
        margin-left: 0;
        margin-right: 0;
    }

    /* Headings should have no side spacing */
    .unified-review-container h2,
    .unified-review-container h3 {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .broker-screenshot {
        margin: 1.5rem 0;
        border-radius: 0;
    }

    .broker-screenshot .screenshot-img {
        max-height: 30vh;
        object-fit: contain;
        width: 100%;
    }

    .broker-screenshot figcaption {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Utility Classes for Inline Style Replacement */
.broker-note-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.broker-test-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.broker-rating-score {
    color: #059669;
}

.broker-test-description {
    margin-bottom: 1rem;
}

.conclusion-section {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
}

.text-left {
    text-align: left;
}

.ad-disclaimer {
    text-align: right;
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 1rem 0 0.5rem 0;
    padding-right: 1rem;
}

/* Star Rating Colors */
.star-full,
.star-large.star-full {
    color: #fbbf24; /* Yellow/Gold */
}

.star-half,
.star-large.star-half {
    background: linear-gradient(90deg, #fbbf24 50%, #d1d5db 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.star-empty,
.star-large.star-empty {
    color: #d1d5db; /* Light gray */
}
