/*
Tether Quota Template Styles
Template: page-tetherquota.php
*/

.tetherquota-layout {
    display: flex;
    flex-direction: row;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: flex-start;
}

.tetherquota-content {
    flex: 1;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.tetherquota-content .post-content {
    padding: 60px 40px;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    text-align: justify;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.tetherquota-content .post-content .arzpaya-header-hero.tetherquota-header-wrap {
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    margin-bottom: 28px;
}

.tetherquota-content .post-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.1em;
}

.tetherquota-content .post-content h1,
.tetherquota-content .post-content h2,
.tetherquota-content .post-content h3,
.tetherquota-content .post-content h4,
.tetherquota-content .post-content h5,
.tetherquota-content .post-content h6 {
    margin: 30px 0 20px 0;
    color: var(--text-body);
    font-weight: 600;
}

.tetherquota-content .post-content h1 {
    font-size: 2em;
    margin-bottom: 30px;
}

.tetherquota-content .post-content h2 {
    font-size: 2em;
    margin-bottom: 25px;
}

.tetherquota-content .post-content h3 {
    font-size: 1.6em;
    margin-bottom: 20px;
}

/* Hero — aligned with bug-bounty-hero / arzpaya card UI */
.tetherquota-hero {
    text-align: center;
    padding: 40px 32px;
    margin-bottom: 28px;
    background: var(--card-bg, #fff);
    border-radius: 16px;
    border: 1px solid var(--border-color, #e5e7eb);
    box-shadow: var(--shadow-card, 0 4px 6px -1px rgba(0, 0, 0, 0.08));
}

.tetherquota-hero-badge {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 16px;
    font-size: 0.85em;
    font-weight: 600;
    color: #3d72fe;
    background: rgba(61, 114, 254, 0.1);
    border-radius: 999px;
    border: 1px solid rgba(61, 114, 254, 0.25);
}

.tetherquota-hero-content h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin: 0 0 12px;
    line-height: 1.35;
    color: var(--text-body);
}

.tetherquota-hero-intro {
    margin: 0 auto 20px;
    max-width: 640px;
    color: var(--text-body);
    font-size: 1.05em;
    line-height: 1.85;
}

.tetherquota-hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 0 auto 24px;
    max-width: 720px;
    padding: 0;
    list-style: none;
}

.tetherquota-hero-highlights li {
    padding: 8px 16px;
    font-size: 0.92em;
    font-weight: 500;
    color: var(--text-body);
    background: var(--bg-secondary, #f3f4f6);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 999px;
}

.tetherquota-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 0;
}

.tetherquota-hero-note {
    margin: 12px 0 0;
    color: var(--text-muted, #6b7280);
    font-size: 0.92em;
    line-height: 1.7;
}

/* Buttons */
.tetherquota-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1em;
    text-decoration: none !important;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.tetherquota-btn:hover {
    transform: translateY(-1px);
}

.tetherquota-btn--primary {
    background: #3d72fe;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(61, 114, 254, 0.35);
}

.tetherquota-btn--primary:hover {
    background: #2f5fd4;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(61, 114, 254, 0.4);
}

.tetherquota-btn--secondary {
    background: var(--card-bg, #fff);
    color: #3d72fe !important;
    border: 2px solid #3d72fe;
    box-shadow: none;
}

.tetherquota-btn--secondary:hover {
    background: rgba(61, 114, 254, 0.08);
}

/* Panel CTA boxes */
.tetherquota-panel-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 28px 0;
    padding: 28px 24px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 16px;
    box-shadow: var(--shadow-card, 0 4px 6px -1px rgba(0, 0, 0, 0.08));
}

.tetherquota-panel-cta--accent {
    border-color: rgba(61, 114, 254, 0.35);
    background: linear-gradient(180deg, rgba(61, 114, 254, 0.06) 0%, var(--card-bg, #fff) 100%);
}

.tetherquota-panel-cta__body {
    flex: 1 1 280px;
    min-width: 0;
}

.tetherquota-panel-cta__title {
    margin: 0 0 10px;
    font-size: 1.35em;
    line-height: 1.4;
    color: var(--text-body);
}

.tetherquota-panel-cta__text {
    margin: 0;
    line-height: 1.85;
    color: var(--text-body);
}

.tetherquota-panel-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex: 0 0 auto;
    justify-content: center;
}

.tetherquota-panel-cta__actions .tetherquota-btn {
    min-width: 200px;
}

.tetherquota-highlight-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 28px 0;
}

.tetherquota-stat {
    padding: 20px 16px;
    text-align: center;
    border-radius: 12px;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
}

.tetherquota-stat strong {
    display: block;
    font-size: 1.5em;
    color: #3d72fe;
    margin-bottom: 6px;
    line-height: 1.25;
}

.tetherquota-stat span {
    display: block;
    font-size: 0.95em;
    color: var(--text-muted, #6b7280);
    line-height: 1.45;
}

.tetherquota-steps {
    margin: 20px 0 28px;
    padding-right: 20px;
}

.tetherquota-steps li {
    margin-bottom: 14px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .tetherquota-highlight-stats {
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 20px 0;
    }

    .tetherquota-stat {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 16px;
        text-align: right;
    }

    .tetherquota-stat strong {
        flex: 0 0 auto;
        margin-bottom: 0;
        font-size: 1.2em;
        white-space: nowrap;
    }

    .tetherquota-stat span {
        flex: 1 1 auto;
        text-align: left;
        font-size: 0.9em;
    }
}

/* Content cards grid */
.tetherquota-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}

.tetherquota-card {
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-card, 0 4px 6px -1px rgba(0, 0, 0, 0.08));
}

.tetherquota-card h2,
.tetherquota-card h3 {
    margin-top: 0;
    font-size: 1.35em;
}

.tetherquota-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tetherquota-features li {
    position: relative;
    padding: 10px 20px 10px 0;
    margin-bottom: 8px;
    line-height: 1.7;
}

.tetherquota-features li::before {
    content: "•";
    position: absolute;
    right: 0;
    color: #3d72fe;
    font-weight: bold;
}

.tetherquota-lead {
    font-size: 1.15em;
    line-height: 1.85;
    color: var(--text-body);
}

.tetherquota-details {
    margin-top: 16px;
}

/* Sidebar */
.tetherquota-sidebar {
    display: flex;
    flex-direction: column;
    flex: 0 0 350px;
    width: 350px;
    height: fit-content;
    gap: 20px;
}

.tetherquota-sidebar .sidebar-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tetherquota-sidebar .sidebar-content .arzpaya-trade-widget,
.tetherquota-sidebar .sidebar-content .arzpaya-exchange-container,
.tetherquota-sidebar .sidebar-content .arzpaya-app-download {
    margin: 0 !important;
    max-width: 100%;
}

.tetherquota-sidebar .sidebar-content > * + * {
    margin-top: 20px !important;
}

.tetherquota-sidebar .sidebar-content .arzpaya-trade-widget,
.tetherquota-sidebar .sidebar-content .arzpaya-exchange-container {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.tetherquota-sidebar .sticky-sidebar-widget {
    position: relative;
    width: 100%;
}

@media (min-width: 1025px) {
    .tetherquota-sidebar .sticky-sidebar-widget.is-sticky {
        position: fixed;
        top: 80px;
        width: 350px;
        z-index: 10;
        max-width: 350px;
    }

    .tetherquota-sidebar .sticky-sidebar-widget .arzpaya-trade-widget,
    .tetherquota-sidebar .sticky-sidebar-widget .arzpaya-exchange-container,
    .tetherquota-sidebar .sticky-sidebar-widget .arzpaya-app-download {
        margin: 0 !important;
    }
}

.mobile-breadcrumb {
    display: none;
    margin-bottom: 20px;
}

.mobile-trade-widget {
    display: none;
    margin: 20px 0;
    flex-direction: column;
    gap: 20px;
}

.mobile-trade-widget .arzpaya-trade-widget,
.mobile-trade-widget .arzpaya-exchange-container,
.mobile-trade-widget .arzpaya-app-download {
    margin: 0 !important;
    max-width: 100%;
}

.mobile-trade-widget > * + * {
    margin-top: 20px !important;
}

@media (max-width: 1024px) {
    .tetherquota-layout {
        flex-direction: column;
        gap: 30px;
    }

    .tetherquota-sidebar {
        display: none;
    }

    .mobile-breadcrumb {
        display: block;
    }

    .mobile-trade-widget {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .tetherquota-content {
        min-height: auto;
    }

    .tetherquota-content .post-content {
        max-width: 900px;
        padding: 50px 30px;
    }

    .tetherquota-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tetherquota-layout {
        padding: 0 15px;
        gap: 20px;
    }

    .mobile-trade-widget {
        gap: 15px;
        margin: 15px 0;
    }

    .tetherquota-content .post-content {
        padding: 40px 20px;
    }

    .tetherquota-hero {
        padding: 28px 16px;
    }

    .tetherquota-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .tetherquota-hero-actions .tetherquota-btn {
        width: 100%;
    }

    .tetherquota-panel-cta {
        flex-direction: column;
        align-items: stretch;
        padding: 22px 16px;
    }

    .tetherquota-panel-cta__actions {
        width: 100%;
    }

    .tetherquota-panel-cta__actions .tetherquota-btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .tetherquota-layout {
        padding: 0 10px;
    }

    .tetherquota-content .post-content {
        padding: 30px 15px;
    }
}

[data-theme="dark"] .tetherquota-sidebar .sidebar-content .arzpaya-trade-widget,
[data-theme="dark"] .tetherquota-sidebar .sidebar-content .arzpaya-exchange-container {
    background: var(--card-bg, #1f2937);
    border: 1px solid var(--border-color, #374151);
    color: var(--text-primary, #f9fafb);
}

[data-theme="dark"] .tetherquota-card,
[data-theme="dark"] .tetherquota-panel-cta {
    background: var(--card-bg, #1f2937);
    border-color: var(--border-color, #374151);
}

[data-theme="dark"] .tetherquota-panel-cta--accent {
    background: linear-gradient(180deg, rgba(61, 114, 254, 0.12) 0%, var(--card-bg, #1f2937) 100%);
    border-color: rgba(61, 114, 254, 0.4);
}

[data-theme="dark"] .tetherquota-hero {
    background: var(--card-bg, #1f2937);
    border-color: var(--border-color, #374151);
}

[data-theme="dark"] .tetherquota-hero-highlights li {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-color, #374151);
}

[data-theme="dark"] .tetherquota-btn--secondary {
    background: transparent;
    border-color: #3d72fe;
}

/* Comparison table (shared with buy/price pages) */
.tetherquota-content .network-comparison-table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    -webkit-overflow-scrolling: touch;
}

.tetherquota-content .network-comparison-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #000;
    direction: rtl;
    font-size: 1em;
}

.tetherquota-content .network-comparison-table th,
.tetherquota-content .network-comparison-table td {
    border: 1px solid #000;
    padding: 12px 16px;
    line-height: 1.6;
    vertical-align: top;
}

.tetherquota-content .network-comparison-table thead th {
    background-color: #f5f5f5;
    text-align: justify;
    font-weight: 600;
}

.tetherquota-content .network-comparison-table tbody td {
    text-align: justify;
}

[data-theme="dark"] .tetherquota-content .network-comparison-table th {
    background-color: var(--header-bg, #374151);
    color: var(--text-primary, #f9fafb);
}

[data-theme="dark"] .tetherquota-content .network-comparison-table,
[data-theme="dark"] .tetherquota-content .network-comparison-table th,
[data-theme="dark"] .tetherquota-content .network-comparison-table td {
    border-color: var(--border-color, rgba(255, 255, 255, 0.1));
}

@media (max-width: 768px) {
    .tetherquota-content .network-comparison-table {
        min-width: 600px;
    }
}

/* Justify all text in main content — desktop & mobile */
.tetherquota-content .post-content p,
.tetherquota-content .post-content li,
.tetherquota-content .post-content ol,
.tetherquota-content .post-content ul,
.tetherquota-content .post-content h1,
.tetherquota-content .post-content h2,
.tetherquota-content .post-content h3,
.tetherquota-content .post-content h4,
.tetherquota-content .post-content h5,
.tetherquota-content .post-content h6,
.tetherquota-content .post-content .tetherquota-lead,
.tetherquota-content .post-content .tetherquota-hero-content h1,
.tetherquota-content .post-content .tetherquota-hero-intro,
.tetherquota-content .post-content .tetherquota-hero-note,
.tetherquota-content .post-content .tetherquota-panel-cta__title,
.tetherquota-content .post-content .tetherquota-panel-cta__text,
.tetherquota-content .post-content .tetherquota-card h2,
.tetherquota-content .post-content .tetherquota-card h3,
.tetherquota-content .post-content .tetherquota-card p,
.tetherquota-content .post-content .tetherquota-features li,
.tetherquota-content .post-content .tetherquota-steps li,
.tetherquota-content .post-content .arzpaya-price-error,
.tetherquota-content .post-content .faq-section .faq-title,
.tetherquota-content .post-content .faq-section .faq-question,
.tetherquota-content .post-content .faq-section .faq-answer,
.tetherquota-content .post-content .faq-section .faq-answer p,
.tetherquota-content .post-content em,
.tetherquota-content .post-content strong {
    text-align: justify;
}

/* Stat cards: centered on desktop, row layout on mobile */
.tetherquota-content .post-content .tetherquota-stat strong,
.tetherquota-content .post-content .tetherquota-stat span {
    text-align: center;
}

@media (max-width: 768px) {
    .tetherquota-content .post-content .tetherquota-stat strong {
        text-align: right;
    }

    .tetherquota-content .post-content .tetherquota-stat span {
        text-align: left;
    }
}

/* Hero badge, highlights & CTA labels stay centered */
.tetherquota-content .post-content .tetherquota-hero-content h1,
.tetherquota-content .post-content .tetherquota-hero-badge,
.tetherquota-content .post-content .tetherquota-hero-highlights,
.tetherquota-content .post-content .tetherquota-hero-highlights li {
    text-align: center;
}