:root {
    --primary: #009584;
    --primary-dark: #0f766e;
    --primary-light: #f0fdfa;
    --bg-page: #f1f5f9;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);

    /* Typography */
    --text-xs: 0.7rem;
    /* 12px naati-bdg,fl-lst,*/
    --text-sm: 0.75rem;
    /* 14px cert-lnk, input, drop, */
    --text-base: 0.8rem;
    /* 16px normal text, bio, sbmt btn, */
    --text-lg: 1.12rem;
    /* 18px role, inf-bx h3, */
    --text-xl: 1.25rem;
    /* 20px not used*/
    --text-2xl: 1.2rem;
    /* 24px used in service column */
    --text-3xl: 1.5rem;
    /* 30px used only in name */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: var(--text-base);
    background-color: var(--bg-page);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
    /* Prevent scrolling on desktop */
}

.app-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 1920px;
    margin: 0 auto;
}

/* Header */
.top-bar {
    height: 60px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    flex-shrink: 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo {
    height: 40px;
    display: block;
    margin-right: 0.5rem;
}

.header-title {
    font-weight: 600;
    color: var(--text-main);
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    border: none;
    background: none;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-weight: 500;
    font-size: var(--text-sm);
    color: var(--text-muted);
    border-radius: 4px;
}

.lang-btn.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
}

/* Main Grid */
.main-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 25fr 45fr 30fr;
    gap: 1.5rem;
    padding: 1.5rem;
    height: calc(100vh - 60px);
}

/* Pricing Table Styles */
.pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 2rem;
    font-size: var(--text-sm);
}

.pricing-table th,
.pricing-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    /* Align vertically */
}

.pricing-table th {
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-page);
    position: sticky;
    top: 0;
}

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



.pricing-category {
    font-weight: 500;
    /* Reduced from 600 */
    color: var(--primary);
    width: 20%;
    /* Reduced width */
    vertical-align: top !important;
    /* Keep category at top for rowspan */
}

.pricing-desc {
    color: var(--text-main);
}

.pricing-cost {
    white-space: nowrap;
    font-weight: 600;
    color: var(--text-main);
    text-align: right;
    width: 15%;
}

.pricing-action {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.pricing-table th:nth-child(4) {
    text-align: right;
}

.quote-btn-small {
    display: inline-block;
    padding: 0.35rem 0.4rem;
    background: var(--bg-page);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 4px;
    text-decoration: none;
    font-size: var(--text-xs);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    width: 50px;
    text-align: center;
    white-space: nowrap;
}

.quote-btn-small:hover {
    background: var(--primary-light);
}

.add-btn-small {
    display: inline-block;
    padding: 0.35rem 0.4rem;
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
    border-radius: 4px;
    text-decoration: none;
    font-size: var(--text-xs);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    width: 50px;
    text-align: center;
    white-space: nowrap;
}

.add-btn-small:hover {
    background: var(--primary-dark);
}

/* Language-specific button widths */
[lang="ru"] .add-btn-small,
[lang="ru"] .quote-btn-small,
[lang="uk"] .add-btn-small,
[lang="uk"] .quote-btn-small {
    width: 85px;
}

.sub-price {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: normal;
}

.pricing-terms {
    margin-top: -1rem;
    margin-bottom: 2rem;
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-style: italic;
}

/* Common Section Styles */
section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    overflow-y: auto;
    /* Allow internal scrolling if content overflows */
    display: flex;
    flex-direction: column;
}

/* Profile Column */
.col-profile {
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-image-container {
    position: relative;
    width: 240px;
    /* Increased width */
    margin: 0 auto 2rem auto;
    padding: 0;
    /* Removed padding */
    background: none;
    /* Removed background */
    border-radius: 0;
    /* Removed border-radius */
    box-shadow: none;
    /* Removed box-shadow */
}

/* Rotated background effect */
.profile-image-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary);
    border-radius: 1rem;
    /* rounded-2xl */
    transform: rotate(3deg);
    opacity: 0.1;
    z-index: 0;
}

.profile-image {
    position: relative;
    width: 100%;
    border-radius: 1rem;
    /* rounded-2xl */
    border: none;
    /* Removed border */
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    /* shadow-xl */
    object-fit: cover;
    aspect-ratio: 3/4;
    z-index: 1;
}

.naati-badge-overlay {
    position: absolute;
    bottom: 0;
    right: -10px;
    background: var(--bg-card);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--primary);
    border: 1px solid var(--primary-light);
    z-index: 10;
}

.badge-icon {
    height: 16px;
}

.profile-info h1 {
    font-size: var(--text-3xl);
    margin-bottom: 0.5rem;
}

.role {
    color: var(--primary);
    font-weight: 500;
    font-size: var(--text-lg);
    margin-bottom: 1.5rem;
}

.bio-text {
    color: var(--text-muted);
    font-size: var(--text-base);
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
}

.bio-list {
    display: inline-block;
    text-align: left;
    list-style-type: disc;
    margin-top: 10px;
    padding-left: 20px;
}

.certs-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.cert-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-sm);
    padding: 0.5rem 1rem;
    background: var(--primary-light);
    border-radius: 8px;
    transition: background 0.2s;
    width: fit-content;
}

.cert-link:hover {
    background: #ccfbf1;
}

/* Services Column */
.col-services h2 {
    margin-bottom: 1.5rem;
    font-size: var(--text-2xl);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-page);
    border-radius: 8px;
    transition: transform 0.2s;
}

.service-item:hover {
    transform: translateX(5px);
    background: #e2e8f0;
}

.service-icon {
    color: var(--primary);
}

.info-box {
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-top: auto;
}

.info-box h3 {
    margin-bottom: 1rem;
    font-size: var(--text-lg);
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.benefits-list li::before {
    content: "✓";
    font-weight: bold;
}

/* Contact Column */
.col-contact {
    justify-content: flex-start;
}

.contact-card {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.col-contact h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.toggle-container {
    display: flex;
    background: var(--bg-page);
    padding: 0.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 6px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: var(--text-sm);
}

.toggle-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow);
}

/* Order Cart Styles */
.order-cart {
    background: var(--bg-page);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.order-cart.empty {
    padding: 0.25rem;
}

.cart-items {
    margin-bottom: 1rem;
}

.empty-cart-msg {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 0.25rem;
    font-size: var(--text-sm);
}

.cart-item-row {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0;
    border-bottom: 1px dashed var(--border);
    font-size: var(--text-sm);
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: flex-start;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 500;
    color: var(--text-main);
}

.cart-item-price {
    color: var(--text-muted);
    font-size: var(--text-xs);
}

.cart-item-remove {
    color: #ef4444;
    cursor: pointer;
    margin-left: 1rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    line-height: 1;
}

.cart-item-attachments {
    margin-top: 0.5rem;
    padding-left: 0.5rem;
    border-left: 2px solid var(--border);
}

.item-button-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.item-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: var(--text-xs);
    color: var(--primary);
    background: none;
    border: 1px dashed var(--border);
    padding: 0 0.5rem;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1;
    box-sizing: border-box;
}

.item-upload-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.item-file-list {
    margin-bottom: 0.25rem;
}

.item-file {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-xs);
    color: var(--text-muted);
    padding: 2px 0;
    transition: all 0.2s;
}


.item-file-remove {
    color: #ef4444;
    cursor: pointer;
    margin-left: 0.5rem;
}

.cart-total-area {
    border-top: 1px solid var(--border);
    padding-top: 0.5rem;
}

.cart-row {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    margin-bottom: 0.25rem;
}

.cart-row.subtotal {
    color: var(--text-muted);
}

.cart-row.discount {
    color: var(--primary);
    font-weight: 500;
}

.cart-row.total {
    font-weight: 700;
    color: var(--text-main);
    font-size: var(--text-base);
    margin-top: 0.5rem;
}



.input-group {
    margin-bottom: 1rem;
}

input,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: var(--text-sm);
}

input:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    border-color: transparent;
}

.upload-section {
    margin-bottom: 1rem;
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.upload-section:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.drop-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.file-list {
    margin-top: 0.5rem;
    font-size: var(--text-xs);
    text-align: left;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
    margin-bottom: 0.25rem;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.file-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.file-info span:first-child {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.remove-file {
    color: #ef4444;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 0.5rem;
    line-height: 1;
    transition: transform 0.2s;
}

.remove-file:hover {
    transform: scale(1.2);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: var(--text-base);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.submit-btn:hover {
    background: var(--primary-dark);
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: var(--primary-dark);
    font-size: 1.25rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.5rem;
    text-align: center;
}

.modal-doc-list {
    margin-bottom: 1.5rem;
}

.modal-doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.modal-doc-item:hover {
    background: var(--primary-light);
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.qty-controls button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    background: white;
    color: var(--primary);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.qty-controls button:hover {
    background: var(--primary);
    color: white;
}

.qty-controls span {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
    color: var(--text-main);
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    position: sticky;
    bottom: 0;
    background: white;
    padding-top: 1rem;
}

.btn-cancel {
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.btn-add-modal {
    padding: 0.6rem 1.5rem;
    border: none;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.btn-add-modal:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}


/* Reference Modal Styles */
.ref-subtitle {
    margin-top: -10px;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
}

.ref-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.ref-option-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    gap: 1rem;
}

.ref-option-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}



.ref-icon {
    font-size: 1.5rem;
    width: 32px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ref-text strong {
    display: block;
    color: var(--primary);
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.ref-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
    display: block;
}

/* Sub-sections (Files / Manual) */
.ref-sub-section {
    background: var(--bg-page);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    border: 1px solid var(--border);
}

.ref-file-list {
    max-height: 150px;
    overflow-y: auto;
    margin-top: 0.5rem;
}

.ref-file-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid var(--border);
    margin-bottom: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0.75rem;
}

.ref-file-item:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.ref-file-icon {
    font-size: 1.25rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
}

.ref-file-info {
    flex: 1;
    min-width: 0;
}

.ref-file-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.ref-file-origin {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.ref-file-arrow {
    color: var(--border);
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.ref-file-item:hover .ref-file-arrow {
    color: var(--primary);
    transform: translateX(2px);
}


.ref-input {
    width: 100%;
    margin-bottom: 10px;
}

.btn-save-manual {
    width: 100%;
    padding: 8px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.recent-chips {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.name-chip {
    background: var(--bg-card);
    border: 1px solid var(--primary-light);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    cursor: pointer;
    color: var(--primary);
}

.name-chip:hover {
    background: var(--primary);
    color: white;
}

/* Status Button in Cart */
.ref-status-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: var(--text-xs);
    padding: 0 0.5rem;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.2s;
    line-height: 1;
    box-sizing: border-box;
    border: 1px solid transparent;
    /* Match spacing if other has border */
}

.ref-btn-required {
    background: #fee2e2;
    color: #ef4444;
    border: 1px solid #fca5a5;
    animation: pulse 2s infinite;
}

.ref-btn-neutral {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.ref-btn-neutral:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.ref-btn-done {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #86efac;
}

.badge-ref {
    background: #0ea5e9;
    color: white;
    font-size: 0.55rem;
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: bold;
    margin-right: 4px;
    text-transform: uppercase;
    vertical-align: middle;
}

.ref-icon-inline {
    color: #0ea5e9;
    font-size: 0.85rem;
    margin-right: 4px;
    vertical-align: middle;
}

.file-icon {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-right: 4px;
    vertical-align: middle;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@media (max-width: 600px) {
    .ref-options-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    body {
        height: auto;
        overflow: auto;
    }

    .app-container {
        height: auto;
        display: block;
    }

    .main-grid {
        display: flex;
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }

    section {
        height: auto;
        min-height: auto;
    }

    .col-profile {
        order: 1;
    }

    .col-services {
        order: 2;
    }

    .col-contact {
        order: 3;
    }

    /* Pricing Table Mobile Styles - Stack vertically */
    .pricing-table {
        display: block;
    }

    .pricing-table thead {
        display: none;
    }

    .pricing-table tbody {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .pricing-table tr {
        display: flex;
        flex-direction: column;
        background: var(--bg-page);
        border-radius: var(--radius);
        padding: 1rem;
        gap: 0.5rem;
    }

    .pricing-table td {
        display: block;
        padding: 0;
        border-bottom: none;
        text-align: left;
        width: 100%;
    }

    .pricing-table td.pricing-category {
        font-size: var(--text-lg);
        font-weight: 600;
        color: var(--primary);
        padding-bottom: 0.5rem;
        border-bottom: 1px solid var(--border);
        margin-bottom: 0.25rem;
    }

    .pricing-table td.pricing-desc {
        color: var(--text-main);
        line-height: 1.5;
    }

    .pricing-table td.pricing-cost {
        font-weight: 600;
        color: var(--primary-dark);
        margin-top: 0.5rem;
    }

    .pricing-table tr:hover td {
        background: transparent;
    }

    .pricing-table td.pricing-action {
        display: flex;
        justify-content: center;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border);
    }
}

/* Loading Spinner Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 1s linear infinite;
}


/* Contact Links Container */
.contact-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    flex-wrap: wrap;
}

/* Contact Button Styling */
.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-page);
    color: var(--primary);
    font-weight: 600;
    font-size: var(--text-base);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    border: 1px solid transparent;
    flex: 1;
    min-width: 140px;
    max-width: 240px;
}

.contact-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: var(--primary-dark);
}

.contact-btn:active {
    transform: translateY(0);
}

/* Payment Modal Styles */
.payment-modal-content {
    max-width: 400px;
    text-align: center;
}

.payment-subtitle {
    margin-top: -10px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.ref-highlight {
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 6px;
    border-radius: 4px;
}

.payment-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.payment-qr-section {
    background: white;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.payment-instruction {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

#payment-qrcode {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

/* Ensure padding around QR inside the library generated div if needed */
#payment-qrcode img {
    max-width: 100%;
}

.payment-details-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: var(--bg-page);
    border-radius: 8px;
}

.payment-label {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.payment-value {
    font-weight: 600;
    color: var(--text-main);
    font-size: var(--text-base);
}

.payment-value-large {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.25rem;
}

.btn-copy {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 4px;
    transition: transform 0.1s;
}

.btn-copy:active {
    transform: scale(0.9);
}

.btn-pay-app {
    display: inline-block;
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 0.5rem;
    transition: background 0.2s;
}

.btn-pay-app:hover {
    background: var(--primary-dark);
}

.btn-primary-modal {
    width: 100%;
    padding: 0.75rem;
    background: var(--text-main);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* --- Payment Modal Refinements (Accordion) --- */

.payment-options-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.pay-section {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.pay-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: var(--bg-page);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.pay-section-header:hover {
    background: #eef2f6;
}

.pay-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pay-title {
    font-weight: 600;
    color: var(--text-main);
}

.badge-auto {
    background: #e6f4ea;
    color: #1e8e3e;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pay-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.info-icon {
    font-size: 0.9rem;
    cursor: help;
    opacity: 0.7;
}

.info-icon:hover {
    opacity: 1;
    color: var(--primary);
}

.toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

/* Accordion Logic */
.pay-section-body {
    display: none;
    /* Hidden by default */
    padding: 1rem;
    border-top: 1px solid var(--border);
    background: white;
    animation: fadeIn 0.3s ease;
}

.pay-section.active .pay-section-body {
    display: block;
}

.pay-section.active .toggle-icon {
    transform: rotate(180deg);
}

/* Specific inner content styles */
#payment-qrcode {
    margin: 0 auto 10px auto;
    max-width: fit-content;
}

.manual-details-grid {
    display: grid;
    grid-template-columns: min-content 1fr;
    gap: 8px 12px;
    align-items: center;
}

/* Payment Modal Redesign */
.payment-info-box {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.payment-subtitle {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.payment-instruction-text {
    margin-top: 1rem;
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
    line-height: 1.4;
}

.payment-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-i-paid {
    width: 100%;
    padding: 0.85rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: var(--text-base);
    cursor: pointer;
    transition: background 0.2s;
}

.btn-i-paid:hover {
    background: var(--primary-dark);
}

.btn-i-paid:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.7;
}

.payment-modal-content .manual-details-grid {
    gap: 0.75rem 1rem;
}

.payment-modal-content .val-text {
    font-family: monospace;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.65rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    margin-right: 4px;
}

.manual-details-grid label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.copy-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-page);
    padding: 4px 8px;
    /* Reduced from 6px 10px */
    border-radius: 6px;
    border: 1px solid var(--border);
    overflow: hidden;
    /* Ensure it doesn't push parent */
}

.val-text {
    font-family: monospace;
    font-size: 0.55rem;
    /* Very small for long PayIDs */
    color: var(--text-main);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    /* Take up available space */
    min-width: 0;
    /* Important for ellipsis in flexbox */
    margin-right: 8px;
    /* Space before the button */
}

.btn-copy-sm {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: background 0.1s;
}

.btn-copy-sm:hover {
    background: rgba(0, 0, 0, 0.05);
}

.payment-note-sm {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
    font-style: italic;
}

/* Mobile Tweaks */
@media (max-width: 600px) {
    .payment-options-container {
        gap: 0.5rem;
    }
}