/* Reset and Base Styles */

/* App Download Banner */
.app-download-banner {
    background: #01A720;
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: none; /* Hidden by default, shown via JavaScript on mobile/tablet */
}

.banner-link {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.banner-link:hover {
    opacity: 0.9;
}

/* Hide banner on desktop breakpoints */
@media (min-width: 1025px) {
    .app-download-banner {
        display: none !important;
    }
}

/* Show banner only on mobile and tablet breakpoints */
@media (max-width: 1024px) {
    .app-download-banner.show {
        display: block;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overscroll-behavior-x: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: white;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior-x: none;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 20px 200px 20px;
    min-height: 100vh;
}

/* Header Styles */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 8px;
    border-left: 1px dashed #F0F0F0;
    border-right: 1px dashed #F0F0F0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #01A720;
    letter-spacing: -0.02em;
    margin: 0;
}



/* Main Content */
.main-content {
    background-color: white;
    border-left: 1px dashed #F0F0F0;
    border-right: 1px dashed #F0F0F0;
    position: relative;
}

/* Tab Navigation */
.tab-navigation {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: calc((100vw - 800px) / 2);
    max-width: 200px;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 160px;
    gap: 2px;
    z-index: 100;
    border-right: 1px dashed #F0F0F0;
}

.tab-btn {
    background: white;
    border: none;
    color: #666;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.button-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    opacity: 0.4;
    filter: brightness(0);
}

/* Sparkle icon specifically green */
.rewrite-btn .button-icon {
    filter: brightness(0) saturate(100%) invert(41%) sepia(100%) saturate(1347%) hue-rotate(88deg) brightness(97%) contrast(101%);
    opacity: 0.4;
}

/* Active state for sparkle icon */
.rewrite-btn.active .button-icon,
.rewrite-btn:hover .button-icon,
.rewrite-btn:focus .button-icon {
    filter: brightness(0) saturate(100%) invert(41%) sepia(100%) saturate(1347%) hue-rotate(88deg) brightness(97%) contrast(101%);
    opacity: 1;
}

/* Active state for the Improve with AI button */
.rewrite-btn.active {
    background: #01A720;
    color: white;
}

.rewrite-btn.active .button-icon {
    filter: brightness(0) saturate(100%) invert(100%);
    opacity: 1;
}

.remove-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0);
    opacity: 0.4;
}

.avatar-menu-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.delete-account-btn .avatar-menu-icon {
    filter: brightness(0) saturate(100%) invert(18%) sepia(97%) saturate(6398%) hue-rotate(353deg) brightness(104%) contrast(107%);
    opacity: 0.5;
}

.close-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.tab-btn:hover {
    background: #F0F0F0;
    border-color: #E0E0E0;
}

.tab-btn:hover .tab-icon {
    opacity: 0.8;
}

.tab-btn.active {
    background: white;
    color: #01A720;
    border: none;
}

.tab-btn.active .tab-icon {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(41%) sepia(100%) saturate(1347%) hue-rotate(88deg) brightness(97%) contrast(101%);
}

/* Desktop styles for tabs */
@media (min-width: 1025px) {
    .tab-btn {
        text-align: left;
        justify-content: flex-start;
    }
}

/* Tab Content */
.tab-content-container {
    width: 100%;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.empty-state {
    padding: 48px 25px;
    text-align: center;
    color: #666;
}

.empty-state h2 {
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 1rem;
    margin: 0;
}

/* Quotes Header */
.quotes-header {
    padding: 25px;
    text-align: left;
}

.title-with-play {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.play-icon-btn {
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.play-icon-btn:hover {
    background: #01A720;
    transform: scale(1.05);
}

.question-mark {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    transition: all 0.2s ease;
    line-height: 1;
}

.play-icon-btn:hover .question-mark {
    color: white;
}

.quotes-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.quotes-title-section {
    flex: 1;
}

.quotes-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0;
}

.quotes-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.description-mobile {
    display: none;
}

.description-desktop {
    display: inline;
}

/* Jobs Header */
.jobs-header {
    padding: 25px;
    text-align: left;
}

.jobs-header .title-with-play {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .title-with-play {
        gap: 10px;
    }
    
    .play-icon-btn {
        width: 16px;
        height: 16px;
    }
    
    .question-mark {
        font-size: 10px;
    }
}

.jobs-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0;
}

.jobs-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Jobs Filter */
.jobs-filter {
    padding: 0 25px 15px;
    display: flex;
    gap: 2px;
    border-bottom: 1px solid #F0F0F0;
    margin-bottom: 15px;
}

.filter-btn {
    background: white;
    border: none;
    color: #666;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px 6px 0 0;
    position: relative;
}

.filter-btn:hover {
    background: #F8F8F8;
    color: #333;
}

.filter-btn.active {
    background: white;
    color: #01A720;
    border-bottom: 2px solid #01A720;
}

/* Jobs List */
.jobs-list {
    padding: 0 25px 25px;
}

.job-item {
    border: 1px solid #F0F0F0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background: white;
}

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

.job-header:hover {
    background-color: #FAFAFA;
}

.job-summary {
    flex: 1;
}

.job-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.job-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    color: #666;
}

.job-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}


.job-payment-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #28a745;
    margin-top: 4px;
}

.job-payment-status svg {
    color: #28a745;
}

.job-total {
    font-size: 1.1rem;
    font-weight: 600;
    color: #01A720;
}

.expand-icon {
    transition: transform 0.2s ease;
    color: #666;
}

.job-item.expanded .expand-icon {
    transform: rotate(180deg);
}

.job-details {
    display: none;
    padding: 16px 20px 20px;
    border-top: 1px solid #F0F0F0;
}

.job-item.expanded .job-details {
    display: block;
}

.job-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.detail-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.detail-section p,
.detail-section ul {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.detail-section ul {
    list-style: none;
    padding: 0;
}

.detail-section li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.job-actions-detailed {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 15px;
}

.get-pdf-btn {
    background: #01A720;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    height: 48px;
    box-sizing: border-box;
}

.get-pdf-btn:hover {
    background: #018a1b;
}

.get-pdf-btn .button-icon {
    width: 16px;
    height: 16px;
}

.delete-job-btn {
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    width: 100%;
    height: 48px;
    box-sizing: border-box;
}

.delete-job-btn:hover {
    background: #ff3838;
}

.delete-job-btn .button-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

/* Payment Links Styles in Jobs */
.payment-links-section {
    grid-column: 1 / -1; /* Span full width */
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-top: 15px;
}

.payment-schedule {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.payment-stage {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.payment-stage-info {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
}

.stage-number {
    font-weight: 600;
    color: #01A720;
    min-width: 60px;
}

.stage-amount {
    font-weight: 600;
    color: #333;
    min-width: 80px;
}

.stage-date {
    color: #666;
    font-size: 0.9rem;
}

.copy-payment-link-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #01A720;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-payment-link-btn:hover {
    background: #018519;
}

.copy-payment-link-btn.copied {
    background: #28a745;
}

.copy-payment-link-btn.copied svg {
    display: none;
}

.payment-status-paid {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #28a745;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Payment Status Button Styles */
.payment-stage-actions {
    display: flex;
    align-items: center;
}

.payment-status-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-status-btn.paid-btn {
    background: #28a745;
    color: white;
}

.take-home-pay {
    color: #01A720;
    font-weight: 600;
}

.payment-status-btn.paid-btn:hover {
    background: #218838;
}

.payment-status-btn.unpaid-btn {
    background: #01A720;
    color: white;
}

.payment-status-btn.unpaid-btn:hover {
    background: #018519;
}

.payment-links-description {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    font-style: italic;
}

@media (max-width: 768px) {
    .payment-stage {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .payment-stage-info {
        justify-content: space-between;
    }
    
    .copy-payment-link-btn {
        justify-content: center;
    }
    
    .payment-status-btn {
        justify-content: center;
        flex: 1;
    }
}

/* Jobs Empty State */
.jobs-empty-state {
    padding: 60px 25px;
    text-align: center;
}

.jobs-empty-icon {
    width: 48px;
    height: 48px;
    opacity: 0.3;
    margin-bottom: 20px;
}

.empty-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.empty-content p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 25px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Styles */
.quote-form {
    display: flex;
    flex-direction: column;
}

.form-section {
    padding: 48px 25px;
    border-radius: 0px;
}

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

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
}

/* Input Styles */
.input-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.text-input,
.textarea-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #F0F0F0;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white !important;
    transition: all 0.2s ease;
    font-family: inherit;
}

.text-input:focus,
.textarea-input:focus {
    outline: none;
    border-color: #01A720;
    box-shadow: 0 0 0 3px rgba(1, 167, 32, 0.1);
}

.textarea-input {
    resize: vertical;
    min-height: 120px;
}

/* Placeholder Styles */
.text-input::placeholder,
.textarea-input::placeholder {
    color: #C0C0C0;
    opacity: 1;
}

.text-input::-webkit-input-placeholder,
.textarea-input::-webkit-input-placeholder {
    color: #C0C0C0;
    opacity: 1;
}

.text-input::-moz-placeholder,
.textarea-input::-moz-placeholder {
    color: #C0C0C0;
    opacity: 1;
}

.text-input:-ms-input-placeholder,
.textarea-input:-ms-input-placeholder {
    color: #C0C0C0;
    opacity: 1;
}

/* Costing Items */
.costing-items {
    margin-bottom: 20px;
}

.costing-item {
    margin-bottom: 15px;
}

.costing-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.remove-item-btn {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.remove-item-btn:hover {
    background: rgba(255, 71, 87, 0.1);
    transform: scale(1.05);
}

.remove-item-btn svg {
    width: 18px;
    height: 18px;
}

/* Add Item Button */
.add-item-btn {
    background: #FAFAFA;
    border: 1px solid #F0F0F0;
    border-radius: 8px;
    padding: 12px 20px;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    width: fit-content;
}

.add-item-btn:hover {
    background: #F0F0F0;
    border-color: #E0E0E0;
}

/* Total Section */
.total-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #F0F0F0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.total-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: #01A720;
}

/* Primary Button */
.primary-btn {
    background: #01A720;
    color: white;
    border: none;
    border-radius: 14px;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    
    /* Inner shadows as specified */
    box-shadow: 
        inset 1px 1px 0px rgba(255, 255, 255, 0.2),
        inset 0px 15px 0px rgba(255, 255, 255, 0.12);
}

.primary-btn:hover {
    background: #018a1b;
}

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

.create-quote-btn {
    width: 100%;
    margin-top: 10px;
}

.secondary-btn {
    background: white;
    color: #01A720;
    border: 2px solid #01A720;
    border-radius: 14px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.secondary-btn:hover {
    background: #01A720;
    color: white;
}

.contact-support-btn {
    margin-top: 15px;
    font-size: 0.9rem;
    padding: 10px 20px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 400px;
    text-align: center;
}

.modal-content h3 {
    color: #01A720;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.modal-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 2000;
    backdrop-filter: blur(4px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #F0F0F0;
    border-top: 4px solid #01A720;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-overlay p {
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Auth Loading Spinner */
.auth-loading-spinner {
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

.auth-btn.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

.auth-btn.loading .auth-loading-spinner {
    display: inline-block;
}

/* Clear Form Button */
.clear-form-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: none;
    color: #666;
    border: none;
    border-radius: 14px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: fit-content;
    margin: 0;
}

.clear-form-btn:hover {
    opacity: 0.7;
}

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

.clear-form-btn svg {
    width: 16px;
    height: 16px;
}

/* Duration Section */
.duration-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: end;
}

.duration-input,
.duration-units {
    width: 100%;
}

.duration-units {
    padding: 12px 16px;
    border: 2px solid #F0F0F0;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white !important;
    transition: all 0.2s ease;
    font-family: inherit;
    min-height: 48px;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.duration-units:focus {
    outline: none;
    border-color: #01A720;
    box-shadow: 0 0 0 3px rgba(1, 167, 32, 0.1);
}

/* Payment Items */
.payment-items {
    margin-bottom: 20px;
}

.payment-item {
    margin-bottom: 15px;
}

.payment-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.payment-amount-input,
.payment-date-input {
    width: 100%;
}

.payment-amount-input {
    min-height: 48px;
    box-sizing: border-box;
}

.payment-date-input {
    padding: 12px 16px;
    border: 2px solid #F0F0F0;
    border-radius: 8px;
    font-size: 1rem;
    background-color: white !important;
    transition: all 0.2s ease;
    font-family: inherit;
    min-height: 48px;
    box-sizing: border-box;
}

.payment-date-input:focus {
    outline: none;
    border-color: #01A720;
    box-shadow: 0 0 0 3px rgba(1, 167, 32, 0.1);
}

/* Payment Summary */
.payment-summary {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

/* VAT Options Styling */
.vat-options {
    margin-top: 20px;
    padding: 15px 0;
}

.checkbox-group {
    margin-bottom: 12px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkbox-container:hover .checkmark {
    border-color: #01A720;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background-color: #01A720;
    border-color: #01A720;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-row.final-total {
    border-top: 2px solid #01A720;
    padding-top: 15px;
    margin-top: 15px;
    font-weight: 600;
    font-size: 1.1rem;
}

.summary-label {
    color: #555;
    font-weight: 500;
}

.summary-amount {
    color: #01A720;
    font-weight: 600;
    font-size: 1.1rem;
}

.final-total .summary-label,
.final-total .summary-amount {
    color: #01A720;
    font-size: 1.2rem;
}

.fee-footnotes {
    margin: 12px 0;
}

.fee-footnote-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 6px;
}

.fee-check-icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.fee-footnote {
    font-size: 0.80rem;
    color: #888;
    text-align: left;
    margin: 0px 0 12px 0;
    font-style: italic;
}

.summary-row.processing-fees-row {
    margin-bottom: 4px;
}

/* Desktop Header Override */
@media (min-width: 1019px) {
    .header {
        display: none !important;
    }
    
    .container {
        padding: 0 40px;
    }
}

/* Desktop Logo & Avatar */
.desktop-header {
    display: none;
}

@media (min-width: 1019px) {
    .desktop-header {
        position: fixed;
        top: 20px;
        left: 20px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        z-index: 1000;
    }
    
    .desktop-logo {
        color: #01A720;
        font-size: clamp(0.8rem, 1.5vw, 1rem);
        font-weight: 700;
        text-decoration: none;
    }
    
    .desktop-avatar {
        background: #FAFAFA;
        border: 1px solid #F0F0F0;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #333;
        cursor: pointer;
        transition: all 0.2s ease;
        position: relative;
    }
    
    .desktop-avatar:hover {
        background: #F0F0F0;
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 1018px) {
    .container {
        padding: 0 6px 215px 6px;
    }
    
    .header {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0px !important;
        padding-top: 0px !important;
    }
    
    .tab-content-container {
        margin-top: 0px !important;
        padding-top: 0px !important;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    

    
    .auth-form-container {
        padding: 30px 20px;
        margin: 0 10px;
        background: none !important;
        border: none !important;
    }
    
    /* Hide Save Quote button on tablet */
    #saveBtn {
        display: none !important;
    }
    
    .avatar-menu-content {
        right: 10px;
        left: auto;
        width: auto;
        min-width: auto;
        max-width: 400px;
    }
    
    .form-section {
        padding: 48px 20px;
    }
    
    .costing-row {
        grid-template-columns: 2fr 1fr auto;
        gap: 10px;
    }
    
    .duration-row {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .payment-row {
        grid-template-columns: 1fr 1fr auto;
        gap: 10px;
    }
    
    .costing-row .input-group:nth-child(2) {
        min-width: 80px;
    }
    
    .remove-item-btn {
        justify-self: center;
        align-self: center;
        margin: 0;
    }
    
    .modal-content {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        padding: 20px;
        width: calc(100% - 40px);
        max-width: calc(100% - 40px);
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .quotes-header {
        padding: 20px 15px;
    }
    
    .quotes-title {
        font-size: 1.4rem;
    }
    
    .quotes-description {
        font-size: 0.95rem;
    }
    
    .jobs-header {
        padding: 20px 15px;
    }
    
    .jobs-title {
        font-size: 1.4rem;
    }
    
    .jobs-description {
        font-size: 0.95rem;
    }
    
    .jobs-list {
        padding: 0 15px 15px;
    }
    
    .job-details-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Tab Navigation - Tablet */
    .tab-navigation {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        flex-direction: row;
        justify-content: center;
        gap: 0;
        padding-top: 12px;
        padding-bottom: 32px;
        border-top: 1px dashed #F0F0F0;
        border-bottom: none;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        height: auto;
        width: 100%;
        max-width: none;
        z-index: 10;
        min-width: auto;
    }
    
    .tab-btn {
        border: none;
        border-bottom: none;
        border-radius: 0;
        padding: 12px 24px;
        flex: 1;
        min-width: 0;
        background: transparent;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    
    .tab-btn[data-tab="quotes"] {
        border-left: 1px dashed #F0F0F0;
        border-right: 1px dashed #F0F0F0;
    }
    
    .tab-btn.active {
        border: none;
        border-bottom: 1px solid white;
        margin-bottom: -1px;
    }
    
    .tab-btn.active[data-tab="quotes"] {
        border-left: 1px dashed #F0F0F0;
        border-right: 1px dashed #F0F0F0;
        border-bottom: 1px solid white;
        margin-bottom: -1px;
    }
    
    .tab-btn:hover {
        background: transparent !important;
    }
    
    .tab-btn .tab-icon {
        width: 20px;
        height: 20px;
        opacity: 0.5;
        filter: brightness(0);
        transition: all 0.2s ease;
    }
    
    .tab-btn.active .tab-icon {
        opacity: 1;
        filter: brightness(0) saturate(100%) invert(41%) sepia(100%) saturate(1347%) hue-rotate(88deg) brightness(97%) contrast(101%);
    }
    
    /* Ensure all tab button states have transparent backgrounds */
    .tab-btn,
    .tab-btn.active,
    .tab-btn.active[data-tab="quotes"],
    .tab-btn:hover,
    .tab-btn:focus {
        background: transparent !important;
    }
    
    /* Business tab styling for tablet */
    .edit-business-btn-main {
        display: none !important;
    }
    
    /* Show business avatar button on tablet */
    .business-avatar-btn {
        display: flex !important;
        background: #FAFAFA;
        border: 1px solid #F0F0F0;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        color: #333;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .business-avatar-btn:hover {
        background: #F0F0F0;
        transform: scale(1.05);
    }
    
    .business-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 15px;
        padding-bottom: 0 !important;
    }
    
    .business-title {
        flex: 1;
        margin: 0;
        margin-bottom: 0 !important;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px 8px;
    }
    
    .header-right {
        gap: 15px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .main-content {
        margin-top: 0px !important;
        padding-top: 0px !important;
    }
    
    .tab-content-container {
        margin-top: 0px !important;
        padding-top: 0px !important;
    }
    

    
    .avatar-btn {
        width: 36px;
        height: 36px;
    }
    
    .auth-form-container {
        padding: 25px 16px !important;
        margin: 0 5px;
        background: none !important;
        border: none !important;
    }
    
    .auth-form h2 {
        font-size: 18px !important;
    }
    
    /* Hide Save Quote button on mobile */
    #saveBtn {
        display: none !important;
    }
    
    .modal-content h3 {
        font-size: 1.1rem;
    }
    
    .empty-content h3 {
        font-size: 1.2rem;
    }
    
    .avatar-menu-content {
        top: 70px;
        right: 5px;
        left: auto;
        max-width: 400px;
    }
    
    .form-section {
        padding: 48px 15px;
    }
    
    .section-header {
        justify-content: space-between;
        align-items: center;
    }
    
    .section-title {
        font-size: 0.9rem;
    }
    
    .quotes-header {
        padding: 18px 15px;
    }
    
    .quotes-title {
        font-size: 1.3rem;
    }
    
    .quotes-description {
        font-size: 0.9rem;
    }
    
    .description-mobile {
        display: inline;
    }
    
    .description-desktop {
        display: none;
    }
    
    .jobs-header {
        padding: 18px 15px;
    }
    
    .jobs-title {
        font-size: 1.3rem;
    }
    
    .jobs-description {
        font-size: 0.9rem;
    }
    
    .jobs-list {
        padding: 0 15px 15px;
    }
    
    .job-header {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .job-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .job-meta {
        font-size: 0.85rem;
        flex-direction: column;
        gap: 3px;
    }
    
    .job-details {
        padding: 16px 15px 15px;
    }
    
    .job-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Tab Navigation - Mobile */
    .tab-navigation {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        flex-direction: row;
        justify-content: center;
        gap: 0;
        padding-top: 12px;
        padding-bottom: 32px;
        border-top: 1px dashed #F0F0F0;
        border-bottom: none;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        height: auto;
        width: 100%;
        max-width: none;
        min-width: auto;
        z-index: 10;
    }
    
    .tab-btn {
        border: none;
        border-bottom: none;
        border-radius: 0;
        padding: 10px 16px;
        font-size: 0.85rem;
        flex: 1;
        min-width: 0;
        background: transparent;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    
    .tab-btn[data-tab="quotes"] {
        border-left: 1px dashed #F0F0F0;
        border-right: 1px dashed #F0F0F0;
    }
    
    .tab-btn.active {
        border: none;
        border-bottom: 1px solid white;
        margin-bottom: -1px;
    }
    
    .tab-btn.active[data-tab="quotes"] {
        border-left: 1px dashed #F0F0F0;
        border-right: 1px dashed #F0F0F0;
        border-bottom: 1px solid white;
        margin-bottom: -1px;
    }
    
    .tab-btn:hover {
        background: transparent !important;
    }
    
    .tab-btn .tab-icon {
        width: 20px;
        height: 20px;
        opacity: 0.5;
        filter: brightness(0);
        transition: all 0.2s ease;
    }
    
    .tab-btn.active .tab-icon {
        opacity: 1;
        filter: brightness(0) saturate(100%) invert(41%) sepia(100%) saturate(1347%) hue-rotate(88deg) brightness(97%) contrast(101%);
    }
    
    /* Ensure all tab button states have transparent backgrounds */
    .tab-btn,
    .tab-btn.active,
    .tab-btn.active[data-tab="quotes"],
    .tab-btn:hover,
    .tab-btn:focus {
        background: transparent !important;
    }
    
    /* Business tab styling for mobile */
    .edit-business-btn-main {
        display: none !important;
    }
    
    /* Show business avatar button on mobile */
    .business-avatar-btn {
        display: flex !important;
        background: #FAFAFA;
        border: 1px solid #F0F0F0;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
        color: #333;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .business-avatar-btn:hover {
        background: #F0F0F0;
        transform: scale(1.05);
    }
    
    .business-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 15px;
        padding-bottom: 0 !important;
    }
    
    .business-title {
        flex: 1;
        margin: 0;
        margin-bottom: 0 !important;
    }
}

/* Print Styles */
@media print {
    .container {
        max-width: none;
        padding: 0;
    }
    
    .header,
    .create-quote-btn {
        display: none;
    }
}

/* Animation for new costing items */
.costing-item.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Business Tab Styles */
.business-header {
    padding: 25px;
    margin-bottom: 0;
}

.business-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

/* Hide business avatar button on desktop by default */
.business-avatar-btn {
    display: none;
}

/* Ensure it stays hidden on desktop breakpoints */
@media (min-width: 1019px) {
    .business-avatar-btn {
        display: none !important;
    }
}

/* Welcome Video Section */
.welcome-video-section {
    margin-bottom: 30px;
    padding: 0 20px;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625) */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.welcome-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    outline: none;
}

/* Responsive video adjustments */
@media (max-width: 768px) {
    .welcome-video-section {
        margin-bottom: 20px;
    }
    
    .video-container {
        border-radius: 8px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }
}

/* How It Works Video Section (inside accordion) */
.how-it-works-video-section {
    margin-bottom: 20px;
}

.how-it-works-video-section .video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 0;
}

.how-it-works-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    outline: none;
}

/* Responsive adjustments for accordion video */
@media (max-width: 768px) {
    .how-it-works-video-section {
        margin-bottom: 16px;
    }
    
    .how-it-works-video-section .video-container {
        border-radius: 6px;
    }
}

.edit-business-btn-main {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #666;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    width: fit-content;
}

.edit-business-btn-main:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.edit-business-btn-main svg {
    width: 16px;
    height: 16px;
}

.summary-section {
    margin-bottom: 0;
    padding: 24px;
}

.payments-section {
    margin-top: 0;
}

/* Summary Charts Styles */
.charts-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
}

.chart-wrapper {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    position: relative;
}

.chart-header {
    margin-bottom: 16px;
}

.chart-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
}

.chart-subtitle {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.chart-canvas-container {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-canvas-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

.chart-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #666;
}

.chart-loading p {
    margin: 0;
    font-size: 0.9rem;
}

.chart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #666;
    text-align: center;
}

.chart-empty-icon {
    width: 48px;
    height: 48px;
    opacity: 0.3;
}

.chart-empty h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    opacity: 0.5;
}

.chart-empty p {
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

.chart-footnote {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
}

.chart-footnote p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    text-align: center;
    font-style: italic;
}


@media (max-width: 768px) {
    .charts-container {
        gap: 20px;
    }
    
    .summary-section {
        margin-bottom: 0;
        padding: 12px;
    }
    
    /* Hide Save Quote button on mobile/tablet */
    #saveBtn {
        display: none !important;
    }
}

.section-description {
    color: #666;
    font-size: 0.95rem;
    margin: 8px 0 24px 0;
    line-height: 1.5;
}

/* Compensation Text Styles */

.compensation-add-text {
    color: #4CAF50;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.compensation-add-text:hover {
    color: #45a049;
    text-decoration: underline;
}

.input-description {
    color: #666;
    font-size: 0.85rem;
    margin: 8px 0 0 0;
    line-height: 1.4;
}

.payment-state {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
}

.payment-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.payment-info.connected {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.payment-info.loading {
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 12px;
}

.connection-status {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    margin: 0;
}

.connection-status.connected {
    color: #01A720;
}

.connection-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
}

.connect-btn {
    width: 100%;
    justify-content: center;
}

.bank-account-info {
    font-size: 0.9rem;
    color: #666;
}

.account-name,
.account-digits {
    margin-bottom: 4px;
}

.account-name span,
.account-digits span {
    font-weight: 500;
    color: #333;
}

.contact-link {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #666;
}

.contact-link a {
    color: #01A720;
    text-decoration: none;
    font-weight: 500;
}

.contact-link a:hover {
    text-decoration: underline;
}


.loading-spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #01A720;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* How it works accordion styles */
.how-it-works-section {
    margin-bottom: 0;
}

.accordion-item {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    background: #f8f9fa;
    border: none;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    transition: all 0.2s ease;
    font-family: inherit;
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-header span {
    text-align: left;
}

.accordion-icon {
    transition: transform 0.2s ease;
    color: #666;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.accordion-content.active {
    max-height: none;
}

.accordion-text {
    padding: 24px 24px 24px 24px;
}

.accordion-text h4 {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.accordion-text h4:not(:first-child) {
    margin-top: 24px;
}

.accordion-text p {
    margin: 0 0 16px 0;
    line-height: 1.6;
    color: #333;
}

.accordion-text p:last-child {
    margin-bottom: 0;
}

.accordion-text p strong {
    font-weight: 600;
    color: #01A720;
}

/* Footer Styles */
.footer {
    background-color: white;
    border-left: 1px dashed #F0F0F0;
    border-right: 1px dashed #F0F0F0;
    padding: 24px 25px;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-copyright {
    font-size: 0.75rem;
    color: #666;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.footer-disclaimer {
    font-size: 0.7rem;
    color: #999;
    margin: 0;
    line-height: 1.4;
}

/* Business Tab Mobile Styles */
@media (max-width: 768px) {
    .business-header {
        margin-bottom: 0;
    }
    
    .business-title {
        font-size: 1.6rem;
    }
    
    .edit-business-btn-main {
        margin-top: 16px;
        width: fit-content;
        justify-content: center;
    }
    
    .payment-info {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .connection-indicator {
        justify-content: center;
    }
    
    .connect-btn,
    .manage-btn {
        width: 100%;
        min-width: unset;
    }
    
    .footer {
        padding: 20px 16px;
        border-bottom: none;
    }
    
    .footer-copyright {
        font-size: 0.7rem;
    }
    
    .footer-disclaimer {
        font-size: 0.65rem;
    }
}

/* Character Counter */
.character-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #666;
}

#characterCount {
    font-weight: 500;
}

#characterCount.valid {
    color: #01A720;
}

#characterCount.invalid {
    color: #999;
}

.min-length {
    color: #999;
    font-style: italic;
}

/* AI Rewrite Button */
.ai-rewrite-btn {
    background: white;
    color: #01A720;
    border: 1px solid #01A720;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    width: fit-content;
}

.ai-rewrite-btn:hover:not(:disabled) {
    background: #01A720;
    color: white;
}

.ai-rewrite-btn:disabled {
    background: #f5f5f5;
    color: #ccc;
    border-color: #e0e0e0;
    cursor: not-allowed;
}

.ai-rewrite-btn.loading {
    pointer-events: none;
}

.ai-rewrite-btn.loading svg {
    animation: spin 1s linear infinite;
}

/* Authentication Styles */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding-top: 64px;
}

.auth-form-container {
    background: #FAFAFA;
    border-radius: 14px;
    border: 1px solid #F0F0F0;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.auth-form h2 {
    color: #01A720;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.auth-subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1rem;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 0.95rem;
}

.terms-footnote {
    text-align: center;
    margin-top: 12px;
    color: #999;
    font-size: 0.8rem;
    line-height: 1.3;
    display: none;
}

.terms-footnote.show {
    display: block;
}

.link-btn {
    background: none;
    border: none;
    color: #01A720;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
}

.link-btn:hover {
    color: #018a1b;
}

/* Forgot Password Link */
.forgot-password-link {
    text-align: center;
    margin: 15px 0;
}

.forgot-password-link .link-btn {
    font-size: 0.9rem;
    color: #01A720;
}

/* Avatar Button */
.avatar-btn {
    background: #FAFAFA;
    border: 1px solid #F0F0F0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.avatar-btn:hover {
    background: #F0F0F0;
    transform: scale(1.05);
}

/* Avatar Menu */
.avatar-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.avatar-menu-content {
    position: absolute;
    top: 80px;
    right: 20px;
    background: #FAFAFA;
    border: 1px solid #F0F0F0;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 20px;
    min-width: 280px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1019px) {
    .avatar-menu-content {
        top: 120px;
        left: 20px;
        right: auto;
    }
}

.user-info {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #F0F0F0;
}

.user-details {
    flex: 1;
}

.business-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.user-business-name {
    font-weight: 600;
    color: #333;
    margin: 0;
}

.edit-business-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-business-btn:hover {
    background: #F0F0F0;
    color: #333;
}

.user-email {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.sign-out-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
    font-family: inherit;
    padding: 0;
    margin-top: 15px;
    margin-left: 0px;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.sign-out-btn:hover {
    color: #333;
}

.delete-account-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
    font-family: inherit;
    padding: 0;
    margin-top: 20px;
    margin-left: 0px;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.delete-account-btn:hover {
    color: #c82333;
}

/* Auth Button Full Width */
.auth-btn {
    width: 100%;
}

/* Welcome Step Styles */
.welcome-step {
    display: none;
    text-align: center;
}

.welcome-step.active {
    display: block;
}

.welcome-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.secondary-btn {
    background: white;
    color: #666;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.secondary-btn:hover {
    background: #F5F5F5;
    color: #333;
    border-color: #D0D0D0;
}

/* Signup Steps Container */
.signup-steps-container {
    display: none;
}

.signup-steps-container.active {
    display: block;
}

/* Multi-step Signup Styles */
.signup-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.progress-step {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #E0E0E0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.progress-step.active {
    background: #01A720;
    transform: scale(1.2);
}

.progress-step.completed {
    background: #01A720;
}

.signup-step {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.signup-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.signup-step .input-group {
    margin-bottom: 20px;
}

.signup-step .input-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

/* Mobile Input Container */
.mobile-input-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.country-code-select {
    background: #FAFAFA;
    border: 2px solid #F0F0F0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    min-width: 100px;
    min-height: 48px;
    flex-shrink: 0;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.country-code-select:focus {
    outline: none;
    border-color: #01A720;
    box-shadow: 0 0 0 3px rgba(1, 167, 32, 0.1);
    background: white;
}

.mobile-number-input {
    flex: 1;
}

.mobile-input-container .text-input {
    margin: 0;
}

/* Mobile responsive styles for mobile input */
@media (max-width: 480px) {
    .mobile-input-container {
        flex-direction: row;
        gap: 6px;
    }
    
    .country-code-select {
        min-width: 85px;
        padding: 14px 8px;
        font-size: 0.9rem;
    }
    
    .mobile-number-input {
        flex: 1;
        min-width: 0;
    }
    
    /* Increase h2 font size on mobile */
    h2, .auth-form h2 {
        font-size: 2.16rem; /* 20% increase from 1.8rem */
    }
}

.delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.delete-btn:hover {
    background: #c82333;
}

.delete-account-modal {
    max-width: 500px;
    width: 90%;
    background: #FAFAFA;
    border: 1px solid #F0F0F0;
}

.deletion-confirmation-modal {
    max-width: 500px;
    width: 90%;
}

.modal-body {
    margin: 20px 0;
    text-align: left;
}

.modal-body p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
}

/* Loading State */
.loading-state {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    font-size: 3rem;
    font-weight: 700;
    color: #01A720;
    margin: 0;
    animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Close Avatar Menu Button */
.close-avatar-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.close-avatar-btn:hover {
    background: #F0F0F0;
    color: #333;
}

.close-avatar-btn svg {
    width: 24px;
    height: 24px;
}



/* Change Business Name Modal */
.change-business-modal {
    max-width: 400px;
    width: 90%;
    background: #FAFAFA;
    border: 1px solid #F0F0F0;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #F0F0F0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-weight: 600;
}

.close-modal-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.close-modal-btn:hover {
    background: #F0F0F0;
    color: #333;
}

.close-modal-btn svg {
    width: 24px;
    height: 24px;
}

.change-business-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-actions .secondary-btn {
    background: white;
    border: 1px solid #F0F0F0;
    color: #666;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: inherit;
}

.modal-actions .secondary-btn:hover {
    background: #F0F0F0;
    color: #333;
}

/* Error States */
.input-error {
    border-color: #ff4757 !important;
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1) !important;
}

.error-message {
    color: #ff4757;
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 500;
}

/* Success Page Styles */
.success-page-content {
    padding: 60px 25px;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.success-image {
    margin-bottom: 30px;
}

.trader-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.success-header {
    margin-bottom: 40px;
}

.success-title {
    font-size: 2rem;
    font-weight: 700;
    color: #01A720;
    margin-bottom: 20px;
}

.success-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.refresh-callout {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.refresh-callout p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
    font-style: italic;
}

.refresh-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.success-actions {
    margin-top: 40px;
}

.get-started-btn {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Onboarding Modal Styles */
.onboarding-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.onboarding-modal-content {
    background: white;
    border-radius: 14px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.onboarding-modal-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    padding: 20px 30px 15px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.onboarding-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 0;
    background: #000;
}

.onboarding-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.onboarding-modal-actions {
    padding: 20px 30px 30px;
    text-align: center;
}

.onboarding-modal-actions .primary-btn {
    min-width: 120px;
}

@media (max-width: 768px) {
    .onboarding-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .onboarding-modal-actions {
        padding: 15px 20px 20px;
    }
}

/* Paywall Modal Styles */
.paywall-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.paywall-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.paywall-header {
    padding: 30px 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.paywall-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.paywall-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #a0aec0;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.paywall-close:hover {
    background: #f7fafc;
    color: #4a5568;
}

.paywall-body {
    padding: 30px;
}

.paywall-features {
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

.feature-icon {
    width: 20px;
    height: 20px;
    filter: invert(24%) sepia(85%) saturate(3151%) hue-rotate(140deg) brightness(95%) contrast(101%);
    flex-shrink: 0;
}

.feature-item span {
    color: #4a5568;
    font-weight: 500;
    line-height: 1.4;
}

.paywall-pricing {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
}

.no-money-today {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.check-icon {
    width: 16px;
    height: 16px;
    filter: invert(24%) sepia(85%) saturate(3151%) hue-rotate(140deg) brightness(95%) contrast(101%);
}

.no-money-today span {
    font-size: 14px;
    color: #01A720;
    font-weight: 600;
}

.weekly-price-bottom {
    font-size: 14px;
    color: #718096;
    font-weight: 400;
    text-align: center;
    margin-top: 12px;
}

.subscribe-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, #01A720 0%, #00c853 100%);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(1, 167, 32, 0.3);
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 167, 32, 0.4);
    background: linear-gradient(135deg, #00c853 0%, #01A720 100%);
}

.subscribe-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(1, 167, 32, 0.3);
}

#paymentButtonContainer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

#paymentRequestButton {
    width: 100%;
    max-width: 280px;
}

/* Style the Stripe Payment Request Button */
.StripeElement {
    height: 48px;
    border-radius: 12px;
}

/* Style for payment request title */
.payment-request-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0;
    text-align: center;
}

/* Hide regular subscribe button when payment request is available */
.payment-request-available #subscribeBtn {
    display: none;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .paywall-content {
        width: 95%;
        margin: 20px;
    }
    
    .paywall-header {
        padding: 20px 20px 0;
    }
    
    .paywall-title {
        font-size: 20px;
    }
    
    .paywall-body {
        padding: 20px;
    }
    
    .price-amount {
        font-size: 36px;
    }
    
    .currency-symbol {
        font-size: 22px;
    }
}
