/* Pricing Page Styles */

/* ======================================
   Comparison Table - Clear & Defined Layout
   Fixed column alignment issue
   ====================================== */

.table.comparison-table {
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border: 2px solid #e0e0e0;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --bs-table-bg: white;
    table-layout: fixed;
    width: 100%;
}

/* Header Row - Clear tier labels */
.table.comparison-table > thead > tr > th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    font-weight: 700;
    padding: 1rem 0.5rem;
    border: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
    text-align: center;
    vertical-align: middle;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    --bs-table-bg: transparent;
    box-shadow: none !important;
    width: 14%;
}

/* First column wider for feature names */
.table.comparison-table > thead > tr > th:first-child {
    text-align: left;
    padding-left: 1.25rem;
    font-size: 0.8rem;
    width: 22%;
}

.table.comparison-table > thead > tr > th:last-child {
    border-right: none !important;
}

/* Body Rows - Clear structure */
.table.comparison-table > tbody > tr {
    transition: background-color 0.15s ease;
}

.table.comparison-table > tbody > tr:nth-child(odd) {
    background-color: #ffffff !important;
    --bs-table-bg: #ffffff;
}

.table.comparison-table > tbody > tr:nth-child(even) {
    background-color: #f7f8fc !important;
    --bs-table-bg: #f7f8fc;
}

.table.comparison-table > tbody > tr:hover {
    background-color: #eef1ff !important;
    --bs-table-bg: #eef1ff;
}

/* All Cells - Fixed widths and clear borders */
.table.comparison-table th,
.table.comparison-table td {
    text-align: center;
    vertical-align: middle;
    padding: 0.875rem 0.5rem;
    border-bottom: 1px solid #e8e8e8 !important;
    border-right: 1px solid #e8e8e8 !important;
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table.comparison-table th:last-child,
.table.comparison-table td:last-child {
    border-right: none !important;
}

.table.comparison-table > tbody > tr > td {
    background: inherit !important;
    --bs-table-bg: inherit;
}

/* Feature Name Column - Left aligned, darker background */
.table.comparison-table .feature-name {
    text-align: left !important;
    font-weight: 600;
    color: #2c3e50;
    padding-left: 1.25rem !important;
    background-color: #f0f2f5 !important;
    border-right: 2px solid #d0d5dd !important;
    font-size: 0.85rem;
}

/* Value styling - block display for proper alignment */
.table.comparison-table td:not(.feature-name) {
    font-weight: 500;
    color: #495057;
}

/* Check marks - Green and bold */
.table.comparison-table .feature-included {
    color: #198754 !important;
    font-size: 1rem;
    font-weight: 600;
}

.table.comparison-table .feature-included i {
    font-size: 1.2rem;
}

/* X marks - Muted red */
.table.comparison-table .feature-not-included {
    color: #dc3545 !important;
    font-size: 1rem;
    opacity: 0.6;
}

/* Limited/text values - Simple color, no pill */
.table.comparison-table .feature-limited {
    color: #6c5c00 !important;
    font-size: 0.8rem;
    font-weight: 600;
    background-color: transparent !important;
}

/* Price row styling */
.table.comparison-table tbody tr:first-child td:not(.feature-name) {
    font-weight: 700;
    font-size: 0.95rem;
    color: #667eea;
}

/* Support row differentiation */
.table.comparison-table tbody tr:last-child {
    border-top: 2px solid #e0e0e0 !important;
}

/* Migrated from pricing.html */
.pricing-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
}

.pricing-card {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border-color: #007bff;
    transform: scale(1.05);
    z-index: 10;
}

.pricing-card.featured .card-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.pricing-card .card-header {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    text-align: center;
    padding: 2rem 1rem;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #007bff;
}

.pricing-card.featured .plan-price {
    color: white;
}

.plan-price-period {
    font-size: 1rem;
    color: #6c757d;
    font-weight: normal;
}

.plan-description {
    color: #6c757d;
    margin-top: 0.5rem;
}

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

.feature-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    align-items: center;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list .feature-icon {
    color: #28a745;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.feature-list .feature-unavailable .feature-icon {
    color: #dc3545;
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ffc107;
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(15deg);
}

.upgrade-btn {
    width: 100%;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

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

.current-plan-indicator {
    background: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
}

.addon-section {
    background: #f8f9fa;
    padding: 60px 0;
    margin-top: 60px;
}

.addon-card {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    background: white;
    transition: all 0.3s ease;
}

.addon-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .pricing-card.featured {
        transform: none;
        margin-top: 2rem;
    }

    .plan-price {
        font-size: 2rem;
    }
}

.payment-method-card {
    border: 2px solid #e9ecef;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.payment-method-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 123, 255, 0.3);
}

.payment-method-card.featured {
    border-color: #28a745;
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.2);
    background: linear-gradient(to bottom, #ffffff 0%, #f8fff9 100%);
}

.payment-method-card.featured:hover {
    border-color: #28a745;
    box-shadow: 0 16px 40px rgba(40, 167, 69, 0.25);
    transform: translateY(-10px);
}

.payment-method-card .card-header {
    background: linear-gradient(135deg, var(--header-start, #28a745), var(--header-end, #20c997));
    border-bottom: none;
    text-align: center;
    padding: 1.75rem 1rem;
    position: relative;
    overflow: hidden;
}

.payment-method-card .card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-25%, -25%) rotate(180deg);
    }
}

.payment-method-card .card-header h5 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}

.payment-method-card .card-header i {
    font-size: 1.3rem;
    margin-right: 0.5rem;
    opacity: 0.95;
}

.payment-method-card .card-body {
    padding: 2rem 1.5rem;
}

.payment-method-card .card-body h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.payment-method-card .card-body>p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: #6c757d;
    font-weight: 500;
}

.payment-feature-list {
    margin-top: 1.5rem;
    padding-left: 0;
}

.payment-feature-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: flex-start;
    font-size: 0.95rem;
    line-height: 1.6;
    border-bottom: 1px solid #f0f0f0;
    transition: padding-left 0.2s ease;
}

.payment-feature-list li:last-child {
    border-bottom: none;
}

.payment-feature-list li:hover {
    padding-left: 4px;
}

.payment-feature-list li i {
    font-size: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.payment-method-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #000;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.payment-method-card .card-header {
    background: linear-gradient(135deg, var(--header-start, #667eea), var(--header-end, #764ba2)) !important;
    color: white !important;
    border: none;
    padding: 1.25rem 1rem;
}

.payment-method-card.border-success .card-header {
    --header-start: #28a745;
    --header-end: #20c997;
}

.payment-method-card.border-primary .card-header {
    --header-start: #007bff;
    --header-end: #0056b3;
}

.payment-method-card.border-warning .card-header {
    --header-start: #ffc107;
    --header-end: #ff9800;
}

@media (max-width: 991px) {
    .payment-method-card .card-body {
        padding: 1.75rem 1.25rem;
    }

    .payment-method-card .card-body h3 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .payment-method-card {
        margin-bottom: 1.5rem;
    }

    .payment-method-card.featured {
        transform: none;
    }

    .payment-method-card:hover {
        transform: translateY(-4px);
    }

    .payment-method-card.featured:hover {
        transform: translateY(-4px);
    }

    .payment-method-badge {
        top: 12px;
        right: 12px;
        font-size: 0.7rem;
        padding: 0.35rem 0.75rem;
    }
}

/* ======================================
   Blockchain Tokens Section
   ====================================== */

.blockchain-tokens-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
}

.blockchain-tokens-section .lead {
    color: rgba(255, 255, 255, 0.8);
}

.blockchain-token-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.blockchain-token-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
}

.blockchain-token-card i {
    color: #667eea;
}

.blockchain-token-card:nth-child(even) i {
    color: #764ba2;
}

.blockchain-token-table {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.blockchain-token-table thead tr {
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.blockchain-tokens-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

/* Modal close button accessibility */
.modal .btn-close {
    font-size: 0.875rem;
}

/* ======================================
   Comparison Table - Updated for 4 tiers
   ====================================== */

.table.comparison-table > thead > tr > th {
    width: 18%;
}

.table.comparison-table > thead > tr > th:first-child {
    width: 28%;
}
