/* Billing Page Styles */
/* Prevent horizontal scroll */
.check-page {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.check-main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.billing-content {
    padding: 32px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.billing-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Main Layout */
.billing-main-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Check Packages Section */
.check-packages-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.check-packages-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.check-package-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.check-package-card:hover {
    border-color: #DBEAFE;
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.check-package-card.selected {
    border-color: #10B981;
    background: linear-gradient(135deg, #F0FDF4 0%, #D1FAE5 100%);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

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

.package-amount {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.package-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.save-badge {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.package-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.package-total-price {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.package-unit-price {
    font-size: 14px;
    color: #6B7280;
}

/* Selected Package Section */
.selected-package-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.selected-package-card {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border: 2px solid #3B82F6;
    border-radius: 12px;
    padding: 24px;
}

.selected-package-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
}

.selected-package-price {
    margin-bottom: 8px;
}

.selected-total-price {
    font-size: 36px;
    font-weight: 700;
    color: #111827;
}

.selected-package-unit {
    font-size: 14px;
    color: #6B7280;
}

/* Payment Method Section */
.payment-method-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-label {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.payment-dropdown-wrapper {
    position: relative;
}

.payment-dropdown {
    width: 100%;
    padding: 12px 16px;
    padding-right: 40px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23374151' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    transition: border-color 0.2s;
}

.payment-dropdown:focus {
    outline: none;
    border-color: #2563EB;
}

.payment-dropdown:hover {
    border-color: #D1D5DB;
}

/* Generate Invoice Button */
.generate-invoice-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    position: relative;
    overflow: hidden;
}

.generate-invoice-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.generate-invoice-btn:hover::before {
    left: 100%;
}

.generate-invoice-btn:hover {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.generate-invoice-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Advantages Section */
.advantages-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
}

.advantages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.advantages-header:hover {
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
}

.advantages-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.advantages-arrow {
    transition: transform 0.3s ease;
    color: #6B7280;
}

.advantages-section.expanded .advantages-arrow {
    transform: rotate(180deg);
}

.advantages-content {
    padding: 0 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.advantages-section.expanded .advantages-content {
    max-height: 500px;
    padding: 0 20px 20px 20px;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.advantage-check {
    flex-shrink: 0;
    margin-top: 2px;
}

.advantage-item span {
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

/* Compare Features Section */
.compare-features-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9FAFB 100%);
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 32px;
}

.compare-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 2px solid #E5E7EB;
}

.compare-header:hover {
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
}

.compare-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.compare-arrow {
    transition: transform 0.3s ease;
    color: #6B7280;
}

.compare-features-section.expanded .compare-arrow {
    transform: rotate(180deg);
}

.compare-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.compare-features-section.expanded .compare-content {
    max-height: 2000px;
}

.features-table-wrapper {
    overflow-x: auto;
    padding: 24px;
}

.features-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.features-table thead {
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
}

.features-table th {
    padding: 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    border-bottom: 2px solid #E5E7EB;
}

.feature-category {
    width: 40%;
}

.plan-column {
    width: 20%;
    text-align: center;
}

.plan-name {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.become-pro-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    position: relative;
    overflow: hidden;
}

.become-pro-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.become-pro-btn:hover::before {
    left: 100%;
}

.become-pro-btn:hover {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.features-table tbody tr {
    border-bottom: 1px solid #E5E7EB;
    transition: background 0.2s;
}

.features-table tbody tr:hover {
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
}

.category-row {
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
}

.category-header {
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    border-bottom: 2px solid #E5E7EB;
}

.feature-name {
    padding: 16px;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.feature-value {
    padding: 16px;
    text-align: center;
    font-size: 14px;
    color: #6B7280;
}

/* Style checkmarks and dashes in feature values */
.features-table .feature-value {
    color: #6B7280;
}

.features-table .feature-value.checkmark {
    color: #10B981;
    font-weight: 600;
    font-size: 18px;
}

.features-table .feature-value.dash {
    color: #D1D5DB;
}

/* Responsive Design - Mobile Menu Toggle (Left Side - Hidden on mobile, use header burger instead) */
.sidebar-toggle {
    display: none;
}

@media (max-width: 968px) {
    .billing-main-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .billing-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    /* Hide left sidebar toggle on mobile - use header burger menu instead */
    .sidebar-toggle {
        display: none !important;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    }

    .check-main {
        margin-left: 0;
    }

    .check-header {
        padding: 16px 20px;
    }

    .check-header-top {
        margin-bottom: 16px;
    }

    .check-title {
        font-size: 24px;
    }

    .header-burger-menu {
        display: flex;
    }

    .header-language-selector-wrapper {
        order: -1;
        margin-left: 0;
    }

    .billing-content {
        padding: 20px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .billing-container {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .billing-main-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .section-title {
        font-size: 20px;
    }

    .check-packages-grid {
        gap: 12px;
    }

    .check-package-card {
        padding: 16px;
    }

    .package-total-price {
        font-size: 24px;
    }

    .selected-package-card {
        padding: 20px;
    }

    .selected-total-price {
        font-size: 28px;
    }

    .payment-dropdown {
        font-size: 14px;
    }

    .generate-invoice-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .advantages-header {
        padding: 14px 16px;
    }

    .advantages-title {
        font-size: 16px;
    }

    .compare-header {
        padding: 16px 20px;
    }

    .compare-title {
        font-size: 18px;
    }

    .features-table-wrapper {
        padding: 16px;
    }

    .features-table {
        font-size: 12px;
        min-width: 700px;
    }

    .features-table th,
    .features-table td {
        padding: 12px 8px;
    }

    .plan-name {
        font-size: 14px;
    }

    .become-pro-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .check-header-top {
        flex-wrap: wrap;
    }

    .check-title {
        font-size: 20px;
        order: 2;
        width: 100%;
        margin-top: 12px;
    }

    .header-language-selector-wrapper {
        order: 1;
    }

    .header-burger-menu {
        order: 3;
        margin-left: auto;
    }

    .language-selector {
        font-size: 13px;
        padding: 6px 10px;
        gap: 4px;
    }
    
    .language-flag {
        font-size: 16px;
    }

    .language-dropdown {
        right: 0;
        left: auto;
        min-width: 160px;
        max-height: 250px;
        overflow-y: auto;
    }
    
    .language-option {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .language-option .flag {
        font-size: 16px;
        width: 20px;
    }

    .billing-content {
        padding: 16px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .billing-main-layout {
        gap: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .billing-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .section-title {
        font-size: 18px;
    }

    .check-package-card {
        padding: 14px;
    }

    .package-amount {
        font-size: 16px;
    }

    .package-total-price {
        font-size: 20px;
    }

    .package-unit-price {
        font-size: 12px;
    }

    .selected-package-card {
        padding: 16px;
    }

    .selected-package-title {
        font-size: 18px;
    }

    .selected-total-price {
        font-size: 24px;
    }

    .payment-label {
        font-size: 14px;
    }

    .payment-dropdown {
        padding: 10px 14px;
        font-size: 13px;
    }

    .generate-invoice-btn {
        padding: 12px 16px;
        font-size: 13px;
    }

    .advantages-header {
        padding: 12px 14px;
    }

    .advantages-title {
        font-size: 15px;
    }

    .advantage-item span {
        font-size: 13px;
    }

    .compare-header {
        padding: 14px 16px;
    }

    .compare-title {
        font-size: 16px;
    }

    .features-table-wrapper {
        padding: 12px;
    }

    .features-table {
        font-size: 11px;
        min-width: 600px;
    }

    /* Prevent horizontal scroll on mobile */
    .features-table-wrapper {
        width: 100%;
        max-width: 100vw;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }

    .check-packages-grid,
    .selected-package-section {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .check-package-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .features-table th,
    .features-table td {
        padding: 10px 6px;
    }

    .plan-name {
        font-size: 14px;
    }

    .become-pro-btn {
        padding: 5px 10px;
        font-size: 10px;
    }

    .category-header {
        padding: 12px;
        font-size: 14px;
    }

    .feature-name {
        padding: 12px;
        font-size: 12px;
    }

    .feature-value {
        padding: 12px 6px;
        font-size: 12px;
    }
}
